The three-role model
RStack uses a structured team of three distinct agent roles. Each role has defined responsibilities, tool permissions, and output contracts.Orchestrator
The orchestrator is the team lead. It is the only agent that communicates directly with the product owner. Responsibilities:- Route the goal through the lifecycle
- Ask clarifying questions before planning
- Manage approval gates
- Select specialists and plugins per task
- Monitor run state and report status
- Never implements code directly
- Defers to builder team for all implementation
- Defers to validator team for all review
- Stops the run and surfaces blockers to the product owner
agents/core/orchestrator.md
Builder
Builders do the implementation work. They operate within a scoped task packet that includes the relevant agents, skills, and plugins. Responsibilities:- Implement tasks to the exact acceptance criteria
- Write only the files specified in the task
- Run tests and fix failures before claiming done
- Write
builder.jsonas the completion contract
builder.json:
execution, cost, context, and
routing are optional Contract v2 telemetry fields used by the Business Hub.
Key rules:
- Never edits files outside the task scope
- Never claims DONE without tests passing
- Never writes to secret-like paths without approval
agents/core/builder.md
Validator
Validators review builder output with read-only tools. They cannot modify files. Responsibilities:- Check that acceptance criteria are met
- Verify tests pass and no regressions exist
- Identify security concerns
- Write
validation.jsonas the review contract
validation.json:
PASS— Task is complete and correctFAIL— Task must be reworked; issues listed
agents/core/validator.md
Specialist agents
Beyond the core three, RStack ships specialist agents for deep domain work:| Category | Examples |
|---|---|
| Backend | API builders, database specialists, auth specialists |
| Frontend | React/Vue/CSS specialists, accessibility reviewers |
| DevOps | CI/CD, Docker, Kubernetes, Terraform specialists |
| QA | Test writers, integration test specialists |
| Security | OWASP reviewers, penetration testing guides |
| Data | SQL specialists, data pipeline agents |
| Docs | Technical writers, API doc specialists |
How task packets work
Whensdlc_build_next is called, the orchestrator assembles a task packet containing: