Commit Graph
566 Commits
Author SHA1 Message Date
aiongg f358c37234 Merge cli-server: Task Runner credential scopes for the agent CLI and answering
# Conflicts:
#	docs/operations.md
#	src/dash/api/runners.ts
#	src/remote/device-login.ts
#	web/src/api/client.ts
#	web/src/api/http.ts
#	web/src/api/mock/mcpMock.ts
#	web/src/modules/connect/Runners.tsx
2026-11-20 03:26:27 +00:00
aiongg f36de0b9c7 Task Runner credentials carry scopes: Agent access opens /mcp, answering adds the answer tools; set at approval and on each runner row of the Connect page 2026-11-20 02:37:02 +00:00
aiongg f67faa875f Task Runner logins: start limit and pending cap per address (IPv6 by its /64) with a high global backstop; approving a login from another address requires otherMachine 2026-11-20 02:30:33 +00:00
aiongg 71b7e7795f Protocol header names the Task Runner autocraft; queue view counts runners on autopilot 2026-11-20 02:13:51 +00:00
aiongg 0309fe857d Connect page with the MCP Connector, Task Runners and their device-login approval, and Manual only; model call queue with picks for the user's Task Runner; token kind on Access 2026-11-20 02:06:14 +00:00
aiongg ccc8c21eba Runner split foundation: protocol 4 shapes and device-login types, token kind and runner_logins schema with the one-time token split, remote-queue topic, API types 2026-11-20 01:52:38 +00:00
aiongg 96dabecf96 My repos lists every repo without a scroll box 2026-11-20 00:00:02 +00:00
aiongg cea8a3ce5b My repos picker on the Connect page is an alphabetized checkbox list in a scrollable box 2026-11-19 23:54:03 +00:00
aiongg 9ca70c7478 Merge branch 'rb-t5-sched' into rb-int
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.
2026-11-19 23:34:54 +00:00
aiongg fbc89eeeba Merge branch 'rb-t10-vis' into rb-int
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.
2026-11-19 23:31:32 +00:00
aiongg e703c30a42 User-local scheduling: gating calls first and small calls aged across classes, a fast-lane slot per helper, follow-ups wait while the session's helper is busy, room by free slots, per-user Max calls at once 2026-11-19 23:28:38 +00:00
aiongg b6a682bc8b Integration of the robustness tracks: helper 1.2.0 required, a finished reply's submit outlasts a dashboard outage, protocol 3 fields in the web mock, readiness and helper retry docs 2026-11-19 23:25:58 +00:00
aiongg 4d2d9af58d Helper visibility: the helper keeps and reports its last error and logs server failures, an update command, stored slots/busy/last error shown on the Connect page, a health check for calls starved in a tier, readiness docs matched to the code 2026-11-19 23:20:38 +00:00
aiongg e4bec39d8a Helper supervision: SIGTERM and SIGHUP stop like Ctrl-C, leases of dead runs are given back on start, service install runs work under systemd or launchd, a run's stop holds claims instead of ending the process, failed calls back off and hold as failing, one git fetch per bare repo across processes, bare repos and trees pruned by age and size, the harness output kept compacted, the canary retried in its own scratch slot, and a crashed helper's macOS harness group stopped before its slot is reused 2026-11-19 23:18:23 +00:00
aiongg 238d460eb9 My repos: each user picks the repos their user-local helpers take calls from, within the repos with the pipeline on 2026-11-19 22:18:52 +00:00
aiongg b00dabec80 Connect page setup steps: the macOS Keychain login and autocraft-task doctor before work 2026-11-19 22:13:56 +00:00
aiongg 4bf9017d96 Merge branch 'ul-settings-ui' into ul-int; the Connect page reads the helpers' real status shape, with reasons and a cool-off badge 2026-11-19 21:01:46 +00:00
aiongg d78b32c860 User-local mode: six-hour cool-off for a token whose leases are lost three times in two hours, and a minimum effort per tier that a claim must declare 2026-11-19 20:46:11 +00:00
aiongg 90b34001e6 Reserve inputs save on blur or Enter; helpers list follows the remote-helpers live topic 2026-11-19 20:40:36 +00:00
aiongg f24c96e36d Connect page: My settings (keep-free reserve) and My helpers sections, with client API and mock data 2026-11-19 20:40:04 +00:00
aiongg b418b5bc90 The Connect page offers the Claude Code login as the Linux harness setup beside the long-lived token 2026-11-19 19:04:03 +00:00
aiongg 043863c4b7 Dashboard for the user-local inference mode: connect page setup, inference settings, run attribution, cost by user 2026-11-19 18:01:14 +00:00
aiongg 19bdcdcbae User-local inference mode, server side: remote calls that maintainers' helpers claim, run and submit
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.
2026-11-19 17:51:55 +00:00
aiongg 9fba628330 Merge #9: Live board on Home, Items and Home use the merge queue's table, one column per check, instant tooltips 2026-11-17 15:39:16 +00:00
aiongg a1acf4367a Merge #10: the Needs you badge counts the picked project on pages without one 2026-11-17 15:39:03 +00:00
aiongg e66daa6f4d Live board: lanes keep their place, open integration batches as lanes, the latest feed events under it; viewers see no account labels; merge queue wait text stays visible
- 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.
2026-11-17 15:37:56 +00:00
David MannandClaude Opus 5.5 f0c7490606 Search: a pasted GitHub issue or PR link becomes repo#n
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:28:14 +01:00
David MannandClaude Opus 5.5 e368894983 Home: Needs you and the merge queue use the Workable table, one under the other; the header buttons are gone
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>
2026-11-17 00:19:22 +01:00
David Mann c41505954f Home opens with a Live board: running and queued work on one time axis, with what each job ran and how long it usually takes
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>
2026-11-17 00:16:40 +01:00
David Mann 88c466aa90 Items uses the merge queue's table; checks get a column each; only the title opens an item
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>
2026-11-17 00:01:29 +01:00
David Mann fc017055df Items rows carry the author, the issues a PR closes and its merge checks; a peek endpoint gives one item in brief
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>
2026-11-17 00:01:15 +01:00
David Mann ff4feeca4d Tooltips open at once and take rich content; item icons say what they mean on hover
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>
2026-11-17 00:00:58 +01:00
David MannandClaude Opus 5.5 7a72c2ed01 Needs you badge counts the picked project on pages without one, so it no longer jumps when opening Needs you
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:02:39 +01:00
David MannandClaude Opus 5.5 d656f897b3 Merge queue moves up to second in the navigation, right after Home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 18:03:02 +01:00
David MannandClaude Opus 5.5 cf70a87298 Home opens the picked project's home, and stays lit on any project home
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:45:09 +01:00
David MannandClaude Opus 5.5 96bba677ac Next steps uses the wide page like the other merge queue tabs, so switching tabs no longer jumps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 17:09:47 +01:00
aiongg 147d1131cd Queue items: several PRs or issues at once, and each queue row says how it came in (#8) 2026-11-16 15:06:07 +00:00
aiongg d41ba7f799 The Merge queue table fits beside an open rail: a compact layout below 1800px puts the closed issues under the id and the checks two to a line; the Queue items dialog's button says Queue items 2026-11-16 15:05:52 +00:00
aiongg 1e1d1c1a0e Merge the contributor's Queue items follow-ups (#8)
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.
2026-11-16 15:02:01 +00:00
aiongg 9532f539b1 Ask comments that never reached GitHub are asked again after a backoff
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.
2026-11-16 15:01:05 +00:00
aiongg 8f01aca0d4 Review fixes: Add to merge queue keeps the review holds and a heavier weight, the Now feed restarts per project, a stale pick clears, and closing references of other repos are left out 2026-11-16 14:45:23 +00:00
aiongg 8954ebe36e List pages show their own repo filter only under All projects; with a project picked, the picker is the repo control 2026-11-16 14:41:41 +00:00
aiongg dbd2bd2cdf The project page's merge queue says when PRs are queued but none is lined up next 2026-11-16 14:35:56 +00:00
aiongg 4acb89e221 Projects home, project pages and a project picker for list pages (#7) 2026-11-16 14:35:37 +00:00
aiongg 1df8671345 The project picker narrows list pages only; pages reached by their own link show every repo
- 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.
2026-11-16 14:35:09 +00:00
aiongg 95f379cbcf Mock fast-track weights: two seeded items carry weights 8 and 3 2026-11-16 14:26:03 +00:00
aiongg 4a9345e4b1 Merge "Operators add PRs to the merge queue, and fast track gets a weight"
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.
2026-11-16 14:22:40 +00:00
aiongg c3608d7447 Merge branch 'pr7' into projects 2026-11-16 14:21:00 +00:00
David MannandClaude Opus 5.5 6ae399fcb1 Queue items takes issues too, in a larger dialog
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>
2026-11-16 14:49:45 +01:00
David MannandClaude Opus 5.5 bace5394d0 Queue items adds several PRs at once, and each queue row says who added it and how
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>
2026-11-16 14:42:23 +01:00