HumankindAssetFramework

Review backlog — deferred findings from the 2026-07-19 two-round audit

The two-round adversarial review (5 parallel reviewers per round over both repos; see the 07-19 Framework-Review row) fixed every HIGH-severity finding the same day. This file tracks what was found, verified real, and deliberately deferred — so the list survives outside the session that produced it. Ranked by when they’ll bite.

⚠ How to use this file (added after the 2026-08-23 sweep)

An entry here is a HYPOTHESIS, not a finding. It records what someone believed when they wrote it, and the code has moved since. Restating one as fact — in a ranking, a commit message, or to the user — launders a guess into a finding.

That is not a theoretical caution. On 2026-08-23 three entries were acted on without re-checking, and all three were wrong in a different way: one described a bug whose diagnosis was backwards (the sub-pawn “double-count” is a legitimate superset — the fix collapsed zero); one was dormant, sitting behind a config key that is blank by default and was blank in the live setup, yet was ranked the top user-visible defect; and one had been fixed weeks earlier and never struck through. Before touching an entry:

  1. Re-read the code it names. Line numbers and helper names drift; some entries describe code that no longer exists.
  2. Check the feature is switched ON. A defect behind a blank config key is not the one a player hits.
  3. Check the number is still the number. Panel/log figures quoted here were true on the day they were written.

Verification sweep — 2026-08-23

Every open entry that could be checked mechanically was re-read against current source. 8 of the 18 checked were stale — struck through in place below, each with the evidence. The rest are confirmed still-real and left open.

verdict entries
Stale — closed in this sweep district regex fallback · district-ground/hex types off-catalog · no offsite copy · “pre-flight validator not yet built” · registry Save wipes wrapper metadata · regex-fallback overrides-as-models drift · cb vs cbb naming · animated written-not-read
Confirmed still open editor’s 4th schemaVersion · future-schema warning can’t name the dials · Hk_SilenceEvents eo.name per event · LongestMatch tiebreak · TryLearnClass first-not-nearest · rotorSpin* plugin-only · deployMoveState unpruned · alphaBoost mapping
Real but not exercisable today Harmony TargetMethod param filters — typeprobe says both names have exactly one declaring type and one method in this build, so there is no ambiguity to fix; pure future-proofing
Not re-verified the feature seams (unbuilt by design, they do not go stale), the bake-script items (need a failing repro), and the editor items needing Unity: BoneRotation slot clobber, muzzle-compensation stash, converted-rig rest pose, entry-state coherence, LoadOrderedAlbedos

Needs a decision first

Replace Blender with our own code (raised 2026-09-30; measured, not estimated)

Goals: (1) no external dependency — users install a 400 MB Blender, its API has moved under the scripts before (now on 5.1), and every headless run is an out-of-process failure class (PR #107: exit codes, timeouts, pipe deadlocks); (2) speed. Measured 2026-09-30 on UniversalTanks/deploy_converted.glb (50.9 MB, 145 objects):

step Blender 5.1 HAF C# (GlbDisconnectedParts, Unity’s Mono)
boot 1.6 s —
glTF import 1.2 s read + parse every mesh, rebuild every part, write a 51 MB GLB: 0.31 s
glTF export 12.3 s (the exporter is Python) (included above)
a Vehicle Lab probe or rig run, end to end median 25.4 s (24 runs today, min 23.3 s) the rigging math is small; the round trip is the cost

So a C# Lab would answer a probe in about a second instead of 25 s, and a bake would lose the boot + export + Unity-reimport of the FBX round trip. The decimator and modifiers are C inside Blender (no gain there), but a C# quadric decimator can run on every core; Blender’s Python is single-threaded.

What Blender does for us (6,918 lines of Python): vehicle_rig.py 3,816 (procedural wheel/track/turret/oar/sail rigs + animations), rig_anim.py 1,234 (rest-pose fold, clip slicing into roles, bone-cap slimming, placement, FBX export), deploy_convert.py 1,037 (source → deployable GLB: decimation, texture extraction, bone-per-part rigs), plus placement_shift, add_role_clips, inspect_fbx, prep_model. Every one is math over meshes, skin weights and keyframes; Unity’s importer reads FBX/OBJ, our C# reads/writes GLB, Unity builds Mesh/skeleton/AnimationClip assets, and Unity’s official FBX Exporter exists if Amplitude’s ClipCollection.SetFromDirectory turns out to need an imported model rather than .anim assets. The one true dependency is .blend sources (that format is Blender) — keep Blender optional for those.

Cost: 2–4 months at the current rigor. Safety: the goldens (deploy_golden, lab_golden, the Bake Tests) compare dumps of the same inputs, so Blender stays the oracle until each script reaches parity, then is demoted.

Progress (2026-10-02): the foundation is in — the GLB reader (#109), writer (#110), their diversity and in-Unity proof (#111) — and the first consumer has started: the Vehicle Lab’s probe, chosen ahead of the order below because it is the Lab’s most frequent Blender call (every session, 25 s a time) and exercises the model end to end. It lands in four parts: 3a the rows (names as Blender’s importer gives them, vertices, boxes, bones, rig bones) with row-for-row parity on every registry source and every saved recipe’s source — done (105 of 105 files; the recipes’ sources are the probe’s real inputs and found what the registry could not: shared vertex accessors, a required material extension, a sheared node matrix); 3b the visibility verdicts (escape rays over one BVH) — done (10,498 parts on 118 files agree with Blender, 1,171 interior; it took Blender’s own vertex order after a loose split and the file’s normals as the normal ray to get there); 3c the inside-out verdicts (island scoring against the hull axis) — done (14,020 of 14,023 parts on 119 files agree; the three left are skinned parts with zero-area triangles, the item below); 3d the Lab calls the C# probe for .glb/.gltf sources and builds its part preview in-process instead of importing a preview FBX (FBX/OBJ/.blend sources keep Blender) — done 2026-10-03: the second model’s merge, the per-part placements and the Orientation are Blender’s arithmetic (VehicleProbe.Merge.cs), held bit for bit on ten fixture jobs and on the four recipes that set them (probe_jobs.py); the Lab’s Probe parts button runs it (VehicleLabWindow.ProbeInProcess, VehicleProbePreview). The order below stands for the rest.

Order, by payoff per effort: (1) inspect_fbx → an in-process rig — done 2026-10-03 for .glb/.gltf (35 of the registry’s 37 models; HafModelRig, the picker plays the reader’s clips in Unity’s own skinning; the one FBX entry and .blend sources keep inspect_fbx.py); (2) reduce/prep_model → an EXACT port of Blender’s Decimate collapse (decided 2026-10-03 over an independent decimator: equal costs are ordered by Blender’s edge and link order, and exact mirror geometry makes ties real — the Zumwalt 95 %, the submarine 78 %, instanced spokes); in milestones: (a) the importer’s mesh layout — vertex order, mesh_calc_edges’ bucketed insertion-ordered edge list, validate — done 2026-10-03 (BlenderMesh.cs, tools/decimate_drill.sh: 137 files, 6,912 objects, 21.1 million edges equal to Blender’s, in order); (b) BMesh’s disk and radial link order — done 2026-10-03 (BMesh.cs: the cycles, LOOPS_OF_VERT, the kills and splices; the drill holds every object’s link lists, and a scripted kill/splice sequence, to bmesh.from_mesh: 110 files, 4,312 objects, 19.5 million edges, 38,510 steps on 2026-10-05); (c) the collapse itself — done 2026-10-03 (BlenderDecimate.cs, BlenderReduce.cs, BlenderColor.cs: every object of the population collapsed at three ratios equal to Blender’s Decimate as prep_model applies it, positions to colour bytes: 6,099 reductions of 19.2 million faces on 110 files, 15 minutes; found on the way: modifier_apply’s UV merge, Blender’s per-vertex-colour material variants, the float32 normalize_v3 of face normals and the normalized custom-normal input (both shared with the probe), the C runtime’s cosf/sinf (not the rounded double; BlenderTrig.cs, and the drills’ C# side as a 64-bit process), Mono’s double evaluation of uncast float products, an edge-key hash that made the BMesh build quadratic); NOT wired into the Lab yet; (d) the glTF exporter’s mesh layout — the unskinned part done 2026-10-05 (BlenderExport.cs, tools/prep_drill.sh: Blender runs the real prep_model.py, every primitive it wrote is held to the C# reduce plus layout, bit for bit - the exporter’s own mesh.validate() first (it removes the twin faces a collapse leaves; missing until the full run showed five ships differ), corner normals rounded to 4 decimals, unique corners sorted as raw words, the colour-set rules; FULL=1 on 2026-10-06: 148 runs on 74 files, 3,532 object runs, 13.0 million vertices equal); skinned objects too, the same day (positions and normals through the armature’s matrix in numpy’s float32, joints and weights from the vertex groups, the exporter’s neutral bone; FULL=1 on 2026-10-06: 152 runs on 76 files, 4,062 object runs, 15.8 million vertices equal, 530 object runs skinned); the coloured material with alpha too (its set carries alpha when the importer wired the vertex alpha in: every mode and cutoff but OPAQUE and MASK at a cutoff of 0 or over 1; FULL=1 on 2026-10-06: 152 runs on 76 files, 154 runs on 77 files, 11,344 object runs, 17.4 million vertices equal, 0 declined; two reviews found the first rule wrong on two inputs, validate’s rebuild dropping the slots’ alpha modes, and the alpha factor’s float32 rounding - the cutoff and the base colour factor are doubles now); nothing is declined any more; (4a) the written file’s structure - nodes, order, parents, transforms, material names and order, as the converter walks them - done 2026-10-07 (BlenderExportTree.cs, a structure stage of the prep drill; FULL=1: 158 node lists, 50,872 object transforms and 128 material lists equal); (4b) the bones’ transforms and inverse bind matrices - the same day (VehicleProbe.BlenderArmature.cs, BlenderEigen.cs: the importer’s edit bones, Blender’s bone.matrix_local through Eigen’s SSE inverse and atan2f, the exporter’s joint rule; FULL=1 on 2026-10-07: 990 joint transforms and 538 skins’ inverse bind matrices equal, the dug-out canoe’s eight joints off by ulps through the probe’s world matrix of Canoe); still open in (d): an object parented to a bone (pose evaluation), the probe’s object world matrix on a quaternion like the canoe’s (2.9e-8 off unit, 1e-33 components: BlenderWorldMatrices is an ulp off Blender’s from that node down), the shapes the tree names and leaves to Blender (second review of PR #129, 2026-10-07: a camera with children - BlenderWorldMatrices does not model the importer’s camera_correction, an ulp on the child’s matrix, which is a gap of the merged probe too; KHR_lights_punctual, which the reader does not carry per node; a skin on a mesh without weights; a material read with two sets of UV indices, which the exporter writes once per set - get_final_material), BlenderEigen.InvertM4’s zero check, which is a double cofactor determinant and not Eigen’s float32 formula (it matters only for a matrix singular in one and not the other; a bone’s matrix is not), the shapes the PREP names and leaves to Blender (part 4c, BlenderPrep.cs, done 2026-10-08: the writer and the converter-level acceptance - a JPEG whose alpha is read, which Blender encodes again as PNG; material variants; a material Blender writes with a factor outside 0..1, which the converter refuses in Blender’s own file too (such a source does not bake today: a converter-side clamp would fix both paths); an image that is not PNG or JPEG or whose file name is not its format’s; an unskinned object named Icosphere; no reduce asked, where instanced meshes stay shared; a file of several scenes, though prep_model.py only fails on some; an unlit material’s JPEG is over-declined), (4c) the writer and the converter-level acceptance - DONE (OBJ byte-equal, images copied), (4d) strip and the wiring behind UniversalBaker.PrepInProcess with Blender as the fallback - DONE 2026-10-08 (open after it: the Bake Tests row has to be run in Unity - the push gate cannot; district entries are not in that row; the extract cache keys on prep_model.py’s time stamp and knows nothing of the C# prep, so a later change of ITS output needs a version token in the extract key - not added now, a forced re-extract overwrites hand-edited OBJ files; PrepInProcess now polls Bake Tests cancellation and a 180-second cooperative deadline at prep stages and within decimate; input reading and individual stages are still synchronous; a strip without a reduce, and every source that is not .glb/.gltf, are Blender’s), was: prep_model in C# - strip, the file as the Factory’s converter reads it (node and material order: Blender writes materials in order of first use, one per vertex-colour variant, and a DefaultMaterial for a coloured primitive without one), the write, the wiring behind UniversalBaker.PrepViaBlender with Blender as the fallback; KNOWN on the way: prep_model.py fails on a file of several scenes (“not in View Layer”) - today’s behaviour, the drill passes it only as that; 2–3 weeks in all; (3) deploy_convert (3–4 weeks; the fuse already walks parts and welds) - STARTED 2026-10-09. It is HAF’s own algorithm on Blender’s animation machinery (frame evaluation, a constraint bake, fcurves, the exporter’s sampling), five registry models use it, and its output goes to rig_anim.py - so Blender leaves that path only with (4). Parts: 1 the posed state (BlenderPosedState.cs, tools/deploy_drill.sh: every object’s matrix and animated property at a frame, the bits - a zero’s sign included - on 85 files) - done 2026-10-09; 2 the decisions (BlenderDeploy.cs: strip, frame range, normalization, parts, slimming, cull, path, bone budget - against the script itself, cut at the armature: its log to the letter and the scene it leaves to the bit, 47 jobs) - done 2026-10-10, the dugout canoe LEFT to Blender (objects under animated bones); 2b the armature’s pose (VehicleProbe.BlenderPose.cs: pose bones from the importer’s bone curves, BKE_pose_where_is, what hangs from a bone) - done 2026-10-10, the canoe is decided in C#; 3 the armature and its anchors (the bones at rest, StaticRoot’s anchor, the root-motion anchor - the oracle now runs the script up to the bake) - done 2026-10-10; the binding of the meshes goes with the bake’s parts; 4 the bake (every baked key to the bit; the scale-free step and the delta-form rebase) - done 2026-10-11, bit-exact: no tolerance was needed. 8a the export’s structure (BlenderDeployExport.cs: the trim, the purge, the sanitize, every node, skin, inverse bind matrix, mesh, primitive and animation name of the GLB against the file Blender writes, 192 jobs) - done 2026-10-11; 8a-ii the materials, textures, samplers and images (BlenderMaterialExport.cs: the round trip’s rules measured on 103 files, then read; the deploy export and a standalone material drill judge them) - done 2026-10-11 (open for the Factory wiring: the C# prep writes the SOURCE material unchanged, and the Factory’s converter refuses what Blender’s importer folds - a specularFactor over 1 crashed it on the edge fixture, which is therefore fixtures.py --materials, not --prep; the wiring has to write BlenderMaterialExport’s materials); 8b the animations’ channels (BlenderChannelExport.cs: every action sampled frame by frame as the exporter does, the reset between actions, the keep of constant channels, STEP or LINEAR, the correction matrices; 197 jobs’ 51,801 channels equal) - done 2026-10-11; 8c the bytes (BlenderGlbWriter.cs, PyFloatRepr.cs: the exporter’s traversal, the accessor cache, the JSON as json.dumps writes it; 201 jobs byte-identical) - done 2026-10-11. The script is ported. The Factory wiring (BlenderDeployInProcess, EnsureDeployConverted runs the port first, Blender for what it names) - done 2026-10-11; OPEN after it: the Bake Tests row in Unity (an entry baked through the in-process conversion against its Blender-converted bake), the prep writing the port’s materials (now written through BlenderMaterialExport by BlenderPrep.Assemble; the edge fixture is back in the prep drill) - done 2026-10-11. Next: (4) rig_anim, (5) vehicle_rig. 4b the bake takes the selected imported armatures too (their bones keyed a frame, their object animation dropped) - done 2026-10-11: the dugout canoe is baked in C#, no job is left at the bake; 5a the fire-window snapshot - done 2026-10-11 (the dump’s own scene updates between stages were wrong on the contract path and are gone); 5b/5c the barrel retarget and the leg scale - done 2026-10-10 (Bezier keys with their handles to the bit; a frame strictly inside a new segment was left to Blender); the Bezier evaluation between two keys (BlenderFCurve.cs: the cubic solver in the C runtime’s double math) - done 2026-10-10, against Blender’s own FCurve.evaluate() on raw curves and a frame sweep at the end of every retarget job; the handles of automatic keys (BlenderFCurve.RecalcHandles: the smoothing solver) - done 2026-10-10, against Blender’s own calculation and against pose_bone.keyframe_insert key by key; 5d the recoil tail (the kickback read off the source, the RecoilArm put in through edit mode - every bone rebuilt an ulp off -, the arc keyed) - done 2026-10-10, 192 jobs to the bit; 6 the binding (each mesh detached, its world matrix at the bind frame folded into its vertices - skipped within 1e-6 of the identity, as Blender skips it -, a shared datablock copied and numbered, one vertex group named after the BONE of the part found, an Armature modifier, the mesh under the armature) - done 2026-10-10, 204 jobs; the script’s own bug measured on the way: a pair-merged link’s vertex group named a bone that does not exist (anim_ancestor returned the part’s name, not bone_of[name]), so the merged links of a budgeted rig never deformed - the T-62’s 15 stuck track links, seen in the game 2026-11-09; FIXED that day in the script and the port together (the group names bone_of[part]; the deploy cache stamp bumped so every deploy_converted.glb is made again; the bone goldens hold, the bind changes no bone); LEFT from the bind on: a surviving bone shape (the dugout canoe’s strip list is “camera”: its icosphere’s vertices are Blender’s primitive - port primitive_ico_sphere_add, or have the Factory strip “icosphere” always, which changes the output); 7, 7b, 7c the purge and the role clips (the animated empties removed, every other animation cleared, the actions purged to “deploy”; the baked deploy sampled into unfold, fold, folded - the wheels spun on request -, deployed and recoil, each keyed with keyframe_insert frame by frame) - done 2026-10-11, as Result.Finish (lazy: what an object holds after 7b is what the LAST evaluation left, and the oracle sweeps frames before it); wheel Euler assignments clamp to +/- FLT_MAX as Blender’s RNA setter does; LEFT by name: a role clip span past 20,000 frames (including the wheel clip’s N+1 poses; the script would key for hours: the oracle does not run it either) and a deploy end before the bind frame (the script dies on a snapshot it never took - gun_end_minus5000, gun_recoil_end_m8: the recipe would need an end inside the clip); next 8 the export; 4 the bake, the options (barrel, legs, recoil, wheels) and the role clips; 5 the exported animation, the wiring, the existing golden. OPEN for part 4: bit-exact or a tight tolerance - the script’s decisions are thresholds on continuous values, the existing golden compares three decimals; to be decided on measured distance. Not modelled yet: Bezier keys (a CUBICSPLINE sampler), KHR_animation_pointer, an a camera’s correction (also open for the prep), morph targets (the evaluated mesh’s bounds), nodes outside the named scene (excluded collections), mesh instancing. OPEN, found by the review of part 2 and not measured: BlenderExportTree.StrCaseCmp reads UTF-8 bytes as signed FIXED 2026-11-01 (PR #236, measured on an FBX import: Blender’s order has the bytes UNSIGNED, a name past ASCII after every ASCII one; StrCaseCmp reads them so, and the deploy export drill’s r8_names holds siblings alpha, Émile, café part, ~tilde in Blender’s order - the entry stood stale until 2026-11-07). OPEN, found by the review of part 2b: GlbReader.Doubles reads the JSON token -0.0 as +0 FIXED 2026-11-07, and re-measured: GlbReader.ParseToken reads the JSON grammar itself, every float token through BlenderDeploy.ReadPythonFloat (the sign of zero kept, the value correctly rounded). The sign of zero turned out UNOBSERVABLE through Blender: the importer’s rotation_after @ t (mathutils, a double sum seeded +0.0) and the quaternion chain absorb it on every shape tried (38 root nodes: a -0.0 in each slot beside every sign pair, every signed-zero translation and unit quaternion, two MATRIX nodes, a held -0.0 key), and the exporter’s __fix_json writes an integral float as an int, -0.0 as 0; the second rule (+0, +0 after the import) IS that seeded sum, which the port modelled already. What the reader DID lose is a ulp: Unity’s Mono reads 1 in ~4,000 shortest-repr tokens (what json.dumps writes) one ulp off, double.Parse and Newtonsoft alike (measured under the drill’s MonoHost: 91 of 385,313 random tokens; 1,422 of 800,000 tokens one ulp beside a float32 boundary, 6 of them crossing it, so the imported float32 location differs from Blender’s). Those six are r22_negzero’s translations: PASS (the decisions 236 jobs, the posed state equal bit for bit, the export 200 jobs’ files equal); the plant (Newtonsoft’s reader back) FAILS: r22_negzero, 6 of 49 location sets differ, RT0 here -0.003120094 against Blender’s -0.00312009384; docs/Testing.md). PR #261 review also preserves integer tokens beyond Int64, bounds JSON nesting at 64 containers, and bumps the shared loader revision plus the GLB/glTF extraction fingerprints so old generated files do not hide the rounding fix. Exact integer midpoint comparisons and a short-decimal fast path replace decimal digit division: the 10,000-node Mono parse falls from about 1 second to 51–61 ms, with all 110,958 independent Python float tokens bit-equal on Framework and Mono. Was: the T-62 has 92 nodes with such a token and passed (masked by the importer’s arithmetic), a fuzzed armature did not; found again by the review of 5a (9 of 70 fuzzed rigs, a held zero’s sign), with a second rule beside it that was not traced: a node of translation [-0.739, -0.0, 0.0] holds +0, +0 straight after the import, where the axis conversion alone gives -0, -0; (4) rig_anim (3–4 weeks); (5) vehicle_rig (4–8 weeks; the Lab already computes much of the geometry in C#).

(4) rig_anim - the plan, decided 2026-10-11 (the FBX-free route, the user’s choice). Measured first: 24 of the registry’s 38 entries are animated; of those 22 take the conversion path (convertRig), 20 are state-driven (roles), 19 keep translations, 15 carry a rotation, 12 a reduce target, one donor sockets (the armoured car), none localNodeAnim or staticParts. The script (1,243 lines) imports the source, drops material-less meshes, reads the contract marker (DeployArmV2: clean units), holds the rest pose (localNodeAnim), clears object-level animation (convertRig), converts bone-parenting into full-weight skinning, flattens wrapper empties, transplants node animation into flat bones (localNodeAnim, through an FBX export-and-reimport round trip INSIDE the script), caps the bones at 256, resolves and slices the clips into role actions (frame ranges, the translation amplify or the clean units), clamps the frame range, writes the albedo, joins to one mesh (or keeps the material slots), decimates, places (the rotation folded in), and exports one FBX per role through Blender’s FBX exporter (bake_anim, global_scale 0.01 on clean units). Its only reader is Unity’s ModelImporter (Generic rig, MikkT tangents), then the SDK’s ClipCollection from a folder of one FBX. THE ROUTE: the processing stages are ported under the gate as deploy_convert was - Blender runs the script cut before the export and dumps the scene at each stage (the RIGANIM log lines to the letter; objects, vertex groups and weights after the skin conversion; transforms after the flatten; the role actions’ keys; the joined mesh; the decimated mesh through BlenderDecimate, already exact) -, the FBX export is NOT ported (5,800 lines whose bytes only Unity reads): the port writes a GLB with part 8c’s writer and the Factory builds the Unity rig from it with HafModelRig (the clip picker’s; PR #151’s slice proved the SDK bakes a Skeleton and ClipCollection from such a rig). What the gate cannot hold is the Unity side: that the C#-built rig bakes the same Skeleton and pose stream as the FBX route - a Bake Tests row the user runs; known differences to expect there: the FBX exporter SIMPLIFIES its baked curves (bake_anim_simplify_factor 1.0) where the GLB carries every frame, the FBX’s centimetre units and Unity’s import scale against the GLB’s metres (the slice saw pose streams of 1,296 against 576 bytes for one clip and named sizing as open). Order of work: (a) the stage dump and drill on the 24 entries’ recipes (rig_anim’s argv from the registry, as deploy_fixtures.py does for the deploy) - 23 of them .glb sources; the light assault mech’s source is an .fbx, which the C# does not read until the native FBX reader (the plan’s later item): that entry is Blender’s by name, the drill names it so and reports its coverage as 23 of 24, never as the whole corpus (the review of PR #157), (b) stage 1 the import, the junk drop, the contract, the object-animation clear, (c) stage 2 the skin conversion and the flatten, (d) stage 3 the bone cap and the role clips, (e) stage 4 the join, the albedo (pixel parity, Blender’s own save), the decimate, the placement, (f) the GLB writer’s output for the rig, (g) the Factory’s animated path built from the GLB, BOTH routes kept and configurable (the user’s call, 2026-10-11): a per-recipe setting with a global default - the shipped Blender FBX route initially, the in-process GLB rig opt-in - so selected models can opt into GLB during evaluation and exceptions can stay on Blender after the default flips; what the port names by name goes to the Blender route whatever the setting, and the slim-step cache key carries the route AND a C# pipeline revision, as the prep’s and the deploy’s keys do (a switch re-bakes, and so does a changed C# rig or writer: nothing stale is reused). THE DEFAULT FLIPS LAST: the shipped Blender route stays the global default, the GLB rig opt-in per recipe, until the acceptance gate passes - the Bake Tests row in Unity holding, for all 23 GLB-source animated entries baked both ways, the mesh, the skeleton, the clips, the placement, and an in-game check of each model playing its roles; the FBX-only light assault mech also passes a Blender-fallback bake and in-game check (DONE 2026-11-06: the mech’s Factory bake on the FBX route after PR #250, with ‘Keep extracted texture’ ticked, stands, walks and wears its skin in game - the user’s check; Player.log: own skeleton and four clip collections injected, no error or warning line, smoke test PASS on 43 models) (PR #151’s slice reports different pose bytes and unverified playback: that is the bar, not a hope); only then the GLB rig becomes the default (the review of PR #157), (h) the Bake Tests row - the gate above. The localNodeAnim transplant (no registry entry) is LEFT by name until last: its FBX round trip is Blender’s composition of a pathological hierarchy, not a rule to read. Estimate unchanged: 3 to 4 weeks. (a) DONE 2026-10-12: tools/riganim_drill.sh in the gate (jobs from the registry as the Factory formats them, the script cut at four of its own lines and run stage by stage by Blender, the scene on record after each, the evidence held complete and consistent, 37 tamper kinds refused; docs/Testing.md has the measure). 23 of 24 recipes dumped in 17 s, all four stages, deterministic; the mech LEFT by name. The census says which branches need a fixture before their port: bone-parent skinning, the bone cap, staticParts, localNodeAnim, the root collapse, the weld, a collapsed material, a centred model, the legacy amplify, the script’s exits - none of them has a registry recipe. Next: (b) stage 1. (b) groundwork DONE 2026-10-12: nine stage 1 fixtures in the drill (riganim_fixtures.py), the EXIT:<stage>:/LEFT: job key markers, the key rows with handles. Measured on the way: the importer gives a COLOR_0 mesh without a material a “DefaultMaterial”, so the script keeps it; a primitive without a material beside one with keeps the mesh with an empty slot; the scene stays at 1..250, frame 1, after every import. The stage 1 C# model is next: what exists (BlenderNames, BlenderPosedState, BlenderReduce, BlenderArmature, BlenderSkinner - the deploy and prep drills’ proofs) and what does not (the importer’s fcurve keys and handles as made, the vertex-group lists with the empty groups, the material-less drop and the object-animation clear, the pose_position REST hold - left by name with localNodeAnim). (b) stage 1 DONE 2026-10-12: editor/BlenderRigAnim.cs + riganim.exe --stage1 in the drill - every dumped recipe (23 of 24) and all 11 fixtures equal to Blender row for row (48,102 + 428 rows: objects and matrices, meshes, weights, bones, pose, actions, fcurves with keys and handles); 8 planted defects and 12 value tampers caught (docs/Testing.md). Found: the importer’s bone turn quaternions are products with the identity, so a key’s -0 is +0 (fixed in ImportRig.FinalTrs); a dropped mesh’s children keep their matrix_world. Next: (c) stage 2 - the bone-parent -> skin conversion and the wrapper flatten (zero registry recipes: fixtures first; fx_multi’s Hung and fx_wrapped reach the code), continuing from BlenderRigAnim.Stage1’s scene state; localNodeAnim stays LEFT by name. (c) stage 2 DONE 2026-10-12: BlenderRigAnim.RunStage2 + riganim.exe --stages 2 - the bone-parent -> skin bind (the governing bone up the chain, staticParts, the rest-world pin through Blender’s matrix_world assignment arithmetic, the vertex group and modifier, the re-evaluation) and the wrapper flatten; every dumped recipe and 25 fixtures (14 new; 22 equal at both stages, 3 named left) checked; 13 planted defects and 10 value tampers caught (docs/Testing.md). Found: a dropped mesh’s child keeps its matrix_world only until the next depsgraph update; the matrix_world setter writes the properties only (the flattened objects’ matrices are stale until stage 3’s first update - SceneObject.Dirty); the dump’s FC identity has no slot (two armatures with an animated bone of one name are an inconsistent dump). Left by name: two hung objects sharing one mesh datablock and staticParts names in supplementary Unicode scripts. Review of PR #164: Python lowercases U+0130 to i plus combining dot and contextual Greek sigma to final sigma; both now match in C#, with a Blender fixture. Next: (d) stage 3 - the bone cap, the clip resolution and slicing, the action prune, the bone filter, the rest fold and rebake, the translation strip, the frame range (frame_set evaluations: the Dirty objects’ first re-evaluation among them). (d1) stage 3, the clip path, DONE 2026-10-13: BlenderRigAnim.RunStage3 + riganim.exe --stages 3 - the clip resolution and slicing (frame-by-frame evaluation, decompose, keyframe_insert, the held-stance nudge), the prune, the bone filter, legacy keepTranslations, the strip, the amplify, the frame range; both legacy recipes equal at stage 3, the 21 conversion recipes DEFERRED by name at the rest fold (stages 1 and 2 equal); 20 new fixtures (45 jobs: 38 equal, 3 left, 4 deferred); 12 planted defects and 8 value tampers caught (docs/Testing.md). Found: the curve evaluator took every segment as Bezier (LINEAR/CONSTANT now follow the key). Review of PR #165 (2026-10-13): stage 3 now preserves Python’s repeated-role overwrite and insertion order, filters the escaped RNA bone path as the script does, returns immediately on a slice’s named fallback (primary or role), and allocates slice action names through Blender’s ID name map. Nine new fixture jobs cover these cases; eight refused the original model, all pass after the fixes (seven equal through stage 3, two named frame-limit fallbacks after equal stages 1 and 2). Next: (d2) the rest fold and rebake - the armature modifier applied as Blender’s linear deform (chan_mat = pose_mat times Eigen’s inverse of arm_mat, armature_deform.cc’s float32 mixer, the target/armature matrices), the pose applied as the new rest (applyarmature_set_edit_position: head, tail, mat3_vec_to_roll through invert_m3_m3, mat3_to_quat and quat_split_swing_and_twist, then the edit-bone round trip the armature port already has), the visual rebake (mathutils’ adjugate inverse and double-dot matmul, to_quaternion = mat4_to_quat), the residual check with its %.6f, and the bone cap (the same round trip); the Blender sources are fetched under the scratch folder’s s3/src. (d2) stage 3, the rest fold and rebake and the bone cap, DONE 2026-10-13: every conversion recipe now runs the fold in C# (the armature modifier as Blender’s linear deform, the pose applied as rest through the edit-bone round trip, the visual rebake with mathutils’ arithmetic, the residual’s %.6f) and the cap; all 23 dumped recipes equal through stage 3 (5.83 M rows), all 51 fixture jobs (6 new, fx_s4_*) checked: 48 equal at every compared stage, 3 left by name, 0 deferred; 14 planted defects caught (12 by the fixtures, 2 only by the registry: the inverse’s arithmetic, the write-back’s sign rule) and 10 value tampers refused (docs/Testing.md). Found: the depsgraph writes an evaluated value back to the original only where it differs (a zero of the other sign survives - TankDestroyers’ wheels); the bone-parent fix of armature_apply takes the EVALUATED armature’s parent matrix and tags nothing on the child (its evaluated copy keeps the old transform until something does). (e) stage 4, DONE 2026-10-14: the albedo (the image’s name in the importer’s creation order, its dimensions), the join (mesh_join.cc with transform_points’ identity skip), the material slots, the decimate, the rebind, the root collapse, the topological rename (the stashed actions renamed by Blender too), the donor sockets, the rotation and scale fold (transform_apply with the angle wrap and the updated-parent parent inverse), the placement, the operators’ depsgraph evaluations; all 23 dumped recipes equal through stage 4 (6.55 M rows), 96 fixture jobs (30 new): 89 equal, 7 left by name, 0 deferred; 20 planted defects caught (20 by the fixtures, 0 only by the registry) and 10 value tampers refused (docs/Testing.md); the dump’s MESH row gained every UV layer (name and hash). Step (f) below. Left by name: the weld of a one-material, one-bone mesh, a socket sorting before its parent (the script’s message is undefined - below). Next: (f) the GLB writer output - the stage 4 scene written as a .glb by BlenderGlbWriter (the FBX-free route), compared with what Blender’s FBX carries; then (g) the Factory’s animated path on the C# route (both routes configurable, Blender the default until the Unity acceptance gate), (h) a Bake Tests row. (f) the GLB writer’s output for the rig, DONE 2026-10-14: editor/BlenderRigExport.cs writes the stage 4 scene as the GLB Blender’s glTF exporter writes of it (the deploy port’s exporter model reused: the vtree, the numbering, the skins, MeshPrimitives with the real weights, the materials, BlenderChannelExport’s sampler split into a Spec the deploy and the rig share, BlenderGlbWriter); the dump exports the scene after stage 4 and riganim.exe --export holds every row and the bytes: all 23 recipes equal (17 byte-identical GLBs, the six JPEG-albedo rigs compared without the file - Blender’s PNG encoder), 95 fixture exports equal and byte-identical, 17 planted defects caught, 9 tampers refused (docs/Testing.md). Found: __fix_json skips tuples (a colour factor’s floats stay floats, an ior of 1000 becomes an int); the join zero-fills a missing colour layer and keeps the active’s render colour index. Left by name: a second armature’s unused skin (gathered after the animation export). Next: (g) the Factory’s animated path on the C# route - the GLB rig read by HafModelRig in place of the FBX, both routes configurable per recipe with the Blender FBX route the global default, the slim-step cache key carrying the route and a C# pipeline revision; then (h) the Bake Tests row and the Unity acceptance gate. (g) the Factory’s animated path on the GLB route, DONE 2026-10-14 (the Unity acceptance OWED): editor/BlenderRigAnimInProcess.cs runs the four stages and the export in process and the Factory’s animated path takes its GLB - per recipe (rigRoute, the Lab’s “Rig route” popups) with an editor default (EditorPrefs HAF.RigRouteDefault) that STAYS BLENDER; the slim cache key carries the route and the port’s CacheRevision; a named fallback takes the FBX route for that bake, a crash is a Console warning; the GLB is imported by HafModelRig, persisted under anim/ with one clip per role, the clip collections pointing at them. The drill runs the wrapper on every exported job (23 of 23 recipes - 17 byte-identical, the six JPEG-albedo rigs read back -, 95 fixtures, 9 review fixtures); the dump exports through the shipped Tools~/rig_anim_glb.py, the oracle the new Bake Tests row (“Does the in-process rig slim match Blender’s GLB export?”, BlenderRigAnimHeadlessTest) runs against the port on every animated registry rig with the Factory’s own argv. Found: a JPEG albedo’s PNG inside Blender’s GLB is its encoder’s - the port’s file carries the source JPEG, the row compares with the image bytes aside; a pre-PR review found and fixed three Factory-side defects the drill cannot see (a stale GLB reused after a fallback, the GLB’s absolute clip times, previews reading only the FBX - docs/Testing.md). (h) the acceptance row, built 2026-10-14: editor/RigRouteAcceptanceTest.cs, the Bake Tests row “Does the GLB rig route bake what the FBX route bakes?” - every animated glTF entry baked both ways under throwaway names, the Amplitude outputs, the imported rig (bones, mesh, placement), every role’s clip (length; bone world transforms and skinned vertices at every clip frame and curve key) and non-empty role collections and pose stream lengths compared in Unity (docs/Testing.md); BakeResult.rigRoute names the route a bake took. OWED, the user’s: the row’s run in Unity on every entry and the in-game check of each model playing its roles; only then the default flips. RUN 2026-10-27 by the user: 8 of 23 entries equal, 15 not, 1 not glTF. The fifteen, drilled on both routes’ files in a batch Unity project (docs/Testing.md, step (h), the first run): eleven were the row comparing the UNPOSED prefabs - the FBX exporter writes the posed first frame, the glTF exporter the edit rest - fixed on both sides (the GLB import poses its prefab at the primary’s first frame, the SDK’s reference; the row samples the first frame before its rest clauses); the AntiTankIFV was a REAL FBX-route defect (a stale pose-bone location exported into the idle slice; the script resets its pose bones after the rebake, the port mirrors it); the ReconDrone’s 0.01 RootNode wrapper is folded into the rig; the Lembos’ four collapsed triangles and the GreatGalley’s fragment cap were Unity’s FBX-import weld, which the Factory’s GLB mesh now applies; three pose streams were one frame apart, the SDK’s ceil of length x frame rate on a float ulp (the rule now allows exactly that, PoseStreamParity). STILL OWED: the row’s re-run on every entry after this, and the in-game check. UniversalTanks’ missing output directory is created by the port (PR #213); that PR also compares the albedo PNG’s decoded pixels instead of its encoder-dependent bytes.

(5) vehicle_rig - the plan, decided 2026-10-14 (the Lab’s Generate without Blender, by (4)’s method). Measured first: vehicle_rig.py is 3,846 lines; mode = argv[0] is probe (ported, 3a-3d), rigfast (the SKM fast path) or rig; the rig path (line 1131 to the end) is 156 top-level statements, three of them guarded functions, 34 defs in all, argv[1..67] built in one place (VehicleLabWindow.Vehicleize, line 2325). 24 saved recipes (Assets/FactorySource/VehicleLab/Recipes); by marked role - Body 22, Ignore 16, Structure 12, Wheel 10, Default 9, Preserve 9, Detail 9, Sail 5, Rudder 5, Gun 4, TailRotor 3, Turret 2, Edgecase 2, Caterpillar 2, Rotor 2, Oar 2, Flip 2, Window 2, Trail 1, Cradle 1, Rigging 1, Flag 1, Shroud 1, Muzzle 0; a second model 2, useSourceRig 1; sail folds in 12, oar strokes 15, gun recoil 18, wave rock 1 of 23, static tracks 1. The script’s stages, to be cut at its own top-level lines as the rig_anim drill cuts rig_anim.py: (1) the import, the second-model merge, per-part placement, the modifier bake, rigged-source detection, the flatten, the orientation (1131-1337); (2) the reduction tiers per role

Review of PR #151 (the opt-in C# animated slice, ChatGPT, 2026-10-11) - verified by execution

The full gate passes on master after the merge (26 checks, the deploy drill in 608 s). Found and NOT changed (the project is the user’s): (1) a successful slice run leaves its assets in the Unity project - a __haf_csharp_clip_<stamp> folder under Assets/FactorySource and four assets under Assets/Resources (atlas, Clips, ClipsPoseData.bytes, Skeleton) - the slice deletes them only on failure, and anything under Resources ships with the next bundle; one such run (13:38) is in the project now. (2) BlenderPrep.CacheRevision in the static extract key makes EVERY cached static extract re-extract once on its next bake (the stamp differs), which overwrites the extracted OBJ and its sibling textures: the static path has no hand-edit guard beyond ‘Reuse extracted’, which the busters override - the doc’s ‘keepTexture protection’ is the ANIMATED path’s albedo only. This is the overwrite the 4d note above warned about; a hand-edited static extract is lost once. (3) Call added to the member-shape gate’s readers: harmless, the gate passes. Not measured (needs Unity): RecalculateTangents now runs in the clip picker’s preview for every skinned mesh. Verified: the Documents junction is intact (0xa0000003 -> C:\GameData\Humankind), no temporary Community version folder was left, no slice entry is in the registry.

From the 2026-09-14 critical review (confirmed in source, unfixed)

Six read-only passes over the 400 commits since 08-22; every item below was re-read in source on 09-14 (line numbers are of that day — re-check before touching, per the rules above). Items already tracked elsewhere in this file were skipped. Ranked by consequence within each group.

Verification machinery (fix first — a green gate that cannot see the shape is worse than no gate)

Editor — bake pipeline

Editor — Lab / Workshop windows

Blender tools

Plugin — runtime core

Plugin — district / combat

From the 2026-08-23 critical review

From the 2026-08-22 critical review (confirmed, unfixed)

Every item below was re-verified in source during the review; the range’s critical (the strike hold reusing a stale aim marker) was fixed the same day and is not repeated here. Ranked by consequence.

Worth fixing before the next model of the affected kind

Quality-of-life / lower risk

Queued for the package release (not review findings — branding/packaging debt)

Future feature seams (mapped, not built — the discovery is done, only the build remains)

Verified clean (don’t re-litigate without new evidence)

GUID nibble-swap encoding + keep-GUID re-bake; registry corrupt-guard/atomic-write/backup lifecycle; two-window ownership merge (both directions, post-fix); Harmony patch exception discipline; cross-thread sample locking + ConcurrentQueue handoff; deploy ramp math; join/decimate + albedo-extraction blocks; frame clamping; noise-filter re-entrancy; district bake+registry editor flow; Plugin.cs config wiring.


2026-07-31 audit — “silently disarmed” class

Ten open findings from the pass that followed the Abomination spike-geometry incident (root cause: a safety net that could never arm itself). Recorded separately with file:line, in-game symptom, trigger and suggested fix: Audit-2026-07-31.md.

Top item (now FIXED in c6154a6, pending in-game verification) — the wrong-skeleton rescue was gated on Hooked (animated-or-freeze), so eight shipped STATIC models have no rescue path at all: the same failure 0c0b12f fixed, still live for them.

2026-08-16 critical review — whole framework (plugin + editor)

A full multi-agent review of the plugin and editor. All CONFIRMED findings were fixed, verified in-game/at-bake, and merged — district clone leak, hideSubPawns coexistence, coreDesc matcher unification, formation pure-repoint reform, GameBinding army-walk-root coverage, audio death/battle gate, three runtime-clone leaks, state-machine gate mismatch, the facing-after-respawn interaction, and the three bake silent-mis-bake guards (4A/2A/4B). See the dated CHANGELOG entries. What remains below is the PLAUSIBLE / low-confidence tail — deferred, not dismissed.

Bake scripts — PLAUSIBLE (ENCReload Tools/, needs a failing repro before touching gating)

Plugin — low-risk hardening (Tier 4)

Tech Requires All — open after PR #298 (2026-11-20)

Recorded at the review of the feature (Patches/TechRequireAllPatch.cs).

Tech Tree viewer — left open by the review rounds of PR #301 (2026-11-21)

Tech Tree viewer — eras and separators, left open (2026-11-22)

Tech Tree viewer — the unlock row, left open by the review of PR #307 (2026-11-22)

Data contract — low (editor ⇄ plugin)

GameBinding — remaining catalog gaps (extend the “make drift loud” template)

Progress (2026-08-16, reflection-fragility A5): the catalog now also writes a machine-readable haf_bindings_report.txt every launch, the last raw Type.GetType site was migrated onto an accessor, and a member audit took coverage from 31 types / ~49 members to 49 types / ~124 members (verified missing_members=0). See CHANGELOG + Framework-Review A5. What remains:

2026-08-17 verified critical review — surviving deferrals

A full-framework review, adversarially verified finding-by-finding against the code and this project’s own record (see the Framework-Review 08-17 row; the fixed-same-day HIGH — the glbconv source split-brain — is in the CHANGELOG). Most findings were already admitted here or ADR-settled. What survived as new and deliberately deferred: