This guide walks through a complete RStack run using the Pi native adapter. The same lifecycle applies to all adapters — only the tool invocation syntax differs.
1. Load the orchestrator
Start every run by loading the RStack orchestrator for your goal:
This injects the orchestrator, builder, and validator operating instructions so the agent knows how to behave throughout the lifecycle.
2. Start a run
RStack creates a new run directory:
3. Clarify requirements
If the goal is ambiguous, RStack asks product-owner questions:
This captures decisions like:
- Which framework? (Express, Fastify, etc.)
- Which database?
- What auth strategy? (JWT, OAuth, etc.)
- Target deployment environment?
4. Plan
RStack generates:
5. Review and approve
Review the generated specs, then record your human approval gates:
RStack will not execute implementation tasks until plan and requirements are approved in interactive mode. This is intentional — it keeps you as the product owner.
6. Check available agents
This lists the packaged and project-local agents, skills, and plugins that will be used for your run.
7. Build
Repeatedly call sdlc_build_next to execute tasks one at a time:
Each call:
- Selects the next pending task
- Assembles a task packet with the right agents, skills, and plugins
- Executes using the builder team
- Writes
builder.json as a contract
8. Validate
After each build step, validate the output:
The validator team (read-only tools by default) checks:
- Does output meet acceptance criteria?
- Are tests passing?
- Is security review satisfied?
Writes validation.json to the task directory.
9. Check status
At any point:
Returns a dashboard of:
- Completed vs pending tasks
- Missing approval gates
- Registry counts
- Next recommended action
10. Save learnings
At the end of every run:
Appends key learnings to .rstack/memory/learnings.jsonl for use in future runs.
Run state layout
After a complete run, your .rstack/ looks like:
Every artifact is inspectable, versioned with the run, and traceable from requirements to evidence.