Commit Graph
511 Commits
Author SHA1 Message Date
aiongg cbb212fde7 Merge branch 'rb-timescale' into rb-int
# Conflicts:
#	src/remote/calls.ts
#	worker/autocraft-task.mjs
2026-11-19 23:52:03 +00:00
aiongg 2b28a23aa4 Test-only time scale for the user-local mode (AUTOCRAFT_REMOTE_TIME_SCALE) and a --time-scale option in the load rig 2026-11-19 23:50:40 +00:00
aiongg d0a85d75cd Review fixes for the user-local robustness batch
- A tarball archive is cached only when the copy was written in full.
- Claim permission reads use the helper routes' short busy timeout.
- A 404 from the app's permission check falls back to the session
  instead of counting as no permission.
- The load rig reads cool-offs per login and the helper's last error.
- A lease that never had a heartbeat is no drop toward the cool-off;
  the helper resends a claim's request id after a failure in transit.
- A reply whose lease ended during the submit is answered 410.
- The fast lane is not counted as planner room.
- A follow-up waits on the helper that ran its parent call.
2026-11-19 23:46:06 +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 d77fb3d7ea Merge branch 'rb-t6-load' into rb-int
Lease tombstones, old lease drops and spent cool-off rows go with the
minute maintenance (pruneRemote); requeue and unlease drop the cached
queue order; the liveness stamp uses the helper routes' connection.
2026-11-19 23:23:40 +00:00
aiongg fdcee99b18 Merge branch 'rb-t2-lease' into rb-int
# Conflicts:
#	test/remote-tools.test.ts
2026-11-19 23:21:22 +00:00
aiongg 32e389eafe Merge branch 'rb-t3-super' into rb-int
# Conflicts:
#	docs/operations.md
#	worker/autocraft-task.mjs
2026-11-19 23:21:05 +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 664f12ae8b Keep the dashboard light under many helpers: seen_at every 30 s, remote maintenance on a minute timer, a short busy timeout with 503 on the helper routes, a cached queue order with authors stored at enqueue, per-token limits and the trusted proxy depth 2026-11-19 23:18:30 +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 325d7b6529 User-local lease lifecycle: outage-aware expiry, time limit from the run, idempotent claims, tombstones, failed replies requeue, cool-off per login
The dashboard stamps its liveness every 5 s; job processes expire leases only while
it serves, and for missing heartbeats only after it served the whole idle window.
After a gap every lease's heartbeat, claim and run start move forward by the gap.
A token's drops count at most once in 10 minutes.

The time limit counts from the first running heartbeat; preparing may last 15 min.
A claim repeated with its request id within 5 minutes gets the same reply (kept in
the dashboard's memory; after a restart the orphaned lease goes back unused).
Ended and requeued leases keep their secret hash, so every lease route answers 410.
ok:false requeues with the next attempt and skips that login; a repeated accepted
submit is accepted again. Cool-off is per login, counts drops and 5 failures in a
row within 30 min, and is cleared by login.
2026-11-19 23:16:13 +00:00
aiongg eb1f243c3a Merge branch 'rb-t4-usage' 2026-11-19 23:12:14 +00:00
aiongg b37c3cf23b Merge branch 'rb-t7-tools' 2026-11-19 23:12:14 +00:00
aiongg cb7da4c020 Merge branch 'rb-t8-perm' 2026-11-19 23:12:13 +00:00
aiongg 8e888f378f Tool serving stays off the dashboard's event loop: reference vectors cached and scored in a worker thread, snapshot handle cached, async git, tarball limiter, semaphore and disk cache 2026-11-19 23:07:02 +00:00
aiongg 042f0bccfd Helper usage reads: one fetch at a time per machine, last good reading while a read fails, jittered hold re-check, login expiry in readiness 2026-11-19 23:06:11 +00:00
aiongg 9b7b69a1cb Helper claims read write permission through the GitHub App installation, cached 60 s per login and repo, without a dashboard session 2026-11-19 23:05:28 +00:00
aiongg 66c2b2c3d6 A deploy drain keeps the queued and leased calls of running jobs; only a switch-off withdraws them 2026-11-19 23:05:01 +00:00
aiongg 9eca9f0547 Merge branch 'ul-myrepos': each user picks the repos their helpers take calls from 2026-11-19 22:20:32 +00:00
aiongg c125437627 Reference search reads the built index and never builds one in the dashboard; builds of one index run one at a time; the query embedder uses one thread 2026-11-19 22:20:16 +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 87ae19d759 Document the user-local inference mode: README section, operations reference, pipeline note 2026-11-19 21:04:58 +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 938d71fe68 User-local helpers keep a per-user plan-usage reserve: readers for Claude and Codex usage, pause and refusal holds, readiness reported to the server and counted by the planner's room 2026-11-19 20:56:00 +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 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 abaaba5f7e Regenerate the stage, model and wait tables 2026-11-17 15:39:34 +00:00
aiongg ad3184875b README keeps repo tracking short; the naming and app-install rules are in operations 2026-11-17 15:39:33 +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
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 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
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 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
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 80f9ba8f4c Each deploy installs the post-receive hook its commit carries 2026-11-15 02:26:30 +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 a5be498300 Code replies are parsed as written and refused when they hold a fixed-shape credential; the scrub keeps URLs, paths, quotes and backticks and hides named values only when they look generated 2026-11-15 00:02:05 +00:00
aiongg aa2789549e Merge branch 'sec3-runner-2' 2026-11-14 23:52:53 +00:00
aiongg 0244a99077 Merge branch 'sec3-worker-output-2' 2026-11-14 23:52:45 +00:00
aiongg ee966e7afa Code-carrying model replies reach their parsers with only the known credential shapes hidden; stored copies and every posted GitHub text get the whole scrub 2026-11-14 23:52:35 +00:00
aiongg 51ca1d51e4 A security fix waits before its model call until a confidential build environment has reported, with a health warning
A confidential environment is ready from its worker's first call after the flag, or the environment, was turned on (confidential_since, confidential_online_at); label, slot and key changes do not move the 4-hour build limit of private tasks. Until one is ready the fix job ends before the model call, the finding notes the wait and advanceSecurityFixes continues it once one is ready, and the confidential-env health check warns while security fixes or security build tasks wait; build-queue leaves those tasks to it.
2026-11-14 23:52:30 +00:00