Skip to content

fix(app-control): make app-control:drive keep the Sign-in floor's per-run count - #11193

Merged
kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-9667-41015351995-1
Oct 30, 2026
Merged

kyle-sexton merged 1 commit into
mainfrom
work-resolve-issue/issue-9667-41015351995-1

Conversation

@melodic-automation-lanes

Copy link
Copy Markdown
Contributor

Closes #9667

Summary

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

The control-skill contract's Safety floors give whatever runs a feature's Drive steps three duties the stateless CLI cannot carry. Drive's SKILL.md already stated two of them in its "Read-only by default" rule: exit 4 is blocked: and never retried, and --attended and --yes are passed only with a person present and after their yes. It lacked the one-sign-in-per-account rule. A new Rules bullet now states that rule as the contract gives it: at most one cli/ sign-in <account> per account per run unless the owning app's committed config allows more, the count spanning integrated apps and repeated includes, an over-count sign-in blocked:, and a failed sign-in ending the non-finally steps with no other account tried.

Not verified

  • check-affected skipped changed-skills, validate-plugins sub-checks and typos in this lane (they run checked-tree code or typos is not installed); left to the PR's CI
  • Review note not applied: whether a sign-in refused with exit 4 is recorded as a failed sign-in (ending the other steps) or only as blocked:; the contract does not settle it, so the bullet makes no claim beyond the existing exit-4 rule
  • Review note not applied: whether a finally step may sign in with a different account after a failure; the contract bars only the same account in its Finally steps text, so the bullet states only that
  • verify step skipped: the change is markdown only, with no build or test to run for it
  • new-changelog-fragment could not run (HEAD is detached, the script names fragments by branch); the fragment was written by hand in the existing work-resolve-issue-issue-<n>-<hash> shape and passes check-changelog-fragments
  • Untracked dotfiles at the checkout root (.bashrc, .bash_profile, .gitconfig, .idea, .mcp.json, .profile, .ripgreprc, .vscode, .zprofile, .zshrc) were not created by this run and were left untouched; they should not go into the patch

Fix

  • plugins/app-control/skills/drive/SKILL.md: new Rules bullet "One sign-in per account per run" stating the caller-kept per-run sign-in count, how it is counted (integrated apps, a sign-in file included twice), the over-count and failed-sign-in outcomes, and finally-step handling, each traced to contr
  • .changes/app-control/work-resolve-issue-issue-9667-7d2b4e19.md: new patch changelog fragment (### Fixed) for the change

Verification

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

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

The run reports:

  • Read plugins/app-control/reference/control-skill.md Safety floors (:442-483), Steps files include/finally bullets (:247-264) and Integrated apps Floors (:434-436): the new bullet's claims match them
  • Read drive SKILL.md Rules: exit-4 blocked and --attended/--yes duties already present at the Read-only by default bullet (:148-153), so all three Done-when duties are now stated
  • check-changelog-fragments (run 3 times, last after review fixes): All 14 changelog fragment(s) under .changes/ are valid
  • check-affected (run 3 times, last after review fixes): 11 passed, 7 skipped over 2 changed files
  • ai-slop detect.sh on both changed files (before and after review fixes): 0 findings across 2 files
  • Fresh-context review subagent over the diff and the contract: no contradictions; confirmed the fragment overstated the CLI's role (fixed); uncertain gaps on integrated-app counting, committed-config meaning, over-count handling and a non-exhaustive failure list were checked against the contract and
  • The lane run: https://github.com/melodic-software/claude-code-plugins/actions/runs/41015351995

Left out: the items under Not verified.

Related

#9667

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

Copy link
Copy Markdown
Contributor

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

No security issues found in this pull request.

The change has two files:

  • plugins/app-control/skills/drive/SKILL.md: a new Rules bullet, "One sign-in per account per run".
  • A patch changelog fragment under .changes/app-control/.

I read the whole diff and the PR context. No changed file matches a trusted path. The diff touches no plugin manifest, workflow, token request, kill switch, merge hold or trusted-actor list.

Instruction-surface lens: the diff adds a standing instruction and does not delete, narrow or soften one. It tightens drive's behavior:

  • It limits sign-ins to one per account per run.
  • It treats an over-count sign-in as blocked:.
  • It ends non-finally steps after a failed sign-in.
  • It bars substituting another account.

The one loosening is the "unless committed config … allows more" clause. It reads the owning app's config/defaults.json at HEAD, which is committed and reviewed config. It is not text from a run or from user input. Pull request text can't relax the limit through it.

Embedded instructions: the PR context and the linked issue comments contain no imperative aimed at this lane.

Manifest: the diff hits no plugin.json or marketplace.json field.

Cost: the change adds no billable resource and no new spend.

critical-findings: 0

@github-actions

Copy link
Copy Markdown
Contributor

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

No findings. I read the full diff, the PR context and the contract sections the new bullet cites.

Closing issue #9667, "Done when": drive's SKILL.md states the one-sign-in-per-account rule, the exit-4 blocked rule, and when it passes --attended and --yes.

  • Met. The new "One sign-in per account per run" bullet at plugins/app-control/skills/drive/SKILL.md:156-164 adds the missing sign-in rule. The exit-4 blocked: rule and the --attended/--yes duties were already in the "Read-only by default" bullet at lines 148-153.

Check against plugins/app-control/reference/control-skill.md (I read this myself):

  • Safety floors, Sign-in (lines 459-463): one attempt per account, the caller keeps the count, a failed attempt stops the run with no switch to another account, and only committed config allows more. The bullet matches.
  • Steps files, include and finally (lines 247-249, 258-264): a sign-in file included twice for one account counts as two attempts. A failed sign-in ends the non-finally steps. A finally step that signs in again for that account is refused and reported as blocked. The bullet matches.
  • Integrated apps (line 436): the caller's per-run count spans both apps. The bullet matches.
  • "Committed" as config/defaults.json at HEAD (line 445): the bullet matches.

Judgment calls, not findings:

  • The bullet lists "a timeout or an unset credential variable" as examples of a failed sign-in. The contract only says "a failed attempt". The list is introduced with "such as", so it reads as illustrative.
  • The PR description says it makes no claim about whether an exit-4 sign-in counts as a failed sign-in, and the bullet does not make one.

Changelog fragment .changes/app-control/work-resolve-issue-issue-9667-7d2b4e19.md: a patch bump for a documentation-only skill clarification that fixes a missing duty is reasonable. Its text agrees with the SKILL.md bullet.

Not verified by me: I ran no scripts. The PR's checks (changelog-fragment validation, check-affected) are author-claimed.

Spend: no billing change.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Oct 30, 2026
Merged via the queue into main with commit a404773 Oct 30, 2026
45 checks passed
@kyle-sexton
kyle-sexton deleted the work-resolve-issue/issue-9667-41015351995-1 branch October 30, 2026 07:38
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(app-control): make /app-control:drive keep the control-skill floors' caller duties

1 participant