Commit Graph
1958 Commits
Author SHA1 Message Date
DottaandPaperclip ad0b7105f3 fix: complete built-in sandbox stop-only cleanup
Give the built-in fake provider an explicit non-destructive stop operation and preserve its recorded identity through generic stop intent and restart recovery. Keep plugin capability enforcement unchanged.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-28 00:39:51 -05:00
DottaandPaperclip ea10ee8994 fix: require stop-only cleanup for every retained sandbox
Persist generic stop intent before provider dispatch, use the exact pinned StopLease capability for release and restart recovery, and retain saved allocations when capability or stop confirmation is unavailable.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-28 00:26:30 -05:00
DottaandPaperclip d884e1ab04 fix(runtime): release copied work after any committed terminal result
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 23:16:43 -05:00
DottaandPaperclip 821ffc9b66 fix(runtime): preserve ephemeral work after export failure
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 23:06:23 -05:00
DottaandPaperclip 2bedd0f23b fix(runtime): recover earlier export cleanup intents safely
Version new plugin-pinned intents and recover v1 from the exact lease recorded plugin without driver-key fallback or accepting mismatched explicit pins.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 22:07:41 -05:00
DottaandPaperclip 47d435b762 fix(instructions): enforce scoped authority for peer reads
Require configuration-read grants or strict responsible-user target edit authority before exposing peer instruction content, history, and candidates. Preserve self, board, authorized delegated edits, and external host restrictions. Read decisions do not consume or bypass write consent.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 22:04:32 -05:00
DottaandPaperclip a3fc644557 fix(runtime): bind export cleanup to its recorded provider plugin
Refuse a duplicate driver key or unavailable original plugin during stop-only recovery; preserve the pending intent and fence later provider rebinding.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:59:04 -05:00
DottaandPaperclip f1f956714a test(instructions): use shared directory snapshot iterator
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:52:43 -05:00
DottaandPaperclip 0d19602fae fix: refresh managed agent ownership after plugin reinstall
Hard uninstall removes plugin bindings but preserves the managed agent and its instruction history. Revalidate the registered stable-key declaration and refresh provenance atomically when relinking, so explicit reset can use its canonical revision authority.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:52:13 -05:00
DottaandPaperclip ceecff9884 fix(instructions): retain completed receipts during retry staging
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:50:10 -05:00
DottaandPaperclip 2718f38457 fix(recovery): reject orphaned export activity after controller loss
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:49:08 -05:00
DottaandPaperclip 73c590d7de fix(runtime): retain resumed exports through failed admission
Record exact stop-only cleanup intent before provider resume, compensate failed admission, and recover interrupted cleanup without destroying saved work.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:49:08 -05:00
DottaandPaperclip 2e5c2908cc test(instructions): inspect streamed Git path manifests
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:47:26 -05:00
DottaandPaperclip b731bc056d test(instructions): verify canonical database bytes in native assets
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:38:40 -05:00
DottaandPaperclip 22dd967e03 fix: restore managed plugin entry without deleting history
An explicit stock reset now compares the observed configured entry and target revision, preserves earlier entry history, and restores the declared canonical entry atomically. Retained historical entries do not masquerade as stock drift.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:38:40 -05:00
DottaandPaperclip afcbfe1335 fix: preserve canonical history on managed plugin reset
Record explicit managed-agent instruction resets through the canonical revision CAS path under exact plugin ownership and capability checks. Preserve prior content and plugin audit identity without synthetic user authority.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:38:40 -05:00
DottaandPaperclip 7bed702b59 fix(instructions): refresh canonical content at safe run boundaries
Use the committed database snapshot for native instruction bundles when disk projection is stale. Restage completed stopped working copies from the current head, while preserving live warm owners and original CAS fences for uncollected edits. Cover native stale projection, repeated stopped retries, resolved candidates, and no silent rebasing.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:38:40 -05:00
DottaandPaperclip 2321ddd573 fix(recovery): project exact native run activity across task views
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 21:38:40 -05:00
DottaandPaperclip 1c4dbec4b0 fix: separate journal proof queue and execution budgets
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:48:50 -05:00
DottaandPaperclip a450a48be4 fix(runtime): await bounded journal proofs with ownership rechecks
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:32:26 -05:00
DottaandPaperclip 8976f3d25c test(runtime): qualify near-limit bounded journal frames
Exercise a 190 MiB journal made of individually bounded event frames and document off-thread proof quotas, retained evidence, and nonblocking file admission.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:32:26 -05:00
DottaandPaperclip cfc3e6805c fix(runtime): retain only journal authority evidence
Project ordinary semantic outputs and unused event headers away while preserving completion, process, and warm-transition authority. Account retained JSON bytes rather than discarded parser work, and open proof inputs without blocking on special files.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:32:26 -05:00
DottaandPaperclip 77ebe7829e test(runtime): reject FIFOs before journal worker deadlines
Exercise both scan and projection through a warmed real worker. Verify a writer-less FIFO is rejected and close completes, with a controlled finally writer release so the pre-fix blocking-open regression cannot strand CI.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:32:26 -05:00
DottaandPaperclip 6f07e711ec fix(runtime): isolate journal proof work in a bounded worker
Use one off-thread proof reader with a bounded queue, monotonic deadlines, heap limits and joined termination. Preserve raw hashes and canonical base64 fingerprints, and prove event-loop responsiveness on a 190 MiB journal.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:32:26 -05:00
DottaandPaperclip 6e525a7b92 fix(runtime): bound durable journal proof memory
Stream proof reads through a fixed buffer, retain only authority evidence, and preserve full-file digests and warm-transition fingerprints. Fail closed when essential evidence exceeds the bounded projection budget.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 20:04:24 -05:00
DottaandPaperclip e36e59c712 fix: resume exact sandbox lifecycle for export repair
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 19:54:44 -05:00
DottaandPaperclip 185238b172 fix: repair retained workspace exports without replaying provider work
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 19:33:16 -05:00
DottaandPaperclip 69549d4248 fix(api): document preserved instruction candidate endpoints
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:55:53 -05:00
DottaandPaperclip 14c3d810c9 test: admit active coordinator in combined export fixture
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:46:03 -05:00
DottaandPaperclip d0d0003d51 fix: recheck native recovery admission under workspace ownership
Preserve terminal unsafe-archive repairs and future retry delays when an earlier reconciler snapshot enters after the live owner releases copyback.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:45:59 -05:00
DottaandPaperclip ffac79eb55 test: seed instruction drift fixture without versioned writer bypass
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:33:40 -05:00
DottaandPaperclip 4340f51e16 fix(instructions): persist registered edits after provider shutdown
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:33:40 -05:00
DottaandPaperclip 3943048383 feat: review and resolve preserved agent instruction edits
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:33:11 -05:00
DottaandPaperclip 5b8dd74c08 feat(runner): expose canonical instruction revision tools
Add native read, update, history, and restore operations with server-bound identity and revision compare-and-swap safety. Register the default catalog and API discovery paths; cover real authority authorization and exact revision restore.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:32:34 -05:00
Fry (Paperclip) 7dfb327bb7 feat(instructions): persist canonical revisions with authorized history and restore
Implement PAP-66 foundation: exact content history, transactional compare-and-swap saves, current responsible-user authorization, recoverable materialization, and editor history. Keep run staging and cleanup integration with PAP-63.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:32:34 -05:00
DottaandPaperclip c2c9996e81 test: match ownership fixture callback and acquired result
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:31:36 -05:00
DottaandPaperclip b727a5659d test: compose unsafe export fixture with finalization ownership
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:28:32 -05:00
DottaandPaperclip 9e3b48fc0c test(runner): persist regression journal through public control-plane API
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:28:32 -05:00
DottaandPaperclip d02e0f45e7 fix: preserve agent-owned native result recovery
Keep settled and foreign-owner failures fenced while allowing audit-only malformed-result outcomes to materialize their existing bounded recovery action.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:26:54 -05:00
DottaandPaperclip c5b2a16a28 fix: recover joined workspace ownership after database reconnect
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:26:54 -05:00
DottaandPaperclip 51f200243f fix: require copyback stop proof after abrupt controller death
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:26:54 -05:00
DottaandPaperclip 2b745708bd fix: serialize native workspace finalization and preserve committed outcomes
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:26:54 -05:00
DottaandPaperclip 372823f0f7 fix(runner): accept valid large journals during session continuation
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:25:16 -05:00
DottaandPaperclip 3564925508 Bound saved API text pages with authenticated storage ranges
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 18:25:16 -05:00
DottaandPaperclip f1ced64df0 fix(runtime): stop retrying unsafe native workspace archives
Preserve the accepted result and retained sandbox, distinguish repairable unsafe paths from missing sandboxes, and keep transient copy-back failures retryable.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 16:03:53 -05:00
DottaandPaperclip c2744f77b4 fix(runner): read saved API responses in bounded text pages
Keep large response artifacts inspectable through the existing authenticated API route. Preserve company and run authority, UTF-8 boundaries, and transfer limits. Reproduce the artifact loop through real HTTP and add an explicit full-stack fixture.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 16:03:15 -05:00
Paperclip 6131a5858f test(workspaces): stream Git output in bootstrap retry fixture
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 16:00:45 -05:00
Paperclip fab666b131 fix(runtime): preserve restore conflicts and reserve manifest disk space
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 16:00:45 -05:00
Paperclip 38441fb2e0 fix(runtime): stream workspace snapshots through disk manifests
Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 16:00:45 -05:00
Devin FoleyandPaperclip be43c23e2d fix(recovery): preserve pending native result finalization (#14219)
Preserve native coordinator ownership while accepted results await workspace
copy-back, assessment, or arbitration. Check that ownership in the terminal
update so a coordinator recorded after the liveness read is also protected.
Keep terminal task authority and exhausted-retry cleanup unchanged.

Validation: 28 focused recovery tests, local typecheck/build, 52 passing CI
checks, and Greptile 5/5 with no open findings.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-09-27 00:22:49 -07:00