Commit Graph
1065 Commits
Author SHA1 Message Date
aiongg d796cbfbbe Helper logins in agent runs, the now feed and the item trace go to staff only 2026-11-19 18:36:52 +00:00
aiongg 420acaec92 Reference passages are reserved before the search, so parallel calls stay within the allowance 2026-11-19 18:36:30 +00:00
aiongg a1f1e02468 Merge branch 'ul-codex' into ul-int 2026-11-19 18:27:07 +00:00
aiongg be01c2ba19 Codex adapter for the user-local helper
codex exec runs in the helper's bubblewrap sandbox with its own CODEX_HOME login (harness codex), its shell and
the other tools that reach past the task turned off, and reads through read-only file tools that the helper
serves to the run over localhost MCP, confined to the mounts. One Codex call at a time per helper, so refreshes
of its login never race. Codex has no tier defaults: the config names its models.
2026-11-19 18:26:29 +00:00
aiongg ccc44ae06b Merge branch 'ul-tools' into ul-int
# Conflicts:
#	src/dash/mcp/index.ts
#	src/remote/calls.ts
2026-11-19 18:09:33 +00:00
aiongg 96c47fddf3 Authors and co-authors give way on judging calls only while another helper that could take the call is asking for work
An author's claim skips a judging call when another login's helper made an empty claim within the idle window that covered
the call's tier and repos, fits the role rules, has cached write permission and authored nothing in the call. Otherwise the
author's helper gets it. The same rule applies to the next_task count. Empty claims record their tiers and repos.
2026-11-19 18:08:27 +00:00
aiongg 7fa065f41e Per-lease tools of remote calls: item, reference and check tools over HTTP and MCP, the tarball and helper routes, and the helper's tool command 2026-11-19 18:07:11 +00:00
aiongg 57c86871f5 Merge branch 'ul-ui' into ul-int 2026-11-19 18:05:45 +00:00
aiongg c931f23d83 Remote calls: capped union queue time, no raw replies kept, leases bound to a live running token, co-author exclusion
The runner sums the time in which any of a job's calls waited for a helper and leaves at most 12 hours of it out of the
deadline and no-progress stop. A done reply is cleared once the caller reads it. A lease records its token and ends
(returned to the queue, no attempt used) when the token may no longer run tasks or its login is no longer a maintainer
or operator. The sync stores each commit's authors as GitHub lists them, Co-authored-by trailers included, and judging
calls skip them; classify.haiku, security.verify and security.fixcheck judge too. Claims refuse helpers older than the
required version, skip calls the login released in the last 10 minutes and check write permission with the 1-minute
cache. Lease expiry is compare-and-set, and maxWaitMs counts queue time only.
2026-11-19 18:05:25 +00:00
aiongg 9b2945dbb3 User-local prompts carry harness wording that the claim fills; reference docs named as tools
A remote call's prompt marks the phrases that name Claude's tools; the bundle and the run's prompt fill them for
the claiming harness, with exactly the server's text for claude. Calls with the reference server get the
reference input flag and a sentence that names reference_search and reference_around instead of /reference.
2026-11-19 18:03:43 +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 ceb2bd4443 Session MCP tools next_task, task_status and my_work for tokens that can run tasks; remote-calls health check 2026-11-19 17:58:16 +00:00
aiongg 482f498563 Helper follows the merged wire format; the harness's cost reaches the run
The helper keeps a session when the bundle's keepSession says so, submits
usage per model id (explorer included) and the CLI's total cost, and gives a
lease back through the release route when the fault is its own: too old,
wrong platform, missing harness or token, file setup failure, or stopped by
the user. The work loop stops when it can take no call and pauses after a
release. Submit carries costUsd; the server stores it with the call's usage
and records it as the run's cost.
2026-11-19 17:54:45 +00:00
aiongg d219d5c3fe Merge branch 'ul-refsearch' into ul-int 2026-11-19 17:52:35 +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 ab5ee9fa04 Reference search compares a name/size/mtime fingerprint instead of hashing contents on each call 2026-11-19 17:34:41 +00:00
aiongg 4225f60fe8 Hybrid search over a repo's reference text pages, indexed outside the reference folder 2026-11-19 17:34:13 +00:00
aiongg f1377e1433 Name the per-server task MCP routes 2026-11-19 17:32:40 +00:00
aiongg 919f2fb8b6 Wire format for the user-local inference mode 2026-11-19 17:32:07 +00:00
aiongg d8e45b5d48 The runner reconciles one repo a day off its tick, giving way to the minute sync 2026-11-17 17:03:32 +00:00
aiongg 333b30e785 Account labels on the Live board and in the Now feed are for operators only 2026-11-17 15:39:10 +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 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 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
aiongg 0bcc1f8d68 Unsent comments: a final CI fix comment waits on a person, the item bar and repost read the right rows, stored patches stay until their retries are used
- A take PR whose CI fix ended with a failed comment, or with its last unsent one, waits on a person.
- The item bar reads the newest row past unsent comments that are still retried, and counts a fix-up's unsent comments per source and carry-over. Reposting an ask reads the review's own fix-up rows.
- The CI fix keeps a stored patch while its unsent comments are not final and leaves the timing to the plan.
- A later round's patch that needs no lint task is stored when its comment is not sent.
2026-11-16 15:22:17 +00:00
aiongg e32c148390 Unsent comment retries: CI fix reposts its stored patch, carry-overs back off, final unsent rows show as failed 2026-11-16 15:16:41 +00:00
aiongg a1c0219c92 Unsent comments: the CI fix posts its stored patch again, carry-overs back off, a final one shows as failed
- A CI fix comment that did not reach GitHub leaves its linting or formatting row (a try) in place and gets its own row, timed from the failure. After the backoff the stored patch or formatter result is posted again with no new model or lint run; a patch that needed no lint task is kept as a linting row without one. The stored patch is not dropped during the backoff.
- A carry-over's unsent ask is not a try: its own fixups row times the same backoff, and the carry-over is held after the last one.
- The item bar shows the last unsent comment as failed.
- A PR stays assigned while an unsent comment waits for its retry.
2026-11-16 15:16:18 +00:00
aiongg f376827d87 Queue rows name a carried Merge answer from its audit, and an issue's queued PR that was not fast-tracked says so 2026-11-16 15:09:31 +00: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 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 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 17c0e775bf A pre-approved merge without a fix-up names its own head in the thread and the Merge? question
Rows added to the merge queue, and Merge answers carried across a base
merge, have no fix-up: their lines name the PR's head or the merged head
instead of a fix-up's review or push. Rows that began with a fix-up keep
their wording.
2026-11-16 14:24:38 +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
David MannandClaude Opus 5.5 8ce68bac6b Operators add PRs to the merge queue, and fast track gets a weight
Fast-tracked items have a weight from 1 to 10 (default 5): heavier items
go first in every stage that orders by the work rank, and equal weights
keep the order added. The weight is a new fast_track column; the scores
(fastScoreSql, workScores) put it above the order added, so every planner
and the merge order follow it without other changes. The CLI takes
`fasttrack add <item> --weight N` and `fasttrack weight <item> N`, and
POST /api/fast-track/weight sets it (audited as fasttrack-weight).

"Add to merge queue" (POST /api/queue/add {item, weight}, operators)
starts a pre-approved merge at the PR's current head with no fix-up, a
row in `review` as a carried Merge answer uses, so the PR merges only
after a sure take review there, a clean pre-merge review and green CI; a
take-fix review, a defect or a red head asks the Merge? question. It also
fast-tracks the PR with the weight.

The Merge queue tab's add box now adds to the merge queue with a weight,
the fast-track marker shows the weight, and operators change it on the
board's cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:40:34 +01:00
David MannandClaude Opus 5.5 915d4c8415 Workable rows lead with the PR id and the issues it closes, both opening GitHub
The first columns of a Workable table are now ID and, where a page asks for it, Closes: the PR's number and the issues it closes when it merges (GitHub's closing references, from the mirror), each a link to GitHub, with the repo under the id. The title opens the item page. The GitHub button, the merge-position number and the row that opened under a PR are gone: our build joins the Checks as a fifth icon, the Verify and build failures show on hover, and an open decision links from the line under the title.

Merge queue rows carry closes, read once per page from the items_closing index; the mock gives some PRs one or two closed issues.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 14:26:48 +01:00
David MannandClaude Opus 5.5 3e9ed9a66c Operators add PRs to the merge queue, and fast track gets a weight
Fast-tracked items have a weight from 1 to 10 (default 5): heavier items
go first in every stage that orders by the work rank, and equal weights
keep the order added. The weight is a new fast_track column; the scores
(fastScoreSql, workScores) put it above the order added, so every planner
and the merge order follow it without other changes. The CLI takes
`fasttrack add <item> --weight N` and `fasttrack weight <item> N`, and
POST /api/fast-track/weight sets it (audited as fasttrack-weight).

"Add to merge queue" (POST /api/queue/add {item, weight}, operators)
starts a pre-approved merge at the PR's current head with no fix-up, a
row in `review` as a carried Merge answer uses, so the PR merges only
after a sure take review there, a clean pre-merge review and green CI; a
take-fix review, a defect or a red head asks the Merge? question. It also
fast-tracks the PR with the weight.

The Merge queue tab's add box now adds to the merge queue with a weight,
the fast-track marker shows the weight, and operators change it on the
board's cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:46:51 +01:00
David MannandClaude Opus 5.5 f26753b806 A project picker narrows the whole app to one repo
The top of the navigation has a project picker (All projects, or one repo).
The web app sends the pick with every request as `x-autocraft-scope`, and
the server applies it in visibleRepos and hiddenRepos, so every list that
already respects repo visibility is narrowed to that repo without changing
its query. A scope only ever hides more: one the user cannot see is
ignored. The picker's own repo list, write rights, repo owners and direct
links (needVisible) ignore the scope, so an item of another repo still
opens.

Opening /projects/<repo> picks that project, /projects/all clears it, and
with a project picked `/` goes to that project's page. Changing the pick
refetches every view. The mockup narrows its lists the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:36:40 +01:00
David MannandClaude Opus 5.5 428dc545c7 Home starts with a tile per project, and each project gets its own home
The start page (/) is now Projects: one tile per tracked repo with open
items, open decisions, PRs merged by AutoCraft and the open-items trend,
plus an "All projects" tile. A tile opens /projects/<repo>, the former
home view scoped to that repo; /projects/all is the former home view over
every repo. Links from a project page (needs, items, phases) carry the
repo as their filter.

GET /api/home takes ?repo=NAME. It scopes every part of the payload by
hiding every other repo, so the existing queries stay as they are; a repo
the requester cannot see answers 404.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 13:15:24 +01:00
aiongg 303a000d97 Diff re-reads run at most 800 an hour 2026-11-15 02:34:36 +00:00
aiongg 5abb404482 Diff re-reads run at most 600 an hour 2026-11-15 02:31:38 +00:00
aiongg 9c9cc68ea3 Diff re-reads are paced: at most 200 an hour across the instance, none while the token's core rate is below the sync's reserve
- the pre-merge step takes a slot of the rolling hour before each re-read and reads the core rate once per pass; below the reserve the re-reads pause until the reset
- the plan waits for the pace (an external wait in the registry) and wakes when a slot frees
- the workflows listing serves every PR of a repo and default branch for ten minutes
- the sync's reserve is one constant both use
2026-11-15 00:08:09 +00:00
aiongg 18f82b15a2 Merge branch 'sec3-merge-rule-3' 2026-11-15 00:04:43 +00:00
aiongg fe3a1ec184 A diff waiting for what the merge rule reads beside it holds on the conservative reasons and is read again, spaced and counted, with no model call
- while the extras are pending the facts carry the reasons found without them plus a waiting reason; the Merge? question waits
- every open PR with a pending diff gets a re-read by the pre-merge step, at once and then an hour after each incomplete read; the step records the live base as the review does
- only these re-reads count towards the three tries, and other cached-diff readers never fetch again for the extras
- workflow defaults come only from defaults: run: working-directory; a step's expression working directory matches named files as path suffixes
- the facts memo keys on file times and sizes instead of reading the extras each pass
2026-11-15 00:04:24 +00:00
aiongg 748ef1a767 Merge branch 'sec3-runner-3' 2026-11-15 00:02:22 +00:00