Repository navigation
test(snapshots): expect a snapshot binding mismatch to name targets by their persisted identity - #11639
Conversation
…y their persisted identity Since #11551 a snapshot persists its target as { identity, kind }, so binding_mismatch.target reports the identity's sha256 and selection there. Two tests still expected the flat target and fail on main.
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
[Low impact] This test-only change appears safe to merge. SummaryUpdates stale snapshot mismatch expectations in the MCP and direct-analysis tests.
No actionable code or security issues found. Tests were not run during this review. The check for a superseding PR was blocked because GitHub authentication was unavailable. Reviews (1) · Last reviewed commit: "test(snapshots): expect a snapshot bindi..." · Reviewed by Greptile |
Summary
Two tests fail on main since #11551 (
feat(snapshots)!: persist the target identity as the snapshot target): they still expect a snapshot binding mismatch to name each target by a flatsha256/entry_point. The product output is the intended #11551 shape; only the expectations are stale.Problem and expected behavior
open_binarywith a non-matchingsnapshot_path(MCP) and direct analysis with--snapshot(CLI) reportdetails.binding_mismatch.target.{snapshot,selected}as{ identity: { sha256, selection, ... }, kind }.tests/boundary/mcp/providerSelectionMcp.test.ts("reports confirmed snapshot binding differences and keeps the active session") andtests/composition/directAnalysisFactories.test.ts("direct analysis snapshot target mismatch retains actionable snapshot recovery") assert the old flat target and fail on main (093e41a).Change and scope
Test-only: the three
binding_mismatch.targetexpectations readidentity.sha256andidentity.selection.entry_point. No source change. Sibling sweep: the otherbinding_mismatchtests (directAnalysisSnapshotReplay.test.ts,binarySession.test.ts) already pass; no other test asserts a flat snapshot target.Contract and boundary impact
src/domain/analysisSnapshot.ts).Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
npm run test:focused -- tests/boundary/mcp/providerSelectionMcp.test.ts— 1 failed (receivedtarget.snapshot = { identity: { sha256 … }, kind: "database" });tests/composition/directAnalysisFactories.test.ts— 1 failed, same shape.For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/composition/directAnalysisFactories.test.ts tests/boundary/mcp/providerSelectionMcp.test.ts— 37 passednpm run test:focused -- tests/boundary/filesystem/directAnalysisSnapshotReplay.test.ts tests/composition/directAnalysisFactories.test.ts tests/composition/analysis-sessions/binarySession.test.ts— before the fix: only the directAnalysisFactories case failedCompatibility, safety, and release
Author readiness
Human owner:
Before merge
type(scope): outcome.