The SDLC pipeline
Tasks
Epics, stories and tickets for every design component, the delivery board's source.
15 min read10 sections
The Tasks step turns the design into build work. Every design component becomes an epic, every implementation unit becomes a ticket, and the agent writes each ticket's why, what, scope and an ordered list of build steps with a check for each. The result is a ticket manifest that fills the delivery board, and a readable build plan.
What you get
Two files from every successful run:
- The ticket manifest,
tasks-vN.json, the structured source the board reads. - The build plan,
tasks-vN.md, a Markdown document titled Build Plan with the subtitle Epics and Tickets, written entirely by the bridge from the manifest.
The build plan has the title block (project, client, version, date) and then:
| Section | Contents |
|---|---|
| Summary | A table: number of epics, tickets and total story points. |
| Epic Dependencies | A Mermaid flowchart of the epics and the order they depend on each other. |
| Epics and Tickets | One sub-section per epic, headed with its DC-NNN id and title, with its description and a table of its tickets (ticket, unit, title, type, role, SP, depends on). Under the table, each ticket lists its build steps T1, T2 and so on, each with what to verify. |
The build plan shows the shape of the work. The rest of each ticket (why, what, scope, acceptance criteria, requirements, test cases, contract) is in the manifest and on the board, in the ticket's detail panel.
Tasks is a reviewed step: the run finishes as Awaiting your review, with Approve and Request changes, and the board fills at that moment so you can read the tickets first. You can also decide on the board, with Approve tickets and Request changes: it is the same decision. Approving needs the Projects › Run › create grant and a bound agent. Approving unlocks no other step; nothing in the chain waits for it. In a project linked to Alara Plan, approving publishes the tickets to Plan. See The board.
How a ticket is built
A ticket is one implementation unit from the SDS. The bridge fills in everything structural from the project state, and the agent writes only the narrative and the steps.
| Part | Where it comes from |
|---|---|
Key, such as FO-001 | The bridge. See Ids this step owns. |
| Epic | The design component the unit belongs to, DC-NNN. |
Unit, such as DC-003-02 | The SDS implementation unit. |
| Title, type, contract | The SDS unit. The type is one of table, endpoint, worker, event-handler, ui-component or module. The contract is the unit's interface as the design wrote it. |
| Requirements | The REQ- ids the SDS links to the unit. |
| Test cases | The TC- ids the STS links to those requirements. A unit whose requirements have no linked test case gets none. |
| Acceptance criteria | The criteria of those requirements in the SRS, copied word for word and de-duplicated. |
| Why, what, in scope, out of scope | The agent. All four are required. |
| Unit acceptance | The agent, optional. It can add to the acceptance criteria and never replaces them. |
Steps T1, T2 ... | The agent. An ordered list, each step with a description and a verify check. |
| Story points | The bridge. See below. |
| Depends on | The ticket keys of the units this unit depends on, in this or another component. |
| Assignee and role | The bridge. See below. |
| Feature | The feature that owns most of the unit's requirements. Empty when none does. |
An abridged ticket from the manifest, with illustrative values and the criteria, feature and assignee fields left out:
{
"story_id": "FO-014",
"unit_id": "DC-003-02",
"type": "endpoint",
"title": "Approve a work order",
"why": "Supervisors need to release a work order to the field crew only after review.",
"what": "An approve operation that moves a work order from submitted to approved and records who approved it.",
"scope_in": "The approve operation and its status change.",
"scope_out": "Notifying the crew. Poly-X sends notifications.",
"requirements_refs": ["REQ-FUNC-012"],
"test_case_refs": ["TC-031"],
"depends_on": ["FO-011"],
"estimated_sp": 2,
"tasks": [
{ "id": "T1", "description": "Add the approve operation behind the permission check", "verify": "A caller without the approve grant gets 403" },
{ "id": "T2", "description": "Write the status change and the approver", "verify": "Approving a submitted work order returns 200 and the record shows the approver" }
]
}
Story points come from the design component's complexity in the SDS: simple 3, average or medium 5, complex 8, and 5 when the complexity is missing or unknown. The points are shared across the component's units and every unit gets at least 1. An epic's points are the sum of its tickets.
Assignee comes from the component's assigned role, matched to the project's team members and spread across the members who fit. With no team attached, the ticket gets a placeholder such as "Unassigned Senior Developer". This happens when Tasks runs, so attach the team first. In a linked project Plan owns the assignee after that.
Before you run it
- The STS must exist. It does not need to be approved. Until it exists,
/tasksis locked: the step rail says "Run System Test Spec first" and the/menu in the composer says "Run /sts first". Because the STS needs an approved API Contract, that approval comes earlier in the chain. - Every design component must have at least one implementation unit. A design produced by the current SDS step always does. If yours does not, the run stops with "No implementation units on: DC-..." followed by a request to re-run
/sds. - Check the SDS first. Titles, contracts, dependencies, complexity and assigned role all flow into the tickets unchanged, and a request for changes cannot alter them (see Reviewing it).
- Check the STS links. A ticket can only be checked against the test cases the STS linked to its requirements.
- Attach the project's team if you want named assignees.
- The Tasks step does not read the API Contract or the Threat Model. A ticket carries no
operationIdand no threat control. Its contract is the SDS interface, so a developer works from the ticket and the API Contract together.
How it works
Tasks makes one sdlc-task-author call per design component, up to four at a time. Everything around those calls is deterministic.
- Scaffold from design, requirements and test cases to One task-author call per component
- One task-author call per component to Save each reply to a per-component file
- Save each reply to a per-component file to Every component and unit authored?
- Every component and unit authored? to Run fails, listing each gap, No
- Every component and unit authored? to Assemble manifest, validate against schema, Yes
- Assemble manifest, validate against schema to Write tasks-vN.json and register it
- Write tasks-vN.json and register it to Regenerate implementation docs
- Regenerate implementation docs to Write tasks-vN.md
- Write tasks-vN.md to Fill the board
- Fill the board to Awaiting your review
1. Scaffold
The bridge builds the manifest skeleton from the project state, with no agent involved:
- one epic per design component, with its dependencies;
- one ticket per implementation unit, in design order;
- ticket keys made from the project's initials and one running number across the whole project;
- each ticket's requirements, the test cases linked to those requirements, and the acceptance criteria;
- story points and an assignee, as described above.
2. Author, one component per call
Each call receives one component: its header and description, and its units with their type, title, description, contract, requirements, acceptance criteria and resolved test cases. For each unit it depends on (even one in another component) the call also receives that unit's contract, so the build steps can wire against what it exposes. The call is not given the ticket keys.
The skill returns, for every unit, keyed by the unit id:
why,what,scope_inandscope_out, all required and non-empty;tasks, an ordered, non-empty listT1,T2... each with a description and averifycheck grounded in the unit's contract and test cases;- optionally
unit_acceptance, which may sharpen but never replace the SRS acceptance criteria.
If the agent cannot cover every unit of a component, the skill tells it to return an error for that component rather than partial work.
A failed call does not stop the others. Its component is recorded as failed and the remaining components carry on.
3. Assemble
Assembly is all or nothing. If any component failed, or any unit is missing tasks or narrative, the run fails and lists every gap, and no manifest is written. Otherwise the authored work is merged into the scaffold, validated against the manifest schema, and written.
The run panel shows: Scaffolding epics, Authoring build tickets, Assembling the manifest, Building the doc tree, Writing the Markdown document.
What is checked and what is asked
Tasks has no correction loop. Each component gets one call per run, with no repair call and no second attempt, and the bridge checks the structure of the reply only: the unit ids, the four narrative fields and at least one step with a description and a verify. The skill asks for more, and the bridge does not check any of it, so read for it yourself.
| Asked of the agent, not checked | What to look for |
|---|---|
| Each step is one verb and one object, and no more than a day's work | Steps like "set up the database" are too big. |
Each verify names an input and an observable result | "The endpoint works" and "meets requirements" are not checks. |
Every test case and acceptance criterion is exercised by at least one verify | Compare the ticket's test cases with its steps. |
| Error paths have their own steps or checks | Validation errors, error responses, retries and timeouts. |
| Tests, observability, configuration, a migration with its rollback, accessibility for UI units and documentation where the unit calls for them | Look for them in the steps. |
| The last step is a Definition of Done check | Its verify lists what done means for the unit. |
| Authentication and notifications are integrated, not rebuilt | No step stores passwords, signs tokens, builds a login or reset flow, or sends email or SMS. Poly-X provides these. |
Ids this step owns
| Id | Meaning |
|---|---|
XX-NNN | A ticket key. The prefix is the first letter of each of the project name's first two words (a one-word name uses its first two letters), uppercased; the number runs across the whole project, in design order, with at least three digits. "Field Operations Portal" gives FO-001, FO-002 ... |
T1, T2 ... | The ordered build steps inside one ticket. |
Epics use the design component ids (DC-NNN), and each ticket names its implementation unit (DC-NNN-MM). In a project linked to Alara Plan, Plan numbers the tickets again with its own key; see the board.
Reviewing it
Read the build plan for the shape and the board for each ticket's detail before you approve. Check that:
- the epic dependency graph matches the order you expect to build in;
- each ticket's steps end in something checkable, "POST /auth/login returns 401 for an unknown email", not "the endpoint works";
- the out-of-scope text tells a developer where the ticket stops, and two neighbouring tickets do not build the same thing;
- the acceptance criteria are the SRS's own words, and any unit acceptance only adds to them;
- the test cases listed on a ticket are covered by its steps;
- story points, assignees and dependencies look sane. The agent did not set them, so a wrong one is a design problem.
Request changes
While the tickets are under review, Request changes sends your change list to the agent. Write one change per line. Every component is called again with the whole list, applies the changes that concern it, and returns only the tickets it changes. Tickets it leaves out stay exactly as they were.
A request can change a ticket's why, what, scope, steps and unit acceptance. It cannot change a title, type, contract, requirements, test cases, acceptance criteria, dependencies, story points or assignee, or split or merge tickets, because those come from the design. To change them, request changes on the SDS or re-run it, then run /tasks again.
Name the unit, because the agent is given unit ids and titles, not ticket keys:
- Works: "On DC-003-02, add a step that writes the approver to the audit log, and a verify that names the log fields."
- Works: "On DC-002-01, put sending the welcome email out of scope. Poly-X sends it."
- Too vague: "The tickets need more detail."
- Won't work: "Move FO-014 to the second epic." The epic comes from the design.
The build plan and tickets cannot be edited in the platform; they are built from the manifest.
Running it again
A run replaces the board's content, so know what it keeps.
- Under review, requesting changes or running Tasks again rewrites the same version (
tasks-v1stays v1). After approval, the next run writes the next version (v2). - A plain re-run authors every component again from scratch. The wording of tickets whose design did not change can differ from the last run. Use Request changes when you want to keep what you have.
- On the board, each ticket is updated in place. Its content is refreshed from the new manifest: title, contract, specification, criteria, steps, requirements, test cases, dependencies, story points and assignee. Its column, its order and any Plan data stay as they were, so a ticket that is In Progress or Done is not reset. New tickets are added to To Do.
- Tickets the new manifest no longer has are kept, never deleted. In a linked project they are flagged Not in latest /tasks.
- Keys follow the design order. If a unit is added or removed early in the SDS, every key after it shifts. Alara Plan matches a ticket by its unit id, so a linked project follows the unit. The board's own copy matches on the ticket key, so after such a change a key can show a different unit's content. Check the board after a re-run on a changed design.
- An approved Tasks that is older than a later run of the STS or an earlier step shows as stale in the step rail. Run it again to bring it up to date.
Publishing to Alara Plan
A run never publishes. Approving does, in a linked project, as the person who approved. It creates and updates epics and tickets, matched by unit id, and never deletes. Plan sets a ticket's column, assignee and order when it creates the ticket, and they are Plan's from then on. No sprint is sent.
If publishing fails, the approval still stands and the message points you to Publish to Alara Plan on the board, which sends the latest manifest again and is safe to repeat. It is disabled while the tickets await review. In a project that is not linked, Sync from manifest refills the board from the manifest without running Tasks again. See The board and Linking to Alara Plan.
When it fails
| What you see | Why | What to do |
|---|---|---|
/tasks locked: "Run System Test Spec first" | The STS has not been produced. | Run /sts. |
| "No implementation units on: DC-..." | The design predates implementation units. | Re-run /sds, approve it, run /sts again, then /tasks. |
| "designComponents[] is empty" | The project state has no design components. | Run /sds first. |
| "ECC script failed: scripts/sdlc/build-tasks-manifest.js" | One or more components failed to author, a unit came back without tasks or narrative, or the assembled manifest failed its schema. The error carries the start of the script's output, which lists each gap. | Run /tasks again. |
| "Command /tasks did not produce a ticket manifest..." | The run finished without registering a manifest. | Check the run output, then run it again. |
A failed run keeps the components that did author successfully. The next run reuses them without calling the agent again and retries only the failed ones, so a retry after a partial failure is quicker. Once a run succeeds, that saved work is cleared. A Request changes run never reuses it. The reuse is by component id only, so if you regenerate the design between a failed run and the retry, the retry can still pick up tickets authored for the old design. In that case check the build plan closely once it succeeds.
Under the hood
- The driver is
bridge/src/services/tasksPipeline.service.ts, the skill issdlc-task-author, and scaffolding and assembly arebridge/sdlc-engine/scripts/sdlc/build-tasks-manifest.js. The manifest schema isbridge/sdlc-engine/lib/schemas/tasks-manifest.schema.json. TASKS_AUTHOR_POOL_SIZEsets how many component calls run at once (default 4).- The manifest is
.sdlc/artifacts/tasks-vN.json, registered asartifacts.tasksManifest; the build plan is.sdlc/artifacts/tasks-vN.md, registered asartifacts.tasks. Atasksentry is added to the phase history. - The gate sits in
bridge/sdlc-engine/lib/sdlc/gate-rules.js:tasksrequiresstsand no approval, andtasksis among the approvable phases, so approving it is a review and unlocks nothing. - A run does not publish to Alara Plan; approving (
POST /api/projects/:id/approvals/tasks) does, in a linked project, throughbridge/src/services/ticketPublish.service.tsandplanImport.service.ts. - The step also regenerates the project's
docs/implementation/tree. - After every run, including a Request changes run, the bridge ingests the manifest into the board's tickets (
boardTicketIngestion.service.ts), upserting by ticket key.