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.
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:
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 |
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.
mixed_skin
fixture (reader drill fixtures) holds Blender’s rule on the reader, the probe and the clip player’s rig.bound_box off the double chain’s posed positions and the armature modifier’s interplay with a
detached mesh is not modelled — close, not bit for bit (no recipe has one). Animated or placed first-model skinned
meshes also keep Blender, so the preview and bounds use the evaluated pose; (c) the in-process path poses the first
model at its first clip’s start (the drill’s reference) where the Blender path showed the untouched import blend —
an animated source’s boxes can differ slightly from what the Lab listed before; (d) the preview’s brightness is a
material tint where Blender’s preview baked the textures. The preview frame is Blender (X, Y, Z) as Unity (-X, Z, -Y),
faces rewound — what Unity’s importer gives Blender’s FBX export (the PR #118 review corrected the first derivation,
(X, Z, Y)); surface normals go through the inverse transpose, independently of the visibility rays’ forward matrix;
the Bake Tests row Does the in-process probe preview match the Blender preview? judges frame, facing and cleanup in
Unity against Unity’s own import of every preview FBX the Blender probe left (37 in the project on 2026-10-03) — run it
once before trusting the turntable; (e) Matrix.Rotation’s cosf/sinf are the double functions rounded to float (every drilled angle
agrees); (f) a B_ name the first model already uses is made unique in Blender’s name order, approximated as
case-insensitive ordinal order.
Morph targets, bone-parented meshes and reader-refused glTF features also keep Blender. The kernel’s unsupported
cases remain available to the parity drill but are not used by the Lab’s fast path. Detaching a sheared child now
refreshes its own and its descendants’ PART boxes; placement_shear holds this against Blender.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:
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; BlenderExportTree.StrCaseCmp reads UTF-8 bytes as signedStrCaseCmp 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: FIXED 2026-11-07, and re-measured: GlbReader.Doubles
reads the JSON token -0.0 as +0GlbReader.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
BlenderRigExport + BlenderGlbWriter already model, and the preview FBX, which the in-process
probe preview (3d) no longer needs. Already in C#: the probe’s scene model (VehicleProbe.*: the import, merge2,
placement, islands, visibility, inside-out, custom normals, the Blender world, armature, skin and pose),
BlenderDecimate, BlenderFCurve and the deploy’s keyframe insertion, the glTF export model, the GLB reader and
writer. Not yet: bmesh’s limited dissolve and remove_doubles (the weld rig_anim’s port leaves by name), the
clustering, PCA and autocorrelation geometry - numpy double arithmetic, the first port whose oracle is numpy rather
than Blender’s C, its rules measured per operation -, the FBX preview export (LEFT by name until nothing reads it).
Steps: (a) the stage dump drill tools/vehiclerig_drill.sh - jobs from the 24 recipes exactly as Vehicleize formats
argv (the builder factored out for the jobs writer, as the probe jobs are), the script cut at five of its own lines,
the scene on record after each with the rig_anim dump’s rows (objects, meshes, vertex groups, bones, actions,
fcurves), tamper refusal, and the census of branches no recipe takes = fixtures first (Muzzle, Trail, Cradle, Rigging,
Flag, Shroud, the second model, useSourceRig, Turret, Rotor, Oar, Caterpillar); (b)-(f) the five stages in C#
(editor/BlenderVehicleRig.cs), each held row for row with EXIT:/LEFT: keys and fixtures per branch as (4)’s; (g) the
Lab’s Generate on the C# route - per recipe with an editor default initially set to Blender (C# since 2026-10-27), the lab goldens
(Tools/lab_golden, the Lab gate rows) and the output GLB read back as the acceptance, every recipe generated both
ways; (h) the default flip, after the user’s check. Estimate: rig_anim’s 1,234 lines took three days of sessions at
this rigor (10-12 to 10-14); three times the lines and heavier geometry: 2 to 4 weeks, inside the 4-8 above.
(a) DONE 2026-10-14: tools/vehiclerig_drill.sh in the gate (jobs from the 24 saved recipes by the Lab’s own builder -
editor/VehicleRigArgs.cs, which VehicleLabWindow.Vehicleize now uses too, the two fillings held equal on every
recipe by the headless Generate and by the batch-Unity harness; the script cut at four of its own lines into five
stages, the scene on record after each with the rig_anim dump’s rows and the exported GLB read back; the evidence held
complete and consistent, 45 tamper kinds refused; docs/Testing.md has the measure). All 24 recipes dumped in 90 s
(FULL=1; 18 under 40 MB in 47 s by default), 23 through all five stages and the Ehrhardt on the fast path, deterministic
(two full dumps equal with the work folder masked). Found on the way: a Blender 5 action with several slots repeats a
curve path per slot (the dugout canoe’s ‘Take 001’), so the FC and K rows carry the slot. The census says which branches
need a fixture before their port: the modifier bake, the script’s own exits and deaths (no recipe takes them), and the
roles the plan lists with one or no recipe. Next: (b) stage 1.
(b) stage 1 DONE 2026-10-15: editor/BlenderVehicleRig.cs + vehiclerig.exe --stages 1 in the drill - the arguments,
the import (rig_anim’s ImportScene, factored out), the bone-shape purge, the brightness line, the second-model merge,
the flatten, the loose split, the placements, the ignored parts, the orientation and transform_apply; 22 of the 24
recipes equal to Blender row for row (153,497 rows), the 2 .fbx sources left by name, the 20 fixtures for the branches no
recipe takes equal (tools/vehiclerig-drill/vehiclerig_fixtures.py: nine scenes and eleven of the script’s exits and
deaths, keyed EXIT:1: / DIES:1:), 13 kinds of stage-1 tamper refused (11 in the gate) (docs/Testing.md has the
measure). Found: transform_apply skips a matrix within 1e-6 of the identity; separate LOOSE’s face order is the
walk’s with each edge’s faces in radial order; a slot identifier does not follow its object’s rename; an animated
object’s import world is its first clip at frame 1 (keys from frame 0); a root’s matrix_world = mw is a quaternion
round trip - the fixtures caught the last three after every recipe agreed; the review then found the rig path’s
argument-time lines belong after the merge lines, the orientation’s pad/cut, Python’s half-to-even %.Nf and the
exits and deaths no fixture had.
(c) stage 2, part 1 DONE 2026-10-15: the WELD tiers in C# (editor/BlenderVehicleRig.Stage2.cs, editor/BlenderWeld.cs:
bmesh remove_doubles through a port of BLI_kdtree and weld_verts, the sharp marking, the decimate modifier through
BlenderDecimate, the new datablock’s name) + vehiclerig.exe --stages 2 in the drill: 20 of 24 recipes equal row for
row after stage 2 (306,717 rows), 2 FBX left by name, 2 left by name at stage 2 (the dissolve tiers), 31 fixtures equal,
9 stage-2 tamper kinds refused (the rows now carry the edges, the sharp_edge attribute and the custom-normal shorts) (docs/Testing.md has the measure and the rules: the pool’s free list, the balanced-order
duplicates search, NORMALS_CALC after the operator, the custom-normal fans stopping at sharp edges). Found: the C# BMesh
could not create after a kill (now BLI_mempool’s free list); a packed vertex pair as a plain long key hashes its halves
together (6 s to 83 ms with the mesh’s comparer). Next: (c) part 2 - the SOUP tiers (RIGGING, SHROUD): _dissolve_limited
= BM_mesh_decimate_dissolve_ex (the edge heap by -cos of the face angle, BM_faces_join_pair, the vertex heap by the edge
angle, the degenerate checks; BSP-chunked over 4,000 faces with interior elements in index order) and then
bmesh.ops.triangulate on the n-gons (BM_face_triangulate BEAUTY = polyfill_2d + beautify); two recipes, 72 parts. Then
(d) stage 3, the rig. The plan’s line for (c) as a whole stood: the reduction tiers per
role (limited dissolve, the welds, decimate; bmesh’s dissolve_limit and remove_doubles have no C# yet - the rig_anim
port leaves the weld by name - so their rules are measured per operation), continuing from the stage 1 scene.
(c) stage 2, part 2 DONE 2026-10-16: the SOUP tiers in C# (editor/BlenderDissolve.cs: bmesh.ops.dissolve_limit as
BM_mesh_decimate_dissolve_ex - the edge heap by -cos of the face angle, BM_faces_join_pair, the wire and lone-vertex
cleanup, the vertex heap by the edge angle with the degenerate test and bmesh_kernel_join_edge_kill_vert;
editor/BlenderPolyfill.cs: bmesh.ops.triangulate as BM_face_triangulate BEAUTY - the quad rule, BLI_polyfill_calc’s
ear clipping with its kd-tree of concave corners, BLI_polyfill_beautify; BlenderVehicleRig.Stage2.cs: the script’s
_dissolve_limited chunking - one call at or under 4,000 faces, else BSP cells at the median centre with the interior
edges and vertices in index order). No stage 2 decline is named any more: 22 of 24 recipes equal row for row after
both stages (307,475 rows; the 2 FBX left by name), 36 fixtures equal with three new for the soup tiers (a flat grid
to one quad and back to two triangles, an L-shaped strip’s concave hexagon through the kd-tree beside a quad, a
4,800-face grid through the BSP cells), 7 unit tests (Tests/VehicleRigDissolveTests.cs; 1,760 tests). Rules in
docs/Testing.md. Review of PR #177 (2026-10-16) reproduces the cross-cell splice on a valid 4,002-triangle source:
the model records Blender’s exact TypeError (a stage 2 death) before mesh write-back, held by a unit test and the real-script
fx_d_chunk_splice fixture. A second unit test pins the author’s two-disk edge lookup fix; fx_c_soup_attributes holds
custom normals, colours and two UV layers - the colours only since the verification of that review added a colour field to
the MESH row (no stage row had compared colours; a colour plant passed every drill until then). Full positive comparison: 60 of 62 jobs equal (24 recipes, 38 fixtures; two FBX
left by name), 307,490 rows; 1,762 unit tests. OPEN: dedicated fixtures for the remaining rare dissolve/triangulation branches
(double-face reuse, degenerate refusals, kill-degenerate/kill-duplicate, wire cleanup, tangential/desperate polyfill,
concave-quad flips, triangulate doubles). Independent temporary probes matched 4,400 cases; branch coverage was not measured.
Next: (d) stage 3, the rig (wheel clustering: axle axis, PCA, spoke symmetry; the role sets; the join per bone) - numpy double
rules, measured per operation against the stage 3 dump.
(d) stage 3 is split by branch, each part turning more jobs equal (a census of the recipes’ stage 3 roles, 2026-10-16): d1 the
frame every rig shares (the armature, Root and the rock’s RootHull, the wheel clusters and their bones, the rudder/preserve/flip
sets, the rigid skinning, the join per bone: 10 recipes), d2 sail, rigging on the sail and flag (1861, Salegs, Great Eastern,
BGM-71), d3 turret, gun, muzzle, cradle and trails (M114, Wespe), d4 the rotors (Bell, RAH-66, Ilya Muromets), d5 the oars
(Khelandion, Triconter), d6 the tread rig and its path-instanced link bones (Jagdpanzer); a job taking a later part’s branch is
left by name until then. (d) part d1 DONE 2026-10-16: editor/BlenderVehicleRig.Stage3.cs (the join is rig_anim’s, factored
out of its stage 4 into BlenderRigAnim.JoinMeshes) + vehiclerig.exe --stages 3 in the drill: 10 of 24 recipes equal row for
row through stage 3, 12 left at stage 3 by name, the 2 FBX by name; 41 of 42 fixture jobs equal (four new for stage 3:
fx_r_wheels, fx_r_axis, fx_r_many, fx_r_missing_wheel), the tread fixture left; 457,526 rows; eleven plants, one per
rule, each caught on its own job; 1,776 tests. The review before the PR found four defects, fixed with a fixture and a plant
each: the join’s empty slot for a slot-less mesh, the exit line’s plain name, bound_box stale after stage 2 (Blender measures
a wheel on its pre-reduction box), and nodes in no scene - the script CRASHES in stage 1 on them (the Orphan Nodes collection is
not in the view layer); static tracks now rig as body parts. After: 47 of 47 fixture jobs equal through stage 3, 457,633 rows;
1,776 tests. Review of PR #178 fixes Python repr escaping for non-printable Unicode part names (a real-script regression
and an independent exhaustive Unicode checksum), and adds 15 stage-three semantic counterexamples plus an intact supported
control to the gate; altered bones previously passed its stage-two-only tamper checks. After: 1,785 unit tests, 57 of 71
full jobs equal through stage 3 (457,633 rows; all 47 fixtures, 10 saved recipes; 12 later branches and two FBX left by name).
Temporary probes also match freed-name reuse, blank pitch and NaN pitch with a one-frame cycle. Rules in docs/Testing.md. Next: (d) part d2, the sail, rigging and flag bones.
(d) part d2 DONE 2026-10-16: the SAIL bone (its head on the keel line under the sails’ box, the SailF1..F3 fold chain and the
canvas’s height bands under argv[71]), RIGGING riding the sail as its own mesh, the FLAG bone (struck below the keel, or hinged
at its top under flagfold=). 14 of 24 recipes equal row for row through stage 3 (the 1861 frigate, Salegs, the Great Eastern
and the BGM-71 new), 8 left at stage 3 by name, the 2 FBX by name; two fixtures for the branches no recipe takes (fx_r_sail:
the fold’s four bands, a sail part also a wheel, rigging on the sail, missing names, a struck flag; fx_r_flagfold: the
folding flag, rigging without a sail); 63 of 73 jobs equal (FULL, 457,785 rows); nine plants caught; 1,785 tests. Next: (d)
part d3, the turret, gun, muzzle, cradle and trails.
(d) part d3 DONE 2026-10-16: the TURRET bone, the GUN assembly (the pivot slid along the tube, a marked brake pinning the tip,
the published pivot / fire-origin / cradle / GUNSPAN lines, under recoil the RecoilArm + Barrel split) and the TRAIL bones; the
thirteen dials Python reads among the names (argv 29-47) now die where it does. 17 of 24 recipes equal row for row through
stage 3 (M114 - recoil, a cradle, two trails -, the Wespe and the Jagdpanzer - its static tracks rig as body parts - new), 5 left
at stage 3 by name (the rotors and the oars), the 2 FBX by name; 63 of 63 fixture jobs equal; 80 of 87 jobs (FULL, 454,850
rows); ten plants caught; 1,854 tests. Next: (d) part d4, the rotors.
(d) part d4 DONE 2026-10-17: the MAIN and TAIL ROTORS - one cluster per group after the wheels; the main hub’s axle from its
vertices’ np.cov / np.linalg.eigh (editor/BlenderNumpy.cs: numpy 2.3.4’s lapack_lite DSYEVD for a 3x3, bit for bit on 3,000
Blender-numpy clouds under .NET and Mono), the tail’s 90 degrees to the boom ring, the forced axes, the tail trim, the main bone
along -axle and the tail fan’s align_roll. 20 of 24 recipes equal row for row through stage 3 (Bell, RAH-66 and the Ilya
Muromets new, equal on the first run), 2 left at stage 3 by name (the oars), the 2 FBX by name; five fixtures, all equal;
107 of 113 jobs (FULL, 455,358 rows); 27 of 30 drill plants caught (one equivalent; two hidden by the axle’s float32, caught by the unit
test) plus two more numpy plants caught by the unit test; 1,885 tests. The source-reading review found no divergence; its gaps closed: a ONE-VERTEX
hub (np.cov gives NaN, eigh raises LinAlgError - measured in Blender’s numpy - and the script’s except takes the axis of least
spread of the parts’ centres, now ported instead of declined), the hub listed after a blade, a tail rotor alone, Eigh3’s decline
on NaN. Next: (d) part d5, the oars.
(d) part d5 DONE 2026-10-17: the OAR bones - the marked parts’ connected islands (bmesh’s disk order), per bank the pole direction
from the islands’ power-iteration PC1s, the islands projected across it and clustered single-linkage on a grid of merge-eps cells
(CPython’s math.hypot, ported from vector_norm), one Oar_%03d bone per cluster at its oarlock; the blade roll and the length rewrite
the rest geometry through Quaternion @ Vector and matrix_world.inverted(); oar parts skin per vertex and keep their own mesh. 22 of
24 recipes equal row for row through stage 3 (the Khelandion, 96 oars, and the Triconter, 32, equal on the first run); no recipe is
left at stage 3 by name, the 2 FBX by name; seven fixtures; 117 of 122 jobs (FULL); 32 of 34 drill plants caught (the union
direction is equivalent - groups follow their first member -; a sequential sum is below the drill, the unit test catches it); the
source-reading review found CPython 3.12+’s sum() of floats COMPENSATED (Neumaier), not sequential: PySum now at every ported float
sum (the oar metrics, the PC1 rows, the pivots mean, and d4’s least-spread rotor axle), pinned by Blender-measured unit cases. An
infinite blade roll (NaN geometry; Blender then dies in stage 4) is left to Blender by name: a NaN’s sign bit follows each
compiler’s operand order. Next: (d) part d6, the tread rig.
(d) part d6, the TREAD RIG - FIRST PART DONE 2026-11-16 (the subdivision, polygon meshes through the rows and the export, the
carrier-skinned conveyor: three fixtures equal to Blender through the export; docs/Testing.md) and SECOND PART the same day (the
link cells, the link and shuttle bones, their keys: fx_r_tracks_hybrid and the Bradley equal through the export) and THIRD PART
(the rigid links: the five rigid fixtures in the stage comparison) and FOURTH PART (the stage 5 passes on a polygon tread: five
fixtures). OPEN, each named in the code: a part that is both a live tread and Two-sided; a tread with no sprocket or idler cluster
(the script’s own ValueError); a tread part also marked Flip, or a rudder/canvas with its own shell (kept from the review of PR 290: no fixture proves either); the exporter’s validate() of polygons. Was open before the fourth part: the three stage 5 passes on a polygon tread (inside-out fix, double-sided shell, the Two-sided scene) with the exporter’s
validate() of polygons. The history: DEFERRED 2026-10-17 (step (e) taken first). Measured before starting: no comparable job reaches it -
the Bradley, the one recipe with live tracks, is an FBX source (the C# reads none: left at stage 1 by name), the Jagdpanzer’s
tracks are static -, so it would turn no recipe equal; and it is structural, not one more branch: the tread’s
bmesh.ops.subdivide_edges(cuts=1, use_grid_fill=True) (bmo_subdivide.cc, 1,435 lines) leaves N-GONS where a face has one or
two long edges, and the stage model holds triangles only (MeshData, the rows, the join), so d6 needs polygon meshes, BM_edge_split
and BM_face_split with their UV / colour / custom-normal interpolation, the operator’s patterns (quad grid fill, tri 3-edge, the
two-edge connect), the link pitch’s trigonometric autocorrelation (UCRT cos/sin, compensated sums), the wrap bands, the
belt-around-pulleys path, the link cells and the link/shuttle split, and a second edit-mode session (every bone’s rest through
ED_armature_to_edit and back). Worth it once a glTF tank with live tracks exists, or with the native FBX reader.
RE-MEASURED 2026-11-06 (the d6 oracle PR): with the native FBX reader merged, the Bradley is still LEFT at stage 1 by name - a
skinned .fbx the vehicle import leaves because the direct FBX and glTF round-trip poses are not equivalent - so the port would
still turn no recipe equal and could only be held to fixtures. The two script defects below are fixed and fixtured first.sorted(_names); the
fixture fx_r_tracks_fallback is dumped twice per drill run and the dumps held equal, docs/Testing.md). Was: OPEN (2026-10-17, found sizing d6). The carrier
vertex groups are created by iterating a SET of bone names (_vgs = {n: o.vertex_groups.new(name=n) for n in _names}), and
Blender’s Python has string-hash randomization on (sys.flags.hash_randomization 1: two runs printed the same four names in
two orders), so the group order - and every vertex’s group indices - changes from run to run. Only the fallback writes those
groups (no link pitch found: _link_fund <= 0.03); link mode removes them and builds its own in a deterministic order. The fix
is one word: for n in sorted(_names). A port can only decline the fallback until then._tc the tread loops have reboundrecoil_geom; fx_r_tracks_recoil reproduced the forward kick under the old script and the backward one under the
fix, docs/Testing.md; the C# Stage4 already used the tube centre). Was: OPEN (2026-10-19, review of #186; a d6
port requirement). _tc is the tube centre (1786, _combined_bbox(tube_names)) and the recoil sign test means it so
(3620-3621: _test = (_tc - _pivot)...; _rsign = ... (_pivot + _test - _tc).dot(_bore_d)), but the track skinning loop (2258,
_tn, _tnames, _fcl, _rcl, _tc, ... = _track_by_name[o.name]) and the conveyor loop (3371) rebind the module-level _tc to the
LAST track’s bbox centre on the way. Unreachable today: the port declines non-static tracks (d6) and tracks_static empties
track_names (1134-1136), so every comparable job keeps the tube centre - as the C# does (Stage4.cs, st.RecoilCentre). Once d6
is ported, a tracked gun with recoil (tracks + guns + recoilDist > 0) diverges: Blender’s kick direction is then decided by a track’s
centre, and may kick the barrel the wrong way. Fix in the script: a local name in the recoil block (_gun_c), or _tc re-read
from the tube span. The d6 port needs a fixture with live tracks AND recoil, and a decision - model the script’s rebound _tc
(bit-exact) or fix the script first (the Blender route then changes for such models).
(e) stage 4, the ACTIONS, is split like (d): e1 the frame every animated rig shares (the Spin action, the shared clip, the wave
rock, the wheels and rotors, the LINEAR keys, the leftover strip and the action purge), e2 the clips riding Spin and the Furl
stance (the rowing stroke, the sail and flag holds), e3 the separate clips (the trails’ Deploy, the gun’s Recoil). (e) part e1
DONE 2026-10-17: editor/BlenderVehicleRig.Stage4.cs + vehiclerig.exe --stages 4 in the drill (the gate now compares stage 4,
with an intact stage 4 control and seven S4_* tampers on the fx_r_wheels seed). 15 of 24 recipes equal row for row through stage 4
(the Jagdpanzer - static tracks: the wrap carriers and its idler’s 14-fold snap -, the RAH-66, Bell and Ilya Muromets rotors keyed
every frame, the Wespe, the canoe, the gatling and organ guns, the Ribauldequin, the Romanic, Dragon, Teutonic, Svea, Bremen and the
Espana); 7 left at stage 4 by name for e2/e3, the 2 FBX. Found on the way: frame_set evaluates object actions too - a part whose
action survives the join ends stage 4 moved by it (fx_r_rotor’s mast, fx_e_speeds’ preserved mast); purging a colliding “Spin.001”
(an imported clip named Spin) unlinks the armature. Seven fixtures (fx_e_rock, fx_e_rock2, fx_e_rock3, fx_e_ground, fx_e_speeds, fx_e_rockdefault, fx_e_long); 103 of 129 jobs equal
through stage 4 (FULL, 461,465 rows); 27 of 29 plants caught (a sequential sum below the drill, the unit tests hold PySum; a replaced
key equals its last sample on every input the rock reaches); the source-reading review’s three divergences fixed (the ground band on
the rock-DEFORMED meshes, frame_set’s curve values in the final pose, non-finite dials declined); 1,945 tests. Next: (e) part e2, the rowing stroke and the Furl clip.
PR #184 review fixes the evaluated-pose timing within that ground band: it retains the pose from the last frame_set, before
the final rock assignment to the original pose. The wrong pose changed wheel speeds in 29 of 160 independent scenes; all now
match Blender on CLR and Unity’s 64-bit Mono. Three native fixtures and unit cases cover ordinary and repeated-frame sampling
plus a no-rock control; 1,948 tests pass.
(e) part e2 DONE 2026-10-17: rowing on Spin (sweep mirrored per bank, dip about the already mirrored local axis, lift and rake,
one quaternion key per frame, the oar period fitted over the shared clip); the separate Furl stance (sail strike or three-joint
curl with drape/reverse, flag flying or folded); explicit raised-sail and struck/folded-flag Spin holds. Stage 3 retains the
oars’ dip axes and the sail/flag hinge axes, and each authored action owns its keys and handles. Rowing and Furl INSERT keys
without frame_set; only actual frame_set evaluations affect evaluated bounds. Original RNA values are written only when
unequal, including signed-zero history under the lazy evaluator. Ten new native fixtures, seventeen unit cases (1,965 tests),
ten of ten implementation plants caught, and nine repaired e2 corruption controls with intact supported row/Furl seeds.
FULL: 21 of 24 recipes and 130 of 142 total jobs equal through stage 4 (499,914 rows, every key compared); the twelve named
deferrals are two FBX, two non-UTF-8 names files, an infinite blade roll at stage 3, six e3 jobs and the long-Spin fixture.
All 160 independent e2 scenes match on CLR and Unity’s 64-bit Mono; the previous 160 e1 probes still match. The full drill
rejects 136 kinds of damaged evidence. Non-finite rowing angles and Furl clips past 100,000 frames remain named limits.
(e) part e3 DONE 2026-10-18: the separate Deploy action (trails swung about world up, direction chosen by the spade test,
the gun raised on the same frames, the same-direction warning), and Recoil (the far arm’s signed kick and return, a held
lead-in, deployed trails/gun held through the shot). Stage 3 retains the hinges, gun span and recoil geometry. Both clips
insert keys without frame_set; Recoil’s view-layer update evaluates its own action at the existing frame. It does not
advance unrelated object actions: three independent probes caught that distinction, now held by fx_e3_action_names and
two unit cases. The zero-span tube’s stage-four division failure is reproduced and compared by the drill. Nine native
fixtures, sixteen unit cases (1,981 tests), ten of ten implementation plants caught and ten repaired e3 corruption controls.
All 120 independent e3 scenes match Blender on CLR and Unity’s 64-bit Mono, including source action collisions, tilted and
vertical guns, trail counts, disabled spread, negative elevation, lead-in and half-even kick timing, rock, flags and oars.
FULL: 25 saved recipes (including the newly saved Global Hawk) plus 127 fixture jobs; 23 of 25 recipes and 146 of 152 jobs
equal through stage 4 (501,773 rows, every key compared). Six named deferrals remain: two FBX, two non-UTF-8 names files,
the infinite blade roll and the long-Spin limit. The full drill rejects 146 damaged-evidence kinds (139 without key rows).
(f) stage 5 DONE 2026-10-18: inside-out island correction, marked flips and inset back shells with the source’s role
exclusions, followed by GLB export through the shared exporter. BMesh duplication preserves corner layers, raw custom-normal
shorts and rigid/fold-chain weights; welded sharp edges split export normals. The inset uses the last evaluated pose’s
whole-model bounds. Material scopes from both imports retain texture/image indices, local unnamed-image names and flat or
tint-absorbed brightness; brightness requiring edited image bytes, JPEG-alpha image re-encoding and auxiliary FBX preview
remain explicit named limits. Export samples full action ranges without widening the scene range, handles orphan pose actions
and neutral joints, and preserves validation and post-export pose effects, including sampled signed-zero write-back.
Eleven native fixtures and sixteen unit cases (1,997 tests) hold finishing, export and material regressions. All 80 independent
export probes match Blender on CLR and Unity’s 64-bit Mono. The drill compares every exported GLB row and the complete file
bytes, with twelve repaired stage-five corruption controls and intact supported seeds. All eleven implementation plants
are caught. FULL: 25 saved recipes plus 138 fixtures; 155 of 163 jobs compare through stage 5 (eight named deferrals),
with all 112 supported GLBs byte-identical. The complete drill rejects 158 damaged-evidence kinds (151 without key rows).
(g) Generate wiring implemented 2026-10-18: BlenderVehicleRigInProcess runs the five stages and atomically replaces the GLB;
script exits/deaths remain failures, cancellation propagates, and named limits/read failures use Blender. Each recipe stores
Generate backend (editor default/Blender/C#); HAF.VehicleGenerateRouteDefault, when unset, blank or unrecognized, means the C# route since 2026-10-27 (it was Blender until then; a valid saved choice still wins; the user: “by this point the factory default should also be C#”).
The C# preview reads the generated GLB through HafModelRig, with Spin first and owned assets cleaned up. Diagnostics and the
gun-span sidecar keep the existing contract. The every-recipe backend acceptance row forces both routes through the actual
Vehicleize entry point, compares GLB bytes/read-back, ordered summaries and sidecars, and judges the Blender reference against
Lab goldens. Fallbacks are separate from C# passes; unexpected port failures fail acceptance. Merged sources are fingerprinted.
The vehicle drill now exercises the wrapper on all 112 supported full-corpus exports; all files/logs match. Sixteen wrapper
unit cases bring the suite to 2,013. Native Unity checks cover seven fixtures, recipe persistence, preview ownership/order,
every preview frame against independently sampled Blender GLB poses, and file/log/sidecar/preview-scale counterexamples.
All 25 saved recipes produce matching GLBs/logs/sidecars on both route selections: 22 use C#, two FBX sources and Espana’s
JPEG-alpha path use Blender. Espana’s existing golden has stale source and recipe fingerprints; acceptance correctly flags
that baseline for review. The isolated run retains its candidate; the project’s golden is unchanged.
Baseline review DONE 2026-10-18: Espana’s fused source and recipe names were audited; a fresh Blender golden and Global
Hawk’s missing golden matched independent generations and were installed in the local modding project. All 25 recipes
complete with no failures (22 C#, three named Blender fallbacks), and all 52 input fingerprints remain unchanged. The native
stale-baseline regression now changes its own fixture instead of requiring the user’s Espana golden to stay stale; it also
verifies a refreshed baseline. Details and the remaining checklist: Vehicle Generate acceptance.
(h) default flip DONE 2026-10-27: C# is the factory default, with valid saved recipe/editor choices preserved. The linked checklist retains the per-model visual/runtime acceptance record. d6 remains deferred.
Native JPEG-alpha export (2026-10-19): production Generate retains the original JPEG, whose glTF alpha is 1, rather
than requiring Blender’s PNG re-encoding. Espana now generates through C#. Acceptance checks identical decoded RGBA
pixels and strict non-image GLB bytes/JSON; the stage oracle keeps its original byte-exact rules. Image brightness
editing, moving treads and the other named limits remain separate work. Neither backend default changes.
Review of #185-#193 DONE 2026-10-19 (four reviewer agents; no P1): the two stale Lab goldens re-blessed through the drill’s
RunSaved/HAF_GENERATE_REBLESS path (verified captures for the user to install), the acceptance fails on an unexpected Blender
fallback (ExpectedFallback) and the quick Lab row pins Blender, the vehicle drill accepts only the named stage 5 deferrals and
requires byte-identical exports, the Recoil _tc source defect recorded (above, beside d6), the JPEG guard refuses RGB JPEGs,
the deadline / refused write fail the Generate instead of running Blender (stage 2 polls the checkpoint per part), a normals
worker’s fault stops the others and is rethrown as itself, the preview copies meshes that are assets already and the replaced
_rigmeshN assets are deleted; the DONE line’s gun count follows the script’s lists. Open from the review (P3): the Lab window
goes blank after a failed Generate although the old GLB is kept; BlenderAvailable() is now File.Exists for all 17 callers
(a .cmd shim reads as “no Blender”); detection is polled on repaint; the “80 export probes” / “11 plants” of #187 rest on
tooling that is not committed; fixtures missing an X-axis sail yard or flag axis and trails + gun + recoil at elevation 0.
The byte-comparison skip bit on 2026-10-20: the rig_anim drill’s S5_XGLB_sha tamper was seeded on the first dumped job, and
the fused galley (23 images, one re-encoded by Blender) is a job whose GLB bytes the model does not compare - the flipped hash
passed as intact and the gate said so. Fixed on master (64e31cc, 2026-10-29): the tamper is seeded on an image-free export
block with its own control (jobs_sha.txt / intact_sha.txt), and the drill asserts that control’s GLB bytes were compared. GlbRowsCompare reads such an image’s
bytes out of Blender’s own file (the rig drill hands it every shard’s work directory through RIGANIM_GLB_DIR, part of the
oracle’s record) and compares the rest of the file bit for bit; the shell requires every exported file compared whole
(140 of 140), a second sha control and tamper on an image-bearing export (S5_XGLB_sha_image); the plant (the old
skip back) FAILS the drill: 131 of 140 exported files compared whole. The vehicle rig drill hands no file and had no such leave (110 of 110 byte-equal); the deploy export drill
hands its file and takes the same path.
PR #262 review (2026-11-08): the borrowed image’s hash must match its IMG row (the row previously supplied its own expected
hash), and finally restores every temporary image even when a later image is missing. Two failing-before regression cases
pass after the fix (2,581 tests total). The SHA and new IMG-hash tampers explicitly use the re-encoded JPEG fixture and
require nonzero image-borrowing coverage, rather than accepting an arbitrary image-bearing export as the control.
The probe on all cores DONE 2026-10-19 (the user, after a reviewer’s remark that the probe was not optimised): measured
first - the BVH build, the inside-out verdict and the part meshes ran on one core, and the island walk’s HashSet<long> used
long’s own hash (2.1 s on a 72k grid); every phase now parallel or bucketed, every row byte-identical on the 84 drill inputs,
16.25 s -> 4.66 s (details in docs/Testing.md). Left: the biggest part’s gather and normals are the critical path of the part
meshes (0.6 s of the Salegs’ 1.55 s). The per-vertex delegate arrays, skinning/bounds scratch allocations and no-file-normal
vertex lists were removed on 2026-10-20: the Unity benchmark reduces read + probe time by 6–9% across four source models,
with identical output hashes (docs/Testing.md, Vehicle Probe allocation performance). GlbReader parsing remains a separate cost.
The heaviest kernels went native on 2026-10-21 (ChatGPT’s C++ hypothesis, measured first: Unity’s Mono ran the same C# 2.5-3.4x
slower than the .NET JIT, and the fan walk of the custom-normal encode/decode was 90% of the part-mesh CPU, not the vertex
transform the suggestion named): encode/decode, the BVH build and the world transform run from native/ through
HafNativeKernels.cs, the Saleg’s probe 2.86 s -> 0.87 s in Unity, every hash equal (docs/Testing.md, Native kernels). The prep’s
edge collapse followed the same day (native/hafdecimate.cpp, byte-equal): the Unity prep of the Saleg’s to 24,000 triangles
21.2 s -> 13.8 s, the collapse itself 14.2 s -> 9.2 s - only 1.5x, because the loop is bound by memory latency (a 5-million-node
heap, random walks over the link arrays), not by Mono’s codegen. Left on the prep: its managed half (the layout, the exporter’s
mesh layout, the GLB assembly: about 4.6 s of the 13.8 s in Unity), and GlbReader’s read, 0.47 s of the Saleg’s 1.34 s probe.
The Workshop fuse followed (2026-10-25 to 27: column and twin census native, the occluders read once, four groups at a time,
the gather and weld without per-vertex garbage, then the weld walk and the side view as kernels, then the file parsed and
its frame read once per fuse; the Saleg’s 22-group fuse 148.7 s -> 37.0 s in Unity, bytes unchanged).ConditionalWeakTable; Unity’s Mono throws InvalidCastException from inside its TryGetValue once the collector has
run over the table, so every Probe and Fuse in the editor failed with “Specified cast is not valid” - while 2,184 .NET
tests passed and a Unity BATCH run of the same probe and fuse passed too (one parse, then quit, before any collection).
Fixed by a weak list (GlbDisconnectedParts.CountsOf). The game followed on 2026-11-05: the drop watch’s table returned a
collected record while a 180-turn save loaded (4,600 casts, then a native crash reading it); the plugin’s tables are
WeakKeyed<T> now and SessionStateTests refuses weak-table storage in static/instance fields and generic containers.
Values in this replacement must not retain their own weak keys; factories run outside its lock and publish one
canonical value even after re-entry. The lesson is wider than the table: Mono-only failures that need a
collection or a second call will not show in a batch harness that does one thing and quits. Wanted: a Unity-Mono leg
for the Workshop in a gate drill (as the native kernels drill has for the probe), running a probe, a fuse and a second
probe in one editor session with a forced GC.Collect() between them. Left on the fuse, by
the splits of 2026-10-27 (docs/Testing.md, Native kernels), summed over the 22 groups: the weld kernel 43 s (the walk at memory
speed; 7.2 s on the largest group), the exposure stage 39 s (the native column and side queries, the sheet walk), the twin
census 17 s (6.1 s on the largest group), the gather 14 s. The wall is the largest group’s own chain (37 s of stage time);
below that only intra-group parallelism of the weld or the gather would pay.VehicleProbeAllocationTests.Skinning_reuses_private_scratch_..._on_multiple_workers flaked once in a push gate (2026-10-21)
dotnet test
step and passed in 10 full-suite runs afterwards on the same branch and on master. The test calls only BlenderSkinner.Vertex
(PR #198); nothing in the native-kernels change runs in it. Not reproduced; if it fails again, widen the budget or pin the
measurement to one warmed worker before blaming the skinner. Failed again 2026-11-07 (the strict JSON reader’s push gate, 1
of 2,562; 3 of 3 in isolation afterwards): the warm-up ran only the weighted vertex, so each worker’s FIRST zero-weight and
unskinned calls ran inside the counted window; the warm-up now takes all three call shapes. The budget stands.test_parallel_gate.py’s lane-steps test timed out in a push gate (2026-11-08): its shell run takes 12 s alone against a
15 s subprocess timeout, and the gate’s parallel steps (the parity-stamp drill, the native kernels drill) load the machine - the
suite took 252 s and 278 s in that day’s gates against 10-20 s before. The timeout is a hang guard, widened to 120 s; the
tests’ assertions are unchanged.Native SDK skeleton smoke test — FIXED (2026-10-19). Native multi-material atlas remapping assigned transient
meshes to the saved GLB rig prefab; SaveAssets could serialize missing mesh references before skeleton import,
producing a NullReferenceException in Skeleton.FillBoneEntry at IL 0x1b (also reproduced with a PNG control).
Persist every transient skinned mesh in the owned native anim/ cache and save the prefab before the atlas
SaveAssets/Refresh. A native regression reloads two renderers, including a no-UV mesh, and checks data and
idempotence. An isolated Espana wave variant reduced to 20,000 triangles completes the C# SDK skeleton/clip bake.
The unreduced variant exceeds the ordinary eight-fragment budget; the current user’s recipe has no animated
channels. Only the throwaway smoke test enables wave rock; no user source/recipe or production golden changed.
gun_bore, the
breech->muzzle span; a zero span is a stage 3 *** WARNING with no arm instead of a stage 4 ZeroDivisionError; fx_r_pivot_end
and fx_r_gunpoint equal to Blender in the drill, fx_r_gunpoint moved out of the exit set; review of PR #258 also moves
Deploy’s lift direction to the full bore, since a muzzle pivot reversed elevation and the clearance result there too;
six unit cases and fx_r_pivot_end_raise / fx_r_pivot_end_lower cover it; docs/Testing.md). Was: OPEN
(2026-10-16, found porting stage 3 part d3; the C# port reproduces both bit
for bit, so fixing them is a script change plus a port change). (1) With gun_pivot at 1.0 and recoil on, the bore direction is
(gun_axis[1] - gun_axis[0]).normalized() with gun_axis[0] the head - at the muzzle - so the bore is the float32 residue of
muzzle - head: +Y on fx_r_pivot_end, exactly zero on the Wespe’s coordinates (the RecoilArm then sits on the Barrel, no arc).
The bore should come from gun_bore (breech -> muzzle). (2) A tube whose points coincide (a zero span) gives a zero bore, and
stage 4 dies of ZeroDivisionError: float division by zero (fx_r_gunpoint, keyed DIES:4:). Neither is reachable on a real
gun’s geometry at pivots below 1.gun_axis - it was bound only by the deploy block - and the lift as a WORLD rotation, not the pose bone’s bone-frame
quaternion; the port models the block in float32, two unit cases from the fixture’s numbers, fx_r_recoil_buried takes the
warning branch in the drill; docs/Testing.md). Was: OPEN (2026-10-18, found porting e3). The tube
joins as Mesh_Barrel, but the clearance code searches for Mesh_RecoilArm. Ordinary rigs therefore never print a breech
clearance result or ground warning. The port preserves that omission; an unusual scene actually carrying Mesh_RecoilArm
is declined by name until that branch is verified. Fixing the script and port together belongs with the recoil defects above._pn = _parent.name before mode_set;
the port models the exit; fx_s4_socket_sort and fx_s4_socket_unicode_sort EXIT:4 jobs in the drill; docs/Testing.md).
Was: OPEN (2026-10-14, found by the stage 4 fixtures). The
“would sort BEFORE its parent” error prints _parent.name after bpy.ops.object.mode_set(mode='OBJECT') has freed
the edit bones: four Blender runs of fx_s4_socket_sort printed the right name once, an empty name once, and twice
the dump died of a UnicodeDecodeError reading the garbage; a fifth (2026-10-16, the part 2 drills) printed garbage with
a tab in it, so the dump’s LOG row had 4 fields and the drill FAILED on consistency (a rerun passed). The exit itself is
right (code 1); only the message is undefined. Fix: take _parent.name before leaving edit mode (one line, as the no-parent exit already does with its
bone list). The C# model leaves the case by name until then.A sliced attack/move role clip never keeps its translations FIXED 2026-11-07 (the floor table keyed by the role’s
resolved action, script and port together; review also scopes permitted paths per action, preventing attack paths from
leaking into below-floor move/deploy/primary clips; native caches are invalidated;
docs/Testing.md). Was: OPEN (2026-10-13, found by the stage 3 fixtures).
rig_anim.py’s legacy keepTranslations keys its role floor table by the clip’s SOURCE name (cn.split('[')[0]), but a
sliced role clip is the action <source>_<role>_<f0>_<f1>_<step>, which matches neither key, so _keep_acts is
empty and the script logs “no attack/move-role clip found” (fx_s3_keept_kept, Blender’s own run). Only whole-action
role clips keep slides on the legacy path. Registry impact: UniversalTanks’ attack and move roles are whole actions
(105 paths kept before the review); no legacy recipe slices a role clip today. The FULL drill covers that whole-action
recipe too, because correcting cross-action retention can change its output.
VehicleProbe.BlenderSkin.cs skins in the importer’s numpy float32 chain - and the probe drill’s FULL=1 with live
Blender on 2026-11-08 holds every inside-out verdict, the three parts below included, and every vertex position bit for
bit (154 files, 16 jobs). Was: OPEN (2026-10-02, found by 3c). Blender’s importer skins a
rigged mesh into its bind pose in numpy float32: per joint, (bind matrix) @ (inverse bind matrix), where the bind
matrix is GUESSED from the inverse bind matrices (guess_original_bind_pose, on by default: Eigen’s 4×4 inverse, a
decompose, Matrix.Translation @ Quaternion.to_matrix()), the per-vertex blend and the final multiply-add chain
all in float32 (measured inside Blender’s Python: np.matmul on stacked 3×3 equals the plain sequential chain —
no BLAS, no FMA — so every step is deterministic and portable). The C# probe skins in double and lands within one
float32 ulp; on a zero-area (collinear) triangle that ulp IS the normal, so the inside-out verdict of 3 skinned
parts in 11,516 differs by 1–2 islands: sms_wespe_split_fused_Spin Mesh___keep__Fused_T_Material2_6_Part_006
(Blender 233, C# 235), m114_gun_only_Spin Mesh_Gun (136, 137), hms_svea_cut_split_fused_Spin Mesh_Root (1262,
1260) — the probe drill’s FULL=1 names them; the default run (recipe sources) does not reach them. Options:
(A) port the importer’s chain bit for bit (Eigen’s compute_inverse_size4, mat4_to_loc_rot_size,
mat3_to_quat, quat_to_mat3, the numpy chain) with a drill that compares every skinned vertex’s bits against
Blender’s v.co — exact by construction, and the bind-pose positions are needed again when rig_anim and
vehicle_rig are ported; (B) a rule in BOTH the script and the port that a triangle whose edges are parallel to
float32 resolution casts no vote — measured to change the reference’s own count on 29 of 11,516 parts (fused ships
are full of slivers), a behaviour change, and still a threshold the ulp can straddle; (C) leave the three named.sns_dragon_split_fused.glb as re-fused that evening: 12 of 2,507 visibility
verdicts differ from Blender’s, in both directions, on decal quads snapped to panel edges and on coincident twin
panels — rays that run exactly along a face edge or a coplanar twin, where the last bit decides. Three causes,
each measured in a scratch build (the session’s scratchpad flip/src, probe_bw.exe): (1) the sample position —
Blender composes each object’s matrix_world in float32 from its float32 location, quaternion and scale (the
quaternion normalized, quat_to_mat3 in double, mul_m4_m4m4’s SSE2 association down the parent chain), and a
MATRIX node first goes through the importer’s decompose(); the Dragon’s root is a 90° permutation matrix that
comes back from the quaternion round trip 1e-7 off, 2e-4 at 2,300 units; (2) the ray — p + d * eps, the
normalized direction and isect_ray_tri_watertight_v3 with its leaf-box test are all float32; (3) the normal ray —
Blender stores custom normals as two shorts (custom_normal, 4.8e-5 rad resolution), so a file normal of exactly
(0, 0, 1) comes back as (0, -1, -4.8e-5) in its frame. Porting (1) and (2) bit for bit took the Dragon from 12 to
5 differences and changed no other row on 119 files; the 5 left are 4 normal-ray escapes (cause 3: the lnor-space
encode/decode of mesh_normals.cc is the port still to write) and one fixed ray on a Workshop split part, not yet
explained. Until this lands the probe drill FAILS on this recipe source (every push runs it); the quick way out is
the user’s: re-fuse or re-save the recipe only moves the file, it does not change the rule.
Causes 1 and 2 ported (2026-10-03, PR after #116): VehicleProbe.BlenderWorld.cs composes every matrix_world
as Blender does (bit for bit on 14,003 of 14,023 parts, MATRIX rows in the drill) and the ray cast is Blender’s
float32; the Dragon reads 5 off (4 normal rays, cause 3; 1 fixed ray on Material2_2008_Part_034, unexplained).
Cause 3 ported the same day (VehicleProbe.CustomNormals.cs: the smooth fans - the importer’s flat-face guess
breaks them -, corner_fan_space_define, the two-short encode and decode, mix_normals_corner_to_vert, all read
from mesh_normals.cc; the custom_normals fixture and the drill’s VERTEX rows hold it to the bit): the Dragon reads
0 of 2,507 off. The fixed ray on Material2_2008_Part_034 was the box test’s FLT_MAX reciprocal (ported). Said:
the vertex normal is not universally bit for bit. PR #117 review found the missing face-normal detail:
Mesh::face_normals() calls normal_calc_ngon even for triangles (Newell’s sum, normalized by a reciprocal),
while MeshPolygon.normal calls the triangle cross-product formula. The port had used the latter for both.
The corrected cached normals fix two normal-ray visibility differences on sns_dragon_split_fused_Spin.glb;
both reduced four-vertex cases now match Blender’s vertex normals bit for bit in unit tests. The full comparison
passes on all 97 available files (44 fixtures, 32 registry files, 21 recipe sources; no Khronos cache in this run).
Normal bits still differ on some vertices (the Dragon source: 366 of 2,507), so VERTEX rows hold positions and
count normal differences; all sampled visibility and inside-out verdicts agree. The C-runtime trigonometric
functions remain approximated by double functions rounded to float.BLI_bvhtree_new clamps even a requested epsilon of zero to FLT_EPSILON; BLI_bvhtree_insert inflates leaf bounds
by that amount. The port omitted the inflation. This explains the apparent scale dependence: at a bound of 1,
adding epsilon advances one float32 value; at 2, the half-ulp rounds back to 2. Both cases now match Blender in
a regression test. All six Ehrhardt spin visibility differences are fixed, with no differing verdicts in the
97-file comparison.VehicleProbe.BlenderSkin.cs): the
importer’s chain ported bit for bit (mathutils’ inverted_safe adjugate over the determinant,
mat4_to_loc_rot_size, mat3_normalized_to_quat_fast, quat_to_mat3, mathutils’
products, numpy’s float32 blend and multiply-add chain); the three skinned slivers agree; the drill’s VERTEX rows
hold every skinned part’s vertex 0 to the bit.
PR #117 review also fixes shared joints: the guessed bind pose uses inverse binds from all skins in file
order, with the last skin winning, while each mesh retains its own skin’s inverse binds. Skins without an IBM
still inherit that guessed pose. Zero-weight vertices follow their first JOINTS_0 influence, including posed
boxes and bone reports. Both cases have Blender fixtures and unit coverage.
A further review adds inverted_safe’s zero-determinant fallback: perturb the diagonal by 1e-8f, then use
identity if still zero. Even an invertible IBM can have a determinant that underflows in float32; without
the fallback, NaN vertices incorrectly make an enclosed mesh external. bind_inverse_underflow agrees with
Blender on visibility, matrices and vertex positions; unit tests hold both fallback paths bit for bit.Meshes parented to a bone: the bone chain FIXED 2026-11-08 for a mesh BELOW a bone: VehicleProbe.BoneChain
takes BlenderWorldMatricesPosed’s matrix (the rig_anim port’s chain) at the probe’s reference pose; FULL=1: 20 parts
held bit for bit (the canoe’s 19, the bonechild fixture’s lamp), the plant fails; the Lab’s in-process probe keeps such a
model in C#. A mesh ON a joint node (the importer’s .mesh child) followed the same day: ImportRig.JointMeshProperty,
FULL=1 30 held, 0 counted on 178 files, each fix failing its own job under its plant. Still Blender’s in the Lab: a
placement on such a model, a first clip the action import does not model, a skin without joint weights. The rig_anim
port’s .mesh child followed too: stage 1 takes JointMeshProperty, the drill’s two joint-mesh fixtures equal on both
paths, three plants each failing only their own jobs; vehicle_rig, which shares the import, keeps such a file Blender’s
by name until its drill has a fixture for it (docs/Testing.md). Was: OPEN (2026-10-03). A glTF mesh node under a joint becomes, in
Blender, an object parented to that BONE (parent_type = 'BONE', moved by −bone_length along Y), and its
matrix_world is armature @ pchan->pose_mat (translated to the bone’s tail) @ local. The pose matrix comes from the
editbone (head/tail from editbone_arma_mat, length from the importer’s heuristic, roll from align_roll), the
rest matrix (vec_roll_to_mat3, BKE_armature_where_is_bone), the pose channel the importer sets relative to it
(er.conjugated() @ (t - et)) and BKE_pchan_to_mat4 / BKE_armature_mat_bone_to_pose down the chain. 20 of
14,023 matrices (the dug-out canoe’s 19 cloth and rope parts, the mesh_on_bone fixture) differ from Blender’s by
a few ulps for it; the drill counts them as under-bone and does not hold them. The sources are read; the port is
the next step after cause 3.
Follow-up verification (2026-10-03, PR #116 review): FULL=1 compared the 94 files available locally (no Khronos
sample cache) and failed on the three skinned inside-out counts named above, the Dragon source’s 12 visibility
differences, and 49 of 17,152 visibility verdicts on sns_dragon_split_fused_Spin.glb. Running that baked
Dragon through the pre-3c probe and the 3c probe gave identical names and visibility on every part: the additional
visibility failure also predates 3c. The hosted CI passes without this real-model drill; a green CI run does not
establish full probe parity.
convertRig flag?_loc0 and convert_rig) — a
legacy model with location keys + shape keys no longer aborts, and legacy means no rig manipulation. The
location-STRIP stays on BOTH paths deliberately: every verified legacy bake (drone, howitzer) went through it, and
un-stripping risked re-introducing the drone’s unscaled-translation wobble. Rationale: legacy rigs have a sane rest
by definition, and for them the fold was a near-no-op (frame-0 pose ≈ rest) — so gating it off converges on the
same output. Bake-level verification DONE (same day): smoke test 14/14 with the howitzer fresh-baked
animated-legacy through the gated pipeline. In-game verification DONE (2026-08-02) — the howitzer checked out
correctly after a real re-bake.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.
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.
tools/deploy-drill/MonoHost.cs); 117 files written and read
back equal, the two largest byte-identical to the 32-bit runtime’s in the same wall time (docs/Testing.md). Was:
tools/glb_writer_drill.sh wrote every registry GLB on Unity’s MonoBleedingEdge/bin/mono.exe, a 32-bit process; writing the 121 MB
salegs_revenge_split_fused.glb failed with “Insufficient memory to continue the execution of the program” (116 of
117 written) while the gate’s thirteen parity drills ran at once, and passed 117 of 117 run alone minutes later. The
gate has no parallelism knob. Wanted: the writer drill (and any drill that holds a whole fused ship in memory) on the
64-bit embedded Mono host (tools/deploy-drill/MonoHost.cs, as the FBX scene drill already runs), or a largest-first
lane that the gate runs before the Blender steps start. Until then a parity FAIL on that one file with that message
is a rerun, not a regression - and the stamp cannot be written without the full run passing. — FIXED 2026-10-12.
Tests/test_parallel_gate.py is timing-flakytest_progress_reports_completion_before_an_earlier_job_finishes_and_uses_real_duration failed a docs-only push
('PASS fast (2 s)' not found in ''), 1 of 3 idle reruns, and 1 of 8 under load in the PR #148 review. The test
already polled the progress file, but gave the background worker only three seconds to start and finish before
capturing it. PR #158 raised the guard to 60 seconds and serialized competing gates; the progress line remains
the synchronization point. A timeout still needs investigation, not an automatic retry.
The gate-lock test released its mock lock on a timer — FIXED 2026-10-12. A slow child startup could
outlast the 1.5-second timer and acquire an already released lock, so the test reported no waiting message. The
parent now releases the lock only after observing the child’s waiting progress line.
check-member-shape.sh matches only Convert.To*(GetMember( — blind to the Mem( wrapper, and one live
dead-sentinel sits behind it.UniversalInject.GetMember(, so the widened gate found four more live sites (FacingPersist
IsLoaded / SimulationEntityGUID / FormationAngle, FormationOverride PawnDefinitionId) — six rewritten as
typed reads (new TryMemberULong for the GUID). READERS list + self-check on object-returning (object, string)
helpers; a planted Peek( wrapper FAILS. See CHANGELOG “The gates learn to see their own wrappers”.
FormationOverridePatch.cs:358 defines Mem(o,name) => GetMember(o,name); :432
bool loaded = true; try { loaded = Convert.ToBoolean(Mem(unit, "IsLoaded")); } catch { } then if (!loaded)
continue; — a rename → null → false → every unit skipped by the formation re-form loop forever, no log. Same shape
at :443 (IsNaval). Drill: the shipped regex → 0 hits on that file; (?:GetMember|Mem|Member)\b fires on both.
Fix: rewrite both sites as MemberBool(unit, "IsLoaded", true) (as UniversalInject.Combat.cs:126 already does)
and widen the reader alternation in patterns (a) and (b).check-catalog.sh “all 370 catalogued” excludes three accessor families; at least four members are
uncatalogued.striker too; SimulationArtilleryStrike is a
new binding, bindcheck 135/135), surface 370 → 382. One HELPERS list drives the alternation; the self-check
discovers (object, string) helpers that reach a reader and FAILS on an unknown one — it tripped on TryMemberULong
the moment it was added to the source, before it was added to the list. databaseMatrices0D (RepoDump diagnostic)
site-allowlisted with the reason. The alternation at tools/check-catalog.sh:126,129 lacked Mem( (17 sites), FireProbe.Member(/
FireProbe.Int( (CombatEventPatch.cs:31-32, 6 sites) and the typed MemberBool/Float/Int/Long/UInt + TryMember*
readers (38 sites). Behind them: StrikerUnit (CombatEventPatch.cs:44), StrikerArmy (:54),
AttackerEmpireIndex (:43), PrimitivePerParticleCount (UniversalInject.Inject.cs:1548) — none in
GameBinding.cs. CombatEventPatch is the fire-on-attack hook: a rename silently disables fireOnAttack. This is
the third widening of this alternation (08-21, 08-22 CachedField/GF, now). Fix: add the names, catalogue the
four, and add a self-check that greps static \w+ \w+\(object \w+, string \w+\) =>.*GetMember wrappers and fails
when one is not in the alternation — so the next consolidation of helpers trips the gate instead of blinding it.Patches/DescriptorRepoint.cs is the
shared pure kernel both sites call (6 tests incl. the chained hand-prop-then-chunks sequence, growth, refusal);
the smoke’s full tier now reads each repointed descriptor back and FAILS if the block moved (“descriptor repoint(s)
undone”). Mutation-drilled: an append one slot too far and a non-advanced FragmentCount both go red. UniversalInject.Inject.cs:2026-2056 (InjectExtraMeshFragments)
and :1884-1930 (InjectHandProp) do the tail-block copy / StartFragment=tail / FragmentCount=count+N /
persistentFragmentEntryCount / grow-by-need+100 arithmetic; an off-by-one is the “spike plague” family. Nothing
in Tests/ reaches it; the smoke has no fragment-count verdict; BakeFeatureTest.cs:162 asserts the baker side
only. It is pure Array + FieldInfo work — extract RepointDescriptor(...) and test with test-defined structs
(3 existing + 2 chunks → {tail, 5}, tail advanced by 5, growth when the array is short). Smallest in-game guard: a
smoke line descriptor[defId].FragmentCount == bodyFrags + chunks per multi-mesh entry.SplitForQuadCeiling/EstimateQuads covered only by the opt-in editor lane; ReportBakedQuads can verify
nothing and pass.editor/QuadEstimate.cs, compiled into the test project (8 tests: edge-sharing pair, disjoint, 3-fan, Faceted
quads == tris, welded grid, partition covers every triangle once under budget in a stable order, chunk cap). Drilled:
tris/2 and an unsorted partition both go red. ReportBakedQuads’s “verified nothing” warning is unchanged (game-type). editor/UniversalBaker.cs:1686-1793; assertions live in BakeFeatureTest.cs:128-186, which run
via tools/editor_tests.ps1 — not in check.sh nor ci.yml. ReportBakedQuads returning 0 (“NOT verified”) is a
warning; a game-type rename turns the ceiling check into silence. EstimateQuads(int[] tris, IList<int> cell) has
no Unity dependency — move it to a pure file compiled into Tests (the EditorRules.cs pattern): 2 tris sharing an
edge → 1; 2 disjoint → 2; 3-fan → 2; N faceted → N (the tris/2 trap of 09-12).EffectiveDensityBoost unreachable in xunit as written.DistrictRules.NeededBoost,
9 rows incl. the opt-out and the no-evidence cases). DistrictInject.cs:862-879; FxMeshTriangles returns 0
without the game so the auto-size branch never executes in a test. Extract NeededBoost(int ppc, long tris, int
configBoost): (3,10000,8)→14, (3,10000,1)→1 (the 09-12 opt-out), (3,0,8)→8, (0,10000,8)→8.PART| parser hard-caps at 8 tokens; a 9th field empties the Vehicle Lab silently.VehicleLabRules.TryParsePartLine + FlatShare in EditorRules.cs, 10 tests: a pipe in a name folds back into the
name, a genuine 9th column is rejected WITH a reason and the Lab logs the rejected rows, nan → 0, exact-name-first
alias merge). Drilled: no-fold and strip-instead-of-exact both go red. VehicleLabWindow.cs:1370
okLen = t.Length == 5 || (t.Length >= 6 && t.Length <= 8 …), vehicle_rig.py:615 prints exactly 8; the 7th and 8th
were each added within a month. A part name containing | shifts the count too (:1368-1371, dropped with no
log). vehicle_rig.py:6 still documents the 5-field shape. Fix: TryParsePartLine(string, out Part) with rows for
5/6/7/8/9 tokens (9 → parse-with-extras or FAIL loudly), nan → 0; log every rejected line.WriteCube’s fixture had been wound
inside-out since it was written — corrected (outward by default, insideOut: true for the fixture); the full
Bake Tests run after PR #51: 60 passed, 0 failed, 2 skipped — the “NOT YET RUN” caveat is closed. BakeFeatureTest.cs:121-126 “windingFix keeps
geometry” asserts m != null && r.ok on a consistently wound cube; :100-102 “atlasMaxDim=1024 keeps the 512
source” accepts 128 ≤ width ≤ 1024; :188-193 Multi asserts only atlas != null. Fix: one reversed face + every
normal away from the centroid; t2.width == 512.BuildGlb(underParent: true):
root with translation (0,0,5) + rotation Z90, the Hull as its child; a world-Y cut splits 2/2 and ExtractPart
bounds carry the parent’s rotation and Z offset). GlbDisconnectedParts.cs:830-852 composes the parent chain;
every fixture in Tests/GlbPlaneCutTests.cs is a root node, so reversing Mul(world, local) passes all 11 tests.
One fixture: Strip under {translation (0,0,5), rotation Z90}, cut on world Y at 1 → 2/2, ExtractPart bounds shifted.BakeSmokeTest “one representative per bake path” can pick a texture-only override as the static/Auto
representative, skip it, and PASS.IsTextureOnly predicate, applied before the
GroupBy and at the per-entry skip, so the two cannot disagree). BakeSmokeTest.cs:39-41 groups by (animated, materialMode, converted) and
takes g.First(); a Retexture entry lands in (static, Auto) and, with the registry sorted by name, wins whenever it
sorts first; Run() then skips it at :99-106. PLAUSIBLE (not drilled). Fix: exclude texture-only entries before
GroupBy..obj. UniversalBaker prefers the .obj beside the source
(cachedFull), objPath defaults to .obj, and viaGlbconv is read from the current config: a model whose GLB
changed but whose old .obj is still on disk bakes the old geometry, silently. Fix: key the cache on the GLB’s
mtime/size (or always re-run glbconv when viaGlbconv), and log which file was actually loaded.ModelRegistry.Load() Thread.Sleep(250) per OnGUI event. Reached through the Factory’s name-collision block
at ModelFactoryWindow.cs:994; while the block is shown every repaint/layout event pays 250 ms.BackupAuto exclusion misses _PreviewMesh1..31. Only the first preview mesh name is excluded; the chunked
previews are backed up on every bake.floats before widening; the writer sums doubles. ModelWorkshopWindow.cs:393
(p[i0+a] + p[i1+a] + p[i2+a]) / 3.0 on float[] — single-precision sum, then widened; GlbDisconnectedParts.cs:629
sums Vec3 doubles. Same for the facing normal (:398-402 vs :652-654). The 09-13 Snap fix made the inputs
identical, not the arithmetic: facing rule at 0 % ⇒ v = Min; a bottom face with all three verts at y = 0.7f sums
to fl(3·0.7f) which rounds DOWN, /3 ⇒ 0.69999997 < v ⇒ grey in the preview, yellow in the file. Roughly half of all
float heights round down this way. Fix: ((double)p[i0+a] + p[i1+a] + p[i2+a]) / 3.0 and (double)p[i1] - p[i0];
better, expose the two sideA lambdas from GlbDisconnectedParts and have the preview call them; add a
GlbPlaneCutTests row on a flat face at exactly Min with a value that rounds down.VehicleLabWindow.cs:242-246, 291 tests |c.y|/a2 ≥ 0.866 on the preview instance, which never applies
modelRot (vehicle_rig.py:544-546 “stays in import orientation”), while ProbeRotArg (:2139-2144) straightens
the flip verdicts. A hull imported on its side with Roll X = 90 dialed: every deck reads vertical ⇒ “Only flat parts”
hides all decks. Fix: rotate the triangle normal by the inverse of modelRot before the cos-30° test.FormationOverrideWindow.cs:115 reads sel = Popup(selected, …) BEFORE the Remove button; Remove sets selected =
0; status = "Removed …"; :132 if (sel != selected) { selected = sel; OnSelect(); } then loads the entry that
shifted into the old slot and blanks status. Remove the LAST entry ⇒ selected out of range. Fix: move the
select-check above the button (as AnimationLabWindow.cs:734-744 already orders it) or set sel = 0 on removal.vehicle_rig.py:473-634
(probe) runs outside _guard (defined at :641, rig-only); VehicleLabWindow.cs:2189-2199 logs stderr only when
stdout contains VEHICLE ERROR, so a crash in the flip-verdict/visibility passes leaves 0 parts and Probe() blames
the model at :1400-1403. ModelWorkshopWindow.cs:308 discards both streams. Fix: partCount == 0 && done == null
(or stderr contains Traceback) ⇒ Debug.LogError both streams; wrap probe mode in _guard.VehicleLabWindow.cs:431-436 destroys
inst/pru only — waterMesh (:1666), levelMesh (:1710) never; ModelWorkshopWindow.cs:322-330 never destroys
highlightMat/cutMatA/cutMatB; AnimationLabWindow.cs:209-217 misses fitRefManMesh (:397)._lap on a large ship before deciding whether a --preview-only flag is warranted.RunBlender discards stderr on the success path (see the probe-traceback item above — same root).VEHICLE sentinel before the preview FBX export, so a crash in the export leaves the Lab showing
the previous preview with a fresh part list._project is O(V × 512) (vehicle_rig.py ≈ :2322, the per-vertex loop over probe samples) — the leading
candidate for the post-reduce Teutonic whale once PR #46’s laps name it; KDTree (mathutils.kdtree) is the fix.PawnFast.Scale/SetScale with the reflection fallback; MaybeSwapFormationBySize short-circuits on
the last settled scale). Measured the same evening (Performance.md §8): vanilla gate 1.0 µs/add as before, sweep
1.5 µs/frame, total unchanged at 1.6 % — the cost is PoseOurs (32 × 7 µs: PoseAnim + DonorWorld), the next
target. The scaled-vanilla path itself was not on screen (Biremes off-map) and is still unread.
UniversalInject.ScaleEra.cs:343-347 — GetMember(entry,"ObjectSpace") / GetMember(oss,"Scale") / two
SetMembers per scaled vanilla pawn per frame (≈3–5 µs each on a 0.94 µs baseline); PawnFast.Scale/SetScale
(PawnFast.cs:102) are used only by the entry path (Muzzle.cs:1155). Ahead of it MaybeSwapFormationBySize
(:233-262) runs FormationOverride.SizeThresholdsFor — a linear OrdinalIgnoreCase scan over every formation
link (FormationOverridePatch.cs:611-617) — before the sizeFormApplied early-out at :262. Live today (Biremes
×2); a rules-only pack scaling every ship multiplies it by the fleet. Fix: PawnFast with the reflection fallback;
move the early-out above the scan.lastPawnMatched is reset after the pose gate.UniversalInject.Pose.cs:205 returns before :206
lastPawnMatched = false; Hooks.cs:108 then bills every vanilla add to PoseOurs while the flag holds the last
matched pawn’s true. Reachable with a static-only pack after a session re-arm or UniversalInject=false — the
vanilla/ours split in the perf docs inverts. Meter-only. Fix: move the reset above the gate.Plugin.Poll’s log-once key includes ex.Message.Plugin.cs:497 "poll:"+name+":"+ex.GetType().Name+":"+
ex.Message — a varying message (KeyNotFoundException, Unity’s “has been destroyed”) logs the full stack every
frame and grows onceKeys (:58) by a string per frame — the spam the 08-19 hygiene note above it forbids. Latent
(0 poll throws in the 09-13 log). Fix: key on name + type, message in the text.ProcessSubPawnVisuals is documented as a one-shot dump but is a permanent 3 s poll with a 15 s full-scene
FindObjectsOfType<Renderer> that mutates renderers.Plugin.cs:563 says “no-op once dumped”; Inject.cs:461
“keep polling”, :509-527 scans the scene every 15 s per hideSubPawns entry and sets r.enabled = false on
Gunship/Helix/Rotor/Blur within 15 u — Performance.md rule 2, in the file that says the scan was removed (:52).
82 [REND] lines in ~22 min, all “0 renderer(s)”. Fix: latch per sub-pawn instance id, or delete now that
CrushGhostSlice/PruneCloneRenderOutputs kill the ghost; correct the comment either way.SweepForStrays is O(entries × managers × pawnCount) boxed reflection on a 2 s timer, bucketed inside
PoseOurs.Pose.cs:445-467 — arr.GetValue(i) + TryMemberInt ×2 per slot although PawnFast.SkelId/DescId
are compiled; knownManagers (:438) retains every manager ever seen (battle managers included). Small today with
one manager; the risk is late-game multi-manager. Keep the sweep (it rescues real strays); read through PawnFast,
prune managers whose pawnCount reads 0 for N sweeps, give it its own bucket.Hooks.cs:424-425, 446-447 vs
UniversalInjectPatch.cs:1041-1043, FacingPersistPatch.cs:60-61, Architecture.md:110, Animated-Runtime.md:36
(fires once per process, proven 08-16). RearmPropRegistration (PropsBudget.cs:117) and RearmProjectileOverrides
never run for a second session — props survive only via the TickPropRegister safety net, projectile overrides only
because they mutate process-lived assets. Both axes off by default. Fix: hang both on the PawnManager.Load seam
the model axis uses (Hooks.cs:279); fix the comments (UniversalInjectPatch.cs:1036-1038 contradicts itself
three lines apart).[MainThread] audit on _typeCache is incomplete. GameBinding.cs:66-69 names three sim-thread hooks;
Hk_AnimatedBonePoolHeadroom.Prefix (Hooks.cs:284) reads GameBinding.AnimationManager on PawnManager.Load,
documented “possibly off the main thread”. Practical risk ≈ 0 (the only post-Awake writer is the late-loaded
AudioEventHandle); the written contract is wrong. Name the hook, or ConcurrentDictionary.ScaleDescriptorMeshes scales the descriptor bbox by the LAST fragment’s ratio. ScaleEra.cs:399/423/445 —
ratio is overwritten per matched fragment; a descriptor whose body was rescaled but whose last fragment is shared
with an already-scaled descriptor gets descRatio = 1 ⇒ vanilla-sized BBoxMin/Max ⇒ the enlarged unit culls at
the screen edge. PLAUSIBLE — not traced to a shipped mesh-sharing pair.DistrictInject.cs:1694-1700 wantTrack =
DistrictMainRows set || DistrictSelectorTile set; a district scoped only through pack.json is never added to
trackedDistricts, so RearmDistrictScan() never fires for it and the terrain-hug district map stays stale for
registry-only setups. Fix: || Registry has any scoped district.groundApplied latches per entry NAME, not per district instance. DistrictInject.Scoped.cs:1318-1322 applies
once and sets entry.groundApplied; the prefix at :1351-1357 then returns false (suppressing the game’s own
ApplyGroundMaterialDefinition) for every district with that name. A second instance of the same district — a
second city building the same wonder-class district, or the same scoped district twice — never receives its ground
paint AND has the game’s apply suppressed. Fix: key the latch on the district object (a WeakKeyed<T>, never a
ConditionalWeakTable - the 2026-11-05 game crash), not the entry.meshPersistLogged says “diagnostic log dedup” but gates the strategic-zoom mesh work once per process.
Scoped.cs:1128 [ProcessLived("diagnostic once-per-name log dedup")]; :1133 if (!meshPersistLogged.Add(name))
return; sits before the work in KeepDistrictMeshAtStrategicZoom. A second session (new game, same process)
never re-applies the element visibility. Fix: [SessionScoped(District)] and a separate log-dedup set — the
annotation is currently lying to the fence audit.refreshArgs NRE in the documented scoped + isolate coexistence. DistrictInject.cs:702 scratch buffer is
allocated only at :752 and :821 (isolate resolvers), but miRefreshChannel is also resolved at :1235, :1624
and Scoped.cs:420 without it; :754, :823, :2073 index refreshArgs[0] guarded only by miRefreshChannel !=
null. A scoped district placing its selector first, then an isolate wonder ⇒ NRE; in DistrictApplyTexture it is
caught and counted toward the 3-strike texErrors latch, which then blames “apply failed 3x”. Fix: allocate beside
every resolve (one EnsureRefreshChannel(plbc) helper).matchedFromTracked/matchedFromGuids sit outside the session fence. DistrictInject.cs:1084 plain static int
beside [SessionScoped] matchedDistricts (:1083); after a reset the early-out at :1090 can fire when the new
session’s counts coincide with the old, leaving the last district unmatched. Annotate, reset to −1.BepInEx/config/haf_battleturn.txt:7 hold=1, while
docs/Turn-Ease.md:113 calls that path experimental and untested, and CombatEventPatch.cs:88 returns early on
BattleTurn.holdFire so the ranged-fire clip arms later. Either the doc is stale (it has been drilled) or the
operator is running an untested path — decide and make the two agree.Four — FIXED 2026-08-23,
mutation-drilled. float x = D; TryParse(cfg, out x) sites — the default is dead code.out is definitely-assigned, so a failed parse overwrites the initializer: the shape reads
“D unless the config overrides it” and means “0 unless it parses”. Two were live — DistrictInject’s
footprint flat height on both its resolve and its accessor path, which then handed 0 to a consumer whose own
SetFlatHeight clamps to [0.02, 1], i.e. a value the rest of the system treats as illegal. The other two were
latent, and instructively so: one is rescued by a range check on the next line, the other is harmless only because
its fallback happens to equal the failure value. The review over-counted these as four live bugs — they are two
live plus two copies of the shape; all four were converted anyway, because a shape that is safe by coincidence is
the one that gets copied a fifth time. Fixed as Plugin.ParseFloat/CfgFloat — one pure function, fallback as a
return value, never an out-param — per Decisions “move the DECISION out of the method that does the
I/O”. 21 tests (CfgParseTests); drilled by restoring the old shape inside the helper: 9 fail, including the
null and blank cases. The config description for the same key advertised “Default 0.08” against a bound default
of 0.17 — corrected in the same pass. The shape is now gated (tools/check-parse-shape.sh, in the pre-push
gate and CI): it strips comments before scanning — the policy note at Plugin.ParseFloat quotes the banned shape
verbatim, and a gate that trips on its own documentation is one nobody keeps — and back-references the variable, so
it fires only when the parse targets the same local the initializer just set. Drilled 7 ways: the original bug
verbatim, the two-line form and an int variant all FAIL; an uninitialised out-target, an inline out float b,
parse-then-assign, and the fixed ParseFloat idiom all PASS. What it cannot see is written into the script
(statements separated by a brace, out into a field, a wrapper it doesn’t know) — per
Decisions, a gate’s all-clear is only as wide as its regex, so widen it when a new shape appears
and drill the NEW shape rather than assuming the old pattern reaches it.
The footprint settings fork: —
RESOLVED 2026-08-23 by decision: keep both, state the rule, log the winner. The fork itself was never the
defect — the registry is what a pack authors, the config is what an operator tunes live, and collapsing them
would cost the tuning loop. The defect was that the rule lived in a comment on pack.json and the global cfg both set them, with an implicit precedence.DistrictModel and in the shape of
an if/else, so nothing told anyone which source had won. Now one pure resolver
(Patches/FootprintPrecedence.cs) states it — an entry with footprintMesh ON claims the district and supplies
all five values; otherwise the global config governs all five — and every resolution logs
[Footprint] '<district>' -> Entry|GlobalConfig: <reason> once per district per process. All-or-nothing rather
than per-field is deliberate and the reasoning is in Decisions: a bool cannot distinguish
unset from false, so a per-field merge would treat every un-authored false as an override. 9 tests, 4
mutations drilled. The side effect that matters most: the config branch is unreachable on the shipped pack
(every entry sets footprintMesh=true), so it never ran in-game — and that is precisely how the dead-default
parse bug hid in it. A pure resolver makes both branches reachable from tests even where the game reaches only one.
The runtime is multi-tenant; the authoring tools are not. — DECIDED 2026-08-23: intentional, deferred to
packaging. The Factory writes one hardcoded pack identity — ModelRegistry.PackLiveDir/PackRepoDir
(haf_packs/ENCReload, Assets/Pack/ENCReload, 19 call sites over 4 windows), PackDef.modId = "enc" with no window
field, and an ENCReload.* bundle glob in DistrictFactoryWindow/ShipStatusWindow/HafCli. So a second author
baking with these tools writes into ENC’s pack. Not a bug to fix in place: the tools compile and run only inside
the ENCReload project, so a pack-identity setting today has exactly one legal value and adds a way to bake into the
wrong folder; parameterising the write target is part of packaging the tools, and lands with it. Recorded in
Decisions; the README’s roadmap, Building.md and Multi-Mod.md now say so where an adopter reads
them. The review’s second point stands and was fixed: the README called what remained “neutral naming”, which
undersold it — naming is done (32 MenuItems, all Tools ▸ HAF, none carrying ENC); the write target is what is
left. Re-open when the tools get a package.json/asmdef and a home outside ENCReload — that is the commit where
these sites read an authored mod id.
— FIXED 2026-08-23,
219 → 6.3 µs, drilled twice. The measurement ended it: SelectorTile is 219 µs/frame — 36% of HAF’s per-frame cost — and unexplained.districts 2668 skipped 237.3 µs, 1 ours 5.6 µs — the
poll walked every tracked district each frame to find one, on a list nothing ever pruned, with an O(n) dedup on
add. Update fell 391 → 167 µs, matching the 237 µs of measured scan. 9 tests, 4 mutations. See
Performance.md §6. Still open in that bucket: the per-match work reads ~6 µs steady but
~497 µs during the load window — visible only now that the scan no longer hides it; same shape as the §2 load
spike, so not urgent. Original entry follows, kept because the reasoning is the reusable part. Looked at twice:
08-21 called it “diffuse, left as is”, 08-23 accounted for ~9 µs (uncached reflection in the Fx-tree walk) and
left ~210 µs. Ruled out by reading: all six per-loop diagnostics are DistrictDebug-gated and latched, and
ResolveMainLayer is cached — none contribute. Known from the existing buckets: SelTileLoop ≈ SelectorTile and
bind/albedo/flat never reach the top six, so it is the loop’s own head. The loop walks EVERY district the game
presents to find the one or two that are ours, so the cost is either many cheap skips (fix: keep a matched
subset, don’t walk the rest — the skip still pays a Unity fake-null check, a native interop call) or few
expensive matches (fix: the per-match work). SelTileSkip/SelTileOurs now split it and their call counts are
the district counts. Do not fix until the numbers say which — that is what the 08-21 “diffuse” verdict got
wrong.
— FIXED
2026-08-23. Each step now runs in its own Plugin.Update’s try/catch is one bag — one throwing poll skips every poll after it.Poll(bucket, name, run) guard, with the failure attributed to its
own site and cached readonly delegates so the hot path allocates nothing. The outer catch survives as a
fan-out backstop. 6 tests; drilled by making Poll propagate again. Drilled in-game 2026-08-23: 0 poll
throws, every bucket populated, smoke PASS, Update 391 µs vs 396 µs before (the guards cost nothing measurable).
—
FIXED 2026-08-23. The twin of the pack-haf_districts.json has no regex fallback — one malformed char disables ALL custom districts.modId crash. Now primary parse + per-entry isolation + regex
fallback, all sharing one accept/reject gate. 12 tests including a parity oracle between the two extractors.
See the CHANGELOG entry, and the two drill lessons in it (a CRLF-broken fixture that was never malformed, and
assertions made vacuous by a game-dependent filter).
Two registry links writing one formation name are undetected. — FIXED 2026-08-23. 'Formation_1'
warned twice in a clean load because three links target it and two carry data; created tracked only INJECTED
formations, never OVERWRITTEN ones, so a repeat write re-emitted a warning that blamed vanilla for a same-registry
collision. A formation is shared BY NAME, so the last write wins for every link on it. FormationSignature +
ReportFormationCollisions now detect it at parse: identical data is a Diag, differing data is an error naming
both links. The write path is unchanged. 12 tests, four mutations drilled. See the CHANGELOG entry.
One malformed third-party pack disables ALL custom content for the session. — FIXED 2026-08-23, and
it was the highest-consequence finding in the range: "modId": null reached ResolvePacks’ dictionary as a null
key, and the resulting ArgumentNullException latched the whole registry off with a stack trace naming no file.
Fixed in three layers (source guard + post-condition, defence-in-depth skip, a discovered-pack breadcrumb in the
failure log); see the CHANGELOG entry. 20 tests, mutation-drilled 15/20.
— FIXED 2026-08-23.
PackValidator has no rules for pack WRAPPER metadata — only for model entries.PackValidator.ValidatePack adds rules for modId / schemaVersion / dependsOn / loadAfter / overrides, each
one mirroring behaviour verified in UniversalInjectPatch first rather than invented: a blank wrapper key falls
back to the file name (WrapperStr); an overrides entry with a blank field is silently dropped at parse; an
unsatisfiable dependsOn means the pack is SKIPPED (the one Error — everything else is advisory, so the fail-soft
contract stands, and a test asserts that); a future schemaVersion is advisory (CheckSchema).
The rule worth having: an override with no ordering constraint. An override replaces a pawn already claimed, so
the pack must load AFTER its target; with neither dependsOn nor loadAfter naming it, load order is whatever the
game’s module order happens to be, and if this pack lands first the target’s entry is dropped as an undeclared
CONFLICT — the override silently doing the opposite of its intent.
Wired into both surfaces: the plugin writes wrapper issues into haf_load_report.txt (in WriteLoadReport, not
the pre-flight pass — the pre-flight iterates entries, and a wrapper mistake bad enough to get the pack skipped
contributes no entries, so it would be invisible exactly when it matters), and the editor’s Validate pack button
reports them first, which is the surface the whole item was about. 23 tests, five mutations drilled, plus one pinning
that the shipped ENC wrapper stays SILENT — a rule that fires on a healthy pack trains authors to ignore the report.
Deliberately still self-contained: the cross-pack questions (does dependsOn resolve, does the override’s target
pawn exist) need the whole pack set, which an author validating one pack does not have, and which the runtime’s
resolution report already answers better.
The original entry: the residue of the fix
above. The validator is the shared rule core behind all four surfaces (pre-bake, the Validate pack button,
-strict in CI, the boot pre-flight), and it has ~30 content checks for bones/files/pawns/formats/ranges and
zero for modId / schemaVersion / dependsOn / loadAfter / overrides. So a pack whose wrapper is
wrong is now handled gracefully at runtime but is still never caught at authoring time, which is where the
author can actually fix it. Not urgent — the runtime path is safe and warns by name — but this is the surface
that should have caught it first. Note the boot pre-flight cannot cover this on its own: it runs after
registration, so a registry that fails to load never reaches it.
— FIXED 2026-08-23. The decision the entry
asked for was already on the page: schemaVersion is parsed, printed, and never enforced.Multi-Mod.md has documented the contract since the pack format shipped
(“Currently 1. Evolves additively — new keys are added, old files keep loading”), so the work was to
implement the documented contract, not to invent one. Additive evolution makes refusal the wrong lever — a pack
from the future is one whose extra keys are stripped and whose known keys read exactly as intended — so the
version is now an advisory that never gates: Haf.Schema.HafSchema owns the number, CheckSchema classifies
each pack against it, a future pack warns (naming the consequence and the remedy), a legacy unversioned pack gets
a quiet note, and the implemented version prints in the load-report header beside each pack’s own. See the
CHANGELOG entry. 18 tests, three mutations drilled; the doc/code agreement is now in the push gate.
The editor holds a FOURTH copy of the schema version, as a literal. The residue of the fix above.
HafSchema.Version is the definition, and tools/check-docs.sh now fails the push if docs/Multi-Mod.md or
docs/haf-pack.example.json quotes a different number — but ENCReload’s ModelRegistry.cs:101 declares
public int schemaVersion = 1; independently, and nothing compares the two. Bumping the constant here would
therefore leave the editor stamping the OLD number into every pack it bakes, which is precisely the silent drift
the constant was introduced to end. The editor already references Haf.Schema (its ModelDef inherits
HafModelSchema), so the fix is small — write HafSchema.Version instead of the literal — but it is a
cross-repo change, and the guard that would enforce it belongs in ENCReload’s Tools/check_schema_parity.sh
beside the field-list comparison it already does.
A “from the future” warning still can’t name WHICH dials are being ignored. The advisory says features may
silently do nothing; it cannot yet say which, and that is the sentence a modder actually needs. The data is
already computed — ParseModels strips every key not in registryConfigKeys and knows their names — but it
can’t be reported usefully, because a real pack carries ~56 legitimate bake-time editor keys (targetTris,
windingFix, convertRig, …) that the plugin has never read by design, so naming unknown keys would bury the
two that matter in fifty-odd that don’t. Separating them needs the editor’s bake-only field list, which the
plugin cannot know without a hand-list that drifts — the thing this codebase keeps (rightly) refusing to add.
The clean close-out is to declare that set once in the shared Haf.Schema project, where the existing cross-repo
parity guard (which already computes “baker fields not read at runtime”) can hold it honest.
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.
Make static… bypasses the name-collision guard.Upsert removed with ordinal == while the guard compares OrdinalIgnoreCase,
so a case-only rename left two entries sharing one set of asset files on Windows. Upsert is case-insensitive
now; no shipped pack has case-duplicate names.The Vehicle Lab’s trail/gun/recoil dials are dead on rigged sources. — FIXED 2026-08-22: all eight
sites read ActiveParts, and the UI and Generate now share one FastPath predicate and one list.
model_rot is applied and baked before the rig is built), but the dials exist precisely to
square a model up, so it needs someone to leave a gun at an odd angle. Two rewrites were tried against the same
harness and both scored worse (they failed at yaw 0, where the current rule passes), because the real
off-axis fault is upstream: the arm’s ends come from the dominant axis-aligned bbox extent, which mis-picks the
ends of a diagonal arm. Fixed instead: the silence — an un-mirrored pair now warns, promoted to the Lab’s status
box. Still open (low priority, needs a diagonally-authored gun to matter): rotation-invariant arm-end
extraction, after which the sign rule can be re-derived from the trails’ own centreline.The live-pawn check is fed by the hook it is checking. — FIXED 2026-08-22. The smoke now samples an
independent oracle (CountLiveArmies(), read from the presentation entity factory — a surface no HAF hook
writes) alongside the registered-manager count. Zero managers while armies are live and entries are injected is
a FAIL naming the consequence; the benign shapes (no armies; managers but no matching descriptor ids) produce a
NOTE and a printed 0 live pawn(s) examined, never a dropped clause. An unreadable oracle returns -1 and cannot
pose as a confident zero. Five tests, mutation-drilled.
One report can still say PASS on nothing. — FIXED 2026-08-22: the bake-test verdict reads NOTHING
VERIFIED when no section passed, and the Console line becomes a warning. (Two of the original three are fixed:
the smoke’s live-pawn clause and the matched-but-never-repointed misfiling — see the entries above. Still
cosmetic-but-dishonest: the remaining coverage clauses, SubPawnScene / LayersChecked / SeamsChecked /
RolesChecked / SoundsChecked, are suppressed at zero rather than printed.)
The catalog gate cannot see the — FIXED 2026-08-22, and it was worse than
reported: teaching it CachedField( family.CachedField(/GF( surfaced 19 uncatalogued names, and a second pass for nested calls
(GetMember(GetMember(x, "Inner"), "Outer") only ever yielded Inner) surfaced 13 more — including
FacingAngleOffset, the member the 08-21 review had named, which was never actually catalogued; its only
mention in GameBinding.cs was the comment describing that review. Now catalogued with TagAsAbilities and
bindcheck-validated. Still open (low priority): ~30 duck-typed reads over runtime-resolved types
(mat.GetType(), voBox.GetType(), the skeleton buffer element at Pose.cs:42) are site-scoped allowlist
entries with reasons, not catalog bindings — the functional ones among them still degrade silently on a game
rename. Promoting them via the A6 CachedDerived mechanism (anchored on the type that produced the instance)
is the real close-out.
A district that never binds retries forever, silently. — FIXED 2026-08-23. Two compounding faults:
the one-shot log key was the REASON (notgt/nodonor) rather than the DISTRICT, so the first district to stall
silenced every other one for that reason; and the line was Plugin.Diag, off by default. A district could fail
to render for a whole session emitting nothing at any severity. Now keyed (district, reason), with one
escalating WARNING after BindEscalateAfter (~30 s) naming the district, reason and consequence. The retry is
unchanged and still never gives up. 8 tests, three mutations drilled. See the CHANGELOG entry.
alphaBoost is far weaker than its slider implies, and its diagnostic can’t show it. (Editor-side, ENCReload
DistrictBaker.cs.) Its own comment records that the alpha GAIN is a no-op on a binary-alpha foliage sheet, so
the dial collapses to rounds = Clamp(RoundToInt(boost - 1), 0, 6) — 2 texels of dilation at 2.5, 3 at the
slider’s max of 4. The UI advertises “2-4 = fuller crown”. Separately the log line reads “opaque coverage now
~20%” with no BEFORE figure, so it says where the bake landed but not whether the dial moved anything — which is
why “do the leaf dials work?” cost a re-bake to answer instead of a log read. Both worth fixing together: a
stronger/decoupled rounds mapping, and a before→after coverage pair. Neither is a correctness bug; the dials do
run (drilled 2026-08-23: scaled 2171 of 2592 card island(s), 2 dilation round(s)).
GetInstanceID() at the boundary of WalkSubPawns, first occurrence wins, order preserved. Deliberately
NOT inside the adders: AddUnitSubPawns decides whether to fall back to a holder-subtree search by testing
result.Count == before, so suppressing a duplicate mid-walk would read as “the pawn list yielded nothing” and fire
that fallback for a unit already fully collected. The collapsed count is reported by the self-verify, so an overlap
that grows (a new holder list that re-reaches an existing one) shows up instead of being silently absorbed.
Eight tests, four mutations drilled — including dedupe-by-reference, which is the mistake that would collapse nothing
in production, since each path yields a different managed wrapper for the same sub-pawn.
BUT THE PREMISE OF THIS ENTRY WAS WRONG — drilled 2026-08-23. The 56/46 gap is not duplicates. With the
dedupe shipped and reporting, the log read walk verified against the scene scan: 55 sub-pawn(s), none missed (scene
scan 45) and no duplicates were collapsed. The real cause: SceneScan only counts a sub-pawn whose own
gameObject name matches a pawnDescription, whereas the walk — once a unit resolves to one of our entries — adds
every sub-pawn of that unit’s pawns regardless of name. The walk is a legitimate SUPERSET; the verify block has
always collected the difference as walkOnly. The count on the panel is therefore correct as printed, and the claim
that ProcessEngineAudio processes duplicated pairs twice per poll is unsupported.
The dedupe is kept on honest terms: the overlap it guards is structurally real (a battling unit is reachable via
both the army list and the battle’s AllUnits; a squadron via both its subtree and its air formation), but the drill
session exercised neither — 0 battle-start events, no air unit on the map. Defensive, self-reporting, and
unproven in the wild. To exercise it: fight a battle with an air unit present, then check the self-verify line for
a “duplicate(s) collapsed” clause.
The original entry, whose diagnosis did not survive measurement: a PresentationUnit
reached twice during a battle (armies and battle units), and a squadron reachable both via the holder subtree
and the air-formation MainPawn walk, are counted twice — the F8 panel showed sub-pawn walk 56/46 on
2026-08-22, i.e. ten duplicates against a superset oracle. The miss detection is set-based on instance ids so the
verdict is sound, but the printed number is misleading and ProcessEngineAudio processes the duplicated pairs
twice per poll. Fix: dedupe by GetInstanceID() before counting.-i false-positived on docs/Wonder-Spike.md),
verified in both directions, the three stale (spike) labels promoted (all three are documented shipped dials),
and both source-only guards moved into CI beside the docs guard. The catalog half was fixed the same day —
see the CachedField( entry above, which turned out to be hiding 32 uncatalogued names.PackTuning dropped the sv > 0f guard.!(sv > 0f) so NaN
is rejected too, and it now WARNS with the pack, key and value instead of skipping in silence. No shipped pack
was affected. More importantly the missing discipline was supplied: PackTuningLegacyParityTests keeps the
pre-extraction loop verbatim as an oracle and compares over a 19-entry corpus — mutation-drilled, re-introducing
the bug fails 6 tests. The remaining PackTuning gap from the review is unrelated and still open: the
cross-pack conflict NOTE is keyed on exact match strings while the runtime matches by substring, so
"Tank" in one pack and "Tanks_01" in another both apply (×0.36) with no note.fireGuidQueue is never drained on re-arm, and the fence sees 137 of 549 statics.Clear()”: queues/bags are drained, arrays zeroed, ConditionalWeakTable forced to declare a
lifetime. 27 previously-invisible statics are now annotated. Scalars remain outside on purpose (shape cannot
distinguish a constant from a per-session latch) and UnpolicedStaticCount() reports how many, so the edge is
measured. ResetDistrictSessionState, with the
two clones it guards (ourAtlas, hostClone) handed to districtOwnedClones in the same change, because resetting
the latch alone would have turned a one-shot leak into a per-reload one. reactorMaskTex deliberately stays
[ProcessLived]. Five mutations drilled; the same new test then found _subPawnScan holding destroyed sub-pawn
references after the model reset. See the CHANGELOG.
DRILLED IN-GAME 2026-08-23 — latch and leak confirmed, RENDERING still untested. With the mask temporarily
enabled and five session resets in one process, the log shows three complete [Footprint] done blocks where the
old code would have produced exactly one; step1: loaded mask 512x512 appears once, so the [ProcessLived]
texture is reused rather than re-decoded; and [District] freed 4 then freed 5 runtime clone(s) shows the newly
owned atlas and decal clone being released. Every free lands after a reset and before the next injection, so the
ownership tracking is not eating the new clones. The residual below also resolved: placed=True on all three runs.
What was NOT established is that the silhouette draws. The drill turned DistrictFootprintMesh off (it drops the
decal the mask injects), which removed the reactor from the strategic map — the operator reported that as the visual
result, so it tells us nothing about the mask. Lesson, mine: the mask path was blank while MaskSize, Rotation
and Cut were all tuned to non-defaults — the feature had been used and then abandoned for the mesh footprint. That
was legible in the config and I read past it, ranked a dormant feature as the top user-visible defect, and changed a
live setup to test it. Check whether a feature is switched on before calling its bug the one a player would hit.
Original residual (now resolved, kept for the reasoning): InjectReactorFootprint trims sel.levelBuildItems in place,
and sel is a bundle asset the game loads once per app run — so the second injection runs against an array the first
one already trimmed, whose single decal item points at a hostClone the reset has since destroyed. Reading the code,
that path repoints it at the new clone and comes out right; a destroyed UnityEngine.Object’s managed wrapper still
answers GetType(), and the child == null test is reference equality on an object, so the item is not skipped.
But that is a chain of Unity lifetime details, not something source review settles — load a save, load a second, and
look for [Footprint] done a second time with the silhouette actually drawn.
The original entry, for the record: footprintMaskInjected is exactly that unpoliceable shape — a
static bool latch that survives a session reset while ResetDistrictSessionState destroys the clone it
guards, leaving the strategic-zoom footprint dead until a process restart. It needs a per-session reset by
hand; the fence cannot find it for you.Hk_BattleHoldFire fails closed.creationTime is now treated
like an expired one (release, with a one-shot warning naming the likely cause), matching the policy every
sibling hold follows. The decision is a pure TryElapsedSince(clock, now, out seconds) with four tests,
mutation-drilled.A fourth hand-maintained field list is ungated. — FIXED 2026-08-22: check_handlists.sh compares
ModelDef’s 11 int[] guid fields against the Clone block; drilled by re-removing clipIdleAlt2.
Plugin.Update has no try/catch, and the meter overstates its scope.try/finally closes the frame accounting on a throwing poll (the meter no longer reads healthiest when HAF is
most broken), and Performance.md now states exactly what the 33 buckets cover and what they do not.A CONVERTED RIG’S CLIPS DON’T SHARE A FRAME WITH ITS REST POSE (measured 2026-08-22, the howitzer wheels) —
every clip deploy_convert produces for the M114 poses the model 90° rotated from its own rest pose
(rest bbox (52.1, 135.7, 37.6) vs folded (41.7, 27.6, 119.3)), the legacy clip additionally at 2× scale;
the baked skeleton then carries compensating scales (howitzer:main Local 2, wheel BindPose 0.005, where
a Vehicle-Lab rig reads 1/1). Pawn-level features are blind to it — everything shipped today works — but
bone-level ones inherit a frame that disagrees with the geometry, so authored bone motion (a wheel roll, and
by extension any future bone-driven feature on a converted model) pivots wrongly and cannot be compensated
reliably. Motion the SOURCE animates rides through fine (the T-62’s wheels spin), which is why this went
unnoticed for so long. Acceptance test, offline, no bake and no game: folded at frame 1 must have the rest
pose’s bbox orientation. Guarded by the existing conversion golden-master gate. Full write-up + the four
offline verification recipes: Animation-Pitfalls.md ▸ “Authoring INTO a converted rig”.
ENTRY-STATE COHERENCE (user verdict 2026-07-26, tread-saga fallout: “this seems like a serious configuration
bug”) — an entry’s config lives in FOUR places (Factory window memory, Animation Lab memory, the DEPLOYED
pack.json the editor reads as its registry, the project dual-write copy) and the reconciliation rules ambushed
the user repeatedly in one afternoon: (a) a stale Factory Model-file field silently baked the WRONG MODEL (the
translation-test cube overwrote a good Jagdpanzer bake); (b) animated→static downgrade is IMPOSSIBLE without
Remove — the bake-time ownership rebase resurrects the saved animation config even after Reset, and the animated
pipeline then hard-fails on an unrigged file; (c) “Reduce to ~tris (0 = off)” silently substituted 12,000 on the
animated path for years (FIXED same day); (d) external registry edits are detected by the Lab (yellow banner)
but not by the Factory. Proposed fixes, in impact order: (1) Factory gets the Lab’s outside-change banner +
a bake-time confirm when its Model file differs from the registry’s DONE + DRILLED 2026-08-18 (banner +
explicit Reload-entry choice, coherence-aware cross-window nudge — a Backup-window restore now raises the banner
instead of silently reloading — and the bake-time model-file confirm with both paths shown; plus the SelectEntry
funnel: every selection change routes through one path, structurally retiring the 08-16..18 stale-window
family. All five drills passed; drill 3 caught a real unreachable-banner defect — see CHANGELOG); (2) a real animated→static path largely covered by the “Make static…” button (strips the
animation config from the saved registry; the offer-on-armature-less-failure variant remains nice-to-have);
(3) document (or collapse) the two-pack.json design COLLAPSED 2026-08-19: the git-tracked project
file is the single source; the deployed copy is a regenerated build artifact with hand-edit drift warnings
and a one-time migration (districts/formations inherited it 2026-08-20 via the shared SingleSourceRegistry); (4) audit
remaining “label lies” like the tris slider DONE 2026-08-19 — swept both families mechanically
(UI-field extraction diffed against every hand-list; every runtime/no-re-bake claim read against its code
path). Hand-lists: the Factory rebase (34 fields), the Lab rebase (56) and the bake-config capture are all
COMPLETE — zero UI-edited fields uncovered. Three findings, all fixed same day: MakeStatic left
gunElevMax/gunElevAxis/animPhaseSpread uncleared (gunElev is runtime-applied — a made-static gun kept
elevating: the cursed-leftover class MakeStatic exists to kill); the Save-settings status claimed Position
offset/Size “apply on load” unconditionally (false for statics — now entry-type-conditional); Browse’s
animUnitFix auto-set is discarded by Save settings (animation-owned — the status now says so). The original
tris-slider example was already clean (tooltip + bake log disclose the double-sided halving). Residual risk
is the MAINTENANCE-TRAP comments at each hand-list — no gate enforces them. Gated 2026-08-19:
Tools/check_handlists.sh (pre-push, drilled at birth on the planted combatZ omission) — the silent-reset
class is structurally impossible now.
deploy_convert.py recoil blocksrc_w when
its name isn’t barrel/cannon (was a guaranteed KeyError on non-M114 naming); (b) the RecoilArm holds now key an
IDENTITY BASIS (true pass-through at any parent pose) and the arc targets build on a parent-aware pass-through
baseline, so a parent chain that moves during the deploy no longer displaces the tube; (c) empty tube match now
fails loudly listing the animated part names; (d) dead key_bone removed. NOTE: the shipped m114_deploy.glb was
generated by the OLD code and stays as-is (verified in-game); the fixes matter for the next artillery-style model.ConfigForModelFactoryWindow.ConfigFor like the smoke test, so convertRig/rotation/keep-flags all
carry and the soldier is exercised on the conversion pipeline it actually ships on.SweepAllOutputs (the full
OutputSuffixes union, now incl. _ClipsPoseData.bytes) runs at the start of BOTH paths, so an animated↔static flip
leaves no orphans in shipped Resources; the E5 rollback and the Feature-Test cleanup cover the pose bytes too, and
the animated path gained the static path’s up-front resource-name validation.RearmModelRegistration now nulls distFxManager
and every entry’s plbc/privateLeaf/leaves/collected; DistrictApplyEntries re-derives them as the new
session loads. Verify alongside the model-axis second-session test.PoseNames/BoneRotationNames (was "Pose"+i strings per pawn per frame); the pose hook’s
descId fallback is a plain loop (was a ctx-capturing lambda per pawn add); ProcessFireQueues prunes with a reverse
for-loop (was a dur-capturing RemoveAll closure per entry per frame); ProcessEngineAudio throttles FIRST and
caches its filtered subset keyed on the entries reference (was Where().ToList() 60×/s); TickOne hoists the
field-name array and skips the 7 texture re-sets when _MainTex is already ours (re-set kept as the recovery path
when the game recreates the material); the [Grey] no _MainTex retry warns once; the audio-trace postfix gained
the try/catch every other patch body has. NOT done (deliberately): GetMember boxing elimination — it needs typed
delegates over reflected structs, high risk for marginal gain; revisit only if profiling shows it matters.
VERIFIED in-game same day: full animation sweep clean including the drone attack (fire-once path — exercises
the queue prune, the descId-fallback loop, and the pose-name arrays in one action). Residual: informally watch a
BIG late-game battle for stutter (the improvement claim, as opposed to the no-regression claim).deployProgress/deployLastPos/customSources/loopHoldUntil/engineLastPos/engineMoving, plus static
deployMoveState and respawnBase/respawnCount) clear on session re-arm, and deployLastPos joined the
in-session deploy prune. Remaining in-session growth of the engine-audio maps folds into the perf pass above.Retex_
entry for a pawn that already has a model entry (two entries, same pawn, undefined winner)._pending isn’t serialized — a domain reload drops staged, unsaved edits.ApplyTint no longer wipes the clipboard. Still
open: invalid impact-donor GUID silently ignored; muzzle swapped beyond the tooltip’s documented scope.FindType is cached (the per-repaint full-AppDomain scan is gone) and null
Amplitude GUIDs now fail the bake with the rebuild-then-re-bake guidance instead of writing zero-GUIDs.ExitGUIException is rethrown before the generic catch..tga red placeholder wasn’t hypothetical, it was live in every flat-colour bake ever made (the all-red Bell H-13)
— and the static path did NOT “handle both”: it skipped .tga entirely (grey tile). Both paths now share a TGA
decoder, and every rect-shifting drop (no map_Kd line, missing albedo file, undecodable file) warns loudly.ModelChunks anchors on "models"s*:s*[ and brace-counts inside it, so an overrides array can never be read as models; index alignment was retired the same day (each entry is read from its OWN object text). Original:: overrides-array objects parsed as models when models is empty; count
truncation via min(pd,skel,atlas); early-entry key omission misaligns later entries; resourceName default differs.ModelRegistry.Save() MERGES onto the on-disk file and explicitly preserves the pack header —
schemaVersion/modId/dependsOn/loadAfter/overrides — “no window edits these, so they must survive every
Save”; also Upsert/Remove became case-insensitive on 08-22, closing the case-only-rename twin below);
Lab bakes a brand-new never-baked entry with default model fields (Factory→Lab handoff carries only name/file/pawn);
Browse’s auto-set animUnitFix announcement is discarded by the ownership merge for existing entries; case-sensitive
Upsert/Remove matching (case-only rename → twin entries); atlasGuid never validated; _ClipsPoseData.bytes
missing from the E5 rollback + Feature-Test cleanup listsReadToEnd pipe-deadlock pattern; texture leaks on bake failure paths; corrupt-registry error-spam from
per-OnGUI Load() in Retexture/Sound windows; ParseWav negative chunk-size guardblend_export.py repoints packed images it shouldn’t; prep_model strip matches object names only (not mesh-data
names, unlike deploy_convert); AtlasDebug likely double-converts in a Linear-color-space project; RefreshList comment
contradicts the settled Factory-lists-all design; 3-strike registry give-up latches per-process (“this session” log
text is wrong); Hk_AudioTrace postfix unguarded + per-event string scans; 4u fire-radius / 3u deploy-match adjacency.HumankindAssetFramework.dll (csproj FILE name kept — local clones, build docs and
the CLI compile-check unchanged), BepInEx GUID → community.humankind.haf (old cfg copied to the new name on this
machine, old DLL removed from plugins in the same deploy — BepInEx would load both and double-patch), editor menu
root → Tools ▸ HAF (all windows + Tech Tree + Database Browser consolidated under it; Tests submenu intact),
instructional docs swept (Framework-Review’s dated history rows keep their period-correct Tools ▸ ENC paths).
Deliberately NOT migrated (framework/pack split, decided 07-14 and reaffirmed 07-19): haf_models.json /
haf_sounds / haf_skins are ENC-the-PACK’s files — packs are branded, only the framework is neutral, and a
third-party pack never touches an haf_* path. Verified in-game same day (first session clean: new identity
loads, settings carried, units/districts/audio normal). Still open for the package release: hardcoded paths,
package scaffolding. (The ENCAccessProof C# namespace + project filename were renamed to HumankindAssetFramework on 2026-08-01; the local repo FOLDER followed on 2026-08-16 — nothing left of the old name.)Haf.Schema/PackValidator.cs (the rule core, now including WRAPPER rules), Patches/UniversalInject.Preflight.cs (boot pre-flight into haf_load_report.txt), and the editor’s Validate pack button. Original: Today pack structure
resolution is loud and human-readable (malformed JSON, duplicate modId, missing dependsOn, cycles, conflicts →
clear warnings + haf_load_report.txt), and bad input fails soft (never crashes). But there’s no entry-level
content validation: a wrong bone name, an unresolvable GUID, or a missing texture path degrades silently rather
than producing a “pack X, entry Y: bone Z not found” message. For a distributable framework this is a real
barrier to entry for external authors. Build a pre-flight linter (editor button + a boot-time pass) that checks
each entry’s referenced assets/bones and reports mismatches in plain language before render. Fits the “guided, not
guessy” design goal; scoped for the package phase. (Raised by an external review 2026-08-02; the structure half was
already done in the 07-14/07-19 multi-mod work.) Designed — see
Pack-Validator-Design.md (what to validate, editor vs boot-time surfaces, message format,
phasing); build remains.TREADIZE v2 — hybrid link/shuttle rig (user’s design, 2026-07-26). On a straight run every link moves identically → ONE translating shuttle bone can carry the whole run (pattern maps at restart); per-link bones only on the WRAPS + RAMPS where links genuinely rotate. Bone math: Bradley ~23/track at full per-link wrap detail vs 75 today — quarter-link wrap smoothness inside half the budget. Skirted vehicles: the hidden top run can be fully STATIC (zero bones). The one risk is the two run↔wrap seams (static skin weights can’t switch carriers) — mitigated by everything v1 learned: seams AT the tangent points, where a wrap link’s velocity equals the run direction, speed-matched on the exact belt path. Prereq: none — build whenever tread bone budgets start pinching again (or for the twitch-ceiling escape).
Textures/ set).
Today the bake produces a SINGLE albedo atlas and the runtime injection NEUTRALIZES the donor’s PBR (flat albedo). The
albedo half of a source set is already consumable — bake the BaseOp down onto the game-mesh UVs — but the
_Normal maps are not processable at all; that is the missing pipeline. To render surface detail the Factory would
bake a matching normal atlas repacked to the combined-atlas UVs, and the injector would wire it into the pawn
material’s normal slot (_BumpMap) instead of clearing it.
What “fully process Ehrhardt_E_V/Textures/” actually takes (read off the shipped files, not hand-waved):
T_..._C_V*_Normal.1001–1005) and the gun a single tile
(T_..._G_V1_Normal); assemble the UDIM set into one image before repacking. (Same assembly the albedo/UDIM note
below needs — build it once, feed both maps.)TextureImporterType.NormalMap, normal-safe
compression + mips; a naively-imported normal atlas is read as colour and lights wrong.BaseOp + Normal, so this composes with the
runtime-retexture-variant axis (one skeleton/atlas, swap the pair per descriptor).
Priority moderate: at map zoom (~80px units) the payoff is subtle — but this is the concrete build if/when we want it,
and the Ehrhardt set is the ready test bed. Escape hatch today: bake the normal into the albedo’s lighting in Blender
(static, no runtime normal response) — cosmetic only. (If a source set also ships ORM/roughness/metallic, the same four
steps extend to a packed ORM atlas + the material’s metallic/smoothness slots.)
Related same-bucket gap — UDIM / multi-tile ALBEDO: the bake assumes ONE texture per material in a single 0–1 UV
tile, so the armored car’s cinematics mesh + its 5-tile .1001–.1005 UDIM camo can’t be consumed directly. Escape
hatch is the same manual Blender texture-transfer bake onto the single-tile game UVs. NOTE: a mesh authored with
single-tile UVs (the armored car’s game mesh) needs none of this — it bakes fine on the current flat-albedo path.TurretizeAimLayer runtime handler: turretBone (substring) + turretAxis (Lab dropdown) retarget the
streamed heading slot onto our turret bone. Axis is per-model (Ehrhardt: 2 = yaw; 1/0 = pitch — the pitch axis is
the future artillery-barrel elevation knob). Original design notes retained below for the static-model corollary.[Aim] log in ClearAimLayer shows the
stream). The feature is therefore an ADDRESS REWRITE, not an aiming system: an aimBone registry knob (name
substring on our skeleton, the handPropBone pattern) + a remap mode where ClearAimLayer currently drops the
entries — rewrite their bone index to ours, with an axis/offset knob (donor axis conventions won’t match every
model; stamp explicitly, the props import-angles lesson). Open: does elevation stream separately from traverse
(second bone)?; does the sim only stream for donors it considers aim-capable (a donor-matching criterion)?
Intended first test candidate (2026-07-24): an Ehrhardt‑style armored car (“Ehrhdrdt E V” by Red Blue Pixel
Studio, Fab, Standard License, FBX + PBR) — it ships already rigged with a turret bone, so it’s the EASY case
(point aimBone at the existing turret bone; no auto-rig step). Bake static first, then remap the aim stream onto
the turret bone once the feature lands.
The static-model corollary (“turretize”): this gives STATIC models a tracking turret with zero animation
authoring — split turret from hull (part-name detection exists), auto-create a 2-bone rig at the turret pivot
and bind each part full-weight (the mech bone-parent→skin conversion’s exact mechanics, just with created bones),
bake through the animated path with a 2-frame identity clip (the held-stance pattern), then remap the aim stream
onto the turret bone — the ENGINE animates the aiming, same as vanilla armor. Reactive motion (aim/facing) never
needed clips even in vanilla; only cyclic motion (walks, bobs) does. Open extra: pivot placement quality
(auto part-centroid vs a manual nudge knob).silenceDonorGroundFx, spotted 2026-07-24). Ground effects ride the DONOR like
audio does: the Light Assault Mech (legged) stamps WHEELED TRACK decals from its APC donor. Fix = the donor-audio
pattern, not a re-donor (animal donors are melee-presentation pawns — swapping would break the mech’s ranged fight
infrastructure): find the track/decal emitter chokepoint (likely MecanimEvent- or movement-state-driven FX on the
sub-pawn — the same neighborhood the audio investigation mapped) and gate it per opted-in unit. Later composable
with a “replace with footprints” mode. Adds GROUND FX to the donor-matching criteria list (rotor/wheels, audio,
ranged capability, aim streaming, now decals).1751b74 “muzzle endgame lands — flash, smoke and tracers on the tracking turret”; was its own scoped session).
Implemented as the muzzleBone field + Hk_MuzzleRelocate prefix on PresentationSubPawn.GetBoneTRS(string) — see the
cracked mechanism + fix below; ArmouredCar set to muzzleBone: "Turret". The flash now anchors on the turret/gun on
fire. (If a turret pivot ever reads too low/centre on another model, pick a barrel-tip bone instead.)
On the Ehrhardt armored car the MG muzzle flash fires off-side (“mirrored”). ROOT CAUSE (verified): the donor is
Unit_Era6_Common_AntiAirGuns_01 (an anti-air gun — bones Azimuth, bras-*, Canon_down_*), and the flash is
the projectile’s Muzzle FxEvolverMaterial (“launch flash”, ProjectileAsset.muzzle) — a TRANSIENT VFX (NOT a
fragment; every donor lists only its body mesh) spawned at the AA gun’s Canon weapon socket, which doesn’t exist
on our renamed b###_ rig → it lands off-side. The spawn is NOT in PawnRangedFightSequence (stores the shooter
only) nor PresentationPawn (3525 lines, no muzzle/socket) — it’s buried in the HgFx projectile/particle
system. CHAIN TRACED (2026-07-24): the projectile+muzzle fire from a FireProjectile mecanim event on the
attack clip – PresentationSubPawn scans the clip for MecanimEvent.AlterationType.FireProjectile and stores it
as SimpleAttackMecanimEvent (~L1255-1267), processed by MecanimEventInterpreter (Amplitude.Mercury.Animation)
as the clip plays. The bone->world resolver is PresentationSubPawn.GetBoneTRS(boneName) (~L378:
GetBoneIndex(boneName) -> AnimationManager.GetBoneTRS). The AIM layer resolves the SAME way (SubPawn ~L639/657:
GetBoneIndex(reference.BoneName) – the donor’s Azimuth/Canon names), so the muzzle socket almost certainly
resolves by the donor’s weapon-bone NAME -> invalid on our b###_ rig -> off-side. Fire info via
IAlterationFireProjectileInfoProvider (SubPawn L179/813 = the pawn). NEXT: decompile MecanimEventInterpreter’s
FireProjectile handling (NESTED-type friction with ilspycmd 8.2 -> use dnSpy or a newer ilspycmd) to pin the
socket-NAME source + the muzzle-FX spawn call. QUICK-ALT CAVEAT: the ProjectileAsset is SHARED across all AA guns,
so nulling its Muzzle in place breaks the real anti-air units -> needs a per-unit projectile OVERRIDE.
✅ MECHANISM FULLY CRACKED (2026-07-24, decompiled Assembly-CSharp whole). AlterationFireProjectile.StartEvent
(the FireProjectile alteration handler): TRS boneTRS = controller.SubPawn.GetBoneTRS(mecanimEvent.ParentNameToLaunchVFXPosition);
Vector3 startPosition = boneTRS.Transform(mecanimEvent.PositionToLaunchVFX); then
PresentationProjectileManager.Instance.LaunchMuzzle(projectileAsset, startPosition, startDirection, up) (or
LaunchProjectile for the flying shot). So the muzzle position = SubPawn.GetBoneTRS(<donor socket name>).Transform(offset)
— and ParentNameToLaunchVFXPosition is the DONOR clip’s socket name (the AA gun’s Canon socket), absent on our
renamed rig. THE FIX (low risk): Harmony postfix on PresentationSubPawn.GetBoneTRS(string boneName) — for
our unit (match SubPawn→entry by SkeletonId, GetEntryBySkeletonId exists) with a muzzleBone set, when
Skeleton.GetBoneIndex(boneName) < 0 (donor socket not on our rig), replace __result with GetBoneTRS(ourMuzzleBone)
(our bone IS found → no re-redirect → recursion terminates). Config = muzzleBone (substring, e.g. Turret or a
central bone), runtime-only. Broadness note: this redirects ALL unfound-socket VFX on our unit to muzzleBone,
which for a donor-mismatched rig is the DESIRED behavior (all its VFX land on our gun instead of off-side). QUICK ALT (no relocate): null the
projectile’s Muzzle → no launch flash (Projectiles.md already documents clearing it). Note: this donor is one of
the few that fire MULTIPLE times (AA burst) so the flash repeats. General lesson recorded: a donor’s effect = its
skeleton + weapon sockets (already half-logged: donor.Skeleton / BoneInfos / donor fragment[N]). The new
Disable override flag (ModelDef.disabled, runtime) A/B’s our model vs the raw donor for exactly this kind of probe.socketBones) — ✅ VERIFIED IN-GAME 2026-07-24 night (ArmouredCar): flash, smoke AND tracers
all on the tracking turret. The winning recipe: socketBones: "Canon_Up_left=MW_T;Move_bloc=MW_T" (socket
ROLES decoded from the pin log: Move_bloc = fire POSITION anchor, Canon_Up_left = rotation/direction — not
what the names suggest) + runtime donor-offset compensation on native socket hits + the muzzleOffset world
dial ("0,2.6,0" — the rig’s gun-bone head sits at the model base, and the socket’s correct BIND height
provably does not reach the runtime pose; open engine question, the dial closes it empirically, no re-bake per
step). War-story hazards now guarded: prefix reentrancy (stack-overflow crash), the external-registry-edit slim
cache trap, per-shot log throttled to once-per-entry after calibration. Wired
end-to-end: rig_anim argv[11] (exact-named zero-weight leaf bones after the rename, before the fold; A###_
prefix on socketed models; loud failures for unmatched parents and sort-order violations), BakeConfig/ConfigFor/
slim-cache diff, Lab “Donor sockets (bake)” field, ModelDef.socketBones (bake-time; guard PASS). The ArmouredCar
entry is pre-configured (Canon_Up_left=MW_T; Move_bloc=Root) — next session: Unity recompile → re-Bake →
rebuild → fire: flash, smoke AND tracer origin should all sit on the (tracking) turret gun natively. Original
design rationale below. The interception chain
(GetBoneTRS redirect → StartVFXEvent pin → offset compensation) moved/killed the FLASH but smoke + tracer origin
still read the donor socket, and the compensated TRS raised a space question (flash vanished off-screen). The
correct architecture: bake EXACT-NAMED donor socket bones onto our rig (socketBones: "Canon_Up_left=MW_T;...",
zero-weight leaves, optional tip offset) so the game’s own lookups resolve NATIVELY — flash, smoke, and bullet
origin all correct-by-construction and turret-following. Wrinkle: Amplitude sorts bones alphabetically requiring
parents-first — socketed models switch the rename prefix b###_→A###_ so every real bone precedes any donor
name (gated; existing bakes byte-identical). Obsoletes muzzleBone for rebaked models; the runtime knobs stay for
quick fixes. Donor socket names discovered via the [Muzzle] GetBoneTRS diagnostic (armoured car donor asks for
Canon_Up_left + Move_bloc).RotationTranslation clips
(decompiled: vanilla tank treads/shuttle bones; GetPoseTRS zeroes translation only for Rotation-encoded
curves) — Laws 1/5 were OUR bake’s strip. Built: per-model keepTranslations (registry + Lab toggle), kept
curves scoped to the attack clip, delta-rebased, ×100 sandwich-compensated on the legacy path; multi-segment
recoil windows with /N speed steps. Verified end-to-end twice: a sliding test bone, then the M114’s real
kickback (recipe 442..530,305..441/2, Return 0, Slam 0). Root-caused en route: the slam-0 R=1e9 sentinel
put the RecoilArm pivot at a billion units → float32 chain collapse → every historical NaN import warning.
OPENS: treadize (tank tread shuttle bones — design ready, Jagdpanzer waiting), real deploy translations,
whole-carriage recoil, soldier run-bob restoration.donorOff= 0.80/0.85/1.20) from the single
Move_bloc anchor; the compensation currently flattens all onto one point. (1) Barrel variation — subtract
the MEAN donor offset instead of each event’s own: flashes scatter slightly around the muzzle like the donor’s
real barrels, essentially free. (2) Multi-mount fire — rotate successive fire events across several of the
model’s own gun bones (the Ehrhardt has four rigged MG mounts, MW_B/F/L/T) — needs per-event socket selection
state; bigger. Both are polish on a verified base, not fixes.SKM_ rips carry their own armature — two skeletons
in one GLB), @file part lists (the ~32 k Windows command-line limit), Blender 5.x Action.fcurves removal
(curves live in layers→strips→channelbags), spin-sign rule (+360 = forward for a +X nose), review UI
(6 roles incl. Edgecase, keyboard marking, classification filter, 4 hide sliders), JSON recipes, and a
clustering-accurate Verify report. Generated-rig calibration: turret axis Y, sockets/muzzle bone →
Turret, offset re-dialed from the dome center. SKM fast path — BUILT same day, preview-verified:
probe detects skeleton + ≥90% weights → bone-marking mode → rigfast spins the SOURCE bones (local axle axis,
signed for mirrored rigs), artist skeleton shipped unchanged (pivots + MW_* socket bones free). Field
finding: it inherits the artist’s weighting — the Ehrhardt’s front steering knuckles are weighted to the wheel
bones and rotate with them, so the shard path stays the quality reference (the shipped unit uses it); the fast
path is the four-checkbox route for clean-weighted rips. Original spec below. The Ehrhardt’s
_Spin.glb was hand-made in Blender (now documented step-by-step in Animated-Models.md); the tool version is the
missing sibling of turretize and the biggest lever on the “huge pool of static vehicle models” thesis: a headless
Blender script that (1) detects wheel parts — name pattern wheel|tyre|tire first, geometric fallback (cylindrical,
near-ground, mirrored pairs — the organ-gun classifier’s approach), (2) creates Root + a bone per wheel at each
part’s centroid (+ a Turret bone for a turret-named part), rigid full-weight skinning, (3) generates the LINEAR
Spin action (frame 0 = rest), (4) exports <name>_Spin.glb. Factory affordance: a “Prepare static vehicle…”
button that runs it and repoints the Model file. Output feeds the EXISTING verified path (Spin[0..0] idle +
Spin slice movement + convertRig + auto-ground + turretize/sockets). Risks: wheel detection on messy meshes
(single-mesh models need loose-part separation), axle-axis inference (mirrored left/right wheels spin opposite
if the axis flips — normalize to model-space).clipDeath) — play the model’s own death animation on PresentationPawn.TriggerDeath (the
hook already fires for the death SOUND; arming a one-shot clip window from the same seam is the pattern the
attack clip proved). Proving model: the gray wolf’s idle injured to dead reaction lft/rgt (private test rig).idlePatrolRadius/
idlePatrolSpeed): offset ObjectSpace.Translation along a slow closed loop (the position-offset path already
writes Translation per frame), play the MOVE clip, face the path tangent (needs an ObjectSpace.Rotation write —
read-only today). Risks: stride matching (path speed vs walk-clip foot speed, or it ice-skates), yielding to
every real state, battle second-PresentationUnit interactions. Composes with idle-alt: stroll → pause →
howl/eat → stroll.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.
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.
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.
Tools/, needs a failing repro before touching gating)convert_rig vs clean_units gating asymmetry (rig_anim.py: topological bone rename gated on
convert_rig alone, but the clean-unit export + rest/scale fold on convert_rig OR clean_units_input). A
DeployArmV2 FBX with argv[8] absent/0 + zero rotation → convert_rig=False, clean_units_input=True → clean
export runs but bones keep raw part names → Amplitude’s alphabetical sort can put a child before its parent →
ParentIndex ≥ own → model explodes. Fix candidate: make the two gates the same flag. RISK: changing bake
gating without a failing repro can break a verified path — get a repro first.rig_anim.py ~510-520): the kept == 0
hard-fail only runs when a bone-prefix filter is supplied; a no-prefix bake of a constant action bakes frozen.rig_anim.py ~1038): the socket-order guard uses Python ordinal >, but it is
predicting C# string.Compare (culture-sensitive) — a donor name whose culture order differs from ordinal order
passes the guard yet sorts the socket before its parent. Narrow (uppercase donors agree).%03d bone-index width (rig_anim.py ~998): A1000_ sorts before A999_, inverting order above 999
bones. Unreachable under the 240-bone cap today; a hard assumption worth a comment.TargetMethod param-count filters: Hk_DistrictGroundMaterial / Hk_DistrictHexSculpt
(UniversalInject.Hooks.cs) resolve by method name with no GetParameters().Length filter (unlike their
siblings) — a future overload could be patched silently. Hk_BattleTurnProbe (BattleTurnPatch.cs) indexes
GetParameters()[0] without a length check.Hk_SilenceEvents.Prefix (Hooks.cs) reads eo.name (native marshal alloc) on every Wwise PostEvent
before its gate; mirror Hk_AudioTrace’s early-out. (Both also patch the same PostEvent = two detours/sound.)try/catch on the multi-call postfix bodies of UniRegisterHook / UniRepointHook /
Hk_DistrictRepoint — they sit inside core loading methods and rely entirely on every callee being self-guarded.LongestMatch equal-length tiebreak (UniversalInjectPatch.cs ~889): among equal-length key matches the
first in registry order wins; the count>1 warning fires but the (possibly wrong) bind still proceeds.TryLearnClass (UniversalInject.Clips.cs ~198): takes the FIRST class-sample within 2u (not nearest) and
caches it permanently — a stacked neighbour of a different class can mis-categorise a unit’s turn-ease for the session.deployMoveState (Combat.cs) is nulled cross-session but never pruned within a
session (siblings are).Combat.cs ~605-624): module statics assume StartEvent→GetBoneTRS→EndEvent is
atomic; nested/interleaved fires of coexisting shooters could cross offsets. Confidence limited (needs the engine
to actually nest these).BoneRotation slot clobber (UniversalInject.Pose.cs): on the useDonorClip path ApplyRotorSpin /
ApplyRotorTrim / ApplyGunElevation write overlapping low slots — a rotor-spin + trim combo can clobber.Recorded at the review of the feature (Patches/TechRequireAllPatch.cs).
queued behind 2 prerequisite(s), 2 ordering
constraint(s) and no error from the hooks. Loading an existing save after adding a name to the list worked. Not
seen in a game: removing a queued prerequisite, dragging in the queue, a deliberate look at the AI’s turns,
multiplayer, and an early-game entry (Masonry needs a new game).tools/tech_requires_all_game_drill.sh
replaces MoveTechnologyInQueue with a list operation. A hand port of the game’s move, fuzzed over 40,000 random
queues with several parents per technology, always ended and kept parents in front — a port, not the method. The
drill could run the real method with only the SetSynchronizationDirty call stripped, as it does for the removal.ResearchTechnologyPrerequisites.GenerateDesires, not run): the pass walks the prerequisite names in order and stops
at the first one that is not available, so with the first one completed it creates no task for the second. Read the
same day: no hang follows — the AI queues only available technologies, every loop over prerequisites is a bounded
for, and a refused order marks the task failed. The second prerequisite is still reached by the AI’s own goal for it.IsExclusiveToEra technology locks for good once that era passes (the game’s ANY rule hides this). The window does
not warn. ENC on 2026-11-20: two era-exclusive technologies, neither a prerequisite of a two-prerequisite technology.Hk_TechRequireAllMark): the node’s title
and its tooltip. The search results, the research widget outside the tech screen and the “technology researched”
notification show the plain title. The tooltip line is English unless TechRequireAllTooltip and
TechRequireAllTooltipMany are set. What to mark is read from the snapshot the game hands each node (since the
review fix 6e782cc4; before it, a census published it once per process). Seen in the game the same day, on
World-Wide Web: the [SharedProject] symbol in front of
the title (the user: “the icon looks good”) and a tooltip line with the prerequisites’ titles; the game’s font has
& and » but shows ? for ⋀ and ⇉. The wording was then changed at the user’s request to Requires both A
and B, in italics, and the same symbol put in front of it; that final form was seen too (the user’s screenshot of
11:39, taken with the build of 36ece610, the commit before the review fix). Not seen in a game: the build
with the review fix, the three-or-more wording (no listed technology has three), and Masonry,
whose two prerequisites have no title in the editor’s Tech Requires All window (the game’s own titles are used here).TryFillParentTechnologiesToCompleteBefore), in a
tree that holds a listed technology. Deliberate; noted because it is a difference from the game.TechRequireAllWindow reuses the viewer’s
TechPickerDropdown and tree source (editor/TechTreeWindow.cs, editor/TechTreeData.cs), and the viewer writes
the list. The viewer came from another modder’s tool (the user, 2026-11-20; the files have no credit line and
their history here starts at 2026-08-24, the move into this repo). Since PR #301 (2026-11-21, all asked for by the
user) most of the viewer is local work: the rule switch, positions as numbers, scroll bars, the game’s look and
card images (editor/TechTreeVanillaArt.cs is new and HAF’s own), the in-the-game switch, staged edits that
survive reloads, the Save rewritten part by part. The headers of the two files list what a maintainer meets; the
full set is their diff since 2026-08-24. A newer copy of the other tool can no longer replace these files.
Seen in Unity (the user’s screenshots, 2026-11-21, ENC project): the rule heading and buttons, the position
fields, both scroll bars, the look with the first version’s measured geometry, the project’s card images and
the game’s own. Seen from outside while the user worked (round 3, read only): ten Saves from the viewer in
the real project between 19:10 and 19:34, each logged, the asset text changed in position and prerequisite lines
only. Not seen yet: the prefab geometry, the In the game / Switched off switch with its notes and OFF
mark, and the Save button’s count of missing technologies.RemoveTechnologyAndChildrenFromQueueAt. Documented in Editor-Tools and Capabilities; no fix is possible from a
plugin that is not there.SingleSourceRegistry.ChangeCore returns early on LastLoadCorrupt).
The viewer now loads the Tech Requires All list too, so: the list file is briefly broken (merge markers), the
viewer reloads, the file is put back unchanged, and the list window’s Save is refused (the Console says “the
registry source was unreadable — recover it first”) although the file is fine and its version matches. A Reload
in that window clears it; nothing is lost. Executed by a round-1 reviewer. The fix belongs in the engine (let the
write-time parse decide, which already refuses a broken file) and touches every registry, so it is not in this
PR. The viewer no longer reloads the list on undo, which was the commonest way into it.[TechTree] reading the Tech Requires All list: ...). A read without
side effects would be an engine change.Visibility = Never does is read from the decompiled game, not run in a game
(DepartmentOfScience.CreateTechnologies, CheckTechnologyPrerequisite). The viewer’s wording rests on that;
the game’s debug window can still unlock such a technology by hand.Technology_Era1_01..04): they sit at (0,0), show no image, and a
position staged on them cannot be saved (“no mapper to write”). With the reference folder set they take the
vanilla mappers, which a save copies into a collection under the mod path.Assets/VanillaReference, which ENC does
not have; ENC’s reference copy is Assets/~References) and the default mod path Assets/Databases/New Additions
does not exist in ENC, so a reference-only technology cannot be saved until both are set (round 3: with the mod
path at Assets/Databases/Technologies the copy goes into ENC’s own collections as one new document). Settings
of the user’s, not changed..corrupt copy beside
a healthy source (seen in passing by a round-2 reviewer; older than this PR, not looked into).
filters: Directory,
SubString, Recursive, Mode, TypeMask), as the framework’s editor keeps them; a picked picture still needs the
bundle rebuilt before the game shows it. Nothing was run in the game.SetEra, as the popup does.RefreshEraNumbers).IsExclusiveToEra cannot be edited, and an era earlier than a prerequisite’s era is not
warned about.UpdateTechnologyUnlockInfo, TechnologyUnlocksComparer, TechnologyUnlockItem), written out a second time by a
reviewer and run against the reader on the real data: no difference on 217 ENC and 93 vanilla technologies. A
screenshot of the game’s screen next to the viewer’s would close it.ExtensionDistrictDefinition, …), where the game reads the definition’s ConstructibleType. No
comparison in the ENC or vanilla data takes that branch (474 of 474 go by SortPriority).+N box. Judged from batch-mode screenshots of the real window.rotorSpinBones / rotorSpinSpeed are plugin-only fields with no editor ModelDef field. Partly addressed
2026-08-16: the schema-parity guard now allowlists them as intentional runtime-only keys (like scale), so the
gate is green — but the underlying risk stands: a hand-authored pack.json value is silently wiped on the next Factory
Save (JsonUtility serializes only ModelDef’s fields → unknown keys dropped). Same wipe hits every allowlisted
runtime-only key. The real fix is a round-trip that preserves unknown keys (or promoting these to ModelDef); latent
(ENC unused), so deferred.idleAltInterval default mismatch (editor 25f / plugin 0f) — a pack.json missing the key gets idle-alt
disabled instead of the documented 25s cadence.haf_districts.json has no regex fallbackParseDistricts = Usable(ParseDistrictsRaw(text)) with a per-entry try and RegexDistricts as the fallback. Original: — one malformed char disables ALL custom districts (the model
registry has a fallback; districts don’t).animated flag written but not readcheck_schema_parity.sh lists animated in its “baker fields not read at runtime (bake-time-only, expected)” allowlist, so the asymmetry is declared and gated, not drifting. Original: — the plugin infers animation from the clip-GUID presence, so the field
is a silently-ignored authored value.1E-05); narrow (malformed-JSON path only).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:
AssetReferenceRepository, GroundMaterialDefinition, GroundMaterialAuthoringData, StaticString, Databases), and check-catalog.sh — widened the same day to see AccessTools.Field(x.GetType(), ...) — passes over 371 names. Original: AssetReferenceRepository,
Amplitude.StaticString, GroundMaterialDefinition, AnimationVariableNames, HgFxAnchorComponent. A rename
there degrades silently. (The SimulationEvent_* combat types resolve with their own local warnings, so they’re
loud-but-off-catalog.)GameBinding at all — the Skeleton, pawn-entry / GPUPawnDescriptorEntry /
fragment structs, FxOneMeshStruct, PresentationLevelBuildComponent on the hottest injection path (the
member audit surfaced these; structs need new accessors + a different resolution, so it’s a distinct batch).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:
ModelEntry’s public repointed / descId /
animId bind from any name-matching key (the old hand-list parse was an implicit whitelist), and a key colliding
with a readonly collection (phaseTracks) throws inside ToObject → the whole pack silently drops to the regex
fallback. The parse-site comment assumes no matching keys exist; nothing guards it.registryConfigKeys: shared-schema fields by reflection +
the GUID arrays + plugin-only config) — fail-safe for new runtime-state fields, chosen over per-field
[JsonIgnore] (fail-open: one forgotten attribute reopens the hole). Two pinning tests (hostile state keys →
defaults; readonly-collection collision → stays on the object parse). Suite 61 → 63.References\ DLLs need a strategy first)..github/workflows/ci.yml
builds + runs all 61 tests on every push, using tools/fetch-refs.ps1 (reference DLLs from public sources — the
vestigial Amplitude reference turned out removable, so no game files are needed). bindcheck stays manual (needs
the game’s DLLs).BackupWindow has an offsite destination (HAF.Backup.OffsiteDest), auto-offsite, per-backup zip, a skip-when-unchanged signature, and a refusal when the destination is missing; the operator keeps the compressed copy in cloud storage. Original: — all code is on public GitHub, but the licensed source models
and baked assets exist only on this machine plus same-machine D:\HAF_Backups (now noted in Backup.md). One disk
event loses the un-reproducible half of the project.cb vs cbb GUID-component namingcb/cbb/ca/cba/aca/a2a) no longer exists: clip guids go through the ClipRoles table (one enum value + one name/tag/key per role). Only the two unambiguous prefix groups remain — sa..sd (skeleton), ta..td (texture). Original: (clip vs combat-clip; also ca/cba/aca/a2a) — a one-character typo
in the 44-int wiring compiles clean and mis-wires a clip role; nothing tests the field→InjectClipCollections
wiring. Rename or add a wiring test when next touching the schema.Diag gate ([REND]/[SRCFIX]/[CRUSH]/[GHOST]/[DESC],
added 08-03/04 after the Phase-3 quiet-logging pass; most are change-gated or one-shot, but the [REND] census can
log ~26 LogInfo lines / 15 s per hideSubPawns entry).[HIER]/[LAYER]/[FX]) now go through Plugin.Diag; the operator-driven [BISECT]/[REND2] command responses
deliberately stay loud (they answer a typed haf_ghostbisect.txt command).Plugin.cs:83 still names community.humankind.encaccessproof.cfg; the live config is
community.humankind.haf.cfg.