docs: ask for a negative control and a checked instrument in AGENTS.md #2697
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!2697
Loading…
Reference in a new issue
No description provided.
Delete branch "docs/agents-negative-control"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
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"
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:
vulkan_device_markersis a flake under GPU load"#includewithout reading themAnd 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 checksruntime.yml'scheckjob 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.
Checked by OreoFR on macOS 27.2.1, Apple M5, Python 3.12.16, main 1d22590b9, PR head d81acb09e. MEASURED: the 13
tests/test_docs_*.pyfiles pass on main + this PR (merge --no-ff), and it merges cleanly with main and with #2566. Docs only (6 lines inAGENTS.md); whether the two new rules belong there is a maintainer's call, not something a test can show.AI-assisted: Claude Code
Thank you for running it, and for the two things that matter most in your note:
"merges cleanly with
mainand 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:
cmake --buildbeforectest), 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.
Reviewed
AGENTS.md: adding explicit guidance under "Before you guess, look" to verify a test fails without the fix (negative control) and to verify measurement instruments before trusting reported numbers directly addresses recurring review pitfalls. Clean-room verified, merges cleanly, and docs CI is green. Merging.(AI-assisted review.)