Preserve the original task
A checker can compare two equal outputs and still accept the wrong answer. In this original CPU example, the candidate changes the input before the reference reads it. The two outputs agree because the checker has quietly changed the task.[6]
The declared operation adds one to every original value. Input [2, -3, 0, 7] should produce [3, -2, 1, 8] in a separate list, with the input unchanged. The deliberately faulty harness calls candidate(x), then reference(x), using the same mutable list for both. A candidate that zeros x and returns [1, 1, 1, 1] passes that comparison. The reference also sees zeros. Against the original task, three output positions are wrong.[6][5]
The corrected toy freezes the original values in a tuple of built-in integers. It creates separate reference and candidate lists, computes and freezes the expected answer before calling the candidate, then retains two checks: does the output match the original answer, and is the candidate input unchanged on return? It also requires a separate output list of the right length, containing exact integers. The zero-and-ones candidate fails both verdict dimensions.[6][5][2]
- Preserve the original task: The reference must remain bound to the input supplied before the candidate changes anything.
Keep both verdicts
Output correctness and the input contract are different questions. Another authored candidate first computes the right answer, then zeros its input. The corrected checker records a correct output and an input-state breach, and rejects the submission for that breach. Calling its answer numerically wrong would lose the reason for rejection. The ordinary correct function passes; a wrong function that leaves input alone fails only the output comparison.[5]
The retained run covers four authored functions through two harnesses: eight main slots on one fixture, with none excluded. Thirteen separate checks cover the expected outcomes and boundaries, including wrong length, a same-sum permutation, nested mutable input, booleans, a non-list output and returning the input object itself. These are designed cases, not independent trials or an estimate of how often real benchmarks fail.[5]
One original input, four authored functions and two harnesses: all eight main slots are retained. Output and input-state columns refer to the original task.
| Authored function | Shared check | Output correct | Input unchanged | Original-bound check |
|---|---|---|---|---|
| Correct separate output | Accept | Yes | Yes | Accept |
| Wrong, no mutation | Reject | No | Yes | Reject |
| Zero input, return ones | Accept | No | No | Reject |
| Correct output, then zero input | Reject | Yes | No | Reject |
- The shared check compares output with a reference computed afterward from the same input. The original-bound check also requires the input to be unchanged on return.
- A separate mutate-and-restore boundary passes post-return checks; it is outside the eight main slots. Thirteen authored checks are not thirteen independent trials.
State what the checker observes
One additional boundary makes the limitation explicit. A function changes the input, restores its original values, and returns the correct output. The post-return check accepts it. Comparing final values cannot prove that no temporary or idempotent writes occurred. The example only catches the retained state changes shown here; it is not an arbitrary-code sandbox.[6][5]
Python documents that assignment creates bindings, not copies. A shallow list copy also retains references to nested objects, which is why this example restricts values to built-in integers. In tensor code, detaching is a different operation again: PyTorch documents that detach shares storage. Clone returns a copy, but some layouts can become dense. A real verifier must preserve its declared layout and aliasing contract as well as its values; this worksheet does not test PyTorch or CUDA.[1][2][3][4]
- Keep both verdicts: A correct output can still breach the input contract. An unchanged final state cannot rule out temporary writes.
Replay the known bytes
The MIT download includes all input and output values, the eight verdicts, thirteen checks and the separate restore boundary. The saved result is exact output from one original standard-library invocation. For public release, the protocol removes private local provenance and the source changes only the constant that binds that protocol hash. The adapted source was inspected but not run; its different hashes and the original executed hashes are disclosed together. No result was regenerated for packaging.[6][7]
The useful question is simple: which input did the reference actually evaluate? Preserve the original task before candidate execution, keep output and input-contract verdicts separate, and state what the checker cannot observe. This is an original teaching counterexample, not a finding against an existing benchmark, a security guarantee, or a performance or training-benefit result.[6]
- Bind the reference to the original input and retain the reason a candidate was rejected.
Sources
- Python 3.14: shallow and deep copy operations docs.python.org
- Python 3.14: tuple and mutable-sequence semantics docs.python.org
- PyTorch 2.15: Tensor.detach storage sharing docs.pytorch.org
- PyTorch 2.15: torch.clone and memory format docs.pytorch.org
- Complete retained original result data.nodus-compute.ai
- MIT source, public protocol and provenance data.nodus-compute.ai
- Source and saved-result provenance data.nodus-compute.ai
- Vector figure data.nodus-compute.ai
![Original CPU integer example. Original input [2, -3, 0, 7] should produce [3, -2, 1, 8]. The authored candidate zeros its input and returns [1, 1, 1, 1]. A shared-input reference called afterward also returns ones and accepts. A reference frozen from a separate original copy returns [3, -2, 1, 8] and rejects; output positions 0, 1 and 3 differ, and input is changed. Eight main slots, thirteen checks and a separate temporary-restore boundary are retained. Restore passes the post-return check, so no absence-of-writes guarantee is claimed. No actual benchmark bug or GPU measurement.](/assets/lab-research-oracle-custody-card.png)