Skip to content

Review experiment: report --markdown, corrected run size, results page (Part of #7155) - #9078

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261123T0134Z
Nov 23, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7155-20261123T0134Z

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7155

Checklist: partial -- item [c:04c21193] 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.

What changed

  • tests/tools/review_experiment.py: report --markdown renders per-model catch rate by class (with n), twin false alarms, stray findings, errored and malformed counts, and the model delta as a table for a committed page.
  • tests/tools/test_review_experiment.py: tests for the table (errored row, model with no completed twin, single model, CLI path). Synthetic data, no model call.
  • docs/ci.md: corrected the run size. The set is six diffs, so --repeats 3 with two models is 36 reviews (about 13.6k input tokens by the dry run), not 18; --max-reviews 18 would have refused it.
  • docs/research/review-layer-controls-sonnet-vs-opus.md (new): method, size, run command, results placeholder, how to read n=3.

Class / Sibling gaps

Class: measuring review-layer detection (catch rate and false alarms) per reviewer model on the planted-defect set. Members: the swallowed-exception, vacuous-test and green-by-skipping controls and their clean twins all go through the same report path, so each is rendered by the new table. Sibling gaps: (1) the live run itself, needs the experiment lane's owner OK; (2) the "reviewer must not know it is a control" item, same lane; (3) the set is three defects, so any result is counts, not a verdict; (4) section 4, feeding escapes back as new controls, is untouched.

Remaining slices

Owner-approved live run: run --models sonnet,opus --repeats 3 --owner-ok --max-reviews 36 --out /tmp/..., then paste report --markdown into the results page and tick the item.

Gates

pytest tests/tools/test_review_experiment.py (34 passed, from an unrelated directory), pinned ruff format, pr_gates.py --fast (see report for result).

🤖 Generated with Claude Code

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Nov 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review November 23, 2026 01:41
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) November 23, 2026 01:42
@squid-protocol squid-protocol added shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md and removed shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md labels Nov 23, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot merged commit 8f7dfa4 into main Nov 23, 2026
59 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/7155-20261123T0134Z branch November 23, 2026 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant