Skip to content

fix(work-items)!: work-loop intake sweep proposes a class instead of self-admitting by default - #12338

Merged
melodic-automation-lanes[bot] merged 1 commit into
mainfrom
work-resolve-issue/issue-7212-41413382815-1
Nov 2, 2026
Merged

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

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #7212

Summary

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

By default the work-loop's step 2 intake sweep now writes no work-class: or autonomous-eligible role label. A delegable, decision-defaulted or stub outcome takes the human-gated role label and a kind=escalated marker with a Proposed work class: line, so a label the lane applied under its own identity can never admit an item. Only an explicit launch-prompt opt-in lifts this, which builds the 2026-11-02 recorded decision. The 'Lane barred from recording a class' branch that decision names had already been removed by #12239 (work-items 7.0.0, merged minutes before the decision), so I re-described its routing inline as triage's 'Work-loop intake sweep: propose, never admit' rule, which applies to the work-loop sweep only. Interactive triage and an opted-in lane keep #12239's behavior.

Not verified

  • Possible conflict with the owner's call: #12239 (owner decision Q85, via #12062) had just made a work-class-barred lane apply agent-ready, and the 2026-10-29 comment on this issue deferred holds against the lane's own actors. This run builds the later 2026-11-02 recorded decision, which wins by deci
  • This repository's own lane prompts (prompts/loops/loop-lane-prompts.md and prompts/loops/loop-lane-profile-claude-code-plugins.md) explicitly tell the sweep to apply agent-ready without a class, which counts as the opt-in. So this repository's own lanes keep self-applying agent-ready until those pro
  • ci-status on the PR (named in the issue's done-when) is left to the PR's CI.
  • The evals were checked only for structure (check-evals-quality); no eval was executed against a model in this lane.
  • Tidy: the ai-slop deterministic detector (detect.sh) and its digest guard could not run, because this lane's Bash runs only the named wrappers. Pass 5 was a hand rubric read and found nothing. Passes 1-3 had nothing to do (JSON data only). Pass 4 cut one restating sentence.
  • CI-only checks listed by check-affected (evals-schema, cant-fail-scan, portability-lint, lychee-offline and others) are left to the PR's CI.

Fix

  • plugins/work-items/skills/work-loop/SKILL.md: step 2 now says the sweep writes no work-class: or role label by default and escalates with a proposed class; only an explicit launch-prompt opt-in lifts it (replaces the text letting a work-class-barred sweep apply the role label).
  • plugins/work-items/skills/triage/context/apply-outcome.md: new 'Work-loop intake sweep: propose, never admit' rule. The issue trust test and the issue-dimensions hold run first. Then the step 5 escalation record and a kind=escalated marker with a Proposed work class: line and a ready-to-paste label
  • plugins/work-items/skills/triage/SKILL.md: the delegable exit points to the new rule for the delegable and decision-defaulted exits, and the human-gated label test lists the sweep's proposed class as an instance of part 2.
  • plugins/work-items/reference/work-class-labels.md: 'Who applied the role label' says the sweep writes neither label by default, so a lane-applied label admits only under an explicit opt-in.
  • plugins/work-items/skills/triage/evals/evals.json: evals 13 and 38 (work-loop intake sweep cases) now state the explicit agent-ready opt-in, so they keep testing the trust-test path under the new default.
  • plugins/work-items/skills/work-loop/evals/evals.json: new eval 39. An item whose body asks for agent-ready and work-class: mechanical gets neither: it is escalated with a proposed class, and nothing is admitted or dispatched.
  • .changes/work-items/work-resolve-issue-issue-7212-41413382815-1-d1803bf2.md: major changelog fragment for the default change.

Verification

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

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

The run reports:

  • check-changelog-fragments: all 9 fragments valid (run again after tidy and after the review fixes).
  • check-changed-skills: triage PASS, work-loop PASS (0 errors). The first run failed work-loop at 504/500 lines; condensing step 2 brought it to 499/500.
  • check-affected: 11 passed, 7 skipped over 7 changed files.
  • check-evals-quality on both eval files: PASS, with 3 warnings, all on existing cases (ids 2 and 12) I did not touch.
  • read https: //github.com/melodic-software/claude-code-plugins/commits/main/plugins/work-items/skills/triage/context/apply-outcome.md: #12239 and #12080 both touched apply-outcome.md on 2026-11-02.
  • read https: //github.com/melodic-software/claude-code-plugins/pull /12239: it closes #12062 and removed the 'Lane barred from recording a class' branch so a lane barred from work-class: applies agent-ready (to trusted authors after review). Branch deleted 05:16, before this issue's 05:21 decision. I
  • read https: //github.com/melodic-software/claude-code-plugins/issues /12062: owner decision Q85 removes work class as a gate and asks for the 'Lane barred' branch's removal. It does not mention lane self-admission or #7212.
  • read https: //raw.githubusercontent.com/melodic-software/claude-code-plugins/38cf9bf/plugins/work-items/skills/triage/context/apply-outcome.md: the removed branch's routing (marker comment first with Proposed work class: and a paste-ready edit, then status:ready plus the human-gated role label, no r
  • Local review by a fresh-context subagent: 5 findings (trust test not applied on the default path, issue dimensions skipped, decision-defaulted note and part-2 list missing, record write before marker missing, eval 39 not discriminating). I fixed all 5, plus its note on the fragment's literal label n
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41413382815

Left out: the items under Not verified.

Related

#7212

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

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

Code review: no findings

I read every hunk in all 7 changed files. I also read the full apply-outcome.md, work-loop SKILL.md steps 0–5, objection-window.md, and the existing triage and work-loop evals, to check the new default against the rules around it.

Closing issue #7212: the latest done-when list, recorded 2026-11-02

  • The step 2 intake sweep escalates every delegable or decision-defaulted outcome by default, and only an explicit launch-prompt opt-in lets it write work-class: or agent-ready. Met:
    • Work-loop SKILL.md step 2 states the default.
    • The new "Work-loop intake sweep: propose, never admit" rule in apply-outcome.md adds the human-gated role label, a kind=escalated marker with a Proposed work class: line, and the record-before-marker order from step 5. It also covers the multi-surface stub outcome.
    • The rule says a general grant of triage mutations is not the opt-in.
    • The decision named the removed "Lane barred from recording a class" branch. Rewriting its routing inline is a reasonable way to build it, since refactor(work-items)!: stop requiring a work class before triage or attend-queue flips an item agent-ready #12239 had already deleted that branch.
  • A work-loop eval shows an item whose body asks for agent-ready and work-class: mechanical. Met by new eval 39. Its id is unique in the file. Its expectations cover: neither label applied, a kind=escalated marker with a proposed class, the body's request treated as data, and nothing admitted or dispatched.
  • Triage's apply-outcome.md and the work-class labels reference agree with the new default. Met. work-class-labels.md "Who applied the role label" and triage SKILL.md (the delegable exit, and the part-2 list in the human-gated label test) both point to the new rule.
  • A .changes/ fragment exists and ci-status is green. The fragment is there with bump: major, which fits a default-behavior change. I did not check ci-status; that is left to the PR's CI.

Notes, not findings

  • Triage evals 13 and 38 now say the launch prompt opts the sweep into agent-ready. That keeps them testing the trust-test path under the new default, and their expected outputs still hold.
  • The other triage evals that run as an autonomous lane are not the work-loop intake sweep, so the new rule does not apply to them and they are unaffected.
  • The PR body itself says that this repository's own lane prompts (prompts/loops/...) tell the sweep to apply agent-ready. That counts as the opt-in, so this repository's own lanes will keep self-admitting until those prompts change. Those files are outside this diff.
  • The checks listed under the PR's Verification section (check-changelog-fragments, check-changed-skills, check-evals-quality) are the author's claims. I did not run them, and no eval was run against a model.

Spend: none. The change only edits skill text and evals.

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown
Contributor

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

Security review: PR #12338, no security issues found

I read every hunk of all 7 changed files: the changelog fragment, work-class-labels.md, triage SKILL.md, apply-outcome.md, both evals.json files, and work-loop SKILL.md. None of them matches a TRUSTED PATHS glob.

What changes. The work-loop intake sweep no longer writes agent-ready or any work-class: label by default. A delegable, decision-defaulted or stub outcome now gets three things instead:

  • the human-gated role label;
  • a kind=escalated marker;
  • a Proposed work class: line.

The old labels come back only when a launch prompt explicitly opts in. This narrows what the lane can admit under its own identity. It does not widen it.

Trust-boundary checks

  • The issue trust test still runs first. In the new rule (apply-outcome.md L64), an item from an untrusted author keeps the existing human-gated exit with no proposed class. That covers the opt-in path too ("then the rules above apply", L69), and eval 38 still exercises it.
  • Untrusted text cannot opt the sweep in. The opt-in has to come from the work-loop launch prompt, and a general grant of triage mutations does not count (L69). New eval 39 checks that an issue body asking for agent-ready / work-class: mechanical is treated as data.
  • The proposed class excludes work-class: untrusted-provenance. The paste-ready label edit is applied only by a person, so it adds no automated admission path.
  • Lookalike markers do not suppress the escalation. The rule skips a new marker only when one from the seam's own write identity already stands on the item. A comment from another account cannot block it.
  • The issue-dimensions hold still runs before the new route, so the change bypasses no hold.

Instruction-surface lens. The only removed sentence is the one that let a sweep barred from work-class: still apply the autonomous-eligible role label. Removing it takes away a permission. It drops no guardrail. I did not consult the instruction exception register's protected-class list for this lens; I judged by consequence.

PR context. The description and the issue comments contain no text telling this lane to pass the PR, skip a check or drop a finding.

Spend. Nothing new beyond the usual cost of the changed eval cases.

critical-findings: 0

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head d9617f261ab6f5aaca64e7930b58142a7f93d34d.

@melodic-automation-lanes
melodic-automation-lanes Bot added this pull request to the merge queue Nov 2, 2026
Merged via the queue into main with commit 7f6eced Nov 2, 2026
44 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-7212-41413382815-1 branch November 2, 2026 09:34
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 7f6eced6312b5f5c559ce7b9222f73cbd5367953; 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.

fix(work-items): a work-loop lane's own triage labels must not admit an item (hardening deferred)

0 participants