Using Alara Code
Review, approve, request changes
The human gate after every step: read the draft, approve it or ask for changes, and what a new version resets.
20 min read9 sections
After every reviewed step, the pipeline stops and waits for a person. You read the draft, then approve it (which unlocks the next step) or ask for changes, which sends it back to the agent. This page covers both decisions and what they change.
alara-code · Harbor Bank Portal
Version 1.0
Documents
- Request for Proposal/rfp · Approved
- Project Scope/scope · Approved
- Requirements Spec/srs · Ready to run
- Technical Architecture/tad · Locked
- System Design Spec/sds · Locked
- API Contract/api · Locked
- System Test Spec/sts · Locked
- Delivery Plan/plan · Locked
- Client Proposal/proposal · Locked
Requirements Spec
/srs
- Every step that writes a document finishes as Awaiting your review
- Approving a chain document unlocks the next step
- Approving a supporting document unlocks nothing
- An uploaded RFP needs no review
Every document waits for you. After a step writes a document, the pipeline stops. Nothing after it can run until a person decides.
Which steps wait for review
Every step that writes a document finishes as Awaiting your review:
- the chain documents: RFP (when the agent drafts it), Scope, SRS, TAD, SDS, API Contract, STS, Delivery Plan and Proposal;
- the supporting documents: Project Brief, Tasks (the tickets), Compliance, Traceability, Threat Model and UI Prototype.
Approving a chain document unlocks the next step. Approving a supporting document unlocks nothing: they never hold up the chain, and nothing waits for their approval. The Project Brief is the one supporting step with its own unlock: it stays locked until the STS is approved, because its testing section is written from it. Only an approved brief is pushed to the repository as the root AGENTS.md and CLAUDE.md; see Repository integration.
A Tasks, Compliance, Traceability, Threat Model or UI Prototype document produced before these steps were reviewed counts as approved, so those steps stay complete; their next run is reviewed.
An uploaded RFP needs no review: uploading it records it as approved by you.
Awaiting your review
A step waiting for you shows, on its turn in the conversation:
- the status Awaiting your review;
- a document card with the document's name, its version (for example v1) and "Draft, awaiting approval", with a Read button;
- Approve, Request changes and Edit, and the reminder "Read it first, the document opens beside this chat. Edit it yourself, or ask the agent for changes."
The composer also says, for example, "/srs is waiting on your review above.", and the step rail marks the step Awaiting your review. A step waiting for review has no run button: you decide on it from its turn. Edit changes the draft yourself, see Edit a draft.
alara-code · SDLC Pipeline

Read the draft
Press Read on the document card. The document opens in a panel beside the conversation (on a narrow screen, in a sheet over it), so you can read and decide without losing your place. The card shows Open while its document is showing.
- Drag the divider between the conversation and the panel to give the document more or less width, or focus it and use the arrow keys.
- Use the contents panel to jump between sections, and Preview / Markdown to switch between the rendered document and its source.
- Close the panel with its close button or Escape.
alara-code · SDLC Pipeline

The reader's header marks a draft as Draft · under review. See Read and export documents for everything the reader does.
Approve
Press Approve. Alara Code:
- stores the approved version of the document permanently;
- records the approval, who approved it, which version, and a fingerprint of its exact content;
- marks the step Approved and unlocks the steps that were waiting for it.
A notification confirms it: "/scope approved: the next phase is unlocked." for a chain document, or "/threat approved." for a supporting document. The reader's badge changes to Approved.
You can also approve the tickets on the Board, with Approve tickets; it is the same decision as approving the Tasks turn here. In a project linked to Alara Plan, approving the tickets publishes them to Plan. See The board.
What approval unlocks
| Approving | Unlocks |
|---|---|
| RFP | Scope |
| Scope | SRS |
| SRS | TAD |
| TAD | SDS |
| SDS | API Contract |
| API Contract | STS |
| STS | Delivery Plan |
| Delivery Plan | Proposal (which also needs Scope, SRS and SDS produced) |
Tasks and Compliance unlock when the STS has been produced, Traceability and the Threat Model when the SDS has been produced, and the Prototype when the TAD has been produced; none of them waits for an approval.
Approving the STS also unlocks the Project Brief. Approving the Project Brief, Tasks, Compliance, Traceability, the Threat Model or the UI Prototype unlocks nothing. Approve them when you have read them; no other step waits for it.
Who may approve
Approving needs the Projects › Run permission, the same as running a step, and a bound agent. Anyone who can open the project and has that permission may approve, including a step someone else ran. Without it, Approve and Request changes are disabled and say which permission is missing when you hover them.
Approval is refused while any step in the project is running: "A command is running for this project. Wait for it to finish before approving."
A draft kept with problems
When the agent's reply breaks a check (for example, the scope data is missing a required field, or the design leaves a requirement with nothing to build it), Alara Code keeps the draft so the agent's work is not lost. A step is never stuck on a check. Nothing is retried for you, so it costs nothing extra until you decide. Its turn lands at Awaiting your review like any draft, with a note above Approve that says how many problems are left, in plain words, and lists them under Show details.
You decide what happens next:
- Approve takes the draft as it is and moves on. The approval records how many problems were still open. If a later step needs data from the draft that could not be saved, that step tells you so and points you back here.
- Fix failed checks asks the agent to fix the open problems in one click. It starts the same revision Request changes does, with the failed checks as the changes. You get a new version to review, and the checks run again on it.
- Request changes lets you write your own changes, one per line, instead.
A step stops only when the agent's reply has nothing to review at all (no design components, no requirements, no test cases, an empty document, or an answer the platform cannot read). The turn then says in plain words what went wrong, and Retry step runs it again. See Troubleshooting.
Request changes
When the draft needs work, press Request changes. The composer turns into a change list for that document, headed "Request changes to /srs. Requirements Spec":
- Write one change per line. Enter applies the list; Shift+Enter starts the next change. The counter shows how many changes you have written.
- Be specific. The placeholder suggests the style: "Downgrade REQ-FUNC-027 priority to could", "Fix the blank BR-001 statement".
- Escape or Cancel abandons the request.
alara-code · SDLC Pipeline

When you apply, "Only /srs is regenerated with these changes, then it comes back for review." A new run starts for that step, the agent revises the draft under review with your changes, and the result lands back at Awaiting your review. For the document steps the agent answers with a patch: it returns only the parts your changes touch, and Alara Code applies them to the draft, so every other section, id and sentence stays exactly as it was.
For Tasks, the agent revises each design component's tickets with your changes, keeping what the changes do not touch.
Traceability is approve-only
The Traceability Matrix is computed from the SRS and SDS, so its turn shows Approve but no Request changes, with the line "Read it first, it is computed from the SRS and SDS, so change those documents to change it." Change the SRS or SDS, then re-run /traceability.
Versions while you iterate
Requesting changes rewrites the draft in place: a draft keeps its version number however many times you revise it. The document's version moves on only after approval, see "Re-running an approved step" below. The document's Version History table records each revision.
The UI Prototype is the exception. It is the one document you iterate on screen by screen, so every change to it (a change request, comments you pinned on its screens, a new look, a rebuild) is saved as its own version, and none is replaced. You can open and compare any of them. You can also pin comments on its screens and send them to the agent, which rewrites only the commented screens; see The prototype board.
When Request changes is refused
| Message | Meaning |
|---|---|
| "Cannot amend /x: it is already approved. Re-run /x to make further changes." | The step cannot be revised in place (the prototype, the tickets and the traceability matrix have their own flows), or its approval is not on record |
| "Cannot amend /x: it has not been generated yet. Run /x first." | There is no draft to change |
| "Cannot amend /x: no draft to edit. Re-run /x to regenerate it." | The draft's working copy is gone; a re-run regenerates it |
| Another command is running | Wait for the running step to finish |
| "The traceability matrix is computed from the SRS and SDS, change those documents, then re-run /traceability." | Traceability cannot be amended |
Re-running an approved step
To change a document that is already approved, press the re-run button on its row in the step rail. A box asks What do you want to change? Write one change per line. The agent rewrites only the parts those changes need and leaves the rest of the document as it was, so a small change costs a small run. The draft comes back Awaiting your review, under the same version number: a re-run does not make a v2.
The approved version is kept aside while you review. Approve replaces it with the revised document. Discard changes throws the revision away and brings the approved version back, as it was approved. A run that fails or is stopped brings it back too. Steps built on the document stay blocked until you approve or discard, as they do for any draft.
Tick Rewrite the whole document instead to have the agent write all of it again (still in place, still no new version). A document that is behind because something it was built from changed may also be rebuilt without naming a change.
This applies to the Scope, SRS, TAD, SDS, API, STS, Plan, Threat Model and Proposal. The prototype, the tickets, the traceability matrix and the compliance report keep their own flows. A document approved before this change has no saved working copy to patch, so its first re-run writes the whole document with your changes as instructions.
Typing a step's command in the chat is a choice already made and writes a new version as before.
If the re-run produces exactly the same document as the approved one, the run fails with "…did not produce a new version, the artifact is unchanged since the last approval, so there is nothing to review." The approved version stands. The turn reads Nothing changed, not Failed, and offers no Retry step: to get a different version, change something the step reads, then run it again.
What a revision resets
Approvals are tied to a fingerprint of the exact document that was approved.
- The revised step's own approval re-opens. Its revised document must be reviewed and approved again.
- Approved documents after it keep their approval, but they were built on the older version. They are marked stale: their rows read Approved · upstream changed. Re-run them, in order, to rebuild them on the new version.
- A step that needs the regenerated step's approval, and has not run yet, stays locked until you approve the new version.
Which documents need an update
When you approve a revision of a requirements, design, API or test document, the app compares it with the version it replaces, id by id, and checks which approved documents built on it mention what changed. Only those rows read Needs update, followed by what changed, for example Needs update · 2 changed in /sds. A document that mentions none of the changed ids stays Approved, and a design component or requirement that was added is flagged for the documents that have to cover it. If you discard a revision, nothing is flagged, because the approved text did not change. The re-run dialog for a flagged document starts with the changes already written, one line for each kind of change, naming every id. Edit them, add your own, or clear the box to rebuild the document on the latest. The agent is then sent only the items that changed upstream, in full, plus a line saying the rest of each upstream document is unchanged, instead of the whole upstream documents. It rewrites only the parts of the document that cite the changed ids and leaves the rest as it was, so a re-run costs a fraction of writing the document again. Approving the result replaces the approved document in place, as for any revision.
A document with no ids to compare (the scope, for example), or a step that was run again without a revision, still reads Approved · upstream changed.
For example, re-running /scope after the SRS and SDS are approved puts the Scope back to Awaiting your review; the SRS and SDS stay approved but show re-run, upstream changed. Once you approve the new scope, re-run /srs, review it, then re-run /sds.
Replacing the RFP with Replace RFP has the same effect on what was built from the old one.
- Re-run an approved step to New version, Awaiting your review
- New version, Awaiting your review to Your decision
- Your decision to Approved, next steps unlock, Approve
- Your decision to Revised in place, Request changes
- Revised in place to New version, Awaiting your review
- Re-run an approved step to Later approved documents
- Later approved documents to Still approved, marked stale
- Still approved, marked stale to Re-run them in order
Start a new version
Once every document from the RFP to the proposal is approved (and none is stale), the conversation ends with a card and a Start version 2.0 button. The card reads Version 1.0 is complete when the optional steps (the Prototype, Threat Model, Tasks, Compliance and Traceability) are approved too. Until then it reads Version 1.0: core documents approved and lists the optional steps still open; you can start the new version either way. A new version is how you change the whole document set when the project changes, a new feature, dropped scope, a moved deadline.
-
Press Start version 2.0. The dialog asks for the version name (suggested: the next whole number, e.g. 2.0 or Phase 2, a name already used is refused), What should change?, describe the changes as specifically as you can, and what to do with the RFP:
- Keep the RFP, the approved RFP stays; the documents from Scope on are revised.
- Upload a new RFP, pick a file (PDF, Word, text or Markdown) that already contains the changes. It replaces the RFP for this version and is approved as it uploads, so Scope opens straight away. If the upload fails, the version is still started and Upload RFP waits in the step rail.
- Revise the RFP, the RFP reopens first. Run it and the agent applies your changes to the RFP you created or uploaded (an uploaded file is revised from its text); review it, edit it if you like, and approve it before Scope opens.
The box below the choice, What happens next, lists the steps that will reopen, in order, for the choice you made.
- Press Start version. A divider in the conversation marks where the version began, with the changes you asked for. The step rail shows Version 2.0 · In progress and how many of its eight documents are revised. On a project with an indexed repository, if the index is behind the branch, the dialog stays open and says "Indexed at abc1234, N commits behind. Re-index on the Repository tab for current context." Press Continue: the version has already started, and a re-index lets the revisions read current code.
- Scope, SRS, TAD, SDS, API Contract, STS, Delivery Plan and Proposal reopen, in that order, after the RFP when you chose to upload or revise it. Each step unlocks when the one before it is approved in this version. While each new draft is under review you can edit it yourself or request changes; see Edit a draft.
- Run each step. Instead of writing its document afresh, the agent revises the version you approved last, keeping every section, id and sentence the changes do not touch, and the result comes back for your review as the next document version (v2 after v1). Request changes and approve exactly as before. Each step also works from the documents approved before it in this version, the revised RFP, Scope, SRS and so on, including any edits you made to them, which the agent treats as authoritative; see Your edits carry forward.
- Approving the Proposal completes the version, and the card offers the next one.
The UI Prototype, Threat Model, Traceability, Compliance and Tasks can run again once the documents they need have been produced in the new version. Nothing can start a version while a step is running.
- Version 1.0 complete to Start version 2.0: name + changes
- Start version 2.0: name + changes to Scope revised
- Scope revised to SRS revised
- SRS revised to TAD revised
- TAD revised to SDS revised
- SDS revised to API Contract revised
- API Contract revised to STS revised
- STS revised to Delivery Plan revised
- Delivery Plan revised to Proposal revised
- Proposal revised to Version 2.0 complete
Under the hood
Approve posts POST /api/projects/:id/approvals/:phase. Request changes posts POST /api/projects/:id/commands/amend with the step and the list of changes; the amend runs through the same machinery as a normal run and lands in review again. An approval stays valid only while the document's content hash matches the hash recorded when it was approved. See Document checks and versioning and How the pipeline works.