Skip to content

feat(review): write the ladder 2.0.0 rung ids in audit-enforceability and the other rung-id writers - #8851

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-8733-39603476320-1
Oct 21, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-8733-39603476320-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #8733

Summary

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

/review:audit-enforceability now emits the ladder 2.0.0 ids action-guard (stage tool-call) and automated-review (stage review, also the fallback) in place of hook and llm-only; the --classes closed set gains no other id. harness-config and improvement stop naming llm-only and canonical-helper (shared-helper). emit-stubs.test.sh gains a refusal case for llm-only and an action-guard to tool-call case.

Not verified

  • emit-stubs.test.sh was not run: the lane's Bash denied running it, and the issue assigns it to the PR's CI test-bash
  • CI check-plugins and check-skills are left to the PR's CI
  • The new-changelog-fragment wrapper refused (detached HEAD), so the three fragments were written by hand in the existing format; the fragment check accepts them
  • No fresh-context review subagent was run; the diff is a mechanical rename that I checked by grep only

Fix

  • plugins/review/skills/audit-enforceability/scripts/emit-stubs.sh: closed-set refusal text, stage map and the fallback rung use action-guard and automated-review; header comment updated
  • plugins/review/skills/audit-enforceability/scripts/emit-stubs.test.sh: existing cases moved to the new ids; case 39 maps action-guard to tool-call and refuses llm-only
  • plugins/review/skills/audit-enforceability/SKILL.md: description, default rung and per-rung guidance use the new ids
  • plugins/review/skills/audit-enforceability/context/stub-shape.md: rung list, stage table, default and ratchet-offer prose use the new ids
  • plugins/review/skills/audit-enforceability/context/crosswalk.md: rung column uses the new ids
  • plugins/review/skills/audit-enforceability/evals/evals.json and evals/fixtures/classification-one-per-rung.tsv: new ids
  • plugins/review/README.md: rung list uses the new ids
  • plugins/harness-config/skills/audit-automation-gaps/SKILL.md: weakest rung named automated-review
  • plugins/improvement/skills/find/context/unattended.md: canonical-helper becomes shared-helper
  • .changes/review/feat-ladder-2-0-0-rung-id-writers-8733a1c1.md: major fragment
  • .changes/harness-config/feat-ladder-2-0-0-rung-id-writers-8733a1c2.md: patch fragment
  • .changes/improvement/feat-ladder-2-0-0-rung-id-writers-8733a1c3.md: patch fragment

Verification

The runner ran each check from the base copy against 375eae3:

  • scripts/check-changelog-fragments.sh --check: passed

The run reports:

Left out: the items under Not verified.

Related

#8733

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

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 375eae3d153cb76a756432f6f5666b2e4664105b: 0 finding(s), 0 as inline comments.

Security review: PR #8851 at 375eae3

No security findings.

Scope: The PR renames enforcement-ladder rung ids in 13 files, with 3 of them changelog fragments. The only executable code is emit-stubs.sh and its test. The rest is skill prose, eval fixtures and docs.

Checked:

  • emit-stubs.sh makes three edits: the stage_of_rung case labels (hook to action-guard, llm-only to automated-review), the default rung, and the refusal message text.
    • The --classes rung is still validated against the closed case set before use (stage_of_rung, line 1062). An unknown or retired id exits 2 with nothing written.
    • The value is still only matched in case, never used as a subscript or in an arithmetic context, so the substitution-injection defence is unchanged. Test case 38 ($(touch ...) as a rank, run with BASH_COMPAT=51) still covers it.
    • Tightening the closed set only rejects more input. No new path, command, or eval/exec surface is added.
  • The new test case 39 (retired llm-only is refused with exit 2 and nothing written) strengthens coverage of the validation path.
  • Instruction-surface lens: the diff changes skill bodies (audit-enforceability, audit-automation-gaps, improvement:find unattended guidance). I read it for deleted or softened guardrails. The edits are id renames only, with no rule removed or narrowed. improvement:find/context/unattended.md is the one place an unattended-behaviour rule could change, and it only swaps canonical-helper for shared-helper. I did not read the instruction exception register, so the protected-class list was not consulted. Recognition was by consequence.
  • No workflow, permission, token or secret handling, or dependency pin changes.

Non-security note: the review changelog is bump: major because --classes no longer accepts hook or llm-only. That is a compatibility matter, not a vulnerability.

@github-actions

Copy link
Copy Markdown
Contributor

claude-review reviewed 375eae3d153cb76a756432f6f5666b2e4664105b: 0 finding(s), 0 as inline comments.

No findings. The PR is a mechanical rung-id rename, and I checked the full diff and the closing issue #8733 against it. I did not run emit-stubs.test.sh, so its CI test-bash result is unverified here.

What I checked

  • Closed set, stage map and fallback: emit-stubs.sh renames only hook to action-guard (stage tool-call) and llm-only to automated-review (stage review). The refusal text and the fallback also use the new ids. No other id is added to the closed set.
  • Leftover old ids: A grep for llm-only and canonical-helper across plugins/, docs/, scripts/ and .claude/ finds only:
    • Changelogs, which are history.
    • docs/upstream/cursor-pstack.md, which the issue puts out of scope.
    • The intentional llm-only refusal case in emit-stubs.test.sh.
  • Other hook rung uses: The remaining mentions of hook in the skill are prose ("hook gap", "no ... hook is written here"), not rung ids.
  • Other callers: No other plugin sends --classes to the writer, so nothing else is left sending a retired id.
  • Ladder README: action-guard, shared-helper and automated-review all exist in docs/conventions/enforcement-ladder/README.md, so the new ids match the ladder.
  • New tests: Case 39 maps action-guard to tool-call. The new llm-only case expects exit 2, nothing written and Rung: llm-only in the refusal. It uses path_exists, which is defined, and $? after the command substitution reads the writer's exit status. The shell logic holds up by reading it.
  • Closing-issue criteria: The diff meets each of the issue's criteria, including the cases for llm-only and action-guard and the three changelog fragments (major for review, patch for harness-config and improvement). The CI-only items (test-bash, check-plugins, check-skills) are unverified by this lane.
  • Embedded instructions: The PR context file contains no embedded instructions directed at the lane.

Not flagged

  • plugins/review/README.md line 75 is now a longer line than its neighbours. It is style only, and the repo's linters would catch it.

@melodic-automation-lanes

melodic-automation-lanes Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor Author

Unattended merge: risk HIGH at head 375eae3d153cb76a756432f6f5666b2e4664105b. Only LOW merges without a human. A floor path or capability change holds it: a human merges it in person, never an agent or a lane.

HIGH high-path:plugins/**/scripts/**: plugins/review/skills/audit-enforceability/scripts/emit-stubs.sh, plugins/review/skills/audit-enforceability/scripts/emit-stubs.test.sh
HIGH high-path:plugins/*/skills/*/scripts/**: plugins/review/skills/audit-enforceability/scripts/emit-stubs.sh, plugins/review/skills/audit-enforceability/scripts/emit-stubs.test.sh
HIGH high-path:plugins/review/**: plugins/review/README.md, plugins/review/skills/audit-enforceability/SKILL.md, plugins/review/skills/audit-enforceability/context/crosswalk.md, plugins/review/skills/audit-enforceability/context/stub-shape.md, plugins/review/skills/audit-enforceability/evals/evals.json, plugins/review/skills/audit-enforceability/evals/fixtures/classification-one-per-rung.tsv, plugins/review/skills/audit-enforceability/scripts/emit-stubs.sh, plugins/review/skills/audit-enforceability/scripts/emit-stubs.test.sh
MED evidence-unbound:claude-review: not bound: lane-source-changed
MED evidence-unbound:claude-security-review: not bound: lane-source-changed

This refusal has stood unchanged at this head, so a person is needed: the pr-merge lane added the human-gated label.

@melodic-automation-lanes melodic-automation-lanes Bot added the needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this. label Oct 21, 2026
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 21, 2026
Merged via the queue into main with commit 9df7813 Oct 21, 2026
44 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-8733-39603476320-1 branch October 21, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Human-in-the-loop required; autonomous sessions must not resolve items carrying this.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(review): write the ladder 2.0.0 rung ids in audit-enforceability and the other rung-id writers

1 participant