# Brush tree: target Campaign `brush-tree`, area geometry, owned by the Aetheria/Ghostlight Self (`aetheria-release:ruling:brokkr-ctl-job-to-ag-self`). Drafted by Imagination (`imagination-brush-tree-target`, session `self-2026-10-10-ag2`) on 2026-10-10. This is step 0: the ends, not the means. It contains no cut plan. - **Title:** Brush tree: OpenSCAD-shaped CSG trees authored in Blender through `brokkr-ctl`. - **Repos:** `GameCult/GameCult.Geometry.Csg` (the truth and the kernel), `GameCult/Brokkr` (the agent's hands in Blender), `GameCult/Aetheria` (the first consumer), and `GameCult/CultLib`, only if a ruling sends work there (the cultcache-py directory store, Q `blender-transport`). All four remotes are GitHub today; Aetheria moves to Forgejo under `aetheria-release:ruling:forgejo-primary-github-mirror`. - **Working branch:** `eureka/brush-tree` in each repo it touches. - **This document's home:** `GameCult.Geometry.Csg/docs/brush-tree-target.md`. The crate owns the truth the campaign builds, and two of the four research passes already live beside it in `docs/research/`. ## Rationale The operator rebuilds Tripo-generated hard-surface hulls by hand: retopology, seams and bevels, at about 30 minutes per part. The campaign replaces that with a collaborative loop in Blender. The work is split by what each party does well: - **The operator** points at part of the messy hull, using her Edit Mode selection plus the viewport framing. - **The model** proposes a parametric form, or builds the one she names ("these pipes are tubes", "a sphere, solidified, with a prism cut out"). It does the naming, grouping, symmetry and composition. - **A classical fitter** does the numbers: least-squares or RANSAC primitive fitting, plus GlobFit-style relations. - **Feedback** is a deviation heatmap plus a viewport render, iterated. The output is a typed CSG brush tree. From that one tree come the lowered mesh, its UVs, its topology near cuts and its microbevels. Why this shape, by the evidence: - **Model fluency.** CAD-Recode and MeshCoder emit code (CadQuery, Blender Python) precisely because language models write code fluently (CultLib `docs/research/inverse-procedural-modelling-prior-art.md` §1, 6bdc23c9). OpenSCAD is a CSG tree written as text, with a large public corpus. - **Text-only loops fall short.** BlenderGym shows the best VLM still far behind humans on geometry editing (Chamfer 1.120 vs 0.334, same doc §4). BenchCAD reports single-literal errors at high IoU. That is why numbers go to a fitter and judgement goes to the model and the operator, not to unaided generation. - **Failure without coherence.** VibeGeometry's recorded failure was "local plausibility without global coherence" (same doc §0b). The defence here is a typed tree with one owner, scored against the target by one distance function. - **Brushes are the durable design surface.** The crate's own doctrine says "the brush tree is the authority; the mesh is cache and evidence" (`docs/realtime-csg-doctrine.md`, Core Model). This campaign makes that true of persisted state, not only of the in-memory assembler. - **The bar is the Blender MCP servers, and Brokkr exceeds it.** They offer viewport sight, code execution and API docs, but none reads selected Edit Mode geometry, and none has auth or admission (Brokkr `docs/research/blender-mcp-capability-bar.md` §A(b), §B(b), f97d4dc). Brokkr already has typed intents, receipts and admission on its Unity side (`docs/provider-contract.md`, Admission). ## Body facts the target rests on (probed 2026-10-10) - **GameCult.Geometry.Csg** (main at `5b5dc34`): - Five primitives: Box, OrientedBox, CylinderZ, DomeCapZ, FloretArm (`src/brush.rs`). - The polygon kernel runs CSG only for Box and OrientedBox cutters. It skips other cutters with `SubtractIgnoredForNonBox` / `IntersectIgnoredForNonBox` (`src/assembler.rs` ~803, ~836). - The assembler and `field.rs` consume one flat ordered stream in which Intersect is global. `CsgTree` branches exist in `src/tree.rs`, but the assembler does not honour them as scoped nodes. - `field.rs` lowers the stream to a signed-distance bound for every op on every primitive. It has no smooth blend. - `TriangleMesh` gives every quad 0-1 UVs. It carries per-triangle material only: no brush id, surface id, smoothing or tangent (`src/mesh.rs`). - `Brush` and `Primitive` derive no serde. - The "CultCache records" in `src/cult_geometry.rs` are `rmp_serde` msgpack tuples with schema-string constants. They are not written through CultLib's `cultcache-rs`, and no record holds brushes. - **Brokkr** (main at `f97d4dc`): - The Blender add-on admits eight object-level commands (`surfaces/blender/brokkr_bridge/blender_target.py:402-423`). Its snapshot reports mesh counts only (`:568-575`). It has no render, no mesh read, no Edit Mode read and no code execution. - Its store is the cultcache-py single-file store. cultcache-py has no directory store (`CultLib/packages/cultcache-py/src/cultcache_py/stores.py:22,85`). - Its optional CultNet server binds 127.0.0.1 with no auth token (`blender_target.py:288-350`). - `brokkr-command` is a .NET, Unity-only caller (`brokkr-command/Program.cs`). `brokkr-ctl` does not exist. - The Unity side's rulings F4 to F6 settle a file transport, a sink that is off by default, and single-use command ids (`docs/brokkr-adoption-cut.md`, Rulings). - **CultMath:** `BoundedLeastSquares` exists in C# (`CultLib/packages/cultmath/src/CultMath/BoundedLeastSquares.cs`). - **Mesh probe:** the probe running under rulings `mesh-probe-exploit-not-measure` and `mesh-probe-both-vocabularies` has not written `run1/RESULT.md` yet. Its scratch `demo-hull.scad` already shows the model reaching for top-level variables, `module`, `hull()`, `minkowski()`, `polyhedron`, `mirror` and `cylinder(r1, r2)`. ## Design truths the campaign produces 1. Each hull rebuilt through the loop exists as one typed brush-tree document in CultCache. Everything else is derived from it: text, mesh, UVs, bevels, heatmap, projections into Blender. 2. The model reads and writes that tree as OpenSCAD-shaped text. The operator reads and writes it through Blender. Both edits land through one commit path. 3. An agent drives Blender with `brokkr-ctl blender look | selection | fit | run