Core Concepts
SO1 is built on three foundational concepts: FORGE (stage-gated execution), Veritas (prompt library), and Domain-Specialized Agents.FORGE: Stage-Gated Execution
FORGE is a 6-stage pipeline that ensures quality, traceability, and consistency across all agent work.Stage 0: Planning
Purpose: Requirement analysis and agent selectionPrimary Agent: Factory OrchestratorEntry Gate: User request receivedExit Gate:
- Requirements parsed
- Agents assigned
- Task breakdown complete
Stage 1: Design
Purpose: Architecture decisions and schema designPrimary Agents: TypeScript SharedEntry Gate: Planning stage completeExit Gate:
- Architecture documented
- Schemas defined
- Design decisions logged
Stage 2: Implementation
Purpose: Code and workflow generationPrimary Agents: Workflow Architect, Chain Architect, Fragment CuratorEntry Gate: Design approvedExit Gate:
- Code generated
- Workflows created
- Unit tests written
Stage 3: Documentation
Purpose: Specs, docs, and prompt refinementPrimary Agents: Hono Backend, Prompt Refiner, most domain agentsEntry Gate: Implementation completeExit Gate:
- API documented
- Prompts refined
- User guides written
Stage 4: Validation
Purpose: Testing and compliance auditPrimary Agents: Railway Deployer, Pipeline AuditorEntry Gate: Documentation completeExit Gate:
- Tests passing
- Security audit complete
- Compliance verified
Cross-Cutting Agents
Some agents operate across all stages:| Agent | Role |
|---|---|
| FORGE Gatekeeper | Validates stage transitions, produces VTM |
| Incident Commander | Responds to incidents at any stage |
| Triage Responder | Initial assessment regardless of stage |
Decision Records
All agents log significant decisions in ADR (Architecture Decision Record) format:Veritas: The Prompt Library
Veritas is SO1’s curated prompt library containing 255 validated prompts that agents consume and produce.How Agents Use Veritas
- Consuming Prompts
- Producing Prompts
Agents reference Veritas prompts by ID:These prompts provide reusable context and patterns.
Prompt Categories
| Category | Description | Example |
|---|---|---|
task | Single-purpose instructions | ”Parse GitHub webhook payload” |
fragment | Reusable prompt snippets | ”Error handling boilerplate” |
chain | Multi-step prompt sequences | ”Design > Implement > Test” |
Prompt Flow
Agent Architecture
Each SO1 agent follows a consistent structure:Metadata (YAML Frontmatter)
Required Sections
| Section | Purpose |
|---|---|
| Identity | Role, domain, FORGE stage |
| SO1 Context | Integration points with platform |
| Core Capabilities | Primary functions and expertise |
| FORGE Gate Compliance | Entry/exit conditions |
| Technical Deliverables | Output format and examples |
| Workflow Process | Step-by-step execution |
| Veritas Integration | Prompts consumed/produced |
| Error Handling | Failure modes and escalation |
| Success Metrics | How to measure effectiveness |
| Related Agents | Dependencies and collaborators |
Domain Organization
Agents are organized into 7 domains:Orchestration
2 agents: Factory Orchestrator, FORGE Gatekeeper
Automation
3 agents: Workflow Architect, Webhook Engineer, Schedule Optimizer
Engineering
3 agents: Hono Backend, Next.js Frontend, TypeScript Shared
DevOps
3 agents: Railway Deployer, GitHub Actions, Pipeline Auditor
Documentation
3 agents: Mintlify Author, API Documenter, Runbook Writer
Prompts
3 agents: Prompt Refiner, Chain Architect, Fragment Curator
Incident
3 agents: Incident Commander, Triage Responder, Postmortem Analyst
Output Schemas
Agents produce schema-validated outputs:| Output Type | Schema | Used By |
|---|---|---|
| n8n Workflow | n8n-output-schema.json | Workflow Architect, Webhook Engineer |
| Veritas Draft | veritas-draft-schema.json | Prompt Refiner, Chain Architect |
| OpenAPI Spec | OpenAPI 3.0 | API Documenter |
| TypeScript | Zod schemas | Engineering agents |