4.4 KiB
Fresh Workspace Handoff
Immediate Re-entry Instruction
Read state/map.yaml, this file, notes/vibegeometry-current-system-map.md,
and notes/vibegeometry-implementation-plan.md, then run:
npm run state:status
Restate the persisted next action before editing.
Do not continue implementation automatically from a rehydrate-only request.
Do not trust this file for the exact live HEAD. Use git for volatile truth:
git status --short --branch
git log --oneline -5
Current State
VibeGeometry now has three live implementation organs:
vibegeometry/: Python helpers for Blender coordinate frames, deterministic fields, batching, object/material/camera setup, and verifier checks.crates/vg_csg: Rust/Bevy-math CSG brush assembler.crates/vg_grammar: Dream Machine grammar layer emitting semantic solid/void claims intovg_csg.
Corpus maps, story-bound builds, translation notes, RealtimeCSG doctrine, and
procedural doctrine live under docs/research/; this handoff is not the ledger.
Artifact schemas are still pending.
Current authoring prior: use the full Python stack. Python structures intent,
tables, loops, variants, cleanup, validation, docs, and scene/render
orchestration; Geometry Script emits inspectable Geometry Nodes groups; bpy
handles Blender scene machinery and evaluated evidence.
crates/vg_csg is the first Rust/Bevy-side interactive geometry organ.
RealtimeCSG's public Unity repo exposes a useful brush/tree/operation/generation
model, but not the optimized native C++ kernel or a supported runtime editing
API. Sander van Rossen's older public LogicalError/Realtime-CSG-demo and blog
series are now the preferred clean research inputs. Current vg_csg: ordered
brushes, exact AABB and oriented-box subtraction via convex plane splitting,
additive CylinderZ, DomeCapZ, and FloretArm primitives, Bevy-math mesh
buffers, LevelDsl, tests, clippy, and an example room. Research note:
docs/research/realtime-csg-bevy-assembler.md.
Where vg_csg overlaps public RealtimeCSG/demo behavior, add exact observable
parity fixtures instead of approximate plausibility tests.
crates/vg_grammar is the Dream Machine grammar layer above CSG. Rules emit
semantic solid/void claims with tags, then compile those claims into vg_csg
brushes. Current features: local Frames, oriented claims, seeded variation,
RuleSet composition, RoomSpec, CorridorSpec, DoorSpec, and
GalleryChainSpec.
Example: cargo run -p vg_grammar --example dream_room. Research note:
docs/research/dream-machine-grammar.md.
Repo-local Geometry Script clone notes live in
docs/research/geometry-script-fork-notes.md. Run
.\tools\setup_geometry_script_clone.ps1 if external/geometry-script is
missing.
The current next action is to add generated CSG tree structure to vg_grammar
and explicit polygon categories to vg_csg: grammar should emit nested boolean
intent instead of only a flat brush list, while the kernel should classify
source polygons through that tree.
Important Invariants
- Target Blender 5.0+ unless the task says otherwise.
- Geometry nodes are the primary procedural geometry surface.
- Python is the authoring/orchestration layer, not a fallback after Geometry Script runs out of rope.
- Python constructs and orchestrates graphs; it should not bury the design in opaque imperative mesh generation.
- Visual target evidence must remain attached to scene briefs and render review.
- A graph is not accepted just because it runs. Render evidence decides.
- Node groups, exposed sockets, and attributes need names clear enough for future agents to inspect and modify.
- Add evidence only when it changes future belief.
Open Questions
- What exact JSON shape should the scene brief use for references, instructions, target traits, and acceptance criteria?
- What should the first node graph manifest schema require versus merely allow?
- What node-group inspection JSON shape is most useful for translating public
.blendexamples into Geometry Script? - Which Blender 5.0+ APIs and node construction helpers should become the first stable builder layer?
- What is the smallest useful render-review artifact?
Compaction Notes
For imminent compaction, write hot memory first to
state/scratch-compaction-<guid>.md, then run:
npm run state:prepare-compaction
Fold only durable lessons into canonical state and delete the temporary scratch-compaction file after it has served its purpose.