Docs
Sign in
Browse the docs

The SDLC pipeline

Scope

Objectives, in- and out-of-scope items, constraints, assumptions, risks and deliverables, with SCOPE ids.

13 min read9 sections

The Scope step reads the approved RFP and pins down what the project is: its objectives, what is in and out of scope, the stakeholders, the assumptions, constraints and risks, and what gets delivered. It produces structured scope data that later steps read, and the Project Scope document a client reads. It is the first approval that shapes everything after it, so give it the slowest read. Approving it unlocks the SRS.

What you get

A Markdown document titled Project Scope, with the bridge's title block (project, client, version, date) on top and a Version History table at the end. In between is the agent's document:

SectionContent
Project OverviewThe problem, the current situation, the proposed change
ObjectivesEach with how success is measured, when the RFP says
In ScopeA table citing every in-scope item (SCOPE-001 …): id, capability, description, the objective it serves
Out of ScopeEach exclusion with its reason
StakeholdersName, role, organization, contact type, key concern; who signs off, if the RFP says
Operational ScenariosTwo to six scenarios, at least one failure path
Assumptions, ConstraintsSpecific statements; constraints as a table of type and description
RisksA table citing every risk (RISK-001 …): description, likelihood, impact, mitigation
DeliverablesDeliverable, description, acceptance criterion
Technical ContextTech stack, delivery model, integrations, the non-functional baseline, and other needs such as languages, accessibility and migration, each only where the RFP speaks to it
Scope Change ControlOne paragraph: scope is baselined on approval, and changes are assessed and approved before they are built

It also holds at least one Mermaid diagram: a system context flowchart of the users and channels, the system, and every integration.

The bridge enforces the headings Overview, Objectives, In Scope, Out of Scope, Stakeholders, Assumptions, Constraints, Risks and Deliverables, and one diagram. The other sections come from the skill and are not checked.

Before you run it

  • The RFP must be approved. An uploaded RFP is approved on upload; an agent-drafted one needs Approve. Until then /scope is locked: the step rail says "Approve Request for Proposal to unlock this", the slash menu "Approve the Request for Proposal first". With no RFP at all they say "Run Request for Proposal first" and "Run /rfp first".
  • On an existing-system (brownfield) project, the repository must be indexed. Until it has an indexed commit, /scope is locked even if the RFP is approved: the step rail reads "Index the repository first: a brownfield project's documents are written against its indexed code. Open the Repository tab and press Index." While the index is running it reads "Indexing is still running. /scope unlocks when the repository has been indexed." Once a scope has been approved, this no longer applies. A new-system project is not affected.
  • There must be text to read. The step uses the RFP's extracted text, then the text entered at project creation, then run notes. With none, it stops with "No RFP or brief content to extract scope from…".
  • The agent also receives the approved RFP exactly as people edited it, and follows it where it differs from the extracted text. Fix RFP wording before you approve the RFP.

What to put in the RFP

The analyst derives everything from the RFP. It never asks you and never invents a figure, date or system. What is missing is omitted or becomes an assumption or risk.

If the RFP statesThe scope records it in
Databases, frameworks, languages, hostingTech stack, Technical Context
Who builds the UI, and the channelsDelivery model: type, channels, frontend owner
Named external systems and their protocolIntegrations, and a node in the context diagram
Peak users, locations, uptime percent, response time, retention yearsNon-functional baseline, which holds only those five figures
Sign-in, roles or notificationsPoly-X added as an integration
A regulation by nameA regulatory constraint
Real datesThe timeline. Otherwise deadlines stay relative, such as "2 weeks after kickoff"
Languages, accessibility level, migration, KPIs, support hours, data residency, sign-off authorityTechnical Context, Objectives, Constraints, Assumptions, Stakeholders

State numbers and mandates plainly, and name what is excluded.

How it works

Scope makes one skill call, sdlc-scope-analyst. By default it asks once, so a failed check keeps the draft with the located problems listed and Fix failed checks asks for a revision of just those parts. The deployment can allow automatic correction rounds with ALARA_CORRECTION_MAX_ATTEMPTS (1 to 5); the reply then goes back with the located problems.

Flow
  • Read project, RFP text and approved RFP to sdlc-scope-analyst
  • sdlc-scope-analyst to Data and document pass?
  • Data and document pass? to Save scope data to project state, Yes
  • Data and document pass? to Send the reply back with the located problems, No, attempts left
  • Send the reply back with the located problems to sdlc-scope-analyst
  • Data and document pass? to What is left?, No, attempts used
  • What is left? to Keep the draft with a problems panel, Document problems only
  • What is left? to Keep a blocking draft, Schema failure, document present
  • What is left? to Run stops, Schema failure, no document
  • Keep the draft with a problems panel to Save scope data to project state
  • Keep a blocking draft to Save scope data to project state
  • Save scope data to project state to Add title block and version history, write scope-vN.md

The skill returns one JSON object: the scope data (projectOverview, objectives, inScope, outOfScope, stakeholders, assumptions, constraints, risks, complianceFlags, deliverables, and when stated timeline, techStack, deliveryModel, integrations, nfBaseline) and the document as Markdown.

CheckWhat it requiresLeft after the last attempt
Data against the scope schemaNo unknown keys. At least one objective, in-scope item, stakeholder, constraint, risk and deliverable. Constraint types: timeline, budget, technical, regulatory. Likelihood and impact: high, medium, low. Dates YYYY-MM-DD. complianceFlags present, even if emptyA contract problem: the next step depends on it
Document against its specRequired headings, one diagram, each diagram starting with a diagram type, closed code fences, under 600 KB, every SCOPE and RISK id cited. A document that forgets RISK-003 is sent backA document problem: kept for the reviewer
Any document at allA non-empty markdown fieldA contract problem

A Markdown reply instead of JSON is read as the document, with a note to return the JSON next time. The run panel shows: Checking project state, Extracting scope from inputs, Validating against schema, Persisting to project state, Writing the Markdown document.

Ids this step owns

IdMeaning
SCOPE-NNNAn in-scope item: a capability the project includes. The schema accepts any non-empty id; the skill uses SCOPE-001 upward.
RISK-NNNA project risk with likelihood, impact and mitigation.

Scope does not create requirement ids, those belong to the SRS. On a new project version the analyst keeps existing ids, never renumbers or reuses one, and gives new items the next free id. The TAD, API Contract, Threat Model and Delivery Plan are each given the list of SCOPE ids that exist.

Reviewing it

The scope finishes as Awaiting your review, and /srs stays locked until you approve it. A good result has these signs:

  • Each in-scope item is a capability, not a task or a technology, and no two overlap.
  • Objectives are business outcomes ("cut loan approval time"), not features.
  • Every exclusion has a reason. An implicit exclusion becomes a dispute later.
  • Risks read as cause, event and consequence, with an actionable mitigation, not "monitor closely".
  • Assumptions and constraints are specific ("the client provides SWIFT test credentials by project start").
  • Every figure, date, system and name is in the RFP.

Check, in order of what costs most to fix later:

  1. In Scope covers every capability the RFP asks for. A missing one becomes a missing requirement, component and test, and adding it after approval means re-running every step from the SRS.
  2. The delivery model and frontend owner are right. The schema states they decide whether the design defines UI components or only APIs.
  3. The non-functional baseline holds the RFP's own figures. The SRS sets quality targets only from figures the scope states; a gap becomes "to be confirmed by the client".
  4. Integrations list every external system with the right protocol and direction, and Poly-X appears exactly when the product needs sign-in or notifications.
  5. Regulatory constraints name the frameworks that apply. Compliance adds any framework a regulatory constraint names.
  6. Technology mandates appear in the Technical Context text. The TAD reads the scope document, not the structured tech stack.
  7. No invented dates, and sign-off authority is named or listed as an assumption.

Request changes

Request changes sends the agent the draft and your change list, and it returns only what it changes. The bridge lays that on the previous draft, so what you did not mention stays as it was. The new draft keeps the same version number, and the version history names the sections changed. Items with ids (in-scope items, risks) come back as changed and removed items by id; lists without ids (objectives, constraints, stakeholders) come back whole, so recheck all of them. Name ids and sections.

What you seeWording that works
A capability in the wrong place"Move the reporting dashboard to Out of Scope, reason: phase 2."
A missing capability"Add an in-scope item for bulk invoice import, serving the objective of cutting data entry time."
Two things in one item"Split SCOPE-004 into one item for CSV export and one for PDF export."
A generic risk"Rewrite RISK-002 around late delivery of the bank's API test credentials, with a mitigation the client owns."
A wrong figure or invented date"Set the response time in the non-functional baseline to 2000 ms, as the RFP says. Remove the go-live date, the RFP gives none."
A missing integration"Add the SMS gateway as an outbound REST integration and show it in the context diagram."

Ask for a table or diagram to be updated when your change affects it. If the agent returns no change at all, the loop asks again, and after the last attempt you get "The agent did not return a usable reply." Request changes works only while the scope awaits review; on an approved scope it answers "Cannot amend /scope: it is already approved. Re-run /scope to make further changes."

How later steps use the scope

Flow
  • Approved scope to SRS: all scope data and the document
  • Approved scope to TAD, Prototype, SDS, Proposal: the document
  • Approved scope to Compliance: regulatory constraints
  • Approved scope to TAD, API, Threat, Plan: SCOPE ids
StepWhat it takes from the scope
SRSEvery scope field and the approved document, which wins where it differs from the data. Each requirement's source cites where in the scope it came from. The schedule section appears only if the scope has dates.
TAD, Prototype, SDSThe approved scope document, as an authoritative source.
ProposalThe approved scope document, with the SRS, TAD, SDS and Delivery Plan. Scope, SRS and SDS must all exist before it runs.
Delivery PlanNot the document. It gets the SCOPE ids it may cite and works from the SRS, TAD, SDS and STS, so a scope deadline reaches it only through the SRS.
ComplianceThe regulatory constraints, to decide which frameworks apply.

If you run it again

Running an approved scope again does not revise it. It extracts afresh from the RFP, writes the next version, and puts the new scope data into the project state at once. The new file has a different hash, so the Scope returns to Awaiting your review.

Later steps are not unapproved, but each approved one built on the older scope is flagged stale: the SRS, TAD, SDS, API Contract, STS, Delivery Plan, Proposal and the supporting steps after them. A flag clears only when that step runs again. Approve the new scope first, then re-run the stale steps in pipeline order. To change an approved scope in a finished project, start a new version, see How the pipeline works.

When it fails

What you seeWhyWhat to do
/scope locked: "Approve Request for Proposal to unlock this", or "Run Request for Proposal first"The RFP is not approved, or does not exist.Approve the RFP, upload one, or run /rfp.
/scope locked: "Index the repository first…" or "Indexing is still running…"An existing-system project whose repository has no indexed commit yet.Press Index on the Repository tab and wait for it to finish.
"No RFP or brief content to extract scope from…"No RFP text, project text or notes.Upload a readable RFP, or re-draft it.
"projectName is required for /scope."The project has no name.Set the name, then run again.
"The agent did not return a usable reply."No attempt produced readable output, or every reply was a refusal.Run it again. If it repeats, run Check agent in Project Settings › Agent.
"The agent's reply still fails N check(s) the next step depends on, after M attempt(s)."The data failed the schema and there was no document to keep, or the document was empty.Run it again. The best reply is kept in .sdlc/tmp/scope-last-response.json.
A draft with a problems panel, and a run message ending "accepted with N unresolved check(s) for the reviewer"A missing heading or diagram, or an uncited SCOPE or RISK id.Approve if you accept it, or Request changes naming the section.
A run message "kept with N problem(s) the next step depends on (request changes before approving)"The data still failed the schema. Approve answers "This version was kept with problems the next step depends on: request changes so the agent fixes them, then approve."Request changes naming the problem on the draft.
"The scope narrative was not persisted into project state…"The scope data could not be saved to the state.Run it again. If it repeats, report it.

Under the hood

  • The driver is bridge/src/services/scopePipeline.service.ts; the headings are in bridge/src/lib/documentSpecs.ts, the loop in bridge/src/lib/correctionLoop.ts, revisions in bridge/src/lib/amendPatch.ts, and the schema is bridge/sdlc-engine/schemas/scope.schema.json. See Document checks and versioning.
  • It creates .sdlc/state.json if the project has none. The scope data goes into the state as scopeOverview, scopeObjectives, scopeInScope, scopeOutOfScope, scopeDeliverables, scopeStakeholders, scopeTimeline (when given), scopeRisks, scopeConstraints and scopeAssumptions, plus techStack, deliveryModel, integrations, nfBaseline and the client name. complianceFlags is validated but not saved there.
  • The document is .sdlc/artifacts/scope-vN.md, registered as artifacts.scope with its hash, version history and validation record. The project phase moves from discovery to requirements.
  • The validated data is kept in .sdlc/tmp_scope_data.json while the draft is under review, and approval deletes it. The reply Request changes revises is in .sdlc/tmp/scope-reply.json.