build_audit
SECURITY + CORRECTNESS AUDIT of a bundle BEFORE go-live (static; your code is never executed). Finds what build_validate/build_doctor do not: MONEY-01 client-chosen checkout amounts, AUTHZ-01 end-users able to write server-owned fields (paid/issued/status/amount/payment refs) or create tickets/payments, FLOW-01 fulfilment done in the browser or on payment_status alone, INV-01 capacity/stock with no server-side enforcement, PUB-01 draft/hidden rows in PUBLIC_SCHEMAS, LAUNCH-01 terms/privacy/password-reset/meta gaps. Each finding has severity (blocker|critical|high|warning), file:line or policy, evidence, the exact fix pattern and a fingerprint. Fix every blocker and critical, then re-run until clean; build_go_live reports (or, when enforced, refuses on) outstanding blocker/critical findings. Pass files/files_ref, or only project_uuid to audit the latest published version.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Map of {relative_path: file_content} to audit before publishing. | |
| files_ref | No | For a LARGE bundle: a file_id from build_stage_bundle (gzip(json {path:content}) uploaded out-of-band). | |
| files_b64gz | No | Alt to files: base64(gzip(JSON {path:content})). | |
| min_severity | No | Lowest severity to list (default 'warning' = everything). | |
| project_uuid | No | Project to audit; without files, its latest (or version_uuid) PUBLISHED bundle is audited. | |
| version_uuid | No | Published version to audit (default: latest). Ignored when files are given. |