A simulator says it worked. Would the real service agree?
A harness that compares responses and resulting state against a pinned local reference service, and keeps the disagreements visible.
Two tools return the same label. Before you look underneath, what do you think each one saved?
Try the recorded callRead the finding
3 of 16 new cases diverged from the pinned Gitea reference: two in the response, and one where both sides reported success but the resulting state differed. Checking the response alone would have missed it.
A mock can agree on the reply and still leave a different state behind.
Why this question matters
An agent can learn to succeed in a simulator whose behaviour differs from the service it represents. A matching success response can hide that difference, so this project looks underneath it.
What I built
A bounded comparison harness for six operations against a pinned local Gitea reference, with recorded evidence and offline replay.
Recorded pilot run.
- state differed E06
- responses differed E04, E09
Stored label rows after call 2
Stored state
- p2-eval-dupe222222
1 label row
- p2-eval-dupe222222
- p2-eval-dupe111111Only in Gitea
2 label rows
Rows as a table
| System | Colour |
|---|---|
| Simulator | 222222 |
| Gitea | 111111 |
| Gitea | 222222 |
E06 · 2 state differed. Gitea kept 2 label rows, the simulator kept 1
E06, call 2 (Resulting state)
Both calls succeeded. For the label p2-eval-dupe, the simulator kept 1 row and Gitea kept 2.
- Revision
533be5c8f7af0d0b868bb3d82c4c9eefe1c2e4cb- JSON pointer
/rows/5/steps/1- Recorded outcome
diverge- Recorded reason
declared post-state differs- Recorded evidence
label_count: ref=5 sim=4; labels: ref=(('api', '6f42c1'), ('bug', 'd73a4a'), ('p2-eval-dupe', '111111'), ('p2-eval-dupe', '222222'), ('ui', '0e8a16')) sim=(('api', '6f42c1'), ('bug', 'd73a4a'), ('p2-eval-dupe', '222222'), ('ui', '0e8a16'))
Try a different rule
Use the recorded rows to see how the definition of agreement changes the verdict.
The simulator kept 1 row. Gitea kept 2 rows.
Download rule JSONOpen this rule with the recorded call16 new evaluation cases. 13 agreed; 3 diverged. Read the recorded result
A design choice
The observation contract decides what counts as the same. Rows can be sorted, but duplicates are kept. Raw database IDs are not compared literally, and exact timestamps are dropped while their presence stays testable. A looser contract would agree more often and detect less, so I chose the stricter one and wrote it down. Changing it changes what the harness can see.
What the work shows
- New evaluation cases
- 3 of 16 divergedE04, E06 and E09. The other 13 agreed.
- E06 responses
- AgreedBoth paths reported success for the duplicate-label operation.
- Simulator state
- Row overwrittenThe baseline simulator replaced the duplicate label row.
- Reference state
- Distinct rowsPinned Gitea retained both. Response agreement missed this.
Inspect the evidence
- Inspect the recorded results
The frozen local E06, E04 and E09 comparisons, including the state divergence.
- Read the comparison architecture
Execution, reference readback, response comparison and the independent state oracle.
Where the evidence stops
The evidence covers the specified local operations. It does not establish platform-wide simulator equivalence or independent replication. The reference and evaluator code were AI-authored and have not had independent human review. How I build