Skip to content

feat(planning): hand a design principle worth codifying to corrections:codify - #17544

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17174-44623136069-1
Nov 20, 2026
Merged

melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17174-44623136069-1

Conversation

@melodic-automation-lanes

@melodic-automation-lanes melodic-automation-lanes Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Closes #17174

Summary

Opened by the work-resolve-issue lane. The run's own summary:

Closes #17174. /planning:design no longer sends a project-wide principle surfaced in design discussion to the project's rules files by default. Both sites (Phase 5 discussion-round step 4 and the 'Codify rules when discovered' key behavior, which keeps 'immediately') now hand it to /corrections:codify behind the availability gate, followed by the shared strongest-first fallback word for word, with the call form /corrections:codify "<the principle>". The gate-first sentence order matches the sibling /performance:protect. Choice made on review evidence: each site also says to propose the same way, and say codify stopped, when codify stops with no proposal below its recurrence threshold (corrections codify SKILL.md:84, default 2; same handling as performance protect SKILL.md:208-209). A principle surfaced once in a design session would otherwise be dropped. The skill gains no ladder copy, no Selection rules row and no rung list beyond the shared fallback sentence; no enforcement-placing skill is added (AC10). When to suggest it is unchanged. Eval case: no existing case reads the changed text (no file under plugins/planning//evals/ mentions codify, rules files or project-wide principles); the lane ran no eval, and the host steps are tracked in #17200.

Pre-change sentence that picked a mechanism from a private list (plugins/planning/skills/design/SKILL.md, Phase 5 step 4): "When discussion surfaces project-wide principles, suggest codifying them in the project's own rules." (also the 'Codify rules when discovered' key behavior: "When discussion surfaces a project-wide principle, suggest codifying it immediately in the project's own rules files")

Not verified

  • Eval run (before-and-after design case on sonnet): the lane runs no eval; host steps are tracked in #17200
  • Tidy: passes 1-3 had no code lines; pass 4 (write-for-agents) asked for no edit on the listed lines; pass 5 (ai-slop) ran as a manual rubric read only, because the lane's Bash cannot run the detector script detect.sh, and found no tells; tidy made no edits
  • check-affected skipped typos (not installed), comment-hygiene (remote fetch denied), size-check (script missing in the lane) and three validate-plugins steps; markdownlint is skipped by check-changed-skills (CHECK_SKILL_SKIP_MARKDOWNLINT=1); left to the PR's CI
  • The 'codify stopped' sentence at both sites goes beyond the issue's fixed two-sentence fallback; it follows the /performance:protect precedent and can be dropped on review if unwanted

Fix

  • plugins/planning/skills/design/SKILL.md: Phase 5 step 4 and the 'Codify rules when discovered' bullet hand each project-wide principle to /corrections:codify behind the availability gate, add the shared strongest-first fallback and a line for codify stopping below its recurrence threshold, and no…
  • .changes/planning/work-resolve-issue-issue-17174-44623136069-1-69c96450.md: new minor changelog fragment (### Changed) describing the hand-off

Verification

The runner ran each check from the base copy against 89ea71f:

  • scripts/check-changelog-fragments.sh --check: passed
  • scripts/check-changed-skills.sh --merge-base: passed

The run reports:

  • check-changelog-fragments: all 16 fragments valid (run after the final edit)
  • check-changed-skills: CHECK-SKILL design PASS, 0 errors, 7 warnings (all already there except 'body grew 475 -> 489 lines'); SKILL.md 498/500 lines (run after the final edit)
  • check-affected: 14 passed, 9 skipped, 0 failed (run after the final edit)
  • fresh-context review subagent over the whole diff: wording of the gate and fallback matches at both sites, markdown structure intact, fragment accurate; two medium findings (gate placed after an unconditional hand-off; no handling for codify stopping below its threshold), both fixed
  • Grep of plugins/planning//evals/ for codif|rules files|project-wide principle: no match, so no existing eval case reads the changed text
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44623136069

Left out: the items under Not verified.

Related

#17174

Lane-Activity: work-resolve-issue/resolve-issue
@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 89ea71f85a4728aeb8ed13beda10e6123fe80b63: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17544

I found no security issues.

What the PR changes:

  • plugins/planning/skills/design/SKILL.md: Phase 5 step 4 and the "Codify rules when discovered" bullet used to suggest writing a project-wide principle into the project's rules files. They now hand the principle to /corrections:codify when that skill is available. When it isn't, or when codify stops with no proposal, the skill proposes the strongest mechanism itself and says the proposal is unproven.
  • .changes/planning/...69c96450.md: a new changelog fragment.

Instruction-surface check: The diff rewrites a standing instruction in a skill body, so I read it under that lens rather than skipping it as prose. The old rule only suggested codifying a principle. It was not a guardrail and gated no action. The new text still proposes or delegates and adds no autonomous write, publish or external action. It also widens no tool grant, so nothing the old rule prevented now goes unchecked. The /corrections:codify "<the principle>" call form is a skill invocation the model makes in the session, not a shell string, so it adds no injection surface. The protected-class register file was not consulted; I judged the change by its consequences instead.

Other surfaces:

  • No trusted-path file is changed.
  • No plugin manifest is changed.
  • No workflow, token, trust or merge-hold control is changed.
  • No embedded directives appear in the PR context.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 89ea71f85a4728aeb8ed13beda10e6123fe80b63: read 2 of 2 changed file(s); 0 finding(s), 0 as inline comments.

Code review: no findings

The PR changes the two places in plugins/planning/skills/design/SKILL.md that told the skill to put a project-wide principle into the project's rules files: Phase 5 step 4 and the "Codify rules when discovered" bullet. Both now hand the principle to /corrections:codify when it is available, and fall back to the shared strongest-first wording when it is not. It also adds a minor changelog fragment. I read both changed files in full.

Checked against closing issue #17174:

  • Gate plus shared fallback at both sites: met. Both sites use the issue's gate sentence and its fallback word for word, plus the call form /corrections:codify "<the principle>". The "Codify rules when discovered" bullet keeps "immediately".
  • No ladder copy, no Selection rules row, no rung list: met. The only rungs named are the ones inside the shared fallback sentence the issue prescribes.
  • PR body names the eval case that reads the changed text, or says none does: met. The body says no existing case reads it.
  • Changelog fragment under .changes/planning/: met. bump: minor under ### Changed matches a behavior change to a skill.
  • AC10, no new enforcement-placing skill: met.
  • What the issue does not cover: the added sentence for when codify stops below its recurrence threshold goes beyond the issue's two-sentence fallback. The PR body discloses this. It follows the sibling text in plugins/performance/skills/protect/SKILL.md, and codify's own SKILL.md:84 confirms that it stops with no proposal below the threshold, so I don't count it as a finding.
  • Tests: these are prose criteria with no automated test. An eval is the only thing that could catch a regression; the issue places it outside the lane, with host steps tracked in chore: run the host steps for the nine #16029 follow-ons #17200.

Author-claimed and not verified by me: the changelog-fragment and changed-skills check results, and the 498/500 line count for SKILL.md.

Loosened checks: the wrapper gave no loosened_check_verdict: or loosened_check_patterns: lines, so I used fail with no consumer entries. It gave no loosened_check_decision_record: line either, so the citation requirement was not checked. The diff is skill prose and a changelog fragment and loosens no check.

Loosened-check verdict: fail (default, no wrapper input); patterns: 0

Spend: none. The change adds no lane runs and no paid resources.

Verifier dropped 0 of 0 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path is about to arm native auto-merge at head 89ea71f85a4728aeb8ed13beda10e6123fe80b63, the head its arming checks judged. The arm fails if the head moves first.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=89ea71f85a4728aeb8ed13beda10e6123fe80b63 rubric=10.4.1 rater=claude-opus-5-5 checker=claude-opus-5-5

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 20, 2026
Merged via the queue into main with commit 273cc8c Nov 20, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17174-44623136069-1 branch November 20, 2026 00:52
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 273cc8ca9f763ef0a2591d7bcd2c55004cbc64d0; later checks count it verified from this comment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(planning): hand a design principle worth codifying to /corrections:codify

0 participants