Docs
Sign in
Browse the docs

Using Alara Code

The delivery board

Epics, stories and tickets from the /tasks step, shown as a view-only board that follows Alara Plan.

16 min read17 sections

The Board tab shows the tickets the Tasks step produces. Each card is one buildable piece of work drawn from the approved design, with its requirements, test cases, acceptance criteria and implementation steps attached.

The board is view-only. You do not create, edit or move tickets here:

  • In an organization connected to Alara Plan, Plan owns the project's epics and tickets. People move tickets in Plan, and the board shows a read-only copy that follows Plan within seconds.
  • A project that is not linked to Plan shows the Tasks output as it comes from the manifest. Nothing can move those tickets, so they all sit in To Do.

alara-code · Harbor Bank Portal

0:00 / 0:48

A view-only board of tickets. The Board tab shows the tickets the Tasks step produces. You do not create, edit or move them here. In a project not linked to Alara Plan they all sit in To Do.

Where tickets come from

Tickets are produced by the Tasks step (/tasks in SDLC Pipeline). Tasks unlocks once the STS has been produced, approved or not. For every design component in the SDS the agent writes the implementation work, and the bridge assembles a ticket manifest:

  • Epics are the design components (DC-001, DC-002, ...).
  • Tickets are the implementation units inside each component.

When the run completes, the bridge fills the board from the manifest and the tickets wait for your review. A run publishes nothing to Alara Plan: in a linked project, approving the tickets publishes them, as the person who approved. The run also writes the build plan, "Build Plan: Epics and Tickets", in the Artifacts tab. See Tasks.

Flow
  • SDS design components to Tasks step
  • STS test cases to Tasks step
  • Tasks step to Ticket manifest (tasks-vN.json)
  • Ticket manifest (tasks-vN.json) to Board (local copy)
  • Board (local copy) to Approve tickets
  • Approve tickets to Alara Plan import, linked project
  • Alara Plan import to Board (local copy), change feed, while the board is open

Get from an empty board to tickets

  1. Produce the STS. Until it exists, /tasks is locked ("Run System Test Spec first"). Attach the project's team first if you want named assignees.
  2. Run /tasks in SDLC Pipeline. The board says "Tasks is writing the tickets" until the run ends.
  3. Read the tickets. The run finishes as Awaiting your review and the board fills at that moment.
  4. Approve tickets or Request changes (next section).
  5. Link the project if the banner says "This project isn't linked to Alara Plan" (see Link to Alara Plan).

alara-code · Board

The Board tab before any tickets exist: a prompt to run the Tasks step.
The board before the Tasks step has run.
You seeIt means
No tickets yetTasks has not run, or the board missed it. Run /tasks, or press the button under it if it already ran
"Tasks is writing the tickets"A run is in progress, Request changes runs included
"These tickets are awaiting your review"The draft is ready to approve or change
Tickets and a Plan header, no calloutApproved and published
Tickets, no callout, no Plan headerApproved, project not linked
States
  • start to No tickets
  • No tickets to Writing, Run Tasks
  • Writing to Awaiting review, Run finishes
  • Awaiting review to Writing, Request changes
  • Awaiting review to Approved, Approve, not linked
  • Awaiting review to Published, Approve, linked
  • Approved to Writing, Run Tasks again
  • Published to Writing, Run Tasks again

Review the tickets

While the tickets await review, the callout "These tickets are awaiting your review" has three buttons:

  • Approve tickets: approves this version. In a linked project it also publishes to Plan. The notification, "Tickets approved", says what Plan did, or "The build tickets are approved."
  • Request changes: opens "Request changes to /tasks", where you write one change per line and press Apply changes. A run starts in SDLC Pipeline. Each component gets your list with its current tickets and returns only the tickets that change. Name the unit (DC-003-02) in each change. What a request can and cannot change is in Tasks.
  • Read the build plan: opens it in the Artifacts tab.

Approving here and on the Tasks turn in SDLC Pipeline is the same decision, and each page updates the other. Both buttons need Projects › Run › create and a bound agent (a Native project binds none), and are disabled with the reason otherwise. Approval is also refused while another step runs. See Review, approve, request changes.

If publishing fails at approval, the approval stands and the message points to Publish to Alara Plan. Under review, requesting changes or running Tasks again rewrites the same version (tasks-v1 stays v1). After approval the next run writes v2, and Request changes is no longer offered for v1.

Ticket keys

In a linked project Plan numbers the tickets with the project's key and a running number (AP-001), and gives each epic a Plan key. The project key is chosen at linking and cannot change later. Cards show Plan's key, and the detail panel adds the key Tasks gave it, such as FO-014. Plan matches tickets on their design unit (T-DC-003-02), so a re-run updates the same Plan ticket. Search finds all three keys. An unlinked project's cards show the Tasks key.

Epics first

The board opens on the project's epics, one card each, in key order. A card shows:

  • the epic's key (AP-001 linked, DC-001 not) and title;
  • Plan's status for the epic, in a linked project;
  • tickets done as a count, a percentage and a progress bar;
  • how many tickets are to do, in progress, in review and done (categories with none are left out).

Tickets with no epic, usually made directly in Plan, are on a last card, No epic. Click an epic to see only its tickets in the columns; All epics goes back.

All tickets

The Epics | All tickets switch shows every ticket at once, each card naming its epic.

Search

The box matches every word you type against a ticket's keys, unit, title, assignee, feature and its epic's key and title.

  • On the epic list, an epic stays when its key, title or one of its tickets matches. With no match it says "No epics match" and offers Clear search.
  • In an epic or All tickets, only matching tickets stay and empty columns read "No tickets". Empty the box to restore them.

The columns

In a linked project the board shows Plan's columns in Plan's order. Columns your Plan admins add, rename or reorder reach the board within about a minute. The starting set follows the board type chosen at linking: Scrum has To Do, In Progress, Blocked, Application Integration, Ready for Deployment, QA and Done; Kanban has To Do, In Progress, Review and Done. A column's dot shows its category. A ticket sits in the column Plan names, or the first column of its category if the board does not know that name yet.

Otherwise, or before Plan's setup arrives, there are four columns: To Do, In Progress, Review, Done. Each header counts its tickets.

Reading a card

A card shows the key and priority (when Plan has one), the title, the epic (in All tickets), the assignee or "Unassigned", the dependency count (2 dep) and story points (3 SP).

BadgeMeaning
Created in PlanMade directly in Plan, with no Tasks manifest behind it.
bug (or another type)Plan's ticket type, shown when it is not a story.
Not in latest /tasksPlan holds it but the last run no longer produced it. Kept, never deleted; close it in Plan if the work is dropped.
ErrorAn older state from before code generation was removed. Counted as In Progress.

Story points come from the component's complexity in the SDS and assignees from the project's team when Tasks runs. After that Plan owns the assignee. See Tasks.

Moving tickets

There is no drag and drop and no move menu. In a linked project:

  1. Open the ticket and press Open in Alara Plan.
  2. Move it in Plan, with Plan's own permissions.
  3. The board follows within about 20 seconds, or at once with Sync now.

The card changes column, the epic's progress changes, and tickets that depend on it read Done once it reaches a done column. A ticket archived in Plan is hidden, and one deleted in Plan is removed.

Flow
  • Tasks run to Ticket on the board, in To Do
  • Ticket on the board, in To Do to Linked to Plan?
  • Linked to Plan? to Stays in To Do, No
  • Linked to Plan? to Plan creates it, Yes, once approved
  • Plan creates it to People move it in Plan
  • People move it in Plan to Board follows
  • Board follows to People move it in Plan
  • Board follows to Done column

A project that is not linked cannot move tickets, so its dependencies never read Done.

The header

In a linked project the header shows:

  • Alara Plan AP · last synced 40 s ago, when the board last brought changes from Plan;
  • Sync now, which asks Plan for changes at once (Projects › update; shown only while the organization's key works);
  • Publish to Alara Plan (below);
  • Open in Alara Plan, the project's page in Plan.

A project that is not linked has Sync from manifest instead.

How the board stays current

An open board refreshes every five seconds, and each refresh lets the bridge ask Plan for changes, at most once every 15 seconds per organization (the default) however many boards are open. A move in Plan shows within about 20 seconds. Refresh pauses while the browser tab is hidden.

Banners

BannerWhat it meansWhat to do
Your organization isn't connected to Alara PlanThe Plan key was removed. The board shows its last copy.Someone with Settings › Alara Plan › update connects Plan in Settings › Alara Plan.
The organization's Alara Plan key was revoked or is invalidPlan refused the saved key. Nothing syncs.Someone with the same grant replaces the key.
This project is archived in Alara PlanArchived in Plan. The board is read-only and Publish is disabled.Unarchive it in Plan to continue.
Couldn't reach Alara PlanThe last attempt failed. "Showing data from …" gives the copy's age.It retries by itself.
This project isn't linked to Alara PlanCreating a project never links it.Link to Alara Plan.
Connect Alara Plan to link this projectNo service key is saved yet. Tickets stay here.Someone with Settings › Alara Plan › update adds the key; the banner then offers Link to Alara Plan.

Only someone who can manage the key sees Open Settings › Alara Plan. With no Plan on the deployment, an unlinked project shows no banner.

Open a ticket

Click a card to open its read-only panel. In a linked project it re-reads the ticket from Plan (at most every 30 seconds), and Open in Alara Plan goes to it there. Close it with the close button, a click outside, or Escape. A ticket deleted in Plan is removed from the board when you open it.

The panel shows, when the ticket has them:

SectionWhat it holds
HeaderPlan's key and the Tasks key, the Plan column, the title, the epic
Priority, Plan type, Type, Story Points, Unit, Feature, AssigneeProperties. "Unit" is the design unit id (DC-001-01). The assignee shows a role beside the name.
ContractThe unit's interface, as the design wrote it
SpecificationWhy, What, In scope, Out of scope
Acceptance Criteria, Unit AcceptanceThe numbered criteria, and those specific to this unit
Implementation StepsThe agent's steps, each with a check
RequirementsEach REQ- id with its title, description and priority from the SRS
Test CasesEach TC- id with type, priority, description and expected result from the STS
Depends OnThe tickets this builds on, each marked Done, Not done or Missing

Requirements and test cases are stored as ids and looked up in the current SRS and STS. An id no longer there reads "Not in the current SRS" or "Not in the current STS".

Each Depends On entry jumps to that ticket. It shows Done only when that ticket is in a done column, otherwise Not done, and Missing ("Not in the current manifest") if it is not on the board.

Link to Alara Plan

Press Link to Alara Plan in the banner. The dialog offers:

  • New Plan project: a project key (2 to 10 letters) and a board type, Scrum (default) or Kanban. Neither can change later.
  • Existing Plan project: one your team already made. This project's tickets are added beside its own, and duplicates are closed or merged in Plan.

Linking needs Projects › update and a working organization key. It publishes the board as it stands, each ticket keeping its column, without waiting for approval. There is no unlink on the board. See Linking to Alara Plan.

Publish to Alara Plan

Publish to Alara Plan re-reads the latest manifest into the board and sends it to Plan without running Tasks again. Use it when publishing failed at approval or Plan was unreachable. Pressing it twice is safe: Plan matches tickets on their unit key.

It is disabled while the tickets await review ("Approve the tickets first, approving publishes them to Alara Plan."), while the project is archived in Plan, and without Projects › update.

Publishing never overwrites what happened in Plan: a ticket's column and assignee are set when Plan creates it and stay Plan's. Title, contract, specification, criteria, steps, refs, dependencies and story points are refreshed. Nothing is deleted.

Re-running Tasks

Run Tasks again when the design or tests change. The rules are in Running it again. For a board people have worked on:

  • Their work is kept. Existing tickets keep their Plan key and column, and Plan keeps the assignee. New tickets arrive in To Do. Tickets the new manifest lacks stay, flagged Not in latest /tasks in a linked project only.
  • The wording can change. A plain re-run writes every ticket again from scratch. Use Request changes on the new run to keep what you have.
  • The board updates first. It shows the new content when the run finishes. Plan gets it when you approve.
  • Check keys after a design change. An early added or removed unit shifts every later Tasks key. Plan follows the unit, but the board's copy follows the key, so a key can show another unit's content.

Who can do what

ActionPermission
See the board, open ticketsProjects › read
Approve tickets, Request changesProjects › Run › create, and a bound agent unless the project is Native
Publish to Alara Plan, Sync from manifest, Sync now, Link to Alara PlanProjects › update
Connect, replace or remove the organization's Plan keySettings › Alara Plan
Move a ticketIn Alara Plan, with Plan's own permissions

A control without its permission is disabled, and hovering it names what is missing.

Empty board

No tickets yet has a button for when Tasks already ran but the board is empty. The result is a toast:

ToastMeaning
Published to Alara PlanWhat Plan did: "Published N epic(s) and M ticket(s) to Alara Plan (X new, Y updated)", plus any warnings.
Publish failed or Sync failedThe toast says why.
Synced N ticket(s)The board now has N tickets (project not linked).
No tickets to sync"No tasks manifest found, run /tasks first." means no manifest yet. "The manifest produced no stories." means one was found with no usable tickets.

When Tasks produces no tickets

If the run fails before it writes the manifest, the board stays empty. The usual cause is a design with no implementation units: "Command /tasks did not produce a ticket manifest, it likely stopped at a precondition (e.g. design components are missing implementationUnits[]; re-run /sds, then /tasks)." Re-run SDS, then Tasks. See When it fails and Troubleshooting.

When something is stuck

What you seeWhyWhat to do
Approve tickets or Request changes disabledNo Projects › Run › create, or no bound agentHover for which. Ask an administrator, or bind an agent in Project Settings
Publish to Alara Plan disabledTickets await review, project archived in Plan, or no Projects › updateHover for which. Approve first
Approved, "Alara Plan was not updated"Plan failed at that moment, or your session had no PolyX identityPress Publish to Alara Plan. Sign in through the browser if it names the session
A move in Plan does not showThe sync is behind, or the banner reports a key or connection problemCheck "last synced", press Sync now, read the banner
Everything stays in To DoThe project is not linkedLink it

Under the hood

  • The local copy lives in board_tickets and board_epics, per project and organization. Plan's change feed is applied by Plan's key; see the data model.
  • The endpoints are GET /api/projects/:id/board/tickets, GET /api/projects/:id/board/tickets/:planKey, GET /api/projects/:id/board/refs, POST /api/projects/:id/board/publish (409 TICKETS_NOT_APPROVED while tickets await review) and POST /api/projects/:id/board/ingest. See the API reference.