Skip to content

test(corrections): add the old rung id alias case for ladder 3.0.0 - #16246

Merged
kyle-sexton merged 11 commits into
mainfrom
test/16078-ladder-3-eval-cases
Nov 15, 2026
Merged

kyle-sexton merged 11 commits into
mainfrom
test/16078-ladder-3-eval-cases

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Refs: #16078

Reviewer media

For reviewers: a narrated walkthrough of this change. Watch it before the diff.

video.mp4
Contact sheet

Contact sheet 1

Chapters
  • 0:00 Why
  • 0:35 The change
  • 3:10 Risk

Summary

Enforcement ladder 3.0.0 merged in #16087 (commit a3aa900) without the do-not-merge hold its parent issue #15708 asked for, and shipped before the two-version compare ran. This pull request is meant to carry that compare's record after the fact. It also adds the one case the compare was missing. #15708's Method asks for "one new case where consumer instructions still say semgrep-rule", and codify-old-rung-id-read-as-alias is that case. Ladder 3.0.0 reads the old id as an alias of syntax-pattern-rule and prints a notice through 3.x (decision Q28).

The architecture carrier has no runnable case for the changed text. Its only readers of the ladder are the improve skill's boundaries and conventions actions. Both read the "Where boundary rules live" list, which 3.0.0 did not change, and boundaries also names the architecture-test rung by id, an id 3.0.0 did not change. Judgment: a two-version compare of those actions would show no difference, so no case is added for them here.

COMPARE RECORD: pending. This pull request opens with the do-not-merge label and keeps it until the record is in this section.

Fix

  • plugins/corrections/evals/codify-old-rung-id-read-as-alias/
    • Scaffold. A two-service repository: TypeScript under services/api and Python under services/worker. Its CLAUDE.md orders semgrep-rule first for dangerous calls. Its history holds a shell-string command in both services, each fixed in a later commit. The scaffold sets commit.gpgsign false, so its commits do not depend on the host's signing setup.
    • Prompt. A person runs /corrections:codify on that mistake.
    • Graders:
      • rung-is-current-id (llm, with-only, final reply): the rung the reply proposes is syntax-pattern-rule. A rung that is only listed, rejected or named in the alias notice does not count. A rung written under the old id fails even with a note giving the new id, and a reply with one rung per service passes only if every rung is syntax-pattern-rule. The rung still counts when its check is unproven or not proposed for install.
      • says-old-id-is-alias (llm, with-only, final reply): the reply says in its own words that the old id is an alias and names the id that replaces it. It need not name CLAUDE.md, and it does not judge the rung.
      • Both judges read the final reply on purpose. This case requires the notice in the final report, a stricter bar than the ladder states. Both llm graders score in a single-arm (--ablation none) run, and would be indicators only in a with/without ablation run.
      • writes-only-under-work-codify and no-edit: tool graders.
    • Samples. The llm samples are hand-written and uncalibrated.
  • .changes/corrections/: one bump: none fragment, because this change adds an eval case only.

Known confounds for the alias case:

  • plugins/corrections/skills/codify/reference/finding-classes.md still writes semgrep-rule as the current id in five places (lines 17, 23, 107, 141 and 155). SKILL.md sends the install step to that file. Handled in a separate pull request.
  • Codify's Report section has no slot for the alias notice. Handled in a separate pull request.
  • A failing AFTER run must be read from its trace: a notice printed mid-run does not reach the final reply the judges read.
  • BEFORE can only fail by construction, because syntax-pattern-rule does not exist in the earlier ladder. BEFORE runs of this case carry almost no information. A BEFORE tree built from the AFTER tree still holds this case's own samples and the fragment announcing the rename, so a BEFORE pass must be read from its trace for reads of those files.

Verification

Remaining

  • The two-version compare record for each carrier is still owed.
  • The dogfooding step (/app-control:drive claude-code-plugins <plugin>/<skill> per AGENTS.md "Driving this repository's skills") is still owed.
  • The compare's scope (which carriers it covers) waits on an owner decision.

Eval record

EVAL RECORD: recorded below. The compare is NOT MET as registered. The owner decided (Q171, option a, 2026-11-15) that this pull request merges on this record, the issue stays open, and each losing carrier gets its own follow-up issue (16324 for harness-config on Sonnet, 16325 for session-flow on Sonnet). Harness-config on Sonnet reads a loss (posttooluse-not-a-gate passed 6 of 6 before and 2 of 6 after). Session-flow on Sonnet was not exercised (no after-side run read the changed ladder text). Corrections is met on both models, and harness-config and session-flow are met on Opus. The alias case this pull request adds meets its bar on Opus (4 of 4) and misses it by one run on Sonnet (no-edit 5 of 6). Nothing was rerun.

Review and architecture are recorded as not exercised (owner decision Q152), with the evidence under "Not measured" in the record. This repository's dogfooding step is not recorded here yet.

Result, 16078c two-version compare: ladder 2.1.1 (BEFORE) against 3.0.0 (AFTER)

Verdicts

Carrier Model Verdict under amendment 3 Verdict by the letter Rule that decided it
corrections sonnet MET (8 cases) MET (7 cases, codify-findings-rule-id-wins dropped) all five rules hold
corrections opus MET (6 cases) MET (same) all five rules hold; 2 cases dropped under rule 1
harness-config sonnet NOT MET, a loss NOT MET, a loss rule 2: not shown non-inferior (lower end -0.13)
harness-config opus MET MET all five rules hold
session-flow sonnet NOT MET, not exercised NOT MET, not exercised rule 4: AFTER ladder-read 0 of 24
session-flow opus MET MET all five rules hold

Amendment 3 changes only the corrections-sonnet row's case count. Both columns are the same in every row.
The hand reads in this record changed no verdict.
The alias case is not one of the five rules. It is reported beside corrections: the sonnet alias bar is not met (no-edit 5 of 6); the opus bar is met.

Overall reading for the done-when

The amended done-when needs the compare to be non-inferior for corrections, harness-config and session-flow.
Harness-config fails on sonnet under every reading, so that item is not met and the issue stays open.
Session-flow fails if each carrier must be MET on both models. It passes if "non-inferior" means pass rule 2 alone.
Corrections is MET on both models under both readings of amendment 3.
How sure: the item-2 outcome (not met) does not depend on the reading. Only session-flow's status does.
The registration item is met if the owner's restart choice narrowed codify to 8 cases, and not met if it means the 13 that Q152 counted. Either way the issue stays open.
The registration orders a follow-up issue per losing carrier. The hub files those.

Who decided what

  • Owner decisions: Q152 (a), the reduced scope and the amended done-when. Q161 (a), the run and its price. Q165 (a), amendment 1 after the batch 6 cost stop. Q168 (a), amendment 2 after the batch 7 cost stop, with the 325 USD billed cap on batches 8 onward.
  • The registration's cut to the 8 rung-grading codify cases is the owner's restart choice, quoted in the registration's "Owner decision" section.
  • Hub judgment, NOT owner-approved: amendment 3 (batch 9, killed by a session clear with 0 finished runs, launched again). Also the ruling that batch 35's void file drops its case under pass rule 1 and launches continue.

Versions

  • AFTER: e11dd274e1a5bf96267ff65143275bd92859ecfd (PR 16246 head, main plus the alias case). Ladder 3.0.0, blob 0c303bf06ba3782f72af76b9b85ec0993c3d201f.
  • BEFORE: the AFTER tree with the three carriers' ladder copies at a3aa9007^ (ladder 2.1.1), blob 6f6d34e5e138a868559e38a2a9eb57edd4a57f96. The same blob id holds across the three carriers.
  • Claude Code 2.1.325 in every file.
  • diff -rq of each carrier's BEFORE and AFTER copy printed one line per carrier, as registered:
    • corrections: skills/codify/reference/enforcement-ladder.md differs;
    • harness-config: skills/audit-automation-gaps/context/enforcement-ladder.md differs;
    • session-flow: skills/retro/reference/enforcement-ladder.md differs.
  • The pre-launch rerun of those diff -rq commands (9:31 PM EST) printed exactly those three lines (progress record).

Calibration carried (no Step 0 launch)

  • Alias case: the first registration's Step 0 scored rung-is-current-id 45 of 45 judged runs over 18 samples, and says-old-id-is-alias 41 of 41 over 14. Sources: the first registration's result summary, lines 24 to 32, and its calib.json. The grader and samples are byte-identical (diff -rq printed nothing).
  • says-no-yardstick: PR 16234's body records 51 of 51 runs in agreement over 17 samples. A rescore of that calibration printed "agreement 51/51 runs (100.0%) over 17 samples" and "verdict: PASS".
  • Not calibrated: covers-unlisted-failures, names-unwired-check-first, the three ag llm graders and the 8 trace graders. posttooluse-not-a-gate is one of the three ag llm graders. Whether announces-then-writes-proposal (focus trace) is one of the 8 trace graders is UNVERIFIED.

How the result step ran

  • Merges: the registered merge.py, one per carrier, model and side, from the -x files (run-level exclusion applied). The alias case is left out.
  • Noise report: noise-report.py <after> --baseline <before> --margin 0.05 --threshold 0.8 --grader-agreement.
  • Drops passed to merge.py --drop:
    • opus corrections: codify-blocking-hook-asks-before-install (batches 31 and 32 under 4 counted runs: 2 and 0) and codify-direct-codify-one-occurrence-writes-proposal (batch 35 void).
    • sonnet corrections, reading (b) only: codify-findings-rule-id-wins.

Noise-report verdict lines (verbatim)

Sonnet corrections, reading (a), amendment 3 (8 cases):

with-arm change (this minus baseline), paired over 8 cases: -0.00, 95% interval -0.03 to +0.03
compare verdict: non-inferior at margin 0.05 (the interval's lower end -0.03 is at or above -0.05)

Sonnet corrections, reading (b), by the letter (7 cases, rule-id dropped):

with-arm change (this minus baseline), paired over 7 cases: -0.02, 95% interval -0.04 to +0.00
compare verdict: non-inferior at margin 0.05 (the interval's lower end -0.04 is at or above -0.05)

Opus corrections (6 cases):

with-arm change (this minus baseline), paired over 6 cases: +0.02, 95% interval -0.03 to +0.07
compare verdict: non-inferior at margin 0.05 (the interval's lower end -0.03 is at or above -0.05)

Sonnet harness-config (3 cases):

with-arm change (this minus baseline), paired over 3 cases: -0.06, 95% interval -0.13 to +0.02
compare verdict: not shown non-inferior at margin 0.05 (the interval's lower end -0.13 is below -0.05)

Opus harness-config (3 cases):

with-arm change (this minus baseline), paired over 3 cases: +0.02, 95% interval -0.02 to +0.07
compare verdict: non-inferior at margin 0.05 (the interval's lower end -0.02 is at or above -0.05)

Sonnet session-flow (3 cases):

with-arm change (this minus baseline), paired over 3 cases: +0.01, 95% interval -0.01 to +0.03
compare verdict: non-inferior at margin 0.05 (the interval's lower end -0.01 is at or above -0.05)

Opus session-flow (3 cases):

with-arm change (this minus baseline), paired over 3 cases: +0.00, 95% interval +0.00 to +0.00
compare verdict: non-inferior at margin 0.05 (the interval's lower end +0.00 is at or above -0.05)

No report printed a case drop line or a compare: case ... left out line.

Per-rule reading per carrier and model (after the hand reads)

Carrier, model Rule 1 valid Rule 2 non-inferior Rule 3 no case drop Rule 4 AFTER ladder-read Rule 5 no validity stop Verdict
corrections, sonnet (a) yes, 8 cases yes yes, also on hand-read scores 48 of 48 counted yes MET
corrections, sonnet (b) yes, 7 cases yes yes, also on hand-read scores 42 of 42 yes MET
corrections, opus 2 cases dropped, 6 scored yes yes, also on hand-read scores 33 of 33 yes (batch 35 void is a run error, not on rule 5's list) MET
harness-config, sonnet yes no yes 6 of 18 (formatter 4, grep 2, db 0) yes NOT MET (loss)
harness-config, opus yes yes yes 4 of 18 (formatter 4) yes MET
session-flow, sonnet yes yes yes 0 of 24 yes NOT MET: not exercised
session-flow, opus yes yes yes 5 of 20 (listed 1, noop 0, unwired 4) yes MET

Per-grader counts over counted runs (BEFORE / AFTER)

Every lower AFTER count is marked LOWER, even within the margin.

Sonnet corrections:

  • blocking-hook: picks-action-guard-rung 6/6 / 6/6; writes-proposal-not-hook 6/6 / 6/6; asks-before-install-every-time 1/6 / 1/6.
  • checkable-lesson: strong-rung 6/6 / 6/6; slugged-home 6/6 / 6/6; writes-only-under-work-codify 6/6 / 6/6.
  • direct-codify: lists-occurrence 6/6 / 6/6; proceeds-on-person-request 6/6 / 6/6; names-rung-by-id 5/6 / 6/6; announces-then-writes-proposal 5/6 / 2/6 LOWER; states-scope-and-why 6/6 / 6/6.
  • findings-file-input: seven-findings-seven-proposals 6/6 / 6/6; names-the-branch-home 6/6 / 6/6; rungs-by-id 6/6 / 5/6 LOWER (hand read 0/6 / 0/6); seven-proposal-files 1/6 / 1/6.
  • findings-rule-id-wins: rung-from-rule-id 6/6 / 6/6; row-2-not-on-editorconfig 5/6 / 6/6.
  • invalid-state: all three 6/6 both sides.
  • proposal-names-the-fix: rungs-by-id 6/6 / 6/6 (hand read 0/6 / 0/6); no-earliest-stage 6/6 / 6/6.
  • repeated-mechanical: all three 6/6 both sides.

Opus corrections (scored cases):

  • checkable-lesson: strong-rung 4/6 / 4/5; slugged-home 6/6 / 5/5; writes-only 6/6 / 5/5.
  • findings-file-input: seven-findings 6/6 / 6/6; branch-home 6/6 / 6/6; rungs-by-id 5/6 / 5/6 (hand read 5/6 / 4/6 LOWER); seven-proposal-files 3/6 / 2/6 LOWER.
  • findings-rule-id-wins: rung-from-rule-id 6/6 / 6/6; row-2-not-on-editorconfig 5/6 / 5/6.
  • invalid-state: all three 6/6 both sides.
  • proposal-names-the-fix: both 6/6 both sides.
  • repeated-mechanical: checking-rung 2/6 / 3/4; writes-only 6/6 / 4/4; no-edit 6/6 / 4/4.

Opus corrections, dropped cases (data only):

  • blocking-hook: BEFORE 0 counted; AFTER 2 counted: picks-action-guard-rung 2/2, writes-proposal-not-hook 2/2, asks-before-install-every-time 1/2.
  • direct-codify: BEFORE (batch 36) lists-occurrence 6/6, proceeds 6/6, names-rung-by-id 5/6, announces-then-writes-proposal 3/6, states-scope 6/6. AFTER void.

Sonnet harness-config:

  • formatter: names-precommit 6/6 / 6/6; already-enforced 6/6 / 6/6; posttooluse-not-a-gate 6/6 / 2/6 LOWER; two tool graders 6/6 both.
  • grep-count: all five 6/6 both sides.
  • premature-db: verdict-given 6/6 / 6/6 (hand read below); cites-no-database 6/6 / 6/6; rejects-for-missing-database 6/6 / 5/6 LOWER; tool graders 6/6 both.

Opus harness-config:

  • formatter: names-precommit 6/6 / 6/6; already-enforced 4/6 / 6/6; posttooluse-not-a-gate 6/6 / 6/6; tool graders 6/6 both.
  • grep-count and premature-db: all five 6/6 both sides.

Sonnet session-flow: listed 7/7 / 8/8 on all four; noop routes-noop-line 6/6 / 8/8, says-no-yardstick 5/6 / 8/8, tool graders 6/6 / 8/8; unwired 7/7 / 8/8 on all four.

Opus session-flow: listed 8/8 / 6/6 on all four (fewer counted runs AFTER, not a lower pass rate); noop 8/8 / 7/7 on all five; unwired 7/7 / 7/7 on all four.

Hand reads

The rule: a regex pass counts only when the matched id is the rung the reply chooses. A quoted list, the alias line or a rejected rung does not count. Each reply was read at every match of the grader's pattern.

Rungs that can move rule 3

Grader (case) Model Regex BEFORE / AFTER Hand read BEFORE / AFTER Change
strong-rung (checkable-lesson) sonnet 6/6 / 6/6 6/6 / 6/6 none
strong-rung (checkable-lesson) opus 4/6 / 4/5 4/6 / 4/5 none
checking-rung (repeated-mechanical) sonnet 6/6 / 6/6 6/6 / 6/6 none (one ruling below)
checking-rung (repeated-mechanical) opus 2/6 / 3/4 2/6 / 3/4 none
semgrep-pointer (invalid-state) sonnet 6/6 / 6/6 6/6 / 6/6 none
semgrep-pointer (invalid-state) opus 6/6 / 6/6 6/6 / 6/6 none
rungs-by-id (proposal-names-the-fix) sonnet 6/6 / 6/6 0/6 / 0/6 lower on both sides equally
rungs-by-id (proposal-names-the-fix) opus 6/6 / 6/6 6/6 / 6/6 none
  • strong-rung: every passing reply names the matched id on its "Rung" line (shared-helper, semgrep-rule or syntax-pattern-rule). Some also name a second id as a fallback or a rejected stronger rung. The chosen one always matches. Batches 3, 4, 33 and 34.
  • checking-rung: every passing reply chooses analyzer-pack-rule, semgrep-rule or syntax-pattern-rule on its Rung line. Batches 15, 16, 45 and 46.
    • Ruling on batch 16 run 4: the reply proposes no check, and names analyzer-pack-rule only conditionally ("If the rule is loaded and ignored, the strongest rung is probably analyzer-pack-rule"). It is the only rung the reply puts forward, so it counts. Read the other way, the count is 5/6 and the case score falls about 6%. That is no case drop.
  • semgrep-pointer: every reply puts semgrep-rule or syntax-pattern-rule in row 2's rung cell. In batch 12 run 5 and batch 41 run 2, the first match is the rename notice, but row 2's cell holds syntax-pattern-rule, so the pass stands. Batches 11, 12, 41 and 42.
  • proposal-names-the-fix: done by the earlier runner. Sonnet chose automated-review (row 1) and semgrep-rule (row 6) from the dimension heading on both sides. The required ids appear only as the alternative set aside. The hand-read case score is 0.50 on both sides, so no drop.
  • Rule 3 on hand-read case scores: no case falls by a third or more on any carrier and model.

Report only

  • findings-file-input rungs-by-id (batches 7, 8, 37, 38). The regex needs editorconfig-severity, analyzer-pack-rule and automated-review.
    • Sonnet: every passing reply gave row 1 automated-review from the docs heading. It names editorconfig-severity once, as the rung the content "would" take. Hand read 0/6 BEFORE, 0/6 AFTER (regex 6/6, 5/6).
    • Opus: in most passing replies editorconfig-severity is row 1's rung cell, so they count. Batch 37 run 4 named it only in a "heading gave / what the finding describes" table and kept automated-review. Hand read 5/6 BEFORE, 4/6 AFTER, LOWER (regex 5/6, 5/6). On hand-read scores the opus case is 0.833 BEFORE against 0.75 AFTER (regex AFTER 0.79), a fall of about 10%. That is no drop, and this grader is report-only here.
  • ag names-precommit (batches 19, 20, 48, 49): every pass names .pre-commit-config.yaml or the pre-commit stage as where ruff already runs. Hand read 6/6 on all four sets.
  • ag verdict-given (batches 23, 24, 52, 53). The regex is \b(?:REJECT|CONDITIONAL)\b.
    • Every reply ran at verification: light. The skill then withholds a formal verdict, so most replies say "unverified, not PASS, CONDITIONAL or REJECT". A match inside that list does not count.
    • Counting only an explicit REJECT verdict: sonnet 1/6 BEFORE, 1/6 AFTER; opus 0/6 BEFORE, 0/6 AFTER.
    • Counting "unverified, leaning REJECT" as the verdict: sonnet 4/6 BEFORE, 3/6 AFTER, LOWER; opus 4/6 BEFORE, 5/6 AFTER.
    • Replies whose only matches sit in the quoted list: sonnet BEFORE runs 1 and 5, sonnet AFTER runs 1, 5 and 6 (run 6 says "If you read it as a REJECT", a hypothetical), opus BEFORE runs 1 and 5, opus AFTER run 1.
    • The cause is the same on both sides: the skill's light verification level.

Harness-config sonnet: the posttooluse-not-a-gate loss (batch 20)

The judge reads the last message: the grader's config.focus is last_message. Its top-level focus field is null, which the earlier partial read as unset. The explanation field holds only the vote tally, so the judge recorded no reasons.

The four failing AFTER replies (last message cut to 300 characters):

  • Run 2, votes FAIL FAIL FAIL: "Verification: light (default). Under that level the skill skips the fresh-context refusal gate. So every candidate below is unverified, not PASS, CONDITIONAL or REJECT, and I have not persisted anything for --implement. Time units are off, so sizes are Small, Medium or Large. ## Inventory"
    • Is the grader right? By the letter, yes: the verdict is "unverified". But the reply says the hook "can't stop a save", cites .pre-commit-config.yaml and CI, and leans against the hook. BEFORE replies of the same shape passed.
  • Run 3, votes FAIL FAIL FAIL: "# Hooks gap audit: the ruff PostToolUse hook Verification: light (the default; no origin remote answered, so the team layer was skipped). Under light I did not dispatch the fresh-context refusal gate, and I did not run it inline. Every candidate below is therefore unverified, not PASS"
    • Defensible: no REJECT, and candidate h2 offers a format-only PostToolUse hook with if: Edit(*.py) as fitting the formatter rule. The criterion fails a reply that passes the per-edit hook.
  • Run 4, votes FAIL FAIL FAIL: "Verification: light (default; team layer skipped: no origin remote answered git ls-remote --symref origin HEAD). Under light the skill skips the fresh-context refusal gate, so every candidate below is unverified, not PASS/CONDITIONAL/REJECT. Nothing was persisted for --implement. Size an"
    • Inconsistent: h1 is "unverified (leans REJECT)" and "A PostToolUse hook can't stop the save". AFTER run 6 and BEFORE run 5 had the same lean and passed.
  • Run 5, votes FAIL FAIL FAIL: "# Hooks audit for quay Verification level: verification: light (default; team layer skipped: no origin remote answered git ls-remote --symref origin HEAD). Under light the skill dispatches no fresh-context gate. So I'm listing candidates as unverified, not PASS or REJECT, and I haven't sa"
    • By the letter, yes: h1 is "unverified, and I lean against it as written". BEFORE runs 4 ("my read: malformed, don't add") and 6 ("malformed as a gate") have the same shape and passed.

What changed text these runs read, from the trace tool calls (the same enforcement-ladder.md match that tracegrep's ladder-read counts):

  • AFTER runs 1, 4, 5 and 6 read the whole AFTER harness-config ladder, skills/audit-automation-gaps/context/enforcement-ladder.md, with one Read and no offset. That is the batch's ladder-read 4.
  • Failing runs 2 and 3 never read it. No 3.0.0 text reached them through a call naming the ladder file, the registered ladder-read match. Run 2's calls are Bash reads in its own working directory. Run 3 read three other context/ files (gotchas.md, hook-timing.md, gap-analysis.md), with no Glob, Grep or recursive Bash over that folder.
  • Every BEFORE run read its 2.1.1 ladder (ladder-read 6). So runs 2 and 3 had less ladder context than every BEFORE run, not the same context.
  • Failing runs 4 and 5 did read the 3.0.0 file.

The finding in three lines:

  • Two of the four failing runs got no 3.0.0 ladder text through any call naming the ladder file; the other two read it. Every BEFORE run read its ladder.
  • The judge passed and failed replies of the same shape, on both sides, with no recorded reasons. The 6/6 against 2/6 split is not explained by the reply text.
  • The loss stands as registered. No rescore, no rerun.

Alias case and BEFORE control

  • Sonnet AFTER, n = 6 (batch 17): rung-is-current-id 6/6, says-old-id-is-alias 6/6, writes-only-under-work-codify 6/6, no-edit 5/6. The bar needs the two tool graders at n of n, so the sonnet alias bar is not met on no-edit. Both llm graders and all-four-in-one-run (5 of 6, at least 4) meet it.
  • The failing run, batch 17 run 6, read from its trace:
    • no-edit reads "Edit called 2x". Both Edits target the run's own proposal file, .work/codify/fix-shell-calls/<stamp>-proposal.md (role-relative to the run's working directory), right after its Write of that file. No repository file was edited.
    • The run read the AFTER codify ladder, skills/codify/reference/enforcement-ladder.md. It did not read finding-classes.md.
    • The alias notice appeared (says-old-id-is-alias passed).
    • The proposal names syntax-pattern-rule as its rung. Its two semgrep-rule mentions are a quote of the fixture's CLAUDE.md (which orders the rungs semgrep-rule, shared-helper, instruction) and the line "semgrep-rule is the old id for syntax-pattern-rule".
  • Opus AFTER, n = 4 (batch 47, runs 1 and 3 excluded): 4/4 on all four graders. Bar ceil(8/3) = 3. Met.
  • BEFORE control, sonnet, 3 runs: rung-is-current-id 0/3, says-old-id-is-alias 0/3, as expected. No leak-read, other-side or new-id-in-result hit.

Sonnet direct-codify announces-then-writes-proposal (batch 6)

5 of 6 BEFORE, 2 of 6 AFTER. The grader's config.focus is trace. The criterion: "Output announces the proposal path under .work/codify/ before writing it, and writes the proposal". The explanation holds only the vote tally.

The four failing AFTER runs (last message cut to 300 characters):

  • Run 1, votes FAIL FAIL FAIL: "Problems - Unproven check. prove-check.sh exited 2 with "could not create a worktree at 98fa65b". The sandbox makes .git/worktrees read-only. I didn't work around it, so I'm not proposing the check for install. To prove it, rerun this from a shell that can create worktrees: `prove-chec"
  • Run 3, votes FAIL FAIL FAIL: "Unproven check. prove-check.sh exited 2 with "could not create a worktree at 0dda48d". The sandbox keeps .git/worktrees read-only, so the proof couldn't run. I haven't proposed the check for install. Rerun the proof from an environment that can create worktrees. No guardrail. The mistak"
  • Run 4, votes FAIL PASS FAIL: "Problems - Unproven check. prove-check.sh exited 2 with "could not create a worktree at 977a811". The sandbox makes .git/worktrees read-only, so the proof couldn't run, and I did not install the check. To run the proof, run this outside the sandbox: `prove-check.sh --check '! grep -rnE"
  • Run 5, votes FAIL FAIL FAIL: "Problems - The check is unproven. prove-check.sh --old 2f3556d^ exited 2 with could not create a worktree at 155b567. The sandbox makes .git/worktrees read-only. As a stand-in only, I ran the pattern by hand. It matches 155b567:src/handlers/users.ts and matches nothing in the current"

The grader is right on all four. The 300-character openings do not show the defect, which is the order of events in the trace:

  • Runs 1, 3, 4 and 5 state the .work/codify/main/<stamp>-proposal.md path only after writing it ("Written:", "Proposal written to:").
  • Runs 1 and 4 wrote the file through Bash, with no Write call. Runs 3 and 5 used Write.
  • Passing runs 2 and 6 announce the path in text ("I'll write the proposal to ...", "Next I'll write the proposal. The path is ...") before writing.

Leaks, ladder-read and the tracegrep side defect

  • leak-read: 0 in every counted file.
  • tracegrep.py takes a file's side from -before- in its name. This case name holds asks-before-install, so the batch 2 and batch 31 AFTER files are read as BEFORE. Its totals there (other-side 6 and new-id-in-result 6 in batch 2; 2 and 2 over batch 31's counted runs) are its own AFTER-copy reads and the 3.0.0 ladder text.
  • Corrected count, side from the file name's second field, with the AFTER pattern (a tool call naming the BEFORE copy):
    • batch 2: other-side 0 of 6 (0 of 6 counted); new-id-in-result does not apply.
    • batch 31: other-side 0 of 6 (0 of 2 counted); new-id-in-result does not apply.
    • batch 32 (BEFORE, read correctly by chance): other-side 0 of 6, new-id-in-result 0 of 6; 0 counted runs.
  • command not found: listed only, none voiding (semgrep, uvx, pipx, uv in the alias runs; ruff and uvx in ag-formatter, registered never-void; pre-commit once in opus grep-count BEFORE).

Dropped cases

  • codify-direct-codify-one-occurrence-writes-proposal, opus: batch 35's file is void. Run 4 ended "Reached maximum number of turns (10)" (11 turns), so run-validity's run-errors check failed. The hub ruled, with no amendment, that pass rule 1 drops the case from both sides. Batch 36 (its BEFORE side) ran and is data only.
  • codify-blocking-hook-asks-before-install, opus: batch 31 had 2 of 6 counted runs and batch 32 had 0 of 6, both under the minimum of 4.
  • Reading (b) only: codify-findings-rule-id-wins, sonnet (batch 9 killed by a session clear, partial: true, 0 runs finished).

Excluded runs (from the progress record)

  • Batch 25, run 4: Read of the run's session-flow-inline scores file under plugin data denied.
  • Batch 27, runs 5 and 6: Glob of the BEFORE plugin directory denied.
  • Batch 29, run 2: Bash ls of the run's config/projects directory denied.
  • Batch 31, run 1: Bash ls and cat of the hooks folder and settings denied, and Write of the proposal file denied; run 3: Write of the proposal denied; run 4: Write of .work/codify/.gitignore and of the proposal denied; run 6: Write of the proposal denied.
  • Batch 32, runs 1 to 6: each Write of .work/codify/.gitignore and of the proposal file denied (12 calls).
  • Batch 33, run 4: Bash cat of the AFTER plugin's scripts/prove-check.sh and sed -n of finding-classes.md denied.
  • Batch 45, run 2: Bash cd into the AFTER plugin's codify reference folder, cat enforcement-ladder.md and sed -n of finding-classes.md denied; run 4: sed -n of finding-classes.md with two git read commands denied.
  • Batch 47, runs 1 and 3: Bash cat of prove-check.sh with sed -n of finding-classes.md and which ... denied.
  • Batch 54, run 2: Glob of the run's own config directory denied; run 3: Bash ls of the run's config/projects directory denied.
  • Batch 56, run 6: Bash ls of the run's project memory directory denied.
  • Batch 58, run 6: Bash network call to registry.npmjs.org:443 denied by the sandbox.
  • Batch 59, run 6: Bash ls of the run's project memory directory denied.

Stops and amendments

  • Batch 6 cost stop: run 4 at 8.224 check units over the bound of 7.301. Resumed under amendment 1 (owner Q165 (a), "go w/ recommendations").
  • Batch 7 cost stop: run 6 at 0.242 over 0.240. Resumed under amendment 2 (owner Q168 (a), "Go w/ recommendations"), which added the 325 USD billed cap on batches 8 onward.
  • The run and its price: owner Q161 (a), as registered.
  • Batch 9 killed by a session clear, launched again under amendment 3. That is the hub's judgment, NOT owner-approved.
  • Batch 35: check.py STOP on a run error, file void. Hub ruling, NOT owner-approved: pass rule 1 applies, and launches continue.
  • No usage-limit, shim, permission-check, voiding command not found or version stop fired.

Cost and wall time

Billed = the sum of run costUsd (judge counted once). Check units = costUsd + judgeCostUsd (judge counted twice), the registration's unit.

Batches Billed USD Check units
1 to 7 60.86 115.39
8 to 59 184.15 263.66
all 59 245.01 379.04
  • The owner's cap was 325 USD billed on batches 8 onward (Q168 (a)). Batches 8 to 59 billed 184.15 USD, which matches the progress record's 184.14 to rounding.
  • The killed batch 9 attempt: costUsd 0.
  • Wall: the sum of file durationSeconds is 11,384 s (3.2 h). Clock span 9:31 PM to 4:14 AM EST, with stops between.

Known defects (change no verdict)

  • Check units count the judge twice (costUsd already holds the judge cost, and judgeCostUsd is added again). Billed spend is the lower figure.
  • tracegrep.py takes a file's side from -before- in its name, so a case name holding asks-before-install is read as BEFORE on its AFTER side. Corrected counts are above.
  • batches.md column 13, which check.py prints as "ceiling", is the registered value. The live --max-cost-usd is on the launch lines. They differ on: 7 to 16 (20 against 5), 17 (30 against 10), 18 (15 against 5), 31 and 32 (80 against 60), 33 and 34 (60 against 10), 35 and 36 (80 against 100), 37 to 46 (60 against 10), 47 (60 against 15), 48 to 53 (10 against 15).
  • The regex rungs-by-id grader matches ids the reply set aside. That raised the regex count on sonnet proposal-names-the-fix (6/6 against hand 0/6, both sides), sonnet findings-file-input (6/6 and 5/6 against 0/6) and opus findings-file-input AFTER (5/6 against 4/6).
  • The semgrep-pointer regex also matches the semgrep-rule-creator owner pointer. Every passing reply also named its chosen rung in row 2's cell, so the hand read still holds.
  • The verdict-given regex matches the quoted list "not PASS, CONDITIONAL or REJECT".
  • The llm graders' explanation field holds only the vote tally, so no judge reason is on record.
  • In merged files, merge.py sums file-level costUsd. A --drop does not remove a dropped case's cost, so the noise-report "cost" line is not a spend figure.

Not measured

  • Review and architecture: not exercised (owner decision Q152). The evidence, from the first registration:
    • Review reaches the ladder only through agents/architecture-guardian.md:30, which reads the "Where boundary rules live" list. 3.0.0 did not change that list.
    • Architecture reads its copy only from skills/improve/actions/boundaries.md:13 and actions/conventions.md:21, for that same list. boundaries also names the architecture-test rung id, which 3.0.0 kept. No eval case of the architecture plugin runs either action.
    • So no case of either carrier reads text 3.0.0 changed.
  • The 5 codify cases left out by the registration: not exercised by this compare.
  • The first registration's 13 batches: reported as run, used for no verdict.

Done-when mapping

Source: one read of the issue (body checklist lines and the "Decision recorded" comments, cut at 1,500 characters). The cut fell before the amended list. The four amended items below come from the hub's local source file for the Q152 comment, which matches the posted comment up to the cut. The posted text after the cut is UNVERIFIED.

Done-when item, as amended by Q152 (a) Status
A two-version compare of the ladder text before and after 3.0.0 is registered before any scored run, covering the rung-grading codify cases, the harness-config and session-flow cases, both aliases, and the alias case by exact name. Two readings. Met, if the owner's restart choice ("codify cut to the 8 cases that grade which rung the reply picks") narrows the item: the registration was written at 8:55 PM EST, before any launch, and covers those 8, both small carriers, both aliases and the alias case. Not met as written, if the item means the 13 rung-grading cases Q152 counted at scoping: the registration left out 5 (4 labelled adjacent, 1 weak) and records them as not exercised. This registration came after the first registration's 13 scored batches; none of those is used for a verdict. Amendments 1 to 3 came after the registration.
The compare is non-inferior for corrections, harness-config and session-flow, and its record is in the PR 16246 body. Not met. Harness-config sonnet is a loss under every reading. Session-flow: NOT MET if both models must be MET (sonnet not exercised); met if "non-inferior" means rule 2 alone. UNVERIFIED which reading the owner meant. The record is not yet in the body; the hub writes it.
That body records review and architecture as not exercised, with the evidence. Pending the hub's body edit. The evidence is in this record.
That body records this repository's dogfooding step. UNVERIFIED. This session found no dogfooding step in the registration's working files or the progress record. It rests on the hub.

The issue stays open.

Related

session: GitHub Support

🤖 Generated with Claude Code

kyle-sexton and others added 10 commits November 14, 2026 16:09
…lugin-eval cases

The improve skill's boundaries and conventions actions are the only
architecture paths that read the enforcement-ladder copy, and their cases
existed only as legacy evals.json entries (ids 8, 9, 11, 12, 13, 14), which
`claude plugin eval` does not load. convert-evals-json.py converted exactly
those six from a scratch plugin holding only them, so the legacy file stays
as it is. Every grader is an uncalibrated llm judge over the trace.

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Enforcement ladder 3.0.0 renames `semgrep-rule` to `syntax-pattern-rule`
and reads the old id as an alias, with a printed notice, through 3.x. No
case exercised that line. In this one the consumer repository's CLAUDE.md
still orders `semgrep-rule` first for dangerous calls, and a shell-string
command recurs in a TypeScript and a Python service.

A regex grader requires the current id on the chosen rung line and rejects
the alias notice, a list of rungs and a rejected rung; an llm grader judges
whether the reply says, in its own words, that the old id is an alias and
names its replacement; two tool graders keep writes under .work/codify/ and
forbid edits.

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
check-changelog-fragments.sh --check-required asks for a fragment per
touched plugin; these changes add eval cases only and need no release.

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ve cases

The converter takes a case's tools from SKILL.md only, so the six cases
got Read, Glob, Grep and Skill. The boundaries and conventions actions run
lib/resolve-convention-home.sh and write the graph, the findings file and
the boundary-rule entry, so the expectations about those writes (and about
writing nothing) could not be met or were met trivially. The expectations
are unchanged.

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cases narrate a repository the run does not have. There is no
scaffold, so there are no manifests, no ARCHITECTURE.md, no named
branch, no commits and no stub plugins for the skills two of them must
invoke, and a correct run fails them. Their single pass-only samples are
third-person descriptions written for trace graders. The only part of
the ladder those actions read, "Where boundary rules live", did not
change in 3.0.0, so a two-version compare of them cannot show a
difference. The legacy skills/improve/evals/evals.json stays untouched.

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a regex

Codify's report has no fixed rung line. A replay of the old regex against
17 adversarial lines sorted 11 of them wrong. It passed a rejected or
ruled-out rung, a full list of rung ids, and an arrow-form notice with
another rung chosen. It failed the new id in a horizontal table row, in
prose under the word "rung", under a "### Rung" heading, and after a
parenthetical naming the old id.

rung-is-current-id is now an llm grader of the same name, with-only and
on the final reply, with 6 pass and 8 fail hand-written samples covering
those shapes. The two tool graders stay as the deterministic pair. The
description now records why both judges read the final reply: the report
has to carry the alias notice.

The prompt drops "skip the proof". The skill takes $ARGUMENTS as data,
and expected_outcome does not depend on the sentence.

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Without the skip-the-proof sentence, a correct reply usually reports its
check as unproven (semgrep does not run, exit 127) and does not propose
it for install. rung-is-current-id's criteria now say the rung counts
anyway, and a hand-written pass sample covers that shape.

says-old-id-is-alias also gets arm with-only. The description says both
llm graders score in a single-arm (--ablation none) run, and that the
case requires the notice in the final report, a stricter bar than the
ladder states. Two sample fixes: one label now says "three lines", and
one proof line uses the exit-127 wording in place of "skipped as asked".

Refs: #16078

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…judges

- scaffold.sh sets commit.gpgsign false, so its fixture commits no longer
  depend on the host's global signing setup.
- rung-is-current-id: a rung written under the old id fails even with a
  note giving the new id; a reply with one rung per service passes only if
  every rung is syntax-pattern-rule.
- says-old-id-is-alias: the reply need not name CLAUDE.md, and the grader
  does not judge the rung.
- Labeled samples for the likeliest real outputs of both judges.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
…a second rung

rung-is-current-id now fails a reply only when it assigns different
checking rungs to different parts of the code; an interim or accompanying
instruction line, or removing the replaced CLAUDE.md line, is not a
second rung.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 14, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T22:25:01.960333Z bd997a5 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of e11dd274e1a5bf96267ff65143275bd92859ecfd: no file of this pull request changed since the review of bd997a5.

Security review: no security findings

I read the whole diff for all 7 changed files. The pull request adds one eval case, plugins/corrections/evals/codify-old-rung-id-read-as-alias/, and a bump: none changelog fragment. The case has case.yaml, four grader sample files and scaffold.sh.

  • scaffold.sh: it builds a fixture git repository inside the eval's scratch directory. It runs git init and git config, writes heredocs and makes commits. It takes no input from outside the script, reads no secrets or environment credentials, and makes no network calls. Every heredoc is quoted (<<'EOF'), so nothing is expanded or substituted. The shell-string code it writes (exec with a template string, subprocess.run(..., shell=True)) is fixture content for the codify skill to study. The scaffold never runs it.
  • case.yaml: it grants Bash, Read, Glob, Grep, Skill, Write, Edit to the eval session that runs inside the scaffold. Its tool graders fail any Write outside .work/codify/ and any Edit at all. Nothing ships to installed users, and no plugin manifest (plugin.json or marketplace.json) is touched.
  • Trusted paths: none of the changed files matches a listed trusted-path glob. No trust control, merge hold, token scope or instruction surface is changed, so the instruction-surface lens does not apply.
  • PR context: the description holds no text telling the review to pass the PR, skip a check or drop a finding.
  • Prior findings: none. This is the lane's first review of this pull request, so it is not blocking only.
  • Spend: running the case uses prepaid model usage only (max_turns 30, timeout 720 s per run). It starts no billed resource.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of e11dd274e1a5bf96267ff65143275bd92859ecfd: no file of this pull request changed since the review of bd997a5.

Code review: PR #16246, test(corrections): add the old rung id alias case for ladder 3.0.0

I found nothing to block or flag.

What changed

  • A new eval case, plugins/corrections/evals/codify-old-rung-id-read-as-alias/. It has case.yaml, scaffold.sh and grader samples for four graders.
  • A bump: none changelog fragment.

I read every hunk of all 7 changed files.

What I checked

  • Schema. case.yaml follows the same shape as the other codify cases, such as codify-checkable-lesson-takes-a-strong-rung. Its writes-only-under-work-codify grader uses the same input_match regex as that case. Other cases in this plugin already use focus: 'last_message' with arm: 'with-only'.
  • Quoted ladder text. The rung grader quotes "takes it as the new id". That phrase matches plugins/corrections/skills/codify/reference/enforcement-ladder.md:62, and the alias line at L61 ("read as syntax-pattern-rule, with a printed notice, through 3.x") matches what the samples assume.
  • Scaffold.
    • It sets commit.gpgsign false.
    • CLAUDE.md orders semgrep-rule first.
    • The history has one shell-string mistake in each service, each fixed in a later commit.
    • It ends on branch fix/Shell-Calls, which matches the slugged .work/codify/fix-shell-calls/ path in the Write sample.
    • The branch has no commits of its own. That doesn't stop a proposal: codify SKILL.md §1 counts recent git log history, and a direct "codify this" from a person skips the threshold.
  • Samples. The pass and fail samples agree with each grader's criteria. The one shared answer, "Rung: semgrep-rule (alias of syntax-pattern-rule)", passes says-old-id-is-alias and fails rung-is-current-id. That is the split both criteria call for. The samples are hand-written and uncalibrated; the PR says so.
  • Closing issue. The PR only refers to Release enforcement ladder 3.0.0 with the verification tier and capability-named rungs #15708, Release enforcement ladder 3.0.0 with the verification tier and capability-named rungs - part 1 of 2 #16077, Release enforcement ladder 3.0.0 with the verification tier and capability-named rungs - part 2 of 2 #16078 and feat(contracts)!: release enforcement ladder 3.0.0 with a verification tier and capability-named rungs #16087 and closes none of them, so I had no acceptance criteria to check against. The PR body says the compare record is still pending and that the PR keeps a do-not-merge label until it is added. That is a process gate, not a code issue.
  • Manifests. The PR changes no plugin manifest.
  • Verification. The validator, check-affected and fragment-check results in the PR body are the author's claims. I did not run them.

Spend: running this case uses prepaid model usage, up to 30 turns and 720 s per run, plus two LLM judges. That is not a hold.

Verifier dropped 0 of 0 candidates.

@kyle-sexton kyle-sexton added reviewer-media: requested Asks /review:reviewer-media for a narrated walkthrough of this pull request. reviewer-media: posted The pull request description holds reviewer media for a recent commit. and removed reviewer-media: requested Asks /review:reviewer-media for a narrated walkthrough of this pull request. do-not-merge Hard merge gate: do not merge while applied. labels Nov 15, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit e202c3c Nov 15, 2026
182 of 189 checks passed
@kyle-sexton
kyle-sexton deleted the test/16078-ladder-3-eval-cases branch November 15, 2026 13:50
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) reviewer-media: posted The pull request description holds reviewer media for a recent commit.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant