Orient, Scaffold, Implement
The manifestation process follows three conceptual phases, each consuming a different slice of the graph.
Phase 1: Orient
Purpose: Build a complete understanding of the system before writing any code.
Reads: All node types — domain, decision, foundation, policy, behavior, feature, layer
Produces: Mental model of the system
During orientation, the implementing agent:
- Reads all domain nodes to understand the business vocabulary
- Reads all decision nodes to understand architectural and technology choices
- Reads all foundation nodes to understand what physical scaffolding exists
- Reads all policy nodes to understand non-functional boundaries
- Reads all behavior nodes to understand what the system does
- Traverses edges to understand how everything relates
This phase is read-only — no code is written. The goal is to understand the full system before making any implementation decisions.
Why Orient First?
Without orientation, the agent makes early implementation choices that may conflict with nodes it hasn't read yet. For example:
- Building a component before knowing the design token it should use
- Choosing a data structure before reading the domain model
- Implementing a feature without knowing the performance policy
Orientation prevents these "premature implementation" errors.
Phase 2: Scaffold
Purpose: Create the architectural infrastructure that behaviors depend on.
Reads: Foundation nodes, decision nodes (architecture, stack, pattern, interface), domain nodes
Produces: Abstractions, interfaces, shared infrastructure, configuration
During scaffolding, the agent:
- Processes decision nodes in dependency order (topological sort on
depends_onedges) - Creates abstract interfaces from
architecturedecisions - Configures technology choices from
stackdecisions - Sets up implementation patterns from
patterndecisions - Creates shared types and models from domain nodes
Dependency Order
Scaffolding respects the depends_on graph:
- Technology choices first (they determine what's available)
- Architectural patterns next (they define structure)
- Implementation patterns last (they guide coding style)
If DEC-AUTH-01 (AuthProvider interface) depends on DEC-AUTH-02 (Clerk), then Clerk must be configured before the interface is created.
Phase 3: Implement
Purpose: Build each behavior using the full context assembled from the graph.
Reads: Behavior nodes + all related nodes via edges
Produces: Working, verified features
For each behavior node:
- Resolve edges — what decisions guide it, what constraints limit it, what domain concepts it implements
- Assemble context — gather all related nodes into a unified context
- Implement — build the behavior following all guidance
- Verify — run the behavior's verification criteria
- Check policies — verify related policy nodes are satisfied
Processing Order
Behaviors are processed in dependency order:
AUTH-01 is implemented first because AUTH-02, AUTH-03, and AUTH-04 depend on it.
The Full Picture
Phase 1: ORIENT
Read all nodes → Build system understanding
(No code written)
Phase 2: SCAFFOLD
Process decision + domain nodes → Create infrastructure
(Abstractions, interfaces, config, shared code)
Phase 3: IMPLEMENT
For each behavior (in dependency order):
1. Assemble context from edges
2. Implement with full guidance
3. Verify behavior
4. Check policies