You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(app-control): attach without a per-attach yes in interactive sessions #9492
The owner decided (2026-10-23, in the poteto session, Q697, typed: "Yes."): in an interactive session, /app-control:drive --attach attaches to the process the person named without waiting for a yes on each attach. This follows pstack's runtime-forensics playbook, which captures on the live process with no ask (cursor/plugins@118e73b0e1pstack/skills/poteto-mode/playbooks/runtime-forensics.md:5,7), and its never-block-on-the-human principle, which reserves confirmation for irreversible actions. The owner made the same call for launched-process captures in Q695.
Change
In plugins/app-control/skills/drive/SKILL.md## Attach (about lines 76-91 on main):
Remove "Ask before each attach ... wait for a yes; one yes covers one attach." In an interactive session, attach to the process the person named, with the tool the control skill names, and show the exact command in the report.
Keep: with no one present (--unattended, scheduled, loop, CI, dispatched, headless), refuse and record blocked: --attach needs a person present.
Keep: elevation goes through a shown script and waits for a yes. An elevated command is not a read-only attach.
Keep: attach only to the process the person named, never one found by a name lookup.
Use "interactive", not "attended", in the new text (owner's term).
Evals: change the attach-asks case to expect the attach without a question in an interactive session, and keep the unattended-refusal and elevation cases. The skill-criteria non-inferiority rule applies to the cut.
Decision recorded. Q697 (owner, 2026-10-23, in the poteto session, typed: "Yes."): in an interactive session, drive attaches to the process the person named without a per-attach yes. It still refuses when no one is present, and elevation still goes through a shown script.
Permission-denied capture (IMPORTANT in refactor(debugging): drop capture mode from analyze-profile and route capture to drive #9328 round 6; fails safe).control-skill.md:44-46 bars elevation prefixes in ## Capture and leaves elevation to drive. But drive treats a command as needing elevation only when it carries a prefix (SKILL.md:70-74). A correctly unprefixed perf record -p <pid> that fails for lack of permission is "not performed" and names the grant (SKILL.md:61-62), so the shown-script route never fires for it. Add: "a named capture command that fails for lack of permission needs elevation: the shown script when interactive, blocked: capture needs elevation when unattended, never a retry with added elevation". Also say the prefix list (sudo, doas, runas) is examples, not a closed set.
Eval 10 (elevated-capture-shows-a-script-when-interactive) fails in the after arm. The reply names the shown-script step but writes no script, because the case gives no pid. Fix the case setup so a script can be written. The refactor(debugging): drop capture mode from analyze-profile and route capture to drive #9328 runs were also weak: the harness sandbox failed to start in 3 of 4 runs ("Failed to create bridge sockets"), and no run made a Bash call.
Activity
kyle-sexton commentedon Oct 23, 2026
Decision recorded. Q697 (owner, 2026-10-23, in the poteto session, typed: "Yes."): in an interactive session, drive attaches to the process the person named without a per-attach yes. It still refuses when no one is present, and elevation still goes through a shown script.
kyle-sexton commentedon Oct 23, 2026
Folded in from the #9328 reviews:
control-skill.md:44-46bars elevation prefixes in## Captureand leaves elevation to drive. But drive treats a command as needing elevation only when it carries a prefix (SKILL.md:70-74). A correctly unprefixedperf record -p <pid>that fails for lack of permission is "not performed" and names the grant (SKILL.md:61-62), so the shown-script route never fires for it. Add: "a named capture command that fails for lack of permission needs elevation: the shown script when interactive,blocked: capture needs elevationwhen unattended, never a retry with added elevation". Also say the prefix list (sudo, doas, runas) is examples, not a closed set.elevated-capture-shows-a-script-when-interactive) fails in the after arm. The reply names the shown-script step but writes no script, because the case gives no pid. Fix the case setup so a script can be written. The refactor(debugging): drop capture mode from analyze-profile and route capture to drive #9328 runs were also weak: the harness sandbox failed to start in 3 of 4 runs ("Failed to create bridge sockets"), and no run made a Bash call.