Commit Graph
1026 Commits
Author SHA1 Message Date
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 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 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 03299f17b5 Tests keep the diff cache in their own scratch directory, so concurrent test processes stop reading and dropping each other's cached diffs 2026-11-20 02:45: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 82a906f01b A pick stops counting while its picker is cooling off or at their Max calls at once, in the claim order, leaseCall and picks alike 2026-11-20 02:32:51 +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 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 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 e66087033b A claim leases nothing once shutdown or its client's leaving answered it, even with a try in flight; the client's leaving is watched before the body is read 2026-11-20 02:28:32 +00:00
aiongg f7a58d0604 A held claim leases nothing once its runner credential is removed, expired or its user's role changed; long-poll test uses the kind-aware createToken 2026-11-20 02:17:23 +00:00
aiongg 970cfa8e8e Merge rs-t3: long-polling claims 2026-11-20 02:15:44 +00:00
aiongg bbbbe23ef3 Long-polling claims: a protocol 4 claim with nothing to take waits up to its hold for a call, woken by the remote-queue topic; shutdown answers held claims before closing; X-Held-Ms; rig scenario 7 2026-11-20 02:15:04 +00:00
aiongg ca956c2e5e Merge rs-t4: model call queue, picks and Manual only
# Conflicts:
#	src/dash/api/admin.ts
#	src/dash/api/index.ts
#	src/dash/api/user-settings.ts
#	src/health-checks.ts
#	src/remote/calls.ts
#	src/remote/room.ts
2026-11-20 02:12:06 +00:00
aiongg 2013dc030a Merge rs-t2: Task Runner autocraft 1.3.0 2026-11-20 02:11:20 +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 c2436690f9 Model call queue view, Run on my Task Runner picks and per-user Manual only: claim order with picks, compare-and-set picks with a pick-minutes setting, room and health checks without Manual only runners, remote-manual check, waits and audit entries 2026-11-20 02:07:32 +00:00
aiongg a9bb9fb6f3 MCP Connector and Task Runner credentials: kind-aware tokens, device login for runners, /api/runners session routes, connector tokens refused on runner routes and runner credentials on /mcp, MCP server named autocraft 2026-11-20 02:04:55 +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 e37049e913 Merge PR #17: a red integration batch is worked out without a model (red on main, trace, one rerun after CI finishes, then split) 2026-11-20 01:34:31 +00:00
aiongg c3417353c9 Merge PR #16: MCP merge-queue tools for operators' agents, with answering-token gating, via mcp audit rows and staff-only batch summaries 2026-11-20 01:34:31 +00:00
aiongg 5622b7d2ea Batch rerun waits for in-progress CI runs and skips the wait when refused; register the waits; show batch-rerun and batch-blame; drop and red respect an operator-stopped batch 2026-11-20 01:33:35 +00:00
aiongg d31e8386f3 Merge queue MCP tools: queue_pr and cancel_queued need an answering token and write access, audit rows carry via mcp, viewers get no batch summary, finished queue rows skip the queue page 2026-11-20 01:32:45 +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 d77fb3d7ea Merge branch 'rb-t6-load' into rb-int
Lease tombstones, old lease drops and spent cool-off rows go with the
minute maintenance (pruneRemote); requeue and unlease drop the cached
queue order; the liveness stamp uses the helper routes' connection.
2026-11-19 23:23:40 +00:00
aiongg fdcee99b18 Merge branch 'rb-t2-lease' into rb-int
# Conflicts:
#	test/remote-tools.test.ts
2026-11-19 23:21:22 +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 664f12ae8b Keep the dashboard light under many helpers: seen_at every 30 s, remote maintenance on a minute timer, a short busy timeout with 503 on the helper routes, a cached queue order with authors stored at enqueue, per-token limits and the trusted proxy depth 2026-11-19 23:18:30 +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 325d7b6529 User-local lease lifecycle: outage-aware expiry, time limit from the run, idempotent claims, tombstones, failed replies requeue, cool-off per login
The dashboard stamps its liveness every 5 s; job processes expire leases only while
it serves, and for missing heartbeats only after it served the whole idle window.
After a gap every lease's heartbeat, claim and run start move forward by the gap.
A token's drops count at most once in 10 minutes.

The time limit counts from the first running heartbeat; preparing may last 15 min.
A claim repeated with its request id within 5 minutes gets the same reply (kept in
the dashboard's memory; after a restart the orphaned lease goes back unused).
Ended and requeued leases keep their secret hash, so every lease route answers 410.
ok:false requeues with the next attempt and skips that login; a repeated accepted
submit is accepted again. Cool-off is per login, counts drops and 5 failures in a
row within 30 min, and is cleared by login.
2026-11-19 23:16:13 +00:00
aiongg 8ebd21df09 Merge branch 'rb-t1-net' 2026-11-19 23:12:14 +00:00
aiongg eb1f243c3a Merge branch 'rb-t4-usage' 2026-11-19 23:12:14 +00:00
aiongg b37c3cf23b Merge branch 'rb-t7-tools' 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 8e888f378f Tool serving stays off the dashboard's event loop: reference vectors cached and scored in a worker thread, snapshot handle cached, async git, tarball limiter, semaphore and disk cache 2026-11-19 23:07:02 +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 9b7b69a1cb Helper claims read write permission through the GitHub App installation, cached 60 s per login and repo, without a dashboard session 2026-11-19 23:05:28 +00:00
David MannandClaude Opus 5.5 fde8571ef3 Batch trace: Windows panic paths and relative work/ paths, one base for a drop's batches with suspects first, unreadable results wait out the rerun
A panic path may start with a drive letter; only an absolute path loses a runner checkout prefix. The batches a trace starts
are built on one fetched head, and the suspects start before the rest, so a full house defers the rest, never the tests
alone. After the rerun, results that cannot be read count as not fresh: the batch waits until the deadline. The fake
default branch follows setMain, and the rebuild test checks the new base.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 00:03:24 +01: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 eeb45653f8 A take-fix Opus review whose fixes sit only on its code-wrong claims is kept with those fixes instead of rejected 2026-11-19 22:35:56 +00:00
aiongg 2f940fd344 A fix turn gets 3 turns, so a tool call the model makes despite the instruction is denied and answered instead of ending the turn 2026-11-19 22:31:52 +00:00