Skip Guardian scoring in User approval mode (#42256)

## What changed

- Skip Guardian prewarming and asynchronous scoring when `approvalsReviewer` is
  `"user"`, including when the reviewer changes during an active turn.
- Automatically accept ordinary `node_repl.js` execution confirmations in this
  mode while continuing to surface sensitive-action checks and requests for user
  input.
- Cover transitions between User approval, automatic review, and Full Access in
  the app-server integration tests.

GitOrigin-RevId: 599c8ebb672728b9bf3d64c34377ddec230325f8
This commit is contained in:
jif
2026-09-02 10:32:22 +00:00
committed by copyberry
parent bdfd769640
commit a0dcfe2ada
7 changed files with 182 additions and 54 deletions
+5
View File
@@ -1923,6 +1923,11 @@ persisted rollout errors, so unavailable details after a restart remain a termin
## Approvals
In User approval mode (`approvalsReviewer: "user"`), async Guardian scoring and
prewarming are skipped, and ordinary `node_repl.js` execution confirmations are
accepted automatically. Separate sensitive-action checks and requests for user
input keep their existing behavior. Approve for me and Full Access are unchanged.
Full Access (`approvalPolicy: "never"` with unrestricted selected environments)
skips Guardian, including background scoring. Confirmation-only MCP approvals,
including strict or sensitive CUA requests, are accepted. Strict responses retain