Skip to content

feat(docs-hygiene): hand an every-time rule's mechanism in write-for-agents to corrections:codify - #17417

Merged
melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17159-44482869671-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 3 commits into
mainfrom
work-resolve-issue/issue-17159-44482869671-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #17159

Summary

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

write-for-agents no longer picks the mechanism for a rule that must hold every time from its own list. Both sites now name the call /corrections:codify "<the rule>" for the user. When that skill is available they hand it the mechanism choice; when it is not, they give the shared strongest-first fallback (word for word as in instruction-placement's routing-rubric.md and harness-memory's audit fix.md) and say the proposal is unproven. The kept text: 'a line that keeps getting missed means the file needs to be shorter' (SKILL.md) and 'These surfaces are context, not enforcement' (agent-doc-surfaces.md). Sentences that picked a mechanism from a private list before the change: SKILL.md:166 "A rule that must hold every time belongs in a hook, deny rule or CI check; a line that keeps getting missed means the file needs to be shorter." and reference/agent-doc-surfaces.md:51-52 "These surfaces are context, not enforcement: a rule that must be mechanically guaranteed belongs in a hook or permission policy, not prose." No ladder copy, Selection rules row or rung list was added, and no new enforcement-placing skill (AC10). Existing eval case whose run reads the changed text: plugins/docs-hygiene/evals/wfa-path-scoped-migration-rule (its prompt carries the every-time rule 'NEVER EVER edit a migration that has already been merged to main', and the run loads write-for-agents' SKILL.md, which holds the edited paragraph). The skill's own skills/write-for-agents/evals/evals.json has no case that exercises an every-time rule. The lane ran no eval.

Not verified

  • Done-when items 3 and 4 (PR body quote recheck and the new corrections stand-in eval case) are person checks per the refinement; not done by the lane. The quoted pre-change sentences are in the summary for the PR body.
  • No eval run (the issue says the lane runs no eval; the host session runs it under the do-not-merge eval hold).
  • check-affected skipped comment-hygiene (fetch of a ci-workflows action failed: network denied), size-check (script missing in the lane), typos (not installed), and the validate-plugins and changed-skills sub-checks that run checked-tree code; left to the PR's CI.
  • tidy pass 5: the ai-slop deterministic detector (detect.sh) was not run because the lane's Bash allows only the named wrappers; only the rubric read ran.
  • verify (build and tests): no build or test applies to these markdown-only changes; the suites run in the PR's CI.

Fix

  • plugins/docs-hygiene/skills/write-for-agents/SKILL.md: in 'Be strict with precise words', the hook/deny-rule/CI-check clause is replaced by naming /corrections:codify "<the rule>" behind the availability gate, followed by the shared strongest-first fallback. The 'file needs to be shorter'…
  • plugins/docs-hygiene/skills/write-for-agents/reference/agent-doc-surfaces.md: the 'hook or permission policy' bullet keeps 'context, not enforcement' and now names the codify call for the user, with the same gate and fallback.
  • .changes/docs-hygiene/work-resolve-issue-issue-17159-44482869671-1-9c3a392f.md: new changelog fragment (bump: minor, ### Changed) describing the change.

Verification

The runner ran each check from the base copy against e126413:

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

The run reports:

  • check-changelog-fragments: all 21 fragments valid (after I added the missing ### Changed section to the first draft)
  • check-changed-skills: write-for-agents PASS, 0 errors and 4 warnings (description length, body size and body growth 215->221 lines, which existed before or come from the required fallback text, plus no Gotchas surface)
  • check-affected: 14 passed, 9 skipped, 0 failed over 3 changed files
  • fresh-context review subagent: no blocking problems; it reported 2 minor findings (agent-doc-surfaces.md did not say the call is named for the user; the fragment implied the call is named only when codify is available), both fixed
  • fallback and gate wording compared by Grep against plugins/instruction-placement/context/routing-rubric.md:88-93 and plugins/harness-memory/skills/audit/context/fix.md:120-122: identical
  • tidy-diff: write-for-agents and write-for-humans passes applied (one sentence in the fragment split in two); ai-slop rubric read found no tells in the changed lines
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44482869671

Left out: the items under Not verified.

Related

#17159

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

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 55d35085ee82afd2bf4dd16d74ccbe4609f9ffe9: read 3 of 3 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #17417

No security issues found. I read every hunk of all three changed files in the full diff:

  • .changes/docs-hygiene/work-resolve-issue-issue-17159-44482869671-1-9c3a392f.md
  • plugins/docs-hygiene/skills/write-for-agents/SKILL.md
  • plugins/docs-hygiene/skills/write-for-agents/reference/agent-doc-surfaces.md

Scope. None of the changed files matches a trusted-path glob. The diff has no changes to a plugin manifest, a workflow, a trust control, a merge hold, a token scope or the kill switch.

Instruction-surface lens. The diff changes one piece of authoring guidance, in two places:

  • Old text: a rule that must hold every time "belongs in a hook, deny rule or CI check" (SKILL.md) or "in a hook or permission policy, not prose" (agent-doc-surfaces.md).
  • New text: name /corrections:codify "<the rule>" for the user. When that skill is available, let it choose the mechanism. Otherwise, propose the strongest mechanism first and say the proposal is unproven. The order is: make the mistake impossible, then a check that blocks it, then a test, and an instruction only as a last resort.

I judged this by consequence. The removed sentence told authors where to put a rule; it never stopped the agent from taking any action. The new text keeps "These surfaces are context, not enforcement" and still sends authors to mechanical enforcement first. No action that the old text prevented can now happen without a check, so this is not a finding. I did not read docs/contracts/instruction-exception-register/README.md, so I did not check the change against its list of protected classes.

PR context. The pull request description contains no instructions aimed at this review lane.

Prior findings. This lane already reviewed an earlier head (e126413c) and found nothing, so this review reported only CRITICAL and IMPORTANT findings (blocking only). There is no new CRITICAL or IMPORTANT finding.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 55d35085ee82afd2bf4dd16d74ccbe4609f9ffe9: read 3 of 3 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #17417 (write-for-agents hands every-time rules to /corrections:codify)

This lane already reviewed an earlier head, so this review reports blocking findings only. The new head 55d35085 is a merge of main, and the PR's diff is the same as at e126413c. I read every hunk of all 3 changed files.

Blocking finding (applies to the whole PR, so no changed line can carry it)

  1. Done-when item 4 of feat(docs-hygiene): hand an every-time rule's mechanism in write-for-agents to /corrections:codify #17159 is still not met. The item reads: "One new eval case loads a corrections stand-in plugin, in the shape of session-flow's re-mechanical-finding-check-proposal case, and grades that an every-time rule is written in plain words and handed to /corrections:codify, with no mechanism picked by the skill."
    • No case exists. The diff adds no eval case. A Grep for codify under plugins/docs-hygiene finds only the two edited skill files and extract-ssot/actions/batch.md, so there is no such case on the branch either.
    • Not a person check. The PR body calls this item a "person check per the refinement", but the issue does not say that. Its host-session section covers only running the eval. Writing the case is in the issue's Done-when list.
    • Nothing would catch a regression. No test in the PR or the repository would fail if the changed paragraph went back to naming a hook or CI check, or dropped the "unproven" sentence. The paragraph is at SKILL.md#L166-L173 and the second site at agent-doc-surfaces.md#L51-L58.
    • The eval hold needs it. The hold that comes next has no case to measure without one.
    • Fix: add a case under plugins/docs-hygiene/evals/ that loads a corrections stand-in. Its graders should check that (a) the rule is written in plain words and /corrections:codify is named, and (b) the skill itself names no hook, deny rule, CI check or permission policy.
    • This repeats this lane's earlier summary finding (issuecomment-7003546070). It had no line anchor, so it is restated here.

Other notes

  • Met (checked with Read and Grep):
    • Done-when items 1, 2 and AC10. Both sites keep the text the issue says stays. Both name /corrections:codify "<the rule>" for the user. The gate sentence and fallback match the issue's "Decisions" wording word for word. No mechanism list, ladder copy, Selection rules row or rung list was added.
    • Done-when item 6: the changelog fragment exists, and bump: minor fits the change.
  • Met in the PR body: Done-when items 3 and 5. The body quotes both removed sentences and names wfa-path-scoped-migration-rule.
  • Not verified: the build, test and check results in the PR body are the author's claims; I did not run them.
  • Embedded instructions: none in the PR context are aimed at this lane.
  • Spend: the eval hold that follows uses prepaid model usage, up to about 15 runs. That is not a hold.
  • Loosened check: Loosened-check verdict: fail. That is the default, because the wrapper wrote no verdict or patterns lines, so there are no consumer patterns. There was also no decision-record line, so I did not check the citation requirement. The change loosens no check.
  • Security: the diff is markdown prose only, so it has no security surface.

Verifier dropped 0 of 1 candidates.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head e126413c7c687687bf7310d29734a6b1551fc5db, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=e126413c7c687687bf7310d29734a6b1551fc5db rubric=10.4.0 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 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 19, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 830572af105597352d196c57e8972ff583362b39. No person needs to act: a lane clears this reason, and the next scheduled run judges it again.

pr-merge's gate refuses its verifier verdict (verify:missing)

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 55d35085ee82afd2bf4dd16d74ccbe4609f9ffe9, the head its arming checks judged.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=55d35085ee82afd2bf4dd16d74ccbe4609f9ffe9 rubric=10.4.0 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 19, 2026
Merged via the queue into main with commit c6addb3 Nov 19, 2026
45 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17159-44482869671-1 branch November 19, 2026 18:36
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit c6addb3cc371a5a7334de6eb3d305489f424ac8c; 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(docs-hygiene): hand an every-time rule's mechanism in write-for-agents to /corrections:codify

1 participant