Skip to content

fix(native-references): declare unattended on every suggesting skill and record the suggestion in unattended runs - #11498

Closed
melodic-automation-lanes[bot] wants to merge 6 commits into
mainfrom
work-resolve-issue/issue-9104-41186180321-1
Closed

melodic-automation-lanes[bot] wants to merge 6 commits into
mainfrom
work-resolve-issue/issue-9104-41186180321-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9104

Summary

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

Each of the 20 skills the issue lists now has unattended in its argument-hint and Arguments. line. Each body ties its native offer to that argument: when the caller passes it, the offer is recorded in the run's output instead of asked; without it, the run asks. visualization:visualize, prototype:explore-directions and session-flow:audit-sessions gained that rule for the first time (design, design, /insights), as the recorded decision requires. Choices made: 19 skills take a bare leading \[unattended\], matching session-flow:retro/handoff, testing:run-e2e and code-tidying:batch-simplify. source-control:pull-request takes \[--unattended\] because its ready --unattended flag already exists, so one skill does not get two spellings. Each skill whose parser would otherwise misread the token (free-text descriptions, exact-match action tables, $ARGUMENTS passed to a script, leading deep/breadth= tokens) now says to take it out first. Three hints were near the 100-character budget in docs/contracts/argument-hint/README.md and were shortened within that contract. planning:plan now writes \[task description|review|close-out\]. pull-request and audit-sessions shorten their action sets with …, and the body keeps the full set.

Not verified

  • Tidy skipped: the change touches 36 files across 14 plugin areas, over the 10-file, 300-line and 1-area tidy cutoffs
  • scripts/new-changelog-fragment.sh could not run: HEAD is detached, so it refuses to derive a branch slug. The 14 fragments were written by hand in its format (<slug>-<8 hex>.md, bump front matter, ### sections), and check-changelog-fragments validates all of them
  • The validate-plugins steps check-affected skips here (identity-prerequisites drift, native-overlap registry, claude plugin test) and the validate-plugin-contracts zero-warning test are left to the PR's CI, which runs scripts/validate-plugins.sh
  • Out of scope and unchanged: pull-request's reference/ready-for-review.md still treats a run with no person driving it as unattended for ready's holds and --skip refusal, and planning:plan's approval gate still recognises an unattended run from context. Neither is a native-surface suggestion. The new
  • No ai-slop or docs-hygiene audit was run on the edited markdown (tidy was skipped). No em dashes were added, and the CI purged-em-dashes scanner checks that
  • No eval asserts the argument hint or the offer's wording, so no eval was changed and no new eval covers the unattended path

Fix

  • plugins/visualization/skills/visualize/SKILL.md: [unattended] in argument-hint; the /design routing records the suggestion and does not ask when the caller passes it
  • plugins/prototype/skills/explore-directions/SKILL.md: [unattended] in argument-hint and Arguments line; Variables says to strip it from the scope; the /design routing records the suggestion (with its lifecycle difference) and builds without asking when passed
  • plugins/session-flow/skills/audit-sessions/SKILL.md: [unattended] in argument-hint (action set shortened to [sweep|now…], 100 chars) and Arguments line with the full set; Arguments section consumes the leading token; /insights Boundary records the suggestion when passed
  • plugins/source-control/skills/pull-request/SKILL.md: [--unattended] in argument-hint and Arguments line (action set shortened with …); Phase 0 takes --unattended out before parsing and passes it only to ready; watch-route paragraph records the recommendation and /autofix-pr prompt when passed
  • plugins/source-control/skills/pull-request/reference/watch-handoff.md: the no-ask path is tied to the caller's --unattended flag
  • plugins/source-control/skills/babysit-prs/SKILL.md: [unattended] in argument-hint and Arguments line; /autofix-pr routing tied to the argument
  • plugins/harness-config/skills/draft-auto-mode-rules/SKILL.md: [unattended] in argument-hint; /auto-mode-setup routing tied to the argument
  • plugins/harness-config/skills/audit-permission-state/SKILL.md: [unattended] in argument-hint and Arguments line; Arguments list and Run it say to drop it before calling audit.sh; /permissions routing tied to the argument
  • plugins/harness-config/skills/audit-permission-grants/SKILL.md: [unattended] in argument-hint and Arguments line; Arguments says it is not a filter and is never passed to the detector; /permissions routing tied to the argument
  • plugins/verification/skills/confirm/SKILL.md: [unattended] in argument-hint and Arguments line; Mode dispatch consumes it first; /verify routing tied to the argument
  • plugins/implementation/skills/implement-dispatch/SKILL.md: [unattended] in argument-hint and Arguments line; Arguments consumes it; /batch routing tied to the argument
  • plugins/discovery/skills/research/SKILL.md: [unattended] in argument-hint and Arguments line; Topic section strips it before breadth=/deep tokens; deep-tier routing counts deep as leading after it; /deep-research routing tied to the argument
  • plugins/discovery/skills/research/reference/native-deep-research.md: the offer-recording line is tied to the caller's argument
  • plugins/context-budget/skills/audit/SKILL.md: [unattended] in argument-hint and Arguments line; both /context and /skill-doctor routings tied to the argument
  • plugins/session-flow/skills/orient/SKILL.md: [unattended] in argument-hint; /recap routing tied to the argument
  • plugins/session-flow/skills/continue-in-background/SKILL.md: [unattended] in argument-hint, Arguments line and Arguments section (consumed first; the word later in a purpose stays purpose text); /background, /fork, /subtask routing tied to the argument
  • plugins/planning/skills/draft-goal-condition/SKILL.md: [unattended] in argument-hint; Arguments strips it from the intent; /goal paste-ready line routing tied to the argument
  • plugins/planning/skills/plan/SKILL.md: argument-hint and Arguments line become [unattended] [task description|review|close-out] [--reader ...] (budget); Action Router strips it first; /plan routing tied to the argument
  • plugins/debugging/skills/debug/SKILL.md: [unattended] in argument-hint and Arguments line; Variables strips it from the observation; /debug routing tied to the argument
  • plugins/bugs/skills/write/SKILL.md: [unattended] in argument-hint; Variables strips it from the bug description; /bug routing tied to the argument

Verification

The runner ran each check from the base copy against 00df886:

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

The run reports:

  • .lane/checks/bin/check-changelog-fragments: All 52 changelog fragment(s) under .changes/ are valid (run before and after the review fixes)
  • .lane/checks/bin/check-affected: 11 passed, 7 skipped over 36 changed files, no failure (run before and after the review fixes)
  • .lane/verify/bin/check-evals-quality over all 20 touched skills' evals/evals.json: PASS, 30 warnings, all in eval cases this change does not touch
  • Manual count of each changed argument-hint against the 100-code-point budget and the shape rules in scripts/validate-plugin-contracts.mjs:1166-1276: all within budget (audit-sessions exactly 100, pull-request 96, plan 92); the fresh-context review confirmed the counts and shapes
  • Fresh-context subagent review of the whole diff: 5 findings (pull-request flag not consumed in Phase 0 and watch-handoff.md not tied to the flag; five free-text skills not stripping the token; stateless table; research Topic/deep parsing and native-deep-research.md). All 5 were confirmed against the
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41186180321

Left out: the items under Not verified.

Related

#9104

Lane-Activity: work-resolve-issue/resolve-issue

@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 00df886072e20787f829d70f9c292f850cc0a458; the summary is in this lane's pull request comment.

claude-lane: claude-review

---

**Arguments.** `[worker|autopilot|help] [owner/repo|#n|owner/repo#n]`. Full form: [worker|autopilot|help] [owner/repo|#n|owner/repo#n] · default: configured default_tier (safe) over your own PRs; worker=fix+resolve-outdated+merge-ready; autopilot=max autonomy all authors; 'help' lists flows
**Arguments.** `[unattended] [worker|autopilot|help] [owner/repo|#n|owner/repo#n]`. Full form: [unattended] [worker|autopilot|help] [owner/repo|#n|owner/repo#n] · default: configured default_tier (safe) over your own PRs; worker=fix+resolve-outdated+merge-ready; autopilot=max autonomy all authors; 'help' lists flows

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.

unattended is now the first positional token, but nothing in the body takes it out before the parser reads it. "Modes and arguments" (line 45) still says "An invocation is [mode] [scope]" and the tier rule (line 54) keys on "the tier keyword in the invocation". With /source-control:babysit-prs unattended worker #87 the first token is neither a mode nor a scope. A strict reading can reject it, or treat it as a scope string. It could also stop the tier keyword counting as leading, which matters because worker and autopilot grant merge authority. The PR says each skill whose parser would misread the token now strips it, and that was done for research, debug, plan, audit-permission-* and stateless, but not here.

Add one sentence to "Modes and arguments": a leading unattended is the caller declaring nobody is present, it governs only the /autofix-pr offer, and it is taken out before mode and scope are read. help should also list it in its flows.

draft-auto-mode-rules (line 73, "an optional argument, environment, allow, soft_deny, or hard_deny") has the same gap.

claude-lane: claude-review

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 159cd9b940290ea5e360947618cda8100e5cee32: 0 finding(s), 0 as inline comments.

Incremental review of the four SKILL.md files changed since 49d9e4c. I found nothing to report.

Each change adds one sentence saying a leading unattended is the caller's declaration, not a mode, scope, tier, section or catch-up argument. The skill removes it before parsing the rest.

I checked three things:

  • Cross-references resolve.
    • draft-auto-mode-rules points at "Routing", which is a bold lead-in at line 56 of that file.
    • babysit-prs points at "Boundary", which is the heading at line 421.
    • orient carries the unattended routing sentence at line 151, and its argument-hint lists it.
  • Parsing order is correct. unattended worker #87 still runs the worker tier on #87, and unattended catch-up still reaches the catch-up scope.
  • The text matches the PR's stated intent. It does what the closing issue fix(native-references): declare unattended on every suggesting skill and record the design suggestion in unattended runs #9104 and the changelog fragments describe.

I read the diff and grepped the changed files. I did not run any checks. The PR description's verification claims are the author's and I did not confirm them.

Manifest items: this change touches no plugin.json or marketplace.json, so none apply. There is no cost hold, and no security finding.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

No security findings in the incremental change (4 files, each a one-to-three-line prose addition).

The change is in draft-auto-mode-rules, orient, babysit-prs and visualize. Each skill now strips a leading unattended token before parsing its mode, scope, tier or argument. That token only decides whether the skill offers or records a native-surface suggestion (/auto-mode-setup, /autofix-pr, /recap, /design) or asks about it.

  • Instruction surface: nothing is deleted, narrowed or softened. The added lines only say how to parse an argument the PR already declares in each skill's argument-hint. No guardrail is removed.
  • Caller input: unattended is supplied by the invoker, who is already the party running the skill. It grants no tools or token scope and bypasses no gate. Its only effect is to switch an interactive offer to a recorded suggestion.
  • Parsing: unattended worker #87 still runs the worker tier on #87, so the token is not parsed as a scope and widens no merge-related path.
  • Trusted paths: babysit-prs/SKILL.md is the only changed file under a trusted path (plugins/source-control/skills/babysit-prs/), and it is not in the listed scripts or merge-hold modules. Its change is one sentence in "Modes and arguments", and it touches no code that gates a merge.
  • Manifests: no manifest file changed.

The PR text contains no embedded instructions aimed at the lane. This change adds no spend.

critical-findings: 0

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

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

a pr-unblock lane stopped its head (pr-unblock/address-feedback is failure), which ci-status fails
  in the merge queue

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor Author

A lane run on this pull request's head failed because the token broker refused it as workflow-modified: .github/workflows/pr-feedback-dispatch.yml changed on main after the run's event, and a rerun keeps the old file. pr-merge pushes an empty commit so the next pr-unblock run uses main's files. It does this once per version of that file, so if a run fails the same way again, a person looks at it. The push starts no run itself: the conflict-resolution run starts at the next push to main or half-hourly pr-unblock-dispatch tick, or when a listed person runs it by hand, and an address-feedback run can start after both review lanes review the new head, if an unresolved thread is left for it.

The token broker refused a lane run on the previous head as workflow-modified (.github/workflows/pr-feedback-dispatch.yml). This commit changes no file.
@melodic-automation-lanes

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

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 nothing will resolve it. The lane sets no label: 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=11498 -f activity=address-feedback

@melodic-automation-lanes

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

Copy link
Copy Markdown
Contributor Author

The pr-unblock lane stopped fix-ci on this pull request: the lane could fix a failing check only by weakening a required check, and the head has no fresh fixer round left (it ran one, or an earlier lane stop already spent its same-head retry), so 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/fix-ci 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=11498 -f activity=fix-ci

@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 Oct 31, 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 Oct 31, 2026
Lane-Activity: pr-unblock/resolve-conflicts

@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 49d9e4cd37b5fa32a1e716a6a68a7bf5b66863a5; the summary is in this lane's pull request comment.

claude-lane: claude-review

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

Copy link
Copy Markdown
Contributor Author

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

@kyle-sexton kyle-sexton added the do-not-merge Hard merge gate: do not merge while applied. label Oct 31, 2026
@github-actions
github-actions Bot deleted the work-resolve-issue/issue-9104-41186180321-1 branch November 2, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge Hard merge gate: do not merge while applied.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(native-references): declare unattended on every suggesting skill and record the design suggestion in unattended runs

1 participant