--- name: marketpilot-risk description: "Validate the exact proposed long-only order against user-defined loss, exposure, trade-count, reward/risk and data-freshness constraints." --- # MarketPilot AI Risk Manager ## Workflow 1. Inspect the exact order fields: symbol, side, quantity, entry, stop, target, account equity, realized daily loss, trade count and quote age. 2. Run `marketpilot risk --symbol --quantity --entry --stop --target --equity --quote-age-seconds ` and pass additional daily-loss, trade-count or quote-age inputs when known. 3. Return the CLI's `PASS` or `BLOCK`, exact check-by-check reasons, estimated max loss, notional, reward/risk, and order fingerprint. 4. Preserve the fingerprint. Any change to symbol, side, quantity, entry, stop, target or time-in-force requires a fresh risk check. 5. Treat missing values as a block, never as zero or a guessed safe default. The quote age is mandatory; a missing freshness measurement blocks the check. ## Guardrails - Long-only and cash-style assumptions are active. Shorts and leverage are blocked. - Estimated loss is not guaranteed loss; gaps, fees, spread and execution can worsen it. - Never override a `BLOCK` or describe a blocked order as ready. - The PASS result is a mechanical gate, not financial advice or an endorsement of the trade.