Repository navigation
test(repo-fleet-hygiene): add outcome eval cases and frozen trigger probes - #12051
Conversation
…robes Refs: #6613 Co-Authored-By: Claude Opus 5.5 <[email protected]>
…s failed rejects-unknown-flag now also accepts "isn't a flag this skill accepts", and shows-action-rows accepts the checkout row written as "switch to the default branch". Both observed replies are pass samples; both baseline replies still fail, under Python and node. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis 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 #12051, incremental since
|
|
claude-review reviewed Code review (incremental, 89daa4e..d8e5bf7)No findings. I read every hunk of both files in scope: What changed. The
The samples file gains three pass samples: the comma one-liner, a Sample trace (by hand, not run). Every sample gets the verdict the file claims:
Correction to my last round. I said the proposed alternative would not pass the semicolon one-liner on its own. That was wrong. The owner's reply is right: the first branch matches Prior findings and settled threads.
Not verified by me. I have no shell, so I ran neither the regex nor Spend (not a finding). The eval case still uses prepaid API credit through |
The shows-action-rows grader passed a reply naming only fleet/alpha,
because alpha's prose row ("switch to the default branch, then pull
--ff-only") holds both halves of the old pair. Require alpha's
checkout row and beta's ff-only row on their own lines, and add the
one-row prose reply and an untied action list as fail samples.
Indent the fixture's fleet config with spaces so editorconfig passes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A reply showing only alpha's row with a parenthetical naming beta
("then pull --ff-only (fleet/beta is already current)") still passed
shows-action-rows. Require beta's ff-only in a line or
semicolon-separated segment that does not name alpha, and add that
reply as a fail sample and a one-line two-row reply as a pass sample.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Treating ";" as a row end failed correct replies: two rows joined by a comma on one line, or a semicolon inside a row. Beta's "beta ... ff-only" order now stops at the next "alpha" instead; only the "ff-only ... beta" order needs a line that does not name alpha. Alpha's row is line-based again. Adds those three replies as pass samples and a beta-first one-row reply as a fail sample. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Post-merge mutation testingKilled 3, survived 4, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
Refs: #6613
Refs: #6476
Summary
Adds outcome eval cases for the
repo-fleet-hygieneplugin'saudit,apply,setupandsyncskills, and a frozen trigger-probe file foraudit. The smoke pass caught two graders failing correct replies, and both are fixed here; review then caught one of those fixes passing a one-row reply, and that is fixed too. No skill text changes, and no concise rewrite ships. #6613 stays open for its measured pass.Fix
plugins/repo-fleet-hygiene/evals/: six outcome cases, all deterministic, with offline pass and fail samples for every grader.evals/fixtures/fleet-repos.shwrites a made-up fleet into the workspace. Every remote is a bare repository under./remotes, reached by a relative path, and the operator's global Git config is kept out, so nothing touches the network or a real checkout.audit-fleet-plain-words: "find the merged branches and dead worktrees across ./fleet and clean them up". The run routes to the fleet audit, mutates nothing, reports the evidence gap, and hands deletion toapply.audit-near-miss-one-repo: the same chores in a single checkout, a near miss. The fleet audit does not fire.audit-rejects-unknown-flag:/repo-fleet-hygiene:audit fleet --prune-merged. The reply rejects the unknown flag.apply-requires-plan-file:apply --apply --yeswith no plan file. The reply names the plan file and the audit that produces it.setup-skip-wants-extend:setup apply --skip third_party, "on top of the usual directories". The reply names the extend form, and no config write, edit or audit run happens.sync-apply-needs-consent:sync fleet --apply. The run never passes an unconfirmed--yesand never syncs by hand. It shows the repository count and both action rows, each tied to its repository, then asks to go ahead.plugins/repo-fleet-hygiene/probes/audit.json: 20 frozen trigger queries (10 positive, 10 negative; 12 train, 8 validation).45f2252579), andshows-action-rowsthen tied each row to its repository (9b5b8756b8,89daa4e753,d8e5bf7226). See Verification.9b5b8756b8).bump: none: no skill text changed.Verification
Smoke pass:
claude plugin eval(Claude Code 2.1.316), Opus under test, Opus judge (no judge grader ran),--runs 1 -j 2 --scaffold --allow-tools Bash Write Edit --max-cost-usd 5, with a short privateTMPDIR.Validity:
run-validity.py --scaffoldedreturnedverdict: VALID. There were no permission denials and no errors, and every trace is onclaude-opus-5-5. Two warnings: "skill fired" (slash-invoked cases carry no skill-fired grader; two no-trigger controls are exempt), and the ceiling (the baseline scored 1.00 onaudit-near-miss-one-repo). The delta over the other five cases is +0.49.audit-rejects-unknown-flag/rejects-unknown-flag, with plugin: grader defect, fixed. The reply opened "--prune-mergedisn't a flag this skill accepts" and ran nothing. The grader knew "isn't a recognized/supported flag" but not "isn't a flag this skill accepts". It now accepts that form.sync-apply-needs-consent/shows-action-rows, with plugin: grader defect, fixed. The reply showed the dry-run plan as a table, withfleet/alpha"Switch to the default branch, thenpull --ff-only" andfleet/beta"pull --ff-only". The grader required the literal row namecheckout-default. It now also accepts "switch to / check out the default branch" (capitalized or not; the grader is case-sensitive).audit-fleet-plain-words,audit-rejects-unknown-flag), named no plan file or audit (apply-requires-plan-file), and showed no action rows and asked nothing (sync-apply-needs-consent).9b5b8756b8,89daa4e753,d8e5bf7226): the widenedshows-action-rowspassed a reply showing only alpha's row, because that row's prose ("switch to the default branch, thenpull --ff-only") held both halves of the old pair. The grader is now two lookaheads: alpha with its checkout action on one line, and beta withff-only, eitherbetathenff-onlywith noalphabetween, orff-onlythenbetaon a line that does not name alpha. Graded with nodeRegExpover the samples: must-pass table, reversed list, the observed smoke reply, a beta-first prose list, one-line two-row replies joined by;or,, and rows with a;inside all match; must-fail empty,fleet/alpha: checkout-default, the one-row prose reply, one-row replies that name beta without an action of its own, an untied action list and the paraphrase all miss.git rev-parse d8e5bf7226:plugins/repo-fleet-hygiene/evalsgives365f946ac5ff3799443b7acbd7eb1b00d0c834b0, the suite with every grader fix. The smoke pass ran ondadb619ec2(188921acb6)./evals:validate0 FAIL;measure-invocation.sh validatePASS;check-affected.sh --testspassed on each commit (pre-push hook);gitleaks gitover the branch: no leaks.setup/SKILL.md:17-22andaudit/SKILL.md:82-87disagree on what happens with no config file.Related
🤖 Generated with Claude Code