The Diff Wasn't the Model: Fingerprint the Environment Before You Replay a Trace
Description and use
Adding a simple manifest to traces accurately detects environment changes, preventing false alarms and saving engineering time.
Problem
Replay failures were blamed on model changes, but the real cause was missing environment fingerprints, leading to wasted engineering time.
Outcome
Adding a single manifest line to traces prevented false alarms and saved half a day of engineering effort.
Workflow
- 1. Compute SHA‑256 hash of each tool schema file and combine them.
- 2. Compute SHA‑256 hash of all prompt files (content‑hashed with path).
- 3. Record model requested, model returned, temperature, max tokens, and tool timeout.
- 4. Hash the lockfile and interpreter version.
- 5. Assemble these into a manifest dictionary and compute a short manifest_id.
- 6. Prepend the manifest as a
run_manifestline to each trace file. - 7. During replay, compare the manifest to detect environment changes before executing the trace.
Evidence
The run diff was clear and useless. The model had not changed.
The fix is cheap. Write one manifest line at the top of each trace.
Add one field that most harnesses skip: model_returned. Copy it from the response metadata, not from your config.
- Record date: 2026-10-26T12:11:11.598Z