AGENTS.md · git:20261104.baeed54 · 2026-11-04 · sha256 26fa5e02c1df76eb

AGENTS.md git:20261104.baeed54A

Immutable. This exact content never changes and is served at /api/v1/blob/26fa5e02c1df76eb.

# Risk Desk repository guidance

The approved initial scope is historical VaR/Expected Shortfall, linear
portfolio exposure and stress, and the ORE exposure/XVA adapter. v0.2
(approved by the maintainer on 2026-11-04) adds tail models and VaR/ES
backtests, and European option Greeks and revaluation through the Option
Desk engine. It also adds covariance and VaR/ES attribution, limits and
what-if, liquidity, and historical replay and reverse stress. Its
counterparty, credit and capital additions are SA-CCR and exposure
profiles, portfolio credit VaR, and FRTB capital pieces.

The runtime is under `src/riskdesk`. CLI and MCP use the same functions.
Skills live in `plugins/risk-desk/skills`.

Before you extend the models, read README.md, THIRD-PARTY.md and
docs/IMPLEMENTATION.md. Preserve loss signs, base currency, horizon,
source provenance and degraded status. Do not equate historical loss
forecasts with risk-neutral valuation. Preserve ORE report levels and
unavailable values.

Run `python -m pytest -q --color=no`. When you change the ORE adapter, run
the pinned ORE example. After a packaging or notice change, rebuild the
wheel and the plugin. The requirements lock is platform-specific, not a
portable environment claim.

Do not add automated authorship or attribution. The repository uses the
user's configured Git identity and a commit-message guard. No upstream
licence is replaced by Risk Desk's own licence.