brokkr_kitbash.plate: fit rows part, bolts and step from kits/fittings.v0.json (cut plate-fittings-kit) #48

Merged
eureka merged 8 commits from nibu/plate-fittings-kit into main 2026-12-03 17:54:31 +00:00
Owner

Cut aetheria-release:cut_spec:cut-plate-fittings-kit.r1.

What it does

  • kits/fittings.v0.json: nine parts that stand on a hard plate's face (bolt, slot, pit, vents, access_port, port_bolts, handle, eye, louvres), each on +z from z = 0, one material a part, no sockets. core.py and the kit format are unchanged.
  • plate.py: three fit rows beside mark and hose_port: part (a fittings part at a place, roll and lift), bolts (the kit's bolt along a slab's outline) and step (plate.panel with inset 0). build's entries gain fits {mat: (V, faces)} and report.fits.
  • brokkr_kitbash.plates writes each fits material into N.fit.<mat>, merged with panels or bolts of the same material, and checks every material a fit names before writing.

Where it departs from the spec text

  • Bolts rows stand on the bare face (lift over it, default 0), not on the clad top. This closes G1 of follow-up stag-fittings-gaps: the tracks' rim bolts stand at z 0 under a clad.
  • The access port is two parts, access_port (the turned body) and port_bolts (its eight heads), so two part rows give it two materials. This closes G2.
  • step takes an optional bolt_mat (default gunmetal, as clad's): plate.panel makes corner bolts, and the tracks put them in gunmetal.
  • A bolts row follows the outline as drawn, in by the slab's gap. The spec says the outline; with gap 0 the two are the same.
  • The spec's bolt-rim pin (4, 2, 4, 2 at spacing 0.2) does not kill its own mutant: round gives 4, 2, 4, 2 there too. The test also pins spacing 0.15 (5, 2, 5, 2; round gives 6, 3, 6, 3).

Part parity against stag-4 (abe7b93), Blender 5.3.0

Vertex sets, kit part against the track's own Geo output at the track's literals, metres:

part apart
bolt (r 0.017, and r 0.012) 2.3e-9, 1.6e-9
slot, and its pit 4.7e-9, 7.1e-10
vents, and its pits 1.5e-8, 6.1e-9
access_port, port_bolts 3.1e-9, 7.2e-9
louvres 1.9e-8
step panel, step bolts 1.0e-8, 6.5e-9
handle feet 1.7e-8
eye without its pad 7.7e-9
handle, whole 0.017
eye, whole 0.021

Two parts miss the 1e-5 bound, and cannot meet it in the kit format as it stands: the handle's bar is an octagon swept along a bent path in the track and the kit's extrude has no round section (it is a square of side 2 r here, mitred); the eye's pad is a rounded outline with a chamfered rim in the track and the kit has no prism on an outline (it is a box here). Meeting either needs a new section or shape in core.py, which this cut's spec keeps unchanged.

Verification

  • python -m unittest discover -s tests from surfaces/blender on Starfire, rebased on main 1f76f4d: 765 tests, OK (20 skipped).
  • The plate hash (now holding a row of every fit kind, one seed and a pair, both sides) is the same on Starfire (numpy 2.5.4) and Yggdrasil (numpy 2.2.4).
  • tests/live/kitbash_plates.py in Blender 5.3.0: 65 checks, all ok. Two new mutants of the action (X15, X16) each fail it.
  • Six mutants of plate.py's fit code each fail test_plate.py.

PR 46

This branch does not touch inset2d, panel, _row_points or _check_clad. Both branches re-pin HASH in tests/test_plate.py and rewrite tests/live/kitbash_plates.result.json: whichever lands second re-pins the hash on both hosts and re-runs the live test.

🤖 Generated with Claude Code

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-plate-fittings-kit.r1`. ## What it does - `kits/fittings.v0.json`: nine parts that stand on a hard plate's face (`bolt`, `slot`, `pit`, `vents`, `access_port`, `port_bolts`, `handle`, `eye`, `louvres`), each on +z from z = 0, one material a part, no sockets. `core.py` and the kit format are unchanged. - `plate.py`: three fit rows beside `mark` and `hose_port`: `part` (a fittings part at a place, roll and lift), `bolts` (the kit's bolt along a slab's outline) and `step` (`plate.panel` with inset 0). `build`'s entries gain `fits {mat: (V, faces)}` and `report.fits`. - `brokkr_kitbash.plates` writes each fits material into `N.fit.<mat>`, merged with panels or bolts of the same material, and checks every material a fit names before writing. ## Where it departs from the spec text - **Bolts rows stand on the bare face** (`lift` over it, default 0), not on the clad top. This closes G1 of follow-up `stag-fittings-gaps`: the tracks' rim bolts stand at z 0 under a clad. - **The access port is two parts**, `access_port` (the turned body) and `port_bolts` (its eight heads), so two part rows give it two materials. This closes G2. - `step` takes an optional `bolt_mat` (default `gunmetal`, as clad's): `plate.panel` makes corner bolts, and the tracks put them in gunmetal. - A bolts row follows the outline as drawn, in by the slab's `gap`. The spec says the outline; with gap 0 the two are the same. - The spec's bolt-rim pin (4, 2, 4, 2 at spacing 0.2) does not kill its own mutant: `round` gives 4, 2, 4, 2 there too. The test also pins spacing 0.15 (5, 2, 5, 2; `round` gives 6, 3, 6, 3). ## Part parity against stag-4 (abe7b93), Blender 5.3.0 Vertex sets, kit part against the track's own `Geo` output at the track's literals, metres: | part | apart | | --- | --- | | bolt (r 0.017, and r 0.012) | 2.3e-9, 1.6e-9 | | slot, and its pit | 4.7e-9, 7.1e-10 | | vents, and its pits | 1.5e-8, 6.1e-9 | | access_port, port_bolts | 3.1e-9, 7.2e-9 | | louvres | 1.9e-8 | | step panel, step bolts | 1.0e-8, 6.5e-9 | | handle feet | 1.7e-8 | | eye without its pad | 7.7e-9 | | **handle, whole** | **0.017** | | **eye, whole** | **0.021** | Two parts miss the 1e-5 bound, and cannot meet it in the kit format as it stands: the handle's bar is an octagon swept along a bent path in the track and the kit's extrude has no round section (it is a square of side 2 r here, mitred); the eye's pad is a rounded outline with a chamfered rim in the track and the kit has no prism on an outline (it is a box here). Meeting either needs a new section or shape in `core.py`, which this cut's spec keeps unchanged. ## Verification - `python -m unittest discover -s tests` from `surfaces/blender` on Starfire, rebased on main 1f76f4d: 765 tests, OK (20 skipped). - The plate hash (now holding a row of every fit kind, one seed and a pair, both sides) is the same on Starfire (numpy 2.5.4) and Yggdrasil (numpy 2.2.4). - `tests/live/kitbash_plates.py` in Blender 5.3.0: 65 checks, all ok. Two new mutants of the action (X15, X16) each fail it. - Six mutants of `plate.py`'s fit code each fail `test_plate.py`. ## PR 46 This branch does not touch `inset2d`, `panel`, `_row_points` or `_check_clad`. Both branches re-pin `HASH` in `tests/test_plate.py` and rewrite `tests/live/kitbash_plates.result.json`: whichever lands second re-pins the hash on both hosts and re-runs the live test. 🤖 Generated with [Claude Code](https://claude.com/claude-code) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Nine parts that stand on a hard plate's face, each on +z from z = 0, one
material a part, no sockets: the mech tracks' own points as kit data. The
access port is two parts (its body and its bolts), so the heads take their
own material.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
build's entries gain fits {mat: (V, faces)} and report.fits. A part row is
a fittings part placed by the fit's frame on the face's top; a bolts row
stands bolts along a slab's outline on the bare face; a step is plate.panel
on an outline. The hash holds a row of every kind at both sides.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Each fits material merges with the panels or bolts of the same material;
every material a fit names is checked before anything is written. The live
test writes a slab with a fit row of every kind on both sides.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Ruling plate-bolts-follow-edge-event: no refusal. The guard is every edge running
the way its drawn edge runs, so a square turned half round is caught too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nine kit mutants (Soul's seven, heads on 0.9 r, louvre slant sign) each die in
FittingsKitTests, not only by the plate hash. Bound 4.7e-10 by the margin rule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
eureka force-pushed nibu/plate-fittings-kit from 34da146b5a to 34ceeca021 2026-12-03 17:52:51 +00:00 Compare
eureka merged commit f8b2893eaa into main 2026-12-03 17:54:31 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GameCult/Brokkr!48
No description provided.