A script scanned every tracked doc, rule, skill, agent, hook and source file for tooling/ paths that no longer exist, skipping historical records (sprints, discussions, workshops, governance, generated wiki pages). It found 62. The ones that tell a reader what to RUN now name the reach verb: - The atlas skill still sent agents to tooling/atlas, atlas-verify, atlas-update-field and atlas-commit-and-sync — about forty lines, all retired in T-1285. They now name the `reach atlas` verbs, and the skill records that commit-and-sync STAGES by default (--commit to commit) and takes --corridor as an option. - The clerk agent named tooling/clerk-review (now `reach dev clerk`). The Si and clerk briefings sent those agents to the retired tooling/db/decision and sqlite-query CLIs and to decisions/*.md paths that moved to governance/ in the pql migration. They now name pql. - The ticket-cli rule documented `pql decisions read`, which does not exist; `show` already includes the body. - The culture authoring guide and the RON sources name `reach validate ron`, with the same arguments as before. - The 41 Blender payloads' usage lines ran the retired tooling/blender wrapper, and the docstrings still cited pre-carve-out paths. They now read `reach blender run <payload>`. - Doc comments in server/, client/, wiki TOMLs and the domain modules. What is left is deliberate: "Formerly …" provenance, dated plans and findings docs, the retired-pipeline doc, and a build-artefact path. project.yaml 0.4.14 (mirrored to the client). Comment-only, but four touched files are in the canvas-version registry (trait_catalog_reader.rs, since T-1289, canvas_sources.py itself, and two client files). The gate is path-based and has no override. The previous push was rejected on exactly this. Three of the edits are stamped ledger sources, so systems.db is regenerated and the stamp is fresh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
59 lines
1.5 KiB
Python
59 lines
1.5 KiB
Python
"""
|
|
blender_compare_bones.py
|
|
Usage: reach blender run blender_compare_bones <file_a.glb> <file_b.glb>
|
|
|
|
Compares bone names between two GLB/GLTF files. Reports missing or extra bones.
|
|
"""
|
|
|
|
import sys
|
|
import bpy
|
|
|
|
|
|
def get_bones(path: str) -> set:
|
|
bpy.ops.wm.read_factory_settings(use_empty=True)
|
|
bpy.ops.import_scene.gltf(filepath=path)
|
|
for obj in bpy.context.scene.objects:
|
|
if obj.type == 'ARMATURE':
|
|
return {b.name for b in obj.data.bones}
|
|
return set()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
argv = sys.argv
|
|
if "--" not in argv:
|
|
print("Usage: reach blender run blender_compare_bones <a.glb> <b.glb>")
|
|
sys.exit(1)
|
|
|
|
args = argv[argv.index("--") + 1:]
|
|
if len(args) < 2:
|
|
print("ERROR: Need two GLB/GLTF paths.")
|
|
sys.exit(1)
|
|
|
|
path_a, path_b = args[0], args[1]
|
|
|
|
print(f"Loading A: {path_a}")
|
|
bones_a = get_bones(path_a)
|
|
print(f"A has {len(bones_a)} bones")
|
|
|
|
print(f"Loading B: {path_b}")
|
|
bones_b = get_bones(path_b)
|
|
print(f"B has {len(bones_b)} bones")
|
|
|
|
only_in_a = bones_a - bones_b
|
|
only_in_b = bones_b - bones_a
|
|
shared = bones_a & bones_b
|
|
|
|
print(f"Shared: {len(shared)}")
|
|
if only_in_a:
|
|
print(f"Only in A ({len(only_in_a)}):")
|
|
for name in sorted(only_in_a):
|
|
print(f" - {name}")
|
|
if only_in_b:
|
|
print(f"Only in B ({len(only_in_b)}):")
|
|
for name in sorted(only_in_b):
|
|
print(f" + {name}")
|
|
if not only_in_a and not only_in_b:
|
|
print("BONE_MATCH=OK")
|
|
else:
|
|
print("BONE_MATCH=MISMATCH")
|