Repository navigation
fix(corrections): codify ignores trailing punctuation on the action word - #17799
Conversation
A dictated `taste.` or `rules,` ran the default action because the action word had to match exactly. The first unquoted word now selects an action once a trailing `.`, `,`, `:`, `;`, `!` or `?` is stripped, for every action, and the flags after it are read the same way. A quoted description still runs the default action. Two eval cases: `rules.` runs the rules action, and `note. --applied` still reads the flag. Closes #17031 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Held for the targeted before-and-after eval; session 7be98497 runs it and posts the eval-pair record. |
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. |
Lane run report
Run 44878487354, attempt 1
Failed GitHub API callsNo failed call recorded by the run job's scripts. |
|
claude-security-review reviewed Security review: PR #17799,
|
|
claude-review reviewed Code review: no findingsThe pull request changes the codify routing rule so that a trailing Checked against closing issue #17031 (confirmed done-when from the 2026-11-20 comment):
Both new cases use the Rules checked:
Loosened checks: none. The change widens how an argument is routed; it does not change a test, lint rule or CI check. Embedded text: none found in the PR context. The Spend: the two new eval cases use eval-run usage (prepaid or subscription) when the host session or eval lane runs them, at up to 12 and 30 turns. No billing change. Advisory and manifest lines (1)
Verifier dropped 0 of 0 candidates. |
Targeted eval result: PASSOne targeted case per changed skill, run on the old text (before) and the new text (after), on the trailing-period cases rise from BEFORE (rules. and note. run the default action) to AFTER (they run the rules and note actions), with at least 2 of 3 AFTER runs passing each target, and no case loses (the quoted-note control keeps the default action) Scope: behaviour change, not a cut (#17031): the codify routing paragraph strips a trailing . , : ; ! or ? from the first unquoted word before matching an action, and reads the action's flags after it. Targets: p17799-rules-period ledger-reconciled and p17799-note-period row-is-applied are expected to fail on BEFORE (the punctuated word runs the default action) and pass on AFTER. No-loss: every grader of every case, the quoted-note control included. SKILL.md is the one changed file and loads with the skill.
Passing runs per grader, per side:
Graders that cannot show a loss, because they failed on the old text in every run:
Changed files the compare runs opened, per case and side:
Rows these runs measured (the row's file opened in at least 2 of 3 runs on each side, or loaded with the skill or agent):
Rows these runs did not measure:
Verdicts:
Cost: 2.48 USD (smoke and compare, the runs' The cases live outside the repository; their full text: The 3 cases: prompt.md and case.yaml
|
|
The hold on this pull request waits only on eval evidence. The label was re-added at 2026-11-21T07:05Z after the ready flip, so this line restates the eval reason after that label event. The VALID PASS record for head 1fcae8d is #17799 (comment). 🤖 Generated with Claude Code |
|
The |
Closes #17031
Summary
/corrections:codifyran the default action for a dictatedtaste.orrules,because the first word had to equal the action word exactly. The routing rule now strips a trailing.,,,:,;,!or?from the first unquoted word before matching it against every action in the Actions table,tasteincluded, and reads each action's flags right after it the same way. A quoted description that starts with an action word still runs the default action.The before-and-after eval (#17719) is not part of this pull request; the host session runs it and posts the eval-pair record.
Fix
plugins/corrections/skills/codify/SKILL.md: the action-routing paragraph names the stripped characters, givestaste.andrules,as examples, keeps the quoted-description rule, and says the flags (note's--applied,reviews'--prand--repo,issues'--labeland--limit,count-checks'--since,--untiland--bucket) are read after a punctuated action word with the same value patterns.plugins/corrections/evals/codify-trailing-period-runs-the-rules-action/:/corrections:codify rules. AGENTS.mdover a two-rule AGENTS.md. Graders:rules-ledger.mjsruns (the default action never runs it), writes stay under.work/codify/, and an llm grader checks the rules action ran and not the default action.plugins/corrections/evals/codify-note-trailing-period-reads-applied-flag/:/corrections:codify note. --applied "..." #42. Graders: the row written under.work/codify/notes/carries"kind": "applied"andsource_id#42, and nothing is written elsewhere.plugins/corrections/evals/codify-quoted-note-keyword-is-default-action/is unchanged; no case is added underplugins/corrections/skills/codify/evals/..changes/corrections/: patch fragment.Verification
/evals:validate(validate-cases.py plugins/corrections/evals): no FAIL. The two new cases carry only the suite-wide WARN thatallowed_toolsneeds--allow-tools; their deterministic graders sort their samples correctly.scripts/check-changelog-fragments.sh --check: all fragments valid.scripts/check-affected.sh: 19 passed, 1 skipped, 0 failed.Eval
Registration
eval-pr-17799(#17719), head1fcae8d91a3fbda42c28da76a404b1a6cc3c0b2d, beforeb69c5e2f9aef19a38a3efe6116f5df957b523dd4(merge base),sonnet, 3 runs a side, Claude Code 2.1.330. Validity: before arm VALID, after arm VALID. Overall PASS, every registered target met. Record: issuecomment-7059356565.ledger-reconciled,buffer-appendedandrow-is-appliedcannot show a loss: the old text failed them in every run (0/3), as expected for a behaviour change, since the old routing sendsrules.andnote.to the default action. The no-loss check rests on the other graders, the quoted-note control included.Related
tasteand surfaced the miss.🤖 Generated with Claude Code