Commit Graph
432 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 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 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 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 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 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
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 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 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
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 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 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 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 d78b32c860 User-local mode: six-hour cool-off for a token whose leases are lost three times in two hours, and a minimum effort per tier that a claim must declare 2026-11-19 20:46:11 +00:00
aiongg 90b34001e6 Reserve inputs save on blur or Enter; helpers list follows the remote-helpers live topic 2026-11-19 20:40:36 +00:00
aiongg f24c96e36d Connect page: My settings (keep-free reserve) and My helpers sections, with client API and mock data 2026-11-19 20:40:04 +00:00
aiongg 043863c4b7 Dashboard for the user-local inference mode: connect page setup, inference settings, run attribution, cost by user 2026-11-19 18:01:14 +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 9fba628330 Merge #9: Live board on Home, Items and Home use the merge queue's table, one column per check, instant tooltips 2026-11-17 15:39:16 +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
David Mann c41505954f Home opens with a Live board: running and queued work on one time axis, with what each job ran and how long it usually takes
GET /api/live gives running, queued and lately ended jobs (and calls or build tasks of their own) with their model calls and build steps, and the median and 90th percentile of earlier runs of the same work. The board draws them on a shared axis: solid done, pulsing running, dashed the expected rest, a red line where 90% of earlier runs were done. It replaces the Live feed section on Home.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:16:40 +01:00
David Mann fc017055df Items rows carry the author, the issues a PR closes and its merge checks; a peek endpoint gives one item in brief
GET /api/items/status rows add author, closes and checks (review, CI, Verify, mergeability, size, our build) for PRs the plan holds a queue view for, veiled as in the merge queue. GET /api/items/:repo/:n/peek returns an item's title, author, labels, status and closes for hover cards.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 00:01:15 +01:00
David MannandClaude Opus 5.5 7a72c2ed01 Needs you badge counts the picked project on pages without one, so it no longer jumps when opening Needs you
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 21:02:39 +01:00