brain_briefing
Proactively checks opened files, PRs, and deployments against known failure patterns, returning risk level and ranked warnings with fixes before issues occur.
Instructions
Push-based Brain warning: instead of waiting for you to ask, the Brain proactively checks whether the file you just opened, the PR you are about to raise, or the deploy you are about to run matches any known failure pattern — and surfaces warnings BEFORE something breaks. Call this on file_open (with the file path as context), pr_open (with the PR title/body), or deploy (with a short description of what is being deployed). Returns a risk_level (low/medium/high) plus up to 5 ranked warnings with confidence and a known fix.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | Yes | The event context: file path for file_open, title+body for pr_open, short description for deploy/manual | |
| threshold | No | Minimum confidence (0–1) for a warning to be surfaced. Default 0.6 — raise it to reduce noise. | |
| event_type | Yes | What triggered this briefing — determines how the context is interpreted | |
| instance_id | Yes | Brain instance ID |