--- name: audit-subagent-deliverables description: "Integrate subagent-written code safely: line-by-line audit, mechanical gates (bash test/lint), adversarial-review-report triage, resource-safety pass (fd/memory), and cutover with running-process restarts." --- # Audit subagent deliverables A subagent that wrote code is a source of plausible output, not a verified change. Integrate it the way you'd integrate an untrusted PR — with extra suspicion, because the author is an agent that shares your blind spots and its prose is more confident than its evidence. Order of operations: read everything → gates → tests (as evidence, not proof) → resource-safety pass → fix in-place → cutover. ## 1. Read every produced file, line by line Full file, not a diff skim. You are the reviewer who must catch the line the author never thought about. ## 2. Mechanical gates before logic review ```bash bash -n