AGENT SKILL

risk-xva

Run a trusted local ORE (Open Source Risk Engine) project for counterparty exposure and valuation adjustments (risk_xva), and read its XVA and exposure reports. Use for ORE CVA, DVA, funding and other XVA reports, or to produce the netting-set exposure profile that risk_exposure_profile summarises. Not for historical VaR (use risk-tail), not for SA-CCR (use risk-counterparty), and not for a project you have not inspected.

License 许可
Apache-2.0
最近更新
2026-11-14
Stars
★ 1.6k
Forks
491

01 前言 Front Matter

name
risk-xva
description
Run a trusted local ORE (Open Source Risk Engine) project for counterparty exposure and valuation adjustments (risk_xva), and read its XVA and exposure reports. Use for ORE CVA, DVA, funding and other XVA reports, or to produce the netting-set exposure profile that risk_exposure_profile summarises. Not for historical VaR (use risk-tail), not for SA-CCR (use risk-counterparty), and not for a project you have not inspected.

02 资源文件 3

03 SKILL.md 正文

Risk Xva

Use risk_xva with an explicit local project directory, relative config path, new output directory outside the project, and data_mode of synthetic, user-licensed or upstream-example. Read input contracts for the supported ORE project boundary. The CLI equivalent is riskdesk xva --project PROJECT --config Input/ore.xml --output NEW_OUTPUT --data-mode synthetic. It needs the optional extra, riskdesk[xva] (risk-setup skill).

Run only a user-provided or inspected local project. The ORE configuration determines instruments, curves, counterparties, CSA/netting, simulation and requested adjustments. Do not invent these inputs. Both simulation and XVA must be active; an old cube is not reused.

Report first

  1. Whether the run succeeded. Any ORE error, a failed worker or a missing XVA report is a refusal, not a result. Quote nothing from a failed run, and do not read partial files from its output directory.
  2. currency (ORE's baseCurrency), as_of and requested_xva_flags.
  3. Then figures, each with the report level (netting set or trade) it comes from.

Sign conventions

Preserve ORE column names and signs. Disabled metrics, null values and zero results are distinct: null is ORE's unavailable value, and a zero in a column whose adjustment was not requested is a disabled calculation. Netting-set and trade rows overlap and must not be summed together.

What not to claim

Positive exposure is not signed mark-to-market, and risk-neutral XVA is not a real-world VaR forecast. The included upstream example validates execution and report translation only. It does not validate all models, regulatory capital, wrong-way risk, SIMM rights or a user's calibration. The process boundary is not a sandbox for hostile XML.

Going deeper

  • reference.md: what the adapter checks, runs, keeps and writes, with code lines, and how the result feeds risk_exposure_profile.
  • workflows/run-ore-project.md: inspect, run, check and report one project.
  • scripts/check_artifact.py OUTPUT/riskdesk-xva.json: one line verdict on a saved result: no ORE errors, XVA rows present, every row matches its report's columns, input hashes recorded, and which XVA columns hold nulls. Standard library only.

04 同仓库更多 Skills

hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-review-with-annotations

Create, inspect, reply to, update, or resolve situated Worktable annotations. Use when feedback belongs to a Doc section, block, text range, or HTML Doc, or when the user asks to address existing review feedback and coordinate a requested artifact edit.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-find-and-synthesize-context

Find, assess, and synthesize context from Worktable Docs and Records. Use when the user asks what a workspace contains, wants workspace-backed research, needs current facts reconciled across artifacts, or requests a cited synthesis without changing workspace state.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-update-docs

Create, edit, rename, or maintain narrative Worktable Docs. Use for plans, decisions, briefs, notes, research syntheses, and other durable prose when the user requests a new artifact or a safe update to an existing one.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-manage-records

Organize repeated structured information as durable Worktable Records. Use for research datasets, inventories, directories, pipelines, trackers, and other collections whose items need identity, fields, filtering, links, validation, or individual updates.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-create-or-manage-interactive-html

Create or improve durable visual and interactive artifacts in Worktable. Use for dashboards, trackers, calculators, mini apps, slide presentations, and other requests that benefit from a polished HTML Doc.

★ 1.6k
hashgraph-online
hashgraph-online/awesome-codex-plugins

worktable-collaborate-threads

Read, answer, and hand off messages through durable Worktable threads with users or other authenticated participants. Use when the user asks to check addressed messages, reply to a participant, continue a thread, request another agent's help, wait briefly for a response, or watch for comments and messages sent to the agent.

★ 1.6k