Commit Graph
606 Commits
Author SHA1 Message Date
aiongg 586424f021 Build pods: bounded disk use, claim-by-one starts, lost nodes, create retries
A disk container (AutoCraft image) first in every step pod fails the task when its volume
holds more than the environment's storage, which local-path does not enforce; a per-step
time cap (maxStepSec) and sized /src emptyDirs bound the rest, as docs/operations.md
explains. Tasks are claimed one at a time and every claim that cannot start goes back to
the queue. A pod stuck in deletion or on a node that stopped reporting, or running past a
deadline Kubernetes should have enforced, loses its task; a failed create of a later
stage's pod is retried with backoff before the task is lost. The launcher owns its tasks
(reapLost skips them) and keeps them alive even while the API is down; each container's
output is logged once; the pending health text stays stable; kubernetes environments
have no usable env key; the namespace cannot change while tasks run; pods select the
configured architecture; a source pod killed before it reports loses the task; a step's
own exit 124 before its limit is an ordinary failure.
2026-11-21 16:26:56 +00:00
aiongg 930e7e3415 Build pods: dashboard kind label and pod details, rust-stable toolchain Containerfile, operations docs, AUTOCRAFT_IMAGE in the example manifest 2026-11-21 16:13:04 +00:00
aiongg 8addbb3e75 Kubernetes build environments: the runner starts one pod run per build task
A kubernetes environment has no worker: the runner's pod launcher claims tasks for it
and runs each as a sequence of pods on one per-task volume. A task pod (network api)
fetches the task with a one-time key, a source pod (network fetch) unpacks the source,
applies the patch and reads the CI gate, then each run of consecutive steps with the
same network mode runs as ordered containers of one pod in the toolchain image, and an
upload pod (network api) sends the artifacts. The runner reads exit codes, OOM kills
and times from pod status and output from the pod log; the pod key can read its task
and upload artifacts, never report a result, and no key is valid while repository code
runs. A pod that disappears or never starts loses the task under the existing rule
(requeued once, then failed). Settings, envs add/set options and a health check per
environment.
2026-11-21 16:09:36 +00:00
aiongg fdb8d12104 Planner: flow_summary has its own live topic outside the planner's input, and a paused step that only a write lifts sets no wake time 2026-11-21 09:00:46 +00:00
aiongg 0cf7188de4 Held follow-ups: file when merged unless the path ended before the merge; settle stopped creates
A merged PR files its held issue unless the bound merge path ended before the merge time, so a pre-approval the merge itself cancels no longer drops it. Rows are bound to the press's own path: the pre-approval it created (runPipelineStep returns its id) or the decision's answer history count, so a new answer or pre-approval never revives one. createIssue treats an unsent request (failed app-token mint) as a clear failure and marks a write held back by pacing; pacing counts no try. A row left in filing is settled from its audit row. held_followups moves to its own topic outside the planner input, so row writes keep the failure backoff.
2026-11-21 04:23:03 +00:00
aiongg 8733915236 Hold follow-up issues on merge cards until the PR merges
A card that answers Merge, or whose fix-up merges, stores its open_issue step in held_followups instead of opening it. The Act job of the PR's repo opens it once the PR merged (same act-open-issue write and audit, counted against Act's daily limit then), and drops it when the PR closes unmerged or the merge path ends. A filing row is written before the create, so a restart never opens two. Card lines and the choices card read "After the merge: open an issue in <repo>: ..."; the item page shows the held issue and why it was dropped.
2026-11-21 04:14:30 +00:00
David MannandClaude Opus 5.5 e988e5f848 My tasks items review fixes: a user who takes only fast-tracked items and has none open is no room; a question about a task counts a filtered runner only on a fast-tracked item's repo it takes; the queue's why-waiting checks repo access without the items, so a call held back by them says so; Items saves on the Connect page run one after another with only the latest setting the control
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:46:15 +01:00
David MannandClaude Opus 5.5 61fc6a6a36 My tasks items: each user picks whether their Task Runners take every item, fast-tracked items only, or only the items they fast-tracked; a call fits when any of its items does, a question asked before the items are known counts a filtered runner only on repos with such an item, picks and session follow-ups run either way, and the queue says when a call waits for its items
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 20:20:23 +01:00
aiongg bf7402e6f2 Merge #24 with fixes: My tasks, each user picks which kinds of work their Task Runners take; the task counts in claims, room, takers, the planner, pools, the runner's start pass, the no-taker sweep and health mark and the queue view, so work nobody takes is never started; no task ticked takes only picks; no hint text 2026-11-20 16:00:15 +00:00
aiongg 040873990d My tasks: room and taker questions outside a job use the step of the prompt being asked about; the runner's job starts take the pass's earlier starts off a room read later in the pass; a repo counts as taken only by a runner whose user takes some task; on My settings only the latest save sets or clears the error; calls passed over for their repo do not count as calls ahead 2026-11-20 15:59:57 +00:00
aiongg dbd8b9b4fb My tasks: a user with no task ticked is no room for any call, as with Manual only; All tasks can be unticked; the hint and warning lines are gone; Other covers every step outside the stages and security prompts map to their steps outside a job; Merge queue's description names the pre-merge Opus review; My repos saves run one after another like task saves; the Task Runner wait names the task 2026-11-20 15:52:58 +00:00
aiongg 992747f925 Merge queue: queued PRs update live, count in the Merge badge and header, follow the view's scope, sit in a Queued group without hint text, and show in the mock board 2026-11-20 15:49:34 +00:00
David MannandClaude Opus 5.5 c5dff1335e My tasks review fixes: the room, pool takers, job starts and the planner count a runner only for the task of the step asked about (a queued job whose repo has takers but none that takes its task says "No Task Runner takes <task> tasks on <repo>"), a call of a task no ready runner takes is not counted as a call ahead, and task saves on the Connect page run one after another with only the latest setting the boxes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:44:33 +01:00
David MannandClaude Opus 5.5 aad97a2d61 Merge queue: a PR added with Queue items or pre-approved shows at once, in a Review group before Verify, while it waits for its fix-up or a take review at its head; it leaves the group when the review makes it a queue row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:31:28 +01:00
David MannandClaude Opus 5.5 f88bf0477c My tasks: each task has a tip on hover and keyboard focus with what it does (the first sentence of its stage's description) and the Claude models its calls ask for, also given to screen readers as the checkbox's description; Other's models come from the security and Discord prompts
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:04:03 +01:00
David MannandClaude Opus 5.5 2f888b38cc My tasks: each user ticks the kinds of work (pipeline stages that make model calls, and Other) their Task Runners take from the queue, all ticked by default; unticked ones are stored so a later task starts ticked, picks and session follow-ups run either way, and the room, takers, no-taker sweep, give-way rule and the queue's why-waiting count a runner only for the tasks it takes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 15:56:33 +01:00
aiongg 9553775fa9 Connect page: Connect your Agents, with Overview and Setup guide views, My settings first with Saving…/Saved, roomier Task Runner rows; a smaller switch across the dashboard 2026-11-20 14:20:17 +00:00
aiongg b07948bc3e Merge #20 and #21 with fixes: maintainers who settle decisions may use Queue items (permission refreshed through the GitHub App, default weight only, re-checked in batches); @<app> merge queue comments queue items, pinned to the head at comment time 2026-11-20 13:57:45 +00:00
aiongg 00e15b4b1e Fast-track weights stay with operators: a maintainer's Queue items line or queue_pr adds an item not on the list with the default weight, never changes an existing weight and says it ignored a weight it named; the dialog and a maintainer's queue_pr take no weight 2026-11-20 13:40:58 +00:00
aiongg 37f94b8652 Connect mock: the never-seen runner's machine has its own name 2026-11-20 13:39:25 +00:00
aiongg 828c151604 Connect page keeps main's layout; the install line runs autocraft setup, the harness step is for when setup did not pick one, Run offers autocraft work, one call and always on; docs describe setup's defaults, the AppArmor profile and how to remove it 2026-11-20 13:38:26 +00:00
David MannandClaude Opus 5.5 3ca3634dc6 Mock Queue items as the server: an operator also needs write access on the item's repo, and a maintainer adds only while maintainerSettles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:31:48 +01:00
David MannandClaude Opus 5.5 6d49215f81 Queue items shows for maintainers only while they settle: /api/me adds maintainerSettles (maintainer_writes on and the app identity, computed by the server), so under the box identity the button no longer offers what queueAdd refuses
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:24:26 +01:00
David MannandClaude Opus 5.5 e5c5f1e678 CodeRabbit follow-ups: the AppArmor profile is written to a temporary file and hard-linked into place (never overwrites, never leaves a partial one, removes only its own on a load failure), tested by running the script; macOS's git stub is found through symlinks; Saved belongs only to the latest change and Saving… lasts until every save is done
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:43:32 +01:00
David MannandClaude Opus 5.5 1c7703f9c5 Mock Queue items: a maintainer queues only in a repo they may write to, as the server checks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:41:46 +01:00
David MannandClaude Opus 5.5 7234fda163 Queue items for maintainers who settle decisions: the Merge queue button shows for them, and POST /api/queue/add takes an operator or a maintainer with maintainer writes on, the app identity and live write access on the item's repo (403 otherwise)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:32:17 +01:00
David MannandClaude Opus 5.5 2ea70ed92a CodeRabbit on setup and Connect: setup offers curl and bash before Claude's installer, removes an AppArmor profile that does not load, signs in with the claude it found (and the runner's config directory), offers a fresh sign-in for a configured login that gives no token, treats macOS's git stub as missing, logs in to the dashboard it was given when the saved login is another's, and always names the PATH line; Connect: a new write or an edit clears Saved, the switch keeps a 60x40 tap area, the start hint sits outside the row button in a live region, and the mock keeps room to approve a login (extra states behind ?states=1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:31:53 +01:00
David MannandClaude Opus 5.5 fcaf996ac3 Connect page without a Task Runner: only the setup steps and the MCP Connector (a login waiting for approval still shows its card)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:18:22 +01:00
David MannandClaude Opus 5.5 5cece8f7d5 Connect page: Overview and Setup guide are two views (/connect, /connect/setup), switched with chips as on the merge queue; the guide view holds only the setup steps
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:16:04 +01:00
David MannandClaude Opus 5.5 efb72d3522 Connect page is headed Connect your Agents; the setup steps follow My settings at once without a Task Runner, else a link beside the heading opens them
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:11:30 +01:00
David MannandClaude Opus 5.5 f6112f27da Smaller switch (28×16, was 44×24) across the dashboard; the tap area stays
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:08:44 +01:00
David MannandClaude Opus 5.5 984aa99cd5 Connect page: roomier Task Runner rows (badges, details and errors on an even rhythm; busy count beside the caret); an open row's details sit under a divider, no focus frame on click
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:07:21 +01:00
David MannandClaude Opus 5.5 c33f48ae41 Connect page: My settings first with Saving…/Saved in its header, then the Task Runners, then the setup steps in a block of their own
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:58:19 +01:00
David MannandClaude Opus 5.5 84ebdf44f1 Connect page: the setup steps are always the same and always shown, below the user's Task Runners; a runner not started or stopped says so in its row
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:47:28 +01:00
David MannandClaude Opus 5.5 d62106e551 Connect page: the Run step defaults to autocraft work in a terminal (One call, Always on as the others); links to the model call queue and the model calls
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:44:41 +01:00
David MannandClaude Opus 5.5 054ba2796d Connect page keeps the setup steps in view for a Task Runner that never reported in; a stopped one names how to start it
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:33:40 +01:00
David MannandClaude Opus 5.5 ef44959def Task Runner 1.3.4: autocraft setup finds what the machine lacks and installs it, asking first
setup checks the platform, bubblewrap, git and tar, whether a sandbox starts (with a
bwrap-only AppArmor profile when Ubuntu restricts user namespaces), Claude Code (native
installer; the snap and VS Code's own copy are named but cannot be mounted), its login,
the harness login and the dashboard login. Each fix is shown with its command and runs
only after a yes (--yes: all); without a terminal it only lists them. It ends with doctor,
which now names setup when a check fails. The Connect page's install line runs setup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 11:24:51 +01:00
aiongg 3be30d9bfe User-local planner: no Claude job for a repo no Task Runner takes (reason "No Task Runner takes <repo>" on the stage status, Next items and the queued job); a queued job without a taker holds no repo of step_parallel and none of the daily limit; wait registered 2026-11-20 06:54:42 +00:00
aiongg 1d00aa2d52 Backlog on an item: answers its open question, or holds it with an answered backlog decision that Reopen and Undo delete; item page and Queue row menus, item backlog CLI, Flow counts it under Backlog 2026-11-20 05:08:54 +00:00
aiongg 52397d7179 Connect page: Task Runners first as compact rows with per-row details, setup steps folded once a runner exists, approval only through ?runner=, compact My settings with My repos folded, MCP Connector token form behind New token and snippets behind How to connect 2026-11-20 04:20:32 +00:00
aiongg f358c37234 Merge cli-server: Task Runner credential scopes for the agent CLI and answering
# Conflicts:
#	docs/operations.md
#	src/dash/api/runners.ts
#	src/remote/device-login.ts
#	web/src/api/client.ts
#	web/src/api/http.ts
#	web/src/api/mock/mcpMock.ts
#	web/src/modules/connect/Runners.tsx
2026-11-20 03:26:27 +00:00
aiongg f36de0b9c7 Task Runner credentials carry scopes: Agent access opens /mcp, answering adds the answer tools; set at approval and on each runner row of the Connect page 2026-11-20 02:37:02 +00:00
aiongg f67faa875f Task Runner logins: start limit and pending cap per address (IPv6 by its /64) with a high global backstop; approving a login from another address requires otherMachine 2026-11-20 02:30:33 +00:00
aiongg 71b7e7795f Protocol header names the Task Runner autocraft; queue view counts runners on autopilot 2026-11-20 02:13:51 +00:00
aiongg 0309fe857d Connect page with the MCP Connector, Task Runners and their device-login approval, and Manual only; model call queue with picks for the user's Task Runner; token kind on Access 2026-11-20 02:06:14 +00:00
aiongg ccc8c21eba Runner split foundation: protocol 4 shapes and device-login types, token kind and runner_logins schema with the one-time token split, remote-queue topic, API types 2026-11-20 01:52:38 +00:00
aiongg 96dabecf96 My repos lists every repo without a scroll box 2026-11-20 00:00:02 +00:00
aiongg cea8a3ce5b My repos picker on the Connect page is an alphabetized checkbox list in a scrollable box 2026-11-19 23:54:03 +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