Scaffold VibeGeometry
This commit is contained in:
commit
f8b4e5e09e
21 changed files with 1285 additions and 0 deletions
86
notes/architecture-rationale.md
Normal file
86
notes/architecture-rationale.md
Normal file
|
|
@ -0,0 +1,86 @@
|
|||
# Architecture Rationale
|
||||
|
||||
This note explains why VibeGeometry uses explicit state surfaces. It is not the
|
||||
current implementation map and not the roadmap. For those, read:
|
||||
|
||||
- `state/map.yaml`
|
||||
- `notes/fresh-workspace-handoff.md`
|
||||
- `notes/vibegeometry-implementation-plan.md`
|
||||
- `notes/vibegeometry-current-system-map.md`
|
||||
|
||||
## Core Failure
|
||||
|
||||
The central failure mode is local plausibility without global coherence.
|
||||
|
||||
An agent can write plausible Blender Python, create a large node graph, and
|
||||
still lose the visual machine. Geometry-node work is especially good at this:
|
||||
the script runs, the graph exists, the render has objects in it, and somehow
|
||||
the target has been replaced by decorative procedural fog with a confident
|
||||
variable name.
|
||||
|
||||
The answer is explicit structure:
|
||||
|
||||
- slow-changing map
|
||||
- disposable scratch
|
||||
- distilled evidence
|
||||
- compact handoff
|
||||
- implementation plan that is not pretending to be a second map
|
||||
- ruthless deletion when code, graph, or memory stops serving the target
|
||||
|
||||
## State Split
|
||||
|
||||
VibeGeometry treats different kinds of cognition as different artifacts:
|
||||
|
||||
- `map`: canonical system model, invariants, accepted design, rejected paths
|
||||
- `scratch`: temporary local reasoning for one bounded subgoal
|
||||
- `evidence`: distilled proof, decisions, rejected paths, and scars that change future belief
|
||||
- `system map`: source-grounded explanation of the live repo machinery
|
||||
- `handoff`: compact re-entry packet
|
||||
- `plan`: distilled forward implementation direction
|
||||
- `output`: user-visible replies, code edits, commits, renders, and verification artifacts
|
||||
|
||||
The split matters because Blender scene generation has many seductive proxies:
|
||||
valid Python, non-empty renders, high node counts, pretty materials, and
|
||||
parameter sliders. None of those prove that the graph still serves the visual
|
||||
target.
|
||||
|
||||
## Pipeline Principle
|
||||
|
||||
The working loop should be:
|
||||
|
||||
```text
|
||||
reference images and instructions
|
||||
-> scene brief
|
||||
-> visual trait extraction
|
||||
-> geometry strategy
|
||||
-> node graph manifest
|
||||
-> Blender Python builder
|
||||
-> render evidence
|
||||
-> review against target
|
||||
-> revise one hypothesis
|
||||
```
|
||||
|
||||
The graph is allowed to be complex. The intent is not. If the agent cannot
|
||||
describe what geometry flows through each stage and why that stage belongs,
|
||||
the next move is explanation or simplification, not another compensating node
|
||||
group with a tragic little name.
|
||||
|
||||
## Compact-Rehydrate-Reorient
|
||||
|
||||
Compaction is a real state transition, not a cosmetic cleanup.
|
||||
|
||||
Before compaction, VibeGeometry should preserve:
|
||||
|
||||
- current objective and active subgoal
|
||||
- latest stable map
|
||||
- distilled evidence or rejected paths that change future belief
|
||||
- open questions, blockers, and next action
|
||||
|
||||
After rehydrating, VibeGeometry should:
|
||||
|
||||
- reread canonical state instead of trusting prompt residue
|
||||
- restate the next action from persisted state
|
||||
- continue only when instructed or when the task explicitly calls for it
|
||||
- avoid broad implementation until the current pipeline organ is understood
|
||||
|
||||
The aim is simple: the next waking thing should find coals instead of ash.
|
||||
64
notes/fresh-workspace-handoff.md
Normal file
64
notes/fresh-workspace-handoff.md
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
# 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:
|
||||
|
||||
```powershell
|
||||
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:
|
||||
|
||||
```powershell
|
||||
git status --short --branch
|
||||
git log --oneline -5
|
||||
```
|
||||
|
||||
## Current State
|
||||
|
||||
VibeGeometry is an initial scaffold. It has persistence machinery, project
|
||||
orientation docs, and helper tools, but no Blender builder library or artifact
|
||||
schemas yet.
|
||||
|
||||
The current next action is to draft the scene brief and node graph manifest
|
||||
schemas, then validate them against one tiny reference-driven example.
|
||||
|
||||
## Important Invariants
|
||||
|
||||
- Target Blender 5.0+ unless the task says otherwise.
|
||||
- Geometry nodes are the primary procedural geometry surface.
|
||||
- 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?
|
||||
- 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
|
||||
|
||||
When preparing for imminent compaction, write hot memory first to
|
||||
`state/scratch-compaction-<guid>.md`, then run:
|
||||
|
||||
```powershell
|
||||
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.
|
||||
59
notes/vibegeometry-current-system-map.md
Normal file
59
notes/vibegeometry-current-system-map.md
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
# VibeGeometry Current System Map
|
||||
|
||||
VibeGeometry does not have a Blender runtime yet. The live system is a
|
||||
persistence scaffold plus a planned artifact pipeline for agent-authored
|
||||
geometry-node scenes.
|
||||
|
||||
## Control Flow
|
||||
|
||||
1. Rehydrate from `state/map.yaml`, `notes/fresh-workspace-handoff.md`, this
|
||||
file, and `notes/vibegeometry-implementation-plan.md`.
|
||||
2. Run `npm run state:status`.
|
||||
3. Work one bounded pipeline organ.
|
||||
4. Validate the seam that matters.
|
||||
5. Persist only belief-changing evidence.
|
||||
6. Commit completed work.
|
||||
|
||||
## Core Surfaces
|
||||
|
||||
- `state/map.yaml`: canonical mission, boundaries, live architecture, next action.
|
||||
- `state/evidence.jsonl`: distilled belief-changing evidence only.
|
||||
- `state/branches.json`: active and closed research or implementation branches.
|
||||
- `notes/fresh-workspace-handoff.md`: compact re-entry packet.
|
||||
- `notes/vibegeometry-implementation-plan.md`: near-term implementation sequence.
|
||||
- `docs/architecture/`: detailed contracts and rationale.
|
||||
|
||||
## Planned Artifact Pipeline
|
||||
|
||||
```text
|
||||
reference images + user instructions
|
||||
-> scene brief
|
||||
-> target visual trait extraction
|
||||
-> geometry strategy
|
||||
-> node graph manifest
|
||||
-> Blender Python builder script
|
||||
-> generated .blend scene
|
||||
-> render output
|
||||
-> render review and graph audit
|
||||
-> accepted example or revised hypothesis
|
||||
```
|
||||
|
||||
## Missing Or Incomplete Organs
|
||||
|
||||
- Scene brief schema
|
||||
- Node graph manifest schema
|
||||
- Render review schema
|
||||
- Blender Python builder helpers
|
||||
- Geometry-node idiom library
|
||||
- Headless Blender runner
|
||||
- Reference-image storage and provenance rules
|
||||
- Render comparison and review workflow
|
||||
- Example scene fixtures
|
||||
|
||||
## Current North Star
|
||||
|
||||
Build the smallest reliable loop where an agent can describe a target, plan
|
||||
procedural geometry, generate a legible Blender node graph through Python,
|
||||
render it, and use review evidence to improve the next iteration. The loop
|
||||
should reward coherent geometry flow, not just scripts that successfully make
|
||||
Blender emit pixels.
|
||||
67
notes/vibegeometry-implementation-plan.md
Normal file
67
notes/vibegeometry-implementation-plan.md
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
# VibeGeometry Implementation Plan
|
||||
|
||||
## Current Phase
|
||||
|
||||
Build the first reliable scaffold for agent-authored Blender geometry-node
|
||||
scenes. The immediate target is not a full procedural art factory. It is a
|
||||
clean artifact loop with enough structure that agents can generate, inspect,
|
||||
render, and revise graphs without losing the visual target.
|
||||
|
||||
Planning belongs in this file and the handoff/map state surfaces. Architecture
|
||||
docs should describe durable contracts, boundaries, and data shapes; they
|
||||
should not carry live next-action clutter.
|
||||
|
||||
## Near-Term Sequence
|
||||
|
||||
1. Define the scene brief contract.
|
||||
- Capture references, text instructions, target visual traits, constraints,
|
||||
camera/composition requirements, acceptance criteria, and known unknowns.
|
||||
- Preserve source paths or URLs for every reference image.
|
||||
- Separate visual target description from implementation strategy.
|
||||
|
||||
2. Define the node graph manifest contract.
|
||||
- Describe node groups, sockets, exposed controls, modifiers, attribute
|
||||
names, field flow, materials, and dependencies.
|
||||
- Require enough naming and rationale for future agents to inspect the graph.
|
||||
- Keep graph contracts Blender 5.0+ oriented.
|
||||
|
||||
3. Build a minimal Python builder seam.
|
||||
- Start with one tiny scene that proves graph construction, material setup,
|
||||
camera, lighting, save, and render orchestration.
|
||||
- Prefer small composable helpers for node group creation and socket linking.
|
||||
- Avoid a giant builder abstraction until repeated graph idioms demand it.
|
||||
|
||||
4. Build render review artifacts.
|
||||
- Store render path, scene brief id, manifest id, script path, Blender
|
||||
version, review status, visual misses, graph issues, and next hypothesis.
|
||||
- Treat rendered output as the acceptance surface for visual claims.
|
||||
|
||||
5. Add geometry-node idiom notes and examples.
|
||||
- Document established patterns for distribution, instancing, curve/surface
|
||||
generation, attributes, material variation, simulation zones, and exposed
|
||||
parameters.
|
||||
- Keep examples small enough to inspect.
|
||||
- Promote only graph patterns that survive review.
|
||||
|
||||
6. Generalize after the loop works.
|
||||
- Add reference-image ingestion helpers.
|
||||
- Add headless batch rendering.
|
||||
- Add visual comparison or reviewer prompts.
|
||||
- Add richer examples only after the contracts stop sliding.
|
||||
|
||||
## Deferred
|
||||
|
||||
- Large procedural asset library
|
||||
- Automated visual scoring beyond basic review artifacts
|
||||
- Fine-tuned graph-generation models
|
||||
- Blender add-on packaging
|
||||
- Complex simulation-node workflows before the basic graph loop is stable
|
||||
|
||||
## Discipline
|
||||
|
||||
- Work one bounded organ at a time.
|
||||
- Explain target-to-graph data flow before broad refactors.
|
||||
- Prefer explicit manifests and render evidence over implicit agent memory.
|
||||
- If the diff grows while understanding shrinks, stop and simplify.
|
||||
- Keep history in git; keep persisted state focused on what future sessions
|
||||
need to believe.
|
||||
Loading…
Reference in a new issue