claude-of-tanks / src/vehicles
Purpose
<!-- agent-docs:fill:purpose -->
Own the playable fleet's canonical specs, first-party visuals, armor metadata,
materials, and garage ordering.
Mental model & key files
<!-- agent-docs:fill:model -->
specs.ts is the registry, fleetManifest.ts and fleetFactory.ts own the
typed browser demand graph, tankFactory.ts builds/synchronizes eager audit visuals,
profiles/ owns authored families, taxonomy.ts owns the strict era/role
vocabulary and complete saved-fleet assignment, vehicleFacets.ts owns the
player-facing class, battle role and design status facets (every playable id
exactly once per facet, tied to its doctrine and mechanical role:
vehicleFacets.selftest.mjs) and vehicleFacetSearch.ts the shared
class:/role:/status:/era:/nation:/tier: search grammar, tier.ts and fleetOrder.ts
own remaining metadata, tankAssets.ts owns UI asset mappings, and
turretBarrelCircularity.ts measures actual rig-local gun sections for the
fleet release gate.
internalAnatomyVisuals.ts is the strict shared geometry owner for Gallery and
killcam module, crew, and drivetrain presentation; keep both consumers on its
volume and resource-lifetime contracts.
A built visual's runtime (its per-actor state and methods, createTankRuntimeSteps) and each running-gear unit's
(createRunningGearRuntime) read only the explicit record their build hands them (TankRuntimeEnv,
RunningGearRuntimeEnv): a new runtime value goes into that record, never a capture of a build local. That is what
lets cloneTankVisual (232, the MP roster's repeated vehicles: a few ms instead of a 1-1.5 s build) copy a pristine
visual (vehicleGraphClone.ts) and run the same runtimes over the copy: shared stock and camouflage textures, its own
materials (copyVehicleMaterial), written buffers, gear state, burn, dents and lamps (copyVehicleNightLighting). A
profile that patches the finished gear does it through a recorded helper the clone replays
(scaleRunningGearMotion); a clone refuses (throws, the caller builds) any hook, callback, object kind or gear patch
it does not know. Since perf-252 a battle-batched build copies too (the MP roster's seats are the battle roster's
builds): its end-wheel BatchedMeshes, detached LOD sentinels, battle detail groups, the dual merge's far copies and
depth orders (the runtime's adoption installs them), program-variant twins over the copy's own originals
(programVariantCopy), the shared depth materials, its own articulated shadow batch over the copied proxies and its
own lease on the pooled rigid stock (leaseSharedBattleGeometry). A copy asked for another build (geometry tier,
batching, battle detail, merge) refuses. tankVisualClone.selftest.mjs holds a copy to a fresh build's draws.
The factory core's read-only analyses live beside it (round 46,
docs/CLEANUP-2026-09-23-structure.md): eraSurfaceFrame.ts (ERA plate frames
and PCA fit), muzzleCapProfiles.ts (barrel cap/mouth-edge walkers),
restPoseContact.ts (dense-shell floor, rest contact, presentation floor),
vehicleMarkingSeating.ts (marking-seat solver and verified-seat replay) and
vehicleMesh.ts (mesh guards); shared pack helpers are profiles/fittingMount.ts
and profiles/armorFaceSampling.ts. Fold a duplicated helper into one of these
owners instead of copying it into a family pack.
The Japanese, Swedish, Italian, Chinese, T-80-family, Sheridan, Soviet
heavy-family, shared AFV, and Polish visual deltas live in strict
profiles/japan.ts, profiles/sweden.ts, profiles/italy.ts, and
profiles/china.ts packs plus profiles/t80.ts and profiles/sheridan.ts,
plus profiles/soviet-heavy.ts, profiles/afvFamily.ts, profiles/poland.ts,
and profiles/t72.ts, while the AMX-40 visual build lives in strict
france.ts; all eleven use narrow
procedural-builder ports. Preserve their
demand-loaded family boundaries and complete donor geometry.
profiles/kit.ts is the strict shared owner for generic hull/turret profiles,
donor dispatch, muzzle closures, and deterministic exterior fittings. Extend
its validated builder, profile, and fitting-option contracts instead of
reintroducing unchecked family-local copies.
modern3.ts owns the strict, demand-loaded Chieftain, K2/K1A1, Type 10,
Bradley/BMP, Puma, Type 89, and Ariete geometry pack. Family adapters that
reuse those donors must declare the complete runtime builder surface they
forward; do not weaken the shared port or bridge through untyped casts.
modern2.ts owns the strict Leopard 2A4, T-80U, Leclerc, Type 99A,
Leopard 1A5, MBT-70, and T-14 spec/geometry pack. Keep its mutable armor-lift
operation explicit, its variable loft/scale adapters narrow, and its runtime
registration idempotent.
decorations.ts owns deterministic cosmetic-kit construction and exact
surface seating. Keep decoration geometry merged by material and owner frame,
keep the 6,000-triangle near budget (2026-10-05, tank-accessories lane; the
coarse level runs at about two fifths of it), and preserve the typed
projected-ray index plus gun, turret-sweep, width, and overlap guards (one exception: the release-269 lived-in
loads, below). Piece
shapes come from accessoryKits.ts on the shared accessoryPrimitives.ts
vocabulary (molded boxes, sewn fabric lofts whose straps cinch the fabric,
round members, swept tubes): author every new piece there, drawing all random
values before any detail branch, with a coarse level (detail: 0) in the
same envelope. Each material family draws its near forms to 28 m, its coarse
forms to 150 m, nothing beyond; the mobile tier builds only the coarse forms.
Cosmetic decor is combatHitboxRole: 'nonArmor' so battle distance detail may
drop it; the smoke banks are working equipment in their own resident group,
which also carries the camo-painted hard kit (one kit draw per frame). Keep
decor draws per tank at or below the pre-rebuild count
(decorDrawBudget.selftest.mjs): webbing (strap) and small wooden parts
(trim) ride the painted-hardware draw, glass and tyre rubber fold into steel
and hardware, and a new family on a frame needs a reason.
The one exception to the 6,000-triangle budget (release 269, accepted by the coordinator on 2026-11-05): the lived-in
loads LIVED_IN_ROWS appends to m1a1, m1a1ha, m1a1_abrams_hc, m1a1_abrams_sa, m1a1_abrams_aim, m1a1_abrams_fep,
m2a2_bradley, m3a2_bradley, m3a3_bradley, ua_m2a3_bradley and m6_linebacker (ua_m1a1 carries none) seat under their
own near budget, LIVED_IN_TRIS (16,000 triangles: 11,000 for phase 1, raised for phase 2's fuller racks and
turrets), because the owner asked for "a bunch of extra decorations annd tank props and boxes and bags and other soldier
reuqipment onn all of these bradleys and m1a1s" (2026-11-05). Every row before them still seats under 6,000, so nothing
those vehicles carried before moves; any other vehicle that wants more load asks the owner first (docs/DECORATIONS.md,
"Release 269").
Rotary guns (the M163's Vulcan, 269; the M6 Linebacker's GAU-12/U, 276) share one path: gun.autoloader.rotary
(sim/fireCycleFloor.ts, one round a tick), the builder's barrels in one group tagged userData.gunRotor
(gunRotorSpin.ts, kicked per cannon shot, never per missile) and the thinned presentation in game/state.ts. A new
rotary gun tags its rotor and sets rotary; it adds no second spin or cadence system.
Leaves on vehicles (suit garnish, the per-spec opt-in branch bundles) are spray
cards on the trees lane's atlases through vehicleFoliage.ts, never a second
foliage system. The Browning-family roof gun is one construction,
machineGunGeometry.ts, shared by KIT.fittings.pintleMG, the legacy
KIT.pintleMG and the decor roof gun: keep envelopes and muzzle points when
changing it (remote parity). A working or remote pintleMG station passes
ridingCradle: true (its cradle, pin and shield pitch with the gun, fitted to
the class by addPintleRidingCradle); workingPintleCradle.selftest scans the
calls and fleetPassDefault measures every station against its own mount. The 20 L jerrycan is one construction too
(accessoryKits.ts jerrycanParts: decor cans, KIT.jerryCan,
FITTINGS.jerryCans), and the profile kit's soft stowage, tarp rolls, ammo
cans, shovels and stowage-rack loads use the same primitives inside their old
envelopes and random draws, as do the decor roof furniture (cupolas, hatches,
sights, searchlights, exhausts, the travel lock; accessoryKits.ts). Decor probes skip running gear by name
(isDecorRunningGearName); track guards and skirts are supports and obstacles. Round 2 of the blind critics
(2026-10-06) set four more rules: loose hard loads carry webbing tie-downs to D-rings and every loose piece a dark
contact pad (secureLoadParts, decor casts no shadow); branch bundles lie lashed along a wall or deck, never
upright; nets are knotted on an uneven lattice and billow, sag and pleat between tie points; and the machine gun's can
is issue olive with a belt of dull-brass rounds into a feed tray. Primitives close their shells (lathe and tube caps,
straps sunk into the fabric), because the sealed-hull census counts any inside seen from outside as a hole.
Round 3 (2026-10-07) seats loads on the support they actually have. A load (isLoadPiece: cargo, cans, bags, rolls,
drums, wheels) on a roof, bustle, deck or fender takes supportedSeat: a 3 x 3 probe grid over its whole footprint
and a fitted support plane. Rigid loads need 3 cm or less of residual and lean at most 12 degrees. Soft loads
(sagsOnSupport) take up to 5 cm and sag onto the high points. Loads ride 2-7 degrees off square and a few
centimetres off their station (transitYaw). The rear-plate rack slot builds a real cantilever rack under its load
(rearRackParts), and the turret-side slot builds welded L-arms with a strap (sideLedgeParts). Both drop the
contact pad, which now sits inset inside the footprint so it never shows as a rectangle. Rear-hung pieces hang from
a hook bracket. Commander rings in KEEP_CLEAR_HULL stay free for the gun's traverse. .qa-dev-style support audits
(rays from inside each placed piece onto the tank's own geometry) measured 46 % of deck-seated loads floating
before and 2 % after, with 441 loads in mid-air before and 18 after.
For player-reported Garage defects, also verify the actual carousel/pedestal
path with its live engine context, AI geometry quality, static batching and
cache return. Bare procedural or Gallery captures are insufficient. Record
the served application-version; origin/main is not automatically deployed.
The Griffin Viper regression and manual publication check are documented in
tools/SKILL.md and docs/DEPLOYS.md.
Covered battle loading consumes createTankSteps through fleetFactory.ts;
the original createTank remains synchronous for authoring and Gallery callers.
Construction checkpoints expose no partial visual. Decoration work keeps its
exact RNG/order and stages unpublished groups privately; closing the iterator
must dispose its private geometry and release owning-context shadow-material
registrations. Never yield inside a family builder's temporary spec mutation or
change authored detail to satisfy the loading budget.
profiles/ukraine.ts owns the strict Ukrainian T-64BV, T-80BV, T-80U Kursk,
Oplot-M, and field-caged M1A1 builds. Keep its surface-seated ERA, cast-dome
profiles, welded-face probes, cage stations, and mutable donor-id handoff behind
the narrow Ukrainian builder port; do not move these vehicles back through an
eager or untyped fleet path.
materials.ts is the strict shared owner for camouflage painting, shared
texture residency and promotion, semantic vehicle materials, decals, ambient
shadow-floor hooks, and destroyed-vehicle burn resources. Preserve its painter
constants, deterministic RNG order, shader strings, and demand-owned wreck
atlases; extend its local cache and repaint-role contracts instead of casting
through an untyped material bag.
Camouflage is production's system (fix/camo-defaults, 2026-10-09; the owner on launch day: "why did you break camos?
they only show generic camos now instead of the cool camos we had before", then "yeah our entire camo system before was
better"; R113: "the default camos of our tanks to be what they were before, but just organized a lot better"). Factory
is each tank's stock scheme (camoPolicy.ts stockCamoPatternIdFor: its Signature, a named stock or the nation's service
pattern); AUTO draws per (vehicle, biome) from materials.ts BIOME_PATTERN; a bot keeps its own paint on 40 % of rolls
(rosterState.ts autoCamoIdsForBattle). camoCatalogProductionIndices.selftest.mjs holds every tank's selection, stock,
Factory visual and AUTO, and every catalog index, to production (camoProductionBaseline.json, afc5018e9). A paint
generated later appends after GT (AUTHORED_PAINT_IDS_AFTER_GT), never among the earlier ids. PR #9's national/theatre
AUTO, theatre-matched bots, round-4 Factory coats and painter v2/v3 left with this restore; any change to them needs the
owner's ruling first.
profiles/russia.ts owns both the strict T-44/T-54/T-62/T-64 Russian profile
pack and the shared Soviet geometry vocabulary consumed by China, Poland,
T-72, T-80, and Ukraine. Keep its hull, dome, gun, ERA, Shtora, mudguard, and
ride-height helpers behind capability-specific ports; do not replace them with
one oversized builder contract or an eager fleet dependency.
Patterns to follow / invariants
<!-- agent-docs:fill:patterns -->
Tank ids are versioned (SSOT 2.19). tankIdAliases.ts holds TANK_ID_SCHEMA and the append-only
TANK_ID_RENAMES: an id stored or sent without tankIdSchema (or a link without &ids=) is schema 1 and resolves
through every later map, so a rename may reuse an id another vehicle gave up (a swap) without misreading old data.
Readers resolve at the boundary (game/tankIdStorageMigration.ts at boot, game/tankIdBoundaries.ts for Studio
scenes, kill-cam payloads, gallery links and telemetry, resolveIncoming for room seats); writers spread
TANK_IDS.stamp(). Anything that hashes an id into a vehicle's look or name hashes tankSeedId(id) (its schema-1
spelling), so a rename never moves a load, a texture, an AUTO camo pick or a hull number. A rename appends a map,
bumps the schema and PROTOCOL_VERSION together (tankIdAliases.selftest.mjs pins both); npm run tank:ids:table
prints the rename table.
A new whole-fleet check is a fleet audit ({ check(id, tank), finish() }) added to the fleet pass whose build it
reads (fleetPassDefault, fleetPassHigh, fleetPassLow; rules in fleetPass.test-support.mjs), not another
receipt that rebuilds all 217 tanks: the build is nearly all of a sweep's cost.
All playables use first-party runtime geometry; comparison bases belong to the tank-generation
tooling alone, and no test, receipt or gate reads one.
Every first-party procedural vehicle is created by Kevin B. Liu and must keep
the canonical named authorship record from src/authorship.ts; AI systems are
development tools, not model authors. Preserve third-party reference credits
in docs/ATTRIBUTION.md.
Keep turret/gun parenting correct, derive track hit geometry from the running
gear profile, and land per-tank changes atomically with audits. Every playable
tank carries the core combat modules; combatAnatomy.ts adds only
gameplay-backed vehicle-specific systems (autoloader, IFV feed, missile rack)
and calibrates armor/module/crew coordinates to checked geometry receipts.
Every authored layer (spaced, external, ERA plate) lies on the drawn build (hitbox-fit-274; the owner, 2026-11-18:
"some tanks like abrams x just have a floating hit box"): the anatomy generator measures each finished layer and writes
plateFits into the row, and applyPlateFits crops a layer to the part it overhangs, fits one standing up to 35 cm off
its part onto it (never onto the main shell or the running gear), drops one whose part is not drawn (only the structural
wall, the frame's main plates, near it), and holds where it stands one whose part is drawn but not as one sheet (a skirt
fused into the hull's solid block: a visible skirt keeps its value; the model owes a separate sheet). A donor's plates
are not the derived vehicle's: nothing authored needs re-seating by hand. tools/hitbox-fit-census.mjs gates it per id
in tank:release:check and fleet-wide in tank:anatomy:check (the held layers and the convex cells' bridges held to
docs/geometry-gate/hitbox-fit-ledger.json, never grown, until the models and the generator's slicing fit them).
Sides (266): +X is the vehicle's LEFT (forward +Z; vehicleSide.ts owns the
convention, a ...Left station sits at +x). Most anatomy sketches were drawn
mirrored; finalizeCombatAnatomy lets the sourced stations decide each sketch
frame's handedness and mirrors a wrong frame whole (crew and its modules), so
author new sketches with the left at +x. One placement pass then resolves the
internals in a fixed order (shell, ring/basket, crew, then modules from hard to
soft) and each row publishes moduleSeats beside crewSeats;
gen-combat-anatomy prints sketches lying largely outside their armour as data
fixes, and internalPlacement.selftest.mjs holds sides, ring, volumes and
overlaps. armorInterior.ts is the one definition of the interior a volume
fills: hull volumes in the hull's armour envelope, turret-local ones in the
turret's or, under the deck, the basket (the ring's cylinder about the yaw
axis). The receipt and module-visual-align-probe's volume-out both read it.
Crew stations are seated, not boxed (235): every calibration row carries
crewSeats from tools/crew-seat-fit.mjs (run by gen-combat-anatomy; refit
against committed rows with --crew-only [--ids=…]): a P50 1.75 m body (the
Gallery mannequin's segment table) in its role's posture — modern MBT drivers
recline, turret crew sit in the basket below the ring, a turret loader stands
where the headroom allows — placed nearest its authored station inside the
exact shell and off the powerplant, autoloader, gun and stowage (where no
posture fits, a turret seat reaches across the ring's full width and a hull
crew capsule's gunner, commander or operator reclines like a driver). Its hit
shapes stay inside armour proper: where the combat shells leave a gap between
the hull roof and the turret floor (the Challenger 2 family, Leclerc, KF51 …),
the piece of a body crossing it is cut out of the hit shapes, and HE splash
strikes the body at three blastPoints (head, torso, lap). Its literal box,
head, posture, hit shapes and blast points are what every client and authority
read. node tools/crew-fit-census.mjs judges the fleet (box, hit shapes and
body inside the shell; failures are the pinned trimmed stations).
Procedural low-polygon shadow hulls are presentation-invisible proxies: route
them with markShadowOnly() rather than relying on colorWrite: false, which
still incurs a forward submission in Three.js.
Battle and Garage builds (batchStatic) fold every contiguous run of the final
coplanar depth-layer order that shares an owner, material, vertex layout, raster
flags, LOD switch, near-hull shadow and distance-detail membership into one draw
(staticDrawMerge.ts, P21; at most 16,384 vertices per merged draw); unmerged
meshes keep their layer, so no coplanar winner changes. A folded source keeps its name, userData, layer, geometry and
frame chain in the merged draw's side table (staticMergeParts.ts): resolve a
name with findStaticMergePart, a raycast face with staticMergePartForFace,
and replay per-mesh measurements through staticMergePartMatrixWorld (rest
contact, the presentation floor and showroom framing do). A runtime system that
edits a vehicle buffer in place must be pinned in the factory's merge options
(ownsGeometry), or the merge folds it; running gear never folds.
Only parts already at their owner's frame fold by default, so every vertex byte
is unchanged; staticDrawMerge: 'translations' also bakes pure translations but
moved up to 1,615 px in the P21 float-target captures (float rounding of baked
positions), so it stays an opt-in. Battle builds (the roster's and the MP seats':
fleetFactory.battleStaticDrawMerge) take 'dual' (perf-250/254): the identity
build exactly, plus hidden far copies of each same-key group of parts (contiguous
or not, translations baked), which syncFromState draws past FAR_MERGE_ENTER_M
(30 m screen-equivalent; back under 27 m) with their own depth offsets. With no
distance (killcam, Garage, Studio) and on a wreck the parts draw. A part in a
detail wrapper, a battle detail group, a turret squash frame or the near-hull
shadow never joins a copy. ?staticmerge=off|identity|translations|dual switches
the mode on one build for probes.
Past FAR_LOD_ENTER_M (180 m screen-equivalent; back under 165 m) a dual battle
build draws its far LOD (farLod.ts, perf-255), built from its own finished tree
the first time it goes that far (one vehicle at a time, claimFarLodBuild): the
far hull (its visible static draws merged per direct parent, material and far
coplanar depth, then vertex-clustered at 5 cm, split by normal direction and never
across a UV seam, each cell's normals and colours averaged; a long, thin part
clusters alone at an eighth of its section) and the
far running gear (one low cylinder per wheel station: the tyre layer's centre and
radius, a rubber ring as wide as the tyre shows past its set's painted layers, the
dish in the wheel paint; end wheels and tyreless sets all paint). Only what the
stand-ins replace is parked on FAR_LOD_PARKED_LAYER (27): the hull sources, the
wheel layers, roller spindles and end wheels; the bands, shoes and links stay. It
is never toggled through visible, and the gear's runtime rests while far.
Damage-edited buffers, ERA, markings, proxies and transparent draws never join the
far hull. The switch evidence (perf-256) is CPU render pairs on either side of it
at 165/180/200 m, side and 3/4 views, with silhouette XOR; a narrower probe lens
must pin the vehicle's LODs to the true range (they pick by screen size).
Destroyed-only char and ember atlases must remain demand-owned. The battle warm
pipeline prepares fielded variants before rollout, while setDestroyed() is
the correctness fallback for Studio and diagnostic callers that skip warming;
never restore eager wreck-map creation to ordinary vehicle construction.
The ring a kill leaves (turretRingWell.ts, tank-opt RING 2026-10-16) follows
the same rule: setDestroyed() swaps every hull mesh crossing the race's
polygon for a cut copy (the gun-bend pattern) and puts one plate on rig_hull
on the same polygon (its own ring material, one draw, one fleet program) that
fakes the well by tracing the view ray against a virtual cylinder; a band round
its rim closes the cut faces. The plate takes the hull's dents at its vertices
and ramps with the burn clock (ramp), so it moves with the cut deck;
resetDestroyed()/dispose() put every mesh back on the geometry it held, so
an intact build holds nothing of it and its fingerprint and sealed ledgers never
see it. Its seat is measureTurretRing on the visual's own build, once (the
built seat, the deck round the race, the race inside the turret base and the
deck's outline; a geometry-only hulk build adds the exterior pass, the floor and
the well's wall clear of the hull's skin). A calibration turretRing receipt
can stand in for it, but the generator does not publish one: the ring is
presentation only, and the anatomy's turretRing volume (a sim module) keeps its
own law: centred on the receipt's seat and deck where one is published, else on
the turret pivot, the rig_turret seat (alignTurretRing, 240). A cook-off hulk's
bake cuts its hull-side parts exactly after the crumple and merges the well's
real geometry with its placement budget unchanged. `node tools/turret-ring-census.mjs
--all --gate is the fleet receipt; node tools/turret-ring-probe.mjs --ids=… --gate`
the z-buffer one (coverage under dents, exterior holes, live and hulk).
Camouflaged roof fittings, sights, smoke dispensers, stowage, and machine guns
must use P.addEquipment() so they never expand the main armor shell. Offensive
rocket/missile launchers are damageable: scope their housings, canisters and
supports with weaponAssembly() from profiles/weaponStock.ts. Regenerate
anatomy to publish their exact external hit surfaces and module links. Keep
inter-pod gaps open, retain native yaw/pitch ownership, and test direct/blast
damage with one module roll per shot. Do not put a broad armor box over a rack. Structural cupolas use
P.addCupola() (or an explicitly structural hull/turret add) and remain hittable.
Canonical running gear resolves deterministic mechanical families through
wheelPatterns.ts, trackPatterns.ts, and suspensionPatterns.ts. Road-wheel
faces are standardized by nation (owner 2026-09-22): nationWheelSets.ts is the
one table of donor tanks, per-nation rules and per-hull exceptions, and
nationWheelConstructions.ts draws a donor's face at any hull's radius, never
narrower than the hull's authored tire width (wheelW) nor wider than its
standard cap envelope (1.48 × that width) or 0.90 × the track width, whichever
is larger, and never outside 0.85–1.15 of the donor's proportion (round 40;
the fleet audit flags a hull whose bounds ask for more). A donor hull keeps its own wheel
code; every other hull's authored wheel solids, wheelFaceLayers and post-build
addRoadWheelLayer dressing are not drawn, and its authored suspensionDimensions
(measured against the wheel it no longer carries) give way to the fleet arm,
which seats itself against the wheel it actually carries. Period (ww2)
hulls keep their constructions. A profile may restate, never contradict, its
nation wheel pattern. Keep road wheels, return rollers, idlers, and sprockets on
that one suspension-driven assembly. Running-gear finish (owner 2026-09-22, runningGearFinish.ts): one table says
what every gear role may be — tires and insets the fleet rubber, every painted
face (dishes, hub caps, rims, roller discs, end-wheel bodies) the hull's one
scheme wheelPaint material, hardware dark steel. normalizeTankAppearance
re-seats any clone or fitting paint onto the hull paint and undoes in-place
retints; wheelQuality.ts audits the table on every hull. Never author a
per-hull wheel hex, clone the wheel paint, or retint it in a profile. Run the three focused
pattern checks, nationWheelSets.selftest.mjs, fleetPassHigh.selftest.mjs (the wheel-quality audit) and
node tools/wheel-review.mjs --all --gate after any wheel or running-gear
change; node tools/wheel-inventory.mjs --all lists every hull's wheel.
Material roles (owner 2026-09-25, FSP-06): camouflage belongs to painted bodywork — hull, turret, guards,
bins, cases, mounts and their hardware plates — through the camo buckets (hull*/turret*/*Detail/*Equipment);
everything a crew does not spray takes its own bucket: hullCloth/turretCloth (OD canvas: tarps, packs,
bedrolls, mantlet boots via gunMountCanvasSkin), hullCanvasPale/turretCanvasPale (sand-khaki desert / IDF
kit), hullFittingPaint/turretFittingPaint (solid scheme paint for small painted steel such as jerry cans, which
a hull-scale camouflage tile would splash), hullRubber (flaps, tires), hullWood, hullBark/turretBark (round 4:
unditching logs, barkLog({ relief: 2, tinted: true }) in the vertex-coloured log wood), hullGlass/turretGlass
(lenses, vision blocks), hullDark/turretDark (gunmetal: tow cables, coils, whip rods and antenna bases, MG
bodies, exhaust pipes, tool heads). Parts authored inside an ERA cluster always take the camouflaged external-armor
bucket (they collapse with the brick) — emit hardware that must stay dark after the cluster closes. Census with
node tools/material-roles-audit.mjs [--ids=… | --all] --md=<path> (part census hook partCensus, lexical evidence
per part, per-tank role and material counts); the audit and its verdicts are