Commit Graph
791 Commits
Author SHA1 Message Date
aiongg 2221647680 Workflow flip starts over: a flip to new only switches the repo and withdraws open Merge?, Hold and scope questions; no workflow rows from legacy state 2026-11-24 21:07:36 +00:00
aiongg 2c8d0002f1 Maintainer workflow data and flip: item_workflows, workflow_events and github_link_nudges tables, tracked_repos.workflow (default legacy), github_commands.parsed, preapprovals.workflow_id, the workflows live topic, the workflow store and blocker settings, and workflow flip <repo> [--dry-run] [--legacy] / workflow status 2026-11-24 20:48:09 +00:00
aiongg 7e293e3f66 Warm sync: a full disk drops the unfinished download; unfinished downloads count against the node cap and in the status; lock takeover by rename, lock checked before staging and publish; --once takes the lock; staging names an older agent removes 2026-11-24 15:28:20 +00:00
aiongg 7f5f4f22e0 Warm sync resumes an interrupted download: the staging dir and the manifest it follows survive a restart, finished files are kept (by size, mode and mtime, by sha256 after a reboot), a newer manifest keeps only the files it shares; SIGTERM stops at the next file; one agent per node dir through a lock file 2026-11-24 15:19:55 +00:00
aiongg aae810a51d Warm CARGO_HOME mark names the version by its manifest sha256 and is read after verification; tests cover the skip, a republish of the same commit and the fetch pod's spec 2026-11-24 07:51:34 +00:00
aiongg 5d995a4085 Warm CARGO_HOME before the fetch: the fetch or mirror step pod before a warm offline pod copies the version's CARGO_HOME first, so cargo fetch downloads only what it lacks 2026-11-24 07:45:25 +00:00
aiongg fd9eb96112 Warm copy: new entries land through temp names and renames, the journal undoes only temp names inside the target and an undo failure starts cold, calls are capped at an eighth of the tree's bytes, consistent file and byte counts 2026-11-24 05:18:52 +00:00
aiongg 099115380d Warm copy with a few large cp --reflink=auto calls planned from one find per tree, straight into place: lock files left out instead of deleted after, CARGO_HOME merged by skipping what it holds (a journal undoes a half copy), large hard links kept inside the copy, split dirs' attributes set in parallel, one log line per tree 2026-11-24 05:08:48 +00:00
aiongg dc7aadeb4c Runner leader keeps its own pod's item snapshot; standby probes hold the worker API port until it binds; a takeover without the worker API gives up the lead
The sync no longer builds the item snapshot. The runner leader builds it in a child process at its start and after each
successful sync run that ended since its last build, so the snapshot sits beside the jobs and worker API that read it
when the runner and periodic leaders run in different pods. The standby probe listener keeps the worker API address
through the startup work until right before the worker API binds it. The EndpointSlice is written only once the worker
API listens; with the slice configured, a worker API that fails to start releases the lease and exits.
2026-11-24 04:20:57 +00:00
aiongg 1afa7e1b69 Merge branch 'discord-link-only'
# Conflicts:
#	src/dash/api/discord.ts
2026-11-24 03:20:16 +00:00
aiongg 5e51960f36 Discord Submit for me: refuse a press the draft did not offer or on an uncovered filing-only repo before filing; show the link-only reason in Settings 2026-11-24 03:19:27 +00:00
aiongg 8755518279 Merge branch 'workspace-screenshot' 2026-11-24 03:14:25 +00:00
aiongg 7766c7ace6 Workspaces: keep session screenshots for the Workspaces page
The relay dropped every delivered image's bytes, so each screenshot a model
session took showed as a broken image on the workspace page. A session now
keeps the bytes of its first 60 images; later ones keep type, size and hash
with the reason, and the runner's hourly prune drops kept bytes 30 days after
the workspace ended. The page shows a screenshot whose bytes are gone as
"Screenshot not kept" with its size, hash and reason.

workspace tool gains --out FILE (or - for stdout) to save a result's image,
since output read back through workspace run is text cut to 30 KiB.
2026-11-24 03:13:59 +00:00
aiongg 571e76e248 Discord filing-only repos: add repos the GitHub App does not cover as link-only; drafts offer Submit for me once the app covers the repo 2026-11-24 03:12:12 +00:00
aiongg e4a9e747be Discord: operators set the reaction emoji (custom name or Unicode) on the Discord page and the CLI 2026-11-24 03:09:53 +00:00
aiongg e7e4cb5fd9 Discord: the bot reacts with the server's bot emoji when it has one, else 🤖 2026-11-24 03:07:46 +00:00
aiongg 7e4e8fd4ed Discord: the bot marks recorded messages with 🤖 2026-11-24 02:45:57 +00:00
aiongg 3e4c29aaf8 Discord bug reports take up to three screenshots: Submit for me copies them to the attachment bucket and embeds them in the issue
The bug and undecided forms get a File Upload field when the AUTOCRAFT_ATTACH_* bucket settings are present. Files are
downloaded only after the filing limits and junk check pass, kept only when their first bytes show PNG, JPEG, GIF or
WebP, uploaded with a SigV4-signed PUT, and linked under a Screenshots heading. A file left out is named in the reply
with the reason; the prefilled GitHub link says to attach the screenshots there.
2026-11-24 01:20:57 +00:00
aiongg 17723a7fef Discord: the panel's find button and /autocraft search open a search-only form; /autocraft report opens the new-issue form 2026-11-24 01:02:49 +00:00
aiongg 6d9ce5c36f Merge branch 'runner-login-gap' 2026-11-23 21:08:36 +00:00
aiongg ba6103c7fa Claims limited by a login's refresh: no idle stamp when a call was passed over for its time limit, the limit counts from the claim's arrival, the empty reply says why, and a login-fit give-back does not count toward failing
The queue rebuild reads each call's time limit with its other fixed fields, once per new call.
2026-11-23 21:08:21 +00:00
aiongg 4a7c1091f3 GitHub App allowed owners: match kept repos by name, refuse removing an account whose installation covers one or whose id is a kept owner's, fill missing account ids in the sweep, write the first list in one transaction, keep installations whose repo list is cut, report GitHub read failures 2026-11-23 21:08:10 +00:00
aiongg 54630cc7f9 GitHub App allowed owners: match installations by account id, list every installed account when enforcement starts and repo owners when tracked, read an installation's repos before removing it, refuse tracking for owners not allowed, answer installation webhooks at once, page the installation list, count a 404 as already removed, show protected owners 2026-11-23 21:04:02 +00:00
aiongg 23fed70104 Task Runner 1.4.2: a Claude login near its end takes every call that ends before its refresh point
Claims name the longest timeout that fits (Claim.maxTimeoutSeconds) and the server offers only such calls, so the Task Runner stays ready up to the refresh point instead of stopping 25 minutes before the login ends. A call that no longer fits once its files are ready goes back without a hold. When no call fits, the Task Runner reports the new readiness login-refresh until the refresh point; a server without it gets harness-missing with the same reason.
2026-11-23 20:59:08 +00:00
aiongg 2d833f9f80 GitHub App allowed owners: installations on other accounts are uninstalled (webhook and 10-minute sweep), operator list on the GitHub App page and CLI 2026-11-23 20:53:22 +00:00
aiongg 85326ad25c Discord bot: operators can hide tracked repos from its repo select (Offered in Discord switches, discord offer command) 2026-11-23 19:48:30 +00:00
aiongg 777d9a2ada Merge branch 'discord-filing-only'
# Conflicts:
#	src/schema.pg.sql
2026-11-23 19:38:01 +00:00
aiongg 65e2c44791 Count only unclean stops against the resume cap: graceful restarts resume up to 12 times 2026-11-23 19:32:08 +00:00
aiongg 6952697f0c Filing-only repos for the Discord issue bot: public repos of any owner the bot files into as the GitHub App without tracking them 2026-11-23 19:30:23 +00:00
aiongg 20c5c4027c Discord reporter credit uses the unique handle, not the changeable display name 2026-11-23 18:28:28 +00:00
aiongg ceb9c435ce Merge branch 'write-lock' 2026-11-23 18:18:24 +00:00
aiongg 5cb5f67287 Short write-lock holds: batched mirror page writes, row-local Task Runner writes, main-CI poll on its own cadence
writePage builds its rows before the lock and writes a page in a fixed number of
multi-row statements instead of several statements per item and comment.
Write transactions can take a named lock in place of the writer lock; a lease
takes its login's lock. The Task Runner handle's lone writes (heartbeat, status,
token use, the liveness stamp) run under their row locks only. The liveness
stamp is one conditional UPDATE unless it went stale. The main-CI poll is
checked every 30 seconds during a sync run, on a client of its own.
2026-11-23 18:11:35 +00:00
aiongg c598694c58 Discord issue flow: junk-check the first message before the follow-up questions, not again at submit 2026-11-23 17:58:01 +00:00
aiongg 5a548dd1fb interactive-no-taker: read Discord configuration from the key file variable the dashboard has 2026-11-23 17:53:19 +00:00
aiongg 669ee86f63 Add the interactive-no-taker health check for Discord calls 2026-11-23 17:52:28 +00:00
aiongg 2f524bce0b Warm producer steps mount /meta read-only; the toolchain key also covers the tools build scripts run or load 2026-11-23 17:36:19 +00:00
aiongg d865d6dda7 Toolchain key covers only what can change compiled output: Rust, sccache, the C toolchain and -dev packages 2026-11-23 17:30:38 +00:00
aiongg c1a404488e Warm versions match on rustc and the toolchain image's toolchain key, not only its digest
Containerfile.rust-stable writes a toolchain file (Rust release, components, targets, sccache, installed packages).
A toolchain-id init container (toolchain image) writes rustc -vV and that file before warm-restore and warm-copy, the
publish records its sha256 in the manifest, warm-sync carries rustc and the key into the node status, and the runner,
restore and copy accept a version of another digest when both match. Docs say which programs run from which image.
2026-11-23 17:29:20 +00:00
aiongg 76eb35ad70 Merge branch 'warm-fix2' 2026-11-23 16:38:26 +00:00
aiongg ac252c6725 Merge branch 'warm-fix5' 2026-11-23 16:38:26 +00:00
aiongg 09ebb3d883 warm-sync: decide link reuse by uid, gid and group/other write only; fix modes in place at start instead of dropping versions 2026-11-23 16:38:18 +00:00
aiongg 697c24cbc1 Set the gate's checkouts to the old mtime only for a trimmed warm version 2026-11-23 16:37:39 +00:00
aiongg a831d8b6a4 Worker warm builds build the test units too, like the cluster producer; docs say a warm-command must build the workspace build's units 2026-11-23 16:37:35 +00:00
aiongg 49cba1776e Merge branch 'warm-gatecmd' 2026-11-23 16:30:48 +00:00
aiongg 1a36d1e657 Merge branch 'warm-reuse' 2026-11-23 16:30:16 +00:00
aiongg d9c7173732 Merge branch 'warm-trim' 2026-11-23 16:30:16 +00:00
aiongg a4aa49f73f One whole-workspace Rust build: lib, bins and tests, shared by build pods, the warm producer and workspace sessions 2026-11-23 16:30:07 +00:00
aiongg 0fd2b786fe Keep hard links in the parallel warm copy 2026-11-23 16:30:02 +00:00
aiongg 2ec7bdf4fc warm-sync: reuse a previous file only if owned by the agent, not group/other-writable and unchanged since the version was applied; drop bad versions at start 2026-11-23 16:28:38 +00:00
aiongg 24dec53ff8 Copy the warm target and CARGO_HOME with several cp processes at once 2026-11-23 16:27:55 +00:00