build_audit
Static security and correctness audit of a bundle (the code is not executed). Finds 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 and payments, FLOW-01 fulfilment in the browser or on payment_status alone, INV-01 capacity or stock without server-side enforcement, PUB-01 draft or hidden rows in PUBLIC_SCHEMAS, LAUNCH-01 missing terms/privacy/password reset/meta. Each finding has severity (blocker|critical|high|warning), location, evidence, the fix pattern and a fingerprint. Inputs: files or files_ref, or only project_uuid for the latest published version. build_go_live reports (or, when enforced, refuses on) open blocker and critical findings.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "build_audit"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Map of {relative_path: file_content} to audit before publishing. | |
| patch | No | Change only some files of base_version instead of re-sending the whole bundle. {path: new_content} replaces or adds a file, {path: null} deletes it, and {path: {"edits": [{"old": "exact text", "new": "replacement"}]}} replaces text inside it (each old must occur exactly once). Paths are app-root relative ('ui/app.js', no app folder). Everything else is taken from base_version, so the patch must hold every change since base_version, not only the latest fix. The merged bundle goes through the same checks as a full one. Use it for every change after the first publish. Do not combine with files/files_b64gz/files_ref. | |
| 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})). | |
| base_version | No | With patch: the version_uuid of a version THIS project already published (build_publish and build_get_bundle return it; normally the latest). Its files are the starting point. | |
| 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. |