The cached queue order ranks by claimClass when it is built; fast-lane
claims filter the cached order; a lease from the capped claim path drops
the cache; room keeps the stamp cadence and reads the queued calls
through the queued index; one capacity.slots (N plus the fast lane) set
by work; remote_helpers slots and busy defined once.
Heartbeat failures and recoveries are recorded in the heartbeat loop;
status reports retry through withRetry; deleted tokens' statuses go with
pruneRemote; an unaudited harness version holds as harness-missing in a
run as in readiness; a too-old helper names the update command; docs for
update, the status report's slots, busy and last error, and the
remote-starved checks.
The inference setting (server | user-local) is set with `autocraft inference` or the operator-only
GET|PUT /api/settings/inference, which also holds the accepted model families per tier. In user-local mode
askClaude queues each Claude turn in remote_calls with a task bundle (prompt parts, claude arguments, checkout
and workspace mounts, repo docs inline, per-lease MCP servers) and polls for the result; follow-up turns go to
the helper that holds the session. Helpers claim with an agent token that may run tasks, in the model queue's
order filtered by tier, repo, write permission and author exclusion, and use a per-call lease secret for the
bundle, heartbeat, release and submit routes. Lost leases return to the queue up to the prompt's attempts.
Queue time does not count toward a job's deadline or no-progress stop, and accounts are not consulted.
- Lanes keep the order they first arrived in; a lane the server stops sending stays as ended until the reader returns to the tab. Quiet steps are left out before the queued LIMIT.
- Open integration batches are lanes, with the build of their combined tree.
- The latest five finished Now feed events sit under the board.
- Account labels on model calls are for staff only, and a lone call's progress line is blanked when it names a hidden repo, on the board and in the Now feed.
- The merge queue row shows its wait label, conflict note and operator approval as text.
- The live query and the item status list follow their topics; the board does not poll.
- Workable tables switch to a wider layout only with room to spare, so a page scrollbar cannot flip them back and forth.
- Security findings get their own icon; item icons name their kind and state without explanations; the board's reading tip is gone.
- The dashboard spec describes the Live board, the feed list under it and the item peek.
Needs you groups the open questions by kind (the group header opens them all); a row's title opens its question, with the recommended answer and when it was asked. The merge queue lists what merges next in order with what each waits on. Problems, Needs you and the merge queue stack under the Live board. The Items, Decisions and Merge queue buttons in the header linked to the navigation's own pages and are removed. Workable rows can link their title elsewhere and show something other than a GitHub number in the ID column.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/live gives running, queued and lately ended jobs (and calls or build tasks of their own) with their model calls and build steps, and the median and 90th percentile of earlier runs of the same work. The board draws them on a shared axis: solid done, pulsing running, dashed the expected rest, a red line where 90% of earlier runs were done. It replaces the Live feed section on Home.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Workable measures its own width and takes the roomiest layout that fits (every column, without the wide ones, or compact with the closed issues under the id), so an open rail counts. Review, CI, Verify, Merge and Build are narrow icon columns with their names written up the header and the state in a tooltip, shared by the merge queue and Items (queue/checks.tsx). The Step column is the chip alone; its wait, hint and approval sit in the chip's tooltip. Only the title links to the item page, and every #number has a hover card (ItemPeek).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/items/status rows add author, closes and checks (review, CI, Verify, mergeability, size, our build) for PRs the plan holds a queue view for, veiled as in the merge queue. GET /api/items/:repo/:n/peek returns an item's title, author, labels, status and closes for hover cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The app's Tooltip replaces the browser title: no delay, an optional bold title over any content, TipLines for a few lines of detail, and it stays on screen at the edges.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The weighted fast track and add-to-queue change itself keeps main's form. On top of it:
- Queue items: a button on the Merge queue tab opens a dialog that takes PRs and issues, one per line, with a weight, and answers each line; refused lines stay in the box.
- An issue line fast-tracks the issue. When exactly one open PR closes it, that PR is queued too; when several do, the answer lists them and none is queued.
- Every fast-track mark Queue items makes keeps a heavier weight already there.
- Each merge queue row says how the PR came in, by whom (staff only) and when, in an Added column.
A write that fails before any request goes out (the GitHub App's installation token could not be minted) returns sent: false. The fix-up, conflict and CI fix steps record such a comment as comment-unsent instead of the final comment-failed; the planner asks again 10 minutes after the first and an hour after the second, and a third unsent comment is final. Existing comment-failed rows with an installation-token reason become comment-unsent.
- The server applies x-autocraft-scope only on routes marked scoped (decisions inbox and needs, items, merge queue and next
steps, activity, Now and the project home), and never on writes. Item, decision, batch, job, agent, finding, search,
settings, /api/repos, /api/me and /api/progress show every repo the user may see.
- A list page's project is its URL's repo (or /projects/<repo>), else the pick; requests carry it and cache keys include it.
A list page with a pick and no repo in its URL puts the pick there; a link with ?repo=X leaves the pick alone.
- /api/decisions/open-counts gives the user's inbox count per repo; the picker and the tiles show it.
- / opens the picked project only on first load; the logo and the Projects link show the tiles; a tile picks its project.
- The phone picker sits in the navigation drawer.
On the merge queue board: the Add to merge queue box (PR and weight) sits
in the Merge queue tab's toolbar beside the repo picker, the fast-track
mark shows the weight, and operators change the weight from the row's
overflow menu.
An issue line fast-tracks the issue with the weight, so Fix works it first, and queues each open PR that closes it (GitHub's closing references), saying which were queued or that none closes it yet. The dialog is wider (up to 760px) with room for twelve lines and says what queuing a PR and an issue does; Dialog gains size="lg" for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The add box at the top of the Merge queue becomes a Queue items button. It opens a dialog that takes PRs one per line (a GitHub URL, repo#n or owner/repo#n) and a weight, adds each in turn and answers per line; refused lines stay in the box to fix.
Merge queue rows carry how the PR came in, from data the database already keeps: Queued (an operator's Queue items, from its pre-approval row), Pre-approved (a pre-approval with a fix-up), Merge answer (decisions.answered_by, or a Merge answer carried to a new head), or Take review. The login shows to staff only. The table's Added column shows it with the time, in place of Updated, and the weight moves into the row's last cell beside its menu.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>