Skip to content

feat(harness-config): hand mechanism choices in three instruction skills to corrections:codify - #17326

Merged
melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-17158-44424218236-1
Nov 19, 2026
Merged

melodic-automation-lanes[bot] merged 5 commits into
mainfrom
work-resolve-issue/issue-17158-44424218236-1

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17158

Summary

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

audit-instructions (I5 Remediate and I15's recurring-conflict route), audit-prompting-postures (a new 'Proposal when MISSING' line on P7, pointed to from SKILL.md Phase C) and draft-auto-mode-rules (Phase 2 item 1) no longer pick from their own mechanism lists. When /corrections:codify is available they hand it the choice, using the shared gate sentence, and otherwise they use the shared strongest-first fallback word for word. Detection, P7 presence judging (a gate still counts as PRESENT), I5's deletion and hold rules, and draft-auto-mode-rules' hard_deny second layer and permission-rule-syntax pointer are unchanged. No ladder copy, Selection rules row or extra rung list was added, and no enforcement-placing skill was added (AC10).

Call forms: I5 names /corrections:codify "<the rule>" or /corrections:codify rules <file>. I left out findings <file> because codify's findings action needs a type: review-findings file, and audit-instructions persists one only for I28-I33, never for I5. draft-auto-mode-rules says to name the call for the user to run and never make it, because the skill's contract is that it writes nothing and never chains into another tool. I5's "once the check exists, the prose goes" now requires a check that meets the Enforced bar. The old conversion target was always a blocking check, and the new options include a test or an instruction.

Eval cases that read the changed text (the lane ran no eval): audit-instructions: ai-enforced-step-flagged reads I5 Remediate (step 8 delete-enforced). ai-cross-surface-conflict reads I15's Remediate, but its scenario is a single conflict, so the recurring-conflict sentence may not come into play. audit-prompting-postures: pp-destructive-missing-gate reads the MISSING P7 proposal. Its proposal-as-diff grader expects a fenced diff, which is a risk if a run without codify proposes a gate instead of a confirmation line. pp-script-gate-present reads only the presence rule, which did not change. draft-auto-mode-rules: none confirmed. I found no case whose interview answer is an action that must never happen. dr-compose-paste-ready and dr-uncheckable-condition are the nearest, but I did not confirm that either reaches Phase 2 item 1.

Not verified

  • Tidy pass 5 (ai-slop): the deterministic detector (detect.sh) could not run because this lane's Bash allows only the named wrappers. I read the changed lines against the rubric myself and found no findings. No semantic-diff verifier was dispatched for the tidy rewrite of the changelog fragment.
  • Tidy passes 1-3 (code): no code files changed, so nothing to do. Pass 4 rewrote the changelog fragment and made no edit to the agent-loaded lines, because those carry the shared gate and fallback wording word for word.
  • Review-fix edits made after tidy (criteria.md I5/I15, draft-auto-mode-rules item 1, postures.md header, SKILL.md Phase C, evals.json) did not go through a second tidy pass.
  • Build and tests: markdown and eval JSON only, no build. The eval suites are left to the host session's eval run (#17200), and the lane runs no eval.
  • typos and comment-hygiene in check-affected were skipped (typos not installed; the ci-workflows fetch was blocked by the sandbox). CI runs them.
  • Review finding not applied: the audit-prompting-postures verdict table (SKILL.md:233) still describes a MISSING proposal as a fenced diff, and a named codify call is not a diff. The column header already allows 'or pointer', so I left it.
  • Review finding not applied: the I5 heading 'Rule-to-hook or delete' and the hold rule's 'hook conversion stays available' still name a hook. The issue keeps the hold rules as written, and renaming the heading would break its anchor.

Fix

  • plugins/harness-config/skills/audit-instructions/reference/criteria.md: I5 Remediate hands the conversion mechanism to /corrections:codify with the shared gate and fallback, and gates prose deletion on a check that meets the Enforced bar. I15's recurring-conflict route names /corrections:codify…
  • plugins/harness-config/skills/audit-prompting-postures/reference/postures.md: new P7 'Proposal when MISSING' field with the gate and fallback, and the catalog header now mentions it.
  • plugins/harness-config/skills/audit-prompting-postures/SKILL.md: Phase C's mechanical-gates fence points a MISSING P7 at the catalog's new proposal line. Presence judging is unchanged. The Phase D verdict rule now makes an exception for a MISSING P7: it carries the named /corrections:codify call when that skill is available, otherwise the strongest mechanism as a fenced diff of the file that would carry it, marked unproven.
  • plugins/harness-config/evals/pp-destructive-missing-gate/case.yaml: unchanged at the head. Commit 5bcaae4 widened its proposal-as-diff grader to accept a named /corrections:codify call and commit a319e34 reverted that, so the grader still expects a fenced diff.
  • plugins/harness-config/skills/draft-auto-mode-rules/SKILL.md: Phase 2 item 1 hands the harness-level mechanism to /corrections:codify (named for the user to run) with the shared fallback. It keeps the hard_deny second layer and the permission rule syntax pointer and drops the 'prefer the hook'…
  • plugins/harness-config/skills/audit-instructions/evals/evals.json: case 8's expected_output describes the I15 mechanism route as naming /corrections:codify or the unproven fallback, in place of the three mechanisms the criterion no longer lists.
  • .changes/harness-config/work-resolve-issue-issue-17158-44424218236-1-9b364942.md: minor changelog fragment describing the change.

Verification

The runner ran each check from the base copy against 8a9fb5c:

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

The run reports:

  • check-changelog-fragments: all 45 fragments valid (run before and after tidy and review fixes)
  • check-changed-skills: 3 skills checked, 0 failed. The warnings (description length, body size, fresh-eyes heuristics, small body growth) are advisory.
  • check-affected: 14 passed, 8 skipped (typos not installed, comment-hygiene fetch blocked by the sandbox, checks that run the tree's own code), plus CI-only checks listed
  • check-evals-quality on audit-instructions evals.json: PASS. 7 warnings, all on cases this change did not touch.
  • grep for line citations into the changed files across plugins/harness-config: none, so no cited line numbers moved
  • fresh-context review subagent over the full diff: 11 findings. I checked the main ones against plugins/corrections/skills/codify/actions/findings.md:13 and draft-auto-mode-rules/SKILL.md:29,65,181, then applied fixes for the findings call form, the never-chain rule, the harness-level…
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44424218236
  • Host eval: three cases, one per changed skill, each loading a corrections stand-in plugin, on sonnet at 3 runs a side against the merge base and this head. hands-to-codify passed 0/3 before and 3/3 after in each skill; the record is in this pull request's eval comment. The llm grader picks-no-mechanism read 4 of 9 after; a reply-by-reply read found no reply picking a mechanism itself. The three cases are not in this pull request and follow in a test pull request.

Left out: the items under Not verified.

Mechanism sentences before the change

Added after the merge for #17200's host step: the sentence in each skill that picked a mechanism from its own list, quoted from the parent of the merge commit.

  • audit-instructions, reference/criteria.md I5 Remediate: "Convert a must-always rule with no such check, including one whose check only warns or reaches less than the prose, to a hook or another blocking check; once the check exists, the prose goes in the same change, named against that check."
  • audit-instructions, reference/criteria.md I15 Remediate: "offer the mechanism route, a PreToolUse hook, a permissions.deny rule, or a skill's own disallowed-tools, since a mechanism outranks instruction text."
  • audit-prompting-postures, SKILL.md verdict rule: "MISSING (finding, with proposed addition as a fenced diff)". This sentence names one mechanism (a text addition to the audited file) for every MISSING posture, P7's missing confirmation gate included; it does not choose from a list, and P7 had no proposal line of its own. It is read here as the mechanism-picking sentence because it made the skill propose its own fix: in the host eval the hand-off grader hands-to-codify read 0 of 3 on this text and 3 of 3 after the change. The stricter reading (no list, so no such sentence, so the skill should have been left unchanged) is reported on List enforcement-placing skills and give each one route to the ladder - part 2 of 2 #16029.
  • draft-auto-mode-rules, SKILL.md Phase 2 item 1: "say that it belongs in permissions.deny or a PreToolUse hook, which the harness applies every time, and keep the hard_deny entry as a second layer. For a Bash action prefer the hook"

Related

#17158

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

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review needs no new review of bb10b41a76bf6f448c5353dd1b64cd194cef18ad: no file of this pull request changed since the review of 5bcaae4.

Security review: no security issues found

This was a blocking-only, incremental review. The lane already reviewed earlier heads, most recently 4afd402b, so this pass reports only CRITICAL or IMPORTANT findings. I read every hunk of both files in .claude-lane/incremental.diff.

What changed since 4afd402b:

  • plugins/harness-config/evals/pp-destructive-missing-gate/case.yaml: the proposal-as-diff regex grader now passes on either a fenced diff or a named /corrections:codify " call. This is an eval grading pattern only. It runs no code and touches no credentials.
  • plugins/harness-config/skills/audit-prompting-postures/SKILL.md: the MISSING verdict rule now makes an exception for P7. A MISSING P7 carries the catalog's "Proposal when MISSING": the named /corrections:codify call when that skill is available, otherwise the strongest mechanism as a fenced diff, marked unproven. This answers the resolved code-review thread on this file. The skill only reports and proposes, and the edit removes no guardrail.

Instruction-surface check: the SKILL.md edit adds an exception. It does not delete or soften a rule that guarded an action. The audit skill writes nothing, and the codify call is named for the user to run. No protected-class action now goes unchecked.

Neither file matches a TRUSTED PATHS glob. The change touches no plugin manifest, workflow, action, script, token, hold or trust control.

Embedded text: the PR context and settled threads contain no instructions aimed at this lane.

critical-findings: 0

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 4afd402bf7c4fa9df18407e195ed1036eb3304cf; the summary is in this lane's pull request comment.

claude-lane: claude-review

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

claude-review needs no new review of bb10b41a76bf6f448c5353dd1b64cd194cef18ad: no file of this pull request changed since the review of a319e34.

Code review (incremental): PR #17326, 4afd402b..5bcaae49

I reviewed only what changed since this lane last reviewed 4afd402b, and I read both changed files in full. This lane has reviewed an earlier head, so this review reports blocking findings only.

What changed

  • audit-prompting-postures/SKILL.md:233-236: the verdict rule now makes an exception for a MISSING P7. Such a row carries the catalog's "Proposal when MISSING": the named /corrections:codify "<the rule>" call when codify is available, otherwise a fenced diff of the strongest mechanism, marked unproven. This matches reference/postures.md:186-193 and settles the conflict I raised last round. That thread is resolved and its lines have not changed since, so I am not raising it again.
  • pp-destructive-missing-gate/case.yaml:17: the proposal-as-diff grader now also accepts a named codify call in place of a fenced diff.

Blocking finding (1)

  1. case.yaml:17 (inline): Fail a change that loosens a check. The grader now accepts a reply with no diff, and the new alternative matches a /corrections:codify " call anywhere in the last message. Closing issue feat(harness-config): hand mechanism choices in three instruction skills to /corrections:codify #17158 does not name this grader or give a reason to widen it. The PR body and the bot's reply cannot supply that reason under the loosened-check criterion. Without codify loaded, the new SKILL.md text still produces a fenced diff, so the original grader still fits the default path.

Other checks

  • I did not run any eval or script. Verification described in the PR body is the author's claim and was not checked here.
  • Spend: none. No billing, plan, runner or schedule change.
  • No plugin manifest changed in this push.
  • Security findings are left to the separate security lane.
  • No embedded instructions found in the PR context, settled-threads or prior-findings files.

Loosened-check verdict: fail (default; the wrapper wrote no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The wrapper wrote no loosened_check_decision_record: line, so the citation requirement was not checked.

Verifier dropped 0 of 1 candidates. No subagent verifier was dispatched.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44442556095

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65S145
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/apply-feedback-patch
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed 5bcaae4
Run 44442556095

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

pr-unblock / address-feedback finished round 1 of max 4 on 5bcaae4.

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44442556095

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

claude-review: 1 inline finding(s) on 5bcaae49ef73a0e76d170ca237dba0cb071b4b56; the summary is in this lane's pull request comment.

claude-lane: claude-review

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which clears when the
  lane runs again

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/address-feedback
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none (read lane)
Run 44443891479

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM65TAt2
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/publish-feedback
Model rung 0
Leg base
Run job failure
Activity step skipped
Commits pushed none recorded
Run 44443891479

Failed GitHub API calls

No failed call recorded by the run job's scripts.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped address-feedback on this pull request: the pull request has an unresolved review thread the lane does not take (a reviewer it does not act on, a review of an older head, or a thread it already answered), so no lane resolves it and a session builder takes it. The lane labels it needs-session for a session builder, who makes the change this lane cannot, and the run ends in a failing pr-unblock/address-feedback status on the head the lane gated.

When a retry on this head can change the outcome, the lane runs one on its own, up to its per-head cap, and edits this comment if it stops again; a run that does not stop clears the status. When no retry can (a review thread the lane does not take or settle, or a failing check after the retries are spent), a person resolves the threads or gets the checks green, then dispatches the workflow below: that run finds the cause gone and clears the status. On a pull request the lanes App opened, the dispatchers start that run once per stop; on any other, a person does. A new commit to the branch starts clean.

To run it again on this head now, dispatch the pr-unblock workflow:

gh workflow run pr-unblock.yml -R melodic-software/claude-code-plugins -f pr-number=17326 -f activity=address-feedback

@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-unblock/report-escalation
Model rung 0
Leg base
Run job success
Activity step success
Commits pushed none recorded
Run 44449277831

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

A session is reworking this PR: it set the do-not-merge label while it reviews the open claude-review thread, and will remove the label when done.

@kyle-sexton kyle-sexton added do-not-merge Hard merge gate: do not merge while applied. and removed do-not-merge Hard merge gate: do not merge while applied. labels Nov 19, 2026
@kyle-sexton

Copy link
Copy Markdown
Member

Held for the before-and-after eval that issue #17158 requires (host steps in #17200). The pr-merge release step lifts this hold when an eval-pair record exists for the current head.

@kyle-sexton

Copy link
Copy Markdown
Member

Targeted eval result: PASS

One targeted case per changed skill, run on the old text (before) and the new text (after), on sonnet at 3 runs a side, Claude Code 2.1.328 (Claude Code).

What this gate checks: issue 17158's hand-off of mechanism choices to /corrections:codify in harness-config, with codify present. Each of the three changed skills (audit-instructions I5, audit-prompting-postures' MISSING P7 proposal, draft-auto-mode-rules Phase 2 item 1) runs one new case from issue 17200 that loads a corrections stand-in plugin. The gate needs each case's hands-to-codify grader (the reply's PROPOSAL line names corrections:codify) to pass in at least 2 of 3 AFTER runs, beside the kit's no-loss compare against the old text. The old text never names codify, so hands-to-codify and picks-no-mechanism are expected to fail there.

Scope: behaviour change, not a pure cut (issue 17158): three harness-config skills stop picking a mechanism from their own lists and hand the choice to /corrections:codify when it is available. Measured, with a corrections stand-in loaded: I17158-I5 (audit-instructions reference/criteria.md I5 Remediate) by p17326b-ai-must-always-rule-hands-to-codify; I17158-P7 (audit-prompting-postures reference/postures.md P7 'Proposal when MISSING') and I17158-P7-verdict (its SKILL.md Phase D verdict rule) by p17326b-pp-missing-gate-hands-to-codify; I17158-item1 (draft-auto-mode-rules SKILL.md Phase 2 item 1) by p17326b-dr-never-action-hands-to-codify. Each case has the hands-to-codify target (at least 2 of 3 AFTER runs); everything else is no-loss. Reference rows count as measured only when 2 of 3 runs a side open the file; SKILL.md rows are loaded. Unmeasured: criteria.md I15's recurring-conflict route; the no-codify fallback (registered as eval-pr-17326, not run here).

  • New cases p17326b-ai-must-always-rule-hands-to-codify, p17326b-pp-missing-gate-hands-to-codify and p17326b-dr-never-action-hands-to-codify: written for issue 17200's host step (one case per changed skill loading a corrections stand-in), committed at 90e630b, with the no-unavailable-claim grader scoped to the PROPOSAL line at 4038bdb, on branch test/17200-harness-config-codify-handoff-cases, which is not part of the pull request; copied into both sides with the name prefixed and a source sentence added to the description. Each is a rules-only question that loads the skill with the Skill tool and ends with a fixed PROPOSAL line.

  • The two cases registered as eval-pr-17326 are not run here: the kit allows at most three cases a registration, and their smoke bounds (0.6 and 1.0 USD) would push the smoke sum past the owner gate's 1.11 USD limit.

  • picks-no-mechanism is an llm grader (no regex can tell a mechanism codify might pick from one the reply picks itself); the other four graders are deterministic.

  • Unmeasured rows: criteria.md I15 recurring-conflict route; the codify-absent fallback of all three skills.

  • Control result (the issue's acceptance item): not run: the owner's decision of 2026-11-17 gates PRs on the compare alone; this registration adds the after-side targets the expected direction gives.

  • Before: 25f57481f002c27e2a75cd8fe14d63b56f478c18 (merge base with main)

  • After: bb10b41a76bf6f448c5353dd1b64cd194cef18ad (pull request head; live head when this was written: bb10b41a76bf6f448c5353dd1b64cd194cef18ad)

  • Loss: the mean case score falls by 0.15 or more, or any one grader passes in 2 or more fewer after runs than before runs.

Passing runs per grader, per side:

Case Grader Before After
p17326b-ai-must-always-rule-hands-to-codify i5-convert 3/3 3/3
p17326b-ai-must-always-rule-hands-to-codify no-codify-run 3/3 3/3
p17326b-ai-must-always-rule-hands-to-codify no-unavailable-claim 3/3 3/3
p17326b-ai-must-always-rule-hands-to-codify picks-no-mechanism 0/3 0/3
p17326b-ai-must-always-rule-hands-to-codify hands-to-codify 0/3 3/3
p17326b-ai-must-always-rule-hands-to-codify mean case score 0.600 0.800
p17326b-ai-must-always-rule-hands-to-codify target: hands-to-codify passes in at least 2 after runs 0/3 3/3
p17326b-pp-missing-gate-hands-to-codify p7-missing 3/3 3/3
p17326b-pp-missing-gate-hands-to-codify no-codify-run 3/3 3/3
p17326b-pp-missing-gate-hands-to-codify no-unavailable-claim 3/3 3/3
p17326b-pp-missing-gate-hands-to-codify picks-no-mechanism 0/3 3/3
p17326b-pp-missing-gate-hands-to-codify hands-to-codify 0/3 3/3
p17326b-pp-missing-gate-hands-to-codify mean case score 0.600 1.000
p17326b-pp-missing-gate-hands-to-codify target: hands-to-codify passes in at least 2 after runs 0/3 3/3
p17326b-dr-never-action-hands-to-codify section-hard-deny 3/3 3/3
p17326b-dr-never-action-hands-to-codify no-codify-run 3/3 3/3
p17326b-dr-never-action-hands-to-codify no-unavailable-claim 3/3 3/3
p17326b-dr-never-action-hands-to-codify picks-no-mechanism 0/3 1/3
p17326b-dr-never-action-hands-to-codify hands-to-codify 0/3 3/3
p17326b-dr-never-action-hands-to-codify mean case score 0.600 0.867
p17326b-dr-never-action-hands-to-codify target: hands-to-codify passes in at least 2 after runs 0/3 3/3

Graders that cannot show a loss, because they failed on the old text in every run:

  • p17326b-ai-must-always-rule-hands-to-codify picks-no-mechanism: cannot show a loss: failed on the old text in every run (0/3)
  • p17326b-ai-must-always-rule-hands-to-codify hands-to-codify: cannot show a loss: failed on the old text in every run (0/3)
  • p17326b-pp-missing-gate-hands-to-codify picks-no-mechanism: cannot show a loss: failed on the old text in every run (0/3)
  • p17326b-pp-missing-gate-hands-to-codify hands-to-codify: cannot show a loss: failed on the old text in every run (0/3)
  • p17326b-dr-never-action-hands-to-codify picks-no-mechanism: cannot show a loss: failed on the old text in every run (0/3)
  • p17326b-dr-never-action-hands-to-codify hands-to-codify: cannot show a loss: failed on the old text in every run (0/3)

Changed files the compare runs opened, per case and side:

  • p17326b-ai-must-always-rule-hands-to-codify before: opened skills/audit-instructions/reference/criteria.md in 3 of 3 runs
  • p17326b-ai-must-always-rule-hands-to-codify after: opened skills/audit-instructions/reference/criteria.md in 3 of 3 runs
  • p17326b-pp-missing-gate-hands-to-codify before: opened skills/audit-prompting-postures/reference/postures.md in 3 of 3 runs
  • p17326b-pp-missing-gate-hands-to-codify after: opened skills/audit-prompting-postures/reference/postures.md in 3 of 3 runs
  • p17326b-dr-never-action-hands-to-codify before: opened no changed file in 3 runs
  • p17326b-dr-never-action-hands-to-codify after: opened no changed file in 3 runs

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):

  • I17158-I5 (skills/audit-instructions/reference/criteria.md, case p17326b-ai-must-always-rule-hands-to-codify): opened in 3 of 3 before, 3 of 3 after runs
  • I17158-P7 (skills/audit-prompting-postures/reference/postures.md, case p17326b-pp-missing-gate-hands-to-codify): opened in 3 of 3 before, 3 of 3 after runs
  • I17158-P7-verdict (skills/audit-prompting-postures/SKILL.md, case p17326b-pp-missing-gate-hands-to-codify): measured; the file is loaded with the skill or agent, never opened, so no open count applies
  • I17158-item1 (skills/draft-auto-mode-rules/SKILL.md, case p17326b-dr-never-action-hands-to-codify): measured; the file is loaded with the skill or agent, never opened, so no open count applies

Rows these runs did not measure:

  • none

Verdicts:

  • verdict p17326b-ai-must-always-rule-hands-to-codify (audit-instructions): PASS (no loss: after 0.800, before 0.600, every registered target met)
  • verdict p17326b-pp-missing-gate-hands-to-codify (audit-prompting-postures): PASS (no loss: after 1.000, before 0.600, every registered target met)
  • verdict p17326b-dr-never-action-hands-to-codify (draft-auto-mode-rules): PASS (no loss: after 0.867, before 0.600, every registered target met)

Cost: 2.90 USD (smoke and compare, the runs' costUsd).

The cases live outside the repository; their full text:

The 3 cases: prompt.md and case.yaml

p17326b-ai-must-always-rule-hands-to-codify

prompt.md:

---
description: "Medium. criteria.md row I5 with a corrections stand-in loaded: a must-always rule with no check moves to a mechanism, and when /corrections:codify is among the available skills the finding hands it the choice of mechanism, naming the call, and picks no hook, CI job or other check itself. The rule is a migration file-name format the deploy tool depends on; nothing checks it. Read-only; no audit runs. Hard because the obvious answer is to name the check yourself (a hook or CI job that rejects bad names), which the catalog leaves to codify. Source: issue 17200's host step for issue 17158, in the shape of session-flow's re-mechanical-finding-check-proposal. Copied from plugins/harness-config/evals/ai-must-always-rule-hands-to-codify at 4038bdbc (branch test/17200-harness-config-codify-handoff-cases), into both sides; the name and this sentence changed."
tags: [audit-instructions, outcome, codify-handoff, hard]
plugins: ["../..", "corrections-stub"]
runs: 3
max_turns: 12
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "The reply marks the rule convert-to-mechanism and its PROPOSAL line names a /corrections:codify call for the migration-name rule. It leaves the choice of mechanism to codify, does not say codify is unavailable, and does not run codify."
---

Before we run /harness-config:audit-instructions on our repo, I need to know how its catalog treats one line in our CLAUDE.md:

> Always name a new migration file under db/migrations/ as YYYYMMDDHHMM_<slug>.sql; the deploy tool skips any other name.

Nothing checks that name today: no hook, no CI job, no test. The rule has no exceptions.

Load the `harness-config:audit-instructions` skill with the Skill tool to read its rules, but don't run the audit, research online or run anything. Read its catalog row I5 (in `reference/criteria.md`) and tell me what the audit's finding for that line would propose.

End your reply with exactly these two lines, filled in:

I5: <keep|convert-to-mechanism|delete>
PROPOSAL: <one line: what the finding proposes for this line>

case.yaml:

schema_version: "1.1"
name: p17326b-ai-must-always-rule-hands-to-codify
graders:
  - name: i5-convert
    type: regex
    pattern: '^[\s>*`_-]*I5[*`_\s]*:[*`_\s]*convert-to-mechanism\b'
    flags: 'im'
    target: 'last_message'
    arm: both
  - name: no-codify-run
    type: tool_used
    tool: Skill
    input_match: '"skill":"/?(?:corrections:)?codify"'
    min: 0
    max: 0
    arm: with-only
  - name: no-unavailable-claim
    type: regex
    pattern: '^[\s>*`_-]*PROPOSAL[*`_\s]*:[^\n]*?corrections:codify\b[^\n]{0,80}?(?:\b(?:was not|wasn''t|is not|isn''t|not)[ \t]+(?:available|installed|loaded)\b|\bunavailable\b)'
    flags: 'im'
    match: 'not_contains'
    target: 'last_message'
    arm: both
  - name: picks-no-mechanism
    type: llm
    focus: last_message
    criteria: "The reply says what an instruction audit would propose for a CLAUDE.md line that requires every new migration file under db/migrations/ to be named YYYYMMDDHHMM_<slug>.sql, a rule nothing checks; a /corrections:codify skill is available in the session. Judge only who chooses the mechanism that would enforce the rule. Judge what the reply says, not whether it is true. PASS only if the reply leaves the choice of mechanism to /corrections:codify: the proposal is a named codify call for the rule, and any hook, CI job, lint rule or test it mentions is described as something codify might pick or would prove, not as the reply's own pick. FAIL if the reply itself recommends a specific mechanism as the fix (for example convert it to a hook, add a CI job, add a pre-commit check, write a test), even beside a codify mention; if codify appears only as an afterthought while the proposal is a mechanism the reply chose; or if codify is not named. Do not judge the verdict word, the wording, or anything about other rules."
    arm: with-only
  - name: hands-to-codify
    type: regex
    pattern: '^[\s>*`_-]*PROPOSAL[*`_\s]*:[^\n]*corrections:codify\b'
    flags: 'im'
    target: 'last_message'
    arm: both

p17326b-pp-missing-gate-hands-to-codify

prompt.md:

---
description: "Medium. postures.md P7 'Proposal when MISSING' and the SKILL.md Phase D verdict rule, with a corrections stand-in loaded: a destructive-capable skill with no confirmation and no gate in settings, hooks or a script is MISSING on P7, and when /corrections:codify is among the available skills the proposal names the codify call and picks neither a gate nor a confirmation line itself. The component is a build-cleanup skill that runs rm -rf over build/ and dist/. Read-only; no audit, no guide fetch. Hard because the obvious proposal is a confirmation line or a deny rule written by the audit itself. Source: issue 17200's host step for issue 17158, in the shape of session-flow's re-mechanical-finding-check-proposal. Copied from plugins/harness-config/evals/pp-missing-gate-hands-to-codify at 4038bdbc (branch test/17200-harness-config-codify-handoff-cases), into both sides; the name and this sentence changed."
tags: [audit-prompting-postures, outcome, codify-handoff, hard]
plugins: ["../..", "corrections-stub"]
runs: 3
max_turns: 12
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "The reply marks P7 MISSING for purge-builds and its PROPOSAL line names a /corrections:codify call for the rule. It leaves the choice between a gate and a confirmation line to codify, does not say codify is unavailable, and does not run codify."
---

Before we run /harness-config:audit-prompting-postures on our repo, I need to know how its catalog treats one of our skills. `.claude/skills/purge-builds/SKILL.md` says, in full:

> Delete every folder under build/ and dist/ with `rm -rf`, then report how much space was freed.

It runs the command itself; no script is involved. Nothing asks before deleting: our settings have no deny or ask rule for `rm`, there is no hook, and the skill text has no confirmation step.

Load the `harness-config:audit-prompting-postures` skill with the Skill tool to read its rules, but don't run the audit, fetch the prompting guide, research online or run anything. Read its catalog row P7 (in `reference/postures.md`) and its verdict rules, and tell me P7's verdict for purge-builds and what the report would propose for it.

End your reply with exactly these two lines, filled in:

P7: <MISSING|PRESENT|NOT-APPLICABLE>
PROPOSAL: <one line: what the report proposes for purge-builds>

case.yaml:

schema_version: "1.1"
name: p17326b-pp-missing-gate-hands-to-codify
graders:
  - name: p7-missing
    type: regex
    pattern: '^[\s>*`_-]*P7[*`_\s]*:[*`_\s]*MISSING\b'
    flags: 'im'
    target: 'last_message'
    arm: both
  - name: no-codify-run
    type: tool_used
    tool: Skill
    input_match: '"skill":"/?(?:corrections:)?codify"'
    min: 0
    max: 0
    arm: with-only
  - name: no-unavailable-claim
    type: regex
    pattern: '^[\s>*`_-]*PROPOSAL[*`_\s]*:[^\n]*?corrections:codify\b[^\n]{0,80}?(?:\b(?:was not|wasn''t|is not|isn''t|not)[ \t]+(?:available|installed|loaded)\b|\bunavailable\b)'
    flags: 'im'
    match: 'not_contains'
    target: 'last_message'
    arm: both
  - name: picks-no-mechanism
    type: llm
    focus: last_message
    criteria: "The reply says what a prompting-posture audit would propose for a skill that deletes every folder under build/ and dist/ with rm -rf, with no confirmation step, no settings deny or ask rule, no hook and no script gate; a /corrections:codify skill is available in the session. Judge only who chooses the mechanism that would guard the deletion. Judge what the reply says, not whether it is true. PASS only if the reply leaves the choice of mechanism to /corrections:codify: the proposal is a named codify call for the rule, and any confirmation line, permissions deny or ask rule, hook or script gate it mentions is described as something codify might pick or would prove, not as the reply's own pick. FAIL if the reply itself proposes a specific mechanism as the fix (for example a diff adding a confirmation step, a permissions.deny or ask rule, a PreToolUse hook), even beside a codify mention; if codify appears only as an afterthought while the proposal is a mechanism the reply chose; or if codify is not named. Do not judge the verdict word, the wording, or other postures."
    arm: with-only
  - name: hands-to-codify
    type: regex
    pattern: '^[\s>*`_-]*PROPOSAL[*`_\s]*:[^\n]*corrections:codify\b'
    flags: 'im'
    target: 'last_message'
    arm: both

p17326b-dr-never-action-hands-to-codify

prompt.md:

---
description: "Medium. SKILL.md Phase 2 item 1 with a corrections stand-in loaded: for an action that must never happen, a hard_deny classifier entry alone is not enough and is kept as a second layer, and when /corrections:codify is among the available skills the skill names the codify call for the user to run and picks no permissions.deny rule or hook itself. The action is a force-push to main, which cannot be undone. Read-only; no block is drafted and no script runs. Hard because the obvious answer is to recommend a deny rule or a PreToolUse hook directly. Source: issue 17200's host step for issue 17158, in the shape of session-flow's re-mechanical-finding-check-proposal. Copied from plugins/harness-config/evals/dr-never-action-hands-to-codify at 4038bdbc (branch test/17200-harness-config-codify-handoff-cases), into both sides; the name and this sentence changed."
tags: [draft-auto-mode-rules, outcome, interview, codify-handoff, hard]
plugins: ["../..", "corrections-stub"]
runs: 3
max_turns: 12
timeout_seconds: 600
allowed_tools: [Skill, Read, Glob, Grep]
expected_outcome: "The reply puts the entry in hard_deny and its PROPOSAL line names a /corrections:codify call for the force-push rule, for the user to run. It leaves the choice of mechanism to codify, does not say codify is unavailable, and does not run codify."
---

Before I draft auto mode rules with /harness-config:draft-auto-mode-rules, I want to know what it will tell me about one entry.

Load the `harness-config:draft-auto-mode-rules` skill with the Skill tool to read its interview rules (its Phase 2), but don't draft the block, run its scripts, research online or run anything. My answer to its first question: auto mode must never run `git push --force` to main in any of our repositories, because a force-push there cannot be undone.

Tell me which section that entry goes in and what else the skill says to do about this action.

End your reply with exactly these two lines, filled in:

SECTION: <allow|soft_deny|hard_deny|environment>
PROPOSAL: <one line: what the skill says to do beyond the entry>

case.yaml:

schema_version: "1.1"
name: p17326b-dr-never-action-hands-to-codify
graders:
  - name: section-hard-deny
    type: regex
    pattern: '^[\s>*`_-]*SECTION[*`_\s]*:[*`_\s]*hard_deny\b'
    flags: 'im'
    target: 'last_message'
    arm: both
  - name: no-codify-run
    type: tool_used
    tool: Skill
    input_match: '"skill":"/?(?:corrections:)?codify"'
    min: 0
    max: 0
    arm: with-only
  - name: no-unavailable-claim
    type: regex
    pattern: '^[\s>*`_-]*PROPOSAL[*`_\s]*:[^\n]*?corrections:codify\b[^\n]{0,80}?(?:\b(?:was not|wasn''t|is not|isn''t|not)[ \t]+(?:available|installed|loaded)\b|\bunavailable\b)'
    flags: 'im'
    match: 'not_contains'
    target: 'last_message'
    arm: both
  - name: picks-no-mechanism
    type: llm
    focus: last_message
    criteria: "The reply says what an auto-mode rule drafting skill tells a user who wants auto mode never to force-push to main, an action that cannot be undone; a /corrections:codify skill is available in the session. Judge only who chooses the harness-level mechanism beyond the classifier entry. Judge what the reply says, not whether it is true. PASS only if the reply leaves that choice to /corrections:codify: it names a codify call for the rule for the user to run, and any permissions.deny rule, PreToolUse hook, branch protection or other mechanism it mentions is described as something codify might pick or would prove, not as the reply's own pick. FAIL if the reply itself recommends a specific mechanism as the fix (for example 'put it in permissions.deny', 'prefer a PreToolUse hook', 'turn on branch protection'), even beside a codify mention; if codify appears only as an afterthought while the recommendation is a mechanism the reply chose; or if codify is not named. Do not judge the section named, the wording, or the classifier entry itself."
    arm: with-only
  - name: hands-to-codify
    type: regex
    pattern: '^[\s>*`_-]*PROPOSAL[*`_\s]*:[^\n]*corrections:codify\b'
    flags: 'im'
    target: 'last_message'
    arm: both

Posted by an agent session.

@kyle-sexton

Copy link
Copy Markdown
Member

Note on the eval record above: what the PASS rests on, and what it does not show.

picks-no-mechanism read 4 of 9 on the new text (audit-instructions 0/3, draft-auto-mode-rules 1/3, audit-prompting-postures 3/3; 0/9 on the old text). It was not a registered target, and the kit lists it as unable to show a loss, so the verdict is PASS. But "picks none itself" is half of what issue 17200 asks the cases to grade, so the five failing replies were read one by one against the grader's own criterion (the result file keeps the judge's votes, not its reasons):

  • audit-instructions, 3 of 3 failing: each reply says /corrections:codify picks the mechanism. Two of them open the PROPOSAL line with the class of fix I5 asks for and its candidates ("a blocking check ... (hook, CI, or test), chosen and proven via /corrections:codify"). No reply picks one mechanism itself.
  • draft-auto-mode-rules, 2 of 3 failing: both replies repeat the changed skill text: keep the hard_deny entry as a second layer, run /corrections:codify to pick and prove a stronger mechanism, and read the permission rule syntax docs before recommending any Bash deny rule. Issue 17158 asks for the hard_deny second layer to stay.
  • On the old text every reply does pick a mechanism (for example a PreToolUse hook or permissions.deny), so 0/9 there is a correct fail.

So the claim "the skills pick no mechanism themselves" rests on this reading of nine replies, not on the llm grader, which was never calibrated. For audit-instructions the accurate wording is: it picks no specific mechanism, and names the class of fix and the candidates codify chooses from.

Not tested by these runs: that the real /corrections:codify accepts the hand-off (a stand-in was loaded); full audits or a drafted block; criteria.md I15's recurring-conflict route; the fallback when codify is absent.

Changes made before any run: the no-unavailable-claim grader was narrowed from the whole reply to the PROPOSAL line, because the new skill text itself tells the reply to say when codify "was not available", which the whole-reply pattern would have failed. No grader, bar or case changed after the first run.

The three cases are not in this pull request. They sit on the branch test/17200-harness-config-codify-handoff-cases and land as a follow-up pull request after this one merges, so that this head needed no new push.

Spend: 2.90 USD of plan usage, smoke runs included.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The do-not-merge hold waited only on eval evidence (reason=eval), and a listed human posted a VALID no-loss eval-pair record for bb10b41a76bf6f448c5353dd1b64cd194cef18ad: #17326 (comment). pr-merge removed do-not-merge. To hold again, add the label back with a new pr-hold reason line.

@melodic-automation-lanes melodic-automation-lanes Bot removed the do-not-merge Hard merge gate: do not merge while applied. label Nov 19, 2026
@kyle-sexton
kyle-sexton 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 removed the needs-session A pr-unblock stop a session builder takes: a change the lane cannot make. Not an owner stop. label Nov 19, 2026
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=bb10b41a76bf6f448c5353dd1b64cd194cef18ad 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 d93ad23 Nov 19, 2026
178 of 181 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17158-44424218236-1 branch November 19, 2026 15:01
kyle-sexton added a commit that referenced this pull request Nov 19, 2026
…ng verifies

A lane review thread left on an older head counted as untaken once the
reviewed-head markers moved on, so address-feedback stopped
feedback-untaken-threads (#17326) and a session resolved it by hand.

bindLaneRows now records the head a verified lane binding names
(boundHead), and onReviewedHead accepts a root whose review sits on that
head. The binding already proves the run, workflow, head, branch and body
digest (lane-binding.mjs laneChecker), so this widens no trust. Legacy
comments with no binding still need a marker-confirmed head. The round
judges the finding at the current head: fix it, or answer INCORRECT with
the current lines for the adjudicator to resolve.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgbERyakZ33T4AetfRj
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(harness-config): hand mechanism choices in three instruction skills to /corrections:codify

1 participant