Repository navigation
fix(runtime): preserve turn-scoped tool results and pruning (F01) - #55
Merged
Merged
Conversation
ENG-781 / F01: repeated_call_ids_replay_their_own_results_after_follow_up_and_reopen fails on main: the first successful read is replaced by the next turn error. Public session commands and captured provider requests cover follow-up and reopen.
ENG-781 / F01. Preserve run/turn/provider-call identity, match pruning metadata to each result, and retain missing-result repair and legacy effects. Three public session regressions cover restart, compaction, history, and mixed effects. Workspace 1443 passed; formatting, Clippy, and build green. Independent implementation review approved; performance receipt follows.
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.
F01: preserve tool-result identity during replay
Closes ENG-781.
Spec:
docs/plans/progress/harness-repairs.md(F01 acceptance and owned paths).What changed
Verification
20d4f6b, pass on the candidate: follow-up/reopen/compaction/history, missing legacy results beside reused IDs, and mixed-effect pruning.env -u NO_COLOR TERM=xterm-256color cargo test --workspace --quiet: 1,443 passed, 5 ignored. Tests run with loopback permission. Initial sandbox binding and inherited NO_COLOR failures are environment-specific and recorded in the ledger.cargo fmt --all -- --checkcargo clippy --workspace --all-targets --all-features -- -D warningscargo build --workspaceMeasurements
30 alternating release-binary pairs, 900 follow-ups per case/arm, after 24 persisted 12 KB tool results:
Inconclusive under host noise: I/O
some avg10ranged 27.37–46.50%; adjacent same-binary batch medians varied by up to 147%. No speedup, tail-budget pass, or scale qualification claimed. Quiet-host qualification remains open under audit F15. The ignoredmeasure_replay_follow_upfixture makes this reproducible; raw receipts are undertarget/qq-perf/f01-2026-09-16/(not committed).Baseline production sources are pristine
20d4f6b; candidate implementation is977d28b. Baseline was captured after implementation in a separate worktree, not before edits (documented process deviation). A stale shared Cargo artifact was rejected; distinct binaries were verified by baseline 0/3 versus candidate 3/3 regression results and SHA-256. Fetch PR #50 landed during measurement; merge-tree withb75ebacis clean. Measurements intentionally exclude that unrelated feature from both arms.Docs and compatibility
docs/design/transcript.mddescribes replay identity and pruning semantics; the repair ledger records scope and receipts. Existing persisted sessions are read correctly without rewriting history. Protocol/descriptor/schema unchanged.Remaining audit findings are separate slices and PRs; this PR does not claim they are fixed. No self-merge.