SAORI.io
Pillar Guide & Fundamentals Level 2 · Methodology 15 Nov 2026 • 3 min read

Agentic Methodology in Practice: SDD Contracts, 8 Specialized Roles & Git Worktree Isolation

How Spec-Driven Development, closed-scope gates, strict segregation into 8 canonical roles, and MCP Design Systems eliminate rework and regressions.

Technical Summary: AI speed without engineering discipline simply accelerates technical debt. Returning from our Pillar Guide, this article breaks down the contracts, role separation, and UX guardrails that deliver repeatable production quality.

1. Spec-Driven Development (SDD): The Contract Before Code

Inside SAORI, structural changes — new API endpoints, database schema changes, permission boundaries, billing logic, and UI workflows — begin as declarative JSON SDD contracts. Each contract locks expected behavior, access boundaries, and non-negotiable invariants.

Automated compliance validators verify deliverable alignment against those canonical schemas before any task can clear final quality gates.

2. Closed Specification (Anti-Ambiguity) & Acceptance Criteria as Data

The costliest mistake in AI engineering is letting an executor guess what a stakeholder meant. SAORI eliminates ambiguous handoffs with two pre-execution gates:

  • Closed Specification Gate: Tasks containing unresolved business rules, undefined API contracts, or unclear permission scopes are blocked before entering technical execution queues.
  • Structured Acceptance Criteria: Instead of vague prose, acceptance rules live as discrete verifiable checks mapped to required execution evidence.

3. Strict Segregation Across 8 Canonical Roles (01 to 08)

Rather than deploying one unbounded “do-everything agent,” SAORI runs an industrial cognitive assembly line with crisp role boundaries:

Role Core Responsibility Why It Stays Segregated
01 · Product Definition Scope decomposition, business rules, acceptance criteria Stops vague ideas from entering technical queues
02 · Project Governance SDD contracts, precedence checks, architectural guardrails Protects system invariants and security boundaries
03 · Operational Orchestration Card/subtask sharding, dependencies, structured prompts Establishes safe sequencing and explicit file ownership
04 · Technical Execution Implementation and automated tests in isolated worktree Focuses purely on clean, verifiable delivery
05 · Documentation Operations Living technical & functional documentation Keeps handbooks and API inventories in sync
06 · Audit Validation Independent review of diff, tests, and evidence Blocked from running on executor’s own LLM
07 · Consolidation Final integration preserving trunk history Ensures clean merges without silent overwrites
08 · Release Validation End-to-end check on assembled release Detects “built & tested, never wired” components

4. Why the Same Model Never Reviews Its Own Code

When a single LLM writes code and evaluates its own work, blind spots compound. SAORI enforces a Distinct Review Model rule: the model family that authored an implementation is technically barred from signing off on its independent audit (Role 06), catching subtle security and logic flaws far earlier.

5. Git Worktree Isolation & Trunk Conservation Law

Agents never edit the production main branch directly. Each task executes inside an ephemeral, isolated Git Worktree. Before final integration, Trunk Conservation safeguards verify that no previously approved deliverables are overwritten by parallel merges.

6. Governed UX via MCP & True Multi-Stack Governance

To prevent agents from inventing inconsistent layouts or low-contrast screens, SAORI’s UX Worker MCP exposes approved Design System catalogs (including themes such as Corporate Esmeralda) alongside automated real-browser visual checks. This architecture governs heterogeneous repositories seamlessly across PHP, Python FastAPI, Next.js/React, and PostgreSQL.

Production Multi-Stack Proof: See how this methodology powered external multi-repo engineering in the MeroApp (MERO) Case Study, then continue to Level 3: AI Cost Control, SUU & ROI or Multi-Agent Orchestration.

Next Steps in the Reading Track