Skip to content

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

Merged
kyle-sexton merged 9 commits into
mainfrom
fix/9104-unattended-argument-replace
Oct 31, 2026
Merged

kyle-sexton merged 9 commits into
mainfrom
fix/9104-unattended-argument-replace

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

Closes #9104

Summary

Replaces #11498, which stalled on a lanes branch. This branch is origin/main merged with #11498's head 159cd9b9, plus two commits.

Each of the 20 skills the issue lists now declares --unattended in its argument-hint, and each body ties its native offer to that flag: 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 gain that rule for the first time.

--unattended is order-independent, as docs/contracts/skill-argument-shape/README.md requires of an orthogonal modifier: each skill takes it out wherever it appears, before reading the rest. It carries no value. Each hint lists the action, then modifiers, then the subject.

In source-control:babysit-prs, which grants merge authority through worker and autopilot, the flag grants no tier and reaches no script:

  • --unattended worker #87 and worker #87 --unattended both run the worker tier on #87. --unattended alone runs the tier the invocation would run without it.
  • The skill passes it to no script or skill. babysit_merge.py has its own --unattended merge path, which no tier passes, and the two share only a spelling.
  • The bare word unattended and --unattended=<value> are not this modifier: the run stops and names --unattended, and never guesses a tier.

harness-config:audit-permission-state drops the flag before running audit.sh, which refuses an unknown argument, and audit-permission-grants does not pass it to its detector.

discovery:research shows [breadth=low|medium] [deep] [--unattended] [topic], because plugins/discovery/scripts/contract.test.sh requires the hint to start with the breadth token.

Fix

  • The argument-hint, Arguments. lines, parsing text and routing sentences of the 20 skills, plus pull-request/reference/watch-handoff.md and research/reference/native-deep-research.md.
  • session-flow:audit-sessions shortens its hint's action slot to [sweep…] to stay within the 100-character budget; the Arguments line keeps the full set.
  • babysit-prs: the text above, kept within the 500-line cap check-skill.sh enforces (the file is at 499), a contract test in test_skill_contract.py, and eval 19 (unattended-modifier-grants-no-tier).
  • 14 changelog fragments.

The two failures the fix-ci lane stopped on in #11498 are both met in content: the discovery contract test by the hint order above, and the 500-line cap by shorter wording. No check was weakened: git diff --stat origin/main...HEAD -- scripts/ .github/ docs/conventions prints nothing, and the only test change is the one added test.

Verification

Run on b6218ae106193c2e6e18322fe707f2e765335999:

  • scripts/check-affected.sh --uncommitted: 13 passed, 5 skipped, and the same check passed in pre-push.
  • scripts/affected-tests.sh --run --jobs 1: all 15 selected shell suites reported passed or skipped, exit 3 for the 6 non-shell suites run below.
  • pytest, one process per module: test_skill_contract 27 passed, test_guards 24 passed, test_babysit_risk 132 passed and 9 skipped (PyYAML absent from the environment), test_check_contract_clause_coverage 24 passed. Run with an unpinned pytest through uv, not the CI pin.
  • node --test: publish-feedback 136 passed, thread-scope 24 passed.
  • check-skill.sh over the 14 changed skill roots: 80 passed, 0 failed.
  • check-evals-quality.sh on the babysit-prs evals: pass.

No eval evidence. Eval 19 was linted, not run, so the rule that the flag grants no tier is covered at text level only. No other eval covers the unattended path or the argument parsing. Removed lines in the skill files were reworded to the caller-declared rule from #9104 or kept, and no rule is dropped, so this is not a cut under skill-criteria.md. The behavior does change: a skill that used to treat any unattended run as unattended now does so only when the caller passes the flag, and otherwise asks.

A search of tracked plugins, prompts, docs, .github and scripts found no caller passing a positional unattended to any of the 20 skills.

Not run here: the CI-only checks check-affected lists, and the validate-plugins steps it skips (identity-prerequisites drift, native-overlap registry, mods test). The lane's own claims in #11498 were not re-verified.

Related

Replaces #11498
Refs: #4047

🤖 Generated with Claude Code

melodic-automation-lanes Bot and others added 8 commits October 31, 2026 09:30
Lane-Activity: work-resolve-issue/resolve-issue
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.
Lane-Activity: pr-unblock/resolve-conflicts
Lane-Activity: pr-unblock/address-feedback
Lane-Thread: PRRT_kwDOTCGFQM6yQfoZ
The review thread on #11498 asked for it. It stays on the help line, so
the file stays under the check-skill 500-line cap.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgcHpe4YpFuL5b24Ft2
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T14:10:21.603332Z cd7a9bf PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

No security issues found in the incremental change since cd7a9bf.

What changed: The change turns the bare unattended argument into a --unattended flag, accepted anywhere in the arguments, across the 20 skills. It edits 14 changelog fragments, SKILL.md bodies and argument hints, and one reference file. It also adds eval 19 and a contract test for babysit-prs. No script, workflow, manifest, token scope, trusted-actor list, kill switch or merge-hold file is touched.

Instruction-surface lens: I read every removed line.

  • The caller's argument is still the only unattended signal. No skill infers it from the environment.
  • Every /… offer is still recorded rather than run. Each "never runs it on the person's behalf" mutation gate is untouched.
  • babysit-prs is the one skill where the argument could matter for authority, and the change tightens it:
    • --unattended "never selects or raises a tier".
    • It is passed to no script or skill, so the merge gate's own --unattended is a separate path.
    • The bare word unattended and --unattended=<value> now stop and ask rather than guess a tier. That fails closed.
    • The new contract test and eval 19 pin this.
  • audit-permission-state still says to drop the flag before calling audit.sh. It also now states that audit.sh refuses it, so a missed strip would fail rather than widen anything. audit-permission-grants keeps "never pass it to the detector".
  • pull-request only moves the flag in its argument hint. Its existing ready --unattended behavior is not changed in this range.
  • I did not read docs/contracts/instruction-exception-register/README.md, so the protected-class list was not consulted. I judged by consequence instead, and no removed rule is a guardrail that a mechanism no longer enforces.

Manifests: No plugin.json or marketplace.json change in this range, so there are no manifest <field> lines.

Spend: Nothing in the range changes cost.

Trust-control widening: None. Only skill text and one test and eval changed. No file on the trusted-path list for scripts or workflows is in the range.

critical-findings: 0

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cd7a9bf32c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

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

Incremental review of b6218ae (since cd7a9bf): no findings.

The commit changes the unattended argument from a leading bare token to an order-independent --unattended flag, in 14 changelog fragments and 21 skill files. I read the incremental diff and checked these points:

  • Consistency: every touched argument-hint, Arguments. line, strip sentence and Boundary/Routing sentence uses --unattended. I found no leftover "leading unattended" or "first argument" wording in the files I read.
  • audit-permission-state: the new claim that audit.sh refuses the flag holds. The script errors on any unknown argument at scripts/audit.sh:78, so the skill's instruction to drop --unattended before calling it is needed.
  • babysit-prs:
    • The modifier is stripped before mode and scope parsing, so --unattended worker #87 and worker #87 --unattended both resolve to the worker tier.
    • It never selects or raises a tier and reaches no script.
    • The bare word unattended and --unattended=<value> stop the run rather than guess a tier.
    • The new contract test's assertions match the SKILL.md text I read, and the new eval (id 19) covers the path.
    • The edits replace single lines, so the 499-line cap is not affected.
  • Argument-hint budget: the new hints for plan (about 94 characters) and audit-sessions (about 98) are within 100. The changelog fragments say so.
  • Existing evals: the existing evals that mention unattended in plan, confirm, continue-in-background and implement-dispatch describe the run in prose. None asserts the old leading-token hint.

Not checked or run: I ran no tests and no checks in this lane. The PR body says the new babysit-prs eval is the only one covering the unattended argument parsing, and I did not re-check that for the other skills.

No spend or billing change, and no trusted-path code changed beyond skill text.

The skill-argument-shape contract puts the action first and makes an
orthogonal modifier a --flag accepted anywhere, so a leading positional
`unattended` broke it. Every skill this PR touches now takes
--unattended anywhere in its arguments, with hints in contract order.

babysit-prs states that the modifier selects no tier and reaches no
script, because babysit_merge.py has its own --unattended merge path.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01KeBVgcHpe4YpFuL5b24Ft2
@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 31, 2026
Merged via the queue into main with commit 2a8767f Oct 31, 2026
57 checks passed
@kyle-sexton
kyle-sexton deleted the fix/9104-unattended-argument-replace branch October 31, 2026 15:10
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(native-references): declare unattended on every suggesting skill and record the design suggestion in unattended runs

1 participant