agent_scan
Audit multiple project paths for decay status, anomalies, and manifest gaps, with optional automatic rotation of expired secrets.
Instructions
[agent] Run a multi-project health pass that gathers decay status, audit anomalies, and .q-ring.json manifest gaps across one or more project paths and (optionally) auto-rotates expired secrets with freshly generated values. Use as the canonical 'agent maintenance loop' across a portfolio of repos; prefer health_check for a single read-only scope, detect_anomalies for audit-only triage, and check_project for a single-project manifest check. With autoRotate=false (default) this is read-only. With autoRotate=true it OVERWRITES expired secret values in the keyring with generated replacements — credential changes that may break upstream integrations until they are propagated. Subject to tool policy. Returns a JSON report of per-project findings and any rotations performed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| autoRotate | No | If true, replace expired secrets with newly generated values (using each secret's `rotationFormat`/`rotationPrefix`). Only enable when intentional rotation is desired — this is destructive on the upstream side. | |
| projectPaths | No | List of absolute project roots to scan. Defaults to `[server.cwd]` when omitted. |