Address the open review findings on session provider provenance:
- importAnalysisSnapshot merged the re-attributed bundle into the ledger but
staged the snapshot's own bundle, so AnalysisSnapshotCache rebuilt replay
bindings from records the merge had replaced. Hand the merged bundle back
to the stage so replays bind to the attributed evidence.
- recordResult recorded an attributed record and then serialized the
caller's copy, so successful MCP responses omitted provider_selection
while the ledger and exports carried it. Read the recorded Evidence back
before delivery, as the direct analysis path already does.
- recordUnknown and updateUnknown synthesized unknown-mutation Evidence
without the active session's provider selection, so those exported
records were unattributed. Thread the binding's selection through to
unknownMutationEvidence, which is where the record is produced.
The previous change skipped attribution for a record the ledger already held, which left the imported copy's own selection — missing or from another session — in place. Import replaces a same-ID record's presentation metadata, and provider_selection is part of it, so the session's attribution wins over the caller's copy while the caller's other display metadata is kept untouched.
The merge with main brought in the unchanged-record path, where an import whose only change is display metadata now replaces the ledger's record. Re-attributing that incoming value put the session's provider selection on the caller's copy, so the import reported a record that differed from what the caller sent. Attribution now applies only to records the ledger does not already hold.
The snapshot cache test now asserts the session's attribution explicitly instead of byte equality with the un-attributed source.
Attempt independent resource cleanup without losing primary failures, retain unresolved owners, and publish completion after release. Bound existing producer commands, preserve helper return values, and settle startup and fixture children on failure.
Validation: 29 focused boundary tests passed; actual helper-value and import-bound filesystem cleanup controls passed. The real inert-child termination control and targeted JavaScript binding checks passed, alongside typecheck, lint and formatting. Live Ghidra, Cutter, Electron GUI and Windows addon qualification was not run.