Skip to content

corrections: codify ignores trailing punctuation on the action word #17031

Closed

Description

@kyle-sexton

Problem

/corrections:codify runs an action only when the first word of its arguments is exactly the action word (plugins/corrections/skills/codify/SKILL.md:39-41: "An action runs only when the first word of $ARGUMENTS is exactly findings, rules, ... unquoted. Anything else ... is the default action."). A dictated request often ends the action word with punctuation, so /corrections:codify taste. I fixed up the pricing card ... runs the default action and never reaches the action the person named.

Evidence

Pull request 16979 adds a taste action. Its own eval case began taste. with a period; in a host eval at 3 runs a side, no run reached the new action, and each reply said the trailing period stopped the match.

Decision

The owner decided on 2026-11-18 that codify ignores trailing punctuation on the action word, for every codify action, in its own pull request (owner-decisions record, GitHub Work hop 13 Q59). The 2026-11-20 decision comment below sets the confirmed done-when and the eval cases' location.

Done when

  • The first unquoted word of the arguments selects an action when it equals an action word after trailing punctuation is stripped (at least ., ,, :, ;, ! and ?), for every action the skill lists, taste included.
  • A quoted description that starts with an action word still runs the default action, as today.
  • The flags read right after an action word (note's --applied, reviews' --pr and --repo, issues' --label and --limit) are still read when the action word carried trailing punctuation.
  • An eval case invokes an action with a trailing period (for example rules. or taste.) and checks that the action ran and not the default action.

Activity

  1. added
    needs-triage
    on Nov 18, 2026
  2. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    Size: Small
    Complexity: Low
    Uncertainty: Known
    Flags: none
    Blocked by: none
    Blast radius: the codify skill's SKILL.md and two new eval case folders under plugins/corrections/evals/; read by anyone running /corrections:codify and by the eval runs.
    Reversible: yes; revert the SKILL.md edit and delete the two eval folders.
    Open questions: none
    Understood: /corrections:codify should treat an action word followed by trailing punctuation (for example taste. or rules,) as that action, keep flags readable after it, and keep a quoted description that starts with an action word on the default action.

    Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.

    The lane builds everything except item 8. Item 8, the before-and-after eval run, moves to host-run child #17719, and this issue carries eval-gated: the lane PR opens with do-not-merge and a reason=eval hold, and the child's session releases it with an eval-pair record on the PR head.

    [quote truncated; the full decision is at the link]

    #17031 (comment)

    That decision settles the open questions. The remaining work is a bounded edit with exact done-when items (confirmed in the later comment). #17719 carries the host-run eval and does not block building the change. #16979 added taste and exposed the miss but did not fix it; no merged fix found.

    Automated triage. A maintainer reviews it.

  3. removed
    needs-triage
    on Nov 18, 2026
  4. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Not admitted to the issue lane: its done-when asks for what an unattended lane run cannot perform: item 17 (eval: "The before-and-after eval run is not part of this work; it lives in #17719 an..."); recommended split: keep the other items here as the admissible issue and move these to a child issue for the host queue (host-run). Admission takes the issue once each of those is met, when intake triages it again (.github/actions/resolve-config/admission-rules.json).

  5. melodic-automation-lanes commented on Nov 18, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: /corrections:codify selects an action when the first unquoted word of its arguments equals an action word after trailing punctuation is stripped, with quoted descriptions and the action flags behaving as today.

    Acceptance criteria

    • plugins/corrections/skills/codify/SKILL.md says the first unquoted word of $ARGUMENTS selects an action when it equals findings, rules, reviews, issues, preferences, note, group or count-checks after trailing punctuation is stripped, and names at least . , : ; ! ? as the stripped characters
    • The SKILL.md rule applies to every action in the Actions table (SKILL.md:27-37), and to taste once 16979 has merged and added it to that table
    • SKILL.md still says a quoted description that starts with an action word runs the default action
    • SKILL.md says note's --applied, reviews' --pr and --repo, issues' --label and --limit (and count-checks' --since, --until, --bucket) are still read right after an action word that carried trailing punctuation, with the same value patterns as SKILL.md:43-48
    • An eval case in plugins/corrections/skills/codify/evals/evals.json (created if absent, following the shape of other skills' evals.json) invokes an action with a trailing period, such as rules. or taste., and its expectation checks the named action ran and not the default action
    • An eval case covers a flag after a punctuated action word, such as note., with --applied, and checks the flag was read
    • An eval case covers a quoted description starting with an action word and checks the default action ran
    • A before-and-after eval run is recorded: the trailing-period case fails on the unchanged SKILL.md and passes on the changed one, with both outputs in the pull request body
    • The change is its own pull request and lands after 16979 merges

    External state: none

    Dependencies

    • Pull request 16979 (adds the taste action): both edit plugins/corrections/skills/codify/SKILL.md, so build after it merges and include taste in the covered actions

    Related work

    Sources read

    • plugins/corrections/skills/codify/SKILL.md:39-41: an action runs only when the first word of $ARGUMENTS is exactly an action word, unquoted; anything else, including a quoted description, is the default action
    • plugins/corrections/skills/codify/SKILL.md:41-48: only the action word and the listed unquoted flags are read as choices, with value patterns, and the rest stays data
    • plugins/corrections/skills/codify/SKILL.md:27-37: the Actions table lists findings, rules, reviews, issues, preferences, note, group and count-checks, and no taste yet
    • plugins/corrections/skills/codify/: no evals directory exists yet; other skills keep evals at skills/<name>/evals/evals.json, e.g. plugins/session-flow/skills/retro/evals/evals.json

    Automated refinement by the lanes App. Intake triages the issue again with it.

  6. github-actions commented on Nov 18, 2026

    @github-actions
    Contributor

    The triage sweep dispatched intake triage for this issue (dispatch 1; 2 runs that reach intake, or 6 dispatches, hand it to a maintainer).

  7. kyle-sexton commented on Nov 21, 2026

    @kyle-sexton
    MemberAuthor

    Decision recorded. Owner, 2026-11-20, typed in the owning session (verbatim): "I want to make sure that the recommendations are grounded in facts, data, metrics, and research from the latest consensus-based research from official, authoritative, and trusted sources, and just go with the recommendations there." The recommendation was checked against the code at origin/main and current official sources before this record; the decision below is the grounded one.

    The lane builds everything except item 8. Item 8, the before-and-after eval run, moves to host-run child #17719, and this issue carries eval-gated: the lane PR opens with do-not-merge and a reason=eval hold, and the child's session releases it with an eval-pair record on the PR head.

    Corrections to the refinement:

    • (a) The new eval cases go under plugins/corrections/evals/<case-name>/ as case.yaml plus prompt.md (and samples/ as needed), in the shape of the existing codify cases, not in skills/codify/evals/evals.json.
    • (b) The quoted-description case already exists as codify-quoted-note-keyword-is-default-action: keep it passing, and add no duplicate.
    • (c) feat(corrections): add a taste action to codify for a session's design corrections #16979 has merged, so taste is in scope now.

    A refinement that restates item 8 is superseded by this comment: item 8 lives in #17719.

    Basis

    • plugins/corrections/skills/codify/SKILL.md:35 (taste row) and :40-41 ("exactly ... taste ... unquoted"), at origin/main.
    • git ls-tree origin/main -- plugins/corrections/evals: the codify cases are case.yaml/prompt.md folders, including codify-quoted-note-keyword-is-default-action/; there is no skills/codify/evals/.
    • docs/contracts/loop-lane/README.md:563-573 at origin/main: work-resolve-issue opens a lane PR whose issue carries eval-gated with do-not-merge and a reason=eval comment, released by an eval-pair record.
  8. 4 remaining items

  9. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: /corrections:codify selects an action when the first unquoted argument word equals an action word after trailing punctuation is stripped, with flags still read and quoted descriptions still defaulting, and SKILL.md and two new eval cases show it.

    Acceptance criteria

    • plugins/corrections/skills/codify/SKILL.md (rule near lines 40-47) says the first unquoted word of $ARGUMENTS selects an action when it equals an action word after trailing punctuation is stripped, naming . , : ; ! and ? as stripped characters.
    • That rule covers every action in the SKILL.md Actions table, taste included.
    • SKILL.md still says a quoted description that starts with an action word runs the default action.
    • SKILL.md says the flags read right after an action word (note --applied, reviews --pr and --repo, issues --label and --limit, count-checks --since, --until and --bucket) are still read when the action word carried trailing punctuation, with the same value patterns.
    • A new folder under plugins/corrections/evals/ with case.yaml and prompt.md, shaped like existing codify cases, invokes an action with a trailing period (rules. or taste.) and its graders check the named action ran and not the default action.
    • A second new folder under plugins/corrections/evals/ covers a flag after a punctuated action word (note. with --applied) and its graders check the flag was read.
    • plugins/corrections/evals/codify-quoted-note-keyword-is-default-action/ is kept unchanged and no new case duplicates it.
    • No case is added under plugins/corrections/skills/codify/evals/.
    • The before-and-after eval run is not part of this build; it is host-run child #​17719 and the PR is held by eval-gated.

    External state: none

    Dependencies

    • #​17719: host-run before-and-after eval releases the eval-gated PR hold with an eval-pair record; the build does not wait on it to open the PR.

    Related work

    Sources read

    • plugins/corrections/skills/codify/SKILL.md:34-47: Actions table, the exact-match rule, and the flags read right after the action word (note --applied, count-checks --since/--until/--bucket)
    • plugins/corrections/evals/codify-quoted-note-keyword-is-default-action/: existing case.yaml and prompt.md for the quoted-description case
    • plugins/corrections/evals/: codify cases are folders with case.yaml, prompt.md and scaffold.sh, not skills/codify/evals
    • refine-data/context.json: the 2026-11-20 decision and confirmed done-when comments settle the scope and eval location

    Automated refinement by the lanes App. Intake triages the issue again with it.

  10. melodic-automation-lanes commented on Nov 21, 2026

    @melodic-automation-lanes
    Contributor

    Refinement. A read-only run explored this repository, searched its issues and pull requests, and read the allowed docs to draft what follows. On an issue a listed human filed, it counts as the issue's spec once posted, while unedited; it is still model text, so check it.

    Intended outcome: Codify's SKILL.md selects an action when the first unquoted word equals an action word after trailing punctuation is stripped, flags still read, with two new eval case folders under plugins/corrections/evals/.

    Acceptance criteria

    • plugins/corrections/skills/codify/SKILL.md says the first unquoted word of $ARGUMENTS selects an action when it equals an action word after trailing punctuation is stripped, and names at least . , : ; ! and ? as the stripped characters.
    • That rule covers every action in the SKILL.md Actions table (findings, rules, reviews, issues, preferences, taste, note, group, count-checks), taste included.
    • SKILL.md still says a quoted description that starts with an action word runs the default action.
    • SKILL.md says the flags read right after an action word (note's --applied, reviews' --pr and --repo, issues' --label and --limit, count-checks' --since, --until and --bucket) are still read when the action word carried trailing punctuation, with the same value patterns.
    • A new folder under plugins/corrections/evals/ has case.yaml and prompt.md in the shape of existing codify cases, invokes an action with a trailing period such as rules. or taste., and its graders check the named action ran and not the default action.
    • A second new folder under plugins/corrections/evals/ covers a flag after a punctuated action word, such as note. with --applied, and its graders check the flag was read.
    • plugins/corrections/evals/codify-quoted-note-keyword-is-default-action/ is kept unchanged and no new case duplicates it.
    • No case is added under plugins/corrections/skills/codify/evals/.
    • The before-and-after eval run is not part of this work; it lives in #​17719 and the PR carries the eval-gated do-not-merge hold.

    External state: none

    Dependencies

    • #​17719: host-run before-and-after eval; releases the eval-gated hold on the lane PR, does not block building the change.

    Related work

    Sources read

    • plugins/corrections/skills/codify/SKILL.md:40-49: action runs only when first word of $ARGUMENTS is exactly an action word, unquoted; flag value patterns listed here.
    • plugins/corrections/skills/codify/SKILL.md:27-38: Actions table lists nine actions including taste and count-checks.
    • plugins/corrections/evals/codify-quoted-note-keyword-is-default-action/case.yaml:1-18: existing quoted-keyword case with llm and tool_used graders, no execution block.
    • plugins/corrections/evals/codify-note-applied-kind/case.yaml:1-27: model for a flag case with execution prompt and a Write tool_used grader.

    Automated refinement by the lanes App. Intake triages the issue again with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Fields

    Work status

    confirmed

    Priority

    medium

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions