From 6239a99170d40fa5768dc82e943c94494cdb874f Mon Sep 17 00:00:00 2001 From: fiestorra Date: Mon, 30 Nov 2026 06:11:09 +0100 Subject: [PATCH] docs: ask for a negative control and a checked instrument in AGENTS.md The guide asks an agent to measure, count over the corpus and quote where a claim comes from. It does not ask for the two things that decide whether a measurement means anything, and this repository's pull requests have been reviewed with green tests that proved nothing as a result: - a new test must be shown to FAIL without the fix - on main, or with only the changed source reverted - and the reply should say which of the two was done; - the instrument must be checked: rebuild before ctest after switching branches, compare the change between branches rather than the file, and read the test's own header before describing what it proves. Written with an AI assistant. --- AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index c0ea6e3f5f..addaff81fa 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -70,6 +70,12 @@ loader that maps the game's executable and resolves its imports to shims. Nothin - Frame rates of the D3D12 runtime (`d3d12/`): search [d3d12/docs/findings.md](d3d12/docs/findings.md) for the switch or function before measuring it, and measure as [docs/measuring_fps.md](docs/measuring_fps.md) says (a switch by turns inside one run). The variables are listed in [d3d12/docs/switches.md](d3d12/docs/switches.md). +- Show the test **fails without the fix**, not just that it passes with it. Run the new case on `main`, or revert + only the source the change touches and run again: a test that has never seen the old behaviour proves the test + compiles, nothing about the fix. Say which of the two you did. +- Check the instrument before trusting the number: rebuild before `ctest` after switching branches (a stale binary + is indistinguishable from a bug), compare the **change** between two branches rather than the file (a file diff + carries their different bases), and read the test's own header before describing what it proves. ## Test without the game first