Repository navigation
Open
Labels
claim:melekenhancementNew feature, sensor, or structural signaturepriority: highCore feature broken, but workarounds existscope:infraCI, tooling, churn/factory, docs infrastructure
Description
Why
A green gate only means something if that gate can go red. Three failures from one week looked healthy until someone checked:
- CodeQL: every PR read "No new alerts" while PR scans held 0 results, and open alerts went from 34 to 459 (CodeQL: PR scans see nothing and open alerts grew from 34 to 459 #7153).
ci_busy_hours: read an impossible 45 h on Oct 23, and nothing noticed.- promoter-bot chore(deps): bump stripe from 14.4.1 to 15.3.0 #89: passed every test, yet would have stopped every host's dashboard push once
factory.jsonpassed 128 KB.
We test code heavily, but we don't test whether the tests and gates still work. det_mutation.py and mutation.py measure whether tests catch code changes. Nothing measures whether a bad PR is actually stopped.
The idea
Run lab-style controls on the pipeline itself:
- Negative control: a known-bad change. Its gate must go red. If it stays green, that gate is blind, which matters more than any single bug.
- Positive control: a known-clean change. Everything must stay green. This measures false alarms and fix-loop cost.
The output is a detection matrix: each gate against each planted defect, with pass or miss and how long it took. A miss is treated as a high-priority failure of the gate, not of the code.
Plan, cheapest first
1. Gate self-tests (no extra CI runs)
- List every gate and what it claims to catch (Gate inventory: main, nightly and release checks and in-workflow gate jobs are listed (Part of #7155) #8947)
- Give each gate at least one fixture it must fail on, and run these in the existing suite (Gate controls: referee-panel, java-compile and assess-from-pypi each have a test that makes them fail (Part of #7155) #8986)
- Add a check that fails when a gate has no fixture (Gate controls: a gate with no fixture fails by name, and a proof must be a real, unskipped test (Part of #7155) #9000)
2. Weekly control PR (one full CI run a week)
- A scheduled job opens a real, ready-for-review PR from a
canary/branch, carrying one small planted defect per gate (Canary control: results matrix, clean control PR, miss issue, close and delete (Part of #7155) #9006) - A results job compares which gates went red with which should have, posts the matrix, then closes the PR and deletes the branch (Canary results: sweep orphan canary/ branches, close marker-less canary PRs (Part of #7155) #9010)
- Also run a clean control PR, to measure false alarms (Canary clean control: a clean twin per defect area so the code gates run (Part of #7155) #9022)
- A miss opens a
priority: highissue (Canary results: one issue per blind gate, deduped; a failed issue keeps the PR open (Part of #7155) #9024)
3. Controls on the review layer (an experiment, not a default)
Gates catch rules. Reviewers catch judgement. The #5274 import cycles passed every gate, and a reviewer was the only layer that could have questioned them.
- Hide planted defects in realistic diffs, such as a swallowed exception, a test that can't fail, or a green-by-skipping check (Review-layer controls: hidden swallowed-exception, vacuous-test and green-by-skipping diffs with clean twins (Part of #7155) #9029)
- Measure catch rate and false alarms for the Sonnet review, and compare with Opus on the same set
- The reviewer must not know a diff is a control. Run through the experiment lane: Opus design, owner OK, logged in temporal-crucible, cost-vs-reward gate first
4. Learn from escapes
- Every defect that reaches
mainadds a new control, so the set grows from real failures - A monthly Opus session reviews misses, false alarms and escapes, and proposes new control classes
- Add the detection matrix to the squid-bot dashboard
Safety rules
- A control PR can never merge:
canary/branches carry a hold thatci-gatealways fails, whatever else is green, and the merge label is refused - Planted defects are inert: no real vulnerabilities, secrets, network calls, or changes to workflows or release paths
- Control runs stay out of the factory's own numbers: merges, first-pass rate, lessons and agent memory
- A control PR that fails to close alerts the owner
How to judge it
- Cost to measure first: the runner-minutes of one control PR (
.claude/rules/ci-workflows.md) and the tokens for a review session. - Worth continuing if it finds gaps that weekly CI doesn't. Part 2 should show its value within about 4 runs, or the cadence drops.
Open questions
- Should part 2 be weekly, or follow gate changes only?
- Do control PRs count against the 20-runner pool at peak hours, or run off-peak?
- Can controls for owner-only workflows (
shepherd-*.yml) run here, or do they need separate approval?
Metadata
Metadata
Assignees
Labels
claim:melekenhancementNew feature, sensor, or structural signaturepriority: highCore feature broken, but workarounds existscope:infraCI, tooling, churn/factory, docs infrastructure
Activity
CI: list every gate with a failure proof; first negative controls (Pa…
CI: full-suite negative control; a blind CodeQL scan fails (Part of #…
Vault Sentinel: real-detector controls; a folder allowlist entry matc…
Allowlist folders keep the _tests convention (Part of #7155)
X-Ray: real-detector controls; a disguised executable fails; allowlis…
Vault Sentinel reads config files, long lines and three more secret k…
X-Ray: long payloads are measured; MZ counts only at the start of a f…
Smoke Tests: fold the durations lookup into the planning job (Part of #…
Gate inventory: every gate states what it claims to catch; a test ref…
squid-protocol commentedon Nov 21, 2026
#8940 merged: a partial slice of [c:f743d1a3] "List every gate and what it claims to catch"; left: every gate now states what it claims to catch; failure proofs for 19 gates are the remaining slice. (promoter-bot)
40 remaining items
squid-protocol commentedon Nov 22, 2026
Churn run
7155-20261122T2310Z(host melek) ended without a PR. live Sonnet-vs-Opus run awaits owner OK (owner-questions/issue-7155-live-review-run.md); no PRReview experiment: report --markdown table, corrected run size, resul…
squid-protocol commentedon Nov 23, 2026
#9078 merged: a partial slice of [c:04c21193] "Measure catch rate and false alarms for the Sonnet review, and compare with Opus on the same set"; left: needs the live Sonnet vs Opus run, which calls models and goes through the experiment lane (owner OK). A headless worker cannot grant that OK, so no model was called. Everything the run needs is in place; the command is in
docs/research/review-layer-controls-sonnet-vs-opus.md. (promoter-bot)squid-protocol commentedon Nov 23, 2026
Churn run
7155-20261123T0149Z(host melek) ended without a PR. No PR: live Sonnet-vs-Opus run awaits owner yes (owner-questions/7155-review-experiment-run.md); docs page says 36 reviews vs 18 in questionsquid-protocol commentedon Nov 23, 2026
Churn run
7155-20261123T0631Z(host melek) ended without a PR. No PR: live Sonnet-vs-Opus run waits on owner OK (question file corrected to 36 reviews); checklist c:04c21193 partialsquid-protocol commentedon Nov 23, 2026
Waiting on an owner decision (asked privately, 2026-11-23). Nothing is needed from contributors; work resumes once it is answered.
squid-protocol commentedon Nov 23, 2026
Claimed by promoter-bot host
melek, lease renewed 2026-11-26T23:51Z. It lapses after 6 h without a renewal. To take it back, assign someone or remove theclaim:meleklabel.