Skip to content

askBrowserStackAI: write approval is a model-set decision parameter; non-prompting clients approve with no human #563

Open

Description

@JacobTRND

At 76ff1891fc0c09e351efb71d051ab70abc9c44ec (v2.6.5), askBrowserStackAI takes write approval as a parameter the model fills in. When a run parks at a write it returns status: "needs_approval", and the caller resumes with run_id, perm_id and decision: "allow" | "deny" (src/tools/ask-browserstack/register.ts, the decision field of the input schema).

  • relayMode() (register.ts:576-586) makes this two-call approval the default on every deployment. Elicitation is used only behind ASK_BROWSERSTACK_RELAY_TRANSPORT=elicit.
  • deferred.ts:13-16 already states the cost: approval rides the client's own permission prompt on the second call, so a client configured not to prompt approves with no human.
  • The tool is annotated readOnlyHint: false, destructiveHint: false, openWorldHint: true. A client therefore cannot tell from annotations that one call may apply writes chosen at run time, or that a resume with decision: "allow" is the write itself.
  • A task phrased as a question can come back needs_approval for a write, so the original request is not consent to the parked change.

This is the same class as #562 (invokeCapability takes consent as a model-set user_permission), but a different tool and parameter.

Requests:

  • Document that clients must treat every askBrowserStackAI resume with decision: "allow" as a write needing the user's confirmation for that specific change, and that a non-prompting client must not be used with it.
  • Where the client advertises elicitation, consider making elicitation the default, since it fails closed.
  • Consider a separate tool for the resume that applies a write, or destructiveHint: true on it, so clients can gate it from annotations.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions