Repository navigation
Resume preview: a Load now rewind's anchor without lastPrompt cuts the chain (P5 O3-F residual B) - #292
Merged
Conversation
…t, cuts the chain (P5 O3-F residual B; LastPromptAnchorSchema's lastPrompt optional, so recentTurnsOf's leaf and withResponseGroups' replay honour it as the chain follower does) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
…r fixtures/p5 (master red since #289, whose gate ran probes only) Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
SSFSKIM
added a commit
that referenced
this pull request
Oct 28, 2026
…ixtures #289, CI #288 and #290; wire minor stays 5) replay-fixtures.test.ts: master's p4/p5 listing, which already reads O2's Stop-hook probe journals under fixtures/p5; its comment names both P5 sets. Master's wire is still 4, and the regenerated manifest is unchanged. Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
This was referenced Oct 28, 2026
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.
Fixes P5 O3-F's residual B (
spikes/protocol-probe/findings-p5-o3-rewind-resume.txt; P5 Decision Log 103). After a "Load now" rewind, the resume chooser's preview showed the rewound turn as the session's latest until the next prompt was sent.Cause. A resumed process that has taken no prompt writes its rewind anchor without
lastPrompt(the pre-release fixture's line 61:{"type":"last-prompt","leafUuid":…,"explicit":true,"rewound":true}).LastPromptAnchorSchemarequired the field, so both readers of the anchor skipped it:leafUuidOfinrecent-turns.ts, which picks the preview's leaf, andwithResponseGroups' replay, which recovers a parallel response's blocks. The release then appends a plain anchor that still names the rewound prompt (line 62), which neither reader treats as a cut. The chain follower parses anchors leniently and was already right.Fix.
lastPromptis optional. Nothing on the preview's path reads it: the preview takes its prompts from the chain's records. Once the anchor parses, the preview's leaf is the anchor's target, and the replay cuts there as the follower does. Terminal-started sessions (lane A) and MAWS-launched ones (lane B) both reachsession.recentTurns→readRecentTurns→recentTurnsOf, so this one change covers both.What the preview shows (pre-release arm,
recentTurnsOfover the recorded transcript):Rerunning the spike's MAWS-side replay (
p5-o3-rewind-resume-maws.ts) on this tree changes exactly four recorded snapshots: pre-release after the rewind, pre-release after the release, and the kill-after-rewind-200ms and -1s arms after the kill. In each of them the preview now equals the chain follower's (T1). Every other value inp5-o3-rewind-resume-maws.jsonis unchanged. The spike's recording and its probe test describe the defect as of the spike, so they are left as they are.Tests (each fails on master):
recent-turns.test.ts: the pre-release fixture, cut at each of the points in the table above.transcript.test.ts:withResponseGroupsrecovers a parallel response under a Load now anchor and matches the realChainFollower's chain. The schema test now accepts the anchor's recorded shape; it used to reject{type: 'last-prompt'}.Second commit: master was red. #289 added probe journals under
fixtures/p5/under a probes-only gate.replay-fixtures.test.tsseeds every probe journal and expected onlyp4/, so unit failed on master (run 40696896340, this branch's first commit on aece60f). The test now expectsp5/too, following the precedent of dbd5876.Gate. Class 1a green on the head 3c8536a (tree f6106b5e): run 40697815990. ci-gate flagged no e2e group as reached through spec imports.
Review. One round of reviewer-medium; no findings.
Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)