brokkr_kitbash.freeze and thaw: a finished cut object keeps its evaluated mesh and stops paying for every live Boolean; apply is cut (cut kit-freeze) #37

Merged
eureka merged 5 commits from nibu/kit-freeze into main 2026-12-02 21:54:39 +00:00
Owner

Cut aetheria-release:cut_spec:cut-kit-freeze.r1, branched from main at 5b56579 (after PRs 32, 33 and 35).

What changes

  • brokkr_kitbash.apply, kit_baked and report's baked key are deleted (first commit).
  • brokkr_kitbash.freeze: any mesh object with modifiers. Its mesh becomes its evaluated mesh, its live mesh is held by the ID-pointer property kit_frozen, and every modifier stays in the stack with its collections, turned off.
  • brokkr_kitbash.thaw: the one undo. Evaluates nothing itself.
  • live() refuses a frozen object in set_params, boolean, cut, cut_many, ribs, a shell rebuild, a hose rebuild and freeze.
  • Report's baked becomes frozen.

Why

Blender 5.3 re-evaluates every live collection Boolean in the scene after any datablock removal, any hide_viewport change and any new_from_object. A frozen object costs nothing there.

Measured (Starfire, Blender 5.3, other agents loading the machine: read the ratios)

  • KESTREL (mechlib at f444bbf, this branch merged into it locally, the freeze action called at the end of each component), three interleaved pairs, rest against freeze: 168.0/32.5, 156.4/46.4, 212.5/37.2 s. Ratios 5.2, 3.4, 5.7; ratio of medians 4.5. Boolean evaluations 1035 against 139 in every run. The map read 251.7/51.2 = 4.9.
  • Live test: removing an orphan mesh beside three cut tanks, 1.05 s live against 0.0023 s frozen (ratio 0.0022). Mutant F1 (freeze leaves the modifiers on) reads 1.5; the bound is 0.057, separation 26 each side.

Verification

  • py -3 -m unittest discover -s surfaces/blender/tests: 561 tests OK (20 skipped).
  • Live, private BLENDER_USER_*: kitbash_assembly.py 130 checks, kitbash_shell.py 91, kitbash.py exit 0. The three result files are refreshed.

Where this differs from the spec

  • Anchors moved with main (hose and extrude); every symbol was found.
  • hose's rebuild branch also calls live(): it landed after the spec's base and rewrites its object's mesh as shell's rebuild does. Only the static check covers it; no live check freezes a hose.
  • freeze evaluates through evaluable alone, so evaluated_of( appears in boolean and ribs only.
  • freeze accepts a mesh another object shares (apply refused it): the swap changes only this object, and the duplicate keeps the live mesh.
  • docs state the replica's cost as measured (six plates, 19 to 23 s a trigger), not "20 s per plate".

Not done

  • mechlib.rest/wake are not moved onto freeze: follow_up newmechs-rest-to-freeze.
  • kitbash_ribs, kitbash_faceted, kitbash_hose and kitbash_pose live tests were not rerun.
  • The negative pattern OT_apply still matches tests/fixtures/brokkr_host_fixture (BROKKR_HOST_FIXTURE_OT_apply), another add-on's fixture.

🤖 Generated with Claude Code

Cut `aetheria-release:cut_spec:cut-kit-freeze.r1`, branched from main at 5b56579 (after PRs 32, 33 and 35). **What changes** - `brokkr_kitbash.apply`, `kit_baked` and report's `baked` key are deleted (first commit). - `brokkr_kitbash.freeze`: any mesh object with modifiers. Its mesh becomes its evaluated mesh, its live mesh is held by the ID-pointer property `kit_frozen`, and every modifier stays in the stack with its collections, turned off. - `brokkr_kitbash.thaw`: the one undo. Evaluates nothing itself. - `live()` refuses a frozen object in `set_params`, `boolean`, `cut`, `cut_many`, `ribs`, a `shell` rebuild, a `hose` rebuild and `freeze`. - Report's `baked` becomes `frozen`. **Why** Blender 5.3 re-evaluates every live collection Boolean in the scene after any datablock removal, any `hide_viewport` change and any `new_from_object`. A frozen object costs nothing there. **Measured (Starfire, Blender 5.3, other agents loading the machine: read the ratios)** - KESTREL (mechlib at f444bbf, this branch merged into it locally, the freeze action called at the end of each component), three interleaved pairs, rest against freeze: 168.0/32.5, 156.4/46.4, 212.5/37.2 s. Ratios 5.2, 3.4, 5.7; ratio of medians 4.5. Boolean evaluations 1035 against 139 in every run. The map read 251.7/51.2 = 4.9. - Live test: removing an orphan mesh beside three cut tanks, 1.05 s live against 0.0023 s frozen (ratio 0.0022). Mutant F1 (freeze leaves the modifiers on) reads 1.5; the bound is 0.057, separation 26 each side. **Verification** - `py -3 -m unittest discover -s surfaces/blender/tests`: 561 tests OK (20 skipped). - Live, private `BLENDER_USER_*`: `kitbash_assembly.py` 130 checks, `kitbash_shell.py` 91, `kitbash.py` exit 0. The three result files are refreshed. **Where this differs from the spec** - Anchors moved with main (hose and extrude); every symbol was found. - `hose`'s rebuild branch also calls `live()`: it landed after the spec's base and rewrites its object's mesh as shell's rebuild does. Only the static check covers it; no live check freezes a hose. - `freeze` evaluates through `evaluable` alone, so `evaluated_of(` appears in boolean and ribs only. - `freeze` accepts a mesh another object shares (apply refused it): the swap changes only this object, and the duplicate keeps the live mesh. - docs state the replica's cost as measured (six plates, 19 to 23 s a trigger), not "20 s per plate". **Not done** - `mechlib.rest`/`wake` are not moved onto freeze: follow_up `newmechs-rest-to-freeze`. - `kitbash_ribs`, `kitbash_faceted`, `kitbash_hose` and `kitbash_pose` live tests were not rerun. - The negative pattern `OT_apply` still matches `tests/fixtures/brokkr_host_fixture` (`BROKKR_HOST_FIXTURE_OT_apply`), another add-on's fixture. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
apply's class, action row, docs and tests go, with BAKED and report's baked key.
A destructive bake removed the stack and the collections that say what cuts a
part; freeze and thaw replace it in the next commit.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Blender re-evaluates every live collection Boolean after any datablock removal,
hide or mesh read in the scene. freeze swaps in the evaluated mesh and turns
every modifier off; thaw is its one undo. live() refuses a frozen object in
set_params, boolean, cut, cut_many, ribs, a shell or hose rebuild and freeze.

Live: three cut tanks frozen cost 0.0022 of what they cost live when an orphan
mesh is removed (mutant F1, modifiers left on: 1.5; bound 0.057).

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Answers verdict aetheria-release:verdict:cut-kit-freeze.s1.

- setObjectCustomProperty refuses any name starting with kit_: those properties are brokkr_kitbash's state, so
  kit_frozen keeps freeze and thaw as its only writers.
- freeze gives the held live mesh a fake user (marked kit_kept, taken back by the last thaw), so a purge cannot
  delete it when kit_frozen is overwritten by hand; thaw's refusal then names the kept meshes no frozen object holds.
- part_report: faces is the live mesh's count, frozen or not; a frozen part adds evaluated {faces}; a frozen part
  with a modifier shown again reports dirty (the modifiers) and frozen false. freeze reports faces (live) and
  evaluated {faces, volume, nonManifoldEdges}.
- exportGltf with applyModifiers refuses an export that includes a frozen object with a modifier shown.
- Live pins: kitbash_hose freezes a hose and its rebuild is refused; kitbash_assembly pins the setter refusal, the
  purge with an overwritten kit_frozen, the dirty report and the export refusal.
- kitbash_assembly and kitbash_faceted print their wall times and keep them out of the result files.
- docs/kitbash.md: the KESTREL wall-time ratio as a range (about 2.7 to 5.7), the Boolean evaluation counts
  (1035 against 139) as the stable measure.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
eureka force-pushed nibu/kit-freeze from d60be15af2 to 7845b13ed0 2026-12-02 21:34:27 +00:00 Compare
eureka merged commit 2864e9f3fd into main 2026-12-02 21:54:39 +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!37
No description provided.