Skip to content

docs: ask for a negative control and a checked instrument in AGENTS.md - #2697

Open
fiestorra wants to merge 1 commit into
ProjectLeonida:mainfrom
fiestorra:docs/agents-negative-control
Open

fiestorra wants to merge 1 commit into
ProjectLeonida:mainfrom
fiestorra:docs/agents-negative-control

Conversation

@fiestorra

@fiestorra fiestorra commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

The guide asks agents to measure; it does not ask for the two things that decide whether a measurement means anything. Six measurements of mine in one session were wrong for the second reason, and two pull requests in this queue are green with nothing behind them for the first.

Added, under "Before you guess, look"

- 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.

Why these two, and not a general "be careful"

Each clause is a mistake that happened here, on real pull requests, and each produced a confident sentence that a reviewer could have merged on:

what was published what was wrong
"two implementations of the interp fix" compared files from branches with different bases (504/566 lines "different"); the change is identical
"rebase conflicts in #1923 / #1937" the conflicts were in my stale local copies, not in the branches the pull requests show
"vulkan_device_markers is a flake under GPU load" a half-rebuilt build directory; the test is CPU-only with a faked driver and cannot be affected by GPU load
"#2680 proved on the real driver" that test's own header says "the driver is faked … No GPU data" - I described it three lines after its #include without reading them

And on the queue side: of six pull requests from others verified tonight, two were green with no evidence at all - one needs QEMU, which this machine lacks, and one is a declaration only a 14.39 toolchain can judge. A reviewer cannot tell those from the four that were proved, because the checks look the same.

Testing

Docs only. The thirteen docs test files pass on this branch (57 passed, 132 subtests), which covers links, fenced blocks, list items and repo paths - the checks runtime.yml's check job runs.

Not done

I did not add a test that enforces the negative control, because it cannot be automated honestly: whether a new case fails without the fix is a property of the reviewer's own run, not of the tree. The wording asks for it to be stated, which is the part a test could check and a reviewer can trust.

AI-assisted: yes - DeepSeek v4.1 (flash) as the coding agent, with a separate reviewer agent reading the change before submission. Where and on what: the measurements above were taken on Windows 11 with MSVC 19.44.35226 on an RTX 4090 (NVIDIA driver 621.24) where a C++ or GPU path is involved; Python and docs cases need none of it.

Written with an AI assistant.

@OreoFR

OreoFR commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Checked by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16, main 1d22590, PR head d81acb0. MEASURED: the 13 tests/test_docs_*.py files pass on main + this PR (merge --no-ff), and it merges cleanly with main and with #2566. Docs only (6 lines in AGENTS.md); whether the two new rules belong there is a maintainer's call, not something a test can show.

AI-assisted: Claude Code

@fiestorra

Copy link
Copy Markdown
Contributor Author

Thank you for running it, and for the two things that matter most in your note:

"merges cleanly with main and with #2566" is exactly the check I could not do from here - #2566 is the pull request that touches the interp oracle, and several of my branches carry a copy of it, so a clean merge with #2566 is the one interaction that could have turned this into a conflict at review time.

"whether the two new rules belong there is a maintainer's call" - I agree, and I want to be explicit that I am not asking for the rules to be accepted by default. What I can offer is why they are worded as they are:

  • the negative-control rule exists because six measurements of mine in this session were wrong in ways that a passing test would not have caught, and two pull requests in this queue are green with no evidence behind them (one needs QEMU, one a 14.39 toolchain);
  • the instrument rule names the three specific traps I fell into: a half-rebuilt tree (cmake --build before ctest), comparing files instead of changes across branches with different bases, and describing a test before reading its own header (I called a CPU test with a faked driver "proved on the real driver").

If the maintainers would rather have the second one shorter, or only the first, that is a fair edit - the examples are in the thread of #2570 if anyone wants the receipts.

One thing worth knowing before this leaves draft: it is a draft because my local rules cap open pull requests until two of mine are accepted in main. If a maintainer would rather review it now, say so and I will mark it ready; if it should wait, it is no cost to the queue sitting as it is.

Written with an AI assistant.

@fiestorra
fiestorra marked this pull request as ready for review November 30, 2026 08:03
@github-actions github-actions Bot added the needs rebase Conflicts with the base branch: rebase it on main label Nov 30, 2026
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.
@fiestorra
fiestorra force-pushed the docs/agents-negative-control branch from d81acb0 to 6239a99 Compare November 30, 2026 11:03
@github-actions github-actions Bot removed the needs rebase Conflicts with the base branch: rebase it on main label Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants