← Hermes Field Notes
2026-06-02 · secrets · safe delegation

Secret-handling checklists for AI agent automation

AI agent operations often involve systems that need credentials, tokens, or private configuration. The safe pattern is not to pretend secrets do not exist. The safe pattern is to make secret handling explicit before automation reads files, runs diagnostics, or publishes results.

A small checklist gives humans and AI agents the same operating boundary: inspect only what is necessary, redact evidence, avoid copying sensitive values into prompts or logs, and verify outcomes without revealing credentials.

Checklist before using an agent near secrets

Copyable safe delegation prompt

Inspect this automation for secret-handling risk. Start with read-only diagnostics. Do not print, copy, transform, upload, or summarize credential values. Report only presence, missing variables, validation status, and safe remediation steps. Separate diagnostics from any state-changing actions, and include verification that does not expose secrets, private paths, personal data, account identifiers, or network details.

Why this belongs in the runbook

Secret-handling rules should be part of the operational runbook, not a hidden assumption. Clear rules improve automation debugging, reduce accidental disclosure, and help local-first tooling stay private until a deliberately sanitized result is ready to publish.

Rule of thumb: an agent can say “credential present” or “credential missing” without ever showing the credential itself.