Oracles That Cannot Fail: Anchoring and the Expectation That Moves With the Fault
Arquimedes Canedo
Key points
From the paper's conclusion- We call this oracle anchoring.
Abstract
A test oracle that obtains its expected value from the system it is judging cannot fail. If a fault moves measurement and expectation together the comparison cancels exactly, and no generated input will reveal it. The defect is in the oracle and not in the input space. We call this oracle anchoring. An expectation is specification-anchored when composed from values fixed outside the code under mutation, and state-anchored when it flows, directly or transitively, from that code. The expected-value form is named in the test-smell literature but not measured in any study we retrieved. We name three further channels by which such a value reaches a verdict, restrict the predicate to values flowing from the mutate target, and measure it. The subject is a deployed air traffic control simulator with 12 model-free property suites. Across 4 modules and 366 mutants these add 3 mutants of detection over the hand-written tests, while remaining 6 to 33 times as efficient per test. We then intervene three times, predicting each outcome first. Re-anchoring one holding oracle on published procedure, changing no production code, recovers 8 of 46; state-anchoring a healthy debounce oracle costs 4 of 19; and a reference model on that population kills exactly what specification anchoring kills, placing the risk in anchoring and not in model-freedom. Of 6 instances ablated, the two sizing their comparison carry 11 of the 12 recovered mutants. The published smell rule would revert our repair. Writing the oracle this analysis said was missing then exposed two defects deployment had not surfaced. All measurements come from one system by one author.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- ReqTestAgent: execution-grounded language-model agents for acceptance testing under requirement ambiguity.Frontiers in artificial intelligence · 2026
- Discriminating Fixture Coverage in Agent-Infrastructure Verification SuitesarXiv · 2026
- Poison Valleys: Diagnosing Path-Dependent Failure in LLM Code RepairarXiv · 2026
- RESTOR: Automated Test Oracle Generation for RESTful APIs via Reinforcement LearningProceedings of the ACM on software engineering. · 2026
- How Does Killing Surviving Mutants Help Detect Real Bugs with Assertion Generation? A Controlled ExperimentProceedings of the ACM on Software Engineering · 2026
- Prosecutor: Bayesian Counterfactual Fault LocalizationProceedings of the ACM on Programming Languages · 2026