Implementation Workflow
Once your architecture model looks right, the AI agent can implement it. The get_task tool drives this process — it gives the agent one piece of work at a time, ordered by dependencies, with contracts inherited from parent nodes.
The loop
Section titled “The loop”The implementation workflow is a simple loop:
- Agent calls
get_task→ receives one work unit - Agent builds what the task describes
- Agent marks the node as Implemented via
update_nodeswith a reason - Agent calls
get_taskagain → gets the next piece - Repeat until
get_taskreturns “All tasks complete”
The agent doesn’t need to figure out what to build next or in what order — get_task handles dependency ordering and progress tracking.
What a task contains
Section titled “What a task contains”Each task includes:
- The target node — what to build
- Inherited contracts — expect/ask/never rules from all ancestors, merged
- Dependencies — what this node depends on (already built)
- Context — descriptions and notes from parent nodes
Task ordering
Section titled “Task ordering”Tasks follow the dependency graph:
- Scaffold tasks fire first for deployment groups — setting up the project structure
- Leaf nodes with no dependencies come next
- Dependent nodes only appear after their dependencies are implemented or verified
- Parent rollup — when all children of a container are done,
get_taskprompts the agent to mark the container as implemented
Contracts during implementation
Section titled “Contracts during implementation”The task includes the full chain of inherited contracts. An expect item on a system flows down to every container, component, and operation inside it.
The agent should:
- Follow expect rules as implementation requirements
- Pause on ask items and check with you before proceeding
- Avoid anything listed in never
Verification (Implemented → Verified)
Section titled “Verification (Implemented → Verified)”Moving to Verified is a separate step from implementation — don’t do it during the build loop. A node is verified when:
- Implementation is complete — no stubs, no TODOs, no placeholder logic
- The code does what the node’s description says
- If tests exist, they pass
- All inherited expect items are marked
passed: true
You decide when to verify. Ask the agent to check — it will review each point and either mark the node verified or explain what’s missing.
Working with multiple containers
Section titled “Working with multiple containers”When get_task encounters multiple containers available to start, it presents a choice menu. If containers are in a deployment group, the group scaffold fires first, then individual container work follows.
The model is the spec
Section titled “The model is the spec”During implementation, the model above is the authority. If the agent discovers something that doesn’t fit the model, it should flag the conflict rather than silently change the architecture. Higher-level boundaries (which systems exist, what containers they contain) require your approval to change.