Docs
Sign in
Browse the docs

The SDLC pipeline

How the pipeline works

The steps in order, the approval gates between them, and what happens downstream when an upstream document changes.

11 min read9 sections

The SDLC pipeline turns a Request for Proposal into a reviewed document set: scope, requirements, technical architecture, design, API contract, test plan, delivery plan, build tickets, a clickable prototype, a threat model, a compliance check, a traceability matrix and a client proposal. Each step runs on your project's engine (an Alara agent, or the Native engine on your organization's own AI key), the bridge checks what the agent wrote, and a person approves the result before the next step can build on it. This page shows the steps in order, the gates between them, the states a step moves through, and what happens downstream when an earlier document changes.

The steps in order

The core chain is RFP, Scope, SRS, TAD, SDS, API, STS, Delivery Plan and Proposal. Each of these produces a document that someone reviews, and the next step unlocks only when that document is approved. Beside the chain, the Prototype and the Threat Model run as soon as their input exists, and so do Tasks, Compliance and Traceability, and the Project Brief once the STS is approved. Their documents are reviewed too, but nothing waits for their approval.

Interactive

The SDLC pipeline

The chain · each document is approved before the next step opensSupporting stepsThey read the chain andnever hold it up.Built on the test specThe board, and thecompliance check./rfp

Request for Proposal

/scope

Project Scope

/srs

Requirements Spec

/tad

Technical Architecture

/sds

System Design Spec

/api

API Contract

/sts

System Test Spec

/plan

Delivery Plan

/proposal

Client Proposal

/proto

UI Prototype

/threat

Threat Model

/traceability

Traceability Matrix

/tasks

Build Ticket Manifest

/compliance

Compliance Check

  • a person approves
  • read by a supporting step
  • the selected step waits for it
  • built on it, stale if it changes

/srsChain step

Requirements Spec

Every requirement with an id, its compliance flags and a four-part narrative.

Read about /srs
Needs first
The Scope, approved
Writes
Software Requirements Specification
Ripple
Waits for 2 steps; 11 steps are built on it and turn stale if it changes.
Click a step to see what it waits for and what waits for it.

A diamond is a human approval. A plain arrow means "the document must exist", it can still be a draft awaiting review.

All steps at a glance

StepCommandDocumentNeeds before it can runAgent skills usedOutput file
RFP/rfpRequest for ProposalNothing (entry point)sdlc-rfp-writerrfp-vN.md (an upload keeps its own extension, such as rfp-v1.pdf)
Scope/scopeProject ScopeRFP produced and approvedsdlc-scope-analystscope-vN.md
SRS/srsSoftware Requirements SpecificationScope produced and approvedsdlc-business-analyst, sdlc-compliance-checker, sdlc-srs-narrative-writer (four parts)srs-vN.md
TAD/tadTechnical Architecture DocumentSRS produced and approvedsdlc-technical-architecttad-vN.md
Prototype/protoUI PrototypeTAD producedsdlc-prototype-designerproto-vN.html
SDS/sdsSoftware Design SpecificationTAD produced and approvedsdlc-architectsds-vN.md
Threat Model/threatThreat ModelSDS producedsdlc-threat-modelerthreat-vN.md
API Contract/apiAPI ContractSDS produced and approvedsdlc-api-designerapi-vN.md
STS/stsSoftware Test SpecificationAPI Contract produced and approvedsdlc-test-author, sdlc-sts-narrative-writersts-vN.md
Delivery Plan/planDelivery PlanSTS produced and approvedsdlc-delivery-plannerplan-vN.md
Tasks/tasksBuild Plan: Epics and TicketsSTS producedsdlc-task-author, once per design componenttasks-vN.json and tasks-vN.md
Compliance/complianceCompliance AssessmentSTS producedsdlc-compliance-checkercompliance-vN.md
Traceability/traceabilityTraceability MatrixSDS producedNone, computed by the bridgetraceability-vN.md
Proposal/proposalTechnical ProposalScope, SRS and SDS produced, Delivery Plan approvedsdlc-proposal-writerproposal-vN.md
Project Brief/briefProject Brief (the root AGENTS.md and CLAUDE.md for coding agents)STS produced and approvedsdlc-repo-briefbrief-vN.md

Every file lives under .sdlc/artifacts/ in the project's working folder. The skills are the reference files on your project's agent; see Set up the project agent.

Chain and supporting steps

Every step that writes a document is reviewed. When one finishes, its document waits as Awaiting your review.

  • Chain steps: RFP, Scope, SRS, TAD, SDS, API Contract, STS, Delivery Plan and Proposal. Each waits for Approve or Request changes, and approving it unlocks the next step.
  • Supporting steps: the Project Brief, the Prototype, the Threat Model, Tasks, Compliance and Traceability. Each waits for Approve and Request changes too, except Traceability, which is approve-only because it is computed from the SRS and SDS. Approving them unlocks nothing, and they never hold up the chain. You can re-run them whenever you like.

A supporting document produced before these steps were reviewed counts as approved; the step stays complete, and its next run is reviewed.

What every step does

Whatever the step, a run follows the same pattern:

  1. Check the inputs. The bridge confirms the documents and data the step reads are in place. A missing input stops the run before the agent is called.
  2. Call the agent. The bridge sends one message per skill call to the project's agent, as the person who started the run. The agent replies with one JSON object; documents travel inside it as Markdown.
  3. Check the reply. The bridge validates the data against its schema and the Markdown against the step's document rules: required section headings, every id the step owns, the minimum number of Mermaid diagrams, closed code fences and a size limit.
  4. Correct. When a check fails, the bridge sends the agent its own reply back with each problem located (where, expected, found, how to fix) and the agent edits that reply. By default a call gets one attempt, so no correction runs by itself: the draft is saved with the open checks listed for the reviewer, who approves it or presses Fix failed checks (a revision of only the faulty parts, sent to the agent as a patch). An administrator can allow up to 5 attempts with ALARA_CORRECTION_MAX_ATTEMPTS, and the best reply is then kept. A run stops only when there is nothing to review.
  5. Assemble the document. The bridge puts a title block on top (the document title, then a table of project, client, version and date), adds the tables it owns (such as the requirement catalogue or the test-case catalogue) and appends the version history. The agent never writes those parts.
  6. Record it. The document is written as <step>-vN.md, hashed, and registered in the project's state.

You can follow each of these stages live in the run panel. See Run the pipeline.

Step states

Each step is always in one of five states. The step rail in SDLC Pipeline shows each one: an available step with a play button, an approved step with a re-run button, and a locked step with a lock and what it is waiting for. "Approve Requirements Spec to unlock this" or "Run System Design Spec first". Once every document is approved you can start a new version of the pipeline; see Start a new version.

States
  • start to locked
  • locked to available, prerequisites met
  • available to running, Run
  • running to available, fails or is stopped
  • running to pending review, step produced a document
  • pending review to running, Request changes
  • pending review to complete, Approve
  • complete to running, Re-run
StateWhat it meansWhat you can do
LockedA prerequisite document is missing, or a required approval has not been given. On an existing-system project, /rfp and /scope are also locked until the repository has been indexed.Finish or approve the step the tooltip names, or press Index on the Repository tab.
AvailableEverything it needs is in place.Run it.
RunningA run is in progress. Only one step runs per project at a time.Watch it, or Stop it.
Awaiting your reviewThe step produced a draft. The composer says "/step is waiting on your review above."Approve, or Request changes (Traceability: Approve only).
CompleteApproved.Read it, or re-run it.

A step's completion is judged by its document, not just by its run record: a run that ends without registering its file does not count, and the run is marked failed with "finished but did not produce the expected artifact".

Versions

A version number marks an approved milestone, not every generation:

  • The first draft of a document is version 1.
  • Regenerating a draft that has not been approved yet (a Request changes, or a re-run that failed and was run again) keeps the same version number and replaces the draft.
  • Changing a document after it has been approved starts the next version: v1 approved, then a re-run produces v2 for review.

The supporting steps follow the same rule: while a Tasks, Compliance, Traceability or Threat Model draft is under review, a re-run or Request changes rewrites the same version (tasks-v1 stays v1); after approval, the next run writes v2. The Prototype is the exception: every run writes a new version and none is replaced.

Requesting changes

Request changes is available only while a document is awaiting review. You write the changes in the composer, one per line, and only that step runs again; the new draft comes back for review under the same version number.

Every step except Traceability works the same way: the agent receives the draft under review together with your change list, and returns only what it changes. Alara Code lays that on the draft, so the sections, ids and wording you did not mention stay as they were, and the checks run again on the result. Tasks does this for each design component's tickets. Describe exactly what should change, and name ids where you can. A draft kept from before this behaviour existed is written again from its inputs instead. Traceability cannot be amended: change the SRS or SDS, then re-run it. See Review, approve, request changes.

When an upstream document changes

Approvals are tied to content. When you approve a document, the bridge records the approver, the time, the version and a SHA-256 hash of the file. An approval stays valid only while the document's current hash still matches the one recorded.

Re-running an approved step

Say the SRS and SDS are both approved, and you re-run /srs:

  1. The SRS run produces v2, which waits for review. Its old approval no longer matches, so the SRS reads as awaiting review again, and any of its earlier approved runs are re-opened to match.
  2. The SDS keeps its approval, it was given for the SDS's own content, which has not changed. But the SDS was built from an older SRS, so it is flagged stale: its button reads /sds re-run, upstream changed.
  3. The same flag spreads down the chain. The STS, built on that SDS, is also flagged stale, because an upstream step somewhere in its chain was produced more recently than it was.

A stale flag clears only when the stale step itself is re-run. Nothing downstream is regenerated for you: approve the new SRS, then re-run the SDS, and carry on down the chain.

Sequence
  1. You to Bridge: Re-run /srs
  2. Bridge to Bridge: Write srs v2, hash changes
  3. Bridge to Bridge: SRS approval no longer matches
  4. Bridge to You: /srs awaiting review
  5. Bridge to You: /sds and /sts flagged stale
  6. You to Bridge: Approve /srs
  7. You to Bridge: Re-run /sds
  8. Bridge to You: /sds v2 awaiting review, stale flag cleared

Replacing the RFP

While an agent-drafted RFP is awaiting review, the composer offers Replace RFP in place of Upload RFP. An uploaded file becomes the project's RFP and is recorded as approved by you, then the bridge runs the same approval check it runs after any regeneration. Documents already built from an earlier RFP keep their approvals; if the RFP step was re-run after they were produced, they carry the stale flag. Re-run /scope to build on the new RFP.

A re-run that changes nothing

If you re-run an approved step and the agent produces a document identical to the approved one, there is nothing new to review. The run is marked failed with "did not produce a new version, the artifact is unchanged since the last approval", and the existing approval stands.

Under the hood

  • The gate table lives in bridge/sdlc-engine/lib/sdlc/gate-rules.js, loaded through bridge/src/lib/eccRoot.ts; bridge/src/services/phaseGate.service.ts reads the project's state and run history and resolves each step's state. The client's composer shows exactly the reason the bridge would give.
  • GET /api/projects/:id/commands returns every step's state, with blockedBy (a missing document), blockedByApproval (a missing approval) and stale. Starting a locked step returns 422 PHASE_GATE_LOCKED.
  • Starting a step is POST /api/projects/:id/commands/:cmd. Request changes is POST /api/projects/:id/commands/amend with the phase and a non-empty changes list; it is refused with ARTIFACT_NOT_UNDER_REVIEW unless the document is awaiting review.
  • Approval is POST /api/projects/:id/approvals/:phase. It uploads the draft to storage as projects/<id>/approved/<phase>-vN.md before recording the approval, and refuses while a step is running.
  • The project's state is .sdlc/state.json: artifacts.<step> holds each document's path, version, hash and version history, and approvals.<step> holds each approval.
  • More detail: Document checks and versioning, Run lifecycle and streaming, and The agent protocol.

Projects started before the TAD, API Contract and Delivery Plan

These three steps were added to the chain after some projects had already passed the point where they sit. Such a project keeps its chain: when a document after the new step already exists (an SDS without a TAD, an STS without an API Contract, a Proposal without a Delivery Plan) the gate counts the missing step as approved, and nothing re-locks. A project that has not reached that point yet runs the new step first. When you open a new version of the project, it runs the whole new chain, including these steps.