build_doctor
PREFLIGHT a bundle BEFORE publish/deploy — catches the silent deploy-killers build_validate does NOT: missing #supero-preloader removal (app stuck on a spinner forever), heavy startup seed (Cloud Run port-bind timeout → 'container failed to start'), reserved field names like status/state (silently dropped), namespace collisions (ambiguous reads), and services needing elevated import permission. Run it after build_validate and before build_publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | Map of {relative_path: file_content}. | |
| files_ref | No | For a LARGE bundle that exceeds the model output-token cap: a file_id from build_stage_bundle (upload the gzip(json {path:content}) blob out-of-band, then pass its file_id here). Preferred over files/files_b64gz when the bundle will not fit inline. | |
| files_b64gz | No | Alt to files: base64(gzip(JSON {path:content})). | |
| project_uuid | No | Target project (enables namespace + collision checks). |