Add sanitized fixture record and replay - #77
Merged
Merged
Conversation
clifton
force-pushed
the
codex/observable-transport-telemetry
branch
from
August 4, 2026 18:10
bc5be71 to
31e8628
Compare
clifton
force-pushed
the
codex/record-sanitize-replay-fixtures
branch
from
August 4, 2026 18:11
90a315f to
3b50e19
Compare
clifton
force-pushed
the
codex/observable-transport-telemetry
branch
from
August 4, 2026 18:30
31e8628 to
abbb17d
Compare
clifton
marked this pull request as ready for review
August 4, 2026 18:35
clifton
force-pushed
the
codex/record-sanitize-replay-fixtures
branch
from
August 4, 2026 18:35
3b50e19 to
07c6c6d
Compare
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.
Summary
Fixtureformat and anLLMClient-compatibleFixtureRecorder<C>for non-streaming callsReplayClientmatching for operation, sanitized prompt, target schema, and media metadataBehavior
Replay mismatches report only the differing field and leave the interaction unconsumed.
ReplayClient::assert_finished()catches tests that skipped recorded calls. Fixture JSON is pretty, deterministic, version-checked, and available through both file and string APIs.The
mockfeature remains dependency-light and owns the fixture API; provider HTTP dependencies are not required for replay.Verification
cargo fmt --all -- --checkcargo clippy --all-targets --all-features --target-dir tmp/pr4-all-target -- -D warningscargo check --no-default-features --features derive,mock --target-dir tmp/pr4-min-target