Skip to content

feat(harness-memory): hand C8's move up the hierarchy to corrections:codify - #17210

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-17179-44370232347-1
Nov 18, 2026
Merged

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

Conversation

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor

Closes #17179

Summary

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

C8 items 1-3 in the audit criteria no longer pick from a private list of six mechanisms (compiler setting, linter rule, architecture test, git hook, CI gate, Claude Code hook) or name 'which enforcement level it could move to'. Item 3 now hands the choice of mechanism to /corrections:codify behind the availability gate, followed by the shared strongest-first fallback word for word. Items 4 and 5 are unchanged, and a Provenance line covers the new text. The C3 placement table's two mechanism rows (hooks; analyzers, linters, architecture tests) become one row routed through C8 item 3. The fix action gains a 'C8 (Enforcement Hierarchy) fixes' pattern. Means chosen on evidence from codify's SKILL.md: the fix pattern prefers /corrections:codify rules <the file>, because codify's default action stops below its recurrence threshold (default 2) unless a person typed the invocation, while the rules action skips the count. So the single-rule form /corrections:codify "<the rule>" is offered for the user to type. The fix also keeps prose that C8 item 5 holds. The review found two more sentences in official-guidance.md ('Hooks vs CLAUDE.md', 'Style enforcement') that had the audit recommend a hook or linter; they now say it recommends a check and point to C8 item 3. Existing eval cases whose runs read the changed text: audit-c8-enforced-prose reads criteria.md C8; it grades only items 4 and 5, and its 'meters: keep' line is unaffected. audit-fix-needs-prior-audit is a candidate for fix.md. The lane ran no eval. Dependency #16985: the C8 bullet list on this checkout already lacks the compiler-setting examples that pull request drops, so this change builds on that state; the shallow history did not show the merge commit itself.

Pre-change sentence that picked a mechanism from a private list (plugins/harness-memory/skills/audit/reference/criteria.md, C8 How to check): "1. For each rule/instruction, check if it could be: A compiler setting; A static-analyzer or linter rule; An architecture test; A pre-commit/pre-push git hook; A CI gate; A Claude Code hook (deterministic)" and "3. Include which enforcement level it could move to" (also the C3 placement rows "Deterministic enforcement | Hooks (guaranteed execution)" and "Compile-time/build-time rules | Analyzers, linters, architecture tests")

Not verified

  • Person checks per issue.json person_checks: quote in the PR body the sentence that picked a mechanism from a private list (it is the old C8 item 1 list and item 3 'Include which enforcement level it could move to', plus the C3 rows 'Deterministic enforcement | Hooks (guaranteed execution)' and…
  • No eval run: the lane runs none; the host session runs the eval under the do-not-merge hold
  • ai-slop:audit deterministic detector (detect.sh) and its digest guard could not run: this lane's Bash runs only the named wrappers, so pass 5 of tidy applied the rubric by reading only
  • check-affected skipped typos (not installed) and comment-hygiene (network fetch blocked); left to the PR's CI
  • review-venue.txt was absent, so the review ran as a local fresh-context subagent; verify (build/tests) has no build or test target for these markdown files and is left to the PR's CI
  • git status lists untracked dotfiles (.bashrc, .profile, .gitconfig, .idea, .vscode, .mcp.json and others) that this run did not create; they look like sandbox artifacts and should not go into the patch

Fix

  • plugins/harness-memory/skills/audit/reference/criteria.md: C8 items 1-3 rewritten (question with no mechanism list; codify hand-off behind the gate plus the shared fallback); Provenance line extended to items 1 and 3; C3 table's two mechanism rows replaced by one row routed through C8 item 3; C3…
  • plugins/harness-memory/skills/audit/context/fix.md: new 'C8 (Enforcement Hierarchy) fixes' section: gate, rules <the file> hand-off, single-rule form for the user to type, shared fallback, keep prose until the check exists unless C8 item 5 holds it
  • plugins/harness-memory/skills/audit/reference/official-guidance.md: 'Hooks vs CLAUDE.md' and 'Style enforcement' say the audit recommends a check, with C8 item 3 picking the mechanism, instead of naming a hook or linter
  • .changes/harness-memory/work-resolve-issue-issue-17179-44370232347-1-327d8530.md: minor changelog fragment describing the change

Verification

The runner ran each check from the base copy against 01ca778:

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

The run reports:

  • check-changelog-fragments: all 3 fragments valid
  • check-changed-skills: harness-memory audit skill PASS, 0 errors, 3 warnings that predate this change (no Gotchas surface, description 444 chars, body 190 lines)
  • check-affected: 14 passed, 8 skipped (typos not installed; comment-hygiene fetch blocked; tree-code checks skipped by design), remaining checks CI only
  • fresh-context review subagent over the diff: 0 blockers, 5 findings (official-guidance contradiction, codify threshold on the single-rule form, missing item-5 hold in fix.md, Provenance not covering item 1, rules scope wording); all five fixed, then checks re-run green
  • tidy (code-tidying:tidy-diff): passes 1-3 none (markdown only); pass 4 split one long sentence in the changelog fragment; pass 5 rubric read only, no edits
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/44370232347

Left out: the items under Not verified.

Related

#17179

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

Copy link
Copy Markdown
Contributor

claude-review reviewed 01ca778ac277f9f6536b9a80bdb8c71133e77aec: read 4 of 4 changed file(s); 1 finding(s), 0 as inline comments.

Code review: PR #17210 (harness-memory: hand C8's move up the hierarchy to /corrections:codify)

I read all four changed files in full. The text changes match the closing issue #17179. C8 items 1–3 in criteria.md no longer list mechanisms. Item 3 hands the choice to /corrections:codify behind the availability gate, and its fallback matches the shared wording in the issue's Decisions section word for word. Items 4 and 5 are unchanged. The Provenance line now covers items 1 and 3. The C3 table's two mechanism rows are now one row that points to C8 item 3. fix.md gains a C8 pattern: it hands the file over with rules <the file>, offers the single-rule form for the user to type, keeps the prose until the check exists, and respects the item 5 hold. A changelog fragment is present (bump: minor, suitable for a behavior change in the skill). The PR body names audit-c8-enforced-prose and audit-fix-needs-prior-audit as the existing cases whose runs read the changed text.

Blocking

  • Closing-issue criterion not met: the new eval case is missing. feat(harness-memory): hand C8's move up the hierarchy to /corrections:codify #17179's "Done when" says: "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 a C8 instruction no check covers is handed to /corrections:codify and the audit picks no mechanism itself." The diff adds no file under plugins/harness-memory/evals/. The only C8 case is audit-c8-enforced-prose/case.yaml, and the PR body says it grades only items 4 and 5. As a result, nothing could fail if the hand-off in the new C8 item 3 (criteria.md#L300-L306) or the new fix pattern (fix.md#L116-L131) regressed. That includes the audit going back to proposing a linter rule or a hook itself while codify is available, which is the issue's Demo. To show it: load a stand-in for corrections:codify, audit a CLAUDE.md containing an import-order rule that no check covers, then run fix. No current case grades whether the result names codify or a mechanism. Fix: add the stand-in case the issue describes. The issue's run-budget section says the host session runs it under the do-not-merge hold.

Other criteria

  • "The pull request body quotes the sentence that picked a mechanism from a private list": the body names the old six-item list and quotes 'which enforcement level it could move to'. The full quote is listed under "Not verified" as a person check. I treat this as met in substance, with the full quote left to that check.
  • No ladder copy or Selection rules row is added. The only rung list is the shared fallback the issue requires. AC10 is met: no new enforcement-placing skill is added.
  • I ran no evals or checks myself. The changelog and skill checks listed under Verification are the author's claims and I have not verified them.

Loosened-check verdict: fail (default; the wrapper supplied no loosened_check_verdict: or loosened_check_patterns: line); patterns: 0. The change contains no loosening: it is markdown skill text only, with no tests, thresholds or checks touched.

Spend: none beyond the eval runs the issue already budgets (up to 15 runs on prepaid model usage, run by the host session).

Verifier dropped 0 of 1 candidates.

@github-actions

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 01ca778ac277f9f6536b9a80bdb8c71133e77aec: read 4 of 4 changed file(s); 0 finding(s), 0 as inline comments.

Security review: no findings

I read the whole diff for all 4 files. Every change is markdown in the harness-memory audit skill, plus one changelog fragment:

  • plugins/harness-memory/skills/audit/reference/criteria.md
    • Items 1–3 of C8 drop their private list of six mechanisms. Item 3 now hands the choice of mechanism to /corrections:codify, with a strongest-first fallback when codify is not available.
    • The C3 placement table merges its two mechanism rows into one row routed through C8 item 3.
    • The Provenance line now also covers items 1 and 3.
  • plugins/harness-memory/skills/audit/context/fix.md: adds a fix pattern for C8 that hands off to /corrections:codify rules <the file>, or offers the user the single-rule form to type.
  • plugins/harness-memory/skills/audit/reference/official-guidance.md: two sentences now say the audit recommends "a check", with C8 item 3 picking the mechanism.
  • .changes/...md: a changelog fragment.

Instruction-surface lens. The diff changes a skill body, so I checked what it removes by consequence. The protected-class register was not read in this run; I judged by consequence alone.

  • Nothing protective removed: the removed list only named which enforcement mechanisms the audit could suggest, and none of the removed text guards against an action.
  • Security hold kept: C8 item 5 keeps prose that matches the instruction exception register, including destructive-action and security rails. It is unchanged, and the new fix step 3 keeps that hold explicitly ("unless C8 item 5 holds it").
  • Deletion bar not lowered: C8 item 4, which deletes prose only once a located deterministic check enforces it, is also unchanged.
  • Hand-off adds no autonomy: the codify hand-off goes to an in-repository skill. The single-rule form is offered for the user to type, so the hand-off grants no new automatic action.

Other checks:

  • Trust controls: none touched. No trusted-path file, workflow, action, token request, merge hold or kill switch is in the diff.
  • Plugin manifests: no plugin.json or marketplace.json change, so there are no manifest lines.
  • PR context: the description has no embedded instructions aimed at the review lane.
  • Spend: none. The change adds no lane runs, turns or billed resources.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Verification evidence for 01ca778

The verifier passed this head. The capture artifact holds the capture summary, which says whether the capture ran, and any screenshot or video that passed the mask check; this comment uploads no file.

Capture artifact: pr-capture-17210-01ca778ac277f9f6536b9a80bdb8c71133e77aec, expires on 2026-12-18.

One comment per pull request, updated in place for each new head.

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

Merge-Risk: max=MEDIUM demote=false head=01ca778ac277f9f6536b9a80bdb8c71133e77aec rubric=10.3.4 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 18, 2026
Merged via the queue into main with commit f343f0e Nov 18, 2026
49 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-17179-44370232347-1 branch November 18, 2026 19:47
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit f343f0ef852d30eb244a101d3cd3905c4478d9c9; 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(harness-memory): hand C8's move up the hierarchy to /corrections:codify

0 participants