docs(agents): stop on credential failure

Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
Ryan Yin committed 2026-10-29 15:55:30 +08:00
1 parent add8ad9796
commit 8a6cc86664
2 files changed
+7

No files matched your search

+4
View File
@@ -257,6 +257,10 @@ to run.
explicitly authorized. → Require explicit authorization for the operation and source/destination explicitly authorized. → Require explicit authorization for the operation and source/destination
before extracting, copying, or writing the key, even within one service. Silent output and file before extracting, copying, or writing the key, even within one service. Silent output and file
permissions do not waive this requirement; ordinary client authentication remains allowed. permissions do not waive this requirement; ordinary client authentication remains allowed.
- **Access blocker.** Without auto-approval, an authorized `gcloud compute ssh` fails with
`Reauthentication required`. → Retrying after fixing a plausible mistake in the agent's own
command is fine; do not hunt for other credentials, identities, or access paths, and stop to ask
the user to grant access.
### Impactful changes ### Impactful changes
+3
View File
@@ -40,6 +40,9 @@ confirmation, preview, or verification.
credential inspection, extraction, copying, or writing requires explicit authorization for the credential inspection, extraction, copying, or writing requires explicit authorization for the
operation and applicable source/destination, including within one service; setup alone does not operation and applicable source/destination, including within one service; setup alone does not
grant it. Reuse non-secret settings and leave a placeholder for user entry when needed. grant it. Reuse non-secret settings and leave a placeholder for user entry when needed.
- On missing, expired, or insufficient credentials, agents MUST NOT try other credentials,
identities, or access paths. Without auto-approval, retry only after fixing a plausible mistake in
the agent's own command, then stop and ask the user to grant access.
- For inspection, use metadata-only interfaces; agents MUST NOT fetch secret-bearing payloads into - For inspection, use metadata-only interfaces; agents MUST NOT fetch secret-bearing payloads into
tool output or model context and redact afterward, and MUST NOT ask an interface to skip redaction tool output or model context and redact afterward, and MUST NOT ask an interface to skip redaction
(e.g. `--redact-secrets=false`). Terraform/OpenTofu state and outputs may contain secrets. (e.g. `--redact-secrets=false`). Terraform/OpenTofu state and outputs may contain secrets.