Commit Graph
718 Commits
Author SHA1 Message Date
aiongg c9ebc603a4 rust-stable toolchain image adds the wasm32-unknown-unknown target that pipeline repos' toolchain files list; offline build pods cannot install it 2026-11-23 01:09:53 +00:00
aiongg b32c78d6f1 Merge ws-warm 2026-11-23 01:06:11 +00:00
aiongg b6e32a7c1a Workspace targets always live on the session volume; warm node choice skips full disks and prefers lower usage; cold fallback resets the pending clock; craft-fonts/i18n archive cap shared with build pods; a failed changed-file list put falls back to touching everything 2026-11-23 01:06:02 +00:00
aiongg 8e3f7f8717 Workspace pods may run on any node, the AutoCraft service's included: their isolation keeps them apart, so any node holding the warm version can take one 2026-11-23 01:02:50 +00:00
aiongg fdbaae2153 Workspace warm node choice reads no service pods: the required pod anti-affinity on the AutoCraft service pods keeps workspaces off their nodes, and a warm pod the scheduler refuses for 3 minutes starts cold 2026-11-23 00:58:16 +00:00
aiongg 7cdc397e9e Workspaces of repos with a warm target work at the CI paths and start from their node's warm version: layout 2 (checkout at the runner path, CARGO_HOME /cache/cargo, gate env and checkouts), node choice from warm status, warm-copy before the workspace (Cargo.lock check for pvc), volume sized for the target to grow, checkout mtimes from the files changed since the warm commit, warm note on the item page 2026-11-23 00:57:03 +00:00
aiongg 76d5d489ed Merge jev-402 2026-11-23 00:46:20 +00:00
aiongg 252042756c Merge impl-switch 2026-11-23 00:46:20 +00:00
aiongg e4739265e6 Crate mirror queues requests past its upstream limit instead of answering 503; 64 upstream slots by default (--upstream-slots); mirror build pods retry with CARGO_NET_RETRY=10 2026-11-23 00:45:56 +00:00
aiongg 1e81a0e49c Jev Cloudflare: test and document that a 402 (balance ran out) records the Jev outage 2026-11-23 00:43:31 +00:00
aiongg d3302ace2e Maintainers with write access switch a repo's Implement feature 2026-11-23 00:42:57 +00:00
aiongg be6b6ee722 Task Runner 1.4.0 runs interactive lanes; older runners are offered interactive calls in ordinary claims 2026-11-22 23:49:56 +00:00
aiongg b67d053609 Interactive Task Runner slots: a per-user setting and claim lane that only interactive (Discord) calls use 2026-11-22 23:46:24 +00:00
aiongg ad284dd058 Discord search also finds open pull requests and ones merged in the last 7 days, labelled (PR) and (merged) 2026-11-22 23:28:27 +00:00
aiongg c803224fe2 Discord model calls wait at most 8 s for a helper to take them, then the call is withdrawn and the fallback is used 2026-11-22 23:26:26 +00:00
aiongg 8b6731f57a Merge mirror-wait: mirror pods wait for the crate mirror before their first network step 2026-11-22 23:02:58 +00:00
aiongg 931daf5c17 Lease review fixes: watchdog on the monotonic clock from the takeover's send time, timers start before the status writes, epochs at least the server's clock in ms; EndpointSlice label and Flux annotation in the docs 2026-11-22 23:02:39 +00:00
aiongg 1058943855 Mirror pods wait for the crate mirror to accept connections before their first network step 2026-11-22 23:00:30 +00:00
aiongg 08cb81dd8b Leader election by lease: a leader_leases row per role, renewed every 2 s for 10 s on the server's clock and taken by a standby once expired; the fence checks the lease's epoch; the advisory lock is gone 2026-11-22 22:55:33 +00:00
aiongg 511f7d28a2 Runner: the leader writes its address into the worker API's EndpointSlice; runner-leader check fails while the slice names another address 2026-11-22 22:46:00 +00:00
aiongg 6bea27855d Warm starts: 4 GiB fixed room on a memory-backed target; CARGO_HOME keeps what earlier steps fetched 2026-11-22 22:12:13 +00:00
aiongg 4d44b5164f Warm starts: read one version dir, old mtimes only from trimmed versions, tmpfs memory reserved and added to the pod
warm-copy resolves current once and reads the signed record, manifest, target and
CARGO_HOME from that version's dir. The manifest records whether the publish's trim
attributed every kept unit to the build; only then does warm-copy set unchanged
sources to an old mtime. CARGO_HOME is copied beside its place and moved in with
renames; a failed copy leaves nothing and the task stays cold for its later pods.
Files deleted since the warm commit mark their nearest Cargo.toml and dir as changed.
A memory-backed target is reserved when the task starts and added to warm-copy's
and the steps' memory; it starts cold when the node's version needs more. The warm
env hash includes the craft-fonts and craft-i18n commits.
2026-11-22 22:10:02 +00:00
aiongg f6f68611e5 Merge warm-t6
# Conflicts:
#	src/warm/store-client.ts
#	src/worker/pod.ts
2026-11-22 21:56:30 +00:00
aiongg 41008e021b Build pods start warm from their node's warm version: per-repo warm target (tmpfs, or pvc with the same Cargo.lock), signed-record check and copy in warm-copy, checkout mtimes from the files changed since the warm commit 2026-11-22 21:55:06 +00:00
aiongg d1e6afd7b6 Warm producer builds only repos in an operator-set allowlist (warm_repos) 2026-11-22 21:41:53 +00:00
aiongg 3d57b6e025 Merge discord-panel-2 2026-11-22 21:22:26 +00:00
aiongg d920d4c757 Merge areas-ui 2026-11-22 21:22:25 +00:00
aiongg 14c66b340d Areas on the repo page and in the Items list: view and edit a repo's area list, its proposals and history; filter items by area (none for items without one) and group them by area 2026-11-22 21:09:34 +00:00
aiongg d5d4e15387 Discord issue panel: a pinned panel per support channel (Report a bug, Request a feature, Find an existing issue) opens the new-issue flow with the kind set; Submit for me files the draft as the GitHub App, crediting the reporter, under the per-person, per-repo and daily limits and the junk check; past a limit only the GitHub link shows 2026-11-22 21:07:12 +00:00
aiongg dd493609b3 Integration batches by area: a new batch takes the top-ranked PR, then the other ready PRs of its area, then the rest in rank order; the merge queue shows each batch's areas 2026-11-22 21:02:44 +00:00
aiongg b690bb98f1 Merge batch2: implementation PR follow-ups (AUTO-29 T6), maintainer UI for implementations (T7), fixissue retired (T8), refusal retry on another runner (AUTO-23), with the review fixes; implement stays off
# Conflicts:
#	src/schema.pg.sql
2026-11-22 20:40:56 +00:00
aiongg 587940bcac Build pods: review fixes for capacity: task pods recreated after a disruption stay pinned, replaces only for lack of room and at most twice, own-limit evictions are the step's failure, size bounds from every node of the arch with other environments tried first, deadline after a capacity wait fails the task, quota limits and ephemeral storage counted, quota refusals back off the environment, stored environments stay fixed, OOM raises capped at the largest node, placement spreads 2026-11-22 20:38:21 +00:00
aiongg d2e526f7d6 Build pods: a task above the namespace quota's hard total fails at once; docs note on envs sharing a namespace 2026-11-22 20:29:18 +00:00
aiongg d0981dc0a6 Build pods: the launcher claims by cluster capacity (quota room, node room left by our reservations, scheduler feedback), places runs on a node, reruns disrupted stages on the same volume, raises memory after OOM kills, and treats quota refusals as capacity waits; capacity wait in the registry and docs 2026-11-22 20:27:39 +00:00
aiongg ff6966f22c Merge impl-t6: our implementation PRs go back to their session for the review's fixes and red CI (AUTO-29 T6)
# Conflicts:
#	README.md
#	docs/pipeline.md
#	src/runner/steps.ts
#	src/stages/registry.ts
2026-11-22 20:23:55 +00:00
aiongg c090ddae0e Merge refusal-retry
# Conflicts:
#	src/schema.pg.sql
2026-11-22 20:22:22 +00:00
aiongg 400db3c9af Merge impl-t8 2026-11-22 20:22:16 +00:00
aiongg 78457ea1e0 Implement: our implementation PRs go back to their session for the review's fixes and red CI
decidePr routes a take-fix review and red CI on a PR an implementation opened to implement{revise} for its issue instead of
the fix-up and the CI fix; a conflict still goes to the conflict step, and a head is revised once. The revise bucket
(src/implement/revise.ts) sends the review's fix list or the CI failure to the attempt's session on the queuer's Task
Runner, restores a lost workspace from its stored checkpoint, runs AutoCraft's checks, and pushes the change since our
last push onto the PR's head through write.ts. A merged or closed PR ends the attempt and its workspace. A stuck revision
is tried again on the same PR. The queuer's pre-approved merge carries across the revision's push.
2026-11-22 20:22:09 +00:00
aiongg 3ab6045267 Retry a model call the safety filter refused once on another Task Runner or a lower tier
A refused call (Submit.refused, or the harness's refusal text) goes back to the
queue without using an attempt or adding to the cool-off: for another runner
token that offers its tier, else one tier lower. Its agent run records where it
went. A second refusal, or one with nowhere to retry, fails the call as refused,
and the step stops its attempts with that error. Task Runner 1.3.9 flags refusals.
2026-11-22 20:11:47 +00:00
aiongg 75426f184c Retire the fixissue code: move shared helpers, delete the text-only Fix steps, update docs
Moved, behaviour kept: forkOf, branchOf (and mainHeadOf, from fixissue defaultDeps().mainHead) to src/github/fork.ts;
tasksFor to src/build/fix-tasks.ts (default step name is now "fix-check"); validateFixPatch and editable to
src/security/patch.ts; textRefs, issuesWithOpenPr*, hasOpenPr, textHash, notRustKey to src/core/open-prs.ts;
approval.ts to src/implement/approval.ts. The cache-repo ref refs/fixissue/main is now refs/fixup/main-head.

Deleted: src/fixissue/{index,parse,types,template}.ts, the steps fixissue and fixissue-collect, the CLI commands
fixissue and fixissue-collect (fixissue-approval is now implement-approval in src/implement/cli.ts), the prompts
fixissue.triage, fixissue.patch and fixissue.check with their input types and samples.

Removed tests:
- test/fixissue.test.ts (whole file: tested runFixIssue, the attempt rows and the deleted triage/patch flow)
- test/merge-rule-sec3.test.ts: the parseTriage/sourcePaths assertions (build-script rule stays tested via buildScripts)
- test/sandbox.test.ts: the sample-input entries for fixissue.triage, fixissue.patch, fixissue.check
Repointed: model-text-sec3 (to implTitle/implCommitMessage), issue-stalls, mirror, implement-plan, implement-build, world-db.

Old audit action names and step names stay in the display maps so earlier rows still show. Docs: the Fix stage is
Implement (registry docSection, pipeline.md, how-it-works, stage-summaries, README); generated blocks regenerated.
2026-11-22 20:07:09 +00:00
aiongg 502c99ab91 PR status comment: review fixes
Security cases get the same lines as any PR. Closed is not final; a deleted comment is final only once a read of the PR
confirms it is gone. Batch members show the batch once its PR is open. Failure backoff per PR, a new comment when the
stored one was written as another identity, paged comment search, a per-repo lease, merge-order queue places (batch
members ahead, PRs waiting on a decision left out), last edits after the repo leaves the pipeline scope, and a daily limit
of 2,000.
2026-11-22 19:49:21 +00:00
aiongg fd66c582a5 PR status comment: one comment per PR, edited in place as it moves through review, the merge queue and batches
A per-repo switch (Repos page, GitHub writes; operators and maintainers with write), off by default. The pr-status step
posts once the PR is past triage and edits the same comment when its status line changes: the step from the public status
layer, the place in the merge queue (exact up to 10) or the merge batch, and the batch it merged with. A history of steps,
and a Details for maintainers line linking the item page and the merge queue. Bulk-paced writes, 500 a day, no timer; a
comment whose record was lost is found on GitHub by its marker and edited.
2026-11-22 19:39:59 +00:00
aiongg 9cc0a4172a Merge warm-producer: warm writer environments build default-branch heads and publish signed warm versions; publishes recheck blobs the nodes found bad 2026-11-22 18:55:36 +00:00
aiongg 42bb195500 Merge warm-sync: node warm-sync agent with signed version sync, rollback floor, status heartbeat and Warm row
# Conflicts:
#	docs/operations.md
#	src/cli.ts
2026-11-22 18:52:17 +00:00
aiongg 37393e6d7a warm-sync: review fixes (free version names, status heartbeat, cap planning, disk checks, bad-blob classes, persisted rollback floor, node errors, label selector, grace period of 3.5 h) 2026-11-22 18:51:24 +00:00
aiongg 40b1c56bf1 Merge crate-mirror: crate and git mirror for build and workspace pods 2026-11-22 17:15:46 +00:00
aiongg 7afda3e72a Crate mirror limits: client timeouts and caps, busy slots, index 404 cache, disk floor, allowlist and fetch failures
Connection cap, HTTP/2 stream cap, handshake/header/request/body/idle
timeouts (also on the HTTP/1.1 fallback); 32 upstream and 8 git slots with
503 when full; upload-pack killed after 60 s without output. Index 404s are
remembered for the TTL; crate misses stop below 2 GiB free; ENOSPC is logged
as disk-full. An unreadable allowlist keeps the previous list and deletes
nothing; a failed git fetch counts as an attempt and the existing mirror is
served. POST checks repo, content type and encoding before reading the body.
Crate files are opened before the answer starts. CrateVerifier no longer
caches unknown crates.
2026-11-22 17:14:52 +00:00
aiongg d75e05f30f Warm producer: warm writer environments build default-branch heads with compile-cache writes and publish the warm store; crate mirror network for build steps 2026-11-22 17:08:24 +00:00
aiongg 19e0820dab warm-sync: bad blobs in the node status, refuse older latest.json, remove read-only trees, Warm row on kubernetes environments, operations docs
The agent records blobs a failed sync found bad per key (badBlobs in warm-status-<node>) for the
producer's recheck, refuses a signed latest.json older than the version it holds, and removes
version dirs with read-only directories inside. Kubernetes environment cards and envs list show
each warm key's newest version and on how many nodes it is held.
2026-11-22 17:06:43 +00:00
aiongg 078c7a6b4b Crate mirror: crates.io index and downloads plus allowlisted GitHub git over TLS by SNI, for build pods without public egress
autocraft-server crate-mirror serve terminates TLS for index.crates.io,
static.crates.io, github.com and api.github.com so clients keep the public
URLs and cargo's registry and git checkout paths. Index files are cached 60 s
and served stale up to 7 days while upstream fails; .crate files are stored
only when their sha256 equals the upstream index cksum; both stores are LRU
with byte caps. Git serves upload-pack from bare mirrors of an allowlist,
fetched every 2 minutes and on stale info/refs. CrateVerifier gains
checksum() and treats an index 404 as an unknown crate.
2026-11-22 17:04:53 +00:00