Repository navigation
Review-layer controls: hidden swallowed-exception, vacuous-test and green-by-skipping diffs with clean twins (Part of #7155) - #9029
Merged
Conversation
…reen-by-skipping diffs with clean twins (Part of #7155) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
CI shepherd: the head of this PR (3bdf6a6) is not the one a maintainer labelled |
Contributor
|
No description provided. |
Contributor
|
No description provided. |
8 of 17 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #7155, part 3, first item: hide planted defects in realistic diffs.
Checklist: done [c:99ad3c6c]
What changed
tests/tools/review_controls.py: the review-layer control set. Three realistic feature-plus-test diffs (new files only), each hiding one defect that lint, format and the suite all pass, plus a clean twin of each with identical paths, title and body (for false alarms).reviewer_packet()is everything a blind reviewer sees (title, body, diff);answer_key()keeps the ground truth apart;problems()fails a catalog that touches a workflow or release path, ships network or process code, or names the experiment anywhere visible.tests/tools/test_review_controls.py(23 tests, 0.4 s): proves each defect is real and the twin is clean, by behaviour: the swallow returns a default while the twin raises; the vacuous test stays green with the feature broken while the twin goes red; the skipped test is skipped while the twin runs; ruff check and format are clean; each diff applies withgit apply --check; the packet is blind.docs/ci.md: a short section naming the catalog and what is still open.Class / Sibling gaps
Class: review-layer controls, meaning PR-shaped diffs hiding one defect that passes every mechanical gate, each with a clean twin. Members handled here, each with its own proof: swallowed exception, test that cannot fail, green-by-skipping check (the three the checklist names). No estate is involved (burned estates only: none touched).
Sibling gaps, not here: more defect classes for the same catalog (a
|| truein a shell step, anasserton a constant, a mock that mirrors the code under test, a retry that masks a flake); they need no burned-estate program, so they are catalog growth under part 4 ("every escape adds a control"). Running a Sonnet and Opus review over the set (catch rate, false alarms, blind, experiment lane, owner OK, cost-vs-reward gate) is the next checklist item and is not started: nothing here calls a model.Gates
audit_check.pyall clear; pinned ruff 0.17.4 format and check clean on the changed files; time ratchet 23 tests, 0 over; tree-wide guards (test_source_reads,test_change_classifier,test_sweep_plan,test_gate_controls,test_canary_control, shepherd-markers and wall-clock tests) 204 passed, 1 skipped. No engine, golden, ledger or workflow change, so no bless.🤖 Generated with Claude Code