Skip to content

feat(task-board): switch to the new default board lanes - #7880

Merged
viktormarinho merged 4 commits into
mainfrom
feat/task-board-new-default-lanes
Oct 13, 2026
Merged

viktormarinho merged 4 commits into
mainfrom
feat/task-board-new-default-lanes

Conversation

@viktormarinho

@viktormarinho viktormarinho commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Needs production on v4.465.0 or later (the release carrying #7879), which reads the new statuses so this one can be rolled back to it. Production runs v4.466.0.

What is this contribution about?

Second of three PRs that change the default board. Every org's board becomes:

Backlog → In Progress → In Review → QA → Customer Approval → Ready for Deployment → Post-deploy Validation → Done

The old board named each lane by when a run starts, not by where the work happens. The implementer's rules lived on To Do and the reviewer's rules on In Progress, because the agent reviewer had no lane of its own. Now each lane holds the work done in it.

Lifecycle

  • Delegation. Delegating to the Super Agent (create, update, import) puts the card in In Progress. A run that fails for good returns it to Backlog with the Super Agent still assigned, and delegating again re-dispatches it. The timeline entry carries retriesSpent, which the board uses to show the failure.
  • Review. Opening a pull request opens the review cycle and moves the card to In Review, where the reviewer runs. This undoes the "review while In Progress" arrangement from migration 190. The race rescue (a PR link landing after the finish backstop moved the card) now also takes a card back from QA.
  • Approval. An approval moves the card to QA and never merges. Request changes, an exhausted reviewer or an unverified approval leave the card In Review, unassigned, for a person. A repo-less task that finishes goes to QA.
  • Who may move a card under review. A person's chat (sandbox-hosted chats share the thread MCP endpoint with task runs) moves cards freely. Only a run the board dispatched on the card, which carries task-run instructions (isBoardRunThread), is refused moving its card past In Review while the review is open (closesOwnReview, previously applied to every request on that endpoint).
  • Merge. A merge starts only from Ready for Deployment: the Ship button, or the card's arrival there when auto_merge is on (shipFromReadyForDeployment). It lands the card in Post-deploy Validation, and a person moves it to Done. A merge refused for a conflict goes back to the Super Agent under auto_resolve_conflicts, so the conflict fence now lives on Ready for Deployment.
  • Merges outside Studio. A PR merged outside Studio still reconciles to Post-deploy Validation from review (the sweeper) and from the card dialog (PRS_GET).

Column rules

  • The default instructions move: the implementer's to In Progress, the reviewer's to In Review.
  • Runs read their own lane's rules. The In Progress → To Do remap in run-column-automation.ts is gone, and the reviewer reads In Review.
  • A "run the agent" rule on In Review is refused, since the board already runs the reviewer there.

Previous board

  • todo, approved and merged become dormant lanes. They are still valid statuses, so a card the previous release writes during the rollout reads and renders, but they are never offered.
  • delivery_lanes_enabled, shippedLane, DELIVERY_LANES and SHIP_ELIGIBLE_LANES are removed. TASK_BOARD_REVIEW_DECISION no longer returns merged.
  • The previous release refuses only qa, customer_approval and ready_for_deployment as write targets, so the tool contract change is compatible both ways.

Other

  • Analytics count Post-deploy Validation as shipped, once per card: each card's first move into a shipped lane (firstShippedCte), so a card validated the day after it merged is not completed twice.
  • The merged-tag sweep and hasHumanRejectedDone know the new shipped lane. Only a person sending a card back from Post-deploy Validation counts as rejecting the ship.
  • The task-board-setup skill describes the new lanes.

Web

  • The board offers the new lanes and draws a dormant lane only while a card sits in it.
  • Ship and Resolve conflict show only in Ready for Deployment.
  • The delivery-lanes toggle is gone, and the reviewer, auto-merge and auto-resolve copy is updated (en and pt-br).
  • Feed, home pulse and "what moved" treat Post-deploy Validation as shipped.

Known gap

A PR merged directly on GitHub while its card sits in QA, Customer Approval or Ready for Deployment moves the card only when someone opens it (PRS_GET). The sweeper covers review-phase cards only. Widening its 5-minute read to cards that can wait days in a human lane would bring back the GitHub rate-limit problem the sweeper documents. The next PR, the release flow in Ready for Deployment, moves the cards it ships itself.

How did you verify your code works?

  • bun run verify (10542 pass, 0 fail) and bun run check clean.
  • Every *.integration.test.ts in apps/api, one process per file, against a local Postgres migrated through 238. All pass except the MinIO and NATS suites (org-fs, s3-service, skill-catalog-cache), which need services not running here.
  • storage/task-board-analytics.integration.test.ts: a card shipped one day and moved to Done the next counts once, on the first day, with autonomy read from the shipping move. It fails on the previous SQL (two days, 50% autonomy) and passes on this one.
  • New integration tests:
    • migrations/238-task-board-default-lanes.integration.test.ts covers:
      • card moves and their timeline entries;
      • the reviewer's and implementer's instructions changing lanes;
      • an org's own In Review instructions winning over the old reviewer rule;
      • the To Do agent rule moving and the In Review one being dropped;
      • running twice changes nothing.
    • tools/task-board/board-lanes.integration.test.ts covers:
      • a chat moving a card under review through QA, Customer Approval and Ready for Deployment;
      • the board's own run refused moving its card past In Review, still free to send it back, and free to finish a card not under review;
      • the old lanes refused;
      • an approval moving the card to QA and closing the cycle;
      • Ship refused before Ready for Deployment;
      • no merge on arrival without auto_merge.
  • Updated integration tests: advance-review (cycle opening moves to In Review, repo-less to QA, rescue from QA and from the old In Review parking), PR-open reaction, quota refund, import, retry, tag-merged, human-rejected (new case: sent back from Post-deploy Validation), reports guards.
  • Unit tests: lanes.test.ts (offered lanes, rank, dormant lanes), update.test.ts, reconcile-merged.test.ts, conflict-reaction.test.ts, prompt defaults, plus the web tests for moveTargets/laneVisibility, run-failure detection, feed, pulse, list order and the ship gate.
  • E2E, locally:
    • task-board-lanes.spec.ts (replaces task-board-delivery-lanes.spec.ts: a card through every lane, old lanes refused, the ship gate), plus task-board-always-enabled, pr-link, run-reviewer, live-update and analytics: all pass.
    • task-board-drag.spec.ts: 2 of 3 pass. The first test of the run failed every time on openBoard, and the screenshot shows the app's loading splash at the 5 s timeout. The same test passed on its repeat in the same run (--repeat-each=2: 5/6). I did not reproduce this on the base revision, so CI decides.
  • Removed with the code they covered: promote-to-production.test.ts (isReadyToShip) and retry-auto-merge-human-override.integration.test.ts (retryAutoMergeIfApproved).

Screenshots/Demonstration

The board with synthetic cards in every lane:

Board with the new lanes

Board settings: no delivery-lanes toggle, and the new reviewer, auto-merge and auto-resolve copy:

Board settings

How to Test

  1. Delegate a Backlog card to the Super Agent: it moves to In Progress.
  2. When the run opens a PR, the card moves to In Review and the reviewer runs. On approval the card moves to QA.
  3. Drag the card through Customer Approval to Ready for Deployment.
    • With auto-merge off: press Ship. The PR merges and the card lands in Post-deploy Validation.
    • With auto-merge on: the merge happens on arrival.
  4. From a chat, ask the agent to move a card from In Review to QA: it moves. From the Super Agent's own run on that card, the same move is refused.

Migration Notes

Migration 238-task-board-default-lanes is data-only:

  • Cards: todo → triage; in_progress with an open review cycle → in_review; approved → ready_for_deployment; merged → post_deploy_validation. Each move gets a machine status_changed entry with reason: "board_lanes".
  • Rules: column rules (task_board_prompts, task_board_column_automations, whose ids embed the column key) move with their lanes, and a rule already on the destination wins. "Run the agent" rules on In Review are deleted.
  • In Review cards: cards already In Review stay there. An approved one moves to QA on its next sweep, and one handed to a person stays theirs.
  • Rollback: down() is a no-op. Rolling back to v4.465.0 needs no data change, because that release reads every new status.

The third PR moves any card the previous release writes to a dormant lane during the rollout, and drops todo, approved and merged.

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • Documentation is updated (if needed)
  • No breaking changes (the default board changes for every org, by design)

The board becomes Backlog -> In Progress -> In Review -> QA -> Customer
Approval -> Ready for Deployment -> Post-deploy Validation -> Done for every
org. Delegating starts a card In Progress, opening a pull request moves it to
In Review where the reviewer runs, an approval moves it to QA instead of
merging, and the merge starts only from Ready for Deployment (the Ship button,
or auto_merge on arrival) and lands in Post-deploy Validation. An agent run
cannot move a card out of QA or Customer Approval, or into them.

To Do, Approved and Merged become dormant lanes, and delivery_lanes_enabled
is removed. Migration 237 moves cards and column rules to the new lanes.
A card reaches Post-deploy Validation and later Done, and the completions
per day, throughput, autonomy, cost per task and tenant scorecard panels
counted both moves. They now read each card's first move into a shipped
lane.
Every sandbox-hosted chat goes through the thread MCP endpoint, so treating
any request there as an agent run blocked a person's chat from moving a
card into QA or past it. Drop the human-gate refusal, and scope the
under-review guard to runs the board dispatched (threads carrying task-run
instructions).
@viktormarinho
viktormarinho force-pushed the feat/task-board-new-default-lanes branch from 7b3fc8a to f142069 Compare October 13, 2026 16:18
@viktormarinho
viktormarinho merged commit 308a1be into main Oct 13, 2026
35 checks passed
@viktormarinho
viktormarinho deleted the feat/task-board-new-default-lanes branch October 13, 2026 16:34
decocms Bot pushed a commit that referenced this pull request Oct 13, 2026
PR: #7880 feat(task-board): switch to the new default board lanes
Bump type: minor

- decocms (apps/api/package.json): 4.469.0 -> 4.470.0
- @decocms/native (apps/native/package.json): 4.469.0 -> 4.470.0
- @decocms/e2e (packages/e2e/package.json): 1.103.0 -> 1.104.0
- @decocms/sandbox (packages/sandbox/package.json): 1.86.0 -> 1.87.0
- @decocms/shared (packages/shared/package.json): 0.147.0 -> 0.148.0
- deploy/helm/sandbox-env (chart 0.20.38) (deploy/helm/sandbox-env/values.yaml deploy/helm/sandbox-env/Chart.yaml): image.tag/appVersion -> 1.87.0

Deploy-Scope: both
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant