Repository navigation
feat(session-flow): route a retro's mechanical finding to a check proposal - #16282
Conversation
…posal The retro now asks of each finding, before choosing a target, whether a check could decide it. Such a finding gets a check row instead of a CLAUDE.md or rules line: with the corrections plugin installed its action is /corrections:codify, run only once the user picks the row at Phase 4; otherwise it is written in the catalog's Hooks format. The improvement catalog's target sections now run strongest first, and its recurrence count defers to codify's setting. A new eval case, re-mechanical-finding-check-proposal, covers the routing. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review: PR #16282 (retro routes a mechanical finding to a check proposal)This head adds nothing new to the security picture. This lane already reviewed an earlier head ( There are no new findings and no exploitable security issue. The two findings counted below are the earlier manifest default-deny flags. Both are on the same unchanged lines, and the owner has already answered them (the reply says nothing runs from the stub; no change needed). Manifest
The stub manifest is corrections-stub/.claude-plugin/plugin.json. It has only three fields: What I checked
SpendThe PR body records a two-version eval compare that cost about 56 USD of API credit. The new eval case adds a small cost to future eval runs. This is prepaid usage, not a hold. critical-findings: 0 |
|
claude-review reviewed Code review: #16282 (retro: route a mechanical finding to a check proposal)This review covered blocking findings only. This lane already reviewed an earlier head ( I read every hunk of all 14 changed files in Earlier findings. There were three advisory findings:
The owner answered all three with a decision: each is deferred to #16284 because an edit would void the measured eval compare. They are settled, their lines are unchanged, and they were advisory, so I am not raising them again. Blocking findings: none. I checked these and found nothing blocking:
Closing issue #15935, Done when:
Other notes
Verifier dropped 0 of 0 candidates. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #15935
This pull request carries the change of pull request #16195 (opened by the automation lane) as one
commit, together with the fix measured below. The commit's tree for the 14 changed files is
byte-identical to the tree the two-version eval compare measured. #16195's later feedback-round
edits to the same files are not included, because no compare measured them.
Summary
A retro finding that a check could decide now comes back as a check proposal, not a new prose
line. The retro's improvement catalog asks "could a check decide this?" before the scope question.
When the answer is yes, the finding gets a check row: with the
correctionsplugin installed, therow's action is
/corrections:codify "<the mistake>", run only once the user picks the row atPhase 4. Without that plugin, the row is written in the Hooks format against the retro's
enforcement-ladder copy. Either way, the finding gets no CLAUDE.md or rules line.
Dogfooding step for this repository: the two-version session-flow eval compare below, with the new
case included and the two
rr-*cases left out. No repository doc names a "dogfooding step" (asearch of
AGENTS.md,.github/anddocs/finds none). This reading is the same one #16195'slane run used.
Fix
plugins/session-flow/skills/retro/reference/ecosystem-improvement-catalog.md:Memory (lines 3-6 and 122-212).
(lines 163-168).
/corrections:codify'srecurrence.min_occurrencessetting and keeps no count of its own (lines 107-113).
plugins/session-flow/skills/retro/context/session.md: Phase 3 runs each finding through "Checkfirst" before choosing a target. Phase 3 and Phase 4 run the codify hand-off only after the
Phase 4 pick.
plugins/session-flow/skills/retro/SKILL.md: the gotcha says codify runs once the user picks itat Phase 4.
plugins/session-flow/evals/re-mechanical-finding-check-proposal/: a new eval case. A bannedimport (
moment) is made twice in one session, and the retro must route it to/corrections:codifyas a check with no prose rule. Its graders arehands-off-to-codify(llm),
no-early-codify(tool_used),check-not-prose-rule(llm),no-write,no-editandno-bash-writes. The case also holds an eval-onlycorrectionsstub, a scaffold, and labeledsamples.
.changes/session-flow/work-resolve-issue-issue-15935-43621017612-1-b1b35d5d.md: a minorchangelog fragment.
Verification
Checks on this branch:
scripts/check-affected.sh --no-fetch:check-affected: 17 passed, 1 skipped over 14 changed files.scripts/check-changelog-fragments.sh --check-required origin/main:Every fragment-mode plugin this change set changes (1) has a fragment, and no added fragment path exists at origin/main.validate-cases.py plugins/session-flow/evals: 0 FAIL. The new case's WARN lines are theallowed_toolsgrant notes (Bash, Edit, Write; met by--allow-tools Bash Write Edit), pluscheck-not-prose-rule.json: 7 sample answers need judge calibrationandhands-off-to-codify.json: 13 sample answers need judge calibration.git diff --check origin/main: no output.check-affected,guardrails-remote-reference-verify,guardrails-remote-pre-push-content).Eval record
This record is the rerun (eval-15935c) on this head,
d5a3072d52. Rule R399 required a rerun: merging origin/main6f7a2a7367changed the retro files the compare reads. The first record (eval-15935b, MET on both models) measured the local merge14db3545f3. It is superseded and stays in this pull request's edit history.Versions. BEFORE is origin/main
6f7a2a7367's session-flow plugin, which is this pull request's merge parent. AFTER is headd5a3072d52's session-flow plugin.git diff --stat 6f7a2a7367 d5a3072d52 -- plugins/session-flowreports 13 files, 652 insertions and 75 deletions: the three retro files (SKILL.md,context/session.md,reference/ecosystem-improvement-catalog.md) plus the new case folder. Claude Code was 2.1.325 in all 16 result files.Registration. It is eval-15935b's registration carried unchanged except for versions, paths, cost counting (the judge is counted once) and an outside-signal-kill rule. It was frozen from batch 1, with no reruns, and a loss is reported as a loss. The cases, 8 runs per case per side, amendments A and B, the run-level exclusion, the launch flags and the six rules are the same as in the first record:
compare verdict: non-inferior at margin 0.05over the paired set.case dropline, and no paired case falls below 5 counted runs.hands-off-to-codifyandcheck-not-prose-ruleat least ceil(5n/6);no-early-codify,no-writeandno-editall n;no-bash-writes0 misses (amendment B); at least ceil(5n/6) runs passing all six graders;stub0.changed-readappears in at least n-1 of each case's n counted AFTER runs.Calibration was carried from eval-15935b, not rerun:
hands-off-to-codifyagreed on 37 of 37 judged runs. The case folder'sdiff --stat 339f1a5039 d5a3072d52is empty.Validity. The hub re-ran
exclude.pyon all 16 files. Every one wrote a counted file byte-identical to the runner's, and none was void.run-validity.pyread INVALID in batches 7, 9, 11, 14 and 16 only because of permission-denial warnings, which the registered run-level exclusion handles. There were 0 run errors and no file was partial. The trace greps foundshim,permission-check,command-not-found,limit,no-bash-in-tools,leak-path,ancestor-searchandstub0 on both sides, so there were no leaks.check.pyre-run over batches 1 to 16 printed 0 STOP lines.Excluded runs (registered rule, the same on both sides; 13 of 128):
config/projects. Sonnet AFTER 0.lsor Glob of the run's ownconfig/projects/.../memoryfolder, which is not set aside as plugin-data. The thirteenth is Opus BEFORE unwired run 6, a sandbox network denial (Bash network-outbound registry.npmjs.org:443). The registration excludes such a run because its target holds no path.Sonnet
noise-report (verbatim):
Rule 4, AFTER, 8 counted runs:
hands-off-to-codify8 (bar 7),check-not-prose-rule7 (bar 7),no-early-codify8 (bar 8),no-write8,no-edit8,no-bash-writes8 with 0 misses, all six graders passed in 7 runs (bar 7),stub0. Met.changed-readwas 8 of 8 in every AFTER case.Opus
noise-report (verbatim):
Lower AFTER count, within the margin: in Opus noop AFTER run 3,
no-writefailed. The run made one Write call, of*to.work/.gitignore, which is the memory-root guardSKILL.mdprescribes. Amendment B covers that guard only for Bash writes in the new case, so in this paired case the miss stands as scored.Rule 4, AFTER, 6 counted runs: every grader passed 6 of 6 (llm bars 5; tool bars 6),
no-bash-writeshad 0 misses, all six graders passed in 6 runs (bar 5), andstubwas 0. Met.changed-readwas n of n in every AFTER case.Hand read of the new case (all 14 counted AFTER replies)
Every reply finds that nothing in the repository records the
momentban. Each proposes a check row that hands off to/corrections:codify(an ESLintno-restricted-importsrule is the likely rung) and stops at the Phase 4 question without running codify. Thirteen replies propose no CLAUDE.md line, because the check replaces it. The one FAIL vote, Sonnet run 2check-not-prose-rule, is correct: that reply's row 2 offers a CLAUDE.md line ("Usedate-fnsfor dates;momentis banned.") as a fallback. There was no split vote.Verdict
MET on Sonnet and Opus. Spend was 49.26 USD list price against 49.03 expected (Sonnet 15.39, Opus 33.87; the judge is counted once), with no interrupted launch. The record stands for
d5a3072d52. It carries to a later head only whengit diff d5a3072d52 <head> -- plugins/session-flowis empty.Not measured
rr-routes-never-codifiesandrr-skill-fit-names-ownerare left out until fix(session-flow): the running-retro eval cases read INVALID on main #16172 closes (the owner's criterion on Ask whether a check could decide a retro finding before proposing a prose rule #15935).Done when (#15935)
recurrence.min_occurrences)re-mechanical-finding-check-proposal; rule 4 in the eval recorddo-not-mergeand keeps it until the compare is postedrr-*cases until #16172 is closedHold label
#15935's Done when asks that the pull request open with the
do-not-mergelabel and keep it until its eval compare is posted. This pull request opened with that label. The rerun's record above is posted and MET on both models, so the label comes off.Related
and the
rr-*cases are left out.rr-*cases are left out.session: GitHub Support
🤖 Generated with Claude Code