Commit Graph
42 Commits
Author SHA1 Message Date
aiongg 2c70dab4e5 Shorter autocraft help: the groups and two lines; details in help --all 2026-11-20 04:16:10 +00:00
aiongg 1719a72d9a Task Runner 1.3.3: commands in groups (setup, runner, inbox, queue, calls) mapped to server tools, raw access through call; MCP tools list_model_calls, pick_model_call and unpick_model_call 2026-11-20 04:15:10 +00:00
aiongg 3315192ee1 Task Runner 1.3.2: service install and doctor note when lingering is off; the migration lock goes before the old unit's stop and a dead process's lock is taken over 2026-11-20 03:37:52 +00:00
aiongg db610a270d Envelope detection needs a known encoding; repeated proxy blocks on claim back off; the CLI names a proxy's HTML refusal of /mcp; viewers cannot grant agent access 2026-11-20 03:32:00 +00:00
aiongg b1f6c583b8 Worker LoginStart typedef carries scopes; agent commands and login scopes in the Task Runner command docs; usage example names a real tool; address-check test sends the approval scopes 2026-11-20 03:27:51 +00:00
aiongg 7299202bc7 Merge cli-worker: Task Runner CLI for the agent tools, login scopes 2026-11-20 03:26:27 +00:00
aiongg 3017ca64ee Task Runner 1.3.1 sends POST bodies gzip+base64-encoded when the server lists the encoding, retries HTML 4xx replies from a proxy as outages; the server accepts encoded bodies on every runner route; a call lost repeatedly counts once toward a login's cool-off 2026-11-20 03:17:25 +00:00
aiongg d39e92a16c Task Runner CLI: the server's agent tools as commands (tools, guide, help, call, <tool>), login scopes 2026-11-20 02:32:27 +00:00
aiongg 0c8d05929b Runner migration starts the new autocraft unit before it disables and removes the old one; a failed start leaves the old unit as it was 2026-11-20 02:28:32 +00:00
aiongg 8fcf84bb23 Task Runner autocraft 1.3.0: rename from autocraft-task with a shim at the old path, device login, long-poll claims with protocol 3 fallback, migration of 1.2.0 installs 2026-11-20 02:10:06 +00:00
aiongg cbb212fde7 Merge branch 'rb-timescale' into rb-int
# Conflicts:
#	src/remote/calls.ts
#	worker/autocraft-task.mjs
2026-11-19 23:52:03 +00:00
aiongg 2b28a23aa4 Test-only time scale for the user-local mode (AUTOCRAFT_REMOTE_TIME_SCALE) and a --time-scale option in the load rig 2026-11-19 23:50:40 +00:00
aiongg d0a85d75cd Review fixes for the user-local robustness batch
- A tarball archive is cached only when the copy was written in full.
- Claim permission reads use the helper routes' short busy timeout.
- A 404 from the app's permission check falls back to the session
  instead of counting as no permission.
- The load rig reads cool-offs per login and the helper's last error.
- A lease that never had a heartbeat is no drop toward the cool-off;
  the helper resends a claim's request id after a failure in transit.
- A reply whose lease ended during the submit is answered 410.
- The fast lane is not counted as planner room.
- A follow-up waits on the helper that ran its parent call.
2026-11-19 23:46:06 +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 32e389eafe Merge branch 'rb-t3-super' into rb-int
# Conflicts:
#	docs/operations.md
#	worker/autocraft-task.mjs
2026-11-19 23:21:05 +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 e4bec39d8a Helper supervision: SIGTERM and SIGHUP stop like Ctrl-C, leases of dead runs are given back on start, service install runs work under systemd or launchd, a run's stop holds claims instead of ending the process, failed calls back off and hold as failing, one git fetch per bare repo across processes, bare repos and trees pruned by age and size, the harness output kept compacted, the canary retried in its own scratch slot, and a crashed helper's macOS harness group stopped before its slot is reused 2026-11-19 23:18:23 +00:00
aiongg 8ebd21df09 Merge branch 'rb-t1-net' 2026-11-19 23:12:14 +00:00
aiongg a76b360f2b Helper network layer: one retry wrapper for the claim and every lease route, heartbeats from the claim with phases, preparation errors release the call, a finished reply is never turned into a failure 2026-11-19 23:11:29 +00:00
aiongg 042f0bccfd Helper usage reads: one fetch at a time per machine, last good reading while a read fails, jittered hold re-check, login expiry in readiness 2026-11-19 23:06:11 +00:00
aiongg aaa9fae512 Protocol 3: claim request ids and the fast lane, heartbeat phases, helper slots, busy count and last error, the per-user call limit 2026-11-19 23:02:45 +00:00
aiongg f0fa4f4c63 review.opus and cifix.patch allow 40 turns; a run that uses them all fails as a turn limit, by name 2026-11-19 22:17:14 +00:00
aiongg a0864ae34c Helper comment names config.toml among the files removed from the Codex home 2026-11-19 21:05:25 +00:00
aiongg 59514ab617 Merge branch 'ul-cooloff' into ul-int; a cool-off is a helper readiness 2026-11-19 20:59:37 +00:00
aiongg 938d71fe68 User-local helpers keep a per-user plan-usage reserve: readers for Claude and Codex usage, pause and refusal holds, readiness reported to the server and counted by the planner's room 2026-11-19 20:56:00 +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 7561257d60 macOS helper: Claude Code's temp dir inside the slot, and the Keychain item recorded at harness time 2026-11-19 20:36:21 +00:00
aiongg c43d0447f5 Merge branch 'ul-macos' into ul-int
# Conflicts:
#	src/remote/calls.ts
#	test/autocraft-task.test.ts
#	worker/autocraft-task.mjs
2026-11-19 19:07:51 +00:00
aiongg ebde14d6c2 The user-local helper runs on macOS: sandbox-exec with a deny-by-default profile, one slot per parallel run whose path root the claim names, a canary before the first claim, Claude Code's Keychain login as an option, and a try command with a bundle script for testing 2026-11-19 18:59:00 +00:00
aiongg 15eaa6992b Remote runs record their tool uses: the helper reports them from the Claude stream or the Codex rollout, the server stores them on the run 2026-11-19 18:58:52 +00:00
aiongg fd1e6539ff Merge branch 'ul-codex2' into ul-int 2026-11-19 18:55:18 +00:00
aiongg 589b4feab8 Codex runs only on audited versions, and a call that used an unexpected tool fails
The helper refuses Codex versions outside 0.170.x (the lease is released without using an attempt; claim and
doctor say why). Each run is stopped at the first tool item in the --json stream other than an MCP call to the
call's own servers, and after the run the thread's rollout, which records every tool call, may hold only those
MCP tools and view_image; otherwise the call fails and its reply is not submitted.
2026-11-19 18:40:47 +00:00
aiongg 143d638663 Helper status files are private and lease files older than a day are pruned 2026-11-19 18:38:33 +00:00
aiongg 36019fcd7b The helper can use the login of a Claude config directory, read at each call and only while it outlives the call 2026-11-19 18:35:06 +00:00
aiongg a1f1e02468 Merge branch 'ul-codex' into ul-int 2026-11-19 18:27:07 +00:00
aiongg be01c2ba19 Codex adapter for the user-local helper
codex exec runs in the helper's bubblewrap sandbox with its own CODEX_HOME login (harness codex), its shell and
the other tools that reach past the task turned off, and reads through read-only file tools that the helper
serves to the run over localhost MCP, confined to the mounts. One Codex call at a time per helper, so refreshes
of its login never race. Codex has no tier defaults: the config names its models.
2026-11-19 18:26:29 +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 482f498563 Helper follows the merged wire format; the harness's cost reaches the run
The helper keeps a session when the bundle's keepSession says so, submits
usage per model id (explorer included) and the CLI's total cost, and gives a
lease back through the release route when the fault is its own: too old,
wrong platform, missing harness or token, file setup failure, or stopped by
the user. The work loop stops when it can take no call and pauses after a
release. Submit carries costUsd; the server stores it with the call's usage
and records it as the run's cost.
2026-11-19 17:54:45 +00:00
aiongg ef44151f43 User-local helper: autocraft-task claims model calls and runs them in a read-only sandbox
A single-file Node script with only node: imports. It claims calls with the
agent token, keeps each lease secret in a 0600 store keyed by lease id, fetches
the bundle, prepares git (bare-clone cache, trees keyed by repo and commit),
tarball and inline mounts without instruction files, writes the per-lease MCP
config, and runs claude in bubblewrap with the same fixed paths and clean
environment as the server's sandbox. Heartbeats carry the last progress line;
a 410 stops the run. Session stores are kept for three hours so follow-up
turns resume them. Commands: login, harness claude, claim, run [--detach],
wait, work [--parallel N], doctor and a stdio-to-HTTP MCP proxy.

The test checks stream-json parsing, instruction-file removal, the model swap
and that the helper's copy of the wire format matches src/remote/protocol.ts.
2026-11-19 17:44:39 +00:00