Agent Code Patches Require Independent Process Replay to Match Witness File
A proposed software testing strategy requires that any agent-generated code patch remain blocked until a second, isolated process reruns the same property-based campaign and matches a witness file. The witness file records key metadata — including a fixture digest, seed, trial budget, trials spent, and whether a model was called — allowing reviewers to independently verify results. This approach addresses the risk of inflated confidence when an agent's passing test run shares the same imports, environment variables, and context as the code change it is validating. Four exact equalities must hold during replay: fixture digest, seed, trial budget, and trials spent must all match the witness, and no model client may be called during replay. The strategy distinguishes between a completed campaign with zero failures and a genuinely sufficient property set, treating any missing replay or mismatched measurement as grounds to keep the patch blocked.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in