get_brief
Retrieve a brief by its target slug from a vault. Rejects stale briefs unless allow_stale is set, returning null when recompilation is required.
Instructions
Look up a brief by target slug. D-13 decision tree: staleness dominates; age is independent; follow the supersede chain to the terminal brief. Returns null when the caller MUST recompile (stale + !allow_stale OR too_old + !allow_stale).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | Yes | Vault name (registered in [vaults] config block) | |
| target | Yes | Stable cross-version handle for the brief | |
| max_age_days | No | Reject briefs older than this many days unless allow_stale=true | |
| allow_stale | No | When true, return briefs flagged stale or too_old with annotation rather than null |