Commit Graph
238 Commits
Author SHA1 Message Date
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 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 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 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 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
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 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
aiongg 768dea57af Discord reporter sign-in keeps its earlier flow while filing in Discord stays off 2026-11-14 23:32:47 +00:00
aiongg cb7b665b85 Merge branch 'sec3-model-text'
# Conflicts:
#	docs/pipeline.md
#	src/outside.ts
2026-11-14 23:32:43 +00:00
aiongg 1eb4ca4a6b A Discord reporter's GitHub sign-in is used only after the Discord user enters the code the sign-in page showed 2026-11-14 23:29:50 +00:00
aiongg 6b02801f4c Merge branch 'sec3-identity' 2026-11-14 23:27:08 +00:00
aiongg 6bca12f063 A security finding's build tasks go only to environments an operator marked confidential, which take no PR code
build_envs.confidential is set on the Build environments page or with envs add/set --confidential, never by the worker. claim() hands fix-check and scan-test tasks only to confidential environments and gives those no PR build, integration batch or PR/issue task; a signing worker skips integration batches too. While no enabled environment is confidential the tasks stay queued with the reason "Waiting for a confidential build environment.", the security fix's check tool answers at once, and the 4-hour round and scan-test limit starts only once a confidential environment can take the tasks.
2026-11-14 23:26:35 +00:00
aiongg de0547d883 Whitelist tiers, overrides and the pipeline's own tier belong to accounts and heads; removing an operator ends what acts as them
- History counts per GitHub account: a PR row with an id counts for that id, an id-less row for the
  account the login is bound to, and for nobody while the login is unbound. The sync no longer binds a
  login that has id-less merged or closed PRs; the backfill binds it from the history's own author.
  A failed binding pass shows as the author-ids health warning.
- An allow override stores the account it was given to (looked up when set) and counts only for it;
  a deny holds for any account under the login, in any letter case. The outside-author limits read
  the same per-account standing.
- The pipeline's own Fix, main CI fix and security fix PRs keep their own tier only while the head is
  a commit the pipeline pushed to its own branch (own_commits), or reached from one only through its
  own later pushes; otherwise a person is asked.
- Removing or demoting an operator revokes their org setup links, and a link works only while its
  creator is an operator. Removal drops Discord links and codes in any letter case.
- Decision alerts to maintainers need a repo permission read within a day.
- A cached author permission is not used for another account under the login, nor once its refresh
  has failed too often or for too long.
- Pushes to new branches and new PRs need the grant of a step that opens the pipeline's own PRs;
  security fix writes carry their own grant kind.
2026-11-14 23:24:55 +00:00
aiongg fb8478f3a6 Author permissions get their own table with failure counts; stacked PRs need a decision; a retargeted PR's re-review reads the current base 2026-11-11 13:25:34 +00:00
aiongg a9c8f10cd5 Merge sec2-base-binding 2026-11-11 13:00:25 +00:00
aiongg 555110bfe4 Reviews and merges are bound to the head and base they read: diffs are fetched by commit and keyed on the fetched head, each review records its base branch, merges and batch members must match it, conflict merges take only the default or reviewed base, same-repo pushes need an author with write access, and adopted PRs must be the pipeline's own against the expected base 2026-11-11 13:00:05 +00:00
aiongg a131e53792 Merge trust follows the code it covered: Merge answers carry only across unchanged-diff base merges, carried code is held to its source authors' tiers and labelled as theirs, and the whitelist binds the GitHub account id to a login 2026-11-11 12:54:57 +00:00
aiongg ca585c9d27 Review jobs are filtered by step in the timeline, never-tracked repos with work rows count as known, and a 429 without retry-after waits 1 s 2026-11-10 13:57:04 +00:00
aiongg 89cf0cd81e Maintain an ever-tracked repo list for the hidden set; match hidden repo names as whole names in free text 2026-11-10 13:52:27 +00:00
aiongg 55e26a4cb5 Merge scan-tests: run the proposed test of security deep-scan findings (switch off)
# Conflicts:
#	src/prompts/index.ts
2026-11-09 14:45:54 +00:00
aiongg 491a94fd3b Merge pr-builds: our own build of PR heads as a second opinion to CI (switch off) 2026-11-09 14:45:39 +00:00
aiongg dbd6309c89 Scan tests: the model writes a test for a verified finding, the worker runs it on the pinned commit, and the result marks the finding (behind the Run scan tests switch) 2026-11-09 14:45:02 +00:00
aiongg a47cc8b53a PR builds: our own workspace build of PR heads as a second opinion beside CI, per-repo scope and daily cap, Our build line on the item and queue cards 2026-11-09 14:44:30 +00:00
aiongg df7326d7ef Merge nightly: nightly wide checks per repo, core (switch off) 2026-11-09 14:41:26 +00:00
aiongg 08235a40c0 Nightly checks, part A: check catalogue, tables, nightly lane and step, results, repeat-failure decision and issue, bench warning 2026-11-09 14:41:04 +00:00
aiongg 30c5cfadca Merge shots-worker: display image packages and per-repo screenshot setup (switch off) 2026-11-09 14:39:56 +00:00
aiongg b90149ac72 Screenshots: display packages for display tasks, screenshot_config and screenshot_runs tables, config module, API and setup block 2026-11-09 14:39:35 +00:00
aiongg 8ef8d3bc86 Build batches: build and test the batch branch in a build task before its PR opens (switchable, fails open) 2026-11-09 14:39:26 +00:00
aiongg 8c44df135c File Discord-drafted issues under the person's GitHub account: reporter sign-in routes, token store, junk check, limits, unlink 2026-11-09 13:08:52 +00:00
aiongg 029310c5b0 Discord issue search orders picks: open first, then comments plus reactions, then latest update; mirror reads reaction counts 2026-11-09 12:45:13 +00:00
aiongg 31708e16ae Discord settings: list channels in the server's sidebar order under their categories 2026-11-09 12:30:27 +00:00
aiongg e3d665b8a8 Downloads poll: keep history of vanished assets, rotating budgeted polling, bookkeeping settings, stale-repo baseline, 48 h hour buckets 2026-11-09 12:26:16 +00:00
aiongg 62a4f14f2c Downloads report server: release asset classifier, poll and delta recording, report endpoint 2026-11-09 12:19:58 +00:00
aiongg 7a7a2f3bfd Outside-author limits: count only in-scope items, sticky admission, surge holds until resume, resume wakes the planner, bot logins for old rows, visibility filter before limit 2026-11-08 21:59:57 +00:00
aiongg b78ff0c7ef Exempt GitHub Bot authors from the outside-author limits (author type Bot or a [bot] login) 2026-11-08 21:53:52 +00:00
aiongg ef7455114d Protect model spend from outside authors: per-author daily budget and an outside-surge breaker, one gate in the pilot condition, settings, release, Needs you group, health check and docs 2026-11-08 21:52:04 +00:00
aiongg bda27cc948 GitHub identity review fixes: no OAuth fallback in app mode, sign-in bound to the identity it started under, coverage checks (switch, track, health) with transient errors apart, minter caches keyed by app, confirm step on the switch 2026-11-08 21:04:06 +00:00
aiongg ef43075890 Liveness check: stuck and long open items in the health checks, a Stuck items page and the autocraft liveness command; go-live gate script that replays a team-sized day on a database copy 2026-11-08 06:47:10 +00:00
aiongg 1a3d7fdf63 Queue card presses at the daily GitHub write limit under one shared count, with a settling lock, dispute and access re-check; order Act by priority and stop repeat failures; rank model calls and prepares by repo then level with aging 2026-11-08 05:20:00 +00:00
aiongg 3bf2a0050f One answer per question: decision lock while a card settles, refused writing cards on answered decisions, Dispute with Keep or Undo, undo ends after a GitHub write, sweep of answers that can no longer apply 2026-11-08 04:48:15 +00:00
aiongg c505f18d83 Merge discord-decisions: /autocraft alerts, DMs for decisions the person may settle, choice buttons with a confirm step for GitHub writes, DMs updated after answers
# Conflicts:
#	src/discord/index.ts
2026-11-07 06:07:50 +00:00
aiongg 07f7ed3ccb Discord decision alerts: opt-in direct messages with answer buttons, edited after the answer 2026-11-07 05:57:44 +00:00
aiongg 0bab3c0eda Discord attention signals: Jev/Haiku check of messages that name an item, item header badge, Items filter 2026-11-07 05:57:27 +00:00
aiongg cc02c10ba5 Webhook drain: async gh client, drop failing requests, shared rate-limit state, completed check events only, forced re-read, item_reads side table 2026-11-07 05:05:40 +00:00
aiongg 28ad0df76c GitHub App webhooks queue changed items for a prompt re-read, with the poll as backup; the item page shows when AutoCraft last read the item from GitHub 2026-11-07 04:59:18 +00:00
aiongg c0f451a2ed Security: keep the fix rounds in security_fix_log, count fix attempts and keep the last failure on the finding 2026-11-07 04:20:39 +00:00
aiongg e650dd98af Prepare: re-prepare non-merge decisions on new counted comments (compared by id, own posts excluded) or an Opus review at the head; one due helper with the cap and old-head skip for merge and close ids; code-independent cards still run after a push; cap counted at call start 2026-11-07 04:05:34 +00:00
aiongg a127e803d5 Prepare: only Merge? decisions are tied to the PR head, other kinds are prepared again on counted discussion; skip merge decisions for old heads; cap automatic prepares at 3 per decision per UTC day 2026-11-07 03:56:11 +00:00