Explanation: The SpecOps Project & Product Lifecycle
A Persona-Driven Analysis of Project Management as Code (PMaC) Across the Software Development Lifecycle.
1. Architectural Philosophy: The Living Cybernetic Loop
In traditional software development, project management tools (Jira, Linear) and source code repositories operate in separate worlds. This separation leads to specification drift, the silo of mocked perfection, and multi-agent git merge contention.
SpecOps replaces external tracking tools with Project Management as Code (PMaC):
- Specifications, user stories, tasks, personas, and architectural decision records (ADRs) live inside
docs/project/as Markdown documents with YAML frontmatter. - Every state transition is version-locked in git commit history directly alongside implementation code.
- Autonomous coding agents and human developers execute tasks within isolated git worktrees governed by strict architectural invariants.
Rather than a rigid waterfall or an uncontrolled sprint churn, a SpecOps-managed project progresses through a living cybernetic loop where real-time feedback from tests, health invariants, and buffer states continuously adjusts the backlog and system architecture.
flowchart TD
classDef arch fill:#f9f0ff,stroke:#7b2cbf,stroke-width:2px;
classDef prod fill:#e8f4fd,stroke:#1d3557,stroke-width:2px;
classDef eng fill:#e6f9e6,stroke:#2d6a4f,stroke-width:2px;
classDef sec fill:#fff3cd,stroke:#b9770e,stroke-width:2px;
classDef doc fill:#fde2e4,stroke:#c9184a,stroke-width:2px;
subgraph Phase0["Phase 0: Constitutional Bootstrap & Architecture"]
P0_Init["spec-ops init --profile core,bdd,ddd\n(Alex / Sasha)"]:::arch
P0_ADR["Install Baseline ADRs (1-7) & Invariants\n(Alex)"]:::arch
P0_Const["Scaffold AGENTS.md Constitution & CI Gates\n(Alex / Sasha)"]:::sec
P0_Init --> P0_ADR --> P0_Const
end
subgraph Phase1["Phase 1: Product Discovery & Vertical Slicing"]
P1_Idea["Persona Needs & Problem Statement\n(Taylor / Jordan)"]:::prod
P1_PRD["PRD Shaping: docs/product/idea/ -> accepted/\n(Taylor)"]:::prod
P1_Decomp["spec-ops prd decompose PRD-XXXX\n(Spikes + Thin Slices + Gherkin BDD Stories)\n(Jordan / Alex)"]:::prod
P1_Idea --> P1_PRD --> P1_Decomp
end
subgraph Phase2["Phase 2: JIT Curation & Dependency Sequencing"]
P2_Curate["spec-ops curate (JIT Refinement)\nReplenish lean ready buffer to ~10 tasks\n(Jordan)"]:::eng
P2_Health["spec-ops health (Pre-execution Invariant Check)\nVerify <500 lines & PRIORITY.md sync\n(Alex / Jordan)"]:::eng
P2_Curate --> P2_Health
end
subgraph Phase3["Phase 3: Autonomous & Hybrid Engineering"]
P3_Worktree["Spawn Isolated Worktree (.worktrees/task-XXXX)\n(Morgan / Riley)"]:::eng
P3_Frontdoor["Frontdoor Blackbox TDD (No Mock Backdoors)\n(Morgan / Riley)"]:::eng
P3_Gate{"Concurrent CI Preflight\n& Architectural Review\nBoth Pass?"}:::eng
P3_SelfHeal["Self-Healing Feedback Loop\n(Preflight logs + Review feedback)\n(Morgan)"]:::eng
P3_Rescue["Human Takeover / Rescue\n(Riley)"]:::eng
P3_Worktree --> P3_Frontdoor --> P3_Gate
P3_Gate -- No (Attempts < 3) --> P3_SelfHeal --> P3_Frontdoor
P3_Gate -- No (Exhausted) --> P3_Rescue --> P3_Gate
end
subgraph Phase4["Phase 4: Merge Lock Integration & Synchronization"]
P4_Iso["Enforce Backlog Isolation\n(Strip docs/ changes on feat branch)\n(Alex / Morgan)"]:::arch
P4_Merge["MERGE_LOCK: Squash merge feat to main\nAdvance task to complete/ & sync PRIORITY.md\n(Jordan / Alex)"]:::eng
P4_Iso --> P4_Merge
end
subgraph Phase5["Phase 5: Living Sync, Audit & Continuous Evolution"]
P5_Doc["Diataxis Docs Sync & Test Verification\n(Riley / Jordan)"]:::doc
P5_Viz["spec-ops visualizer --build (Living 2D Graph)\n(Taylor / Jordan)"]:::doc
P5_Sec["Supply-Chain Audit & Compliance Sign-Off\n(Sasha)"]:::sec
P5_AntiRot["Continuous Anti-Rot Refactoring (<500 lines)\n(Alex)"]:::arch
P5_Doc --> P5_Viz --> P5_Sec --> P5_AntiRot
end
Phase0 --> Phase1
P1_Decomp --> P2_Curate
P2_Health --> P3_Worktree
P3_Gate -- Yes --> P4_Iso
P4_Merge --> Phase5
P5_AntiRot -.->|Replenish Backlog / New PRD| Phase1
2. Meta-Personas vs. Domain Personas
A SpecOps project operates on two distinct persona tiers:
- Meta-Personas (The Toolchain Operators): The human architects, leads, developers, product managers, security officers, and autonomous agents executing the engineering lifecycle.
- Domain Personas (The Downstream End-Users): The external humans or systems for whom the application is built (e.g., clinicians, traders, administrators).
The Six Meta-Personas
| Persona | Role | Primary Lifecycle Responsibilities | Key Invariant Governed |
|---|---|---|---|
| Alex | Agentic Systems Architect | System initialization, baseline ADRs, bounded contexts, anti-rot file limits (<500 lines) | ADR-0001, ADR-0002, ADR-0007 |
| Jordan | AI-Native Engineering Lead | Delivery velocity, JIT backlog curation, buffer health, living 2D graph observability | ADR-0001, ADR-0004 |
| Morgan | Autonomous Coding Agent | In-worktree task execution, frontdoor-only TDD, automated self-healing CI loops | ADR-0003, ADR-0004, ADR-0005 |
| Riley | Human IC Developer | Co-pilot pairing, surgical code reviews, stalled worktree takeover and human rescue | ADR-0002, ADR-0004 |
| Taylor | Product Manager | Customer discovery, PRD lifecycle (idea $\to$ shipped), Gherkin BDD story acceptance |
ADR-0006 |
| Sasha | Trust & Security Officer | Agent sandboxing, dependency supply chain, lockfile verification, compliance audit trails | ADR-0001, Invariant 4 |
3. The 8 Operational Dimensions of the Lifecycle
The lifecycle spans 8 operational dimensions, each containing specific activities with well-defined triggering condition sets and system impacts.
Dimension 1: Product Discovery & Requirements Expansion
- Persona Touchpoints: Taylor (Author), Jordan (Lead).
- Core Activities:
- Persona Grounding: Documenting user pain points in
PERSONAS.md. Triggered when entering new domains or observing ambiguous user journeys. - PRD Ideation & Shaping: Drafting problem statements in
docs/product/idea/and advancing toshaped/. - Outcome Hardening: Defining checkable outcomes and moving PRDs to
accepted/. - System Impact: Establishes root nodes for bidirectional graph traceability; prevents speculative scope creep.
Dimension 2: Architectural Governance & Boundary Modeling
- Persona Touchpoints: Alex (Architect), Sasha (Security).
- Core Activities:
- Profile Selection & ADR Seeding: Running
spec-ops init --profile core,bdd,dddto install baseline ADRs 1–7. - Bounded Context Partitioning: Defining explicit component boundaries in
spec-ops.tomlto isolate domain logic. - Architectural Spike Execution: Generating high-risk proof-of-concept tasks to validate novel dependencies before full decomposition.
- System Impact: Establishes non-negotiable quality laws; prevents agents from introducing incompatible architectural patterns.
Dimension 3: Backlog Decomposition, Refinement & Buffer Management
- Persona Touchpoints: Jordan (Lead), Alex (Architect), Taylor (Product).
- Core Activities:
- Thin Vertical Slicing:
spec-ops prd decomposebreaks PRDs into cross-cutting slices instead of horizontal layers. - Executable BDD Generation: Writing Gherkin user stories (
docs/user_stories/accepted/) with testable criteria. - JIT Backlog Curation:
spec-ops curatepromotes unblocked proposed tasks to maintain a lean buffer (~10 tasks inrefined/). - System Impact: Prevents specification rot; ensures coding agents always have clear, unblocked tasks ready for execution.
Dimension 4: Autonomous & Hybrid Engineering Execution
- Persona Touchpoints: Morgan (Agent), Riley (Developer), Jordan (Lead).
- Core Activities:
- Worktree Isolation: Spawning dedicated git worktrees (
.worktrees/task-XXXX) on branchfeat/. - Frontdoor Blackbox TDD: Writing tests that interact strictly through public interfaces (ADR-0003); zero private backdoors.
- Concurrent CI Preflight & Architectural Review: Running automated CI test/lint gates in parallel with an autonomous architectural reviewer evaluating completeness and ADR compliance.
- Self-Healing Feedback Loops: Re-prompting the implementation agent with combined preflight diagnostics and architectural review feedback up to 3 repair attempts (ADR-0004).
- Human Worktree Rescue: Riley taking over stalled worktrees when agent attempts exhaust.
- System Impact: Eliminates git merge lockups; ensures both functional correctness and architectural alignment; broken or incomplete code never leaves the worktree.
Dimension 5: Code Quality, Anti-Rot & Continuous Refactoring
- Persona Touchpoints: Alex (Architect), Riley (Developer).
- Core Activities:
- File Length Invariant Audits:
spec-ops healthvalidates that zero source files exceed 500 lines (ADR-0002). - Proactive Submodule Decomposition: Refactoring modules approaching 450 lines into focused domain submodules.
- Dead Code & Mock Elimination: Pruning obsolete abstractions and backdoor mocks.
- System Impact: Preserves LLM attention windows; keeps diffs small and readable; prevents architectural entropy.
Dimension 6: Integration, Synchronization & Release
- Persona Touchpoints: Jordan (Lead), Taylor (Product).
- Core Activities:
- Backlog Isolation Enforcement: Stripping branch-level modifications to
docs/project/backlog/prior to merge (ADR-0005). - Atomic Merge Lock Integration: Squash-merging verified code into
mainand moving task fromrefined/tocomplete/underMERGE_LOCK. - Cross-Browser BDD Validation: Executing Playwright test suites across Chromium, Firefox, and WebKit.
- PRD Shipping: Moving completed PRDs to
docs/product/shipped/and closing roadmap milestones inROADMAP.md. - System Impact: Conflict-free concurrent delivery; guarantees sequential consistency of the project backlog.
Dimension 7: Documentation & Knowledge Synchronization
- Persona Touchpoints: Riley (Developer), Taylor (Product).
- Core Activities:
- Diataxis Documentation Sync: Keeping tutorials, how-to guides, reference specs, and explanations aligned with code.
- Living 2D Graph Visualizer Build: Generating zero-dependency interactive graph bundles (
spec-ops visualizer --build). - System Impact: Complete transparency for non-technical stakeholders without requiring external status reports.
Dimension 8: Trust, Security & Compliance Auditing
- Persona Touchpoints: Sasha (Trust & Security Officer).
- Core Activities:
- Dependency Lockfile Verification: Running
uv lock --checkto prevent hallucinated dependency injection ("slopsquatting"). - Sandboxed Execution Boundaries: Restricting agent execution to approved tools and worktree directories.
- Cryptographic Provenance Audits: Verifying human sign-offs on agent-generated code for compliance standards (SOC2, ISO27001).
- System Impact: Protects software supply chains; guarantees verifiable audit trails.
4. Multi-Condition Trigger Sets
In SpecOps, activities are triggered by combinations of operational conditions:
| Trigger Condition Combination | Activated Activity | Owner | Primary System Impact |
|---|---|---|---|
refined_tasks < 6 AND proposed_tasks > 0 |
JIT Backlog Curation (spec-ops curate) |
Jordan | Promotes unblocked tasks up to target buffer (10); restores buffer health to OPTIMAL. |
| Source file line count > 500 lines | Proactive Submodule Extraction | Alex / Riley | Decomposes module into single-responsibility submodules; restores LLM attention window. |
| In-worktree preflight fails 3/3 attempts | Human IC Worktree Takeover | Riley | Human developer rescues task; unblocks automated delivery stream without abandoning work. |
All implementing tasks of PRD in complete/ |
PRD Shipping & Release Sign-Off | Taylor | Moves PRD to docs/product/shipped/; updates ROADMAP.md; recompiles living visualizer. |
PR modifies pyproject.toml |
Supply-Chain & Lockfile Audit | Sasha | Verifies package against registry; prevents slopsquatting attacks. |
| Public API or CLI interface modified | Diataxis Documentation Sync | Riley | Updates tutorials, how-tos, and reference docs; verifies code snippets. |
5. Conclusion
The SpecOps lifecycle transforms project management from a passive bureaucratic chore into an active, automated quality guardrail.
By grounding every action in explicit persona needs and enforcing strict invariants through code, SpecOps enables human architects, product managers, developers, and autonomous agents to build robust software systems collaboratively with zero context drift.