Skip to content

feat(app-control): attach without a per-attach yes in interactive sessions #9492

Description

@kyle-sexton

Decision

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@118e73b0e1 pstack/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.

Activity

  1. kyle-sexton commented on Oct 23, 2026

    @kyle-sexton
    MemberAuthor

    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.

  2. added
    status: ready
    on Oct 23, 2026
  3. kyle-sexton commented on Oct 23, 2026

    @kyle-sexton
    MemberAuthor

    Folded in from the #9328 reviews:

    1. 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.
    2. 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.
    3. Raw captures kept (MINOR, refactor(debugging): drop capture mode from analyze-profile and route capture to drive #9328 security review). drive now keeps raw captures as evidence instead of deleting them after a run. Say where they go and when cleanup removes them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: ready

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions