feat(claude): enable verified native conversation rewind - #535
Merged
Conversation
|
Deployment failed for project pylon-marketing with the following error: Learn More: https://vercel.com/pylon-code?upgradeToPro=build-rate-limit |
Contributor
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claude could not safely use Pylon's rewind actions through relative turn counts. Eligible completed turns now capture immutable inclusive native forks and support the existing restore-files/keep-files saga, idempotent application, compensation and same-incarnation restart recovery.
Full bounded raw JSONL proof includes hidden context omitted by the SDK message projection. Only source-verified fork metadata is normalized. Scoped file identity checks, a 64 MiB cap and a 30-second proof deadline reject ambiguous or changed history. Source capture quarantines native queries and delayed callbacks before returning its receipt; private recovery metadata preserves the complete selected native conversation.
Native limits remain explicit: empty roots, uncaptured or previous-incarnation checkpoints, pending native work, unsupported history transformations and boundaries removed by compaction remain unavailable. Ordinary resume is preserved. Tests use actual pinned SDK filesystem forks with synthetic temporary history and fake query streams; no live Claude account/model request was performed.
Validation: independent adversarial exact-head SDK/adapter review; 160 focused tests, server typecheck and scoped lint from the saved implementation. All six Claude implementation/test files remain byte-for-byte identical to that reviewed scope. Integration preserves Codex/OpenCode absolute capability settings and passed 135 combined service/capability tests, server types, scoped lint and the server unused-export check. Final-head CI is required before merge.
Part of #526, completing the Claude extension of #513 for upstream fd5553f1afcef4f410a067687faa991743b5034c and efccda9ac9230db22b36990cffabdad218fa41b0. The compact ledger records all reopened exceptions and advances the decision cursor to frozen d1d15c67f4a5fb82fd8d5e01e5e3b288296789c3, whose sidebar source landed in #527. This cursor records authorized dispositions, not universal native compatibility. Automatic merge CI and relay deployment are tracked separately before cycle closure.
Model: GPT-6. Harness: Codex.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.