Skip to content

refactor(work-items)!: stop requiring a work class before triage or attend-queue flips an item agent-ready - #12239

Merged
melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-12062-41380364677-1
Nov 2, 2026
Merged

melodic-automation-lanes[bot] merged 2 commits into
mainfrom
work-resolve-issue/issue-12062-41380364677-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #12062

Summary

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

Triage and attend-queue no longer require a work-class: label before an item gets the autonomous-eligible role label. The one pairing ban left is work-class: untrusted-provenance / provenance: signal, which never goes with agent-ready. Triage's five-label preflight and its "Lane barred from recording a class" branch are gone, so a lane that may not write work-class: labels now applies agent-ready to a delegable outcome. Attend-queue's "No recorded class: stamp, then flip" rule and its rule to reclassify work-class: structural before the flip are gone, and its untrusted-provenance rule stays. The floor test, the work-class reference, the evals and a bump: major fragment are updated to match. I also edited the two loop-lane prompt files, which are outside plugins/work-items, because they pointed the work-loop lane at the removed triage branch and told it never to apply agent-ready. Left unchanged, they would have kept that lane from reaching done-when item 2.

Not verified

  • I could not run plugins/work-items/tests/floor-class-stays-routable.test.sh here, because the lane runs no interpreter or test scripts. Its pass was traced by hand (and by the review subagent) against the shipped attend-queue SKILL.md and each fixture. The run is left to the PR's CI.
  • The PR's CI being green is a CI check and is left to the PR's CI.
  • Tidy was not run: the change touches 12 files in 2 areas (plugins/work-items and prompts), over the 10-file and 1-area tidy cutoffs.
  • The setup skill still says triage needs all five work-class labels: skills/setup/reference/check.md:119-120, skills/setup/SKILL.md:235 and :349-351, and setup evals.json:168. The issue puts setup's label provisioning out of scope, and these lines gate nothing, so they are left for a follow-up.
  • In both prompts/loops files, the paragraph after the edited one still says an item without a recorded class goes through the admission gate's own classification and fails closed. That text dates from the earlier admission change (S1), and the runtime-boundary paragraph after it depends on it, so it
  • reference/capability-tier-labels.md:23-24 still says security-surface work routes to the frontier model tier 'via work-class rules in the admission gate'. It picks a model tier, not a person, and is older than this change, so it is left as is.
  • The working tree has untracked dotfiles this run did not create (.bash_profile, .bashrc, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc). They are not part of this change and should not go into the patch.

Fix

  • plugins/work-items/skills/triage/context/apply-outcome.md: replaced "Work-class pairing (hard)" with "Work class does not gate the role label". The role label no longer needs a class, the five-label preflight is gone, and the only ban left is untrusted-provenance / provenance: signal. Removed the "L
  • plugins/work-items/skills/triage/SKILL.md: the vocabulary line says no class gates the role label. The delegable and decision-defaulted exits lose the lane-barred branch. The human-gated label test and the line on its part-2 instances drop the stamp-a-class reason. The sweep now skips only untrusted
  • plugins/work-items/skills/attend-queue/SKILL.md: removed "No recorded class: stamp, then flip" and the structural reclassify rule. The flip bullet says no class, or missing class, blocks it. Only untrusted provenance or provenance: signal does, under the renamed branch "Untrusted provenance: reclass
  • plugins/work-items/tests/floor-class-stays-routable.test.sh: the transition must name work-class: untrusted-provenance, must not name work-class: structural, and must keep a reclassify branch. Fixtures updated, including new ones for a transition that still gates on structural and for one with no re
  • plugins/work-items/reference/work-class-labels.md: the human-floor section names no structural or C1-C3 reclassify step and points at the renamed attend-queue branch. The item carries at most one class, not exactly one. The Migration section no longer says triage needs all five labels before it appl
  • plugins/work-items/reference/escalation-marker.md: the Proposed work class line no longer cites the removed triage branch or an attend-queue stamp question.
  • plugins/work-items/skills/work-loop/SKILL.md: the intake-sweep step says a lane barred from writing work-class: labels still applies agent-ready to a delegable outcome, without a class.
  • plugins/work-items/skills/triage/evals/evals.json: eval 13 is rewritten: a lane barred from class labels applies agent-ready with no class and no escalation.
  • plugins/work-items/skills/attend-queue/evals/evals.json: eval 6 is rewritten: an unclassed item and a work-class: structural item both take the plain flip with no stamp and no reclassify. Eval 17's expected output no longer requires a dispatchable class.
  • prompts/loops/loop-lane-prompts.md, prompts/loops/loop-lane-profile-claude-code-plugins.md: the worker-lane prompt no longer sends delegable outcomes to the removed triage branch. A missing class does not change the triage outcome.
  • .changes/work-items/work-resolve-issue-issue-12062-41380364677-1-7f93b3b7.md: new bump: major fragment stating that triage no longer requires a work class for the autonomous-eligible role, plus the attend-queue changes.

Verification

The runner ran each check from the base copy against 70a584f:

  • 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 (run before and after the review fixes)
  • check-changed-skills: attend-queue, triage and work-loop PASS, 0 errors. Warnings are only size and description-length advisories that were already there.
  • check-affected: 12 passed, 6 skipped over 12 changed files (run before and after the review fixes)
  • check-evals-quality on the triage and attend-queue evals.json: PASS. Its 1 warning is on unchanged triage eval 12.
  • cant-fail-scan --file plugins/work-items/tests/floor-class-stays-routable.test.sh --check: PASS, no gating findings
  • Grep for work-class|workClass|work_class|lane_class in plugins/work-items, excluding CHANGELOG.md and rule-admit: no remaining line refuses, holds, escalates or routes on a class other than untrusted provenance. Remaining hits are label descriptions, label application or reporting, setup provisionin
  • Grep repo-wide outside CHANGELOG.md for "Lane barred from recording a class", "stamp, then flip" and "Human-floor work class: reclassify": no references remain
  • Fresh-context review subagent over the whole diff: no blocking defects. It traced the floor test by hand against the shipped SKILL.md and every fixture and confirmed it passes. I applied its confirmed findings (label preflight list, 'at most one' class, triage vocabulary line, provenance: signal rem
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41380364677

Left out: the items under Not verified.

Related

#12062

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

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Code review: PR #12239, incremental since 70a584f (head b33fdc3)

This is an incremental review. I read every hunk of the 4 files in scope in .claude-lane/incremental.diff:

  • apply-outcome.md
  • the triage evals.json
  • the two prompts/loops files

I used the full diff only for context.

What the increment fixes

The settled thread on apply-outcome.md asked that outsider-authored intake not reach agent-ready when the lane cannot write a class label. The thread is marked lines changed since resolution: yes, and the fix is in:

  • Trusted authors only. apply-outcome.md L44 now gives agent-ready without a class only when the issue author is trusted: author association OWNER or MEMBER, or a listed trusted internal bot. Every other item, including one whose association can't be read, goes to the human-gated label with no status:ready.
  • The cited test exists. I checked that plugins/autonomy/reference/guardrails/work-classes.md has the "Issue: the intake's provenance" section and the babysit_loop_trusted_internal_bot_logins arm, at L69-L83. Its fail-closed wording matches what the new text says.
  • Stale paragraph fixed. Both prompts/loops files no longer claim the admission gate classifies unclassed items. They now put the untrusted-spec check at triage.
  • Evals. Eval 13 now says the author is MEMBER. New eval 38 covers an outsider (NONE) whose issue body falsely claims to be from a maintainer. Its id is the next free one after 37.

Finding (cross-file, no changed line in scope can carry it)

work-loop/SKILL.md still tells the intake sweep to apply agent-ready with no author condition.

plugins/work-items/skills/work-loop/SKILL.md L236-L238 reads: "When the launch prompt bars this lane from writing work-class: labels, a delegable or decision-defaulted outcome still takes the autonomous-eligible role label, without a class."

That is exactly the lane this increment restricts. apply-outcome.md L44 now allows agent-ready there only when the author passes the issue trust test, and human-gates every other item. The work-loop step is the instruction that lane actually runs, and it states the old, unconditional rule.

How it fails: the work-loop sweep picks up an outsider's issue (association NONE, no signal marker). The loop's own step 2 tells it the delegable outcome "still takes" agent-ready, and that contradicts triage's rule. Which text wins depends on the model, which is the gap the settled thread asked to close. The loop-lane prompts were updated, but the skill text was not.

Fix: change L237-L238 to match, for example: "...still takes the autonomous-eligible role label without a class only when the issue author passes the issue trust test (/work-items:triage context/apply-outcome.md, "Work class does not gate the role label"); any other item takes the human-gated role label."

Other notes

  • Not verified here: whether CI and check-evals-quality pass on eval 38. I had no shell.
  • Settled threads: the only one is the apply-outcome.md thread, and this increment addresses it. I am not raising it again.
  • Prior findings: none from this lane that are still open and unchanged.
  • Round cap: not reached (0 of 3).
  • Instructions inside the input files: none.

@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-security-review: 1 inline finding(s) on 70a584fc86242e50967ff580eda3d6987ead8c67; the summary is in this lane's pull request comment.

claude-lane: claude-security-review

@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

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

Security review: PR #12239 (incremental since 70a584f)

I read every hunk of the 4 files in scope: apply-outcome.md, triage evals.json, and the two prompts/loops files. None of them matches a TRUSTED PATHS: glob. Nothing changed in plugin manifests, workflows, tokens or trust actions.

Prior finding (outsider-authored intake reaching agent-ready): addressed. A lane that may not write work-class: labels now applies agent-ready only when the issue author passes the issue trust test (apply-outcome.md#L44). What I checked:

  • The test passes only for author association OWNER or MEMBER, or a listed trusted internal bot.
  • It is read from the tracker's metadata, never from the item's text.
  • An absent or unreadable association fails closed to needs-human with no status:ready.
  • It matches the canonical test in work-classes.md#L69-L79, including its fail-closed rule.
  • The tracker does expose the field: rule-admit.sh already keys on author_association (rule-admit.sh#L205).

New eval 38 covers the main attack: an issue with association NONE whose body claims a maintainer wrote it. The stale "admission gate's own classification" paragraph is corrected in both prompts/loops files. The settled thread on apply-outcome.md (owner reply "please fix", lines changed: yes) is answered by this change.

SUGGESTION: residual unconditional wording in the work-loop skill (cross-file, unchanged since the last review). work-loop SKILL.md#L236-L238 still says: "When the launch prompt bars this lane from writing work-class: labels, a delegable or decision-defaulted outcome still takes the autonomous-eligible role label, without a class." It does not mention the new author-trust condition. This is the loop's own instruction to the seat that runs the intake sweep, so it contradicts the narrowed triage rule. The triage rule is the more specific one and should govern. Still, add "on an item whose author passes the issue trust test (otherwise human-gated)" here, so a model reading the loop text first does not take the unconditional version as the override. severity: SUGGESTION

Instruction-surface lens. The incremental change narrows the role-label grant; it does not loosen it. No guardrail is removed.

Spend. Nothing new. If anything, fewer items reach agent-ready than at the last head. Not a hold.

Pull request text. No embedded instructions found.

critical-findings: 0

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

Unattended merge: native auto-merge leaves this pull request unarmed at head 70a584fc86242e50967ff580eda3d6987ead8c67. The lanes clear this reason on their own; the next scheduled run judges it again.

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

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The unattended merge path armed native auto-merge at head 70a584fc86242e50967ff580eda3d6987ead8c67.

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

Copy link
Copy Markdown
Contributor Author

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

@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 4df8d3a Nov 2, 2026
46 checks passed
@melodic-automation-lanes
melodic-automation-lanes Bot deleted the work-resolve-issue/issue-12062-41380364677-1 branch November 2, 2026 05:16
@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

The post-merge check verified merge commit 4df8d3ae60197b7f7417a9166b74e33caadffa48; later checks count it verified from this comment.

@kyle-sexton

Copy link
Copy Markdown
Member

Post-merge eval (#12061). I ran claude plugin eval (Claude Code 2.1.316) on this PR's squash commit 4df8d3ae and on its parent 2d6c7966, with the triage and attend-queue cases, with and without the plugin, 3 runs each.

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.

refactor(work-items): stop requiring a work class before triage or attend-queue flips an item agent-ready

1 participant