diagnose_service
Find why a service failed: bundles deploy phase, crash forensics, fresh health probe, AI-readiness check, bounded log tail, and a remediation code to branch on instead of scraping logs.
Instructions
Use when: a service is failing and you need the reason, not the logs.
Bundles the deploy phase, crash forensics (``last_exit_code``,
``oom_killed``), a fresh health probe, AI-binding readiness, a bounded
log tail and a single ``remediation_code`` to branch on — call it after
``wait_for_service`` returns ``failed`` instead of scraping logs.
Owner-or-admin read: the bundle carries env/secret key *names* and app
log lines, never secret values.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Service name or job id of an existing service (app, model or database); both resolve to the same row. | |
| log_tail | No | Log lines bundled into the diagnosis. Default 50; clamped to [1, 200] here and again server-side. |