Workflow
Workflow Overview
The two-phase model that removes ambiguity before code and enforces TDD during development.
SpecSafe splits every project into two distinct phases: Planning and Development. Planning removes ambiguity. Development enforces discipline. Neither is optional.
The Two Phases
| Phase | Purpose | Steps |
|---|---|---|
| Phase 1 -- Planning | Eliminate ambiguity before a single line of code is written | 7 steps |
| Phase 2 -- Development | Build with strict TDD, one spec at a time | 5 stages |
Phase 1: Planning (7 Steps)
Planning moves from wide-open exploration to a concrete, validated plan. Each step narrows the funnel:
Brainstorm --> Principles --> Brief --> PRD --> UX --> Architecture --> Readiness
(wide) (narrow)- Brainstorm -- Divergent exploration. No evaluation yet.
- Principles -- Product principles, non-goals, quality priorities.
- Brief -- One-page product/business framing.
- PRD -- Testable requirements with user journeys.
- UX -- Design tokens, components, flows, accessibility.
- Architecture -- System design with Architecture Decision Records.
- Readiness -- Coherence gate: GO / NEEDS REVISION / BLOCKED.
Development cannot begin until the Readiness gate returns GO.
Phase 2: Development (5 Stages)
Development follows a strict linear pipeline. Every spec passes through all five stages in order:
SPEC --> TEST --> CODE --> QA --> COMPLETE- SPEC -- Define what will be built. Purpose, scope, requirements, test strategy.
- TEST -- Generate tests from the spec. All tests start skipped.
- CODE -- TDD loop: unskip one test, write minimum code to pass, refactor.
- QA -- Full validation. Evidence-based GO/NO-GO recommendation.
- COMPLETE -- Human approval gate. Spec is archived.
Key Invariants
These rules are non-negotiable. SpecSafe enforces them automatically:
- No stage skipping. Every spec must pass through SPEC, TEST, CODE, QA, and COMPLETE in order.
- Tests define implementation. Code is written to satisfy tests, never the reverse.
- Evidence required for QA. Assertions are not enough. Lyra (Warden) demands proof.
- One spec at a time. Focus is enforced. Finish what you started before moving on.
- Planning precedes development. The Readiness gate must pass before any spec is created.
- UX before architecture. User experience decisions inform technical decisions, not the other way around.
Visual Flow
Phase 1: Planning
=================
Brainstorm -----> Principles -----> Brief
| |
v v
PRD <-------------------------- (feeds)
|
v
UX ---------> Architecture -----> Readiness
|
GO / NO-GO
|
v
Phase 2: Development (per spec)
===============================
SPEC -----> TEST -----> CODE -----> QA -----> COMPLETE
^ |
| v
(red-green-refactor)When the Readiness gate returns GO, you enter Phase 2 and work through specs one at a time until the project is done.