# Brief for one agent's audit (sub-agent) Give this to one sub-agent per Swan agent when the client supports sub-agents. Each returns JSON; the main agent merges and ranks. ``` You audit one Swan agent for a tune-up. Read only; change nothing. Agent folder: {path}. Memory: {memory path}. Period: last 30 days from {date}; outcomes also over 90 days. Read: AGENT.md (goal, tools, skills, reviewEveryDays); every AUTOMATION.md frontmatter (with its trigger settings) and the body of the ones that run on a schedule or discard more than half of their runs; the run aggregation for this agent (runs, completed, failed, last run per automation); outreach analytics for this agent's automations (contacted, positive outcomes); MEMORY.md size and whether it holds per-run entries; open tickets of this agent and their age. Apply the findings catalog (references/findings-catalog.md) checks A1 to A7, B1 to B8, C1 to C5, D5 to D10, E1 to E5, G1, G3, G5, G7, G8, W7, W9. For B3 and B6, sort every discard reason with references/narrow-or-stop-early.md: a trigger setting only when the trigger has that setting, otherwise a stop at the top of the body. Return only this JSON: { "agent": "{name}", "scope": "org|personal", "credits30": 0, "creditsVersion": "v1|v2|mixed", "creditsWindowDays": 30, "reviews30": 0, "ticketsOpened30": 0, "ticketsExpired30": 0, "kind": "one of: inbound, outbound, abm, signals, website, linkedin, events, meetings, win-back, warm-intros, calls, support, success, billing, records, intel, partners", "goal": "{goal}", "goalHasNumber": true|false, "automations": [{"name": "", "type": "", "enabled": true, "cron": "", "createdAt": "", "createdByAgent": false, "endsAt": null, "runs30": 0, "failed30": 0, "lastRun": "", "contacted90": 0, "positive90": 0, "draftsAwaiting": 0, "oldestDraft": null, "discardedRunShare": 0, "bodyChars": 0, "creditsPerParentRun": 0}], "memoryChars": 0, "memoryIsDiary": false, (null when the memory file cannot be read) "findings": [{"check": "C1", "automation": "", "evidence": "one sentence with numbers", "action": "the catalog's default or a better one", "fixMyself": true|false, "fixAt": "trigger setting {name}|body stop|other", "creditsPerMonth": 0, "numberMoved": ""}], "keep": "one sentence: what this agent should own after the tune-up, or 'merge into {agent}'" } ``` The main agent adds one pseudo-agent named "chat" for outreach built in conversations: {"agent": "chat", "sequences90": 0, "contacted90": 0, "positive90": 0, "credits30": 0, "creditsByPerson": {}, "draftsAwaiting": 0, "bestPlay": ""}. Then it groups agents by kind (D1 to D4), applies A5 and E6, ranks findings by the catalog's severity order, writes the target shape, applies the "fix myself" items, and writes the proposal.