Commit Graph

1708 Commits

Author SHA1 Message Date
Dotta 6ae2dc5de7 Preserve runner process start time across controller recovery
Use the verified remote process marker and adopted process identity when reporting runner process metadata, rather than the creation time of a replacement controller transport.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 14:25:05 -05:00
Dotta 14163ef057 Settle remote recovery verification failures and retry with remote authority
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 13:17:45 -05:00
Dotta 6596b09e37 fix: verify and adopt native sandbox runners after app restart
Keep remote recovery out of host PID classification. Verify the exact remote state and process before adoption, preserve the controller journal on unavailable evidence, and retain local restart behavior. Cover externally owned state across real controller restarts.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 13:01:08 -05:00
Dotta 7ea9c1b611 test(server): bind request fixtures to explicit loopback
Wait for the asynchronous loopback bind before dispatching Supertest requests. Avoid wildcard ephemeral ports overlapping existing localhost listeners on macOS.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 10:08:02 -05:00
Dotta cc4f0069d2 test(server): stop runtime fixture processes during teardown
Terminate tracked runtime services after each workspace-runtime test so manual-lifecycle fixtures do not leak listeners into later test runs.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 09:25:02 -05:00
Dotta 0bdf023db9 test(server): seed ancestry cleanup before the sweep boundary
Keep delivery and concurrent-sweep assertions independent of database timestamp precision. Explicit timestamps in rotation tests remain unchanged.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 08:50:57 -05:00
Dotta 97231edb81 fix(server): retry idempotent sandbox root preparation
Retry transient transport failures while ensuring a work-folder root exists. Preserve bounded attempts, directory confinement, and single-attempt handling for other mutations.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 08:28:53 -05:00
Dotta 6444ddb87e test(server): install route mocks before loading services
Keep service mocks hoisted and reuse the loaded route modules across cases. Include captured route exceptions in failed status assertions so intermittent HTTP 500s are diagnosable.

Co-authored-by: Paperclip <noreply@paperclip.ing>
2026-09-10 08:03:20 -05:00
Dotta 27e6099127 fix(sandbox): block invalid repository setup before continuation
Classify required repository preparation failures as workspace validation blockers and retain completed checkouts for explicit retry. Do not schedule interaction infrastructure retries for these failures.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 07:32:58 -05:00
Dotta 04242dd77e Verify native recovery lease ownership before settling cancellation
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 04:39:00 -05:00
Dotta c197ac37d9 Preserve native cancellation through failure recovery and sandbox teardown
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 04:31:48 -05:00
Dotta c7e4d3db68 Use one HTTP listener for the concurrent Git scan load test
Keep all 500 requests, shared-scan bounds, and health latency assertions while avoiding hundreds of temporary Supertest servers. Always settle requests and close the owned listener on failure.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 03:12:05 -05:00
Dotta 5acb4274cb Honor operator cancellation before immediate task recovery
Reuse the periodic recovery policy so an operator-cancelled run does not immediately dispatch a replacement and resume its sandbox. Keep explicit deferred wake promotion intact.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 02:50:57 -05:00
Dotta 1caad1bf9e Fence legacy sandbox dispatch against startup cancellation
Reconcile persisted cancellation with newly registered scopes, check cancellation before dispatch, and preserve external child termination signals.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 02:01:58 -05:00
Dotta 066b4f0160 Stop legacy sandbox execution before completing cancellation
Bind remote CLI and ACP processes to host-owned cancellation scopes, wait for teardown and final saves, and distinguish deliberate bridge shutdown from transport loss.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 01:51:04 -05:00
Dotta 8cee86df73 Bound parallel reads during sandbox folder hydration
Open up to sixteen response streams while keeping queued bodies paused and preserving ordered publication and cleanup. This addresses the storage-response waits measured on cold staging runs.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 01:30:10 -05:00
Dotta bad9d3f9d2 Preserve remote process identity in legacy adapter dispatch
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 00:05:51 -05:00
Dotta 311f71954e Keep warm sandbox performance spans in the current run trace
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-10 00:00:48 -05:00
Dotta d619dd85b8 fix(sandbox): resume leases with their effective provider configuration
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 23:14:53 -05:00
Dotta 3f7cbb4f97 fix: fence finished run process identity against late native callbacks 2026-09-09 22:18:32 -05:00
Dotta a7108016b3 perf: overlap small repository checkpoint uploads within bounded lanes 2026-09-09 18:06:38 -05:00
Dotta f98fb8059e Fence sandbox cleanup across warm run ownership transfers
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 16:18:20 -05:00
Dotta 4cd6a81e4a Measure sandbox lifecycle and align qualification provider packs
Add opt-in bounded OpenTelemetry diagnostics across host preparation, scoped files, repository checkpoints, transport phases, and native execution. Preserve context parentage and stream cleanup, and retain diagnostic batches without per-file log writes.

Build qualification packs through the canonical frozen provider stage so lockfile, interpreter, and compiled bytes match the sandbox image. Keep ignored untracked repository files out of durable checkpoints.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 15:31:15 -05:00
Dotta daf1d64b20 fix: recover transient sandbox file transfer failures safely
Retry bounded read-only transport failures and resolve uncertain bulk writes through atomic signed receipts without replaying claimed batches.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 13:17:11 -05:00
Dotta ffb01ff3d5 fix: tolerate transient sandbox Git credential transport delays
Honor the native duplex opt-in and align repeat-safe credential acquisition with the file bridge response budget, without retrying Git commands.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 12:19:39 -05:00
Dotta 2d95eef2ba test: use a valid OpenCode provider model in pack reuse coverage
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 11:34:27 -05:00
Dotta d3257a3340 fix: reuse verified provider packs across equivalent builds
Normalize the provider-pack layout independently of runnerd build order and compare verified content rather than revision provenance, avoiding unnecessary multi-gigabyte uploads.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 11:29:58 -05:00
Dotta a31eba2381 fix: retain legacy plugin login output during session binding
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 11:29:49 -05:00
Dotta 1e608d78fc fix: batch sandbox file transfers and reconcile interrupted hydration
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 10:38:21 -05:00
Dotta e511a1ce93 fix: retry interrupted work-folder uploads with verified fresh streams
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 08:40:44 -05:00
Dotta 7508f1b6a0 test: distinguish recovered cache saves from unresolved failures
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 06:38:02 -05:00
Dotta a72fd32191 test: isolate workspace eligibility fixtures from clock precision
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 05:19:03 -05:00
Dotta 17ddb89618 Preserve reusable sandboxes through failed resume and stop 2026-09-09 02:31:27 -05:00
Dotta 6fee0c3b4c fix: use the new run deadline while claiming a retained sandbox
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 01:47:49 -05:00
Dotta de60e9f6c2 fix: claim sandbox ownership before resume and preserve legacy launch profiles
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 01:44:00 -05:00
Dotta 6382f4e8fa fix: wait for task sandbox release before follow-up acquisition
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 01:35:25 -05:00
Dotta b820a6d884 fix: stage the resolved server runner artifact for sandbox upgrades
Use the same controller-owned runner file for identity and remote staging, including packaged server vendor layouts.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 00:50:36 -05:00
Dotta 1ca638736a test: verify explicit native credential process rotations
Record controller-owned rotation events and require an exact run transition before accepting a new process fingerprint. Preserve stable sandbox, runner and provider-session checks.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 00:23:55 -05:00
Dotta a24d331c41 test: require explicit final checkpoints in warm qualification
Expose the existing finalization timestamp through the scoped sync API and reject periodic-only or out-of-run saves.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-09 00:06:05 -05:00
Dotta 761ac12cc0 fix: preserve native warm attachment across runner upgrades
Accept bounded Codex deprecation notices after a settled turn and require that capability before reusing a sandbox image runner. Stage replacement artifacts atomically so existing launchers and image symlink targets survive interrupted uploads.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 23:20:23 -05:00
Dotta 777d891c25 test: stabilize startup checks and document shutdown drain requirements
Mock the native shutdown boundary in the startup unit test and wait for the persisted process identity before allowing the runtime readiness fixture to listen.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 22:02:28 -05:00
Dotta c7b68b52b0 fix: preserve sandbox credentials and Git state across restarts
Park idle native sandbox sessions before app shutdown, adopt retained legacy workspaces without restaging Git, and carry explicitly bound GitHub access through both OpenCode launch filters.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 21:49:19 -05:00
Dotta 816045d643 Keep finalization failures stable and recover valid older leases
Validate paginated legacy lease candidates before choosing a workspace, preserving Postgres timestamp precision. Recover failed saves through a new authorized run and cover post-save finalization failures without replaying terminal cleanup.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 20:25:41 -05:00
Dotta e60c6099c5 Preserve unbound legacy workspaces and contain failed final saves
Bundle the task disposition helper with the installed Paperclip skill. Retry transient read-only file transfers within a fixed deadline and retain sandbox RPC caller provenance for staging failure diagnosis.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 20:15:56 -05:00
Dotta f4a4916216 Preserve existing sandbox work after failed runs
Recognize dispatched pre-folder runs and v1 leases while excluding new scoped preparation failures from the compatibility path.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 19:32:16 -05:00
Dotta fbf2494104 Preserve existing sandbox workspaces across work-folder upgrades
Keep established tasks on their original filesystem and session layout. Recover version-1 lease identity from host run records, preserve configuration checks, and retain old work when ownership or resume cannot be verified.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 19:27:56 -05:00
Dotta 14151ff69f fix: preserve sandbox tool environments and incoming file versions
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 18:02:00 -05:00
Dotta 97bf34eb60 Exclude private nested repositories before checkpoint path validation
Reproduce Codex plugin-cache repositories with real Git and preserve private-runtime exclusions before validating directory entries.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 17:24:04 -05:00
Dotta 22d61006b9 fix: retain periodic checkpoint timestamps after failed final saves
A failed final flush does not erase an earlier successful periodic checkpoint. Cover interrupted continuations and replacement sandboxes for both saved and failed prior runs.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 16:42:20 -05:00
Dotta b8d003baff fix: keep prior saves visible after interrupted sandbox runs
Report incomplete terminal saves without hiding the latest successful checkpoint, including same-sandbox continuation and replacement failures.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-08 16:41:32 -05:00