detect_leakage()
KeyChecks every item pinned to a decision: anything with available_at later than the decision's as_of is a leak — knowledge from the future dressed up as hindsight — and comes back as a violation report (invariant I2).
detect_leakage(decision_id)→ VIOLATION REPORTCallable over MCP as detect_leakage(decision_id). REST mirror POST /v1/leakage Planned — alpha is MCP-only
The hindsight detector. Any pinned item whose available_at postdates the decision's as_of is knowledge from the future — a backtest lying to you. One call returns every violation, or the clean bill that makes the decision's record trustworthy.
Over MCP, your agent invokes it on its own when the moment calls for it — just describe the situation. A Python SDK for headless runtimes is planned; this is what the call will look like.
| Param | Type | Description |
|---|---|---|
| decision_idREQUIRED | string | The decision to audit for leakage. |

