Skip to content

fix(tools): preserve archived output when identifiers repeat - #6756

Merged
Hmbown merged 1 commit into
mainfrom
fix/tool-output-archive
Sep 29, 2026
Merged

Hmbown merged 1 commit into
mainfrom
fix/tool-output-archive

Conversation

@Hmbown

@Hmbown Hmbown commented Sep 29, 2026 •

Copy link
Copy Markdown
Owner

No-Issue: verified output artifact preservation finding from the current audit.

Full model-context output used a mutable artifact writer, so a repeated tool identifier could replace an earlier saved result. Reuse the existing immutable writer already used by classic and adaptive spillover. Identical replay remains successful; different bytes leave the original artifact intact and trigger the existing truthful Engine fallback without claiming an artifact was saved.

Validation: 5 focused Rust tests passed (0 failed, 0 ignored), including identical/conflicting replay and real Engine projection, plus serial/parallel and classic/adaptive spillover regressions. npm test: 670 passed; npm run check:web: passed. Two independent source reviews, formatting and diff checks passed. This bounded repair preserves evidence; session-wide execution/provider identity separation is separate pending work.

Use the existing immutable artifact writer for full model-context output, matching the classic and adaptive spillover paths. Identical replay is idempotent; a different result cannot overwrite the existing artifact or claim it was saved.

Validation: 5 focused Rust tests passed, 0 failed, 0 ignored; npm test 670 passed; npm run check:web passed. Regression covers initial archive, identical replay, conflicting payload and the actual Engine fallback projection. Two independent source reviews and diff/format checks passed.
Copilot AI balanced review requested due to automatic review settings September 29, 2026 12:51

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Hmbown
Hmbown merged commit 028309f into main Sep 29, 2026
36 of 37 checks passed
@Hmbown
Hmbown deleted the fix/tool-output-archive branch September 29, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants