[{"step":0,"generation":0,"created_at":"2026-09-20T09:44:05.482Z","event":{"content":"New agent session \"tame-bison\" started at 2026-09-20T09:44:05Z. You are a sub-agent 1 level(s) below the run's root: main-agent → tame-bison.","marker":"new_session","type":"system"}},{"step":0,"generation":0,"created_at":"2026-09-20T09:44:05.484Z","event":{"content":"You are an expert AI Research Agent capable of reasoning, planning, and independently executing complex, long-horizon research tasks that may span hours or days. You are also a highly capable programmer, primarily proficient in Python. Your objective is to achieve the best possible outcomes under specific resource constraints (time and compute) by employing a rigorous, principled research methodology.\n\n**METHODOLOGY 1: WELL-DEFINED FOCUSED TASKS**\nWhen executing tasks with clear success criteria, strictly follow this linear pipeline:\n1. **Understand:** Gather context, define the goal, and review constraints.\n2. **Plan:** Formulate a step-by-step approach before writing any code.\n3. **Implement:** Prototype, write code and tests, fix test failures and lint errors.\n4. **Evaluate:** Experiment, debug, and analyze the results.\n5. **Conclude:** Document your findings and finalize the deliverable.\n\n**METHODOLOGY 2: OPEN-ENDED RESEARCH TASKS**\nWhen tackling open-ended research without strict \"success\" criteria, you must adhere to the following workflow practices:\n* **Context Gathering:** Always begin by absorbing the task definition and background knowledge. Deeply familiarize yourself with the relevant codebase, existing literature, and documentation.\n* **Literature Survey & Idea Generation:** Spawn parallel sub-agents to conduct a thorough survey of the state-of-the-art. Common sources include the Internet, available documentation, and codebase. Use these findings to generate a list of promising directions by adapting new research, combining existing ideas, or developing entirely novel approaches.\n* **Ambitious & Iterative Planning:** Formulate a dynamic, iterative research plan. Prioritize ambitious, high-impact, and novel research directions. Dedicate 80% of your effort to high-risk/high-reward exploration, falling back to incremental improvements for the final 20% of your time only if necessary.\n* **Parallel Exploration:** Select 3-5 most promising research directions and spawn parallel sub-agents (using 'link' workspace mode) to explore each as a focused task. Evaluate the outcomes, then iterate and build upon the strongest results from previous cycles. Keep your focus on the research scope and ambitious goal, be critical if the sub-agents want to abandon the task with half-baked results.\n* **Version Control Discipline:** Use VCS rigorously to manage important milestones. Prefer workspace-local VCS commits over changelists (CLs) unless explicitly instructed otherwise.\n* **State Management:** Continuously monitor and log your overall progress, the status of individual sub-tasks, and your alignment with the overarching project goals.\n* **Sub-agent Discipline:** Avoid delegating indefinitely. At 3+ levels deep, prefer doing the work yourself over sub-agent delegation.\n\n## Execution principles\n\n- **Maximize scope.** Be ambitious and exhaust the promising avenues before concluding something is impossible.\n- **Finish the task.** Don't stop early on a self-imposed constraint. Validate any \"this is blocked\" hypothesis before abandoning it. If your result falls short of the objective, close the gap rather than concluding with an acknowledgment of the shortfall.\n- **Stay sustainable.** Your speed produces a lot of code; to survive hundreds of iterations it must be clean, modular, and easy to extend.\n- **Optimize the feedback loop.** Prefer fast local checks (build, unit test, run) over slow remote jobs; fail early and cheaply.\n\n## Coding principles\n\nKeep the codebase easy to maintain and evolve:\n\n- **Code over prose.** Prefer self-explanatory code to explanation; prefer an explicit\n  interface, a check, or a test to a sentence promising the same thing.\n- **Lean comments.** Document the non-obvious \"why\"; never restate what the code says.\n  One line is the target — a paragraph needs a reason. Historical context goes in the\n  commit message, not the code.\n- **Comments rot silently.** Nothing lints them. State a fact once, next to the code\n  that owns it, and cross-reference rather than repeat.\n\n## Tool usage strategy\n\n- **Prefer specialized tools over bash.** When a purpose-built tool exists (file view/edit, full-text search, session inspection, recall), use it instead of shelling out — the results are cleaner and cheaper.\n- **Learn on the fly.** If a task needs an unfamiliar tool, CLI, skill, path, or resource, use `recall_search` to find a relevant skill or lesson *before* proceeding. Never declare you can't do something before checking your skills.\n- **Don't busy-poll a long job — background it and wait to be woken.** For work whose timing you don't control (a long build/test/experiment, a file appearing, a metric crossing a threshold), launch a detached background script that captures output and notifies you on completion, then `await_event` to park until it reports back. The script reaches you via `amplio-notify \"<message>\"` (delivered to your own session; add `--session=<id>` to target another, or pipe a long body via `amplio-notify -`). Canonical one-shot recipe (a single detached subshell runs the command, saves stdout/stderr to the run's scratch dir, and notifies with the exit code + paths when it finishes):\n\n  ```bash\n  J=\"$AMPLIO_ARTIFACT_DIR/job-$(date +%s)\"\n  ( <your long command> >\"$J.out\" 2>\"$J.err\"; amplio-notify \"job done (exit $?): out=$J.out err=$J.err\" ) &\n  ```\n\n  Then call `await_event` to wait for it efficiently. Periodic/conditional variant: loop with a `sleep` inside the subshell and notify only when your condition holds (e.g. `while ! grep -q DONE \"$LOG\"; do sleep 10; done; amplio-notify \"ready\"`). A notification wakes you if you're parked in `await_event`, and revives you if you've gone idle or are awaiting; it does **not** revive you once you have concluded (or crashed/been cancelled) — the environment cannot resurrect a finished agent. When woken, read the captured output with `view_file`.\n\n- **Every notification must carry news, and no notifier may run forever.** Send one when something changed that you would actually act on — not heartbeats (\"still running\", \"3/7 done\") and never from an unbounded loop. Each notification wakes you and is replayed verbatim in your context on every later turn, so uninformative ones crowd out the informative one. The server caps notification per session step and refuses beyond that (`amplio-notify` exits 3 with `env_notice_capped` on stderr — match that to stop a loop). Give any watcher an exit condition, and **kill the ones you started before you finish**.\n\n\n## Sub-agent strategy\n\nUse `spawn_agent` to delegate work. It returns immediately and the sub-agent runs in parallel, delivering its final result as a message when it finishes.\n\n- **Workspace mode.** `share` (default): the sub-agent works in the *same* workspace — best for read-only or information-gathering tasks (avoid concurrent edits). `link`: an isolated linked workspace (git/jj worktree or CitC link) with independent file edits but shared history — best for spawning several parallel coding attempts that must not clobber each other.\n- **Share via the artifact dir.** All sub-agents share the run's artifact directory; use it as scratch space — e.g. a parent-written plan read by every child, and per-child result files read back by the parent.\n- **Coordinate, don't poll.** Use `send_message` (always naming the target session id) to talk to another session, `await_event` to park until a child finishes or the operator messages you, and `session_peek` only when you suspect a child is stuck. Don't expect results the instant you spawn.\n- **Act and wait in one turn.** `await_event` can be called in the *same* step as the action that will produce the event — e.g. `spawn_agent` + `await_event`, `send_message` + `await_event`, or launching a background `bash` job + `await_event`. This blocks the turn until the work reports back, instead of spending a separate turn just to wait.\n- **A sub-agent can be re-engaged in any state.** `send_message` reaches it whether it is live (running or parked) or stopped (`idle`/`concluded`/`crashed`/`cancelled`); if it has stopped, your message revives it with its full prior context intact (a status like `concluded` just means it finished its last turn, not that it's gone). Prefer this to re-spawning a fresh agent when you want to ask a follow-up question or hand more work to a child with existing context.\n- **Delegate less the deeper you are.** Your step-0 bootstrap message says how many levels below the run's root you are. Avoid delegating indefinitely. **At 3 or more levels deep, do the work yourself**. Spawn at that depth only when the work genuinely splits into parallel parts you cannot do sequentially, and then tell each child to do its part itself rather than delegating again.\n\n\n## Completion\n\nWhen the overarching task is completely finished, give your final summary in plain text with NO tool calls — the absence of tool calls signals completion. Be concise and direct about the final state.\n\n**ARTIFACT DIRECTORY**\nYou have a per-run private scratch directory at the absolute path in the `$AMPLIO_ARTIFACT_DIR` environment variable — separate from your working directory (the user's project). Use it for plan files, intermediate analysis, notes, and anything you want sub-agents (or your future self after a context compaction) to read. When you share these artifacts with the user, always format the *full path*: $AMPLIO_ARTIFACT_DIR/path/to/file. The UI will linkify it into a helpful link for the user.","marker":"system_prompt","type":"system"}},{"step":0,"generation":0,"created_at":"2026-09-20T09:44:05.49Z","event":{"content":"Working directory: `/work`\nThis workspace is shared with the parent session `main-agent`.","marker":"workspace","type":"system"}},{"step":0,"generation":0,"created_at":"2026-09-20T09:44:05.498Z","event":{"content":"Focused parallel analysis (read-only main packet and shared working inputs). Current desk packet /packet/packet.json is authority. Full docs extracted to /work/data/artifacts/qyaws7fs/documents and state/policy/parameters/case/family/quotes JSON there. Determine exact current-parent rates and credit_xva calculations per complete schemas/daily-report.schema.json, source citations DAILY_FUNDING/CREDIT/PROTECTION in docs, not practice calculator. Study funding linear spread position, drawn vs committed, remaining tenor, replacement quote matching, provider protection economically vs regulatorily. Produce JSON fragment {rates,credit_xva} into /work/data/artifacts/qyaws7fs/funding_credit_sections.json plus concise derivation notes; do not edit final envelope or execute actions. Check receipts if helpful. Tell me quickly about pitfalls or missing evidence; calculate all fields with Decimal. Do not invent current curves/CDX or CLO. Prior trades inherited not ours.","type":"user"}},{"step":1,"generation":0,"created_at":"2026-09-20T09:45:35.381Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_4308b2fe191d56739709e2624d7657c7","name":"bash","arguments":"{\"command\":\"pwd; ls -la /packet; ls -la /work/data/artifacts/qyaws7fs; find /work/data/artifacts/qyaws7fs/documents -maxdepth 2 -type f | sort\",\"max_output_length\":24000}"}],"type":"assistant","usage":{"prompt_tokens":4392,"completion_tokens":131,"total_tokens":4523}}},{"step":1,"generation":0,"created_at":"2026-09-20T09:45:35.409Z","event":{"content":"STDOUT:\n/work\ntotal 2864\ndr-xr-xr-x 1 root root     200 Sep 20 09:40 .\ndrwxr-xr-x 1 root root     240 Sep 20 09:40 ..\n-r-xr-xr-x 1 root root    7086 Sep 20 09:40 calculator.py\n-r--r--r-- 1 root root     745 Sep 20 09:40 manifest.json\n-r--r--r-- 1 root root 2921009 Sep 20 09:40 packet.json\n-r--r--r-- 1 root root    2520 Sep 20 09:40 practice-inputs.json\ntotal 2457\ndrwx------ 1 amplio amplio     280 Sep 20 09:44 .\ndrwx------ 1 amplio amplio      60 Sep 20 09:40 ..\n-rw------- 1 amplio amplio     848 Sep 20 09:41 calculator.json\n-rw------- 1 amplio amplio  140330 Sep 20 09:42 case.json\ndrwx------ 1 amplio amplio     140 Sep 20 09:42 documents\n-rw------- 1 amplio amplio   13984 Sep 20 09:42 family.json\n-rw------- 1 amplio amplio   57315 Sep 20 09:42 parameters.json\n-rw------- 1 amplio amplio     665 Sep 20 09:41 phases.json\n-rw------- 1 amplio amplio    1632 Sep 20 09:44 plan.md\n-rw------- 1 amplio amplio   30093 Sep 20 09:41 policy.json\n-rw------- 1 amplio amplio  842653 Sep 20 09:41 public_inputs.json\n-rw------- 1 amplio amplio 1364456 Sep 20 09:41 quotes.json\n-rw------- 1 amplio amplio      97 Sep 20 09:41 receipt_window.json\n-rw------- 1 amplio amplio   61294 Sep 20 09:41 state.json\n/work/data/artifacts/qyaws7fs/documents/CURRENT_INPUTS.json\n/work/data/artifacts/qyaws7fs/documents/docs/capital-actions.md\n/work/data/artifacts/qyaws7fs/documents/docs/capital-rulebook.md\n/work/data/artifacts/qyaws7fs/documents/docs/desk-runtime-contract.md\n/work/data/artifacts/qyaws7fs/documents/docs/economic-specification.md\n/work/data/artifacts/qyaws7fs/documents/docs/reference-input-contract.md\n/work/data/artifacts/qyaws7fs/documents/docs/reserve-module.md\n/work/data/artifacts/qyaws7fs/documents/fixtures/desk-policy.json\n/work/data/artifacts/qyaws7fs/documents/schemas/daily-report.schema.json\n\n\nSTATUS:\nFinished normally at 2026-09-20T09:45:35Z (elapsed=0.03s)","tool_call_id":"call_4308b2fe191d56739709e2624d7657c7","type":"tool_result"}},{"step":2,"generation":0,"created_at":"2026-09-20T09:47:42.044Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_c368c7f7ed205f1fa8df6c1520a98fb7","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/qyaws7fs/documents/schemas/daily-report.schema.json\",\"show_anchors\":false}"},{"id":"call_04a20ed7edf458cd9388418dfe938f50","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/qyaws7fs/documents/docs/economic-specification.md\",\"show_anchors\":false}"},{"id":"call_9bf849a838325afc840f1cc7db03697a","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/qyaws7fs/documents/docs/reference-input-contract.md\",\"show_anchors\":false}"},{"id":"call_6bfdf98675d05790baa6e977dd64066d","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/qyaws7fs/plan.md\",\"show_anchors\":false}"}],"type":"assistant","usage":{"prompt_tokens":5159,"completion_tokens":163,"total_tokens":5322,"cache_read_tokens":4390}}},{"step":2,"generation":0,"created_at":"2026-09-20T09:47:42.045Z","event":{"content":"File: /work/data/artifacts/qyaws7fs/plan.md\n   1: # Current checkpoint work plan\n   2: \n   3: Authority: /packet/packet.json, parent 6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165; as-of 2027-09-02, day/revision/market/legal versions 0. Final is /work/artifacts/envelope-1473cecfb1a94437b899c2097f06b7ff.json, no submission.\n   4: \n   5: 1. Understand complete daily-book.v2 schema, runtime envelope/action contract, all authoritative evidence and inherited receipts.\n   6: 2. Parallel exact financial reconciliation: funding/credit (tame-bison), capital/liquidity (lofty-squid), accounting (balmy-sheep), institutional and alternatives (chill-tiger). Only scratch artifacts shared, no concurrent edits of final.\n   7: 3. Parent independently reviews executable phase quotes and client obligations; picks supported decision(s) without inventing trades/rights or receiving cash by assertion.\n   8: 4. Assemble current-parent calculations, unique quote-bound actions and evidence. Cross-check accounting, signed funding sensitivity, legal restrictions, and available funding liquidity.\n   9: 5. Validate strict JSON schema, current version/hash/phase/quote bindings, source citations, report numeric identities, UTF-8 and <=1048576 bytes. Atomic durable write. Stop after file exists; do not execute or submit.\n  10: \n  11: Important: inherited opening trades are not chosen now. Quotes don't override title or mandates. Empty actions won't advance. Current parameters fix curves and permitted instruments. Bilateral VM/IM collateral is not income; economic protection differs from regulatory recognition. Recommendation compares keeping inherited mismatch to only genuinely available routes, with costs and surviving duties.\n","tool_call_id":"call_6bfdf98675d05790baa6e977dd64066d","type":"tool_result"}},{"step":2,"generation":0,"created_at":"2026-09-20T09:47:42.049Z","event":{"content":"File: /work/data/artifacts/qyaws7fs/documents/schemas/daily-report.schema.json\n   1: {\n   2:   \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\n   3:   \"$id\": \"urn:back-to-back-funding:daily-book.v2\",\n   4:   \"title\": \"Settled parent-checkpoint financial and institutional assertions\",\n   5:   \"description\": \"Five financial sections use exact current-source assertions. Legal, compliance, structure and recommendation sections use entailed premises, independent client outcomes and supported alternatives, never exact reference prose.\",\n   6:   \"type\": \"object\",\n   7:   \"additionalProperties\": false,\n   8:   \"required\": [\n   9:     \"schema_version\",\n  10:     \"parent_state_hash\",\n  11:     \"rates\",\n  12:     \"credit_xva\",\n  13:     \"capital\",\n  14:     \"liquidity\",\n  15:     \"accounting\",\n  16:     \"legal\",\n  17:     \"compliance\",\n  18:     \"structure\",\n  19:     \"recommendation\"\n  20:   ],\n  21:   \"properties\": {\n  22:     \"schema_version\": {\n  23:       \"const\": \"daily-book.v2\"\n  24:     },\n  25:     \"parent_state_hash\": {\n  26:       \"type\": \"string\",\n  27:       \"pattern\": \"^[0-9a-f]{64}$\"\n  28:     },\n  29:     \"rates\": {\n  30:       \"type\": \"object\",\n  31:       \"additionalProperties\": false,\n  32:       \"required\": [\n  33:         \"funding_notional\",\n  34:         \"unsettled_stub\",\n  35:         \"legal_funding_mark\",\n  36:         \"quoted_funding_component\",\n  37:         \"management_funding_gain\",\n  38:         \"reference_return_adjustment\",\n  39:         \"funding_remaining_years\",\n  40:         \"deployment_remaining_years\",\n  41:         \"last_reset_price\",\n  42:         \"next_payment_delay\",\n  43:         \"reference_price\",\n  44:         \"replacement_spread\",\n  45:         \"quote_annuity\",\n  46:         \"quote_id\",\n  47:         \"principal_source\",\n  48:         \"trs_principal_received\",\n  49:         \"deployment_coupon_spread\",\n  50:         \"roles\",\n  51:         \"evidence\"\n  52:       ],\n  53:       \"properties\": {\n  54:         \"funding_notional\": {\n  55:           \"$ref\": \"#/$defs/money\"\n  56:         },\n  57:         \"unsettled_stub\": {\n  58:           \"$ref\": \"#/$defs/money\"\n  59:         },\n  60:         \"legal_funding_mark\": {\n  61:           \"$ref\": \"#/$defs/money\"\n  62:         },\n  63:         \"quoted_funding_component\": {\n  64:           \"$ref\": \"#/$defs/money\"\n  65:         },\n  66:         \"management_funding_gain\": {\n  67:           \"$ref\": \"#/$defs/money\"\n  68:         },\n  69:         \"reference_return_adjustment\": {\n  70:           \"$ref\": \"#/$defs/money\"\n  71:         },\n  72:         \"funding_remaining_years\": {\n  73:           \"$ref\": \"#/$defs/scalar\"\n  74:         },\n  75:         \"deployment_remaining_years\": {\n  76:           \"$ref\": \"#/$defs/scalar\"\n  77:         },\n  78:         \"last_reset_price\": {\n  79:           \"$ref\": \"#/$defs/scalar\"\n  80:         },\n  81:         \"next_payment_delay\": {\n  82:           \"$ref\": \"#/$defs/scalar\"\n  83:         },\n  84:         \"reference_price\": {\n  85:           \"$ref\": \"#/$defs/scalar\"\n  86:         },\n  87:         \"replacement_spread\": {\n  88:           \"$ref\": \"#/$defs/scalar\"\n  89:         },\n  90:         \"quote_annuity\": {\n  91:           \"$ref\": \"#/$defs/scalar\"\n  92:         },\n  93:         \"quote_id\": {\n  94:           \"type\": \"string\",\n  95:           \"minLength\": 1,\n  96:           \"maxLength\": 4096\n  97:         },\n  98:         \"principal_source\": {\n  99:           \"type\": \"string\",\n 100:           \"minLength\": 1,\n 101:           \"maxLength\": 256\n 102:         },\n 103:         \"trs_principal_received\": {\n 104:           \"$ref\": \"#/$defs/money\"\n 105:         },\n 106:         \"deployment_coupon_spread\": {\n 107:           \"$ref\": \"#/$defs/scalar\"\n 108:         },\n 109:         \"roles\": {\n 110:           \"type\": \"object\",\n 111:           \"additionalProperties\": false,\n 112:           \"required\": [\n 113:             \"funding_receiver\",\n 114:             \"financing_payer\",\n 115:             \"funding_provider\",\n 116:             \"borrower\",\n 117:             \"funding_reference_owner\",\n 118:             \"accounting_unit\"\n 119:           ],\n 120:           \"properties\": {\n 121:             \"funding_receiver\": {\n 122:               \"type\": \"string\",\n 123:               \"minLength\": 1,\n 124:               \"maxLength\": 4096\n 125:             },\n 126:             \"financing_payer\": {\n 127:               \"type\": \"string\",\n 128:               \"minLength\": 1,\n 129:               \"maxLength\": 4096\n 130:             },\n 131:             \"funding_provider\": {\n 132:               \"type\": \"string\",\n 133:               \"minLength\": 1,\n 134:               \"maxLength\": 4096\n 135:             },\n 136:             \"borrower\": {\n 137:               \"type\": \"string\",\n 138:               \"minLength\": 1,\n 139:               \"maxLength\": 4096\n 140:             },\n 141:             \"funding_reference_owner\": {\n 142:               \"type\": \"string\",\n 143:               \"minLength\": 1,\n 144:               \"maxLength\": 4096\n 145:             },\n 146:             \"accounting_unit\": {\n 147:               \"type\": \"string\",\n 148:               \"minLength\": 1,\n 149:               \"maxLength\": 4096\n 150:             }\n 151:           }\n 152:         },\n 153:         \"evidence\": {\n 154:           \"type\": \"array\",\n 155:           \"maxItems\": 4096,\n 156:           \"items\": {\n 157:             \"$ref\": \"#/$defs/citation\"\n 158:           }\n 159:         }\n 160:       }\n 161:     },\n 162:     \"credit_xva\": {\n 163:       \"type\": \"object\",\n 164:       \"additionalProperties\": false,\n 165:       \"required\": [\n 166:         \"provider_cds\",\n 167:         \"own_bond_spread\",\n 168:         \"own_cds_spread\",\n 169:         \"bond_cds_basis\",\n 170:         \"CVA\",\n 171:         \"KVA_component\",\n 172:         \"UFVA\",\n 173:         \"actual_unsecured_debt\",\n 174:         \"annual_debt_funding_cost\",\n 175:         \"reserve_borrowing\",\n 176:         \"projection\",\n 177:         \"protection\",\n 178:         \"evidence\"\n 179:       ],\n 180:       \"properties\": {\n 181:         \"provider_cds\": {\n 182:           \"$ref\": \"#/$defs/scalar\"\n 183:         },\n 184:         \"own_bond_spread\": {\n 185:           \"$ref\": \"#/$defs/scalar\"\n 186:         },\n 187:         \"own_cds_spread\": {\n 188:           \"$ref\": \"#/$defs/scalar\"\n 189:         },\n 190:         \"bond_cds_basis\": {\n 191:           \"$ref\": \"#/$defs/scalar\"\n 192:         },\n 193:         \"CVA\": {\n 194:           \"$ref\": \"#/$defs/money\"\n 195:         },\n 196:         \"KVA_component\": {\n 197:           \"$ref\": \"#/$defs/money\"\n 198:         },\n 199:         \"UFVA\": {\n 200:           \"$ref\": \"#/$defs/money\"\n 201:         },\n 202:         \"actual_unsecured_debt\": {\n 203:           \"$ref\": \"#/$defs/money\"\n 204:         },\n 205:         \"annual_debt_funding_cost\": {\n 206:           \"$ref\": \"#/$defs/money\"\n 207:         },\n 208:         \"reserve_borrowing\": {\n 209:           \"$ref\": \"#/$defs/money\"\n 210:         },\n 211:         \"projection\": {\n 212:           \"type\": \"object\",\n 213:           \"additionalProperties\": false,\n 214:           \"required\": [\n 215:             \"default_grid\",\n 216:             \"capital_sampling\",\n 217:             \"quarters\",\n 218:             \"economic_tail_CVA\",\n 219:             \"hedge_provider_CVA\",\n 220:             \"debt_funding_PV\"\n 221:           ],\n 222:           \"properties\": {\n 223:             \"default_grid\": {\n 224:               \"type\": \"string\",\n 225:               \"minLength\": 1,\n 226:               \"maxLength\": 4096\n 227:             },\n 228:             \"capital_sampling\": {\n 229:               \"type\": \"string\",\n 230:               \"minLength\": 1,\n 231:               \"maxLength\": 4096\n 232:             },\n 233:             \"quarters\": {\n 234:               \"type\": \"integer\",\n 235:               \"minimum\": 0,\n 236:               \"maximum\": 9007199254740991\n 237:             },\n 238:             \"economic_tail_CVA\": {\n 239:               \"$ref\": \"#/$defs/money\"\n 240:             },\n 241:             \"hedge_provider_CVA\": {\n 242:               \"$ref\": \"#/$defs/money\"\n 243:             },\n 244:             \"debt_funding_PV\": {\n 245:               \"$ref\": \"#/$defs/money\"\n 246:             }\n 247:           }\n 248:         },\n 249:         \"protection\": {\n 250:           \"type\": \"object\",\n 251:           \"additionalProperties\": false,\n 252:           \"required\": [\n 253:             \"contracts\",\n 254:             \"notional\",\n 255:             \"protected_exposure\",\n 256:             \"uncovered_exposure\",\n 257:             \"hedge_provider_EAD\",\n 258:             \"hedge_provider_CVA\",\n 259:             \"hedge_mark\",\n 260:             \"premium_accrued\",\n 261:             \"premium_paid\",\n 262:             \"designated_notional\",\n 263:             \"SNH\",\n 264:             \"market_risk_K\",\n 265:             \"remaining_years\",\n 266:             \"unprotected_tail_years\"\n 267:           ],\n 268:           \"properties\": {\n 269:             \"contracts\": {\n 270:               \"type\": \"object\",\n 271:               \"maxProperties\": 4096,\n 272:               \"propertyNames\": {\n 273:                 \"type\": \"string\",\n 274:                 \"minLength\": 1,\n 275:                 \"maxLength\": 256\n 276:               },\n 277:               \"additionalProperties\": {\n 278:                 \"$ref\": \"#/$defs/protection_contract\"\n 279:               }\n 280:             },\n 281:             \"notional\": {\n 282:               \"$ref\": \"#/$defs/money\"\n 283:             },\n 284:             \"protected_exposure\": {\n 285:               \"$ref\": \"#/$defs/money\"\n 286:             },\n 287:             \"uncovered_exposure\": {\n 288:               \"$ref\": \"#/$defs/money\"\n 289:             },\n 290:             \"hedge_provider_EAD\": {\n 291:               \"$ref\": \"#/$defs/money\"\n 292:             },\n 293:             \"hedge_provider_CVA\": {\n 294:               \"$ref\": \"#/$defs/money\"\n 295:             },\n 296:             \"hedge_mark\": {\n 297:               \"$ref\": \"#/$defs/money\"\n 298:             },\n 299:             \"premium_accrued\": {\n 300:               \"$ref\": \"#/$defs/money\"\n 301:             },\n 302:             \"premium_paid\": {\n 303:               \"$ref\": \"#/$defs/money\"\n 304:             },\n 305:             \"designated_notional\": {\n 306:               \"$ref\": \"#/$defs/money\"\n 307:             },\n 308:             \"SNH\": {\n 309:               \"$ref\": \"#/$defs/money\"\n 310:             },\n 311:             \"market_risk_K\": {\n 312:               \"$ref\": \"#/$defs/money\"\n 313:             },\n 314:             \"remaining_years\": {\n 315:               \"$ref\": \"#/$defs/scalar\"\n 316:             },\n 317:             \"unprotected_tail_years\": {\n 318:               \"$ref\": \"#/$defs/scalar\"\n 319:             }\n 320:           }\n 321:         },\n 322:         \"evidence\": {\n 323:           \"type\": \"array\",\n 324:           \"maxItems\": 4096,\n 325:           \"items\": {\n 326:             \"$ref\": \"#/$defs/citation\"\n 327:           }\n 328:         }\n 329:       }\n 330:     },\n 331:     \"capital\": {\n 332:       \"type\": \"object\",\n 333:       \"additionalProperties\": false,\n 334:       \"required\": [\n 335:         \"SA_CCR\",\n 336:         \"CCR_RWA\",\n 337:         \"CCR_K\",\n 338:         \"CVA_K\",\n 339:         \"market_risk_K\",\n 340:         \"RWA\",\n 341:         \"leverage_exposure\",\n 342:         \"risk_requirement\",\n 343:         \"leverage_requirement\",\n 344:         \"required_capital\",\n 345:         \"Tier1_before_AVA\",\n 346:         \"AVA\",\n 347:         \"Tier1_after_AVA\",\n 348:         \"capital_shortfall\",\n 349:         \"capital_release_cash\",\n 350:         \"executable_under_stated_capital\",\n 351:         \"binding_constraint\",\n 352:         \"deployment\",\n 353:         \"asset_map\",\n 354:         \"repo\",\n 355:         \"evidence\"\n 356:       ],\n 357:       \"properties\": {\n 358:         \"SA_CCR\": {\n 359:           \"type\": \"object\",\n 360:           \"additionalProperties\": false,\n 361:           \"required\": [\n 362:             \"RC\",\n 363:             \"PFE\",\n 364:             \"EAD\",\n 365:             \"add_on\",\n 366:             \"margin_collateral\",\n 367:             \"margined\",\n 368:             \"netting_sets\",\n 369:             \"reference_rating\",\n 370:             \"provider_rating\"\n 371:           ],\n 372:           \"properties\": {\n 373:             \"RC\": {\n 374:               \"$ref\": \"#/$defs/money\"\n 375:             },\n 376:             \"PFE\": {\n 377:               \"$ref\": \"#/$defs/money\"\n 378:             },\n 379:             \"EAD\": {\n 380:               \"$ref\": \"#/$defs/money\"\n 381:             },\n 382:             \"add_on\": {\n 383:               \"$ref\": \"#/$defs/money\"\n 384:             },\n 385:             \"margin_collateral\": {\n 386:               \"$ref\": \"#/$defs/money\"\n 387:             },\n 388:             \"margined\": {\n 389:               \"type\": \"boolean\"\n 390:             },\n 391:             \"netting_sets\": {\n 392:               \"type\": \"object\",\n 393:               \"maxProperties\": 4096,\n 394:               \"propertyNames\": {\n 395:                 \"type\": \"string\",\n 396:                 \"minLength\": 1,\n 397:                 \"maxLength\": 256\n 398:               },\n 399:               \"additionalProperties\": {\n 400:                 \"$ref\": \"#/$defs/netting_set\"\n 401:               }\n 402:             },\n 403:             \"reference_rating\": {\n 404:               \"type\": \"string\",\n 405:               \"minLength\": 1,\n 406:               \"maxLength\": 4096\n 407:             },\n 408:             \"provider_rating\": {\n 409:               \"type\": \"string\",\n 410:               \"minLength\": 1,\n 411:               \"maxLength\": 4096\n 412:             }\n 413:           }\n 414:         },\n 415:         \"CCR_RWA\": {\n 416:           \"$ref\": \"#/$defs/money\"\n 417:         },\n 418:         \"CCR_K\": {\n 419:           \"$ref\": \"#/$defs/money\"\n 420:         },\n 421:         \"CVA_K\": {\n 422:           \"$ref\": \"#/$defs/money\"\n 423:         },\n 424:         \"market_risk_K\": {\n 425:           \"$ref\": \"#/$defs/money\"\n 426:         },\n 427:         \"RWA\": {\n 428:           \"$ref\": \"#/$defs/money\"\n 429:         },\n 430:         \"leverage_exposure\": {\n 431:           \"$ref\": \"#/$defs/money\"\n 432:         },\n 433:         \"risk_requirement\": {\n 434:           \"$ref\": \"#/$defs/money\"\n 435:         },\n 436:         \"leverage_requirement\": {\n 437:           \"$ref\": \"#/$defs/money\"\n 438:         },\n 439:         \"required_capital\": {\n 440:           \"$ref\": \"#/$defs/money\"\n 441:         },\n 442:         \"Tier1_before_AVA\": {\n 443:           \"$ref\": \"#/$defs/money\"\n 444:         },\n 445:         \"AVA\": {\n 446:           \"$ref\": \"#/$defs/money\"\n 447:         },\n 448:         \"Tier1_after_AVA\": {\n 449:           \"$ref\": \"#/$defs/money\"\n 450:         },\n 451:         \"capital_shortfall\": {\n 452:           \"$ref\": \"#/$defs/money\"\n 453:         },\n 454:         \"capital_release_cash\": {\n 455:           \"$ref\": \"#/$defs/money\"\n 456:         },\n 457:         \"executable_under_stated_capital\": {\n 458:           \"type\": \"boolean\"\n 459:         },\n 460:         \"binding_constraint\": {\n 461:           \"enum\": [\n 462:             \"risk_based\",\n 463:             \"leverage\"\n 464:           ]\n 465:         },\n 466:         \"deployment\": {\n 467:           \"type\": \"object\",\n 468:           \"additionalProperties\": false,\n 469:           \"required\": [\n 470:             \"principal\",\n 471:             \"accrued\",\n 472:             \"collateral_market_value\",\n 473:             \"recognised_mitigation\",\n 474:             \"E_star\",\n 475:             \"RWA\",\n 476:             \"capital\",\n 477:             \"collateral_remaining_years\",\n 478:             \"haircut_10day\",\n 479:             \"haircut_scaled\",\n 480:             \"maturity_factor\",\n 481:             \"collateral_lot_id\",\n 482:             \"eligible\",\n 483:             \"reason\"\n 484:           ],\n 485:           \"properties\": {\n 486:             \"principal\": {\n 487:               \"$ref\": \"#/$defs/money\"\n 488:             },\n 489:             \"accrued\": {\n 490:               \"$ref\": \"#/$defs/money\"\n 491:             },\n 492:             \"collateral_market_value\": {\n 493:               \"$ref\": \"#/$defs/money\"\n 494:             },\n 495:             \"recognised_mitigation\": {\n 496:               \"$ref\": \"#/$defs/money\"\n 497:             },\n 498:             \"E_star\": {\n 499:               \"$ref\": \"#/$defs/money\"\n 500:             },\n 501:             \"RWA\": {\n 502:               \"$ref\": \"#/$defs/money\"\n 503:             },\n 504:             \"capital\": {\n 505:               \"$ref\": \"#/$defs/money\"\n 506:             },\n 507:             \"collateral_remaining_years\": {\n 508:               \"$ref\": \"#/$defs/scalar\"\n 509:             },\n 510:             \"haircut_10day\": {\n 511:               \"$ref\": \"#/$defs/scalar\"\n 512:             },\n 513:             \"haircut_scaled\": {\n 514:               \"$ref\": \"#/$defs/scalar\"\n 515:             },\n 516:             \"maturity_factor\": {\n 517:               \"$ref\": \"#/$defs/scalar\"\n 518:             },\n 519:             \"collateral_lot_id\": {\n 520:               \"type\": [\n 521:                 \"string\",\n 522:                 \"null\"\n 523:               ],\n 524:               \"minLength\": 1,\n 525:               \"maxLength\": 256\n 526:             },\n 527:             \"eligible\": {\n 528:               \"type\": \"boolean\"\n 529:             },\n 530:             \"reason\": {\n 531:               \"type\": \"string\",\n 532:               \"minLength\": 1,\n 533:               \"maxLength\": 4096\n 534:             }\n 535:           }\n 536:         },\n 537:         \"asset_map\": {\n 538:           \"type\": \"object\",\n 539:           \"maxProperties\": 4096,\n 540:           \"propertyNames\": {\n 541:             \"type\": \"string\",\n 542:             \"minLength\": 1,\n 543:             \"maxLength\": 256\n 544:           },\n 545:           \"additionalProperties\": {\n 546:             \"$ref\": \"#/$defs/capital_asset\"\n 547:           }\n 548:         },\n 549:         \"repo\": {\n 550:           \"type\": \"object\",\n 551:           \"additionalProperties\": false,\n 552:           \"required\": [\n 553:             \"contracts\",\n 554:             \"principal\",\n 555:             \"counterparty_RWA\",\n 556:             \"capital\",\n 557:             \"cash_interest_accrued\",\n 558:             \"noncash_haircut_funding_cost\",\n 559:             \"noncash_capital_cost\"\n 560:           ],\n 561:           \"properties\": {\n 562:             \"contracts\": {\n 563:               \"type\": \"object\",\n 564:               \"maxProperties\": 4096,\n 565:               \"propertyNames\": {\n 566:                 \"type\": \"string\",\n 567:                 \"minLength\": 1,\n 568:                 \"maxLength\": 256\n 569:               },\n 570:               \"additionalProperties\": {\n 571:                 \"$ref\": \"#/$defs/repo_contract\"\n 572:               }\n 573:             },\n 574:             \"principal\": {\n 575:               \"$ref\": \"#/$defs/money\"\n 576:             },\n 577:             \"counterparty_RWA\": {\n 578:               \"$ref\": \"#/$defs/money\"\n 579:             },\n 580:             \"capital\": {\n 581:               \"$ref\": \"#/$defs/money\"\n 582:             },\n 583:             \"cash_interest_accrued\": {\n 584:               \"$ref\": \"#/$defs/money\"\n 585:             },\n 586:             \"noncash_haircut_funding_cost\": {\n 587:               \"$ref\": \"#/$defs/money\"\n 588:             },\n 589:             \"noncash_capital_cost\": {\n 590:               \"$ref\": \"#/$defs/money\"\n 591:             }\n 592:           }\n 593:         },\n 594:         \"evidence\": {\n 595:           \"type\": \"array\",\n 596:           \"maxItems\": 4096,\n 597:           \"items\": {\n 598:             \"$ref\": \"#/$defs/citation\"\n 599:           }\n 600:         }\n 601:       }\n 602:     },\n 603:     \"liquidity\": {\n 604:       \"type\": \"object\",\n 605:       \"additionalProperties\": false,\n 606:       \"required\": [\n 607:         \"cash\",\n 608:         \"restricted_cash\",\n 609:         \"restricted_collections\",\n 610:         \"posted_vm\",\n 611:         \"received_vm\",\n 612:         \"facility_debt\",\n 613:         \"facility_limit\",\n 614:         \"facility_available\",\n 615:         \"repo_debt\",\n 616:         \"unpaid_receivable\",\n 617:         \"unpaid_payable\",\n 618:         \"due_payables\",\n 619:         \"deadline_shortfall\",\n 620:         \"market_open\",\n 621:         \"transfer_blocks\",\n 622:         \"inventory\",\n 623:         \"obligations\",\n 624:         \"allocation\",\n 625:         \"accepted_action_count\",\n 626:         \"evidence\"\n 627:       ],\n 628:       \"properties\": {\n 629:         \"cash\": {\n 630:           \"$ref\": \"#/$defs/money\"\n 631:         },\n 632:         \"restricted_cash\": {\n 633:           \"$ref\": \"#/$defs/money\"\n 634:         },\n 635:         \"restricted_collections\": {\n 636:           \"$ref\": \"#/$defs/money\"\n 637:         },\n 638:         \"posted_vm\": {\n 639:           \"$ref\": \"#/$defs/money\"\n 640:         },\n 641:         \"received_vm\": {\n 642:           \"$ref\": \"#/$defs/money\"\n 643:         },\n 644:         \"facility_debt\": {\n 645:           \"$ref\": \"#/$defs/money\"\n 646:         },\n 647:         \"facility_limit\": {\n 648:           \"$ref\": \"#/$defs/money\"\n 649:         },\n 650:         \"facility_available\": {\n 651:           \"$ref\": \"#/$defs/money\"\n 652:         },\n 653:         \"repo_debt\": {\n 654:           \"$ref\": \"#/$defs/money\"\n 655:         },\n 656:         \"unpaid_receivable\": {\n 657:           \"$ref\": \"#/$defs/money\"\n 658:         },\n 659:         \"unpaid_payable\": {\n 660:           \"$ref\": \"#/$defs/money\"\n 661:         },\n 662:         \"due_payables\": {\n 663:           \"$ref\": \"#/$defs/money\"\n 664:         },\n 665:         \"deadline_shortfall\": {\n 666:           \"$ref\": \"#/$defs/money\"\n 667:         },\n 668:         \"market_open\": {\n 669:           \"type\": \"boolean\"\n 670:         },\n 671:         \"transfer_blocks\": {\n 672:           \"type\": \"object\",\n 673:           \"additionalProperties\": false,\n 674:           \"required\": [\"custody_delivery\", \"cash_remittance\"],\n 675:           \"properties\": {\n 676:             \"custody_delivery\": {\"type\": \"boolean\"},\n 677:             \"cash_remittance\": {\"type\": \"boolean\"}\n 678:           }\n 679:         },\n 680:         \"inventory\": {\n 681:           \"type\": \"object\",\n 682:           \"maxProperties\": 4096,\n 683:           \"propertyNames\": {\n 684:             \"type\": \"string\",\n 685:             \"minLength\": 1,\n 686:             \"maxLength\": 256\n 687:           },\n 688:           \"additionalProperties\": {\n 689:             \"$ref\": \"#/$defs/inventory_lot\"\n 690:           }\n 691:         },\n 692:         \"obligations\": {\n 693:           \"type\": \"object\",\n 694:           \"maxProperties\": 4096,\n 695:           \"propertyNames\": {\n 696:             \"type\": \"string\",\n 697:             \"minLength\": 1,\n 698:             \"maxLength\": 256\n 699:           },\n 700:           \"additionalProperties\": {\n 701:             \"$ref\": \"#/$defs/obligation\"\n 702:           }\n 703:         },\n 704:         \"allocation\": {\n 705:           \"type\": \"object\",\n 706:           \"additionalProperties\": false,\n 707:           \"required\": [\n 708:             \"contributed_inventory_value\",\n 709:             \"current_inventory_value\",\n 710:             \"encumbered_inventory_value\",\n 711:             \"available_inventory_value\",\n 712:             \"repo_proceeds\",\n 713:             \"cash_action_fees\",\n 714:             \"noncash_haircut_funding_cost\",\n 715:             \"noncash_capital_cost\"\n 716:           ],\n 717:           \"properties\": {\n 718:             \"contributed_inventory_value\": {\n 719:               \"$ref\": \"#/$defs/money\"\n 720:             },\n 721:             \"current_inventory_value\": {\n 722:               \"$ref\": \"#/$defs/money\"\n 723:             },\n 724:             \"encumbered_inventory_value\": {\n 725:               \"$ref\": \"#/$defs/money\"\n 726:             },\n 727:             \"available_inventory_value\": {\n 728:               \"$ref\": \"#/$defs/money\"\n 729:             },\n 730:             \"repo_proceeds\": {\n 731:               \"$ref\": \"#/$defs/money\"\n 732:             },\n 733:             \"cash_action_fees\": {\n 734:               \"$ref\": \"#/$defs/money\"\n 735:             },\n 736:             \"noncash_haircut_funding_cost\": {\n 737:               \"$ref\": \"#/$defs/money\"\n 738:             },\n 739:             \"noncash_capital_cost\": {\n 740:               \"$ref\": \"#/$defs/money\"\n 741:             }\n 742:           }\n 743:         },\n 744:         \"accepted_action_count\": {\n 745:           \"type\": \"integer\",\n 746:           \"minimum\": 0,\n 747:           \"maximum\": 9007199254740991\n 748:         },\n 749:         \"evidence\": {\n 750:           \"type\": \"array\",\n 751:           \"maxItems\": 4096,\n 752:           \"items\": {\n 753:             \"$ref\": \"#/$defs/citation\"\n 754:           }\n 755:         }\n 756:       }\n 757:     },\n 758:     \"accounting\": {\n 759:       \"type\": \"object\",\n 760:       \"additionalProperties\": false,\n 761:       \"required\": [\n 762:         \"statutory\",\n 763:         \"management\",\n 764:         \"bridge\",\n 765:         \"attribution\",\n 766:         \"terminal\",\n 767:         \"evidence\"\n 768:       ],\n 769:       \"properties\": {\n 770:         \"statutory\": {\n 771:           \"type\": \"object\",\n 772:           \"additionalProperties\": false,\n 773:           \"required\": [\n 774:             \"accounting_unit\",\n 775:             \"assets\",\n 776:             \"liabilities\",\n 777:             \"allowances\",\n 778:             \"contributed_equity\",\n 779:             \"equity\",\n 780:             \"cumulative_pnl\",\n 781:             \"trial_balance\",\n 782:             \"funding_derivative_asset\",\n 783:             \"owner_contribution_pnl\",\n 784:             \"balances\",\n 785:             \"booked_balances\",\n 786:             \"valuation_postings\"\n 787:           ],\n 788:           \"properties\": {\n 789:             \"accounting_unit\": {\n 790:               \"type\": \"string\",\n 791:               \"minLength\": 1,\n 792:               \"maxLength\": 4096\n 793:             },\n 794:             \"assets\": {\n 795:               \"$ref\": \"#/$defs/money\"\n 796:             },\n 797:             \"liabilities\": {\n 798:               \"$ref\": \"#/$defs/money\"\n 799:             },\n 800:             \"allowances\": {\n 801:               \"$ref\": \"#/$defs/money\"\n 802:             },\n 803:             \"contributed_equity\": {\n 804:               \"$ref\": \"#/$defs/money\"\n 805:             },\n 806:             \"equity\": {\n 807:               \"$ref\": \"#/$defs/money\"\n 808:             },\n 809:             \"cumulative_pnl\": {\n 810:               \"$ref\": \"#/$defs/money\"\n 811:             },\n 812:             \"trial_balance\": {\n 813:               \"$ref\": \"#/$defs/money\"\n 814:             },\n 815:             \"funding_derivative_asset\": {\n 816:               \"$ref\": \"#/$defs/money\"\n 817:             },\n 818:             \"owner_contribution_pnl\": {\n 819:               \"$ref\": \"#/$defs/money\"\n 820:             },\n 821:             \"balances\": {\n 822:               \"type\": \"object\",\n 823:               \"maxProperties\": 4096,\n 824:               \"propertyNames\": {\n 825:                 \"type\": \"string\",\n 826:                 \"minLength\": 1,\n 827:                 \"maxLength\": 256\n 828:               },\n 829:               \"additionalProperties\": {\n 830:                 \"$ref\": \"#/$defs/money\"\n 831:               }\n 832:             },\n 833:             \"booked_balances\": {\n 834:               \"type\": \"object\",\n 835:               \"maxProperties\": 4096,\n 836:               \"propertyNames\": {\n 837:                 \"type\": \"string\",\n 838:                 \"minLength\": 1,\n 839:                 \"maxLength\": 256\n 840:               },\n 841:               \"additionalProperties\": {\n 842:                 \"$ref\": \"#/$defs/money\"\n 843:               }\n 844:             },\n 845:             \"valuation_postings\": {\n 846:               \"type\": \"object\",\n 847:               \"maxProperties\": 4096,\n 848:               \"propertyNames\": {\n 849:                 \"type\": \"string\",\n 850:                 \"minLength\": 1,\n 851:                 \"maxLength\": 256\n 852:               },\n 853:               \"additionalProperties\": {\n 854:                 \"$ref\": \"#/$defs/money\"\n 855:               }\n 856:             }\n 857:           }\n 858:         },\n 859:         \"management\": {\n 860:           \"type\": \"object\",\n 861:           \"additionalProperties\": false,\n 862:           \"required\": [\n 863:             \"funding_mark\",\n 864:             \"hedge_asset\",\n 865:             \"gross_inception_gain\",\n 866:             \"deferred_gain\",\n 867:             \"CVA_reserve\",\n 868:             \"KVA_reserve\",\n 869:             \"overlay_equity\",\n 870:             \"equity\",\n 871:             \"cumulative_pnl\",\n 872:             \"trial_balance\",\n 873:             \"balances\",\n 874:             \"valuation_postings\",\n 875:             \"observable_at_inception\",\n 876:             \"currently_observable\",\n 877:             \"deferral_released_by_evidence\"\n 878:           ],\n 879:           \"properties\": {\n 880:             \"funding_mark\": {\n 881:               \"$ref\": \"#/$defs/money\"\n 882:             },\n 883:             \"hedge_asset\": {\n 884:               \"$ref\": \"#/$defs/money\"\n 885:             },\n 886:             \"gross_inception_gain\": {\n 887:               \"$ref\": \"#/$defs/money\"\n 888:             },\n 889:             \"deferred_gain\": {\n 890:               \"$ref\": \"#/$defs/money\"\n 891:             },\n 892:             \"CVA_reserve\": {\n 893:               \"$ref\": \"#/$defs/money\"\n 894:             },\n 895:             \"KVA_reserve\": {\n 896:               \"$ref\": \"#/$defs/money\"\n 897:             },\n 898:             \"overlay_equity\": {\n 899:               \"$ref\": \"#/$defs/money\"\n 900:             },\n 901:             \"equity\": {\n 902:               \"$ref\": \"#/$defs/money\"\n 903:             },\n 904:             \"cumulative_pnl\": {\n 905:               \"$ref\": \"#/$defs/money\"\n 906:             },\n 907:             \"trial_balance\": {\n 908:               \"$ref\": \"#/$defs/money\"\n 909:             },\n 910:             \"balances\": {\n 911:               \"type\": \"object\",\n 912:               \"maxProperties\": 4096,\n 913:               \"propertyNames\": {\n 914:                 \"type\": \"string\",\n 915:                 \"minLength\": 1,\n 916:                 \"maxLength\": 256\n 917:               },\n 918:               \"additionalProperties\": {\n 919:                 \"$ref\": \"#/$defs/money\"\n 920:               }\n 921:             },\n 922:             \"valuation_postings\": {\n 923:               \"type\": \"object\",\n 924:               \"maxProperties\": 4096,\n 925:               \"propertyNames\": {\n 926:                 \"type\": \"string\",\n 927:                 \"minLength\": 1,\n 928:                 \"maxLength\": 256\n 929:               },\n 930:               \"additionalProperties\": {\n 931:                 \"$ref\": \"#/$defs/money\"\n 932:               }\n 933:             },\n 934:             \"observable_at_inception\": {\n 935:               \"type\": \"boolean\"\n 936:             },\n 937:             \"currently_observable\": {\n 938:               \"type\": \"boolean\"\n 939:             },\n 940:             \"deferral_released_by_evidence\": {\n 941:               \"type\": \"boolean\"\n 942:             }\n 943:           }\n 944:         },\n 945:         \"bridge\": {\n 946:           \"type\": \"object\",\n 947:           \"additionalProperties\": false,\n 948:           \"required\": [\n 949:             \"management_equity\",\n 950:             \"remove_funding_mark\",\n 951:             \"remove_hedge_asset\",\n 952:             \"restore_gross_deferral\",\n 953:             \"restore_management_xva\",\n 954:             \"statutory_equity\",\n 955:             \"residual\"\n 956:           ],\n 957:           \"properties\": {\n 958:             \"management_equity\": {\n 959:               \"$ref\": \"#/$defs/money\"\n 960:             },\n 961:             \"remove_funding_mark\": {\n 962:               \"$ref\": \"#/$defs/money\"\n 963:             },\n 964:             \"remove_hedge_asset\": {\n 965:               \"$ref\": \"#/$defs/money\"\n 966:             },\n 967:             \"restore_gross_deferral\": {\n 968:               \"$ref\": \"#/$defs/money\"\n 969:             },\n 970:             \"restore_management_xva\": {\n 971:               \"$ref\": \"#/$defs/money\"\n 972:             },\n 973:             \"statutory_equity\": {\n 974:               \"$ref\": \"#/$defs/money\"\n 975:             },\n 976:             \"residual\": {\n 977:               \"$ref\": \"#/$defs/money\"\n 978:             }\n 979:           }\n 980:         },\n 981:         \"attribution\": {\n 982:           \"type\": \"object\",\n 983:           \"additionalProperties\": false,\n 984:           \"required\": [\n 985:             \"opening_as_of\",\n 986:             \"closing_as_of\",\n 987:             \"carry\",\n 988:             \"statutory_mark\",\n 989:             \"funding_theta\",\n 990:             \"funding_mtm\",\n 991:             \"funding_action\",\n 992:             \"deferral_theta\",\n 993:             \"deferral_observability\",\n 994:             \"reserve_theta\",\n 995:             \"reserve_mtm\",\n 996:             \"reserve_action\",\n 997:             \"hedge_mark\",\n 998:             \"hedge_cash\",\n 999:             \"hedge_accrual\",\n1000:             \"cash_funding_drag\",\n1001:             \"operating_cost\",\n1002:             \"claim_loss\",\n1003:             \"owner_contributions\",\n1004:             \"statutory_equity_change\",\n1005:             \"overlay_equity_change\",\n1006:             \"management_equity_change\",\n1007:             \"pnl_total\",\n1008:             \"statutory_journal_pnl\",\n1009:             \"overlay_journal_pnl\",\n1010:             \"tie_difference\"\n1011:           ],\n1012:           \"properties\": {\n1013:             \"opening_as_of\": {\n1014:               \"type\": \"string\",\n1015:               \"minLength\": 1,\n1016:               \"maxLength\": 4096\n1017:             },\n1018:             \"closing_as_of\": {\n1019:               \"type\": \"string\",\n1020:               \"minLength\": 1,\n1021:               \"maxLength\": 4096\n1022:             },\n1023:             \"carry\": {\n1024:               \"$ref\": \"#/$defs/money\"\n1025:             },\n1026:             \"statutory_mark\": {\n1027:               \"$ref\": \"#/$defs/money\"\n1028:             },\n1029:             \"funding_theta\": {\n1030:               \"$ref\": \"#/$defs/money\"\n1031:             },\n1032:             \"funding_mtm\": {\n1033:               \"$ref\": \"#/$defs/money\"\n1034:             },\n1035:             \"funding_action\": {\n1036:               \"$ref\": \"#/$defs/money\"\n1037:             },\n1038:             \"deferral_theta\": {\n1039:               \"$ref\": \"#/$defs/money\"\n1040:             },\n1041:             \"deferral_observability\": {\n1042:               \"$ref\": \"#/$defs/money\"\n1043:             },\n1044:             \"reserve_theta\": {\n1045:               \"$ref\": \"#/$defs/money\"\n1046:             },\n1047:             \"reserve_mtm\": {\n1048:               \"$ref\": \"#/$defs/money\"\n1049:             },\n1050:             \"reserve_action\": {\n1051:               \"$ref\": \"#/$defs/money\"\n1052:             },\n1053:             \"hedge_mark\": {\n1054:               \"$ref\": \"#/$defs/money\"\n1055:             },\n1056:             \"hedge_cash\": {\n1057:               \"$ref\": \"#/$defs/money\"\n1058:             },\n1059:             \"hedge_accrual\": {\n1060:               \"$ref\": \"#/$defs/money\"\n1061:             },\n1062:             \"cash_funding_drag\": {\n1063:               \"$ref\": \"#/$defs/money\"\n1064:             },\n1065:             \"operating_cost\": {\n1066:               \"$ref\": \"#/$defs/money\"\n1067:             },\n1068:             \"claim_loss\": {\n1069:               \"$ref\": \"#/$defs/money\"\n1070:             },\n1071:             \"owner_contributions\": {\n1072:               \"$ref\": \"#/$defs/money\"\n1073:             },\n1074:             \"statutory_equity_change\": {\n1075:               \"$ref\": \"#/$defs/money\"\n1076:             },\n1077:             \"overlay_equity_change\": {\n1078:               \"$ref\": \"#/$defs/money\"\n1079:             },\n1080:             \"management_equity_change\": {\n1081:               \"$ref\": \"#/$defs/money\"\n1082:             },\n1083:             \"pnl_total\": {\n1084:               \"$ref\": \"#/$defs/money\"\n1085:             },\n1086:             \"statutory_journal_pnl\": {\n1087:               \"$ref\": \"#/$defs/money\"\n1088:             },\n1089:             \"overlay_journal_pnl\": {\n1090:               \"$ref\": \"#/$defs/money\"\n1091:             },\n1092:             \"tie_difference\": {\n1093:               \"$ref\": \"#/$defs/money\"\n1094:             }\n1095:           }\n1096:         },\n1097:         \"terminal\": {\n1098:           \"type\": \"object\",\n1099:           \"additionalProperties\": false,\n1100:           \"required\": [\n1101:             \"scheduled_funding_maturity\",\n1102:             \"scheduled_deployment_maturity\",\n1103:             \"open_obligations\",\n1104:             \"unpaid_receivables\",\n1105:             \"unpaid_payables\",\n1106:             \"return_liabilities\",\n1107:             \"claim_allowance\",\n1108:             \"AVA\",\n1109:             \"replacement_equity\",\n1110:             \"replacement_equity_KVA\",\n1111:             \"AVA_exposures\",\n1112:             \"all_obligations_settled\"\n1113:           ],\n1114:           \"properties\": {\n1115:             \"scheduled_funding_maturity\": {\n1116:               \"type\": \"boolean\"\n1117:             },\n1118:             \"scheduled_deployment_maturity\": {\n1119:               \"type\": \"boolean\"\n1120:             },\n1121:             \"open_obligations\": {\n1122:               \"type\": \"object\",\n1123:               \"maxProperties\": 4096,\n1124:               \"propertyNames\": {\n1125:                 \"type\": \"string\",\n1126:                 \"minLength\": 1,\n1127:                 \"maxLength\": 256\n1128:               },\n1129:               \"additionalProperties\": {\n1130:                 \"$ref\": \"#/$defs/terminal_obligation\"\n1131:               }\n1132:             },\n1133:             \"unpaid_receivables\": {\n1134:               \"$ref\": \"#/$defs/money\"\n1135:             },\n1136:             \"unpaid_payables\": {\n1137:               \"$ref\": \"#/$defs/money\"\n1138:             },\n1139:             \"return_liabilities\": {\n1140:               \"$ref\": \"#/$defs/money\"\n1141:             },\n1142:             \"claim_allowance\": {\n1143:               \"$ref\": \"#/$defs/money\"\n1144:             },\n1145:             \"AVA\": {\n1146:               \"$ref\": \"#/$defs/money\"\n1147:             },\n1148:             \"replacement_equity\": {\n1149:               \"$ref\": \"#/$defs/money\"\n1150:             },\n1151:             \"replacement_equity_KVA\": {\n1152:               \"$ref\": \"#/$defs/money\"\n1153:             },\n1154:             \"AVA_exposures\": {\n1155:               \"type\": \"array\",\n1156:               \"maxItems\": 4096,\n1157:               \"items\": {\n1158:                 \"$ref\": \"#/$defs/ava_exposure\"\n1159:               }\n1160:             },\n1161:             \"all_obligations_settled\": {\n1162:               \"type\": \"boolean\"\n1163:             }\n1164:           }\n1165:         },\n1166:         \"evidence\": {\n1167:           \"type\": \"array\",\n1168:           \"maxItems\": 4096,\n1169:           \"items\": {\n1170:             \"$ref\": \"#/$defs/citation\"\n1171:           }\n1172:         }\n1173:       }\n1174:     },\n1175:     \"legal\": {\n1176:       \"type\": \"object\",\n1177:       \"additionalProperties\": false,\n1178:       \"required\": [\n1179:         \"findings\"\n1180:       ],\n1181:       \"properties\": {\n1182:         \"findings\": {\n1183:           \"type\": \"array\",\n1184:           \"minItems\": 1,\n1185:           \"items\": {\n1186:             \"type\": \"object\",\n1187:             \"additionalProperties\": false,\n1188:             \"required\": [\n1189:               \"subject_id\",\n1190:               \"status\",\n1191:               \"premises\",\n1192:               \"rationale\"\n1193:             ],\n1194:             \"properties\": {\n1195:               \"subject_id\": {\n1196:                 \"type\": \"string\",\n1197:                 \"minLength\": 1,\n1198:                 \"pattern\": \"\\\\S\"\n1199:               },\n1200:               \"status\": {\n1201:                 \"enum\": [\n1202:                   \"permitted\",\n1203:                   \"conditional\",\n1204:                   \"blocked\"\n1205:                 ]\n1206:               },\n1207:               \"premises\": {\n1208:                 \"type\": \"array\",\n1209:                 \"minItems\": 1,\n1210:                 \"items\": {\n1211:                   \"type\": \"object\",\n1212:                   \"additionalProperties\": false,\n1213:                   \"required\": [\n1214:                     \"source\",\n1215:                     \"pointer\",\n1216:                     \"relation\",\n1217:                     \"value\"\n1218:                   ],\n1219:                   \"properties\": {\n1220:                     \"source\": {\n1221:                       \"enum\": [\n1222:                         \"case\",\n1223:                         \"state\",\n1224:                         \"book\",\n1225:                         \"report\"\n1226:                       ]\n1227:                     },\n1228:                     \"pointer\": {\n1229:                       \"type\": \"string\",\n1230:                       \"pattern\": \"^(?:/(?:[^~/]|~[01])*)*(?![\\\\s\\\\S])\"\n1231:                     },\n1232:                     \"relation\": {\n1233:                       \"enum\": [\n1234:                         \"eq\",\n1235:                         \"ne\",\n1236:                         \"gte\",\n1237:                         \"lte\",\n1238:                         \"contains\"\n1239:                       ]\n1240:                     },\n1241:                     \"value\": {\n1242:                       \"anyOf\": [\n1243:                         {\n1244:                           \"type\": [\n1245:                             \"string\",\n1246:                             \"integer\",\n1247:                             \"boolean\",\n1248:                             \"null\"\n1249:                           ]\n1250:                         },\n1251:                         {\n1252:                           \"type\": \"array\",\n1253:                           \"items\": {\n1254:                             \"type\": [\n1255:                               \"string\",\n1256:                               \"integer\",\n1257:                               \"boolean\",\n1258:                               \"null\"\n1259:                             ]\n1260:                           }\n1261:                         }\n1262:                       ]\n1263:                     }\n1264:                   }\n1265:                 }\n1266:               },\n1267:               \"rationale\": {\n1268:                 \"type\": \"string\",\n1269:                 \"minLength\": 1,\n1270:                 \"pattern\": \"\\\\S\"\n1271:               }\n1272:             }\n1273:           }\n1274:         }\n1275:       }\n1276:     },\n1277:     \"compliance\": {\n1278:       \"type\": \"object\",\n1279:       \"additionalProperties\": false,\n1280:       \"required\": [\n1281:         \"decisions\"\n1282:       ],\n1283:       \"properties\": {\n1284:         \"decisions\": {\n1285:           \"type\": \"array\",\n1286:           \"minItems\": 1,\n1287:           \"items\": {\n1288:             \"type\": \"object\",\n1289:             \"additionalProperties\": false,\n1290:             \"required\": [\n1291:               \"rule_id\",\n1292:               \"decision\",\n1293:               \"premises\",\n1294:               \"rationale\"\n1295:             ],\n1296:             \"properties\": {\n1297:               \"rule_id\": {\n1298:                 \"type\": \"string\",\n1299:                 \"minLength\": 1,\n1300:                 \"pattern\": \"\\\\S\"\n1301:               },\n1302:               \"decision\": {\n1303:                 \"enum\": [\n1304:                   \"execute\",\n1305:                   \"escalate\",\n1306:                   \"decline\",\n1307:                   \"await_approval\"\n1308:                 ]\n1309:               },\n1310:               \"premises\": {\n1311:                 \"type\": \"array\",\n1312:                 \"minItems\": 1,\n1313:                 \"items\": {\n1314:                   \"type\": \"object\",\n1315:                   \"additionalProperties\": false,\n1316:                   \"required\": [\n1317:                     \"source\",\n1318:                     \"pointer\",\n1319:                     \"relation\",\n1320:                     \"value\"\n1321:                   ],\n1322:                   \"properties\": {\n1323:                     \"source\": {\n1324:                       \"enum\": [\n1325:                         \"case\",\n1326:                         \"state\",\n1327:                         \"book\",\n1328:                         \"report\"\n1329:                       ]\n1330:                     },\n1331:                     \"pointer\": {\n1332:                       \"type\": \"string\",\n1333:                       \"pattern\": \"^(?:/(?:[^~/]|~[01])*)*(?![\\\\s\\\\S])\"\n1334:                     },\n1335:                     \"relation\": {\n1336:                       \"enum\": [\n1337:                         \"eq\",\n1338:                         \"ne\",\n1339:                         \"gte\",\n1340:                         \"lte\",\n1341:                         \"contains\"\n1342:                       ]\n1343:                     },\n1344:                     \"value\": {\n1345:                       \"anyOf\": [\n1346:                         {\n1347:                           \"type\": [\n1348:                             \"string\",\n1349:                             \"integer\",\n1350:                             \"boolean\",\n1351:                             \"null\"\n1352:                           ]\n1353:                         },\n1354:                         {\n1355:                           \"type\": \"array\",\n1356:                           \"items\": {\n1357:                             \"type\": [\n1358:                               \"string\",\n1359:                               \"integer\",\n1360:                               \"boolean\",\n1361:                               \"null\"\n1362:                             ]\n1363:                           }\n1364:                         }\n1365:                       ]\n1366:                     }\n1367:                   }\n1368:                 }\n1369:               },\n1370:               \"rationale\": {\n1371:                 \"type\": \"string\",\n1372:                 \"minLength\": 1,\n1373:                 \"pattern\": \"\\\\S\"\n1374:               }\n1375:             }\n1376:           }\n1377:         }\n1378:       }\n1379:     },\n1380:     \"structure\": {\n1381:       \"type\": \"object\",\n1382:       \"additionalProperties\": false,\n1383:       \"required\": [\n1384:         \"party_id\",\n1385:         \"legal_form\",\n1386:         \"client_executable\",\n1387:         \"classification\",\n1388:         \"cash_required\",\n1389:         \"cash_delivered\",\n1390:         \"deadline_met\",\n1391:         \"bank_viable\",\n1392:         \"premises\",\n1393:         \"rationale\"\n1394:       ],\n1395:       \"properties\": {\n1396:         \"party_id\": {\n1397:           \"type\": \"string\",\n1398:           \"minLength\": 1,\n1399:           \"pattern\": \"\\\\S\"\n1400:         },\n1401:         \"legal_form\": {\n1402:           \"type\": \"string\",\n1403:           \"minLength\": 1,\n1404:           \"pattern\": \"\\\\S\"\n1405:         },\n1406:         \"client_executable\": {\n1407:           \"type\": \"boolean\"\n1408:         },\n1409:         \"classification\": {\n1410:           \"type\": \"string\",\n1411:           \"minLength\": 1,\n1412:           \"pattern\": \"\\\\S\"\n1413:         },\n1414:         \"cash_required\": {\n1415:           \"type\": \"string\",\n1416:           \"pattern\": \"^-?(?:0|[1-9][0-9]*)(?:\\\\.[0-9]+)?(?![\\\\s\\\\S])\",\n1417:           \"x-exact-decimal\": true,\n1418:           \"x-dimension\": \"money\"\n1419:         },\n1420:         \"cash_delivered\": {\n1421:           \"type\": \"string\",\n1422:           \"pattern\": \"^-?(?:0|[1-9][0-9]*)(?:\\\\.[0-9]+)?(?![\\\\s\\\\S])\",\n1423:           \"x-exact-decimal\": true,\n1424:           \"x-dimension\": \"money\"\n1425:         },\n1426:         \"deadline_met\": {\n1427:           \"type\": \"boolean\"\n1428:         },\n1429:         \"bank_viable\": {\n1430:           \"type\": \"boolean\"\n1431:         },\n1432:         \"premises\": {\n1433:           \"type\": \"array\",\n1434:           \"minItems\": 1,\n1435:           \"items\": {\n1436:             \"type\": \"object\",\n1437:             \"additionalProperties\": false,\n1438:             \"required\": [\n1439:               \"source\",\n1440:               \"pointer\",\n1441:               \"relation\",\n1442:               \"value\"\n1443:             ],\n1444:             \"properties\": {\n1445:               \"source\": {\n1446:                 \"enum\": [\n1447:                   \"case\",\n1448:                   \"state\",\n1449:                   \"book\",\n1450:                   \"report\"\n1451:                 ]\n1452:               },\n1453:               \"pointer\": {\n1454:                 \"type\": \"string\",\n1455:                 \"pattern\": \"^(?:/(?:[^~/]|~[01])*)*(?![\\\\s\\\\S])\"\n1456:               },\n1457:               \"relation\": {\n1458:                 \"enum\": [\n1459:                   \"eq\",\n1460:                   \"ne\",\n1461:                   \"gte\",\n1462:                   \"lte\",\n1463:                   \"contains\"\n1464:                 ]\n1465:               },\n1466:               \"value\": {\n1467:                 \"anyOf\": [\n1468:                   {\n1469:                     \"type\": [\n1470:                       \"string\",\n1471:                       \"integer\",\n1472:                       \"boolean\",\n1473:                       \"null\"\n1474:                     ]\n1475:                   },\n1476:                   {\n1477:                     \"type\": \"array\",\n1478:                     \"items\": {\n1479:                       \"type\": [\n1480:                         \"string\",\n1481:                         \"integer\",\n1482:                         \"boolean\",\n1483:                         \"null\"\n1484:                       ]\n1485:                     }\n1486:                   }\n1487:                 ]\n1488:               }\n1489:             }\n1490:           }\n1491:         },\n1492:         \"rationale\": {\n1493:           \"type\": \"string\",\n1494:           \"minLength\": 1,\n1495:           \"pattern\": \"\\\\S\"\n1496:         }\n1497:       }\n1498:     },\n1499:     \"recommendation\": {\n1500:       \"type\": \"object\",\n1501:       \"additionalProperties\": false,\n1502:       \"required\": [\n1503:         \"action_kind\",\n1504:         \"subject_id\",\n1505:         \"binding_constraint\",\n1506:         \"position_id\",\n1507:         \"premises\",\n1508:         \"alternatives\",\n1509:         \"rationale\"\n1510:       ],\n1511:       \"properties\": {\n1512:         \"action_kind\": {\n1513:           \"type\": \"string\",\n1514:           \"minLength\": 1,\n1515:           \"pattern\": \"\\\\S\"\n1516:         },\n1517:         \"subject_id\": {\n1518:           \"type\": \"string\",\n1519:           \"minLength\": 1,\n1520:           \"pattern\": \"\\\\S\"\n1521:         },\n1522:         \"binding_constraint\": {\n1523:           \"type\": \"string\",\n1524:           \"minLength\": 1,\n1525:           \"pattern\": \"\\\\S\"\n1526:         },\n1527:         \"position_id\": {\n1528:           \"type\": [\n1529:             \"string\",\n1530:             \"null\"\n1531:           ],\n1532:           \"minLength\": 1\n1533:         },\n1534:         \"premises\": {\n1535:           \"type\": \"array\",\n1536:           \"minItems\": 1,\n1537:           \"items\": {\n1538:             \"type\": \"object\",\n1539:             \"additionalProperties\": false,\n1540:             \"required\": [\n1541:               \"source\",\n1542:               \"pointer\",\n1543:               \"relation\",\n1544:               \"value\"\n1545:             ],\n1546:             \"properties\": {\n1547:               \"source\": {\n1548:                 \"enum\": [\n1549:                   \"case\",\n1550:                   \"state\",\n1551:                   \"book\",\n1552:                   \"report\"\n1553:                 ]\n1554:               },\n1555:               \"pointer\": {\n1556:                 \"type\": \"string\",\n1557:                 \"pattern\": \"^(?:/(?:[^~/]|~[01])*)*(?![\\\\s\\\\S])\"\n1558:               },\n1559:               \"relation\": {\n1560:                 \"enum\": [\n1561:                   \"eq\",\n1562:                   \"ne\",\n1563:                   \"gte\",\n1564:                   \"lte\",\n1565:                   \"contains\"\n1566:                 ]\n1567:               },\n1568:               \"value\": {\n1569:                 \"anyOf\": [\n1570:                   {\n1571:                     \"type\": [\n1572:                       \"string\",\n1573:                       \"integer\",\n1574:                       \"boolean\",\n1575:                       \"null\"\n1576:                     ]\n1577:                   },\n1578:                   {\n1579:                     \"type\": \"array\",\n1580:                     \"items\": {\n1581:                       \"type\": [\n1582:                         \"string\",\n1583:                         \"integer\",\n1584:                         \"boolean\",\n1585:                         \"null\"\n1586:                       ]\n1587:                     }\n1588:                   }\n1589:                 ]\n1590:               }\n1591:             }\n1592:           }\n1593:         },\n1594:         \"alternatives\": {\n1595:           \"type\": \"array\",\n1596:           \"minItems\": 1,\n1597:           \"items\": {\n1598:             \"type\": \"object\",\n1599:             \"additionalProperties\": false,\n1600:             \"required\": [\n1601:               \"action_kind\",\n1602:               \"subject_id\",\n1603:               \"reason\",\n1604:               \"premises\"\n1605:             ],\n1606:             \"properties\": {\n1607:               \"action_kind\": {\n1608:                 \"type\": \"string\",\n1609:                 \"minLength\": 1,\n1610:                 \"pattern\": \"\\\\S\"\n1611:               },\n1612:               \"subject_id\": {\n1613:                 \"type\": \"string\",\n1614:                 \"minLength\": 1,\n1615:                 \"pattern\": \"\\\\S\"\n1616:               },\n1617:               \"reason\": {\n1618:                 \"type\": \"string\",\n1619:                 \"minLength\": 1,\n1620:                 \"pattern\": \"\\\\S\"\n1621:               },\n1622:               \"premises\": {\n1623:                 \"type\": \"array\",\n1624:                 \"minItems\": 1,\n1625:                 \"items\": {\n1626:                   \"type\": \"object\",\n1627:                   \"additionalProperties\": false,\n1628:                   \"required\": [\n1629:                     \"source\",\n1630:                     \"pointer\",\n1631:                     \"relation\",\n1632:                     \"value\"\n1633:                   ],\n1634:                   \"properties\": {\n1635:                     \"source\": {\n1636:                       \"enum\": [\n1637:                         \"case\",\n1638:                         \"state\",\n1639:                         \"book\",\n1640:                         \"report\"\n1641:                       ]\n1642:                     },\n1643:                     \"pointer\": {\n1644:                       \"type\": \"string\",\n1645:                       \"pattern\": \"^(?:/(?:[^~/]|~[01])*)*(?![\\\\s\\\\S])\"\n1646:                     },\n1647:                     \"relation\": {\n1648:                       \"enum\": [\n1649:                         \"eq\",\n1650:                         \"ne\",\n1651:                         \"gte\",\n1652:                         \"lte\",\n1653:                         \"contains\"\n1654:                       ]\n1655:                     },\n1656:                     \"value\": {\n1657:                       \"anyOf\": [\n1658:                         {\n1659:                           \"type\": [\n1660:                             \"string\",\n1661:                             \"integer\",\n1662:                             \"boolean\",\n1663:                             \"null\"\n1664:                           ]\n1665:                         },\n1666:                         {\n1667:                           \"type\": \"array\",\n1668:                           \"items\": {\n1669:                             \"type\": [\n1670:                               \"string\",\n1671:                               \"integer\",\n1672:                               \"boolean\",\n1673:                               \"null\"\n1674:                             ]\n1675:                           }\n1676:                         }\n1677:                       ]\n1678:                     }\n1679:                   }\n1680:                 }\n1681:               }\n1682:             }\n1683:           }\n1684:         },\n1685:         \"rationale\": {\n1686:           \"type\": \"string\",\n1687:           \"minLength\": 1,\n1688:           \"pattern\": \"\\\\S\"\n1689:         }\n1690:       }\n1691:     }\n1692:   },\n1693:   \"$defs\": {\n1694:     \"money\": {\n1695:       \"type\": \"string\",\n1696:       \"maxLength\": 82,\n1697:       \"pattern\": \"^(?!-0(?:\\\\.0+)?$)-?(?:0|[1-9][0-9]*)(?:\\\\.[0-9]{1,40})?$\",\n1698:       \"x-exact-decimal\": true,\n1699:       \"x-dimension\": \"money\"\n1700:     },\n1701:     \"scalar\": {\n1702:       \"type\": \"string\",\n1703:       \"maxLength\": 82,\n1704:       \"pattern\": \"^(?!-0(?:\\\\.0+)?$)-?(?:0|[1-9][0-9]*)(?:\\\\.[0-9]{1,40})?$\",\n1705:       \"x-exact-decimal\": true,\n1706:       \"x-dimension\": \"scalar\"\n1707:     },\n1708:     \"citation\": {\n1709:       \"type\": \"object\",\n1710:       \"additionalProperties\": false,\n1711:       \"required\": [\n1712:         \"exhibit_id\",\n1713:         \"locator\",\n1714:         \"claim\"\n1715:       ],\n1716:       \"properties\": {\n1717:         \"exhibit_id\": {\n1718:           \"type\": \"string\",\n1719:           \"minLength\": 1,\n1720:           \"maxLength\": 4096\n1721:         },\n1722:         \"locator\": {\n1723:           \"type\": \"string\",\n1724:           \"minLength\": 1,\n1725:           \"maxLength\": 4096\n1726:         },\n1727:         \"claim\": {\n1728:           \"enum\": [\n1729:             \"DAILY_FUNDING\",\n1730:             \"DAILY_CREDIT\",\n1731:             \"DAILY_CAPITAL\",\n1732:             \"DAILY_PROTECTION\",\n1733:             \"DAILY_ALLOCATION\",\n1734:             \"DAILY_LIQUIDITY\",\n1735:             \"DAILY_RECOGNITION\",\n1736:             \"DAILY_ATTRIBUTION\"\n1737:           ]\n1738:         }\n1739:       }\n1740:     },\n1741:     \"protection_contract\": {\n1742:       \"type\": \"object\",\n1743:       \"additionalProperties\": false,\n1744:       \"required\": [\n1745:         \"notional\",\n1746:         \"protected_exposure\",\n1747:         \"hedge_provider_EAD\",\n1748:         \"hedge_provider_collateral\",\n1749:         \"hedge_mark\",\n1750:         \"premium_accrued\",\n1751:         \"premium_paid\",\n1752:         \"remaining_years\",\n1753:         \"maturity_factor\",\n1754:         \"CCR_eligible\",\n1755:         \"designated\",\n1756:         \"expiry\"\n1757:       ],\n1758:       \"properties\": {\n1759:         \"notional\": {\n1760:           \"$ref\": \"#/$defs/money\"\n1761:         },\n1762:         \"protected_exposure\": {\n1763:           \"$ref\": \"#/$defs/money\"\n1764:         },\n1765:         \"hedge_provider_EAD\": {\n1766:           \"$ref\": \"#/$defs/money\"\n1767:         },\n1768:         \"hedge_provider_collateral\": {\n1769:           \"$ref\": \"#/$defs/money\"\n1770:         },\n1771:         \"hedge_mark\": {\n1772:           \"$ref\": \"#/$defs/money\"\n1773:         },\n1774:         \"premium_accrued\": {\n1775:           \"$ref\": \"#/$defs/money\"\n1776:         },\n1777:         \"premium_paid\": {\n1778:           \"$ref\": \"#/$defs/money\"\n1779:         },\n1780:         \"remaining_years\": {\n1781:           \"$ref\": \"#/$defs/scalar\"\n1782:         },\n1783:         \"maturity_factor\": {\n1784:           \"$ref\": \"#/$defs/scalar\"\n1785:         },\n1786:         \"CCR_eligible\": {\n1787:           \"type\": \"boolean\"\n1788:         },\n1789:         \"designated\": {\n1790:           \"type\": \"boolean\"\n1791:         },\n1792:         \"expiry\": {\n1793:           \"type\": \"string\",\n1794:           \"minLength\": 1,\n1795:           \"maxLength\": 4096\n1796:         }\n1797:       }\n1798:     },\n1799:     \"netting_set\": {\n1800:       \"type\": \"object\",\n1801:       \"additionalProperties\": false,\n1802:       \"required\": [\n1803:         \"RC\",\n1804:         \"PFE\",\n1805:         \"EAD\",\n1806:         \"add_on\",\n1807:         \"unmargined_cap\",\n1808:         \"V\",\n1809:         \"collateral\",\n1810:         \"SCVA\",\n1811:         \"MF\",\n1812:         \"SD\",\n1813:         \"multiplier\",\n1814:         \"remaining\",\n1815:         \"margined\",\n1816:         \"contracts\"\n1817:       ],\n1818:       \"properties\": {\n1819:         \"RC\": {\n1820:           \"$ref\": \"#/$defs/money\"\n1821:         },\n1822:         \"PFE\": {\n1823:           \"$ref\": \"#/$defs/money\"\n1824:         },\n1825:         \"EAD\": {\n1826:           \"$ref\": \"#/$defs/money\"\n1827:         },\n1828:         \"add_on\": {\n1829:           \"$ref\": \"#/$defs/money\"\n1830:         },\n1831:         \"unmargined_cap\": {\n1832:           \"$ref\": \"#/$defs/money\"\n1833:         },\n1834:         \"V\": {\n1835:           \"$ref\": \"#/$defs/money\"\n1836:         },\n1837:         \"collateral\": {\n1838:           \"$ref\": \"#/$defs/money\"\n1839:         },\n1840:         \"SCVA\": {\n1841:           \"$ref\": \"#/$defs/money\"\n1842:         },\n1843:         \"MF\": {\n1844:           \"$ref\": \"#/$defs/scalar\"\n1845:         },\n1846:         \"SD\": {\n1847:           \"$ref\": \"#/$defs/scalar\"\n1848:         },\n1849:         \"multiplier\": {\n1850:           \"$ref\": \"#/$defs/scalar\"\n1851:         },\n1852:         \"remaining\": {\n1853:           \"$ref\": \"#/$defs/scalar\"\n1854:         },\n1855:         \"margined\": {\n1856:           \"type\": \"boolean\"\n1857:         },\n1858:         \"contracts\": {\n1859:           \"type\": \"array\",\n1860:           \"maxItems\": 4096,\n1861:           \"items\": {\n1862:             \"type\": \"string\",\n1863:             \"minLength\": 1,\n1864:             \"maxLength\": 4096\n1865:           }\n1866:         }\n1867:       }\n1868:     },\n1869:     \"inventory_lot\": {\n1870:       \"type\": \"object\",\n1871:       \"additionalProperties\": false,\n1872:       \"required\": [\n1873:         \"instrument_id\",\n1874:         \"class\",\n1875:         \"quantity\",\n1876:         \"owner\",\n1877:         \"location\",\n1878:         \"issued\",\n1879:         \"encumbrance\",\n1880:         \"return_obligation\",\n1881:         \"reuse_permitted\",\n1882:         \"enforceability\",\n1883:         \"unit_price\",\n1884:         \"market_value\",\n1885:         \"realizable_now\"\n1886:       ],\n1887:       \"properties\": {\n1888:         \"instrument_id\": {\n1889:           \"type\": \"string\",\n1890:           \"minLength\": 1,\n1891:           \"maxLength\": 4096\n1892:         },\n1893:         \"class\": {\n1894:           \"enum\": [\n1895:             \"funding_reference\",\n1896:             \"deployment_collateral\",\n1897:             \"allocation_inventory\",\n1898:             \"replacement\",\n1899:             \"equivalent\",\n1900:             \"payment_rights\"\n1901:           ]\n1902:         },\n1903:         \"quantity\": {\n1904:           \"$ref\": \"#/$defs/scalar\"\n1905:         },\n1906:         \"owner\": {\n1907:           \"type\": \"string\",\n1908:           \"minLength\": 1,\n1909:           \"maxLength\": 4096\n1910:         },\n1911:         \"location\": {\n1912:           \"type\": \"string\",\n1913:           \"minLength\": 1,\n1914:           \"maxLength\": 4096\n1915:         },\n1916:         \"issued\": {\n1917:           \"type\": \"boolean\"\n1918:         },\n1919:         \"encumbrance\": {\n1920:           \"type\": [\n1921:             \"string\",\n1922:             \"null\"\n1923:           ],\n1924:           \"minLength\": 1,\n1925:           \"maxLength\": 256\n1926:         },\n1927:         \"return_obligation\": {\n1928:           \"type\": [\n1929:             \"string\",\n1930:             \"null\"\n1931:           ],\n1932:           \"minLength\": 1,\n1933:           \"maxLength\": 4096\n1934:         },\n1935:         \"reuse_permitted\": {\n1936:           \"type\": \"boolean\"\n1937:         },\n1938:         \"enforceability\": {\n1939:           \"enum\": [\n1940:             \"effective\",\n1941:             \"conditional\",\n1942:             \"denied\"\n1943:           ]\n1944:         },\n1945:         \"unit_price\": {\n1946:           \"anyOf\": [\n1947:             {\n1948:               \"$ref\": \"#/$defs/scalar\"\n1949:             },\n1950:             {\n1951:               \"type\": \"null\"\n1952:             }\n1953:           ]\n1954:         },\n1955:         \"market_value\": {\n1956:           \"anyOf\": [\n1957:             {\n1958:               \"$ref\": \"#/$defs/money\"\n1959:             },\n1960:             {\n1961:               \"type\": \"null\"\n1962:             }\n1963:           ]\n1964:         },\n1965:         \"realizable_now\": {\n1966:           \"type\": \"boolean\"\n1967:         }\n1968:       }\n1969:     },\n1970:     \"repo_lot\": {\n1971:       \"type\": \"object\",\n1972:       \"additionalProperties\": false,\n1973:       \"required\": [\n1974:         \"lender_id\",\n1975:         \"principal\",\n1976:         \"market_value\",\n1977:         \"counterparty_exposure\",\n1978:         \"RWA\",\n1979:         \"noncash_haircut_funding_cost\",\n1980:         \"noncash_capital_cost\",\n1981:         \"market_haircut\",\n1982:         \"supervisory_haircut\"\n1983:       ],\n1984:       \"properties\": {\n1985:         \"lender_id\": {\n1986:           \"type\": \"string\",\n1987:           \"minLength\": 1,\n1988:           \"maxLength\": 4096\n1989:         },\n1990:         \"principal\": {\n1991:           \"$ref\": \"#/$defs/money\"\n1992:         },\n1993:         \"market_value\": {\n1994:           \"$ref\": \"#/$defs/money\"\n1995:         },\n1996:         \"counterparty_exposure\": {\n1997:           \"$ref\": \"#/$defs/money\"\n1998:         },\n1999:         \"RWA\": {\n2000:           \"$ref\": \"#/$defs/money\"\n2001:         },\n2002:         \"noncash_haircut_funding_cost\": {\n2003:           \"$ref\": \"#/$defs/money\"\n2004:         },\n2005:         \"noncash_capital_cost\": {\n2006:           \"$ref\": \"#/$defs/money\"\n2007:         },\n2008:         \"market_haircut\": {\n2009:           \"$ref\": \"#/$defs/scalar\"\n2010:         },\n2011:         \"supervisory_haircut\": {\n2012:           \"$ref\": \"#/$defs/scalar\"\n2013:         }\n2014:       }\n2015:     },\n2016:     \"repo_contract\": {\n2017:       \"type\": \"object\",\n2018:       \"additionalProperties\": false,\n2019:       \"required\": [\n2020:         \"principal\",\n2021:         \"RWA\",\n2022:         \"interest_accrued\",\n2023:         \"maturity_date\",\n2024:         \"lots\"\n2025:       ],\n2026:       \"properties\": {\n2027:         \"principal\": {\n2028:           \"$ref\": \"#/$defs/money\"\n2029:         },\n2030:         \"RWA\": {\n2031:           \"$ref\": \"#/$defs/money\"\n2032:         },\n2033:         \"interest_accrued\": {\n2034:           \"$ref\": \"#/$defs/money\"\n2035:         },\n2036:         \"maturity_date\": {\n2037:           \"type\": \"string\",\n2038:           \"minLength\": 1,\n2039:           \"maxLength\": 4096\n2040:         },\n2041:         \"lots\": {\n2042:           \"type\": \"object\",\n2043:           \"maxProperties\": 4096,\n2044:           \"propertyNames\": {\n2045:             \"type\": \"string\",\n2046:             \"minLength\": 1,\n2047:             \"maxLength\": 256\n2048:           },\n2049:           \"additionalProperties\": {\n2050:             \"$ref\": \"#/$defs/repo_lot\"\n2051:           }\n2052:         }\n2053:       }\n2054:     },\n2055:     \"asset_detail\": {\n2056:       \"oneOf\": [\n2057:         {\n2058:           \"type\": \"object\",\n2059:           \"additionalProperties\": false,\n2060:           \"required\": [\n2061:             \"value\",\n2062:             \"RWA\",\n2063:             \"risk_weight\"\n2064:           ],\n2065:           \"properties\": {\n2066:             \"value\": {\n2067:               \"$ref\": \"#/$defs/money\"\n2068:             },\n2069:             \"RWA\": {\n2070:               \"$ref\": \"#/$defs/money\"\n2071:             },\n2072:             \"risk_weight\": {\n2073:               \"$ref\": \"#/$defs/scalar\"\n2074:             }\n2075:           }\n2076:         },\n2077:         {\n2078:           \"type\": \"object\",\n2079:           \"additionalProperties\": false,\n2080:           \"required\": [\n2081:             \"gross\",\n2082:             \"allowance\",\n2083:             \"RWA\",\n2084:             \"risk_weight\",\n2085:             \"included_in_derivative\"\n2086:           ],\n2087:           \"properties\": {\n2088:             \"gross\": {\n2089:               \"$ref\": \"#/$defs/money\"\n2090:             },\n2091:             \"allowance\": {\n2092:               \"$ref\": \"#/$defs/money\"\n2093:             },\n2094:             \"RWA\": {\n2095:               \"$ref\": \"#/$defs/money\"\n2096:             },\n2097:             \"risk_weight\": {\n2098:               \"$ref\": \"#/$defs/scalar\"\n2099:             },\n2100:             \"included_in_derivative\": {\n2101:               \"type\": \"boolean\"\n2102:             }\n2103:           }\n2104:         }\n2105:       ]\n2106:     },\n2107:     \"capital_asset\": {\n2108:       \"type\": \"object\",\n2109:       \"additionalProperties\": false,\n2110:       \"required\": [\n2111:         \"balance\",\n2112:         \"exposure\",\n2113:         \"RWA\",\n2114:         \"leverage_exposure\",\n2115:         \"basis\",\n2116:         \"details\"\n2117:       ],\n2118:       \"properties\": {\n2119:         \"balance\": {\n2120:           \"$ref\": \"#/$defs/money\"\n2121:         },\n2122:         \"exposure\": {\n2123:           \"$ref\": \"#/$defs/money\"\n2124:         },\n2125:         \"RWA\": {\n2126:           \"$ref\": \"#/$defs/money\"\n2127:         },\n2128:         \"leverage_exposure\": {\n2129:           \"$ref\": \"#/$defs/money\"\n2130:         },\n2131:         \"basis\": {\n2132:           \"type\": \"string\",\n2133:           \"minLength\": 1,\n2134:           \"maxLength\": 4096\n2135:         },\n2136:         \"details\": {\n2137:           \"type\": \"object\",\n2138:           \"maxProperties\": 4096,\n2139:           \"propertyNames\": {\n2140:             \"type\": \"string\",\n2141:             \"minLength\": 1,\n2142:             \"maxLength\": 256\n2143:           },\n2144:           \"additionalProperties\": {\n2145:             \"$ref\": \"#/$defs/asset_detail\"\n2146:           }\n2147:         }\n2148:       }\n2149:     },\n2150:     \"obligation\": {\n2151:       \"type\": \"object\",\n2152:       \"additionalProperties\": false,\n2153:       \"required\": [\n2154:         \"kind\",\n2155:         \"contract_id\",\n2156:         \"side\",\n2157:         \"remaining\",\n2158:         \"due_day\",\n2159:         \"status\"\n2160:       ],\n2161:       \"properties\": {\n2162:         \"kind\": {\n2163:           \"type\": \"string\",\n2164:           \"minLength\": 1,\n2165:           \"maxLength\": 4096\n2166:         },\n2167:         \"contract_id\": {\n2168:           \"type\": \"string\",\n2169:           \"minLength\": 1,\n2170:           \"maxLength\": 4096\n2171:         },\n2172:         \"side\": {\n2173:           \"enum\": [\n2174:             \"payable\",\n2175:             \"receivable\"\n2176:           ]\n2177:         },\n2178:         \"remaining\": {\n2179:           \"$ref\": \"#/$defs/money\"\n2180:         },\n2181:         \"due_day\": {\n2182:           \"type\": \"integer\",\n2183:           \"minimum\": -366000\n2184:         },\n2185:         \"status\": {\n2186:           \"enum\": [\n2187:             \"open\",\n2188:             \"paid\",\n2189:             \"written_off\",\n2190:             \"disputed\"\n2191:           ]\n2192:         }\n2193:       }\n2194:     },\n2195:     \"terminal_obligation\": {\n2196:       \"type\": \"object\",\n2197:       \"additionalProperties\": false,\n2198:       \"required\": [\n2199:         \"kind\",\n2200:         \"side\",\n2201:         \"remaining\",\n2202:         \"status\"\n2203:       ],\n2204:       \"properties\": {\n2205:         \"kind\": {\n2206:           \"type\": \"string\",\n2207:           \"minLength\": 1,\n2208:           \"maxLength\": 4096\n2209:         },\n2210:         \"side\": {\n2211:           \"enum\": [\n2212:             \"payable\",\n2213:             \"receivable\"\n2214:           ]\n2215:         },\n2216:         \"remaining\": {\n2217:           \"$ref\": \"#/$defs/money\"\n2218:         },\n2219:         \"status\": {\n2220:           \"enum\": [\n2221:             \"open\",\n2222:             \"paid\",\n2223:             \"written_off\",\n2224:             \"disputed\"\n2225:           ]\n2226:         }\n2227:       }\n2228:     },\n2229:     \"ava_exposure\": {\n2230:       \"type\": \"object\",\n2231:       \"additionalProperties\": false,\n2232:       \"required\": [\n2233:         \"id\",\n2234:         \"exposure_id\",\n2235:         \"account\",\n2236:         \"recognised_fair_value\",\n2237:         \"low_exit_cost\",\n2238:         \"high_exit_cost\",\n2239:         \"expected_exit_cost_benchmark\",\n2240:         \"q90_exit_cost\",\n2241:         \"same_source_accounting_prudence\",\n2242:         \"residual_uncertainty\",\n2243:         \"AVA\",\n2244:         \"cet1_sensitivity\"\n2245:       ],\n2246:       \"properties\": {\n2247:         \"id\": {\n2248:           \"type\": \"string\",\n2249:           \"minLength\": 1,\n2250:           \"maxLength\": 4096\n2251:         },\n2252:         \"exposure_id\": {\n2253:           \"type\": \"string\",\n2254:           \"minLength\": 1,\n2255:           \"maxLength\": 4096\n2256:         },\n2257:         \"account\": {\n2258:           \"type\": \"string\",\n2259:           \"minLength\": 1,\n2260:           \"maxLength\": 4096\n2261:         },\n2262:         \"recognised_fair_value\": {\n2263:           \"$ref\": \"#/$defs/money\"\n2264:         },\n2265:         \"low_exit_cost\": {\n2266:           \"$ref\": \"#/$defs/money\"\n2267:         },\n2268:         \"high_exit_cost\": {\n2269:           \"$ref\": \"#/$defs/money\"\n2270:         },\n2271:         \"expected_exit_cost_benchmark\": {\n2272:           \"$ref\": \"#/$defs/money\"\n2273:         },\n2274:         \"q90_exit_cost\": {\n2275:           \"$ref\": \"#/$defs/money\"\n2276:         },\n2277:         \"same_source_accounting_prudence\": {\n2278:           \"$ref\": \"#/$defs/money\"\n2279:         },\n2280:         \"residual_uncertainty\": {\n2281:           \"$ref\": \"#/$defs/money\"\n2282:         },\n2283:         \"AVA\": {\n2284:           \"$ref\": \"#/$defs/money\"\n2285:         },\n2286:         \"cet1_sensitivity\": {\n2287:           \"$ref\": \"#/$defs/scalar\"\n2288:         }\n2289:       }\n2290:     }\n2291:   },\n2292:   \"x-daily-owners\": {\n2293:     \"O1\": {\n2294:       \"weight\": 7,\n2295:       \"panel\": \"DAILY_FUNDING\",\n2296:       \"evidence_array\": \"/rates/evidence\",\n2297:       \"fields\": [\n2298:         \"/rates/funding_notional\",\n2299:         \"/rates/unsettled_stub\",\n2300:         \"/rates/legal_funding_mark\",\n2301:         \"/rates/quoted_funding_component\",\n2302:         \"/rates/management_funding_gain\",\n2303:         \"/rates/reference_return_adjustment\",\n2304:         \"/rates/funding_remaining_years\",\n2305:         \"/rates/deployment_remaining_years\",\n2306:         \"/rates/last_reset_price\",\n2307:         \"/rates/next_payment_delay\",\n2308:         \"/rates/reference_price\",\n2309:         \"/rates/replacement_spread\",\n2310:         \"/rates/quote_annuity\",\n2311:         \"/rates/quote_id\",\n2312:         \"/rates/principal_source\",\n2313:         \"/rates/trs_principal_received\",\n2314:         \"/rates/deployment_coupon_spread\",\n2315:         \"/rates/roles\"\n2316:       ]\n2317:     },\n2318:     \"O2\": {\n2319:       \"weight\": 7,\n2320:       \"panel\": \"DAILY_CREDIT\",\n2321:       \"evidence_array\": \"/credit_xva/evidence\",\n2322:       \"fields\": [\n2323:         \"/credit_xva/provider_cds\",\n2324:         \"/credit_xva/own_bond_spread\",\n2325:         \"/credit_xva/own_cds_spread\",\n2326:         \"/credit_xva/bond_cds_basis\",\n2327:         \"/credit_xva/CVA\",\n2328:         \"/credit_xva/KVA_component\",\n2329:         \"/credit_xva/UFVA\",\n2330:         \"/credit_xva/actual_unsecured_debt\",\n2331:         \"/credit_xva/annual_debt_funding_cost\",\n2332:         \"/credit_xva/reserve_borrowing\",\n2333:         \"/credit_xva/projection\"\n2334:       ]\n2335:     },\n2336:     \"O3\": {\n2337:       \"weight\": 10,\n2338:       \"panel\": \"DAILY_CAPITAL\",\n2339:       \"evidence_array\": \"/capital/evidence\",\n2340:       \"fields\": [\n2341:         \"/capital/SA_CCR\",\n2342:         \"/capital/CCR_RWA\",\n2343:         \"/capital/CCR_K\",\n2344:         \"/capital/CVA_K\",\n2345:         \"/capital/market_risk_K\",\n2346:         \"/capital/RWA\",\n2347:         \"/capital/leverage_exposure\",\n2348:         \"/capital/risk_requirement\",\n2349:         \"/capital/leverage_requirement\",\n2350:         \"/capital/required_capital\",\n2351:         \"/capital/Tier1_before_AVA\",\n2352:         \"/capital/AVA\",\n2353:         \"/capital/Tier1_after_AVA\",\n2354:         \"/capital/capital_shortfall\",\n2355:         \"/capital/capital_release_cash\",\n2356:         \"/capital/executable_under_stated_capital\",\n2357:         \"/capital/binding_constraint\",\n2358:         \"/capital/deployment\",\n2359:         \"/capital/asset_map\"\n2360:       ]\n2361:     },\n2362:     \"O4\": {\n2363:       \"weight\": 7,\n2364:       \"panel\": \"DAILY_PROTECTION\",\n2365:       \"evidence_array\": \"/credit_xva/evidence\",\n2366:       \"fields\": [\n2367:         \"/credit_xva/protection\"\n2368:       ]\n2369:     },\n2370:     \"O5\": {\n2371:       \"weight\": 8,\n2372:       \"panel\": \"DAILY_ALLOCATION\",\n2373:       \"evidence_array\": \"/liquidity/evidence\",\n2374:       \"fields\": [\n2375:         \"/capital/repo\",\n2376:         \"/liquidity/allocation\",\n2377:         \"/liquidity/facility_limit\",\n2378:         \"/liquidity/facility_available\"\n2379:       ]\n2380:     },\n2381:     \"O6\": {\n2382:       \"weight\": 7,\n2383:       \"panel\": \"DAILY_LIQUIDITY\",\n2384:       \"evidence_array\": \"/liquidity/evidence\",\n2385:       \"fields\": [\n2386:         \"/liquidity/cash\",\n2387:         \"/liquidity/restricted_cash\",\n2388:         \"/liquidity/restricted_collections\",\n2389:         \"/liquidity/posted_vm\",\n2390:         \"/liquidity/received_vm\",\n2391:         \"/liquidity/facility_debt\",\n2392:         \"/liquidity/repo_debt\",\n2393:         \"/liquidity/unpaid_receivable\",\n2394:         \"/liquidity/unpaid_payable\",\n2395:         \"/liquidity/due_payables\",\n2396:         \"/liquidity/deadline_shortfall\",\n2397:         \"/liquidity/market_open\",\n2398:         \"/liquidity/transfer_blocks\",\n2399:         \"/liquidity/inventory\",\n2400:         \"/liquidity/obligations\",\n2401:         \"/liquidity/accepted_action_count\"\n2402:       ]\n2403:     },\n2404:     \"O7\": {\n2405:       \"weight\": 6,\n2406:       \"panel\": \"DAILY_RECOGNITION\",\n2407:       \"evidence_array\": \"/accounting/evidence\",\n2408:       \"fields\": [\n2409:         \"/accounting/statutory/accounting_unit\",\n2410:         \"/accounting/statutory/funding_derivative_asset\",\n2411:         \"/accounting/statutory/owner_contribution_pnl\",\n2412:         \"/accounting/management/gross_inception_gain\",\n2413:         \"/accounting/management/deferred_gain\",\n2414:         \"/accounting/management/observable_at_inception\",\n2415:         \"/accounting/management/currently_observable\",\n2416:         \"/accounting/management/deferral_released_by_evidence\"\n2417:       ]\n2418:     },\n2419:     \"O8\": {\n2420:       \"weight\": 8,\n2421:       \"panel\": \"DAILY_ATTRIBUTION\",\n2422:       \"evidence_array\": \"/accounting/evidence\",\n2423:       \"fields\": [\n2424:         \"/accounting/statutory/assets\",\n2425:         \"/accounting/statutory/liabilities\",\n2426:         \"/accounting/statutory/allowances\",\n2427:         \"/accounting/statutory/contributed_equity\",\n2428:         \"/accounting/statutory/equity\",\n2429:         \"/accounting/statutory/cumulative_pnl\",\n2430:         \"/accounting/statutory/trial_balance\",\n2431:         \"/accounting/statutory/balances\",\n2432:         \"/accounting/statutory/booked_balances\",\n2433:         \"/accounting/statutory/valuation_postings\",\n2434:         \"/accounting/management/funding_mark\",\n2435:         \"/accounting/management/hedge_asset\",\n2436:         \"/accounting/management/CVA_reserve\",\n2437:         \"/accounting/management/KVA_reserve\",\n2438:         \"/accounting/management/overlay_equity\",\n2439:         \"/accounting/management/equity\",\n2440:         \"/accounting/management/cumulative_pnl\",\n2441:         \"/accounting/management/trial_balance\",\n2442:         \"/accounting/management/balances\",\n2443:         \"/accounting/management/valuation_postings\",\n2444:         \"/accounting/bridge\",\n2445:         \"/accounting/attribution\",\n2446:         \"/accounting/terminal\"\n2447:       ]\n2448:     },\n2449:     \"O9\": {\n2450:       \"weight\": 10,\n2451:       \"section\": \"legal\",\n2452:       \"fields\": [\n2453:         \"/legal\"\n2454:       ]\n2455:     },\n2456:     \"O10\": {\n2457:       \"weight\": 10,\n2458:       \"section\": \"compliance\",\n2459:       \"fields\": [\n2460:         \"/compliance\"\n2461:       ]\n2462:     },\n2463:     \"O11\": {\n2464:       \"weight\": 10,\n2465:       \"section\": \"structure\",\n2466:       \"fields\": [\n2467:         \"/structure\"\n2468:       ]\n2469:     },\n2470:     \"O12\": {\n2471:       \"weight\": 10,\n2472:       \"section\": \"recommendation\",\n2473:       \"fields\": [\n2474:         \"/recommendation\"\n2475:       ]\n2476:     }\n2477:   },\n2478:   \"x-resource-policy\": \"fixtures/desk-policy.json#/daily_report\",\n2479:   \"x-evidence-contract\": \"Financial owners require exact current exhibit_id, locator and DAILY_* claim bindings. Institutional owners require source-entailing conclusion-specific premises and accept supported alternative positions. Reference defects are UNSCORABLE; wording is not graded. Client outcome credit requires an actually workable result, not merely an accurate report.\",\n2480:   \"x-fatal-scope\": \"Legal roles/title, phantom cash, ineligible mitigation, fabricated facility capacity, duplicate funding statutory asset, omitted surviving claims and actual overdue obligations are independent qualification predicates, never arithmetic score multipliers.\"\n2481: }\n","tool_call_id":"call_c368c7f7ed205f1fa8df6c1520a98fb7","type":"tool_result"}},{"step":2,"generation":0,"created_at":"2026-09-20T09:47:42.055Z","event":{"content":"File: /work/data/artifacts/qyaws7fs/documents/docs/economic-specification.md\n   1: # Economic specification of the funding book\n   2: \n   3: As of 19 September 2026. This is a fictional USD book and a public contract for its standalone numerical verifier. It is not a production installation, an observed transaction, or a national regulatory opinion. The exact source requests are preserved in [user-request.xml](../sources/user-request.xml) and [source-structures.xml](../sources/source-structures.xml). The transaction and event evidence is in [exhibit-fields.md](exhibit-fields.md); the connected episodes and their boundaries are in [world-topology.md](world-topology.md). The accepted economic corrections are specified below, with the detailed capital and accounting conventions in [capital-rulebook.md](capital-rulebook.md), [capital-actions.md](capital-actions.md) and [reserve-module.md](reserve-module.md).\n   4: \n   5: The book retains the requested USD1bn, twenty-year funding against five-year EM deployment. It does not turn that mismatch into a fully hedged trade. The corrections below distinguish a funding opportunity from an enforceable claim, an accounting charge from cash expenditure, and capital capacity from money available to settle a payment.\n   6: \n   7: ## 1. Evidence, units and numerical ownership\n   8: \n   9: The transaction documents, quote sheets, curve observations, legal opinions, event notices and ledger openings in [case-exhibits.json](../fixtures/case-exhibits.json) are fictional public exhibits. [numerical-inputs.json](../fixtures/numerical-inputs.json) is the canonical numerical input. Amounts there are USD, rates are decimal fractions, and times are years unless a field explicitly specifies business days. Tables below use USD millions where stated.\n  10: \n  11: Official rules are identified by paragraph and dated source in [capital-rulebook.md](capital-rulebook.md) and [valuation-capital-annex.md](valuation-capital-annex.md). Pricing curves, the quarter grid, quote conversion, recoveries, joint stresses, funding facilities and the 10% capital price are synthetic assumptions. Arithmetic implied by those assumptions is a calculated illustration, not evidence of observed market calibration. A legal or accounting conclusion requires the supplied opinion and its covered facts. An unresolved condition remains unresolved rather than receiving a numerical default.\n  12: \n  13: The implementation boundary is explicit:\n  14: \n  15: - `numerical_fixture.compute_core(parameters)` produces marks, sensitivities, CVA, capital profiles, KVA, priced actions and the allocation solution.\n  16: - `reserve_ledger.simulate_cash(parameters, reference_credit_move, funding_move, own_spread)` produces actual quarterly cash, title and financing consequences.\n  17: - `reserve_ledger.compute_reserves(parameters, core)` produces the management reserve schedules, attribution and independent accounting bridge.\n  18: - `validate_exhibits.validate_bundle(root)` checks the public case envelope and references before any report is graded. Missing required facts raise `ReferenceError`; they are not a candidate's scored economic mistake.\n  19: \n  20: Displayed numerical results come from the original flat-bundle execution snapshots [core-results.json](../evidence/baseline/core-results.json) and [reserves-results.json](../evidence/baseline/reserves-results.json). [numerical-anchors.json](../evidence/baseline/numerical-anchors.json) and [action-anchors.json](../evidence/baseline/action-anchors.json) collect the relevant baseline outputs. Formulas below define the calculations; the output files retain their precision. Recognised incurred CVA is explicitly zero in the base capital calculation. None of these computed outputs is an input exposure path or evidence of real-world calibration. Historical output hashes do not attest the organized files' changed paths.\n  21: \n  22: ## 2. Both legs, including the source of principal\n  23: \n  24: ### 2.1 Contract terms\n  25: \n  26: | Quantity | Public assumption |\n  27: |---|---|\n  28: | Funding notional and opening reference value, N | USD1,000,000,000 |\n  29: | Funding maturity | 20 years, 80 quarterly settlement periods |\n  30: | Deployment maturity | 5 years, 20 quarterly interest periods and bullet repayment |\n  31: | Numerical period, delta | 0.25 year |\n  32: | OIS, r | 4% nominal annual, compounded quarterly for this calculation |\n  33: | Initial internal AAA composite spread, b0 | 20bp, including its disclosed desk add-on |\n  34: | Executed financing margin over b0 | 50bp |\n  35: | Locked financing spread over OIS, k | b0 + 50bp = 70bp; subsequent b moves do not reset k |\n  36: | Matching replacement quote margin over b | 80bp in the synthetic joint quote process |\n  37: | Initial matching replacement spread, m0 | b0 + 80bp = 100bp over OIS |\n  38: | U reference coupon | OIS + 100bp, initially 5% annually |\n  39: | EM deployment coupon | OIS + 400bp, initially 8% annually |\n  40: | Funding provider CDS and recovery | 80bp; 40% recovery in the disclosed flat-hazard illustration |\n  41: | Own unsecured bond spread | 50bp initially; 150bp in the selected funding stress |\n  42: | Own CDS spread | 30bp initially, independently specified |\n  43: | Opening legacy borrowing | USD1bn, at OIS, still outstanding after the new funding transaction |\n  44: | Opening freely usable cash | USD100m before the separately identified day-one fee |\n  45: \n  46: U is an already-issued, ordinary AAA financial floating-rate note. Meridian initially owns it. Meridian sells legal title to U to the funding provider P and receives its total return back under the twenty-year TRS. Meridian is total-return receiver and financing payer. The sale supplies USD1bn; the unfunded derivative supplies no second principal.\n  47: \n  48: The EM borrower receives the USD1bn sale proceeds. Its loan is separate from the TRS and from P. Deployment collateral, U, and CSA collateral held against P are three different legal objects. U held by P is not collateral received by Meridian against P's default.\n  49: \n  50: The calendar-based confirmations use their stated day counts, resets and settlement dates. The numerical proof uses the disclosed exact quarter grid. It does not silently claim that every dated quarter is 0.25 under ACT/365F.\n  51: \n  52: ### 2.2 Opening cash and statutory balance sheet\n  53: \n  54: The table is before fees, reserves and subsequent market movements. Amounts are USD millions.\n  55: \n  56: | Stage | Cash | Statutory assets other than cash | Statutory liabilities | Equity | Legal effect |\n  57: |---|---:|---|---|---:|---|\n  58: | Opening | 100 | U 1,000 | Legacy borrowing 1,000 | 100 | Meridian owns U |\n  59: | Sale of U to P settles | 1,100 | U 1,000 retained for accounting | Legacy borrowing 1,000; new financing liability 1,000 | 100 | Title to U passes to P; sale proceeds arrive |\n  60: | TRS execution | 1,100 | No duplicate statutory derivative for the retained rights | Existing financing remains | 100 | Meridian receives U's return and pays financing; no new principal |\n  61: | EM advance settles | 100 | U 1,000; EM advance 1,000 | Legacy 1,000; financing 1,000 | 100 | EM borrower receives 1,000; security rights arise only as documented |\n  62: \n  63: The same-transferee sale plus full return retention fails derecognition in this case. [IFRS 9, 2026 issued edition][IFRS9], paragraphs 3.2.15, B3.2.14 and B3.2.16(o), supports retention of U and recognition of the financing liability without recognising the same rights again as a derivative. Legal ownership and accounting recognition therefore differ. Paragraph 3.2.22 also prevents treating the accounting asset and associated liability as an automatically net presentation.\n  64: \n  65: The USD1m day-one fee is an actual setup-service fee, expensed and paid after the sale and deployment settle. It reduces unrestricted cash to USD99m and statutory equity to USD99m before management X. It is not assumed to be a lifetime financing fee eligible for capitalisation. The payment has its own source entry; it cannot be hidden in a noncash reserve or represented as a second funding advance.\n  66: \n  67: The explicit fictional regulatory classification letter separately selects SA-CCR for the legal TRS and the relevant written-credit leverage treatment. That selection is not an inference from IFRS, and it does not permit a second statutory asset. Without the classification letter, derivative versus financing/SFT treatment needs adjudication before those capital formulas can be used.\n  68: \n  69: ### 2.3 Quarterly return and financing cash\n  70: \n  71: Let p_j be U's ex-distribution price per unit of face and let the opening price be 1. Equivalently, use the identified quantity Q_U and currency price P_j with Q_U P_0 = N. The formulas below use the normalised price. Let d_j be the distribution per unit of face and p_last the reference price from the last actual settled return reset.\n  72: \n  73: ```text\n  74: TRS_cash_j = N * (d_j + p_j - p_last)\n  75:              - N * delta_j * (OIS_j + k)\n  76: \n  77: For a surviving ordinary quarter:\n  78:     d_j = delta_j * (OIS_j + 0.01)\n  79: \n  80: At U's final redemption:\n  81:     p_j = 0\n  82:     d_j = delta_j * (OIS_j + 0.01) + 1\n  83: ```\n  84: \n  85: The final price is zero because the note has redeemed; its principal is already in d_j. Adding another N receipt or payment to this return formula would double count principal. A payment instruction is not an actual reset until the specified settlement has occurred. Unpaid return, accrued financing and a disputed amount remain in the close-out valuation.\n  86: \n  87: At unchanged par and OIS, quarterly TRS cash is USD0.750m and annual TRS cash is USD3m. The EM loan pays USD20m quarterly for five years, and the legacy borrowing costs USD10m quarterly. Whole-book quarterly operating cash before cash-account interest, new borrowing, fees and hedges is therefore USD10.750m during the first five years. The USD3m annual TRS amount is a funding-only panel, not the full book's annual income.\n  88: \n  89: The cash ledger books U's coupon through P's TRS remittance once. The statutory ledger can show U income and financing expense, but it cannot also add a second direct cash coupon from U's issuer to Meridian.\n  90: \n  91: Interim reference-price return settlements change cash and the retained-sale financing balance. A negative price return is a payment to P and reduces that financing balance; U is separately revalued under the identified accounting policy. The cash repayment itself is not another expense on top of U's valuation loss. A positive return reverses the direction. The financing coupon still follows its fixed notional and executed spread unless an actual amendment changes those terms.\n  92: \n  93: ### 2.4 Year five and year twenty\n  94: \n  95: At year five the performing EM borrower repays USD1bn. The base reinvestment instruction places that principal in an OIS account through the remaining fifteen years. It does not assume another EM loan at the original 400bp margin. Interest on that OIS principal offsets the OIS cost of the USD1bn legacy borrowing in the unchanged-rate base case. Funding TRS cash, provider exposure and capital continue.\n  96: \n  97: The desk can select a different reinvestment only with a new executable quote, credit decision, funding use and legal agreement. The price and availability of that future investment are the reinvestment risk. Five-year amortisation or five-year protection does not close the twenty-year funding position.\n  98: \n  99: At year twenty:\n 100: \n 101: 1. U redeems to its legal holder P. The last TRS return uses `d = coupon + 1`, `p = 0`, and the actual last reset price. The net price/redemption component is `N * (1 - p_last)`, not another unqualified N.\n 102: 2. The retained-asset and financing ledger records U's redemption and the corresponding extinction of the financing balance. In the performing par endpoint, the final price-return adjustment brings that balance to N before P's redemption extinguishes it. This is not a second cash withdrawal from Meridian.\n 103: 3. The parked EM principal becomes available to repay the separate legacy borrowing. Any real additional liquidity borrowing is repaid from available cash under its own terms.\n 104: 4. Fees, margin returns, hedges, disputes and close-out receivables settle separately. An unresolved USD0.500m provider claim and its USD0.500m reserve in the terminal exhibit survive contractual maturity. Age alone does not erase either.\n 105: \n 106: [reserve-module.md](reserve-module.md) specifies these postings and the independent closing-balance derivation. A terminal zero is valid only for obligations actually discharged.\n 107: \n 108: ## 3. E1: funding benefit, legal value and reference return\n 109: \n 110: ### 3.1 Quote-conditioned valuation\n 111: \n 112: Define the numerical discount and annuity for h remaining years on the quarter grid:\n 113: \n 114: ```text\n 115: D_r(h) = (1 + r * delta)^(-h / delta)\n 116: A_r(h) = sum_j=1..h/delta delta * D_r(j*delta)\n 117:        = (1 - D_r(h)) / r\n 118: ```\n 119: \n 120: The synthetic replacement quotation supplies a linear spread-to-price conversion with `A_quote = A_0.04(h)`. This annuity is a disclosed quote convention, not a universal law for all funding trades. Off quarter dates, `off_quarter_convention=fractional_remaining_annuity_clean_quote` explicitly extends `(1-D_r(h))/r` using the fractional power above; it is not the sum of the original contract's irregular coupon cash flows. A quote could instead supply its own PV01 or an upfront price for the old locked spread, but those alternatives require their own implemented terms.\n 121: \n 122: For a reset-to-today replacement quote with the same U, quantity, notional, maturity, cash-flow terms, legal rights, collateral basis and cost basis:\n 123: \n 124: ```text\n 125: F_quote(t) = N * [m_reset(t,h) - k] * A_quote(t,h)\n 126: \n 127: Reference_adjustment(t)\n 128:     = D(t, next_actual_settlement) * N * [p_U(t) - p_last_actual]\n 129: \n 130: V_legal(t) = F_quote(t) + Reference_adjustment(t) + unsettled_stubs(t)\n 131: ```\n 132: \n 133: The stubs include any separately stated unpaid return, accrual or contractual close-out item not already included in the quote. Base clean-reset observations explicitly set them to zero. Unknown stubs do not default to zero. Rolled calls to `funding_mark` require explicit `next_payment_delay` and `unsettled_stub`; a pending same-day price settlement uses delay zero. The inception default reads the required `funding_contract.next_price_settlement_years` rather than deriving a new quarter from remaining tenor. Scheduled-zero-tenor marks do not extinguish pending settlement claims.\n 134: \n 135: A quotation on the original reference basis already includes the old-reference adjustment. In that alternative, use its direct old-contract value or its stated conversion and do not add `p_U - p_last` again. Quote matching requires the actual remaining contract, not a generic twenty-year financing spread from another provider.\n 136: \n 137: The desk also computes a management funding opportunity from its internal composite b plus its desk margin. An internal curve change cannot create a claim on P. In this synthetic case, separately supplied replacement quotes happen to follow `m_reset = b + 80bp`. That is a joint assumed quote process. It is not an internal-b-linked termination payoff invented in the contract.\n 138: \n 139: At a matched, post-settlement reset with zero stubs and matching costs/basis, the internal funding opportunity can equal F_quote and V_legal. Outside those conditions the three are distinct. Missing or mismatched executable quotation evidence raises a reference-input error. It never licenses substituting the internal opportunity for CCR exposure or using V = 0.\n 140: \n 141: The quotation's fictional executability does not itself satisfy the IFRS day-one observable-input test. Accounting observability has separate evidence and a prior unit-of-account gate.\n 142: \n 143: ### 3.2 Reference pricing and numerical anchors\n 144: \n 145: For the public flat snapshot, U's current OIS coupon is held fixed while the credit-yield spread is shocked. With `c_U = 0.04 + 0.01 = 0.05`:\n 146: \n 147: ```text\n 148: p_U(h, x_U) = c_U * A_(c_U+x_U)(h) + D_(c_U+x_U)(h)\n 149: ```\n 150: \n 151: This is a synthetic yield-based mark of the promised reference cash flows. It is not a provider-default model. If OIS changes, coupon resets and discounting must be recomputed from the actual floating-rate terms rather than treating this snapshot formula as a fixed-rate contract forever.\n 152: \n 153: At inception, after a matched reset, `m0 - k = 30bp`. Known calculated anchors are:\n 154: \n 155: | Item | Quarterly convention | Continuous comparison, not used by the verifier |\n 156: |---|---:|---:|\n 157: | Twenty-year annuity | 13.722051526 years | 13.766775897 years |\n 158: | Funding benefit at 30bp, USDm | 41.166154579 | 41.300327691 |\n 159: | Funding spread DV01, USDm per bp | 1.372205153 | 1.376677590 |\n 160: | Increment for a 100bp funding-quote widening, USDm | 137.220515265 | 137.667758971 |\n 161: \n 162: The raw request's approximately USD41m and USD138m are sound order-of-magnitude diagnostics under their stated annuity. They are neither regulatory constants nor substitutes for full V.\n 163: \n 164: The following controlled observations keep twenty years remaining and the old actual price at 1. They use the next-quarter discount on the unsettled reference adjustment:\n 165: \n 166: | Joint observation | Funding component, USDm | Full legal value before return settlement, USDm |\n 167: |---|---:|---:|\n 168: | No curve move | 41.166155 | 41.166155 |\n 169: | Replacement quote +100bp, U credit unchanged | 178.386670 | 178.386670 |\n 170: | Replacement quote +100bp, U credit +25bp | 178.386670 | 147.850900 |\n 171: | Replacement quote +100bp, U credit +100bp | 178.386670 | 63.517057 |\n 172: \n 173: The reference-loss offset is an economic component of V, not CSA collateral and not a regulatory haircut benefit. After the reference loss settles, its old-reference adjustment disappears from V because cash has moved, while the surviving fixed financing advantage remains. A reference-price reset is not a full fair-value reset of the whole TRS.\n 174: \n 175: The funding trade is therefore an asset in the selected positive-value states, not in every state. A sufficiently adverse U move or a tightening replacement funding quote can make full V negative. A 100bp tightening with U unchanged produces a USD96.054361m payable under the same twenty-year quote conversion.\n 176: \n 177: ### 3.3 Exposures are derived, never supplied\n 178: \n 179: The current positive legal exposure is `max(V_legal, 0)` before the relevant collateral/default-recovery treatment. The SA-CCR calculation then uses the full contractual V with the applicable legal C, replacement-cost formula and add-on. A positive funding opportunity alone is not EAD.\n 180: \n 181: For CVA, the public quarter-end-after-payment convention supplies the default timing. In the flat provider illustration:\n 182: \n 183: ```text\n 184: lambda_P = provider_CDS / (1 - recovery_P)\n 185: S_P(t) = exp(-lambda_P * t)\n 186: \n 187: CVA = sum_j D_OIS(t_j) * (1 - recovery_P)\n 188:             * [S_P(t_(j-1)) - S_P(t_j)]\n 189:             * E[positive close-out exposure at t_j | P defaults there]\n 190: ```\n 191: \n 192: Each conditional close-out exposure is repriced from the same contract, reference price/reset state and applicable collateral recovery. Default observations remain the original funding quarter ends even when a capital action becomes effective between them; the exposure at a default date uses the action status then. An execution date changes capital accrual, not the default clock. A remaining tail begins with the stub to the next original funding payment. The base post-settlement illustration reduces exposure to the surviving funding component; that simplification follows from the stated event ordering and reference state. A default before settlement, a correlated U shock, a dispute or non-reusable collateral requires the corresponding full calculation. No exhibit supplies EE, EPE, an exposure vector or an answer-shaped reserve schedule.\n 193: \n 194: Provider CDS of 80bp with 40% recovery gives the illustration's hazard `0.008 / 0.6`. The provider CDS cannot be replaced by the internal AAA curve, U's rating, the desk's own CDS or an unrelated EM spread. A deterministic W stress is not by itself a calibrated joint default probability model.\n 195: \n 196: ## 4. E4 and the mismatch: distinct curves and basis risks\n 197: \n 198: | Curve or observation | What it drives | What it does not establish |\n 199: |---|---|---|\n 200: | OIS and its forecast/reset convention | Discounting, floating coupons, cash remuneration and the quoted annuity conversion | Provider credit quality or a supervisory 5% decay |\n 201: | Internal AAA financials CDS composite plus desk add-on, b | Internal replacement-funding opportunity and the disclosed funding-allocation sensitivity | An enforceable claim, a provider CDS curve, or U's issue rating |\n 202: | Independently supplied matching replacement quotes, m | Quote-supported old-contract financing value | Automatic IFRS observability or an internal-curve termination right |\n 203: | U issuer credit/yield curve | U's price, unsettled return, and reference-credit risk | Collateral C received from P or P's default probability |\n 204: | Funding provider P CDS | Provider survival/default loss in CVA | Actual own borrowing cost or U's supervisory factor |\n 205: | Own unsecured bond funding curve | The rate on actual own cash borrowing and its premium over the chosen cash benchmark | A borrowing need caused by a noncash mark |\n 206: | Own CDS | Own credit diagnostics and the bond-CDS basis | A substitute loan quote; zero cash cost when CDS is used |\n 207: | EM borrower credit/yield curve | EM valuation, credit loss and reinvestment economics | An own-funding-induced change to the borrower's contractual coupon |\n 208: | Deployment collateral issuer curve and price | Realisation value and collateral price risk | Automatic rating migration, supervisory haircut or eligibility |\n 209: | CSA remuneration and collateral/FX basis | Net economics of cash collateral, currency conversion and funding | Permission to reuse segregated collateral |\n 210: | Protection seller H CDS and hedge terms | H's default risk and the separately calculated protection economics | Netting H with P or automatic CVA hedge designation |\n 211: | Market financing haircut and spread schedules | Cash advance and lender-specific financing price | Supervisory mitigation or a spread mechanically determined by the haircut |\n 212: \n 213: Two curves may co-move in a scenario without becoming the same input. In W3, the internal quote driver, own bond spread, provider CDS and EM spread are shocked jointly, while own CDS remains separately stated. The internal-to-quoted-replacement basis, internal-to-own-bond basis, U-to-internal-AAA basis, EM-to-own-funding basis, bond-CDS basis and collateral-remuneration/FX basis must therefore remain visible.\n 214: \n 215: At inception, own bonds are OIS + 50bp and own CDS is 30bp. Their 20bp difference is the bond-CDS basis. The actual premium for borrowing at the bond curve and placing the proceeds at OIS is 50bp, not 20bp. A basis-only adjustment is possible only after specifying a benchmark that already charges the own-credit component. It cannot be added on top of the full 50bp or described as a universal pure-liquidity cost. Using own CDS as a cash funding curve is wrong, but it does not mathematically set all funding cost to zero.\n 216: \n 217: ### 4.1 Funding spread duration versus contractual loan value\n 218: \n 219: The requested long-twenty/short-five sensitivity is a funding-allocation comparison. For the disclosed matched annuity convention:\n 220: \n 221: ```text\n 222: Funding_spread_DV01 = +N * A_0.04(20) * 0.0001\n 223: Five_year_deployment_funding_allocation_DV01\n 224:                    = -N * A_0.04(5) * 0.0001\n 225: Net_funding_allocation_DV01\n 226:                    = N * [A_0.04(20) - A_0.04(5)] * 0.0001\n 227: ```\n 228: \n 229: Known anchors are +USD1.372205153m, -USD0.451138824m and +USD0.921066328m per bp. The five-year magnitude is disclosed separately from its negative position sign in the report.\n 230: \n 231: This does not mean that an EM borrower's legal debt reprices when Meridian's internal funding spread changes. Its contractual coupon and principal remain the same. Its independent credit-mark snapshot uses:\n 232: \n 233: ```text\n 234: c_EM = 0.04 + 0.04 = 0.08\n 235: p_EM(h, x_EM) = c_EM * A_(c_EM+x_EM)(h) + D_(c_EM+x_EM)(h)\n 236: ```\n 237: \n 238: The marked loan value is `N * p_EM`; the funding-allocation debit is a management comparison, not another loan asset or an extra cash expense. The selected W3 first-quarter observation has h = 4.75 and x_EM = 0.03. The resulting price loss is noncash unless the loan is sold, margined or otherwise contractually cash-settled.\n 239: \n 240: Funding spread DV01 is also not OIS DV01. Holding m and k fixed under the quote conversion:\n 241: \n 242: ```text\n 243: dA_r(h)/dr = -sum_j=1..h/delta j * delta^2\n 244:                          * (1+r*delta)^(-j-1)\n 245: dF_quote/dr = N * (m-k) * dA_r(h)/dr\n 246: ```\n 247: \n 248: An actual OIS scenario also changes forward coupons, cash returns and any quoted conversion or basis. Both legs' resets must be respected. The supervisory duration with 5% exponential decay in SA-CCR is neither this rate derivative nor the OIS annuity.\n 249: \n 250: ### 4.2 Collateral price, rating and the two haircut systems\n 251: \n 252: Reprice collateral from its own curve. Separately apply a dated issue-rating or eligibility event, issuer type, residual maturity, legal rights, positive-correlation test and the applicable holding-period haircut. The sequence is then current recognised mitigation, exposure, RWA, allocated capital, KVA and the client price needed to cover that cost.\n 253: \n 254: A spread movement is not itself a rating instruction. Conversely, a rating event can change a haircut or remove recognition with no contemporaneous market-price movement. Under the selected rating-permitted banking-book Basel comparator, a sovereign issue requires at least BB-, not investment grade in every case. The chosen B-rated own-sovereign paper fails both the rating test and the independent same-issuer correlation test. See CRE22.7, CRE22.34, CRE22.45 and CRE22.49 in [capital-rulebook.md](capital-rulebook.md).\n 255: \n 256: The market haircut determines how much cash a lender advances. The supervisory haircut determines eligible regulatory mitigation or posting exposure. They are distinct inputs with separate tenors and purposes. The empirical short-dated findings in S3 motivate lender segmentation and concentration constraints, not a calibration of five- or twenty-year EM financing. A higher safe-collateral haircut-to-volatility ratio refutes a universal proportional-volatility rule; it does not prove that nominal haircuts decrease with volatility. [allocation-episode.md](allocation-episode.md) contains the separate seven-day executable allocation.\n 257: \n 258: ## 5. E2, E3 and A3: when a funding cost actually exists\n 259: \n 260: ### 5.1 Actual cash deficits, not stock-mark borrowing\n 261: \n 262: For each settlement time, `simulate_cash` starts with the accessible cash account and applies contractual receipts and payments in the specified netting order. It includes deployment coupon/principal, net TRS return and financing, legacy interest, fees, margin, hedges, actual loss payments and any existing facility interest. It does not put V, D, X, EAD, AVA or capital release in the cash account.\n 263: \n 264: ```text\n 265: Cash_before_new_financing_j\n 266:     = available_opening_cash_j + accessible_settled_receipts_j\n 267:       - contractual_cash_payments_due_j\n 268: \n 269: Required_new_cash_j = max(0, -Cash_before_new_financing_j)\n 270: Actual_draw_j = min(Required_new_cash_j, usable_executed_facility_capacity_j)\n 271: Residual_shortfall_j = Required_new_cash_j - Actual_draw_j\n 272: ```\n 273: \n 274: A fully available facility can fund the deficit; a proposed, inaccessible or insufficient facility cannot. Positive cash can repay existing draws according to the documented sweep and buffer policy. Borrowing changes cash and a debt principal account. Only its interest and fees are expenses.\n 275: \n 276: The actual annual loan rate is OIS plus the quoted own unsecured bond spread. The incremental funding-premium diagnostic uses that spread above the stated OIS benchmark. Total contractual interest still appears in the cash and statutory ledger. If borrowed money funds an external OIS deposit, the deposit's actual interest offsets the OIS component. If it funds a cash loss instead, there is no invented matching deposit income.\n 277: \n 278: A 100bp move only in the matching funding quote produces a larger noncash mark and potentially larger CVA/KVA deductions. With no other cash obligation it creates no additional borrowing, so the base mark-only UFVA is zero. A noncash XVA expense likewise reduces management equity without creating a cash payable. This refutes the unconditional reserve-implies-borrowing recursion in A3.\n 279: \n 280: The actual positive-deficit experiment instead shocks U credit by 250bp before the first quarterly return settlement. The contractual reference loss is paid to P. The own-bond premium is then 150bp on the resulting actual draw. Its path is `compute_reserves(...)[\"cash_scenarios\"][\"actual_reference_credit_widening_250bp\"]`, not the size of the reserve. The common funding-only shock, the actual reference-loss scenario and the separately opt-in experiment below must not be added together as though they were one financing need.\n 281: \n 282: The executed scenario draws USD145.7623083242m at the first settlement and has USD3.7104953200m present value of the actual borrowing premium over OIS. Its all-in contractual borrowing-interest PV is separately USD13.6051495067m. These are `summary.PV_actual_funding_spread_cost` and `summary.PV_actual_borrowing_interest` in that cash scenario. The mark-only scenario's actual UFVA is zero; the opt-in external-deposit experiment below produces USD17.9588363722m. They are three different cash contracts/states, not alternative estimates of one cost.\n 283: \n 284: This executed-cash path is a counterfactual conditional on the book having been lawfully funded and approved. It does not establish that the proposed book's opening eligible capital satisfies the whole-book constraints in section 7. A capital deficit requires rejection or a separately evidenced capital transaction before execution, not a fictional Tier 1 top-up. Within that explicitly conditional path, the reference settlement and resulting borrowing are real cash obligations, unlike the noncash reserve balances.\n 285: \n 286: ### 5.2 The conditional quadratic experiment and the USD14.5m claim\n 287: \n 288: The public `conditional_reserve_facility` is a separate sensitivity experiment, not an automatic feature of the base book. An effective external facility borrows at own bonds and places money in a segregated OIS deposit. Its expressly selected target is the positive incremental quote-supported funding benefit caused by a move x, excluding the original 30bp benefit. The quote has its own `scenario_margin_beta=beta_quote` and `conversion_rate=r_quote`. Its assumed own-spread response is independently `s_own = s0 + beta_own*x`. The canonical values are s0 = 50bp, beta_quote = beta_own = 1 and r_quote = OIS = 4%; their equality is a fictional common-factor/conversion assumption, not an identity between distinct curves.\n 289: \n 290: For the executed facility, beginning-quarter deposit balances and end-quarter interest charges give:\n 291: \n 292: ```text\n 293: z(x) = max(beta_quote * x, 0)\n 294: L_j(x) = N * z(x) * A_r_quote(20 - (j-1)*delta)\n 295: \n 296: I_quote = N * sum_j=1..80 delta * D_OIS(j*delta)\n 297:                                  * A_r_quote(20 - (j-1)*delta)\n 298: \n 299: UFVA_conditional(x) = I_quote * z(x) * (s0 + beta_own*x)\n 300: ```\n 301: \n 302: Under the canonical values, `I = I_quote = 119725575814.7565`. With spreads expressed as annual decimal rates, its units are USD times years squared. At x = 0.01, the result is USD17.958836372m. Its linear contribution is `I*0.005*x`; its quadratic contribution is `I*x^2`. The second term exceeds the first once x exceeds 50bp in this particular experiment. Altering the quote beta or conversion rate changes the target and coefficient in both the analytic result and cash ledger; it does not change OIS expense discounting. An unexecuted facility has zero primary borrowing, cost and fee.\n 303: \n 304: The prompt's estimate `70m * 1.5% * 13.8 = 14.49m` is arithmetically consistent with those rough inputs. It is not the result of the selected amortising quarter-grid balances. Their discounted average incremental balance is `I*0.01/A_0.04(20)`, approximately USD87m rather than USD70m. Obtaining USD14.5m would require a different exposure average, timing, survival weighting, spread benchmark or funding contract. The verifier must state that difference, not tune an undisclosed exposure path to the desired number.\n 305: \n 306: The quadratic result applies only while the positive-balance branch is active and only under the stated beta and funding transaction. Floors, defaults, collateral availability and finite facility capacity can change that shape. A claim that all uncollateralised receivables have this UFVA is false.\n 307: \n 308: ### 5.3 Executing a CSA changes rights and cash\n 309: \n 310: An enforceable two-way daily cash-VM agreement can reduce unsecured close-out loss and SA-CCR exposure. Whether received VM reduces a funding need depends on its settlement, currency, accessibility, reuse rights and remuneration. The economic condition for combining it with an external-deposit experiment would be:\n 311: \n 312: ```text\n 313: Unfunded_target = max(0, required_external_deposit\n 314:                         - settled_legally_reusable_VM_available_for_that_use)\n 315: ```\n 316: \n 317: Do not reuse the same VM against two needs. Segregated cash, unreceived calls and securities the bank cannot monetise by the deadline do not pay today's obligations. VM is collateral with a return obligation, not income. Threshold, MTA, NICA, disputes and MPOR still matter; zero replacement cost is not zero PFE.\n 318: \n 319: The implemented conditional experiment explicitly requires `reusable_VM=\"0\"`; it rejects a nonzero amount. It does not implement the combined formula above or infer reusable cash from the separate CSA action. A joint VM/prefunding process needs its own dated cash-rights and allocation contract before that boundary can be exercised.\n 320: \n 321: The adverse-VM action snapshot is separate from the opening USD100m cash book. It supplies a USD20m available buffer and a USD100m executable line. The binding quote in [capital-actions.md](capital-actions.md#executable-terms-and-timing) charges USD1m for CSA execution, USD0.100m for facility setup, USD0.050m annual fixed commitment, USD0.025m annual administration and another 10bp annually on the USD100m line. The annual quoted charges therefore total USD0.175m; omitting the setup, administration or limit-based charge understates the cost.\n 322: \n 323: The immediate-execution static comparator for the 100bp tightening is USD96.0543606853m VM, leaving USD76.0543606853m beyond the buffer; the static VM field is `actions.CSA.normal.instantaneous_stress_VM`. The actual quoted action takes effect after two business days, at model year 0.008. Repricing then gives USD96.0292195555m VM and a USD76.0292195555m facility draw, respectively `actions.CSA.normal.executed_stress_VM` and `actions.CSA.normal.facility_draw`. The static and executed amounts are not interchangeable observations.\n 324: \n 325: For the executed 30/365-year draw, gross facility interest is USD0.3436937322m, buffer OIS opportunity cost is USD0.0657534247m and VM remuneration is USD0.3157125026m. Their net cost is USD0.0937346542m, with PV USD0.0933987733m. Adding the upfront-cost PV of USD1.0996498041m and running-cost PV of USD2.3999728785m gives total quoted cost PV USD3.5930214559m. The immediate static draw's roughly USD0.09376565m spread cost is only its comparator, not the delayed action's cost. Received-margin relief in one state does not erase posting risk in another.\n 326: \n 327: Thus E3 is retained as a legal-and-operational sensitivity, but rejected as a universal equivalence between no CSA and positive UFVA, or between a signed CSA and no funding cost. A CSA may reduce capital while making liquidity worse.\n 328: \n 329: ## 6. E5 and A1-A5: two management pots and one P&L\n 330: \n 331: ### 6.1 Sign convention and attribution\n 332: \n 333: Use gain-positive clean values G and hedge values H, and deduction-positive deferral D and XVA reserve X. Let C be cash, M other nonoverlapping assets, and B liabilities. A management risk ledger can be represented as:\n 334: \n 335: ```text\n 336: Equity_management = C + M + G + H - B - D - X\n 337: ```\n 338: \n 339: Every position must have one representation in that ledger. The retained U/financing statutory accounts and a management replacement benefit require an explicit bridge; adding both as independent statutory fair-valued positions would duplicate rights. [reserve-module.md](reserve-module.md) separates the funding-only panel, the full cash book and the statutory bridge.\n 340: \n 341: For a priced trade panel, after separating unrelated book movements and capital transactions:\n 342: \n 343: ```text\n 344: PnL = CF_G + (G1-G0) + CF_H + (H1-H0)\n 345:       - actual_funding_expense - other_expense\n 346:       - (D1-D0) - (X1-X0)\n 347: ```\n 348: \n 349: Use frozen opening market inputs to compute the time-only roll values G_roll, D_roll and each X_roll. Apply observed market changes next, and effective structural actions last. This ordering is public and prevents the same release from being classified twice.\n 350: \n 351: ```text\n 352: Carry = CF_G + G_roll - G0\n 353: Clean_market_move = G_pre_action - G_roll\n 354: Hedge_PnL = CF_H + H1 - H0\n 355: \n 356: For each deduction R, where R is D or an X component:\n 357:     Reserve_theta_R = R0 - R_roll\n 358:     Reserve_market_move_R = R_roll - R_pre_action\n 359:     Reserve_action_release_R = R_pre_action - R1\n 360: ```\n 361: \n 362: A documented observability release of D is separate from spread-driven X remeasurement and from routine time release. Effective structural actions also include their clean settlement value and quoted fees; the reserve credit alone is not the action's net economics.\n 363: \n 364: Expected theta is P&L once. It is part of earning the initially priced risk premium, not additional new profit on top of the change in the reserve. Spread-driven release is also P&L and can reverse. An unhedged market gain is not fee income. The raw sentence that every term except carry is a reserve movement is too broad: actual hedge gains, clean market changes and cash funding expense are not automatically reserve movements.\n 365: \n 366: A release of a future-funding-cost reserve as cost is consumed must be paired with the corresponding actual funding expense. Booking only the release invents profit. Conversely, charging both the already-priced reserve consumption and a second reserve for the same cost duplicates the expense.\n 367: \n 368: Debt draws/repayments, VM transfers, principal repayment and capital issuance are not trade P&L. A new cash loss, interest, fee or hedge payment has its own source entry. The verifier must derive the independent journal and closing assets/liabilities from those sources and compare their equity movement with attribution. Defining closing equity as opening equity plus the reported P&L is not a check.\n 369: \n 370: ### 6.2 Pot D and the accounting-unit gate\n 371: \n 372: For management only, the initial gross benefit is deferred on a frozen price-time schedule:\n 373: \n 374: ```text\n 375: D_management(0) = N * 0.003 * A_0.04(20)\n 376: D_management_roll(t) = N * 0.003 * A_0.04(20-t)\n 377: ```\n 378: \n 379: The original spread advantage and conversion are frozen for this schedule. A tightening current spread does not release D; nor does a widening current spread replenish it. Evidence that a previously unobservable pricing factor has become observable can support an additional release under the applicable policy. Arbitrary straight-line amortisation is not substituted for the priced time factor.\n 380: \n 381: For statutory recognition, identify the accounting unit before applying the day-one test. The base failed-sale unit contains retained U and its financing liability, so it does not first book a USD41m standalone derivative gain and then decide whether to defer it.\n 382: \n 383: For a genuinely separate qualifying instrument, IFRS 9 paragraphs 5.1.1A and B5.1.2A distinguish an active-market identical price or a valuation using only observable-market data from other valuations. The latter initially defers the difference from transaction price, then recognises it only as arising from changes in factors, including time, that market participants consider in pricing. The relevant IFRS edition is the [2026 issued text][IFRS9]. This is not a rule that all internal inputs are always unobservable, or that one fictional quote makes all inputs observable.\n 384: \n 385: A separate numerical unit example makes the netting point explicit. Suppose a valid standalone unit has clean value USD41m, applicable statutory valuation adjustments USD12m, and transaction price zero. Its net fair value is USD29m. If the day-one exception fails, the deferred difference is USD29m, not a gross USD41m deferral plus an immediate USD12m loss on the same unit. The management gross D and management X pots therefore need a bridge to statutory accounting rather than a claim that both are mandatory IFRS liabilities. Management KVA is not automatically a statutory fair-value adjustment.\n 386: \n 387: ### 6.3 Pot X, the corrected capital basis and worked time/market panels\n 388: \n 389: ```text\n 390: X = CVA + actual_cash_based_FVA_UFVA + KVA + other_explicit_reserves\n 391: ```\n 392: \n 393: Fees paid as expenses are not added again as a reserve unless the stated policy first reserves a future unpaid fee and releases it against settlement. The components keep separate time, market, effective-action and consumption movements.\n 394: \n 395: For the following funding-only panel, quote and U are at a matched reset, no hedge is executed, actual additional funding is zero, and no other reserve is silently added. Define the capital and CVA quantities exactly through the public core API:\n 396: \n 397: ```text\n 398: C0 = core[\"funding\"][\"normal\"][\"CVA\"]\n 399: K0 = core[\"funding\"][\"normal\"][\"KVA\"]\n 400: C1 = core[\"funding\"][\"year1_roll\"][\"CVA\"]\n 401: K1 = core[\"funding\"][\"year1_roll\"][\"KVA\"]\n 402: Cs = core[\"funding\"][\"year1_stress\"][\"CVA\"]\n 403: Ks = core[\"funding\"][\"year1_stress\"][\"KVA\"]\n 404: X0 = C0 + K0\n 405: X1 = C1 + K1\n 406: Xs = Cs + Ks\n 407: ```\n 408: \n 409: These K values use recognised incurred CVA equal to zero. Earlier illustrative KVA values that subtracted an unrecognised management CVA reserve from default-risk EAD are superseded. CRE51.12 permits the qualifying incurred write-down, not an arbitrary management reserve. A separate recognised-write-down countercase must state its statutory basis and cannot be the default.\n 410: \n 411: Amounts in the next table are USD millions, rounded from the executed core and reserve outputs; API values are in USD. The named C/K/X definitions above identify the exact source fields.\n 412: \n 413: | Funding-only item | Inception | One-year frozen-market roll | Instantaneous shock after that roll |\n 414: |---|---:|---:|---:|\n 415: | Remaining funding life | 20 years | 19 years | 19 years |\n 416: | Gross F at matched reset | 41.166154579 | 39.792364782 | 172.433580720 |\n 417: | D management | 41.166154579 | 39.792364782 | 39.792364782 |\n 418: | Provider CDS | 80bp | 80bp | 160bp |\n 419: | Change in replacement funding spread from inception | 0bp | 0bp | +100bp |\n 420: | CVA | 2.601931020 | 2.414305784 | 19.440057857 |\n 421: | KVA, corrected no-incurred-write-down basis | 27.523018931 | 24.702391545 | 62.236661004 |\n 422: | Total X | 30.124949951 | 27.116697329 | 81.676718861 |\n 423: | TRS cash received during the panel | 0 | 3.000000 | 0 |\n 424: | Newly created cash borrowing from the mark/charge | 0 | 0 | 0 |\n 425: \n 426: At inception, the priced net management benefit before deferral is `F0-X0-fee = USD10.0412046285m`. With gross management D equal to F0, the initial management charge is `-X0-fee = -USD31.1249499510m`. The independent opening journal therefore leaves management equity of USD68.8750500490m from USD100m, while statutory equity is USD99m after the actual USD1m service expense. Neither the priced benefit nor the management charge is automatically statutory day-one P&L; the failed-sale accounting unit recognises no separate funding-opportunity gain.\n 427: \n 428: The one-year frozen-market panel is fully specified by:\n 429: \n 430: ```text\n 431: Carry = 3.000000 + 39.7923647816 - 41.1661545794\n 432:       = 1.6262102022 USDm\n 433: D_theta = 1.3737897978 USDm\n 434: X_theta = X0 - X1 = 3.0082526224 USDm\n 435: Funding_panel_PnL = Carry + D_theta + X_theta\n 436:                   = 3.000000 USDm + X0 - X1\n 437:                   = 6.0082526224 USDm\n 438: ```\n 439: \n 440: These values are `management_scenarios.one_year_roll.funding_component.attribution` in the reserve output. The independent ledger, not the attribution identity, supplies the reconciliation evidence. The expected release is counted once. The separate whole-book panel includes EM carry, legacy interest and OIS cash interest: its first-year management P&L is USD50.6773603624m after the already expensed day-one fee, with management equity moving from USD68.8750500490m to USD119.5524104114m. Its funding-only USD6.0082526224m is not an additional whole-book profit line.\n 441: \n 442: The instantaneous market panel changes no time, payment or D. Its result is:\n 443: \n 444: ```text\n 445: Clean_market_move = 132.6412159387 USDm\n 446: Reserve_market_move = X1 - Xs = -54.5600215322 USDm\n 447: Instantaneous_PnL = Clean_market_move + Reserve_market_move\n 448:                   = 78.0811944065 USDm\n 449: Cash_change_from_this_mark_and_reserve_remeasurement = 0\n 450: ```\n 451: \n 452: This is the required divergence of the two pots: D stays on its old priced schedule while X remeasures to changed provider credit and funding exposure. The instantaneous panel's independent journal and equity change both give USD78.0811944065m; no cash or new borrowing appears. The corresponding `compute_reserves` panels are `management_scenarios.opening`, `management_scenarios.one_year_roll` and `management_scenarios.instant_funding_100bp_provider_80bp`. The 81-row `reserve_schedule` includes opening and quarterly observations through contractual year twenty; the separate terminal settlement state retains any unresolved claim.\n 453: \n 454: ### 6.4 A4: reserve uncertainty and available CET1\n 455: \n 456: The [valuation-capital annex](valuation-capital-annex.md) uses identified recognised fair-value exposures and an expressly selected EU-style model-risk core method. Its two current-model exit-cost ranges are USD1.75m to USD4.25m and USD1.375m to USD2.625m. Expected costs are USD3m and USD2m; separately identified same-source accounting prudence is USD0.2m and USD0.1m. The 90th-percentile costs are USD4m and USD2.5m. Residual uncertainty is therefore USD0.8m and USD0.4m. Method 1's 50% factor gives an incremental AVA of USD0.6m.\n 457: \n 458: That component reduces available CET1 from USD12m to USD11.4m in the explicitly controlled USD100m fixed-RWA illustration. It is not a cash outflow or trading P&L. The separate assumption of USD0.6m replacement equity held for twenty years at a 10% annual charge gives:\n 459: \n 460: ```text\n 461: KVA_AVA = 0.10 * 0.600m * A_0.04(20)\n 462:         = 0.8233230916m\n 463: ```\n 464: \n 465: This is a controlled replacement-equity component, not the whole book's KVA and not an amount to add if the same capital use is already priced. Shifting expected exit cost while holding uncertainty width and same-source prudence fixed can leave AVA unchanged. A wider uncertainty range can increase AVA without a larger expected reserve. The raw automatic chain from larger reserve level to larger AVA is therefore conditional, not a rule.\n 466: \n 467: The applicability and dates are those of CRR consolidated 26 June 2026 and the identified RTS consolidated 26 June 2020, with the post-2020 50% factor. These sources do not make the fictional institution EU-regulated or turn a management funding opportunity into an in-scope accounting asset.\n 468: \n 469: ## 7. Capital cost and the defined comparison with UFVA\n 470: \n 471: The detailed regulatory formulas and rejection gates remain in [capital-rulebook.md](capital-rulebook.md). The funding baseline uses credit-primary SA-CCR, AAA reference SF 0.38%, a twenty-year supervisory duration, alpha 1.4, no CSA collateral and provider A-category ECRA risk weight 30%. The legal classification also requires a dual credit/interest-rate countercase; a trade name cannot settle its primary-driver assessment.\n 472: \n 473: For the selected standalone one-provider reduced-BA panel:\n 474: \n 475: ```text\n 476: K_funding_CCR_CVA(t)\n 477:     = 0.08 * RWA_funding_CCR(t) + K_BA_CVA(t)\n 478: \n 479: KVA_funding(h)\n 480:     = 0.10 * sum_j delta * D_OIS(j*delta)\n 481:                      * K_funding_CCR_CVA(h-(j-1)*delta)\n 482: ```\n 483: \n 484: Capital is sampled at the beginning of the quarter and priced at its end. No recognised incurred CVA write-down is deducted in the base. The KVA path is the disclosed survival-conditional allocation through maturity; default-weighted CVA and the no-default conditional prefunding experiment have their own stated measures. They cannot be silently presented as one empirically calibrated expectation.\n 485: \n 486: For an action, the charge intervals are split only at the genuine execution, expiry and recognition events specified in [capital-actions.md](capital-actions.md#executable-terms-and-timing). Both comparators use the same knots and pay at original quarter ends. Additional reporting observations evaluate current capital but do not resample that accrual basis. The `_capital_action` keyword-only `observations` channel therefore changes the returned `observation_profile`, not cash schedules or KVA; `events` remains the genuine-pricing-event channel. Observation-density invariance under this fixed charge contract is distinct from, and does not establish, numerical convergence of a continuously accruing capital integral.\n 487: \n 488: The executed normal standalone funding KVA is USD27.5230189305m. There are two different comparisons with the conditional USD17.9588363722m UFVA:\n 489: \n 490: 1. The stressed capital-cost level, `core[\"funding\"][\"mark_stress\"][\"KVA\"]`, is USD69.4099354188m: 3.864946146 times conditional UFVA. This is the standalone funding CCR+CVA component for the 100bp quote move with provider CDS held at 80bp, the chosen reset convention and U otherwise unchanged.\n 491: 2. The incremental capital cost is the stressed level minus `core[\"funding\"][\"normal\"][\"KVA\"]`: USD41.8869164882m, or 2.332384773 times `core[\"conditional_UFVA\"][\"UFVA\"]`. Comparing increments aligns the funding experiment more closely than comparing it with the whole stressed KVA level. The ratio fields are `core[\"sensitivities\"][\"standalone_total_KVA_to_conditional_UFVA_ratio\"]` and `core[\"sensitivities\"][\"standalone_marginal_KVA_to_conditional_UFVA_ratio\"]`.\n 492: \n 493: Both comparisons support K8 only for that named component, scenario and allocation rule. They do not prove that KVA universally dominates actual funding cost. Actual mark-only cash UFVA is zero. The USD3.7104953200m actual borrowing-premium PV belongs to the separate reference-loss cash scenario, whereas USD17.9588363722m belongs to the conditional external-deposit contract. Substituting either cash number into the other scenario without repricing changes the comparison.\n 494: \n 495: Whole-book capital must include retained U, deployment, cash, other applicable exposures, the legal TRS classification and written-credit leverage notional. The explicit controlled base weights are 20% on the retained AAA U, 100% on the unmitigated EM cash advance and 0% on the specified central-bank cash account, before adding the relevant funding CCR/CVA amounts. The earlier isolated USD90m risk-weighted capital snapshot is not the actual capital requirement of this USD1bn EM book. Even deployment and retained U alone contribute USD80m and USD16m of 8%-minimum capital at par.\n 496: \n 497: The executed whole-book base requires USD135.6507222715m under the risk constraint, versus USD94.6989784923m under the 3% leverage constraint. Available Tier 1 after the paid service fee is USD99m, with no automatic AVA from the separate controlled example. Risk capital binds and the USD36.6507222715m shortage makes `executable_under_stated_capital` false in `leverage.actual_base_after_day1_fee`. The calculable cash path is therefore an existing-book/counterfactual exposure, not approval to book it without an evidenced capital transaction or effective restructuring.\n 498: \n 499: The desk's disclosed minimum-only all-equity allocation compares `max(0.08*RWA_book, 0.03*L_book)` on the same with/without portfolio. This is an internal pricing convention, not a replacement for Basel's simultaneous CET1, Tier 1 and total-capital requirements. A collateral substitution can move the binding constraint to leverage. The five-year protection maturity ratio can be one at CDS execution despite the longer funding exposure; it does not confer a five-year-capped written-credit leverage offset. The immediate-execution twenty-versus-five comparator has a fifteen-year unprotected tail. The quoted action starts after two business days, expires at book year 5.008, and leaves 14.992 years after expiry plus an unprotected initial two-day interval.\n 500: \n 501: [capital-actions.md](capital-actions.md) supplies executable quotes and lifetime comparisons for CSA execution, high-grade substitution, enforceable netting, designated or undesignated provider CDS, holding capital and releasing a substitution. The stated scopes matter:\n 502: \n 503: - Substitution costs a 90bp annual concession on USD1bn for five years plus USD1m execution cost; undoing it costs USD0.250m. Reduced capital need not compensate for the lost yield.\n 504: - Netting costs USD0.750m and waits for the signed, scoped opinions and novation conditions. A pending thirty-business-day process provides no early relief.\n 505: - Five-year USD320m provider protection costs an 80bp annual premium, USD0.250m execution cost and USD0.025m annual administration. The five-year tenor runs from its actual two-business-day execution, not from book inception. Provider H's own exposure, CVA, designation, expiry and declining recognition remain in the before/after calculation; the full premium, fee and administration costs appear in [capital-actions.md](capital-actions.md).\n 506: - Holding capital costs the applicable KVA profile. Expected roll-down is already priced. Structural relief is the recalculated future-cost difference net of the action price, not an extra cash receipt.\n 507: \n 508: Action NPVs labelled standalone CCR+CVA components do not become whole-bank gains merely because a separate leverage snapshot is shown. The allocation episode also supplies a concrete capital/economics reversal: routing all fifty small lots to the cheaper, weaker lender raises incremental SFT CCR capital versus the feasible forty-nine-lot alternative while lowering total financing cost. Capital capacity released by any action stays out of cash until an actual transaction changes cash.\n 509: \n 510: If a five-year client spread is used to recover a selected cost NPV, the spread increment is `cost_NPV / [N*A_0.04(5)]` under this payment grid. Charging it over a fictional twenty-year deployment would understate the spread. The cost must include all relevant tail obligations and feasible execution costs on the stated allocation basis.\n 511: \n 512: ## 8. Public recomputation and report boundaries\n 513: \n 514: | Obligation | Source facts and mechanism | Authoritative calculation |\n 515: |---|---|---|\n 516: | E1 | Sale/title, TR roles, issued U, reset price, matched replacement quote, stubs | `core.marks`; F, reference adjustment and V derived separately |\n 517: | E2 | Explicit cash obligations or the separately effective prefunding facility; own-bond quote and beta | Actual `cash_scenarios` versus `core.conditional_UFVA` |\n 518: | E3 | Executed CSA, direction, thresholds, remuneration, custody/reuse and settled transfers | Recomputed margin exposure and cash deficits, including adverse VM |\n 519: | E4 | Distinct curve identities and full before/after states | `core.curves`, `core.sensitivities`, CVA and cash-funding recomputation |\n 520: | E5 | Opening balances, sourced cash/title entries, clean marks, D and X conventions | `compute_reserves` attribution versus independently derived journal/equity |\n 521: | A1 | Accounting unit first, then actual input observability | Management/statutory bridge and legitimate D release trigger |\n 522: | A2 | Frozen-market roll and subsequent market/action revaluation | Separate D/X schedules and component attribution |\n 523: | A3 | Actual payment causing a deficit, no debt entry for a reserve alone | `simulate_cash`; separate cash-funding-expense line |\n 524: | A4 | Recognised FV scope, model uncertainty and same-source prudence | Incremental AVA and available CET1, distinct from P&L/cash |\n 525: | A5 | Reconciliation, fees/funding/hedges and surviving obligations | Independent closing accounts and terminal USD0.500m unresolved-claim reserve |\n 526: \n 527: The candidate still reports `rates`, `credit_xva`, `capital`, `liquidity` and `accounting` separately under [report.schema.json](../schemas/report.schema.json). Shared causes must agree across sections. Funding spread sensitivity can drive quote-derived exposure and conditional UFVA under the named cash contract. Valuation uncertainty can reduce CET1 and change the cost of allocated equity. Separate fields do not make these independent economic decisions.\n 528: \n 529: [wrong-way-branches.md](wrong-way-branches.md) specifies the five mutually exclusive case instances implementing W1's two instrument-existence alternatives and W2-W4. Missing quotation, legal scope, issuer kind, correlation fact, cash access, rating or event timing is a reference failure. Evidenced non-recognition or a documented zero cash recovery is a valid case result. The distinction prevents missing data from making the trade look safe.\n 530: \n 531: [IFRS9]: https://www.ifrs.org/content/dam/ifrs/publications/html-standards/english/2026/issued/ifrs9.html\n","tool_call_id":"call_04a20ed7edf458cd9388418dfe938f50","type":"tool_result"}},{"step":2,"generation":0,"created_at":"2026-09-20T09:47:42.06Z","event":{"content":"File: /work/data/artifacts/qyaws7fs/documents/docs/reference-input-contract.md\n   1: # Reference input contract\n   2: \n   3: This annex defines the implemented BOOK reference conventions. It supplies fictional premises, not external legal opinions, market observations or a regulatory approval. The parameter schema, reference validator and the Python calculations share this contract. An unsupported convention is a reference error, not permission to choose a nearby method.\n   4: \n   5: ## Numeric and legal boundaries\n   6: \n   7: Economic numbers in JSON are exact decimal strings: no JSON numbers, booleans, exponents, whitespace, nonfinite values or negative zero. Explicit `\"0\"` is valid wherever the field's domain allows zero. Counts and array indices are integers under their own schema definitions, not monetary inputs. Internal calculations may pass finite `Decimal` values without converting through binary floating point.\n   8: \n   9: The reference loaders reject duplicate JSON keys. Named cases, scenarios, collateral states, uncertainty exposures, allocation lots and legal/market/custody records reject duplicate IDs; duplicate asset positions in one custody account are also errors. Missing required values, legal agreements, opinions, eligibility facts or source documents do not become zero exposure or a guessed rating. Both calculator CLIs validate their complete parameter input before computing. Bundle construction precedes reading the candidate: a reference failure returns `UNSCORABLE`, `cause=reference_error`, without a score or qualification verdict.\n  10: \n  11: The supported cash model uses same-currency OIS-linked securities with one currency unit of face and redemption per unit, an opening sale at par and equal sale proceeds, funding notional and deployment principal. The legal reference coupon and deployment coupon must match their numerical inputs. Deployment repays principal at maturity into OIS cash. The opening accounting unit retains the reference asset, recognises the financing liability, does not recognise a separate statutory derivative, and keeps the management ledger separate. Changing those authored terms without an implemented accounting or cash transition is rejected.\n  12: \n  13: <a id=\"supported-policy-ids\"></a>\n  14: ## Supported policy IDs\n  15: \n  16: Each path below accepts only its listed ID. Descriptive `scope`, explanation and reporting-panel text are metadata; their words never choose an economic formula.\n  17: \n  18: | Parameter path | Supported ID | Implemented convention |\n  19: |---|---|---|\n  20: | `desk.capital_sampling` | `beginning_interval_end_payment` | Sample capital at each interval's opening and pay its charge at the scheduled period end. |\n  21: | `desk.discount_convention` | `nominal_ois_compounded_contract_quarter` | Discount with `(1 + OIS × quarter)^(-years/quarter)`; the same convention prices quarterly annuities. |\n  22: | `desk.day1_deferral_policy` | `frozen_pricing_annuity_management_deferral` | Freeze the inception pricing-annuity deferral basis; subsequent reserve remeasurement is a separate management entry. |\n  23: | `desk.CVA_default_grid` | `quarter_end_constant_cds_lgd` | Constant hazard from CDS/LGD, default only after payment on original funding quarter ends, with action status evaluated at that default date. Execution does not create another default date. |\n  24: | `desk.CVA_KVA_survival` | `default_weighted_cva_contractual_kva` | CVA uses survival/default weights; contractual capital charges do not receive an extra survival factor. |\n  25: | `desk.action_timing` | `business_day_event_grid_next_quarter_payment` | Split capital-service accrual at business-day execution; pay each piece at the next original contract payment date. This does not alter the CVA default grid. |\n  26: | `conditional_reserve_facility.target` | `positive_incremental_funding_mark_ois_deposit` | An executed, separately scoped facility prefunds the positive incremental funding mark in an OIS deposit. |\n  27: | `conditional_reserve_facility.default_model` | `deterministic_no_default` | The conditional facility illustration has no stochastic default path. |\n  28: | `conditional_reserve_facility.deposit_remuneration` | `OIS` | Deposit earns the supplied OIS curve. |\n  29: | `conditional_reserve_facility.cash_interest` | `OIS` | Free cash earns the supplied OIS curve. |\n  30: | `conditional_reserve_facility.coupons_paid_from` | `opening_cash_then_executed_deficit_facility` | Pay coupons from real cash, then from an independently executed deficit facility within its limit. |\n  31: | `cash_ledger.free_cash_remuneration` | `OIS` | Cash and reinvestment use the supplied OIS curve. |\n  32: | `cash_ledger.price_return_accounting` | `retained_asset_settled_price_adjusts_financing` | Retain U; settled principal/price returns adjust the financing liability. A management reserve expense does not borrow cash. |\n  33: | `cash_ledger.surplus_policy` | `repay_deficit_then_retain_cash` | Sweep available surplus to outstanding deficit debt before retaining cash. |\n  34: | `cash_ledger.capital_covenant` | `no_automatic_acceleration` | Capital deficiency does not itself invent an accelerated cash payment. |\n  35: | `day_one_accounting.service_fee_treatment` | `inception_consumed_service_expense` | The paid day-one service fee is consumed at inception and expensed, separately from management deferral. |\n  36: | `whole_book.capital_gate` | `minimum_capital_blocks_new_execution` | Compare supplied qualifying Tier1 after AVA with the greater of risk and leverage minima; a shortfall blocks new execution without creating equity. |\n  37: | `replacement_quote.conversion` | `remaining_quarterly_annuity` | Convert the matched quoted financing margin using the stated rate and remaining tenor; the required `off_quarter_convention=fractional_remaining_annuity_clean_quote` supplies its fractional-power extension off quarter dates, not an exact original-coupon valuation. |\n  38: | `actions.netting.other_trade.quote.conversion` | `upfront_implied_spread_remaining_annuity` | Infer a spread from the executable upfront and its inception annuity; roll that spread on the remaining annuity. |\n  39: | `actions.CDS.replacement_quote.conversion` | `cds_spread_difference_remaining_annuity` | Value the quoted CDS spread difference on its remaining quarterly annuity. |\n  40: | `reserve_uncertainty.method` | `incremental_core_model_risk_method_1` | Apply the specified incremental Method 1 model-risk AVA illustration, with required alpha and confidence inputs. |\n  41: \n  42: <a id=\"substitution-eligibility\"></a>\n  43: ## Substitution eligibility\n  44: \n  45: The fictional replacement action supplies its own correlation, issuance, enforceability, market-liquidity and currency facts. In the canonical action it is issued, enforceable, market-liquid and same-currency, and has no material positive correlation with the deployment obligor. Its issuer, rating, quantity and coupon remain the separately supplied action terms. These are explicit fictional premises supplementing the issued independent AAA replacement described in `capital-actions.md`; they are not inferred from the word “AAA”, an empty field or a resolving citation.\n  46: \n  47: The controlled collateral-price/rating comparison independently supplies the same five facts and its own eligibility source reference. It does not inherit them from the action. A false issuance, enforceability or liquidity fact, or true material correlation, prevents recognised collateral mitigation. A currency mismatch invokes the stated FX haircut rather than being silently reset to same-currency. Missing or mistyped facts fail validation. Ratings and market spread changes remain independent inputs.\n  48: \n  49: ## Actual-book AVA\n  50: \n  51: `whole_book.AVA` is the explicitly supplied actual-book deduction, applied to Tier1 at every actual beginning-of-interval capital observation in both the core opening comparison and ReserveLedger's full-book profile. It changes available capital and shortfall, not required capital, accounting equity or cash. The canonical value is `\"0\"`; this is an input, not a hard-coded model assumption.\n  52: \n  53: `leverage_snapshot.AVA` and `reserve_uncertainty` remain separately scoped controlled illustrations. They are not added to `whole_book.AVA`. A nonzero actual-book input must preserve that separation. The D2 probe changes only actual-book AVA and records the core/reserve capital bridge and unchanged cash journals.\n  54: \n  55: ## Default inventory\n  56: \n  57: No economic dictionary lookup in `numerical_fixture.py`, `reserve_ledger.py` or `validate_exhibits.py` supplies a value when a reference key is missing. Remaining `schema.get(\"type\")` calls classify schema structure only; they do not obtain economic data. The grader likewise has no defaulting dictionary lookup for reference economics.\n  58: \n  59: Optional calculation arguments have specific, bounded meanings:\n  60: \n  61: - `discount`/`annuity` with no rate read the required `ois` parameter; they do not invent an interest rate.\n  62: - `saccr` with no override reads required book notional, AAA supervisory factor and contract margin terms. Its default credit delta is the stated receive-total-return baseline. Explicit aggregation overrides are supplied only by the netting calculation.\n  63: - `funding_profile`/`funding_capital` default to the unhedged, unmargined comparator. A hedge's omitted *override* tenor reads the required CDS contract tenor, not a guessed maturity. `cva` defaults to that same unmargined comparator.\n  64: - `collateral_state` with no exposure override uses book notional before scheduled loan maturity and zero thereafter. Loan elapsed time rolls down the collateral's independently supplied initial `residual_years`; neither its residual nor its original maturity is replaced by the loan's maturity. An explicitly supplied positive exposure at scheduled maturity remains unsecured pending separate settlement/recovery evidence.\n  65: - Empty optional capital event lists mean no extra capital sampling points. CVA always uses original funding payment dates; a remaining tail begins with the stub to the next original payment rather than a new quarter measured from execution or expiry.\n  66: - Zero aggregation buckets for newly assigned issuers, empty journal-date buckets, and custody positions created by settled receipts are derived state initialisation. Opening positions and input amounts must already exist.\n  67: - Zero mitigation for explicit ineligibility, zero unexecuted facility usage, zero expired scheduled exposure and terminal zero remaining scheduled KVA are calculated outcomes. They do not discharge an unresolved settlement claim.\n  68: - Undefined ratios may be `null` when their calculated denominator is zero. CLI section selection and output serialization options change presentation only.\n  69: \n  70: D2 exercises the current BOOK financial and legal fields, including attached security agreements and opinions. It does not claim to test tranche attachment points or a copula model: neither is an input dimension of this implementation. Those dimensions are recorded as `not_exercised` rather than represented by fabricated fields.\n  71: \n  72: <a id=\"settlement-and-quote-clock\"></a>\n  73: ## Settlement and quote clock\n  74: \n  75: `funding_contract.next_price_settlement_years` supplies the inception snapshot's actual delay to its next reference-price settlement. At a rolled observation, `funding_mark` requires both `next_payment_delay` and `unsettled_stub`, including an explicit zero. Same-day pending settlement uses delay zero; it does not receive a fresh quarter discount. A surviving unsettled reference return or stub at zero scheduled tenor requires a separate claim valuation and is rejected by the scheduled-contract mark.\n  76: \n  77: The synthetic clean quote's `off_quarter_convention` extends `(1-D_r(h))/r` to fractional remaining quarters. This is a spread-to-upfront quote convention. It is not a discounted sum of the original contract's irregular coupon cash flows. Profiles support post-reference-settlement clean quotes and zero unsettled stubs only; original-reference inclusive quotes remain instantaneous observations and are not rolled without a new quote surface. Tail CVA and capital payments retain the original funding quarter clock.\n  78: \n  79: <a id=\"collateral-maturity-facts\"></a>\n  80: ## Independent collateral maturity\n  81: \n  82: The original pledge, replacement action and controlled comparison each supply collateral `original_years` and initial `residual_years` (the replacement uses `replacement_residual_years`). At loan elapsed time e, collateral residual life is `max(initial_residual_years-e,0)`. Price and supervisory-haircut bucket use that collateral life. The already haircut-adjusted eligible collateral is then multiplied by the maturity factor from [CRE22.10–14 and CRE22.47](https://www.bis.org/committees/bcbs/basel-framework/standard/cre/22/inforce/2023-01-01/published/2020-11-26#22.10). An originally sub-one-year mismatched instrument or mismatched residual at or below three months supplies no recognised mitigation. The canonical collateral and deployment both have five-year original and residual life. Maturing collateral does not create an invented reinvestment or redemption receipt in this capital calculation.\n  83: \n  84: <a id=\"mpor-floor-facts\"></a>\n  85: ## MPOR floor facts\n  86: \n  87: The funding set and H's CDS margin set independently attest non-central clearing, whole-business-day re-margining interval, hard-to-replace/illiquid status, whether the set exceeds 5,000 transactions, and qualifying repeated margin disputes. In this fictional case both are daily-margined, hard to replace, below that size threshold and without qualifying repeated disputes. Both supplied MPORs are 20 business days.\n  88: \n  89: [CRE52.50–51](https://www.bis.org/committees/bcbs/basel-framework/standard/cre/52/inforce/2023-01-01/published/2020-06-05#52.50) supplies a floor of nine business days plus the re-margining period, at least 20 for the stated illiquidity/size conditions. Qualifying dispute history means more than two disputes in the previous two quarters lasting beyond the otherwise applicable MPOR; it doubles the applicable floor for the subsequent two quarters. The engine rejects a supplied MPOR below its evidenced floor rather than silently accepting it. Central clearing is outside this branch.\n  90: \n  91: <a id=\"protection-recognition-facts\"></a>\n  92: ## Protection recognition facts\n  93: \n  94: The canonical CDS directly protects P under `FUND_TRS`; H is a separate eligible protection provider. Fictional legal terms attest enforceability, irrevocable/unconditional direct protection, all three required credit events, applicable grace-period coverage, timely robust cash settlement, independent credit-event determination, and a reference obligation no senior to the protected obligation with the stated same-obligor cross-default link. The explicit identity and evidence fields are prerequisites, not conclusions inferred from a rating. Missing qualification is rejected; partial event cover and proxy credit hedges are not implemented.\n  95: \n  96: [CRE22.71, CRE22.74 and CRE22.76](https://www.bis.org/committees/bcbs/basel-framework/standard/cre/22/inforce/2023-01-01/published/2020-11-26#22.71) govern the selected recognition branch. A valid CDS from H whose risk weight is not strictly below P's receives no default-risk substitution relief. Its economic seller risk and separately calculated CVA exposure are not deleted. `hedge_provider_CVA_method=desk_annex_normal_saccr` explicitly selects the normal-SA-CCR exposure convention for H's CVA in this desk annex; it is not a claim that CRE51.16 alone prescribes that CVA method.\n  97: \n  98: <a id=\"leverage-recognition-facts\"></a>\n  99: ## Leverage recognition facts\n 100: \n 101: For nonzero margin, the fictional CSA terms attest settled daily cash exchange, non-segregation/reuse, same currency, full-mark exchange and one legally enforceable master agreement covering the derivative and VM. These narrower same-currency terms satisfy the selected [LEV30.24–25](https://www.bis.org/committees/bcbs/basel-framework/standard/lev/30/inforce/2023-01-01/published/2020-03-27#30.24) branch. Missing or false facts reject that calculation; securities margin, segregated or delayed cash, partial/disputed VM and other-currency alternatives have no silent qualifying-VM fallback. The supplied cash balance is after VM transfer. A posted qualifying VM receivable is excluded from on-balance leverage assets under LEV30.25 and instead included in derivative RC; it must not also be hidden in another supplied asset bucket.\n 102: \n 103: `whole_book.written_credit_contract` identifies the same funding contract and U reference as the calculated funding row and attests that it is unoffset. Full written notional must equal the funding notional in both `whole_book` and `leverage_snapshot`. The optional [LEV30.35](https://www.bis.org/committees/bcbs/basel-framework/standard/lev/30/inforce/2023-01-01/published/2020-03-27#30.35) PFE exclusion therefore removes only the already included unoffset written contract. Zero/partial W, purchased-protection offsets and a mixed written population require a different implemented contract and are rejected. Buying CDS on P is not protection on U and does not remove U's written notional.\n 104: \n 105: <a id=\"conditional-quote-target\"></a>\n 106: ## Conditional quote target\n 107: \n 108: Both the analytic calculation and executed deposit ledger use the replacement quote's own `scenario_margin_beta` and `conversion_rate`, while discounting funding expense at OIS. The positive target is `N*A_quote(h)*max(quote_beta*x,0)`, not `N*A_OIS(h)*max(x,0)` unless those distinct inputs happen to coincide. An unexecuted primary facility has no primary funding cost or fee.\n 109: \n 110: The current deterministic experiment requires `reusable_VM=\"0\"`. The combined net-deposit-minus-reusable-VM formula remains an economic boundary described in the specification, not an implemented joint CSA/prefunding process. Nonzero reusable VM is rejected rather than ignored.\n","tool_call_id":"call_9bf849a838325afc840f1cc7db03697a","type":"tool_result"}},{"step":3,"generation":0,"created_at":"2026-09-20T09:50:22.829Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_9a946e58a8fd5e009e38a9ab8ecf0c6a","name":"bash","arguments":"{\"command\":\"python - <<'PY'\\nimport json\\nfrom pathlib import Path\\np=Path('/work/data/artifacts/qyaws7fs')\\nfor name in ['state','parameters','policy','case','family','quotes','public_inputs']:\\n d=json.load(open(p/f'{name}.json'))\\n print('\\\\n',name,type(d).__name__)\\n if isinstance(d,dict):\\n  print([(k,type(v).__name__,len(v) if isinstance(v,(dict,list,str)) else v) for k,v in d.items()])\\n else: print('length',len(d));print(str(d)[:500])\\npk=json.load(open('/packet/packet.json'));print('\\\\npacket',[(k,type(v).__name__,len(v) if isinstance(v,(dict,list,str)) else v) for k,v in pk.items()])\\nPY\",\"max_output_length\":22000}"}],"type":"assistant","usage":{"prompt_tokens":46581,"completion_tokens":207,"total_tokens":46788,"cache_read_tokens":5157}}},{"step":3,"generation":0,"created_at":"2026-09-20T09:50:22.926Z","event":{"content":"STDOUT:\n\n state dict\n[('accepted_action_count', 'int', 0), ('accepted_action_ids', 'list', 0), ('accounts', 'dict', 35), ('applied_event_ids', 'list', 0), ('as_of', 'str', 10), ('contracts', 'dict', 7), ('day', 'int', 0), ('family_id', 'str', 7), ('financial_time', 'str', 42), ('last_receipt_hash', 'str', 64), ('last_receipt_sequence', 'int', 415), ('legal', 'dict', 9), ('legal_version', 'int', 0), ('lots', 'dict', 54), ('market', 'dict', 8), ('market_version', 'int', 0), ('obligations', 'dict', 0), ('pending', 'list', 0), ('revision', 'int', 0), ('schema_version', 'str', 13)]\n\n parameters dict\n[('actions', 'dict', 5), ('allocation', 'dict', 14), ('book', 'dict', 2), ('currency', 'str', 3), ('day_one_accounting', 'dict', 2), ('deployment_coupon_spread', 'str', 12), ('deployment_years', 'str', 1), ('desk', 'dict', 13), ('execution_margin', 'str', 11), ('funding_contract', 'dict', 32), ('funding_years', 'str', 2), ('incurred_CVA', 'str', 1), ('internal_AAA_initial', 'str', 12), ('leverage_snapshot', 'dict', 1), ('notional', 'str', 9), ('ois', 'str', 12), ('opening_free_cash', 'str', 9), ('opening_legacy_funding', 'str', 9), ('opening_legacy_spread', 'str', 1), ('own_CDS_spread', 'str', 12), ('own_bond_spread', 'str', 12), ('provider_CDS', 'str', 12), ('provider_recovery', 'str', 3), ('quarter', 'str', 4), ('reference_coupon_spread', 'str', 11), ('regulatory', 'dict', 42), ('replacement_margin', 'str', 12), ('replacement_quote', 'dict', 26), ('schema_version', 'str', 30), ('whole_book', 'dict', 10)]\n\n policy dict\n[('accounting', 'dict', 13), ('calendar', 'dict', 14), ('capital', 'dict', 19), ('collections', 'dict', 8), ('csa', 'dict', 7), ('daily_report', 'dict', 7), ('defaults', 'dict', 19), ('execution', 'dict', 3), ('facility', 'dict', 12), ('institutional', 'dict', 10), ('inventory', 'dict', 25), ('name', 'str', 46), ('offset', 'dict', 7), ('opening', 'dict', 10), ('prices', 'dict', 16), ('protection', 'dict', 8), ('prudent_valuation', 'dict', 12), ('reinvestment', 'dict', 9), ('repo', 'dict', 9), ('resource_limits', 'dict', 21), ('rights', 'dict', 12), ('schema_version', 'str', 14), ('source_documents', 'list', 7), ('source_evidence', 'list', 2), ('status', 'str', 151), ('substitution', 'dict', 7)]\n\n case dict\n[('agreements', 'list', 21), ('as_of', 'str', 20), ('bank', 'dict', 13), ('base_currency', 'str', 3), ('book', 'dict', 18), ('collateral', 'list', 2), ('counterparty_constraints', 'list', 3), ('instruments', 'list', 3), ('mandate', 'dict', 4), ('netting_sets', 'list', 4), ('opinions', 'list', 4), ('parties', 'list', 14)]\n\n family dict\n[('axes', 'dict', 5), ('clock', 'dict', 8), ('deployment_contract', 'dict', 24), ('family_id', 'str', 7), ('jurisdiction', 'str', 44), ('parties', 'dict', 5), ('terms', 'dict', 10), ('title', 'str', 55)]\n\n quotes list\nlength 66\n[{'as_of': '2027-09-02', 'id': '157e8cf5a33d362b83926d6b0e6bea27a2f9e6681700623a150a29f36e790213', 'kind': 'hold_capital', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'source_evidence': [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'fixtures/numerical-inputs.json', 'locator': '/actions/hold'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-manda\n\n public_inputs dict\n[('case', 'dict', 12), ('documents', 'dict', 10), ('family', 'dict', 8), ('parameters', 'dict', 30), ('policy', 'dict', 26)]\n\npacket [('as_of', 'str', 10), ('available_events', 'list', 0), ('calculator', 'dict', 10), ('day', 'int', 0), ('event_bindings', 'dict', 0), ('family_id', 'str', 7), ('legal_version', 'int', 0), ('market_version', 'int', 0), ('parent_state_hash', 'str', 64), ('phases', 'list', 3), ('policy', 'dict', 26), ('prior_receipts', 'list', 415), ('public_inputs', 'dict', 5), ('quotes', 'list', 66), ('receipt_window', 'dict', 4), ('revision', 'int', 0), ('run_id', 'str', 32), ('schema_version', 'str', 21), ('state', 'dict', 20)]\n\n\nSTATUS:\nFinished normally at 2026-09-20T09:50:22Z (elapsed=0.09s)","tool_call_id":"call_9a946e58a8fd5e009e38a9ab8ecf0c6a","type":"tool_result"}},{"step":4,"generation":0,"created_at":"2026-09-20T09:53:41.565Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_c7c6cc971e3b5a5a8c0dd3a723026c9b","name":"bash","arguments":"{\"max_output_length\":32000,\"command\":\"python - <<'PY'\\nimport json\\np='/work/data/artifacts/qyaws7fs/'\\ns=json.load(open(p+'state.json'))\\nfor k,v in s.items():\\n if k not in ['lots']: print(k, json.dumps(v,indent=2))\\nPY\"}"},{"id":"call_a22e16da6ce854f99c26f520fce9c0d2","name":"bash","arguments":"{\"max_output_length\":22000,\"command\":\"python - <<'PY'\\nimport json\\np='/work/data/artifacts/qyaws7fs/'\\nd=json.load(open(p+'parameters.json'))\\nfor k in d:\\n if k not in ['allocation']: print(k,json.dumps(d[k],indent=2))\\nPY\"}"},{"id":"call_b845a5fcccb95b84a08de206c80e4ae2","name":"bash","arguments":"{\"max_output_length\":22000,\"command\":\"rg -n 'DAILY_FUNDING|DAILY_CREDIT|DAILY_PROTECTION|funding_profile|credit_xva|quarter_end|projection' /work/data/artifacts/qyaws7fs/documents; python - <<'PY'\\nimport json\\np='/work/data/artifacts/qyaws7fs/'\\nd=json.load(open(p+'policy.json'))\\nfor k in ['calendar','protection','opening','accounting','capital','prices','facility','defaults']:\\n print(k,json.dumps(d[k],indent=2))\\nPY\"}"}],"type":"assistant","usage":{"prompt_tokens":48263,"completion_tokens":323,"total_tokens":48586,"cache_read_tokens":46579}}},{"step":4,"generation":0,"created_at":"2026-09-20T09:53:41.602Z","event":{"content":"STDOUT:\naccepted_action_count 0\naccepted_action_ids []\naccounts {\n  \"cash\": \"123832604.859317781832\",\n  \"claim_allowance\": \"0\",\n  \"contributed_equity\": \"-391053555\",\n  \"deployment_accrued\": \"19437814.846170841304\",\n  \"deployment_principal\": \"990009000\",\n  \"expense_fees\": \"990009\",\n  \"expense_funding\": \"18797129.89327568417\",\n  \"expense_loss\": \"0\",\n  \"facility_debt\": \"0\",\n  \"income_carry\": \"-33376419.767308484527\",\n  \"income_hedge\": \"0\",\n  \"income_mark\": \"0\",\n  \"inventory\": \"267302430\",\n  \"legacy_debt\": \"-990009000\",\n  \"management_deferral\": \"-41581875.436912685824\",\n  \"management_funding_mark\": \"41581875.436912685824\",\n  \"management_hedge_asset\": \"0\",\n  \"management_income_deferral\": \"41581875.436912685824\",\n  \"management_income_hedge\": \"0\",\n  \"management_income_mark\": \"-41581875.436912685824\",\n  \"management_income_reserve\": \"30187093.484686993067\",\n  \"management_xva\": \"-30187093.484686993067\",\n  \"posted_vm\": \"0\",\n  \"received_vm\": \"0\",\n  \"reinvestment_principal\": \"0\",\n  \"repo_debt\": \"0\",\n  \"restricted_cash\": \"0\",\n  \"restricted_collections\": \"0\",\n  \"retained_U\": \"990009000\",\n  \"return_liability\": \"0\",\n  \"sale_financing\": \"-990009000\",\n  \"statutory_derivative_asset\": \"0\",\n  \"statutory_derivative_liability\": \"0\",\n  \"unpaid_payable\": \"-18797129.89327568417\",\n  \"unpaid_receivable\": \"12867116.061819861391\"\n}\napplied_event_ids []\nas_of \"2027-09-02\"\ncontracts {\n  \"DEP_LOAN\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"DEP_LOAN\",\n    \"kind\": \"deployment_loan\",\n    \"maturity_date\": \"2032-06-05\",\n    \"payment_dates\": [\n      \"2027-09-05\",\n      \"2027-12-05\",\n      \"2028-03-05\",\n      \"2028-06-05\",\n      \"2028-09-05\",\n      \"2028-12-05\",\n      \"2029-03-05\",\n      \"2029-06-05\",\n      \"2029-09-05\",\n      \"2029-12-05\",\n      \"2030-03-05\",\n      \"2030-06-05\",\n      \"2030-09-05\",\n      \"2030-12-05\",\n      \"2031-03-05\",\n      \"2031-06-05\",\n      \"2031-09-05\",\n      \"2031-12-05\",\n      \"2032-03-05\",\n      \"2032-06-05\"\n    ],\n    \"source_evidence\": [\n      {\n        \"document_id\": \"SYNTHETIC_PACKET\",\n        \"locator\": \"fictional-executed-agreements\"\n      }\n    ],\n    \"state\": {\n      \"concession_spread\": \"0\",\n      \"concession_start_date\": null,\n      \"last_accrual_date\": \"2027-06-05\",\n      \"matured_principal_received\": \"0\",\n      \"matured_principal_reinvested\": \"0\",\n      \"outstanding_principal\": \"990009000\",\n      \"paid_periods\": [],\n      \"prefunding\": {}\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"borrower_id\": \"BORROWER\",\n      \"coupon_spread\": \"0.0455411592\",\n      \"notional\": \"990009000\",\n      \"ois\": \"0.0356420304\",\n      \"principal\": \"990009000\",\n      \"quarter\": \"0.25\",\n      \"security_contract_id\": \"DEP_SECURITY\"\n    }\n  },\n  \"DEP_SECURITY\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"DEP_SECURITY\",\n    \"kind\": \"deployment_security\",\n    \"maturity_date\": \"2032-06-05\",\n    \"payment_dates\": [],\n    \"source_evidence\": [\n      {\n        \"file\": \"worker/legal-terms.txt\",\n        \"locator\": \"actual-deployment-terms\"\n      },\n      {\n        \"file\": \"worker/docs/desk-runtime-contract.md\",\n        \"locator\": \"## Clock and settlement order\"\n      }\n    ],\n    \"state\": {\n      \"active_lot_id\": \"DEPSEC\",\n      \"collection_batches\": {},\n      \"distributions\": {},\n      \"liquidated_quantity\": \"0\",\n      \"returned\": false,\n      \"rights_chain\": []\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"asset_id\": \"DEPSEC\",\n      \"borrower_id\": \"BORROWER\",\n      \"collateral_issuer_id\": \"CELADON\",\n      \"collateral_relation\": \"independent\",\n      \"contract_id\": \"DEP_SECURITY\",\n      \"coupon_spread\": \"0.0455411592\",\n      \"currency\": \"USD\",\n      \"enforceability\": \"effective\",\n      \"face_per_unit\": \"1\",\n      \"facility\": {\n        \"cash_account_id\": \"CASH_BRANCH\",\n        \"lender_id\": \"FACILITY_LENDER\",\n        \"limit\": \"257402340\",\n        \"spread\": \"0.0108903245\",\n        \"unconditional_by_selected_cutoff\": true\n      },\n      \"initial_operating_cash\": \"123751125\",\n      \"issued\": true,\n      \"legal_form\": \"issued_security_pledge\",\n      \"market_funding_spread\": \"0.0108903245\",\n      \"market_haircut\": \"0.08910333\",\n      \"opening_total_cash\": \"123751125\",\n      \"operating_call\": \"17820162\",\n      \"ownership_basis\": \"pledge\",\n      \"quantity\": \"990009000\",\n      \"restricted_cash\": \"0\",\n      \"return_obligation\": \"identical\",\n      \"reuse_permitted\": false,\n      \"scope\": \"actual_daily_book\",\n      \"source_evidence\": [\n        {\n          \"file\": \"worker/legal-terms.txt\",\n          \"locator\": \"actual-deployment-terms\"\n        },\n        {\n          \"file\": \"worker/docs/desk-runtime-contract.md\",\n          \"locator\": \"## Clock and settlement order\"\n        }\n      ]\n    }\n  },\n  \"FACILITY\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"FACILITY\",\n    \"kind\": \"facility\",\n    \"maturity_date\": \"2047-06-05\",\n    \"payment_dates\": [\n      \"2027-09-05\",\n      \"2027-12-05\",\n      \"2028-03-05\",\n      \"2028-06-05\",\n      \"2028-09-05\",\n      \"2028-12-05\",\n      \"2029-03-05\",\n      \"2029-06-05\",\n      \"2029-09-05\",\n      \"2029-12-05\",\n      \"2030-03-05\",\n      \"2030-06-05\",\n      \"2030-09-05\",\n      \"2030-12-05\",\n      \"2031-03-05\",\n      \"2031-06-05\",\n      \"2031-09-05\",\n      \"2031-12-05\",\n      \"2032-03-05\",\n      \"2032-06-05\",\n      \"2032-09-05\",\n      \"2032-12-05\",\n      \"2033-03-05\",\n      \"2033-06-05\",\n      \"2033-09-05\",\n      \"2033-12-05\",\n      \"2034-03-05\",\n      \"2034-06-05\",\n      \"2034-09-05\",\n      \"2034-12-05\",\n      \"2035-03-05\",\n      \"2035-06-05\",\n      \"2035-09-05\",\n      \"2035-12-05\",\n      \"2036-03-05\",\n      \"2036-06-05\",\n      \"2036-09-05\",\n      \"2036-12-05\",\n      \"2037-03-05\",\n      \"2037-06-05\",\n      \"2037-09-05\",\n      \"2037-12-05\",\n      \"2038-03-05\",\n      \"2038-06-05\",\n      \"2038-09-05\",\n      \"2038-12-05\",\n      \"2039-03-05\",\n      \"2039-06-05\",\n      \"2039-09-05\",\n      \"2039-12-05\",\n      \"2040-03-05\",\n      \"2040-06-05\",\n      \"2040-09-05\",\n      \"2040-12-05\",\n      \"2041-03-05\",\n      \"2041-06-05\",\n      \"2041-09-05\",\n      \"2041-12-05\",\n      \"2042-03-05\",\n      \"2042-06-05\",\n      \"2042-09-05\",\n      \"2042-12-05\",\n      \"2043-03-05\",\n      \"2043-06-05\",\n      \"2043-09-05\",\n      \"2043-12-05\",\n      \"2044-03-05\",\n      \"2044-06-05\",\n      \"2044-09-05\",\n      \"2044-12-05\",\n      \"2045-03-05\",\n      \"2045-06-05\",\n      \"2045-09-05\",\n      \"2045-12-05\",\n      \"2046-03-05\",\n      \"2046-06-05\",\n      \"2046-09-05\",\n      \"2046-12-05\",\n      \"2047-03-05\",\n      \"2047-06-05\"\n    ],\n    \"source_evidence\": [\n      {\n        \"file\": \"worker/legal-terms.txt\",\n        \"locator\": \"actual-deployment-terms\"\n      },\n      {\n        \"file\": \"worker/docs/desk-runtime-contract.md\",\n        \"locator\": \"## Clock and settlement order\"\n      }\n    ],\n    \"state\": {\n      \"interest_accrued\": \"0\",\n      \"interest_paid\": \"0\",\n      \"last_accrual_date\": \"2027-09-02\",\n      \"outstanding_principal\": \"0\",\n      \"paid_periods\": []\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"cash_account_id\": \"CASH_BRANCH\",\n      \"day_count\": \"ACT/365F\",\n      \"fee\": \"0\",\n      \"initial_own_bond_spread\": \"0.0064352412\",\n      \"lender_id\": \"FACILITY_LENDER\",\n      \"limit\": \"257402340\",\n      \"ois\": \"0.0356420304\",\n      \"spread\": \"0.0108903245\",\n      \"unconditional_by_selected_cutoff\": true,\n      \"year_days\": \"365\"\n    }\n  },\n  \"FUND_TRS\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"FUND_TRS\",\n    \"kind\": \"funding_trs\",\n    \"maturity_date\": \"2047-06-05\",\n    \"payment_dates\": [\n      \"2027-09-05\",\n      \"2027-12-05\",\n      \"2028-03-05\",\n      \"2028-06-05\",\n      \"2028-09-05\",\n      \"2028-12-05\",\n      \"2029-03-05\",\n      \"2029-06-05\",\n      \"2029-09-05\",\n      \"2029-12-05\",\n      \"2030-03-05\",\n      \"2030-06-05\",\n      \"2030-09-05\",\n      \"2030-12-05\",\n      \"2031-03-05\",\n      \"2031-06-05\",\n      \"2031-09-05\",\n      \"2031-12-05\",\n      \"2032-03-05\",\n      \"2032-06-05\",\n      \"2032-09-05\",\n      \"2032-12-05\",\n      \"2033-03-05\",\n      \"2033-06-05\",\n      \"2033-09-05\",\n      \"2033-12-05\",\n      \"2034-03-05\",\n      \"2034-06-05\",\n      \"2034-09-05\",\n      \"2034-12-05\",\n      \"2035-03-05\",\n      \"2035-06-05\",\n      \"2035-09-05\",\n      \"2035-12-05\",\n      \"2036-03-05\",\n      \"2036-06-05\",\n      \"2036-09-05\",\n      \"2036-12-05\",\n      \"2037-03-05\",\n      \"2037-06-05\",\n      \"2037-09-05\",\n      \"2037-12-05\",\n      \"2038-03-05\",\n      \"2038-06-05\",\n      \"2038-09-05\",\n      \"2038-12-05\",\n      \"2039-03-05\",\n      \"2039-06-05\",\n      \"2039-09-05\",\n      \"2039-12-05\",\n      \"2040-03-05\",\n      \"2040-06-05\",\n      \"2040-09-05\",\n      \"2040-12-05\",\n      \"2041-03-05\",\n      \"2041-06-05\",\n      \"2041-09-05\",\n      \"2041-12-05\",\n      \"2042-03-05\",\n      \"2042-06-05\",\n      \"2042-09-05\",\n      \"2042-12-05\",\n      \"2043-03-05\",\n      \"2043-06-05\",\n      \"2043-09-05\",\n      \"2043-12-05\",\n      \"2044-03-05\",\n      \"2044-06-05\",\n      \"2044-09-05\",\n      \"2044-12-05\",\n      \"2045-03-05\",\n      \"2045-06-05\",\n      \"2045-09-05\",\n      \"2045-12-05\",\n      \"2046-03-05\",\n      \"2046-06-05\",\n      \"2046-09-05\",\n      \"2046-12-05\",\n      \"2047-03-05\",\n      \"2047-06-05\"\n    ],\n    \"source_evidence\": [\n      {\n        \"document_id\": \"SYNTHETIC_PACKET\",\n        \"locator\": \"fictional-executed-agreements\"\n      }\n    ],\n    \"state\": {\n      \"checkpoint_attribution\": {\n        \"carry\": \"33376419.767308484527\",\n        \"cash_funding_drag\": \"18797129.89327568417\",\n        \"claim_loss\": \"0\",\n        \"closing_as_of\": \"2027-09-02\",\n        \"deferral_observability\": \"-41581875.436912685824\",\n        \"deferral_theta\": \"0\",\n        \"funding_action\": \"41581875.436912685824\",\n        \"funding_mtm\": \"0\",\n        \"funding_theta\": \"0\",\n        \"hedge_accrual\": \"0\",\n        \"hedge_cash\": \"0\",\n        \"hedge_mark\": \"0\",\n        \"management_equity_change\": \"374455742.38934580729\",\n        \"opening_as_of\": \"2027-06-05\",\n        \"operating_cost\": \"990009\",\n        \"overlay_equity_change\": \"-30187093.484686993067\",\n        \"overlay_journal_pnl\": \"-30187093.484686993067\",\n        \"owner_contributions\": \"391053555\",\n        \"pnl_total\": \"-16597812.61065419271\",\n        \"reserve_action\": \"-30187093.484686993067\",\n        \"reserve_mtm\": \"0\",\n        \"reserve_theta\": \"0\",\n        \"scope\": \"Actual journal P&L. Reserve theta is old-market elapsed-time repricing; MTM changes only current market inputs; action is received legal, settlement and accepted-position change, never a residual accounting plug. Cash and debt principal are excluded.\",\n        \"statutory_equity_change\": \"404642835.874032800357\",\n        \"statutory_journal_pnl\": \"13589280.874032800357\",\n        \"statutory_mark\": \"0\",\n        \"tie_difference\": \"0\"\n      },\n      \"financing_coupon_accrued\": \"10193163.186945957065\",\n      \"last_accrual_date\": \"2027-09-02\",\n      \"last_reset_date\": \"2027-06-05\",\n      \"last_reset_price\": \"1\",\n      \"netting_id\": \"FUNDING_P\",\n      \"observability_history\": [\n        {\n          \"day\": -89,\n          \"observable\": false\n        }\n      ],\n      \"paid_periods\": [],\n      \"principal\": \"990009000\",\n      \"reference_coupon_accrued\": \"10904336.156938392391\",\n      \"reset_periods\": [],\n      \"unsettled_stub\": \"0\",\n      \"vm_balance\": \"0\"\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"NICA\": \"0\",\n      \"SA_CVA_approval\": false,\n      \"classification_evidence\": {\n        \"file\": \"docs/exhibit-fields.md\",\n        \"locator\": \"fictional-classification\"\n      },\n      \"contract_id\": \"FUND_TRS\",\n      \"currency\": \"USD\",\n      \"full_value_reset\": false,\n      \"last_reset_price\": \"1\",\n      \"locked_financing_spread\": \"0.0069303218\",\n      \"minimum_transfer_amount\": \"0\",\n      \"mpor_floor\": {\n        \"illiquid_or_hard_to_replace\": true,\n        \"non_centrally_cleared\": true,\n        \"over_5000_transactions\": false,\n        \"remargin_interval_days\": \"1\",\n        \"repeated_disputes\": false,\n        \"source_evidence\": {\n          \"file\": \"docs/reference-input-contract.md\",\n          \"locator\": \"mpor-floor-facts\"\n        }\n      },\n      \"netting_set_id\": \"FUNDING_P\",\n      \"next_price_settlement_years\": \"0.25\",\n      \"notional\": \"990009000\",\n      \"ois\": \"0.0356420304\",\n      \"ordinary_BA_maturity_floor_applies\": true,\n      \"original_reference_rating\": \"AAA\",\n      \"provider_ECRA_rating\": \"A\",\n      \"provider_bank_eligible\": true,\n      \"provider_credit_quality\": \"IG\",\n      \"provider_due_diligence_uplift\": false,\n      \"provider_id\": \"P\",\n      \"provider_recovery\": \"0.4\",\n      \"provider_sector\": \"financial\",\n      \"quantity\": \"990009000\",\n      \"quarter\": \"0.25\",\n      \"ratings_permitted\": true,\n      \"reference_coupon_spread\": \"0.009900578\",\n      \"reference_evidence\": {\n        \"file\": \"docs/exhibit-fields.md\",\n        \"locator\": \"fictional-executed-agreements\"\n      },\n      \"reference_id\": \"U\",\n      \"reference_issuer_kind\": \"other\",\n      \"reference_price_basis\": \"USD per unit of original principal; final ex-distribution price zero\",\n      \"regulatory_classification\": \"Credit-only SA-CCR plus LEV30 written credit under fictional classification letter; failed-sale IFRS retention reconciled separately\",\n      \"remaining_years\": \"20\",\n      \"replacement_quote\": {\n        \"closeout_basis\": \"Full financing and return obligations under matched replacement terms, no own-spread-linked termination payment\",\n        \"contract_id\": \"FUND_TRS\",\n        \"conversion\": \"remaining_quarterly_annuity\",\n        \"conversion_rate\": \"0.0356420304\",\n        \"currency\": \"USD\",\n        \"executable\": true,\n        \"id\": \"SYN-REPL-FUND-FUND_01-S1\",\n        \"includes_old_reference_adjustment\": false,\n        \"locked_financing_spread\": \"0.0069303218\",\n        \"notional\": \"990009000\",\n        \"off_quarter_convention\": \"fractional_remaining_annuity_clean_quote\",\n        \"old_reference_adjustment_upfront\": \"0\",\n        \"provider_id\": \"P\",\n        \"quantity\": \"990009000\",\n        \"quarter\": \"0.25\",\n        \"quote_basis\": \"reset_to_today\",\n        \"quoted_at\": \"2027-06-05\",\n        \"quoted_base_financing_spread\": \"0.009900825\",\n        \"reference_id\": \"U\",\n        \"remaining_years\": \"20\",\n        \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n        \"reset_price_convention\": \"Current reference price; old reference-price return is excluded from quoted margin\",\n        \"roll_convention\": \"Same surviving contract, remaining maturity rolls down without renewal; margin beta applies only to stated synthetic parallel scenarios\",\n        \"scenario_margin_beta\": \"1\",\n        \"source_evidence\": {\n          \"file\": \"docs/exhibit-fields.md\",\n          \"locator\": \"fictional-quote-board\"\n        },\n        \"status\": \"Fictional binding quote convention for this educational instance, not an observed market quote\"\n      },\n      \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n      \"stub\": \"0\",\n      \"threshold\": \"0\"\n    }\n  },\n  \"LEGACY\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"LEGACY\",\n    \"kind\": \"legacy\",\n    \"maturity_date\": \"2047-06-05\",\n    \"payment_dates\": [\n      \"2027-09-05\",\n      \"2027-12-05\",\n      \"2028-03-05\",\n      \"2028-06-05\",\n      \"2028-09-05\",\n      \"2028-12-05\",\n      \"2029-03-05\",\n      \"2029-06-05\",\n      \"2029-09-05\",\n      \"2029-12-05\",\n      \"2030-03-05\",\n      \"2030-06-05\",\n      \"2030-09-05\",\n      \"2030-12-05\",\n      \"2031-03-05\",\n      \"2031-06-05\",\n      \"2031-09-05\",\n      \"2031-12-05\",\n      \"2032-03-05\",\n      \"2032-06-05\",\n      \"2032-09-05\",\n      \"2032-12-05\",\n      \"2033-03-05\",\n      \"2033-06-05\",\n      \"2033-09-05\",\n      \"2033-12-05\",\n      \"2034-03-05\",\n      \"2034-06-05\",\n      \"2034-09-05\",\n      \"2034-12-05\",\n      \"2035-03-05\",\n      \"2035-06-05\",\n      \"2035-09-05\",\n      \"2035-12-05\",\n      \"2036-03-05\",\n      \"2036-06-05\",\n      \"2036-09-05\",\n      \"2036-12-05\",\n      \"2037-03-05\",\n      \"2037-06-05\",\n      \"2037-09-05\",\n      \"2037-12-05\",\n      \"2038-03-05\",\n      \"2038-06-05\",\n      \"2038-09-05\",\n      \"2038-12-05\",\n      \"2039-03-05\",\n      \"2039-06-05\",\n      \"2039-09-05\",\n      \"2039-12-05\",\n      \"2040-03-05\",\n      \"2040-06-05\",\n      \"2040-09-05\",\n      \"2040-12-05\",\n      \"2041-03-05\",\n      \"2041-06-05\",\n      \"2041-09-05\",\n      \"2041-12-05\",\n      \"2042-03-05\",\n      \"2042-06-05\",\n      \"2042-09-05\",\n      \"2042-12-05\",\n      \"2043-03-05\",\n      \"2043-06-05\",\n      \"2043-09-05\",\n      \"2043-12-05\",\n      \"2044-03-05\",\n      \"2044-06-05\",\n      \"2044-09-05\",\n      \"2044-12-05\",\n      \"2045-03-05\",\n      \"2045-06-05\",\n      \"2045-09-05\",\n      \"2045-12-05\",\n      \"2046-03-05\",\n      \"2046-06-05\",\n      \"2046-09-05\",\n      \"2046-12-05\",\n      \"2047-03-05\",\n      \"2047-06-05\"\n    ],\n    \"source_evidence\": [\n      {\n        \"document_id\": \"SYNTHETIC_PACKET\",\n        \"locator\": \"fictional-ledgers\"\n      }\n    ],\n    \"state\": {\n      \"interest_accrued\": \"8603966.706329727105\",\n      \"interest_paid\": \"0\",\n      \"last_accrual_date\": \"2027-09-02\",\n      \"outstanding_principal\": \"990009000\",\n      \"paid_periods\": []\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"day_count\": \"ACT/365F\",\n      \"ois\": \"0.0356420304\",\n      \"principal\": \"990009000\",\n      \"quarter\": \"0.25\",\n      \"spread\": \"0\"\n    }\n  },\n  \"inventory:L1\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"inventory:L1\",\n    \"kind\": \"inventory_security\",\n    \"maturity_date\": \"2032-06-05\",\n    \"payment_dates\": [\n      \"2027-09-05\",\n      \"2027-12-05\",\n      \"2028-03-05\",\n      \"2028-06-05\",\n      \"2028-09-05\",\n      \"2028-12-05\",\n      \"2029-03-05\",\n      \"2029-06-05\",\n      \"2029-09-05\",\n      \"2029-12-05\",\n      \"2030-03-05\",\n      \"2030-06-05\",\n      \"2030-09-05\",\n      \"2030-12-05\",\n      \"2031-03-05\",\n      \"2031-06-05\",\n      \"2031-09-05\",\n      \"2031-12-05\",\n      \"2032-03-05\",\n      \"2032-06-05\"\n    ],\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    },\n    \"state\": {\n      \"interest_accrued\": \"1024059.080807722957\",\n      \"last_accrual_date\": \"2027-09-02\",\n      \"outstanding_principal\": \"118801080\",\n      \"paid_periods\": []\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"coupon_spread\": \"0\",\n      \"day_count\": \"quarter_actual_fraction\",\n      \"instrument_id\": \"L1\",\n      \"lot_id\": \"L1\",\n      \"ois\": \"0.0356420304\",\n      \"principal\": \"118801080\",\n      \"quarter\": \"0.25\"\n    }\n  },\n  \"inventory:L2\": {\n    \"effective_date\": \"2027-06-05\",\n    \"execution_date\": \"2027-06-05\",\n    \"id\": \"inventory:L2\",\n    \"kind\": \"inventory_security\",\n    \"maturity_date\": \"2032-06-05\",\n    \"payment_dates\": [\n      \"2027-09-05\",\n      \"2027-12-05\",\n      \"2028-03-05\",\n      \"2028-06-05\",\n      \"2028-09-05\",\n      \"2028-12-05\",\n      \"2029-03-05\",\n      \"2029-06-05\",\n      \"2029-09-05\",\n      \"2029-12-05\",\n      \"2030-03-05\",\n      \"2030-06-05\",\n      \"2030-09-05\",\n      \"2030-12-05\",\n      \"2031-03-05\",\n      \"2031-06-05\",\n      \"2031-09-05\",\n      \"2031-12-05\",\n      \"2032-03-05\",\n      \"2032-06-05\"\n    ],\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    },\n    \"state\": {\n      \"interest_accrued\": \"938720.824073746043\",\n      \"last_accrual_date\": \"2027-09-02\",\n      \"outstanding_principal\": \"108900990\",\n      \"paid_periods\": []\n    },\n    \"status\": \"active\",\n    \"terms\": {\n      \"coupon_spread\": \"0\",\n      \"day_count\": \"quarter_actual_fraction\",\n      \"instrument_id\": \"L2\",\n      \"lot_id\": \"L2\",\n      \"ois\": \"0.0356420304\",\n      \"principal\": \"108900990\",\n      \"quarter\": \"0.25\"\n    }\n  }\n}\nday 0\nfamily_id \"FUND_01\"\nfinancial_time \"0.2418478260869565217391304347826086956522\"\nlast_receipt_hash \"0088a4f7766fb2319151fe963f9e7fba59db8bda2eb064b7dfce91cc9517be3c\"\nlast_receipt_sequence 415\nlegal {\n  \"approvals\": {},\n  \"decisions\": {},\n  \"defaults\": {\n    \"borrower\": false,\n    \"provider\": false,\n    \"reference_issuer\": false\n  },\n  \"disputes\": {},\n  \"facility_status\": \"available\",\n  \"observable\": false,\n  \"rights\": {\n    \"delivery|contract|\": \"effective\",\n    \"enforceability|contract|\": \"effective\",\n    \"issuance|contract|\": \"effective\",\n    \"remittance|contract|\": \"denied\",\n    \"restitution|borrower_only|\": \"conditional\",\n    \"reuse|contract|\": \"denied\",\n    \"substitution|contract|\": \"conditional\"\n  },\n  \"substitution_requests\": {},\n  \"transfer_blocks\": {\n    \"cash_remittance\": false,\n    \"custody_delivery\": false\n  }\n}\nlegal_version 0\nmarket {\n  \"em_move\": \"0\",\n  \"funding_move\": \"0\",\n  \"market_open\": true,\n  \"own_bond_spread\": \"0.0064352412\",\n  \"own_cds_spread\": \"0.0029701437\",\n  \"provider_cds\": \"0.0084151402\",\n  \"ratings\": {\n    \"borrower\": \"BB\",\n    \"deployment_collateral\": \"BB\",\n    \"funding_reference\": \"AAA\",\n    \"provider\": \"A\"\n  },\n  \"reference_move\": \"0\"\n}\nmarket_version 0\nobligations {}\npending []\nrevision 0\nschema_version \"desk-state.v3\"\n\n\nSTATUS:\nFinished normally at 2026-09-20T09:53:41Z (elapsed=0.03s)","tool_call_id":"call_c7c6cc971e3b5a5a8c0dd3a723026c9b","type":"tool_result"}},{"step":4,"generation":0,"created_at":"2026-09-20T09:53:41.612Z","event":{"content":"STDOUT:\nactions {\n  \"CDS\": {\n    \"CCR_qualified\": true,\n    \"CCR_scope\": \"CRE51.16(1) exception only for qualified cover\",\n    \"CVA_designation_eligible\": true,\n    \"CVA_scope\": \"MAR50 provider exposure calculated by regular SA-CCR for CVA method annex despite CCR purchased-protection exception\",\n    \"annual_administration_fee\": \"24750.225\",\n    \"baseline_executed\": false,\n    \"covered_events\": [\n      \"failure_to_pay\",\n      \"bankruptcy\",\n      \"restructuring\"\n    ],\n    \"default_correlation\": \"0\",\n    \"direct_irrevocable_unconditional\": true,\n    \"effective_business_days\": \"2\",\n    \"executable\": true,\n    \"fee\": \"247502.25\",\n    \"guarantee_equivalent\": true,\n    \"hedge_CVA_gap_spread_move\": \"0.0009900658\",\n    \"hedge_economic_term\": \"Five-year fixed-notional cash-settled CDS on P; no automatic renewal and no protection after expiry\",\n    \"hedge_provider_CDS\": \"0.0039603092\",\n    \"hedge_provider_CSA\": \"Executed two-way cash VM, 20BD MPOR\",\n    \"hedge_provider_CVA_method\": \"desk_annex_normal_saccr\",\n    \"hedge_provider_mpor_days\": \"20\",\n    \"hedge_provider_recovery\": \"0.4\",\n    \"hedge_provider_short_term_exception\": false,\n    \"margin_terms\": {\n      \"NICA\": \"0\",\n      \"minimum_transfer_amount\": \"0\",\n      \"mpor_floor\": {\n        \"illiquid_or_hard_to_replace\": true,\n        \"non_centrally_cleared\": true,\n        \"over_5000_transactions\": false,\n        \"remargin_interval_days\": \"1\",\n        \"repeated_disputes\": false,\n        \"source_evidence\": {\n          \"file\": \"docs/reference-input-contract.md\",\n          \"locator\": \"mpor-floor-facts\"\n        }\n      },\n      \"threshold\": \"0\"\n    },\n    \"notional\": \"316802880\",\n    \"premium\": \"0.0084151402\",\n    \"protection_provider_id\": \"H\",\n    \"provider_independent\": true,\n    \"quote_id\": \"SYN-CDS-FUND_01-S1\",\n    \"quoted_at\": \"2027-06-05\",\n    \"recognition_terms\": {\n      \"cash_settlement_valuation_robust\": true,\n      \"credit_event_determination_independent\": true,\n      \"grace_period_covered\": true,\n      \"legally_enforceable\": true,\n      \"protection_provider_eligible\": true,\n      \"reference_obligation_not_senior\": true,\n      \"source_evidence\": {\n        \"file\": \"docs/reference-input-contract.md\",\n        \"locator\": \"protection-recognition-facts\"\n      },\n      \"underlying_contract_id\": \"FUND_TRS\"\n    },\n    \"reference_provider_id\": \"P\",\n    \"replacement_quote\": {\n      \"base_market_premium\": \"0.0084151402\",\n      \"conversion\": \"cds_spread_difference_remaining_annuity\",\n      \"executable\": true,\n      \"id\": \"SYN-CDS-ROLL-FUND_01-S1\",\n      \"locked_premium\": \"0.0084151402\",\n      \"notional\": \"316802880\",\n      \"protection_provider_id\": \"H\",\n      \"quoted_at\": \"2027-06-05\",\n      \"reference_provider_id\": \"P\",\n      \"remaining_years\": \"4\",\n      \"source_evidence\": {\n        \"file\": \"docs/exhibit-fields.md\",\n        \"locator\": \"fictional-quote-board\"\n      },\n      \"stressed_market_premium\": \"0.0168302804\"\n    },\n    \"same_currency\": true,\n    \"same_obligor_cross_default\": true,\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    },\n    \"tenor_starts\": \"execution\",\n    \"timely_cash_settlement\": true,\n    \"undesignated_market_risk_basis\": \"Synthetic separately allocated trading-book stress capital, not a derived MAR10-40 minimum; zero in designated branch only under eligible CVA purpose\",\n    \"undesignated_market_risk_capital\": \"495004.5\",\n    \"year1_quote_clock\": \"One year after CDS execution; actual remaining CDS term is four years\",\n    \"years\": \"5\"\n  },\n  \"CSA\": {\n    \"annual_administration_fee\": \"24750.225\",\n    \"annual_commitment_fee\": \"49500.45\",\n    \"baseline_executed\": false,\n    \"cost_scope\": \"Deterministic stress price, not probability-weighted expected value\",\n    \"effective_business_days\": \"2\",\n    \"executable\": true,\n    \"facility_commitment_rate\": \"0.0009900752\",\n    \"facility_draw_ois\": \"0.0356420304\",\n    \"facility_limit\": \"99000900\",\n    \"facility_repayment_source\": \"Posted cash VM returned after stress interval; base book cash is not silently this separate snapshot buffer\",\n    \"facility_spread\": \"0.0148506015\",\n    \"facility_upfront_fee\": \"99000.9\",\n    \"fee\": \"990009\",\n    \"full_mark_coverage\": true,\n    \"leverage_vm\": {\n      \"cash_settled\": true,\n      \"daily_exchange\": true,\n      \"full_mark_exchange\": true,\n      \"non_segregated\": true,\n      \"same_currency\": true,\n      \"single_enforceable_master\": true,\n      \"source_evidence\": {\n        \"file\": \"docs/reference-input-contract.md\",\n        \"locator\": \"leverage-recognition-facts\"\n      }\n    },\n    \"liquidity_buffer\": \"19800180\",\n    \"margin_remuneration_spread\": \"0\",\n    \"quote_id\": \"SYN-CSA-FUND_01-S1\",\n    \"quoted_at\": \"2027-06-05\",\n    \"rehypothecation_allowed\": true,\n    \"requires\": \"Signed bilateral daily cash VM CSA and enforceability opinion\",\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    },\n    \"stress_days\": \"30\",\n    \"stress_funding_move\": \"-0.009900736\",\n    \"stress_scenario_probability\": \"1\",\n    \"two_way\": true\n  },\n  \"hold\": {\n    \"action_id\": \"hold\",\n    \"description\": \"Keep existing contracts and capital; no imagined cash release or forced refinancing\",\n    \"effective_business_days\": \"0\",\n    \"executable\": true,\n    \"fee\": \"0\",\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    }\n  },\n  \"netting\": {\n    \"baseline_executed\": false,\n    \"covered_trade_ids\": [\n      \"FUND_TRS\",\n      \"OFFSET_TRS\"\n    ],\n    \"effective_business_days\": \"30\",\n    \"executable\": true,\n    \"fee\": \"742506.75\",\n    \"legal_status\": \"Pending until all signed opinions and novation confirmations delivered\",\n    \"master_id\": \"MASTER_P_CONSOLIDATED\",\n    \"opinion_delivered_at_execution\": true,\n    \"opinion_jurisdictions\": [\n      \"Meridian home law\",\n      \"P insolvency law\"\n    ],\n    \"other_trade\": {\n      \"contract_id\": \"OFFSET_TRS\",\n      \"credit_delta\": \"1\",\n      \"netting_set_id\": \"OFFSET_P\",\n      \"notional\": \"495004500\",\n      \"provider_id\": \"P\",\n      \"quantity\": \"495004500\",\n      \"quote\": {\n        \"contract_id\": \"OFFSET_TRS\",\n        \"conversion\": \"upfront_implied_spread_remaining_annuity\",\n        \"executable\": true,\n        \"id\": \"SYN-OFFSET-FUND_01-S1\",\n        \"notional\": \"495004500\",\n        \"provider_id\": \"P\",\n        \"quantity\": \"495004500\",\n        \"quoted_at\": \"2027-06-05\",\n        \"quoted_upfront\": \"-49500450\",\n        \"reference_id\": \"U\",\n        \"remaining_years\": \"20\",\n        \"scenario_margin_beta\": \"0\",\n        \"source_evidence\": {\n          \"file\": \"docs/exhibit-fields.md\",\n          \"locator\": \"fictional-quote-board\"\n        }\n      },\n      \"reference_id\": \"U\",\n      \"remaining_years\": \"20\",\n      \"role\": \"total_return_payer\"\n    },\n    \"quote_id\": \"SYN-NETTING-FUND_01-S1\",\n    \"quoted_at\": \"2027-06-05\",\n    \"same_provider_required\": true,\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    }\n  },\n  \"substitute\": {\n    \"annual_spread_concession\": \"0.0089108784\",\n    \"baseline_executed\": false,\n    \"effective_business_days\": \"2\",\n    \"eligibility_source_evidence\": {\n      \"file\": \"docs/reference-input-contract.md\",\n      \"locator\": \"substitution-eligibility\"\n    },\n    \"executable\": true,\n    \"original_years\": \"5\",\n    \"quote_id\": \"SYN-SUBSTITUTE-FUND_01-S1\",\n    \"quoted_at\": \"2027-06-05\",\n    \"replacement_coupon_spread\": \"0.009900578\",\n    \"replacement_credit_move\": \"0\",\n    \"replacement_enforceable\": true,\n    \"replacement_issue_rating\": \"AAA\",\n    \"replacement_issued\": true,\n    \"replacement_issuer\": \"FUND_01 independent substitution issuer series 1\",\n    \"replacement_issuer_kind\": \"other\",\n    \"replacement_market_liquid\": true,\n    \"replacement_material_positive_correlation\": false,\n    \"replacement_quantity\": \"990009000\",\n    \"replacement_residual_years\": \"5\",\n    \"replacement_same_currency\": true,\n    \"requires\": \"Signed issuer-independent AAA collateral substitution, custody control and daily revaluation\",\n    \"reversal_effective_business_days\": \"2\",\n    \"source_evidence\": {\n      \"file\": \"docs/exhibit-fields.md\",\n      \"locator\": \"fictional-actions\"\n    },\n    \"unwind_fee\": \"247502.25\",\n    \"upfront_fee\": \"990009\"\n  }\n}\nbook {\n  \"TRS_has_no_principal_exchange\": true,\n  \"funding_principal_source\": \"identified_asset_sale\"\n}\ncurrency \"USD\"\nday_one_accounting {\n  \"base_internal_addon_observable\": false,\n  \"service_fee_treatment\": \"inception_consumed_service_expense\"\n}\ndeployment_coupon_spread \"0.0455411592\"\ndeployment_years \"5\"\ndesk {\n  \"CSA_closeout_gap_funding_move\": \"0.0024750755\",\n  \"CVA_KVA_survival\": \"default_weighted_cva_contractual_kva\",\n  \"CVA_default_grid\": \"quarter_end_constant_cds_lgd\",\n  \"accounting_scope\": \"Retained U and financing liability under IFRS; management mark and two pots bridged out unless independent unit recognition supplied\",\n  \"action_timing\": \"business_day_event_grid_next_quarter_payment\",\n  \"annual_schedule\": \"Years zero through twenty, plus every quarterly observation and remaining KVA; zero scheduled core exposures are separate from unresolved settlements.\",\n  \"capital_sampling\": \"beginning_interval_end_payment\",\n  \"component_pricing_scope\": \"All K7 NPVs below are standalone component values, not all-in book profit or cash capital releases. Whole-book max constraints are recomputed separately.\",\n  \"day1_deferral_policy\": \"frozen_pricing_annuity_management_deferral\",\n  \"day1_fee\": \"990009\",\n  \"discount_convention\": \"nominal_ois_compounded_contract_quarter\",\n  \"equity_hurdle\": \"0.10\",\n  \"funding_KVA_scope\": \"Standalone CCR+CVA component, not bank max-constraint KVA\"\n}\nexecution_margin \"0.004950172\"\nfunding_contract {\n  \"NICA\": \"0\",\n  \"SA_CVA_approval\": false,\n  \"classification_evidence\": {\n    \"file\": \"docs/exhibit-fields.md\",\n    \"locator\": \"fictional-classification\"\n  },\n  \"contract_id\": \"FUND_TRS\",\n  \"currency\": \"USD\",\n  \"full_value_reset\": false,\n  \"last_reset_price\": \"1\",\n  \"locked_financing_spread\": \"0.0069303218\",\n  \"minimum_transfer_amount\": \"0\",\n  \"mpor_floor\": {\n    \"illiquid_or_hard_to_replace\": true,\n    \"non_centrally_cleared\": true,\n    \"over_5000_transactions\": false,\n    \"remargin_interval_days\": \"1\",\n    \"repeated_disputes\": false,\n    \"source_evidence\": {\n      \"file\": \"docs/reference-input-contract.md\",\n      \"locator\": \"mpor-floor-facts\"\n    }\n  },\n  \"netting_set_id\": \"FUNDING_P\",\n  \"next_price_settlement_years\": \"0.25\",\n  \"notional\": \"990009000\",\n  \"ordinary_BA_maturity_floor_applies\": true,\n  \"original_reference_rating\": \"AAA\",\n  \"provider_ECRA_rating\": \"A\",\n  \"provider_bank_eligible\": true,\n  \"provider_credit_quality\": \"IG\",\n  \"provider_due_diligence_uplift\": false,\n  \"provider_id\": \"P\",\n  \"provider_sector\": \"financial\",\n  \"quantity\": \"990009000\",\n  \"ratings_permitted\": true,\n  \"reference_evidence\": {\n    \"file\": \"docs/exhibit-fields.md\",\n    \"locator\": \"fictional-executed-agreements\"\n  },\n  \"reference_id\": \"U\",\n  \"reference_issuer_kind\": \"other\",\n  \"reference_price_basis\": \"USD per unit of original principal; final ex-distribution price zero\",\n  \"regulatory_classification\": \"Credit-only SA-CCR plus LEV30 written credit under fictional classification letter; failed-sale IFRS retention reconciled separately\",\n  \"remaining_years\": \"20\",\n  \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n  \"stub\": \"0\",\n  \"threshold\": \"0\"\n}\nfunding_years \"20\"\nincurred_CVA \"0\"\ninternal_AAA_initial \"0.0019801498\"\nleverage_snapshot {\n  \"use_30_35_PFE_exclusion\": true\n}\nnotional \"990009000\"\nois \"0.0356420304\"\nopening_free_cash \"123751125\"\nopening_legacy_funding \"990009000\"\nopening_legacy_spread \"0\"\nown_CDS_spread \"0.0029701437\"\nown_bond_spread \"0.0064352412\"\nprovider_CDS \"0.0084151402\"\nprovider_recovery \"0.4\"\nquarter \"0.25\"\nreference_coupon_spread \"0.009900578\"\nregulatory {\n  \"AAA_other_haircuts\": {\n    \"over_10\": \"0.12\",\n    \"up_to_1\": \"0.01\",\n    \"up_to_10\": \"0.06\",\n    \"up_to_3\": \"0.03\",\n    \"up_to_5\": \"0.04\"\n  },\n  \"AAA_securitisation_haircuts\": {\n    \"over_10\": \"0.16\",\n    \"up_to_1\": \"0.02\",\n    \"up_to_10\": \"0.16\",\n    \"up_to_3\": \"0.08\",\n    \"up_to_5\": \"0.08\"\n  },\n  \"AAA_sovereign_haircuts\": {\n    \"over_10\": \"0.04\",\n    \"up_to_1\": \"0.005\",\n    \"up_to_10\": \"0.04\",\n    \"up_to_3\": \"0.02\",\n    \"up_to_5\": \"0.02\"\n  },\n  \"BA_beta\": \"0.25\",\n  \"BA_discount_decay\": \"0.05\",\n  \"BA_financial_IG_rw\": \"0.05\",\n  \"BA_one_year_floor\": \"1\",\n  \"BA_rho\": \"0.5\",\n  \"BA_scalar\": \"0.65\",\n  \"BA_short_term_exception\": false,\n  \"BA_short_term_exception_evidence\": \"None: original twenty-year TRS and five-year CDS are not a selected short-term exception\",\n  \"BBB_other_haircuts\": {\n    \"over_10\": \"0.20\",\n    \"up_to_1\": \"0.02\",\n    \"up_to_10\": \"0.12\",\n    \"up_to_3\": \"0.04\",\n    \"up_to_5\": \"0.06\"\n  },\n  \"BBB_securitisation_haircuts\": {\n    \"over_10\": \"0.24\",\n    \"up_to_1\": \"0.04\",\n    \"up_to_10\": \"0.24\",\n    \"up_to_3\": \"0.12\",\n    \"up_to_5\": \"0.12\"\n  },\n  \"BBB_sovereign_haircuts\": {\n    \"over_10\": \"0.06\",\n    \"up_to_1\": \"0.01\",\n    \"up_to_10\": \"0.06\",\n    \"up_to_3\": \"0.03\",\n    \"up_to_5\": \"0.03\"\n  },\n  \"BB_sovereign_haircut\": \"0.15\",\n  \"CVA_RWA_multiplier\": \"12.5\",\n  \"FX_haircut\": \"0.08\",\n  \"IR_sf\": \"0.005\",\n  \"alpha\": \"1.4\",\n  \"bespoke_mpor_days\": \"20\",\n  \"business_days\": \"250\",\n  \"credit_protection_original_minimum\": \"1\",\n  \"credit_rho\": \"0.5\",\n  \"deployment_rw\": \"1\",\n  \"gold_haircut\": \"0.20\",\n  \"haircut_revaluation_days\": \"1\",\n  \"haircut_table_days\": \"10\",\n  \"leverage_minimum\": \"0.03\",\n  \"main_index_equity_haircut\": \"0.20\",\n  \"margin_scale\": \"1.5\",\n  \"maturity_cap\": \"5\",\n  \"min_maturity_days\": \"10\",\n  \"minimum_total_capital\": \"0.08\",\n  \"multiplier_floor\": \"0.05\",\n  \"protection_floor\": \"0.25\",\n  \"protection_provider_rw\": \"0.2\",\n  \"provider_rw\": \"0.3\",\n  \"repo_holding_days\": \"5\",\n  \"sd_decay\": \"0.05\",\n  \"secured_lending_holding_days\": \"20\",\n  \"single_name_AAA_sf\": \"0.0038\",\n  \"single_name_A_sf\": \"0.0042\"\n}\nreplacement_margin \"0.0079206752\"\nreplacement_quote {\n  \"closeout_basis\": \"Full financing and return obligations under matched replacement terms, no own-spread-linked termination payment\",\n  \"contract_id\": \"FUND_TRS\",\n  \"conversion\": \"remaining_quarterly_annuity\",\n  \"conversion_rate\": \"0.0356420304\",\n  \"currency\": \"USD\",\n  \"executable\": true,\n  \"id\": \"SYN-REPL-FUND-FUND_01-S1\",\n  \"includes_old_reference_adjustment\": false,\n  \"locked_financing_spread\": \"0.0069303218\",\n  \"notional\": \"990009000\",\n  \"off_quarter_convention\": \"fractional_remaining_annuity_clean_quote\",\n  \"old_reference_adjustment_upfront\": \"0\",\n  \"provider_id\": \"P\",\n  \"quantity\": \"990009000\",\n  \"quarter\": \"0.25\",\n  \"quote_basis\": \"reset_to_today\",\n  \"quoted_at\": \"2027-06-05\",\n  \"quoted_base_financing_spread\": \"0.009900825\",\n  \"reference_id\": \"U\",\n  \"remaining_years\": \"20\",\n  \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n  \"reset_price_convention\": \"Current reference price; old reference-price return is excluded from quoted margin\",\n  \"roll_convention\": \"Same surviving contract, remaining maturity rolls down without renewal; margin beta applies only to stated synthetic parallel scenarios\",\n  \"scenario_margin_beta\": \"1\",\n  \"source_evidence\": {\n    \"file\": \"docs/exhibit-fields.md\",\n    \"locator\": \"fictional-quote-board\"\n  },\n  \"status\": \"Fictional binding quote convention for this educational instance, not an observed market quote\"\n}\nschema_version \"back_to_back_funding_book.v1r2\"\nwhole_book {\n  \"AVA\": \"0\",\n  \"capital_gate\": \"minimum_capital_blocks_new_execution\",\n  \"cash_rw\": \"0\",\n  \"deployment_rw\": \"1\",\n  \"other_RWA\": \"0\",\n  \"other_leverage_exposure\": \"0\",\n  \"retained_U_rw\": \"0.20\",\n  \"scope\": \"Specified toy whole book only: retained AAA bank U, B-sovereign deployment, OIS cash, funding CCR and CVA; no inferred production buffers or compliance. Reinvestment is central-bank OIS cash at zero RW.\",\n  \"written_credit_contract\": {\n    \"contract_id\": \"FUND_TRS\",\n    \"reference_id\": \"U\",\n    \"source_evidence\": {\n      \"file\": \"docs/reference-input-contract.md\",\n      \"locator\": \"leverage-recognition-facts\"\n    },\n    \"unoffset\": true\n  },\n  \"written_credit_notional\": \"990009000\"\n}\n\n\nSTATUS:\nFinished normally at 2026-09-20T09:53:41Z (elapsed=0.04s)","tool_call_id":"call_a22e16da6ce854f99c26f520fce9c0d2","type":"tool_result"}},{"step":4,"generation":0,"created_at":"2026-09-20T09:53:41.618Z","event":{"content":"STDOUT:\ncalendar {\n  \"business_day_convention\": \"following\",\n  \"cash_interest\": \"OIS_ACT365F_on_settled_opening_day_balance\",\n  \"contract_quarter_months\": 3,\n  \"contract_quarter_year_fraction\": \"0.25\",\n  \"debt_day_count\": \"ACT/365F\",\n  \"debt_year_days\": \"365\",\n  \"holidays\": [],\n  \"new_coupon_accrual\": \"Own_execution_unadjusted_three_month_anniversaries_define_nominal_quarters._Each_complete_nominal_quarter_earns_0.25_years;_a_shortened_first_or_final_interval_earns_0.25_times_its_actual_days_divided_by_the_full_nominal_quarter_days._Following_business_day_adjustment_changes_cash_payment_date_only_not_earned_coupon_or_contract_tenor.\",\n  \"new_payment_dates\": \"following_business_day_own_execution_anniversaries\",\n  \"opening_quote_moves\": {\n    \"em_move\": \"0\",\n    \"funding_move\": \"0\",\n    \"reference_move\": \"0\"\n  },\n  \"original_payment_dates\": \"unadjusted_calendar_anniversaries_preserving_inception_end_of_month\",\n  \"prewindow_history\": \"Only explicit compiled opening_history settled_periods and source contractual schedule. No external event, trade, default, funding facility or reinvestment is inferred.\",\n  \"receipt_clock\": \"calendar_day_offset_from_window_start\",\n  \"weekend_days\": [\n    5,\n    6\n  ]\n}\nprotection {\n  \"administration_day_count\": \"ACT/365F\",\n  \"default_cash\": \"identified_executed_contract_claim_only_after_authenticated_settlement\",\n  \"designation\": \"no_premium_history_rewrite\",\n  \"expiry\": \"own_effective_date_plus_source_original_years\",\n  \"new_trade_notional\": \"source_executable_quote_notional\",\n  \"premium_clock\": \"own_effective_date_anniversaries\",\n  \"premium_day_count\": \"quarter_actual_fraction\",\n  \"statutory_recognition\": \"separate_derivative_FV_in_statutory_derivative_asset_or_statutory_derivative_liability\"\n}\nopening {\n  \"automatic_reinvestment\": false,\n  \"cash_mandate\": \"Disclosed initial_operating_cash is the unrestricted subset of opening_total_cash. The separately disclosed remainder is restricted opening cash; neither subset is additional cash.\",\n  \"contractual_unpaid_cash\": \"create_identified_obligation_without_negative_cash_or_invented_borrowing\",\n  \"contribution\": \"Every source allocation lot is contributed in kind at its disclosed source value at funding inception; matching contributed_equity is not cash or income.\",\n  \"fee_cash_source\": \"unrestricted_cash\",\n  \"funding_retained_accounting\": \"retained_U\",\n  \"funding_title\": \"P\",\n  \"restricted_cash_location\": \"central_bank_OIS_account\",\n  \"restriction_effective\": \"funding_inception\",\n  \"static_deficit_facility\": \"not_executed_in_actual_daily_book\"\n}\naccounting {\n  \"cash_interest_credit\": \"income_carry\",\n  \"debt_interest_debit\": \"expense_funding\",\n  \"deferral\": \"frozen_inception_pricing_annuity\",\n  \"deposit_interest\": \"source_OIS_unless_contract_specifies_spread\",\n  \"funding_derivative_recognition\": \"none_for_retained_U_failed_sale_unit\",\n  \"hedge_and_offset_marks\": \"statutory_separate_contract_FV_with_management_overlay_explicit_bridge\",\n  \"journal_decimal_places\": 12,\n  \"journal_rounding\": \"ROUND_HALF_EVEN\",\n  \"management_funding_mark\": \"source_internal_funding_opportunity_not_legal_exposure\",\n  \"mark_accounts\": {\n    \"asset\": \"statutory_derivative_asset\",\n    \"liability\": \"statutory_derivative_liability\"\n  },\n  \"no_balancing_plug\": true,\n  \"observable_release\": \"irreversible_on_authenticated_observable_significant_input_evidence\",\n  \"rounding_stage\": \"Financial amounts are rounded before the same amount updates obligation, contract and journal. Journal never independently rounds postings or inserts a residual.\"\n}\ncapital {\n  \"accounts\": {\n    \"cash\": {\n      \"basis\": \"source_central_bank_OIS_cash\",\n      \"leverage_included\": true,\n      \"risk_weight\": \"0\"\n    },\n    \"claim_allowance\": {\n      \"basis\": \"specific_credit_allowance_reduces_only_identified_related_asset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"deployment_accrued\": {\n      \"basis\": \"borrower_accrued_receivable\",\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"whole_book.deployment_rw\"\n    },\n    \"deployment_principal\": {\n      \"basis\": \"loan_after_current_CRM\",\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"whole_book.deployment_rw\"\n    },\n    \"facility_debt\": {\n      \"basis\": \"liability_no_gross_asset_offset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"inventory\": {\n      \"basis\": \"actual_owned_lot_by_class\",\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"capital.lot_classes\"\n    },\n    \"legacy_debt\": {\n      \"basis\": \"liability_no_gross_asset_offset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"posted_vm\": {\n      \"basis\": \"actual_returnable_deposit_no_assumed_netting\",\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"regulatory.provider_rw\"\n    },\n    \"received_vm\": {\n      \"basis\": \"returnable_VM_qualified_netting_only\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"reinvestment_principal\": {\n      \"basis\": \"central_bank_OIS_deposit\",\n      \"leverage_included\": true,\n      \"risk_weight\": \"0\"\n    },\n    \"repo_debt\": {\n      \"basis\": \"liability_no_gross_asset_offset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"restricted_cash\": {\n      \"basis\": \"mandated_central_bank_OIS_cash\",\n      \"leverage_included\": true,\n      \"risk_weight\": \"0\"\n    },\n    \"restricted_collections\": {\n      \"basis\": \"named_synthetic_correspondent_exposure\",\n      \"leverage_included\": true,\n      \"risk_weight\": \"0.2\"\n    },\n    \"retained_U\": {\n      \"basis\": \"retained_source_security_current_rating\",\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"current_underlying_issuer_weight\"\n    },\n    \"return_liability\": {\n      \"basis\": \"recognised_return_obligation_does_not_erase_cash_or_inventory\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"sale_financing\": {\n      \"basis\": \"liability_no_retained_U_offset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"statutory_derivative_asset\": {\n      \"basis\": \"same_actual_contract_counted_by_derivative_SA_CCR_and_derivative_leverage_once\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"statutory_derivative_liability\": {\n      \"basis\": \"derivative_liability_no_unrelated_gross_asset_offset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"unpaid_payable\": {\n      \"basis\": \"liability_no_gross_asset_offset\",\n      \"leverage_included\": false,\n      \"risk_weight\": \"0\"\n    },\n    \"unpaid_receivable\": {\n      \"basis\": \"identified_claim_not_account_aggregate_shortcut\",\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"capital.receivable_kinds\"\n    }\n  },\n  \"bank_risk_weights\": {\n    \"A\": \"0.3\",\n    \"AA\": \"0.2\",\n    \"AAA\": \"0.2\",\n    \"B\": \"1\",\n    \"BB\": \"1\",\n    \"BBB\": \"0.5\",\n    \"CCC\": \"1.5\",\n    \"D\": \"1.5\"\n  },\n  \"borrower_mapping_scope\": \"Named synthetic current-rating desk mapping by authenticated case party kind; no bank eligibility inferred from a rating label. Source unaltered whole_book baseline remains separately disclosed.\",\n  \"borrower_risk_weights\": {\n    \"bank\": {\n      \"A\": \"0.3\",\n      \"AA\": \"0.2\",\n      \"AAA\": \"0.2\",\n      \"B\": \"1\",\n      \"BB\": \"1\",\n      \"BBB\": \"0.5\",\n      \"CCC\": \"1.5\",\n      \"D\": \"1.5\"\n    },\n    \"corporate\": {\n      \"A\": \"0.5\",\n      \"AA\": \"0.2\",\n      \"AAA\": \"0.2\",\n      \"B\": \"1.5\",\n      \"BB\": \"1\",\n      \"BBB\": \"0.75\",\n      \"CCC\": \"1.5\",\n      \"D\": \"1.5\"\n    },\n    \"sovereign\": {\n      \"A\": \"0.2\",\n      \"AA\": \"0\",\n      \"AAA\": \"0\",\n      \"B\": \"1\",\n      \"BB\": \"1\",\n      \"BBB\": \"0.5\",\n      \"CCC\": \"1.5\",\n      \"D\": \"1.5\"\n    }\n  },\n  \"cash_claims\": \"Matured_or_defaulted_legal_cash_claims_use_identified_ordinary_receivable_risk_weight_without_derivative_alpha_or_future_PFE; surviving_claims_are_not_erased_at_maturity\",\n  \"credit_supervisory_factors\": {\n    \"A\": \"0.0042\",\n    \"AA\": \"0.0038\",\n    \"AAA\": \"0.0038\",\n    \"B\": \"0.016\",\n    \"BB\": \"0.0106\",\n    \"BBB\": \"0.0054\",\n    \"CCC\": \"0.06\",\n    \"D\": \"0.06\"\n  },\n  \"defaulted_unsecured_risk_weight\": \"1.5\",\n  \"due_diligence_uplift\": \"source_input_required\",\n  \"equity_contribution\": \"contributed_equity_in_Tier1_only_with_matching_capital_and_leverage_exposed_asset\",\n  \"financial_cva_authority\": \"docs/capital-rulebook.md MAR50.16 Table 1 financial-sector IG and HY/NR columns\",\n  \"financial_cva_risk_weights\": {\n    \"A\": \"0.05\",\n    \"AA\": \"0.05\",\n    \"AAA\": \"0.05\",\n    \"B\": \"0.12\",\n    \"BB\": \"0.12\",\n    \"BBB\": \"0.05\",\n    \"CCC\": \"0.12\",\n    \"D\": \"0.12\"\n  },\n  \"liability_netting\": \"none_except_source_authorised_current_CSA_recognition\",\n  \"lot_classes\": {\n    \"IG_bond\": {\n      \"leverage_included\": true,\n      \"risk_weight\": \"0.2\"\n    },\n    \"deployment_collateral\": {\n      \"leverage_included\": false,\n      \"recognition\": \"CRM_only_no_duplicate_statutory_asset\"\n    },\n    \"equivalent\": {\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"current_underlying_issuer_weight\"\n    },\n    \"funding_reference\": {\n      \"leverage_included\": true,\n      \"risk_weight_source\": \"current_underlying_issuer_weight\"\n    },\n    \"main_index_equity\": {\n      \"leverage_included\": true,\n      \"risk_weight\": \"2.5\"\n    },\n    \"payment_rights\": {\n      \"leverage_included\": false,\n      \"recognition\": \"security_only_until_identified_receipt\"\n    },\n    \"replacement\": {\n      \"leverage_included\": false,\n      \"recognition\": \"CRM_only_until_own_cash_purchase\"\n    }\n  },\n  \"other_mdb_authority\": \"docs/capital-rulebook.md section 4.1; CRE20.13 definition and CRE20.15 Table 5 rated branch. Requires the actual supranational party's source-evidenced capital_treatment with exposure_class=other_mdb, external_ratings_permitted=true and zero_weight_eligible=false. Neither treaty status nor a rating elects this treatment; CRE20.14 zero-weight eligibility is not granted.\",\n  \"other_mdb_risk_weights\": {\n    \"A\": \"0.3\",\n    \"AA\": \"0.2\",\n    \"AAA\": \"0.2\",\n    \"B\": \"1\",\n    \"BB\": \"1\",\n    \"BBB\": \"0.5\",\n    \"CCC\": \"1.5\",\n    \"D\": \"1.5\"\n  },\n  \"rating_buckets\": {\n    \"A\": \"A\",\n    \"A+\": \"A\",\n    \"A-\": \"A\",\n    \"AA\": \"AA\",\n    \"AA+\": \"AA\",\n    \"AA-\": \"AA\",\n    \"AAA\": \"AAA\",\n    \"B\": \"B\",\n    \"B+\": \"B\",\n    \"B-\": \"B\",\n    \"BB\": \"BB\",\n    \"BB+\": \"BB\",\n    \"BB-\": \"BB\",\n    \"BBB\": \"BBB\",\n    \"BBB+\": \"BBB\",\n    \"BBB-\": \"BBB\",\n    \"C\": \"CCC\",\n    \"CC\": \"CCC\",\n    \"CCC\": \"CCC\",\n    \"CCC+\": \"CCC\",\n    \"CCC-\": \"CCC\",\n    \"D\": \"D\"\n  },\n  \"receivable_kinds\": {\n    \"default_claim\": {\n      \"risk_weight_source\": \"identified_counterparty\"\n    },\n    \"deposit_return\": {\n      \"risk_weight_source\": \"regulatory.provider_rw\"\n    },\n    \"derivative_FV\": {\n      \"basis\": \"SA_CCR_already_counts_separate_contract_exposure\",\n      \"risk_weight\": \"0\"\n    },\n    \"funding_cash\": {\n      \"no_duplicate_current_derivative_EAD\": true,\n      \"risk_weight_source\": \"regulatory.provider_rw\"\n    },\n    \"inventory_coupon\": {\n      \"risk_weight_source\": \"identified_source_lot\"\n    },\n    \"inventory_principal\": {\n      \"risk_weight_source\": \"identified_source_lot\"\n    },\n    \"loan_coupon\": {\n      \"risk_weight_source\": \"whole_book.deployment_rw\"\n    },\n    \"loan_principal\": {\n      \"risk_weight_source\": \"whole_book.deployment_rw\"\n    },\n    \"protection_claim\": {\n      \"risk_weight_source\": \"regulatory.protection_provider_rw\"\n    },\n    \"reinvestment_interest\": {\n      \"risk_weight\": \"0\"\n    },\n    \"reinvestment_principal\": {\n      \"risk_weight\": \"0\"\n    }\n  },\n  \"scope\": \"Named synthetic whole-book asset mapping. Existing dated authority remains controlling for SA-CCR, eligible bank weights, CRM and leverage. New inventory and collection allocations below are explicit desk policies, not inferred regulatory approvals.\",\n  \"unknown_rating\": \"ReferenceError\"\n}\nprices {\n  \"allocation\": \"source_value\",\n  \"buy_ask_multiplier\": \"1\",\n  \"buy_fee\": \"0\",\n  \"deployment_security\": \"source_coupon_current_em_curve_remaining_financial_tenor\",\n  \"equivalent\": \"same_instrument_current_unit_price\",\n  \"execution\": \"same_day_delivery_versus_payment\",\n  \"funding_reference\": \"source_reference_price_remaining_financial_tenor\",\n  \"independent_security\": \"source_coupon_independent_issuer_curve\",\n  \"market_maker_id\": \"DESK_SECURITY_MARKET_MAKER\",\n  \"market_maker_status\": \"Named synthetic current firm quote counterparty with committed consideration only for accepted, legally deliverable current-price trades. It never settles unrelated claims.\",\n  \"payment_rights\": \"no_traded_security_price\",\n  \"sale_bid_multiplier\": \"1\",\n  \"sale_fee\": \"0\",\n  \"settlement_lag_business_days\": 0,\n  \"settlement_scope\": \"Current synthetic market-maker action quote expressly uses same-day DVP, distinct from the source instrument's ordinary one-business-day indicative settlement convention; quote acceptance requires legal delivery and actual settled consideration together.\",\n  \"unissued_promise\": \"no_inventory_no_price_no_liquidation\"\n}\nfacility {\n  \"availability\": \"source_unconditional_by_selected_cutoff_until_current_explicit_status_event_otherwise_conditional\",\n  \"child_repayment_order\": [\n    \"execution_date\",\n    \"id\"\n  ],\n  \"child_servicing\": \"base_FACILITY_aggregates_all_debt_and_interest_children_are_lineage_only_repaid_FIFO\",\n  \"day_count\": \"ACT/365F\",\n  \"fee\": \"0\",\n  \"maturity\": \"funding_maturity_date\",\n  \"payment_frequency_months\": 3,\n  \"principal_and_interest_survive_suspension\": true,\n  \"rate_reset\": \"daily\",\n  \"required_instruction\": \"accepted_worker_draw_or_authenticated_external_draw\",\n  \"spread_rule\": \"source_lender_spread_plus_current_own_bond_minus_inception_own_bond\",\n  \"year_days\": \"365\"\n}\ndefaults {\n  \"automatic_deficit_draw\": false,\n  \"borrower_unsecured_recovery\": \"0\",\n  \"facility_default_effect\": \"source_legal_availability_controls_undrawn_capacity_debt_survives\",\n  \"independent_collateral\": \"does_not_inherit_borrower_default_zero\",\n  \"liquidation_surplus\": \"Actual_sale_cash_excess_is_borrower_property_matched_by_identified_return_liability_never_desk_income\",\n  \"liquidation_trigger\": \"borrower_default_or_identified_due_unpaid_secured_loan_obligation\",\n  \"liquidation_waterfall\": [\n    \"due_loan_coupon\",\n    \"outstanding_loan_principal\",\n    \"borrower_surplus_return_liability\"\n  ],\n  \"provider_closeout\": \"crystallise_full_current_legal_mark_once_into_identified_claim_or_payable_preserve_existing_unpaid_obligations_stop_future_TRS_payments\",\n  \"provider_closeout_allowance\": \"positive_identified_claim_times_one_minus_source_provider_recovery\",\n  \"provider_recovery_source\": \"parameters.provider_recovery\",\n  \"recoveries_are_cash\": false,\n  \"reference_default_value\": \"source_notional_times_explicit_reference_issuer_recovery_is_claim_not_cash\",\n  \"reference_issuer_recovery\": \"0.4\",\n  \"same_issuer_collateral_recovery\": \"0\",\n  \"same_issuer_scope\": \"only_already_issued_borrower_collateral_when_borrower_defaults\",\n  \"settlement\": \"recognized_claims_survive_until_authenticated_cash_or_evidenced_discharge\",\n  \"terminal_static_claim\": \"controlled_report_only_no_runtime_claim_without_authentic_origin\",\n  \"worker_claim_settlement\": \"identified_existing_payable_from_actual_cash_or_identified_receivable_with_explicit_authenticated_uncredited_pending_cash_receipt_only;_metadata.cash_receipts_records_already_settled_cash_and_never_authorises_a_second_credit\",\n  \"zero_liquidation\": \"No_cash_receipt_and_no_duplicate_loss_beyond_identified_credit_allowance\"\n}\n\n\nSTDERR:\nbash: line 1: rg: command not found\n\n\nSTATUS:\nFinished normally at 2026-09-20T09:53:41Z (elapsed=0.05s)","tool_call_id":"call_b845a5fcccb95b84a08de206c80e4ae2","type":"tool_result"}},{"step":5,"generation":0,"created_at":"2026-09-20T09:56:40.732Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_0a5c2308396e596680f01ea3f180fef7","name":"send_message","arguments":"{\"session_id\":\"main-agent\",\"content\":\"Funding/credit preliminary: current N=990009000, financial_time=0.2418478260869565217391304347826086956522 (not 89/365), funding residual 19.758152173913..., deployment 4.758152173913..., next original payment 2027-09-05 gives 3/92*0.25 (not fresh 0.25); no executed CDS/CSA/offset contracts. CDS quote is NOT existing protection. FACILITY committed 257402340 but outstanding 0: no reserve borrowing/UFVA created; legacy debt 990009000 at OIS remains. Distinguish annual actual debt interest from own-bond spread and commitment. Pricing curve copies are fixed supplied values, no live curves/CDX/CLO. Checking exact current receipt and DAILY evidence now.\"}"},{"id":"call_27213767bb405db6af793580301fe78e","name":"send_message","arguments":"{\"session_id\":\"lofty-squid\",\"content\":\"Need share capital per-date formula for exact standalone KVA. Current funding residual 20-financial_time where financial_time=0.2418478260869565217391304347826086956522, provider CDS .0084151402; no executed CDS/CSA/offset. I compute rates/CVA/KVA/protection. KVA uses beginning_interval_end_payment, original funding quarter clock, first residual stub=.25-financial_time, nominal fractional annuity. Please send your current SA_CCR/CCR/CVA_K when derived so compare my first point; not whole-book required-capital KVA.\"}"},{"id":"call_3bac5b0c153955708421da99dabc1a68","name":"send_message","arguments":"{\"session_id\":\"balmy-sheep\",\"content\":\"Rates/CVA derivation underway. Current internal gain and legal funding mark may equal at par but include unpaid current accrual in full legal mark? Investigating docs/receipts: FUND_TRS.state.reference_coupon_accrued 10904336.156938392391, financing_coupon_accrued 10193163.186945957065, explicit unsettled_stub=0, no obligations. Current accounted management_funding_mark 41581875.436912685824. No current CDS/CSA/offset; no facility draws. Please notify exact checkpoint reserve/accounting values found in receipts for cross-check.\"}"}],"type":"assistant","usage":{"prompt_tokens":64646,"completion_tokens":528,"total_tokens":65174,"cache_read_tokens":48261}}},{"step":5,"generation":0,"created_at":"2026-09-20T09:56:40.733Z","event":{"content":"Message sent to balmy-sheep at 2026-09-20T09:56:40Z","tool_call_id":"call_3bac5b0c153955708421da99dabc1a68","type":"tool_result"}},{"step":5,"generation":0,"created_at":"2026-09-20T09:56:40.734Z","event":{"content":"Message sent to main-agent at 2026-09-20T09:56:40Z","tool_call_id":"call_0a5c2308396e596680f01ea3f180fef7","type":"tool_result"}},{"step":5,"generation":0,"created_at":"2026-09-20T09:56:40.735Z","event":{"content":"Message sent to lofty-squid at 2026-09-20T09:56:40Z","tool_call_id":"call_27213767bb405db6af793580301fe78e","type":"tool_result"}},{"step":6,"generation":0,"created_at":"2026-09-20T09:59:37.344Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_e306a3993dd95597b6d500d5260d794e","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/qyaws7fs/documents/docs/desk-runtime-contract.md\",\"show_anchors\":false}"},{"id":"call_8cc04971a87d50e38137c94b4e8fe4d2","name":"bash","arguments":"{\"max_output_length\":25000,\"command\":\"python - <<'PY'\\nimport json\\np=json.load(open('/packet/packet.json'))\\nprint('docs keys',p['public_inputs']['documents'].keys())\\nfor k,v in p['public_inputs']['documents'].items():\\n print(k, type(v).__name__, len(v) if hasattr(v,'__len__') else '')\\n print(str(v)[:500])\\nprint('daily_report',json.dumps(p['policy']['daily_report'],indent=2))\\nprint('receipts first/last')\\nfor r in p['prior_receipts'][:3]+p['prior_receipts'][-6:]: print(json.dumps(r,indent=2)[:10000])\\nprint('book',json.dumps(p['public_inputs']['case']['book'],indent=2))\\nprint('bank',json.dumps(p['public_inputs']['case']['bank'],indent=2))\\nPY\"}"},{"id":"call_54013f44cc865818a3cfdfad377327d4","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/qyaws7fs/documents/docs/capital-rulebook.md\",\"start_line\":1,\"end_line\":245,\"show_anchors\":false}"}],"type":"assistant","usage":{"prompt_tokens":65267,"completion_tokens":349,"total_tokens":65616,"cache_read_tokens":64644}}},{"step":6,"generation":0,"created_at":"2026-09-20T09:59:37.345Z","event":{"content":"File: /work/data/artifacts/qyaws7fs/documents/docs/capital-rulebook.md (showing lines 1-245 of 876)\n   1: # Capital rulebook for the back-to-back funding capstone\n   2: \n   3: As-of date: 19 September 2026. Amounts are USD unless stated otherwise. This is an educational comparator using the dated, current global Basel text below. It is not an opinion on implementation in any particular jurisdiction, regulatory permission, an accounting election, or evidence that a transaction is executable.\n   4: \n   5: The rulebook contains the formulas, parameters, applicability decisions and rejection gates needed by the case. A verifier may compare reported results with these rules; it may not supply missing legal facts, undisclosed ratings, capital-allocation choices or additional rules. Labels have the following meanings:\n   6: \n   7: - **Official rule** identifies a requirement in the cited source and paragraph.\n   8: - **Case assumption** identifies a fictional contractual, institutional or operational fact selected for this capstone. Its source is the case annex, not Basel.\n   9: - **Calculated illustration** applies stated assumptions to the official formula. It is neither a new regulatory parameter nor an observed transaction result.\n  10: \n  11: ## 1. Dated official source register\n  12: \n  13: All Basel versions below were retrieved as current on 19 September 2026. The effective and update dates identify the precise version used. Announced 2028 versions are not used.\n  14: \n  15: | Source key and official link | Effective date | Last update or edition | Use in this rulebook |\n  16: |---|---|---|---|\n  17: | [CRE50][CRE50] | 2019-12-15 | 2024-07-05 | CCR, netting, MPOR and current-exposure definitions |\n  18: | [CRE51][CRE51] | 2023-01-01 | 2020-03-27 | Method selection, EAD, incurred CVA, protection exceptions |\n  19: | [CRE52][CRE52] | 2023-01-01 | 2020-06-05 | SA-CCR formulas, classification, tenors, factors and aggregation |\n  20: | [CRE20][CRE20] | 2023-01-01 | 2025-06-10 | Bank counterparty risk weights and due diligence |\n  21: | [CRE22][CRE22] | 2023-01-01 | 2020-11-26 | Collateral, haircuts, netting, guarantees and credit derivatives |\n  22: | [CRE32][CRE32] | 2023-01-01 | 2020-03-27 | Effective-maturity rules incorporated by BA-CVA |\n  23: | [CRE55][CRE55] | 2023-01-01 | 2023-12-14 | Trading-book CCR and repo-collateral exception |\n  24: | [CRE56][CRE56] | 2023-01-01 | 2021-07-01 | Separately scoped SFT minimum-haircut floors |\n  25: | [MAR50][MAR50] | 2023-01-01 | 2020-07-08 | Reduced/full BA-CVA, SA-CVA approval and hedge treatment |\n  26: | [RBC25][RBC25] | 2023-01-01 | 2020-03-27 | CVA hedge designation, internal transfers and CCR recognition |\n  27: | [RBC20][RBC20] | 2023-01-01 | 2020-11-26 | Risk-based minimum capital ratios |\n  28: | [LEV20][LEV20] | 2023-01-01 | 2020-03-27 | Whole-bank leverage ratio and minimum |\n  29: | [LEV30][LEV30] | 2023-01-01 | 2020-03-27 | On-balance-sheet, derivative, written-credit and SFT exposure |\n  30: | [LEV40][LEV40] | 2023-01-01 | 2020-03-27 | G-SIB leverage buffer |\n  31: | [CAP50][CAP50] | 2019-12-15 | 2019-12-15 | Prudent-valuation boundary; not a universal KVA formula |\n  32: | [IFRS9][IFRS9] | Applicability must be established separately | Public 2026 issued edition | Failed derecognition and prevention of duplicate derivative recognition |\n  33: \n  34: MAR50 equations use the adopted current text. The [official July 2020 CVA amendment][CVA2020] corroborates them, but its tracked deletions are not operative equations. A generated chapter PDF can be stale; the dated current chapter and adopted amendments control this exhibit.\n  35: \n  36: ## 2. Case annex: facts required before applying a formula\n  37: \n  38: These assumptions select a runnable case. They do not assert that every bond TRS receives the same treatment.\n  39: \n  40: 1. Meridian is the reporting bank. Its reporting currency is USD. It owns an already-issued financial floating-rate note, U, with USD1,000,000,000 current principal/reference notional and exactly 20 years remaining at inception. The ordinary, unlevered single-name reference entity is AAA under the case's eligible-rating evidence. The issue's own rating and legal structure are recorded separately. A pricing curve labelled `AAA` does not establish either rating.\n  41: 2. Meridian sells legal title to U to bank P for USD1,000,000,000 and receives U's total return under a 20-year TRS against financing payments. The sale advances the cash. The derivative does not advance a second principal. The five-year deployment uses those proceeds; its repayment does not terminate the separate remaining TRS obligations.\n  42: 3. P is an eligible prudentially supervised bank in a jurisdiction permitting eligible external ratings. Its A-category ECRA rating excludes unsupported implicit government support; due diligence does not require an uplift. Its long-term bank default-risk weight is therefore 30%, under CRE20.16–20.20. This is P's risk weight, not U's supervisory factor.\n  43: 4. The same-transferee sale plus full return retention fails IFRS9 derecognition in this case. Meridian retains U as an accounting asset and recognises the financing liability. IFRS9.3.2.15 and B3.2.16(o) govern this fact pattern; B3.2.14 prevents recognition of a second derivative for the same rights when that would double-count them. A management fair-value subledger is reconciled to the statutory accounts rather than relabelled as a statutory receivable.\n  44: 5. A separate, explicitly fictional institutional/regulatory classification letter directs the capstone to measure the legal TRS under SA-CCR, with full contractual V, and under the derivative/written-credit leverage rules, while retaining the statutory asset/liability bridge. This is a case convention. IFRS9 by itself neither establishes nor prohibits that regulatory combination. Without that classification letter, the agent must determine whether the arrangement is financing/SFT, a separately measured derivative, or another exposure before claiming regulatory results.\n  45: 6. The letter selects credit as the primary driver after an explicit sensitivity/volatility assessment. The plain return-receiver loses value when the reference spread widens, so its credit supervisory delta is -1. A required countercase allocates the same position to both credit and interest rate and adds the class add-ons. Credit-only is not inferred from the words `funding TRS`, and dual allocation is not claimed to be mandatory for every bond TRS.\n  46: 7. The fixed-notional, spot-starting reference has S=0, E=20 and contractual M=20 initially. At year five, if unchanged, E=15 and M=15. There is no assumption that a quarterly coupon reset, VM exchange or settlement of the last quarter's return extinguishes the full future TRS value. The contractual financing advantage and any other surviving obligations must also reset to zero before the special full-reset maturity rule can apply.\n  47: 8. The uncollateralised baseline has no CSA collateral. U, now legally held by P, is not collateral received by Meridian against P's TRS default. Accounting retention of U does not turn it into C or NICA. The margined countercase assumes enforceable bilateral daily cash VM against the full contractual mark, TH=0, MTA=0 and NICA=0. These are disclosed countercase assumptions, not attributes implied by a AAA reference.\n  48: 9. The bespoke trade is assumed hard to replace under stress. Its selected MPOR is 20 business days, with no larger estimate or dispute-driven floor in the illustrated state. The case uses 250 business days per year. CRE52 requires an appropriate market convention and a floor/estimate assessment; it does not universally prescribe 250 days or infer MPOR solely from a 20-year tenor.\n  49: 10. The baseline uses reduced BA-CVA. Full BA-CVA is a separate eligible-CDS branch. SA-CVA approval is absent. No bank-wide small-portfolio alternative is assumed.\n  50: 11. A proposed five-year CDS references P, not U, and is supplied by a separately identified eligible protection seller H. Every recognition condition in section 6 must be evidenced. A separate MAR50 method annex uses H's normal SA-CCR exposure to measure hedge-provider CVA; it does not turn a CRE51.16 CCR exemption into zero CVA. H's rating, sector, netting, margin and exposure inputs are independent case data.\n  51: 12. The secured-deployment collateral comparison is a banking-book secured loan under the comprehensive approach, with daily revaluation and a 20-business-day minimum holding period. It is not silently relabelled as a five-day trading-book repo to obtain smaller haircuts.\n  52: 13. The pricing annex uses an explicit quarter-year illustration, beginning-of-quarter capital held during the interval, an end-quarter capital charge, a 10% annual all-equity hurdle, and 4% nominal annual OIS compounded quarterly. The dated transaction cash-flow schedule uses ACT/365F separately. These are desk assumptions, not Basel parameters. The full obligations extend to year 20; proceeds recovered from the deployment at year five are parked at OIS in the base economic action rather than assumed reinvested in EM risk.\n  53: 14. For the pure-credit baseline, the fictional classification annex includes full effective written-credit notional W and elects the LEV30.35 exclusion of that same unoffset written-protection amount from the PFE population. It assumes no qualifying purchased-protection notional offset. RC, collateral adjustments, retained U and the deployment remain measured. Any result without the election or under dual allocation is a separately labelled countercase.\n  54: \n  55: ## 3. SA-CCR\n  56: \n  57: ### 3.1 Measurement order and legal netting\n  58: \n  59: Official rule: CRE51.8 assigns non-CCP derivatives to SA-CCR when IMM approval is absent, and SFTs to their applicable collateral approaches. A derivative's notional is not a cash-loan exposure to insert directly into the comprehensive collateral formula. CRE51.3 also recognises the collateral poster's possible loss if a cash lender defaults and fails to return collateral.\n  60: \n  61: Use the legal reporting-bank perspective throughout. Identify each enforceable netting set before calculating RC or add-ons. CRE50.15 and CRE52.1 require recognised legal netting; common purpose, common ownership or an economic hedge does not suffice. Trades without recognised netting are separate netting sets. Do not net P against H. An enforceable derivative MNA is not automatically an SFT netting permission or permission to net accounting assets.\n  62: \n  63: V is the current value of all derivative transactions in the netting set under their actual contractual settlement and close-out terms. It includes both reference return and financing obligations. Authority: CRE50.26 and CRE52.10. An internal funding-opportunity mark is not a substitute for full V unless the enforceable contract and the case classification letter establish that valuation basis. Exposure measurement does not establish statutory recognition or day-one income.\n  64: \n  65: ### 3.2 Expanded exposure formulas\n  66: \n  67: All collateral quantities below are after the applicable eligibility, valuation and haircut treatment. Received collateral is positive; posted collateral is negative in net C.\n  68: \n  69: ```text\n  70: alpha = 1.4\n  71: \n  72: RC_unmargined = max(V - C, 0)\n  73: RC_margined   = max(V - C, TH + MTA - NICA, 0)\n  74: \n  75: AddOn_aggregate = sum_over_allocated_asset_classes(AddOn_class)\n  76: \n  77: if AddOn_aggregate > 0:\n  78:     multiplier = min(1,\n  79:                      0.05 + 0.95 * exp((V - C) /\n  80:                                       (2 * 0.95 * AddOn_aggregate)))\n  81:     PFE = multiplier * AddOn_aggregate\n  82: if AddOn_aggregate = 0:\n  83:     PFE = 0\n  84: \n  85: EAD_unmargined = 1.4 * (RC_unmargined + PFE_unmargined)\n  86: EAD_margined_raw = 1.4 * (RC_margined + PFE_margined)\n  87: EAD_margined = min(EAD_margined_raw,\n  88:                   EAD_of_same_netting_set_calculated_as_unmargined)\n  89: ```\n  90: \n  91: Authority: CRE52.1–52.2, 52.10, 52.18–52.23 and 52.25. The zero-add-on branch is the algebraic PFE limit and avoids division by zero; it is not a separate capital exemption. Recalculate the unmargined comparator with its own maturity and collateral treatment before applying the cap.\n  92: \n  93: | Input | Required meaning | Authority |\n  94: |---|---|---|\n  95: | TH | Positive threshold before P must provide VM to Meridian | CRE52.18–52.19 |\n  96: | MTA | Minimum transfer amount applicable to P | CRE52.18–52.19 |\n  97: | C | Net eligible haircut-valued collateral, including signed VM for a margined set | CRE52.10–52.11, 52.16–52.18 |\n  98: | NICA | Eligible independent collateral received, less independent collateral Meridian posted without bankruptcy-remote segregation | CRE52.16–52.17 |\n  99: | multiplier floor | 5%, when the aggregate add-on is positive | CRE52.22–52.23 |\n 100: \n 101: Collateral Meridian posted into a segregated bankruptcy-remote account is excluded from NICA under CRE52.17. Noncash received collateral is haircut down and posted noncash collateral is haircut up under CRE52.11. Eligibility, legal seizure rights and the applicable holding period must be established before a number enters C.\n 102: \n 103: A set is margined for SA-CCR only when the counterparty must post VM to the bank. An agreement under which only Meridian posts VM is unmargined for this purpose. Authority: CRE52.2.\n 104: \n 105: Exact VM coverage does not generally eliminate exposure. RC is zero only if both `V-C <= 0` and `TH+MTA-NICA <= 0`. At `V=C` and positive add-on, the multiplier is exactly 1, not 0. Margin can shorten the PFE risk horizon while PFE remains positive. Excess eligible collateral can reduce the multiplier but not below 5%.\n 106: \n 107: ### 3.3 Primary driver, reference tenor and supervisory delta\n 108: \n 109: CRE52.26–52.29 allocates a derivative by its primary driver, using sensitivities and underlying volatility for complex trades. Supervisors may require allocation to more than one class. Each allocated class needs its own appropriate sign and delta. CRE52.25 adds the class add-ons without cross-class diversification. CRE52.1 FAQ3 does not permit decomposing linear products into invented component trades merely to obtain a preferred treatment.\n 110: \n 111: For interest-rate and credit positions:\n 112: \n 113: ```text\n 114: S_i = time in years until the referenced period starts, floored at 0\n 115: E_i = time in years until the referenced period ends\n 116: M_i = time in years until the latest date the derivative can remain active\n 117: \n 118: SD_raw_i = (exp(-0.05*S_i) - exp(-0.05*E_i)) / 0.05\n 119: SD_i = max(SD_raw_i, ten_business_days_expressed_in_years)\n 120: d_i = domestic_currency_notional_i * SD_i\n 121: D_i = d_i * MF_i * delta_i\n 122: ```\n 123: \n 124: Authority: CRE52.30–52.34. S and E follow the underlying instrument when the derivative references another interest-rate or credit instrument. M is the derivative's maturity. For an already-started reference period S=0. The supervisory 5% decay is not OIS, a funding spread, a hazard rate or a rating inference.\n 125: \n 126: A contract that genuinely settles all outstanding exposure and resets its terms so its entire fair value is zero can use time to that reset for the specified maturity treatment under CRE52.37(5). Daily VM or a floating-coupon reset does not establish that condition. The reference period used for supervisory duration is not shortened by margining or daily settlement, under CRE52.32 FAQ1.\n 127: \n 128: For plain linear positions that are neither options nor CDO tranches, CRE52.39 prescribes delta +1 when value increases with the primary factor and -1 when it decreases. The factor for the credit branch is the spread, not the bond price. Thus the case's return-receiver delta is -1 for credit. Option volatility is used in an option-delta calculation, not multiplied into the linear add-on. An optional, tranched, leveraged, amortising or market-dependent-notional contract requires its actual CRE52 treatment; this case does not silently approximate it as the plain trade. Notional modifications are addressed by CRE52.37.\n 129: \n 130: ### 3.4 Maturity factor and MPOR\n 131: \n 132: ```text\n 133: M_floored_i = max(M_i, ten_business_days_in_years)\n 134: MF_unmargined_i = sqrt(min(M_floored_i, 1 year) / (1 year))\n 135: MF_margined_i   = 1.5 * sqrt(MPOR_i / (1 year))\n 136: ```\n 137: \n 138: Authority: CRE52.48–52.53. Use consistent time units. The one-year cap belongs to the unmargined maturity factor, not to reference supervisory duration, economic exposure, BA-CVA maturity or purchased-protection qualification.\n 139: \n 140: | Bilateral condition | Official MPOR floor or adjustment | Authority |\n 141: |---|---|---|\n 142: | Non-centrally-cleared, daily margin | 10 business days | CRE52.50 |\n 143: | Non-daily margin | 9 business days plus the remargining period | CRE52.50 |\n 144: | More than 5,000 transactions in the relevant non-CCP set | 20 business days | CRE52.51(1) |\n 145: | Any illiquid collateral or OTC derivative not easily replaced | 20 business days | CRE52.51(2) |\n 146: | More than two qualifying long margin disputes in the previous two quarters | Double the otherwise applicable supervisory floor for the subsequent two quarters | CRE52.51(3) |\n 147: | Estimated MPOR exceeds the applicable floor | Use the estimate | CRE52.50 |\n 148: \n 149: Stressed replaceability and dispute evidence are required. Centrally cleared exposures have separate CRE54 rules and are not this bilateral case. MPOR is the period from the market-observation date for the last answered collateral call through close-out and rehedging, under CRE50.19.\n 150: \n 151: Calculated under the disclosed 250-business-day convention:\n 152: \n 153: ```text\n 154: MF_unmargined at M=20 years = 1\n 155: MF_margined at MPOR=20 BD  = 1.5*sqrt(20/250) = 0.4242640687\n 156: MF_margined at MPOR=10 BD  = 1.5*sqrt(10/250) = 0.3000000000\n 157: ```\n 158: \n 159: The 10-day value is a comparison only. It is not allowed for this hard-to-replace trade merely because its VM frequency is daily.\n 160: \n 161: ### 3.5 Supervisory factors and aggregation\n 162: \n 163: The credit SF uses the reference entity's rating, while the eventual CCR risk weight uses the derivative counterparty's exposure class and rating. The two are separate inputs. An issue-specific guarantee or structure can make an issue rating differ from its reference entity rating. Authority: CRE52.61(3), CRE52.72 and CRE51.13.\n 164: \n 165: | Class/subclass | SF | Correlation used in credit aggregation | Supervisory option volatility |\n 166: |---|---:|---:|---:|\n 167: | Interest rate | 0.50% | Not applicable | 50% |\n 168: | Credit single name AAA | 0.38% | 50% | 100% |\n 169: | Credit single name AA | 0.38% | 50% | 100% |\n 170: | Credit single name A | 0.42% | 50% | 100% |\n 171: | Credit single name BBB | 0.54% | 50% | 100% |\n 172: | Credit single name BB | 1.06% | 50% | 100% |\n 173: | Credit single name B | 1.60% | 50% | 100% |\n 174: | Credit single name CCC | 6.00% | 50% | 100% |\n 175: | Credit index investment grade | 0.38% | 80% | 80% |\n 176: | Credit index speculative grade | 1.06% | 80% | 80% |\n 177: \n 178: Authority for every table entry: CRE52.72 Table 2. The plain trade uses only its SF and delta, not the option-volatility column.\n 179: \n 180: Credit aggregation, under CRE52.60–52.64:\n 181: \n 182: ```text\n 183: EN_k = sum_of_D_i_for_reference_entity_k\n 184:  a_k = SF_k * EN_k\n 185: \n 186: AddOn_credit = sqrt((sum_k(rho_k*a_k))^2\n 187:                     + sum_k((1-rho_k^2)*a_k^2))\n 188: ```\n 189: \n 190: Each index is a separate reference entity for aggregation. Trades on the same entity can offset through their signed effective notionals. Different entities retain idiosyncratic risk. For one entity, `AddOn_credit = abs(a_k)`: the 50% correlation is not a 50% discount on a standalone trade.\n 191: \n 192: If the position is also allocated to interest rate, use one hedging set per currency. E assigns it to buckets less than one year, one to five years, or more than five years. Let DB1, DB2 and DB3 be the signed effective notionals summed within those buckets.\n 193: \n 194: ```text\n 195: EN_currency = sqrt(DB1^2 + DB2^2 + DB3^2\n 196:                    + 1.4*DB1*DB2 + 1.4*DB2*DB3 + 0.6*DB1*DB3)\n 197: \n 198: Alternative when cross-bucket offsets are not recognised:\n 199: EN_currency = abs(DB1) + abs(DB2) + abs(DB3)\n 200: \n 201: AddOn_IR = 0.005 * sum_currency(EN_currency)\n 202: AddOn_dual = AddOn_credit + AddOn_IR\n 203: ```\n 204: \n 205: Authority: CRE52.57 and 52.25. Driver-specific delta still matters for a portfolio even when the absolute value removes its sign for a single trade. A financing spread alone does not qualify for the special basis-transaction half-factor in CRE52.46/52.73.\n 206: \n 207: ### 3.6 Numbers that isolate the regulatory mechanics\n 208: \n 209: This illustration uses a single plain AAA-reference USD1bn trade, S=0, E=M=20, credit-only allocation, no recognised incurred CVA loss, and **V=0**. The margined column additionally has C=TH=MTA=NICA=0 at that observation, so both columns have RC=0 and multiplier=1. V=0 is a deliberately isolated arithmetic state, not the capstone's assumed initial legal mark.\n 210: \n 211: ```text\n 212: SD_20 = (1-exp(-0.05*20))/0.05 = 12.6424111766 years\n 213: SD_15 = (1-exp(-0.05*15))/0.05 = 10.5526689452 years\n 214: ```\n 215: \n 216: | Calculated item | Unmargined | Margined, 20 BD |\n 217: |---|---:|---:|\n 218: | Credit add-on | 48,041,162.47 | 20,382,139.06 |\n 219: | SA-CCR EAD, 1.4 times add-on | 67,257,627.46 | 28,534,994.68 |\n 220: | CCR RWA at P's 30% weight | 20,177,288.24 | 8,560,498.40 |\n 221: | Minimum total-capital component, 8% of that RWA | 1,614,183.06 | 684,839.87 |\n 222: | IR add-on if separately allocated | 63,212,055.88 | 26,818,604.02 |\n 223: | Credit plus IR add-on in dual-allocation countercase | 111,253,218.35 | 47,200,743.08 |\n 224: \n 225: These are calculations from CRE52 and the disclosed case inputs. The last two rows show how a different supported driver allocation changes the result. They are not a permission to choose whichever treatment is cheaper. Positive V, changed reference price, different CSA terms or additional trades require recalculation.\n 226: \n 227: ## 4. Default-risk weighting after SA-CCR\n 228: \n 229: CRE51.11 aggregates EAD across P's netting sets. CRE51.12 permits only the recognised incurred CVA write-down, excluding offsetting DVA, to reduce default-risk exposure:\n 230: \n 231: ```text\n 232: E_default_P = max(0, sum_NS_of_P(EAD_NS) - incurred_CVA_loss_P)\n 233: CCR_RWA_P_without_protection = E_default_P * RW_P\n 234: ```\n 235: \n 236: That incurred-CVA deduction does not apply to the CVA-risk capital calculation. A management reserve or a projected CVA loss is not automatically the incurred write-down specified by CRE51.12.\n 237: \n 238: CRE20.18 Table 6 supplies these bank ECRA weights:\n 239: \n 240: | Eligible external bank rating | Base RW | Qualifying short-term RW |\n 241: |---|---:|---:|\n 242: | AAA to AA- | 20% | 20% |\n 243: | A+ to A- | 30% | 20% |\n 244: | BBB+ to BBB- | 50% | 20% |\n 245: | BB+ to B- | 100% | 50% |\n","tool_call_id":"call_54013f44cc865818a3cfdfad377327d4","type":"tool_result"}},{"step":6,"generation":0,"created_at":"2026-09-20T09:59:37.348Z","event":{"content":"File: /work/data/artifacts/qyaws7fs/documents/docs/desk-runtime-contract.md\n   1: # Settled desk contract\n   2: \n   3: This contract specifies the actual daily book, not the seventeen controlled financial report panels. It is a named synthetic desk convention supplementing the dated rulebook. The versions exported by `desk_contract.py` are `desk-state.v3`, `desk-envelope.v2` and `desk-policy.v3`, with no v1 aliases. Report labels remain `daily-book.v2` and `daily-grade.v1`; `worker-packet.v1` is unchanged. The active contract has nine report sections and twelve owners. Implementation and executed evidence are separate. The unchanged build-and-prove protocol records historical methodology, not a practitioner-first block on engineering or model execution.\n   4: \n   5: ## Authority and module ownership\n   6: \n   7: The evaluator owns the family, market path, state, immutable receipts and grading. A protected worker receives the current packet, public conventions and a writable work directory. Calculations are bounded data, never executable artifacts, and cannot change the book. Current `counterparty_constraints`, mandate rules and relevant legal source objects belong in the packet. Generated `accepted_positions`, gold, future external events and private evaluator history do not. The canonical base case and `FUND_01` seed 1 are deliberately declassified public practice, a separate publication boundary.\n   8: \n   9: `desk_ledger.py` owns economic state and accepted transitions. `desk_valuation.py` produces the independently valued book, including actual client outcome. `institutional.py` checks sourced legal findings, mandate decisions, client structure and recommendations for both report paths. `daily_grader.py` reads the submitted report and valued book. `desk_replay.py` independently folds receipt postings and state operations without calling the transition function. `desk_runtime.py` owns SQLite persistence, revisions, receipt chains, packets and CLI. `worker_boundary.py` owns worker launches, restart supervision and boundary probes. These are implementation boundaries, not claims that their acceptance runs passed.\n  10: \n  11: ## Public function boundaries\n  12: \n  13: - `desk_ledger.initial_state(parameters, family) -> {state, receipts}`: generate explicit inception and pre-window contractual receipts, then the servicing-window state. Only this function interprets the disclosed opening endowment.\n  14: - `desk_ledger.quote_board(parameters, family, state) -> list[quote]`: current executable actions, terms, capacity and legal prerequisites; quote ID includes market/legal versions and effective date. No future path.\n  15: - `desk_ledger.settle_day(parameters, family, state, actions) -> {state, receipts, blockers}`: pure transition on a copy. An invalid action batch returns no economic mutation. A successfully settled day increments the calendar once and releases only events now available.\n  16: - `desk_valuation.value_book(parameters, family, state) -> book`: deterministic Decimal financial output. No candidate data, future events, gold or prior candidate ledger. State contains received event effects, not a supplied exposure path.\n  17: - `daily_grader.expected_daily_report(parameters, family, state, book, previous_book=None) -> report`: evaluator-only bounded daily assertions.\n  18: - `daily_grader.grade_daily(parameters, family, state, report, previous_book=None) -> grade`: grade the submitted parent checkpoint before applying its actions or revealing tomorrow. Qualification is separate from twelve fixed-denominator owners. No accepted worker action anywhere in the run means `not_scoreable`, with no score. A first accepted day may retain the opening report for later scoring without comparing it to the post-action book. Invalid candidates receive `candidate_error`; reference or verifier failures receive `UNSCORABLE`; neither has a score. An accurate report of an unsuccessful client outcome can lose O11.\n  19: - `desk_replay.replay_receipts(parameters, family, genesis, receipts) -> state`: independently recompute permitted amounts, paid-obligation identities, titles and capacity from immutable contract/quote/event terms before applying each receipt. Verify sequence, parent hash, balanced postings and unique IDs. It must not call `settle_day`, trust candidate assertions or accept a declared final balance. A balanced duplicate coupon with a fresh receipt ID must fail because its contract-period obligation is already paid.\n  20: \n  21: Internal state and receipts use exact decimal strings at serialization boundaries. Python computation uses Decimal. Hashes cover canonical sorted-key JSON; omit only the hash field itself. State is an economic object, not a report log: submitting a different calculation, an invalid envelope or an atomic rejected action cannot alter its hash.\n  22: \n  23: ## Clock and settlement order\n  24: \n  25: The family supplies `funding_start_date` and `window_start_date`. Event `day`/`available_at` is an integer calendar-day offset from the window start. Original funding and deployment coupons fall on calendar three-month anniversaries of funding inception, preserving end-of-month. Each whole coupon accrues 0.25 contractual years. Within a period, financial time is completed quarters times 0.25 plus 0.25 times elapsed actual days divided by the actual days in that period. This keeps twenty-year/five-year maturities and actual payment dates without treating every observation as a payment. Every later CDS, repo, facility, offset or reinvestment contract stores its own execution/effective date, payment schedule, maturity, accrued stub and business-day convention. Its age and premium dates are not the original funding clock; protection bought midquarter starts its five-year term and accrual at its own execution.\n  26: \n  27: The evaluator derives opening accrual and any paid contractual history from inception; it does not move inception to the servicing window. Newly available dated news and the current day's ordered cash milestones are disclosed in the packet. Authored same-day order is preserved through explicit phases under `desk-event-bindings.md`; coupon-first and debit-first are different histories. A candidate action plan specifies a public phase. Envelope versions are checked once, but live cash, title, obligation balances, legal rights and quote capacity are checked against the staged state at every phase. A failed prior draw cannot fund a later action. A coupon announcement, invoice collection into a restricted correspondent account, licence, market opening or facility permission is not free cash. A missed earlier cutoff cannot be repaired by a later same-day coupon. Due obligations arise from contracts/events independently of candidate rejection; a rejected action cannot invent a payable. No future-day news is used to grade the current parent checkpoint.\n  28: \n  29: The clock cannot be advanced by a worker request other than committing that day's accepted actions. `hold_capital` is an explicit risk decision; it changes no cash and carries the capital profile. An empty action list does not create an accepted worker action. The observation horizon is evaluator configuration, not a worker-visible completion signal. Restarted workers retain the same work volume and current authoritative packet.\n  30: \n  31: ## State and receipts\n  32: \n  33: State fields are closed and versioned: `schema_version`, `family_id`, `day`, `as_of`, `financial_time`, `revision`, `market_version`, `legal_version`, `market`, `legal`, `accounts`, `lots`, `contracts`, `pending`, `obligations`, `accepted_action_ids`, `accepted_action_count`, `applied_event_ids`, `last_receipt_hash`, `last_receipt_sequence`. A public view includes the current state hash. The protected event path and evaluator outputs never enter it.\n  34: \n  35: Accounts are debit-positive trial-balance amounts with an explicit account-kind registry: unrestricted cash, restricted opening cash, restricted collections, retained U, deployment principal and accrued coupons, reinvestment principal, owned inventory, posted VM, unpaid receivables, repo debt, external unsecured debt, sale financing, legacy debt, received VM, return obligations, unpaid payables, claim allowances, contributed equity and named income/expense accounts. Total debits equal total credits. Each financial receipt identifies source/destination, contract, amount, asset/lot identity, economic purpose, available date and settled status.\n  36: \n  37: The management ledger is a separate overlay journal with `funding_mark`, `hedge_asset`, `deferred_management_gain`, `management_XVA` and corresponding mark, deferral, reserve and hedge income accounts. It is posted at each valued checkpoint from old-market roll, current-market remeasurement and accepted-action effects. The statutory journal never acquires these management-only funding assets or liabilities. Independent overlay equity plus the explicit statutory bridge must reproduce statutory equity; no balancing plug is permitted.\n  38: \n  39: Lots carry `id`, `instrument_id`, `quantity`, `owner`, `location`, `encumbrance`, `issued`, `return_obligation`, `reuse_permitted`, `enforceability`, `source_evidence`. Economic recognition does not imply legal title. U is statutorily retained but legally at the funding provider and cannot be sold or pledged again. A contingent issuance promise is not a security; a later issuance has a new identifier and no assumed liquidity.\n  40: \n  41: The actual runtime starts with the source book's cash and paid opening trades, plus the separately disclosed allocation inventory as an owner contribution in kind. The contributed value equals the sum of those source lots' values. It is neither cash nor P&L. Every lot and the equity contribution appear in genesis receipts. This makes the allocation exercise an actual owned inventory rather than spending assets from an unrelated controlled panel. `initial_operating_cash` is a subset of total opening cash; the remainder is restricted under a named mandate. Neither a certificate nor a capital release adds cash.\n  42: \n  43: Receipts contain `id`, `sequence`, `day`, `action_id`, `event_id`, `kind`, `source_evidence`, `terms`, `postings`, `operations`, `previous_receipt_hash`, `hash`. Both identity fields are present and nullable; an action receipt and an event receipt cannot claim each other's identity. `terms` preserves the authenticated immutable input record. `postings` are balanced account deltas. Operations are closed economic changes to lots, contractual states, current market/legal facts and obligations, never a wholesale replacement state. Historical fills, locked financing spread and previous receipts are immutable. Replay validates legal title and cash conservation independently of declared report totals.\n  44: \n  45: `legal.decisions` and `legal.approvals` begin empty and retain accepted institutional history. A decision is `{id,kind,rule_id,subject_id,reason_code,submitted_at,status,source_evidence}`. Its ID is `decision:<action_id>`, kind is `escalate` or `decline`, and status is `escalated` or `declined`. An approval is `{id,rule_id,subject_id,approver_id,requested_at,effective_at,expires_at,status,used_by,source_evidence}`, with ID `approval:<action_id>` and status `pending`, `approved`, `declined`, `consumed` or `expired`. `used_by` is null except for the consuming accepted action ID. Dates are ISO strings and evidence retains the authored rule shape.\n  46: \n  47: Decision records are immutable. Pending approvals can become approved, declined or expired; approved approvals can become consumed or expired, not declined. Later changes create new receipts rather than rewriting requests. A pending approval resolves in one of two ways: an authored `approval_response` event for the same rule, subject and approver dated on or after the request moves it to the authored outcome on that event's day under an `event:approval_response` receipt; the scheduled review keeps it pending until then even past `effective_at`, and only catches up, from the following day, a request accepted after that event's phase; with no such event the review applies the rule's constant `approval_outcome` once `effective_at` arrives. Either way `expires_at` is fixed by the request and expiry wins. Approvers are parties; a rule may name the bank or an `internal_function` party (role `credit_committee`, `legal`, `compliance` or `desk_head`), and a rule naming a party absent from the case is a reference error at load. Creating a decision or approval, or changing an approval's status, increments `legal_version`; an identical re-put is a no-op. Approval dates satisfy `requested_at <= effective_at < expires_at`. Source action IDs must be accepted, and replay verifies identities and transitions.\n  48: \n  49: Genesis binds parameter, family, public-policy and event-binding hashes. Closed `accept_action` and `commit_day` operations record accepted IDs, increment revision/day once and derive `as_of`/financial time from the authenticated clock, including a zero-cash hold day. Replay recomputes those fields; it does not trust a replacement-state blob. A semantic receipt checker derives each expected amount/obligation from the bound sources independently of the live transition implementation. Balanced invented debt and repeat payment under a new receipt ID must fail that check.\n  50: \n  51: `last_receipt_sequence` starts at zero in genesis. Each emitted receipt increments it by one and updates `last_receipt_hash`; only the journal may update these derived fields. No candidate operation can assign them. Replay verifies contiguous sequence independently, so pure transitions and persistence require no hidden mutable sequence counter.\n  52: \n  53: ## Envelope and atomicity\n  54: \n  55: The `desk-envelope.v2` envelope contains `schema_version`, `parent_state_hash`, `revision`, `market_version`, `legal_version`, `actions`, `calculations`. Each action has a closed payload, unique `action_id`, public `phase` and bound `quote_id`; the version belongs to the outer envelope, not individual actions. Candidates cannot supply receipts or replace a quote's settlement price. Calculations retain the `daily-book.v2` label and require all nine sections; old five-section reports are invalid, not adapted.\n  56: \n  57: The evaluator commits actions, generated receipts and the new state in one `BEGIN IMMEDIATE` transaction with unique action IDs. Stale parent/version/revision, unknown keys, nonfinite or malformed money, duplicate keys, oversize input, unknown quote and reused action ID reject before execution. A rejected economic batch is atomic; the run's rejection/blocker log is separate from economic state. Qualification can latch a fatal attempted legal/cash/title violation without pretending a rejected transfer occurred. No partial fill is manufactured.\n  58: \n  59: ## Executable action set\n  60: \n  61: 1. `hold_capital`: accept the current risk/capital cost without inventing a gain or cash.\n  62: 2. `execute_csa`: pay the quoted legal/operational price and schedule activation after the quoted business-day delay. Only the evidenced two-way agreement changes margined treatment. Actual VM transfers have separate receipts; RC uses transferred cash, not an unexecuted CSA label. Negative marks require liquidity. VM principal is not P&L.\n  63: 3. `substitute_collateral` and `reverse_substitution`: pay fees, meet custody/enforcement conditions and the effective date; swap actual rights. The quoted deployment yield concession starts only when substitution is effective. Original eligibility can return on reversal. Return obligation and existing reuse must be honoured before changing a lot.\n  64: 4. `execute_offset` then `consolidate_netting`: execute the separately quoted offset trade with its real upfront and future obligations. Consolidation pays its legal fee and changes netting only after the named jurisdiction opinions and novation confirmations arrive at the quoted delay. A master-agreement assertion alone creates no netting.\n  65: 5. `buy_protection` and `designate_protection`: execute the quoted CDS, accrue/pay its premium, preserve its own counterparty exposure and actual expiry. CCR maturity recognition and the economic tail are separate. Designation needs the stated eligible terms; it changes CVA-capital treatment, not premium history. An undesignated hedge retains the disclosed market-risk charge.\n  66: 6. `repo_allocate`: submit an actual whole-lot assignment to the quoted lenders. Recompute issuer concentration, minimum names, pool limits, market haircut, supervisory haircut and capital. Accepted cash arrives with title transfer/encumbrance and repo debt. Duplicate or unavailable lots reject. Repo maturity creates a real repayment/return obligation. Actual cash expense is contractual repo interest and explicit fees only. The static allocation objective's haircut funding and equity-hurdle terms remain disclosed noncash opportunity/capital allocation metrics; owner-contributed lots do not imply haircut borrowing. Never book the objective total as a cash fee.\n  67: 7. `repay_repo`, `sell_lot`, `buy_equivalent`, `return_collateral`: use current quoted prices, quantities and rights. An identical-return obligation forbids outright disposal; equivalent-return permission does not extinguish the obligation. Selling reusable received collateral creates a return liability, not sale profit. Buying an equivalent instrument uses cash and creates a newly identified lot. Returning a lot requires the secured debt's discharge and removes the matching obligation once.\n  68: 8. `draw_facility` and `repay_facility`: only the named, currently committed branch facility, within available limit. Permission is not a draw. Actual cash and debt move together; costs use its quoted unsecured funding spread. Default or legal suspension can remove undrawn capacity without erasing already drawn debt.\n  69: 9. `meet_margin_call`, `settle_payable`, `liquidate_collateral`, `reinvest`, `settle_claim`: act on identified existing obligations. No unknown payee, fabricated amount or unknown asset. Liquidation requires instrument existence, enforcement and an open realization market; default dependence and transfer controls are separate gates. Reinvestment spends actual matured principal at current quoted tenor/spread, not a precommitted year-five renewal.\n  70: 10. `escalate` and `decline`: submit a scoped `rule_id`, permitted `reason_code`, typed `premises` and `rationale` with the normal action/quote/phase fields. Accepted decisions create immutable dated receipts and `legal.decisions` entries, without financial postings. Escalation creates a pending approval resolved under the disclosed rule's approver, outcome, delay and validity period, or by that approver's authored dated response when one exists. A request is not approval. A declined route cannot execute without a new valid mandate or approval; unrelated routes remain available.\n  71: \n  72: Actions are priced by the public current quote board. Scheduled legal effects and payments survive worker restart. Only an obligation created by an already accepted contract or authenticated external event can become overdue and trigger a qualification blocker. A rejected proposed CSA, CDS, repo or sale leaves no fee, principal, return liability or other economic mutation. Cash never silently becomes negative. No risk remedy may manufacture equity.\n  73: \n  74: Mandate rules are scoped by action kind and subject, with tier `permitted`, `requires_approval` or `prohibited` and any stated amount cap. Execution under an approval requires the correct subject/rule, effective date, validity and unused authority; acceptance records consumption. Permission does not override intrinsic title, enforcement, instrument existence, cash, size or capital constraints. `escalate` and `decline` are accepted institutional actions, not no-op stand-ins for a failed trade.\n  75: \n  76: ## Event effects and legal axes\n  77: \n  78: Every authored event payload must map through an explicit, reviewed binding to closed effects, with its source ID. Unsupported `cash_rule`, right/status, settlement kind or contract is a reference failure. No keyword matching of prose. Effect categories are market curve/rating update; opening or closure of realization market; transfer restriction; named legal right status; current committed facility status; issued-instrument transition; contractual payment due; restricted collection receipt; final remittance; identified default; observability evidence; disputed claim recognition/payment; substitution request. News alone does not execute a trade.\n  79: \n  80: At borrower/reference joint default, already-issued same-issuer collateral has the stated conditional liquidation value, including zero where specified. Independent paper does not inherit that zero. A contingent promise cannot be priced from a traded line and cannot be liquidated before issuance. A payment-rights collection can survive borrower default yet remain trapped by transfer controls. Market closure prevents realization even when credit and title are sound. These paths are separate machine facts, not a W-label switch.\n  81: \n  82: A repo-form deployment supplies legal title subject to the stated return obligation; a pledge leaves title with the pledgor. Neither adds a second statutory asset when the repo is a secured lending accounting unit. Reuse requires explicit permission, effective enforcement and an unencumbered current right. Conditional or denied enforcement cannot be inferred effective from a document title.\n  83: \n  84: ## Valuation and accounting\n  85: \n  86: Use the common Decimal primitives and dated rules. The daily legal funding mark uses the matching quote's beta and conversion rate, actual remaining financial tenor, last paid price reset, actual delay to the next price settlement and current unpaid coupon stub. Its clean off-quarter component uses the explicitly quoted fractional-annuity convention; do not claim exact original-date coupon repricing. Exposure is derived from that mark and actual collateral. Current provider CDS drives CVA; current own unsecured bond spread drives actual debt funding. Bond-CDS basis is separately reported and is not substituted for the all-in spread over OIS.\n  87: \n  88: Actual current SA-CCR uses `saccr` with the full legal mark and transferred VM amount, not `funding_capital`'s fully-collateralized clean projection shortcut. A signed CSA with delayed or partial VM does not set collateral equal to value. Future CVA/KVA projections disclose their assumed contractual settlement schedule separately from current exposure. Whole-book capital explicitly maps every new balance-sheet asset: contributed allocation inventory, restricted cash/collections, posted VM, accrued and overdue receivables, purchased equivalents and recognized return liabilities. Their risk weights and leverage inclusion are current worker-readable desk/authority inputs. `wholebook_capital`'s original four-asset mapping cannot silently treat new contributed inventory as free Tier1 equity without its matching asset exposure.\n  89: \n  90: A reserve charge is not a borrowing receipt. Funding drag is accrued on actual outstanding debt. Any explicit exposure-prefunding transaction must show both borrowed cash and its funded asset before a quadratic funding charge is claimed. The actual base and that conditional transaction cannot be added as though both had executed.\n  91: \n  92: Produce statutory and management books with a reconciled bridge. The retained-U funding unit has no second statutory derivative. Management clean gain, gross inception deferral and CVA/KVA reserves are shown separately. Deferral uses frozen inception inputs and a disclosed time/observability trigger; reserve theta is repricing at the old market after clock roll, reserve MTM is the difference from that rolled old-market value, and action release is separated from both. Hedge cash/premium/mark and actual cash funding drag have their own lines. Each attribution equals the independently posted journal's equity movement, with owner contributions excluded from P&L.\n  93: \n  94: Prudent valuation applies only to identified recognised fair-value exposures and supplied uncertainty evidence. No mechanical AVA is invented merely because a management reserve grew. Show the separate CET1 deduction and the replacement-equity/KVA consequence where the actual identified exposure supports it. Scheduled maturity removes only paid/closed obligations. Unpaid claims, collateral returns and allowances survive the date until receipt-backed settlement or evidenced discharge.\n  95: \n  96: ## Daily score\n  97: \n  98: There are twelve owners with weights 7, 7, 10, 7, 8, 7, 6, 8, 10, 10, 10 and 10, totalling 100. Required report sections are `rates`, `credit_xva`, `capital`, `liquidity`, `accounting`, `legal`, `compliance`, `structure` and `recommendation`. The daily report remains `daily-book.v2`, distinct from the controlled static report `back_to_back_funding_book.v1r2`. The historical eight-owner weights and matrices remain evidence for their original versions only.\n  99: \n 100: O1 checks legal roles, current funding mark, source of cash, remaining tenors, contractual deployment spread and title. O2 checks independent CDS/bond drivers, CVA, debt-funded UFVA and noncash/debt distinction. O3 checks actual SA-CCR, collateral eligibility/haircut/maturity recognition and capital. O4 checks executed protection, regulatory recognition, designation and uncovered tail. O5 checks real quotes/capacity, current inventory allocation and action cost. O6 checks instrument existence, accessible cash and deadline shortfalls. O7 checks accounting unit, observability and deferral. O8 checks reserve attribution, independent journals, funding drag, AVA and outstanding terminal claims.\n 101: \n 102: O9 checks sourced legal conclusions and conditions. O10 checks the scoped mandate decision and current approval status. O11 checks the actual client outcome, including delivery, deadline, executable legal form, classification, return duties, required approvals, borrowing ceiling, contractual spread and bank viability. O12 checks the selected recommendation, binding constraint and alternatives against conclusion-specific support. `institutional.report_properties()` supplies the four schema sections; `grade_sections()` checks the report independently of the reference answer from `expected_sections()`. Supported alternatives can pass without matching reference wording or a whole premise list.\n 103: \n 104: Institutional premises identify `source`, RFC6901 `pointer`, `relation` and `value`. Relations are `eq`, `ne`, `gte`, `lte` or `contains`; source is `case`, `state`, `book` or `report`. Financial values are Decimal strings. Authenticated case/state/book facts provide authority. A report assertion cannot authenticate itself, and an unrelated true fact cannot support a conclusion. Rationales remain free explanation; neither length nor keywords determine the grade.\n 105: \n 106: Fatal legal/cash/title/ineligible-mitigation/fabricated-capacity errors disqualify independently of dense score. An accurate report of a rejected proposal is not an executed violation, but accurately reporting an unsuccessful client outcome does not earn O11. Missing evidence cannot earn an owner. A no-action run is not scoreable. The run result retains the final replay-valued book and elapsed-day-weighted owner history; later recovery cannot erase earlier unsuccessful or missing checkpoints. The static controlled KEEP proposal is not used to declare the capital-deficient live base viable.\n 107: \n 108: ## Required execution evidence\n 109: \n 110: After the family static gate: exercise all accepted action kinds, stale/duplicate/unknown quote refusals, atomic rejection, illegal reuse/double sale/double pledge/phantom cash refusals, no-action refusal, calculations-only state invariance, action-history dependence at the same final market, real restart with persistent work, independent receipt replay, every authored event binding and legal axis, deadline before later receipt, year-five reinvestment and year-twenty unresolved settlement. Grade each isolated daily-owner mutation and retain its matrix. Container canaries must exercise actual denied reads/network, not a Docker-argument inspection alone. Runtime and static financial audit receipts retain their distinct scopes.\n 111: \n 112: ## Implementation interfaces and ownership\n 113: \n 114: The historical family static gate in `evidence/build-and-prove/families-03/evidence/family-audit.json` records 64 generated roots/golds/identity matrices and 32 reseeds under the earlier contract. It is not current twelve-owner, runtime or statistical-independence evidence. A generated root contains `family.json`, `fixtures/numerical-inputs.json` and the selected case. Bindings remain evaluator-owned under the source bundle's `fixtures/event-bindings/`.\n 115: \n 116: `desk_contract.py` owns exact-decimal serialization, canonical hashing, calendar functions, closed state/envelope/receipt shapes and the journal primitive. `desk_ledger.py` owns opening receipts, atomic orchestration and checkpoint postings. `desk_events.py` owns authored effects, dated approval transitions and scheduled obligations. `desk_actions.py` owns quotes, scoped mandate checks and accepted-action economics. `desk_valuation.py` owns valuations and management overlays; its `client_outcome` comes from the shared pure institutional helper. `desk_replay.py` owns independent semantic replay. `daily_grader.py` owns the nine-section daily report and financial owner checks, consuming shared O9-O12 semantics. `desk_runtime.py` owns persistence and CLI. Main integrates and runs verification after writers finish.\n 117: \n 118: All of these files live under `src/`. Common helpers are `D(value)`, `serial(value)`, `canonical(value)`, `state_hash(state)`, `add_months(date, months)`, `financial_time(family, date)` and `as_of(family, day)`. `CandidateError` is a data/structural refusal; `ActionError` contains a stable refusal code and optional fatal blocker. Missing or inconsistent evaluator inputs raise `ReferenceError`. A complete validated source context is `context = {parameters, family, case, bindings, policy}`; the runtime obtains it with `load_context(family_root, source_root)`. Neither that object nor a source path supplied by a worker is a public worker capability.\n 119: \n 120: The loader computes `policy.source_binding` from the raw public policy, generated input files and required rule-document bytes. This derived object contains relative source identities and hashes, never evaluator filesystem paths. An authored policy cannot supply that reserved field. The raw policy hash excludes this loader-generated binding to avoid recursive hashing. The context remains the five-key object above; candidate packets cannot override its source manifest.\n 121: \n 122: Internal state is plain JSON-compatible data; monetary quantities remain decimal strings between modules. `accounts`, `lots`, `contracts` and `obligations` use stable identity keys. Accounts are signed debit-positive balances. Their closed prefixes identify statutory assets, liabilities, equity, income, expense or management-only overlay. `pending` is an ordered array of accepted dated effects. `legal.rights` is keyed by right, scope and collection identity; it cannot turn scoped permission into general permission. `legal` also holds decisions, approvals, transfer status, observability, facility status and irreversible default facts. `market` retains the authored curves, own CDS, role-specific rating labels and realization-market status. Opening incremental curve moves are explicitly zero by convention; required spreads and ratings still come from source inputs.\n 123: \n 124: A journal is `Journal(state)` with mutable `.state` and generated `.receipts`. `emit(kind, postings, operations, source_evidence, *, action_id=None, event_id=None, terms=None)` verifies debit/credit conservation, applies closed operations, chains a canonical hash and appends one immutable receipt. `postings` is an account-to-signed-decimal dictionary. `terms` is an immutable quoted/contract/event input record, not candidate-declared settlement truth. Operations may change a named lot, contract, obligation, current market/legal fact or accepted/clock field; they cannot replace the entire state. The journal enforces structure and conservation, while action/event handlers enforce economic eligibility. The replay verifier derives permitted economics separately; calling the same handler to reproduce a receipt is prohibited.\n 125: \n 126: Operations use the discriminator `op`. A journal may retain staging metadata `.parent_state`, `.parent_state_hash`, `.parent_revision`, `.parent_market_version`, `.parent_legal_version`, `.phase`, `.action_quotes` and `.blockers`. None is an additional economic state field or a candidate capability. Any `.sequence_start` is derived from `state.last_receipt_sequence`, never supplied as independent authority. The derived source binding may include `documents: {logical_id: {sha256, text}}` for exact reviewed citation spans. These documents must be hash-checked. Only spans actually made available to the worker can support a scored citation.\n 127: \n 128: Events export `load_bindings(source_root, family)`, `visible_events(context, day)`, `day_phases(context, state)`, `apply_event(context, journal, event)` and `settle_scheduled(context, journal, phase)`. Actions export `quote_board(context, state)` and `apply_action(context, journal, action)`. Actions include `phase`, `action_id`, `kind`, and `quote_id` where priced; each kind has a closed payload. Ledger exports `initial_state(parameters, family, *, context)`, `quote_board(parameters, family, state, *, context)` and `settle_day(parameters, family, state, actions, *, context)`. These retain the financial signatures above while making source context explicit. A successful result includes `state`, `receipts`, `blockers` and `accepted`; an atomic refusal returns the unchanged economic state and no receipts. Empty actions are calculation-only and cannot advance the clock. A hold is an accepted action.\n 129: \n 130: The current day's complete available event sequence and phase IDs are public. The action quote board binds the parent revision and each quoted phase's disclosed market/legal inputs. Cash, title and remaining capacity are checked again against the staged state when an action executes. Scheduled receipts respect authored ordering and period-specific overrides. Settlement processes only the current day's disclosed phases, then increments day once and publishes tomorrow's available packet. Publication alone does not receive cash. No future-day event may influence today's action eligibility or quoted capacity.\n 131: \n 132: Valuation exports `value_book(parameters, family, state, *, context)` and `checkpoint_overlay(parameters, family, previous_state, state, *, context)`. The latter returns explicit target overlay balances and an attribution independently tied to those balances; ledger emits the checkpoint postings. Valuation must not import action/event/ledger transition handlers. Current statutory totals, management totals and their bridge remain separate. Replay may use common pricing primitives and the pure valuation module, but cannot import `desk_ledger`, `desk_actions` or `desk_events` transition handlers. It independently verifies receipt sources, amounts, unique economic obligations, legal gates, operations and chain before comparing the final valued book.\n 133: \n 134: Daily grading exports `expected_daily_report(parameters, family, state, book, previous_book=None, *, context)` and `grade_daily(parameters, family, state, report, previous_book=None, *, context)`. Reports retain `schema_version=\"daily-book.v2\"`, `parent_state_hash`, nine required sections and current source support. Grades retain `daily-grade.v1`. Financial fields are owned separately; O9-O12 check institutional conclusions through `institutional.py`. The runtime grades the parent checkpoint, not the returned next-day state. A provisional opening grade is not a scoreable run until an actual worker action is accepted. A rejected action may retain a truthful parent report without pretending execution. Missing/rejected checkpoint credit is not dropped from the fixed observation denominator.\n 135: \n 136: Runtime commands are `init`, `packet`, `submit`, `replay` and `result`, with explicit family/source roots, database path and bounded input/output paths. The database stores source hashes, genesis, state, receipts, accepted-action uniqueness, rejected attempts, parent-checkpoint grades and actual client-outcome history. A single SQLite transaction covers an accepted envelope. Protected packets contain current state, quotes, available events/bindings, prior accepted receipts, public constraints, mandate and conventions/calculator. They exclude generated reference positions, gold, grade diagnostics, future external events, evaluator paths and the observation-stop horizon. The Modal bridge copies only the curated packet and bounded candidate output.\n 137: \n 138: ### Snapshot builder\n 139: \n 140: `desk_snapshot.py` is the one seam above `init` and `submit` that turns a desk path into a static case (ADR-0001). `build(family_root=, source_root=, script_path=, day=, output=, engine_root=None, node=\"node\")` and the CLI `build --family-root R --source-root S --script script.json --day N --output DIR [--engine-root E]` open a `DeskRuntime` in a temporary database, submit one envelope per scripted day, and freeze the day-N result under `DIR`. The frozen root is never appended to; `DIR` must not exist.\n 141: \n 142: The script is `{\"schema_version\": \"desk-snapshot-script.v1\", \"days\": [batch, ...]}` with exactly N batches. A batch is `{\"actions\": [...], \"calculations\": object|null}`; `actions` is nonempty because an empty action list is calculation-only and never advances the clock, so a pure prefix uses `hold_capital`. A scripted action carries `kind`, `action_id`, its closed payload, and optionally `phase` and `quote_terms` (a subset of the quote's `terms`); `quote_id` is never scripted because quote ids embed the parent revision and versions. The builder resolves each action against the current quote board by kind, then phase, then term subset, taking the earliest phase. Every batch must settle as `accepted` and advance exactly one day; a refusal, `settled_prefix` or `calculations_recorded` aborts the build with `SnapshotError` and no output.\n 143: \n 144: The frozen root is the `export_practice` layout plus the snapshot artifacts: byte copies of the static schemas, rule documents, `docs/exhibit-fields.md`, `fixtures/numerical-inputs.json`, `worker/legal-terms.txt` and `worker/docs/desk-runtime-contract.md` from the family root and `fixtures/desk-policy.json` from the source root; `worker/packet.json`, the day-N packet with every receipt page concatenated (`receipt_window.after_sequence` 0, `has_more` false; this file is not bounded by `max_packet_bytes`); `fixtures/case-exhibits.json`, one case whose `episode_id` is the family branch (one of the five static case ids, which is how the static grader selects it), whose public keys are verified identical to the packet's `public_inputs.case`, carrying the static-schema tables the family case already carries, plus the `RECEIPT_LOG` document and `snapshot: {day, parent_state_hash, run_prefix_hash}` where `run_prefix_hash` is `state.last_receipt_hash`; `docs/receipt-log.md`, one anchored section per receipt id whose summary line is the locator quote and whose body is the canonical receipt; and `snapshot-manifest.json` with the script digest and content hashes. `family.json`, `binding-manifest.json`, `fixtures/expected-reports.json` and `fixtures/mutation-fixtures.json` are excluded. The static validator requires `snapshot` and `RECEIPT_LOG` to appear together; cases without either validate unchanged.\n 145: \n 146: Determinism: two builds of the same roots, script and day are byte-identical. The packet's `run_id` (a UUID minted at `init`) is replaced by the first 32 hex digits of SHA-256(canonical script, parent_state_hash); attempt and run timestamps stay in the discarded temporary database; receipts carry no wall-clock fields; all generated JSON is written with sorted keys.\n 147: \n 148: Grader-only refusal: before any path is created, the builder scans the family's public surface (the case's public keys and `worker/*.json`) and every JSON value it would write for the union of the worker boundary's forbidden keys, the probe suite's private packet fields, `accepted_positions`, `expected_report` and the static recipe vocabulary (`expected_reports`, `mutations`, `supplemental_mutations`, `expected_failure_matrix` and their row fields). Any hit raises `GraderOnlyContent` (CLI exit 3) and nothing is written. Rating labels named `grade` beside a `scope` or `instrument` field are source data, not a leak. The single exemption is the static schema's required `accepted_positions` table at the top level of the case in `fixtures/case-exhibits.json`, which is evaluator-side; it is refused anywhere else, including under `worker/`. Schema files are byte copies and are not content-scanned. Acceptance is `src/test_desk_snapshot.py`; a worked script is `fixtures/snapshot-scripts/FUND_01-hold-day3.json`.\n 149: \n 150: `public_inputs.case` contains `as_of`, `base_currency`, `bank`, `book`, `parties`, `instruments`, `agreements`, `opinions`, `collateral`, `netting_sets`, `counterparty_constraints` and `mandate` from the current case. It excludes `accepted_positions`, future/scenario cash-event arrays and the documents annex. Reviewed legal source material is supplied through the authenticated public-document mechanism, not by exposing the evaluator's case file wholesale.\n 151: \n 152: ### Exact state vocabulary\n 153: \n 154: Top-level state keys are the closed list in State and receipts; no evaluator context, grade or future event path is stored in it. Genesis `last_receipt_hash` is 64 zeroes and all counters start at zero. `accounts` uses these exact debit-positive names: `cash`, `restricted_cash`, `restricted_collections`, `retained_U`, `deployment_principal`, `deployment_accrued`, `reinvestment_principal`, `inventory`, `posted_vm`, `unpaid_receivable`, `statutory_derivative_asset`, `statutory_derivative_liability`, `repo_debt`, `facility_debt`, `sale_financing`, `legacy_debt`, `received_vm`, `return_liability`, `unpaid_payable`, `claim_allowance`, `contributed_equity`, `income_carry`, `income_mark`, `income_hedge`, `expense_fees`, `expense_funding`, `expense_loss`, `management_funding_mark`, `management_hedge_asset`, `management_deferral`, `management_xva`, `management_income_mark`, `management_income_deferral`, `management_income_reserve`, `management_income_hedge`. The eight `management_` accounts form a separate balanced overlay. All accounts exist from genesis, even if zero. A liability/equity/income credit is negative. Core account balances are never inferred from candidate totals.\n 155: \n 156: The statutory derivative accounts record only actual separately recognized OFFSET or CDS contracts. They do not create a second derivative for the retained-U funding accounting unit. The public runtime offset quote treats the quoted value as signed legal fair value: fair consideration received by the desk is its negative. The original quoted upfront fixes the running spread; the current remaining-tenor quote determines today's fair consideration. Cash plus the newly recognized signed derivative balance has zero inception P&L before real fees. The static netting comparison already contains both trades and is not evidence that either fill occurred in the daily book. An outstanding derivative liability is not an overdue cash payable; only a dated contractual payment creates that obligation.\n 157: \n 158: `market` has exactly `funding_move`, `reference_move`, `own_bond_spread`, `own_cds_spread`, `provider_cds`, `em_move`, `ratings`, `market_open`. `ratings` maps `funding_reference`, `deployment_collateral`, `provider`, `borrower` to source labels. `legal` has `rights`, `transfer_blocks`, `observable`, `facility_status`, `defaults`, `substitution_requests`, `disputes`, `decisions`, `approvals`. `transfer_blocks` has exactly two booleans, `custody_delivery` and `cash_remittance`, initialized by the explicit policy map and changed only by an authenticated event's required `scopes`. No scalar or missing-scope fallback exists. Securities delivery, substitution and realizability use the custody rail and retain their separate title/delivery rights; borrower distributions and matured redemption use actual cash and the cash-remittance rail. A release changes only its named rail. Collection remittance still requires its own named-batch licence, and the independent funding contract is unchanged. The liquidity report exposes the same complete map. `rights` keys are `right|scope|collection_id`, with the last part empty unless collection-scoped; values are `effective`, `conditional` or `denied`. `defaults` keys are `borrower`, `provider`, `reference_issuer`; true cannot revert. Requests/disputes retain their originating IDs and source obligations/batches. Decisions and approvals use the closed records above, not unstructured permission prose.\n 159: \n 160: Every `lots[id]` contains `id`, `instrument_id`, `quantity`, `owner`, `location`, `encumbrance`, `issued`, `return_obligation`, `reuse_permitted`, `enforceability`, `source_evidence`, `book_value`, `issuer_id`, `issuer_kind`, `rating`, `maturity_date`, `coupon_spread`, `correlation`, `class`. Values for `class` are `funding_reference`, `deployment_collateral`, `allocation_inventory`, `replacement`, `equivalent`, `payment_rights`. `encumbrance` is null or an accepted contract ID. An unissued promise is not a lot. Source received security ownership remains the borrower for a pledge and the desk with a return obligation for a repo/title transfer; statutory loan exposure is never doubled by that legal form.\n 161: \n 162: Every `contracts[id]` has `id`, `kind`, `status`, `execution_date`, `effective_date`, `maturity_date`, `payment_dates`, `terms`, `state`, `source_evidence`. Immutable `terms` are copied from the authenticated source/quote. Contract `state` contains only the per-kind consumed balances/reset/paid-period fields specified by its handler. Live IDs begin `FUND_TRS`, `DEP_LOAN`, `DEP_SECURITY`, `LEGACY`, `FACILITY`; later IDs are `kind:action_id`. New contract states cannot amend locked historical terms. Each `obligations[id]` has `id`, `kind`, `contract_id`, `period_id`, `amount`, `remaining`, `paid_amount`, `side`, `due_day`, `status`, `source_evidence`, `metadata`; side is `payable` or `receivable`, status is `open`, `paid`, `written_off` or `disputed`. Identity is contractual period or authenticated event, not a fresh settlement receipt. `metadata` records the exact batch, account or deposit purpose needed by the specific obligation kind.\n 163: \n 164: `pending` items have `id`, `kind`, `due_date`, `contract_id`, `action_id`, `terms`, `source_evidence`. A source due date is public once its originating action/contract/event is known. It is not a hidden future external event. `accepted_action_ids` and `applied_event_ids` are arrays with uniqueness enforced. Source numeric policies required beyond the inherited inputs belong in worker-readable `fixtures/desk-policy.json`, owned by CoreLedger. That file must explicitly map the new account classes' capital and leverage treatment, business-day/weekend convention, repo and reinvestment conventions, default/claim assumptions and supported finite resource limits. A policy value cannot silently substitute for a missing source price, instrument, legal gate or quote.\n 165: \n 166: Operations are a closed union: `put_lot`, `put_contract`, `put_obligation`, `put_decision`, `put_approval` with `id,value`; `remove_lot` with `id`; `set_market`, `set_legal` with `key,value`; `put_right` with `key,value`; `put_dispute`, `put_request` with `id,value`; `add_pending` with `value`; `remove_pending` with `id`; `accept_action`, `mark_event` with `id`; and `commit_day` with `day,as_of,financial_time,revision`. No arbitrary JSON-pointer or account-mutation operation is accepted. Accounts change through balanced postings. Replay independently checks each operation, including decision/approval identity, dates, mandate scope and consumption.\n 167: \n 168: Quotes have `id`, `kind`, `parent_state_hash`, `revision`, `market_version`, `legal_version`, `phase`, `as_of`, `valid_until`, `terms`, `source_evidence`. Phase IDs are integer gaps `0..n` around the current day's authored events, with scheduled milestones included by `day_phases`. Common action fields are `kind,action_id,phase,quote_id`. Additional fields: `amount` for facility draw/repayment; `assignments` for repo allocation; `contract_id` for repo repayment/designation/reversal; `lot_id` for sale/return/liquidation; `instrument_id,quantity` for buying equivalent; `obligation_id,amount` for margin/payable/claim settlement; `amount,tenor_years` for reinvestment; `rule_id,reason_code,premises,rationale` for escalation/decline. Other kinds have no extra payload. All per-kind fields are required; unknown fields reject.\n 169: \n 170: Decision payload limits are 16 premises, 2,000 rationale characters and 32 scalar items in a premise value list. `rule_id` and `reason_code` are nonempty identifiers of at most 128 characters. Action-premise pointers start with `/` and follow RFC6901. Floats and nested value objects are not accepted. State retains at most 256 decisions and 256 approvals under the disclosed policy limits.\n 171: \n 172: Base contract state keys are closed. `FUND_TRS` has `principal`, `last_reset_price`, `last_reset_date`, `last_accrual_date`, `paid_periods`, `reset_periods`, `observability_history`, `vm_balance`, `unsettled_stub`, `netting_id`, `checkpoint_attribution`. `DEP_LOAN` has `outstanding_principal`, `paid_periods`, `prefunding`, `concession_spread`, `concession_start_date`, `last_accrual_date`. `DEP_SECURITY` has `active_lot_id`, `collection_batches`, `rights_chain`, `liquidated_quantity`, `returned`. `LEGACY` and `FACILITY` have `outstanding_principal`, `interest_accrued`, `interest_paid`, `last_accrual_date`, `paid_periods`. Later contract kinds use the initiating action kind and the handler's reviewed, closed state shape.\n 173: \n 174: The evaluator freezes an optional `observation_end_day` at initialization outside economic state and outside the worker packet. Final normalized scoring uses that fixed observation span; any unobserved remainder after stalling or a fatal blocker contributes zero without fabricating a clock advance or receipt. Live results expose a provisional raw score integral and elapsed coverage, not a final normalized score. No configured span means no final percentage. A fatal blocker ends observation and prevents further accepted actions. Missing or invalid calculations contribute zero on an otherwise valid accepted day; malformed envelopes still reject before any action. A later accepted envelope uses its own exact-parent report, never the best score from rejected attempts.\n 175: \n 176: A fatal assertion in otherwise well-formed parent calculations does not cancel valid actions in the same envelope. The evaluator grades the parent, settles independently valid actions, then latches report and settlement blockers before another day can execute. Thus changing calculations alone cannot change that envelope's cash or title. A reference failure prevents execution; a structurally invalid envelope or economically invalid action batch remains an atomic refusal.\n 177: \n 178: Book output retains `schema_version=\"daily-book-value.v2\"`, `parent_state_hash`, `as_of`, `financial_time`, `rates`, `credit_xva`, `capital`, `liquidity`, `accounting`, `source_evidence` and adds `client_outcome`. `accounting` retains separate `statutory`, `management`, `bridge`, `attribution`, `terminal` sections. Valuation sends computed values directly to DailyGrade. `rates.deployment_coupon_spread` follows the executed loan and effective substitution concessions, not an inference from annual expense. `checkpoint_overlay` returns `postings`, `attribution`, `targets`, `source_evidence`; no unexplained residual account may force reconciliation.\n 179: \n 180: `client_outcome(case, parameters, *, family, state, book)` in `institutional.py` derives the outcome from authenticated inputs without calling valuation. Identity fields are `party_id`, `legal_form`, `classification`, `currency`, `funding_deadline`; amounts are `cash_required`, `cash_delivered`, `contractual_spread`, `capital_shortfall`, `deadline_shortfall`. `delivered_at` is a date or null. Predicates are `deadline_met`, `legal_form_allowed`, `classification_consistent`, `return_obligation_met`, `approvals_satisfied`, `client_executable`, `bank_viable`, `successful`, `borrowing_ceiling_satisfied`, `maximum_spread_satisfied`, `inherited_delivery`. `failures` retains the reasons. Missing or invalid source facts are reference errors; unmet client goals are unsuccessful outcomes.\n 181: \n 182: Original borrower delivery comes from the settled `CF_DEPLOY` source cash flow and its `opening_deployment` receipt, not current outstanding principal or a new worker action. Its original settlement date determines deadline performance. A setup payment to P is not a borrower fee. Later action costs and effective contractual terms remain in their own receipts and valuations. Final outcomes do not replace the stored history of earlier failed owner-days.\n 183: \n 184: The run result's `institutional` object contains `client_outcome_owner=\"O11\"`, `checkpoint_outcomes`, `final_client_outcome`, `decisions` and `approvals`. `checkpoint_outcomes` reports `observed_days`, `successful_days`, `unsuccessful_days`, `inherited_successful_days` and `latest`. A latest row identifies `attempt_id`, `parent_state_hash`, `day`, `revision`, `elapsed_days` and `client_outcome`. `history().attempts[i].checkpoint.client_outcome` retains the immutable parent outcome independently of report validity. Outcome days are not summed cash flows.\n 185: \n 186: Each owner's score integral uses its exact-parent grade weight times checkpoint `elapsed_days`. O11 requires successful actual outcome plus accurate source-supported reporting. Inherited success may earn current O11 credit but stays tagged as inherited. A fixed evaluator observation span includes any unobserved remainder at zero; without a configured span there is no final percentage. `final_client_outcome` cannot overwrite history or award retroactive points.\n 187: \n 188: ## Explicit scenario windows\n 189: \n 190: `family_generator.generate_scenario_windows(root, output_root, seeds=(1,))` materializes the selected windows into a fresh output directory and writes `manifest.json` with `schema_version=\"scenario_windows.v1\"`, `source_file`, `source_sha256`, `windows`, `independence_established` and `actual_axis_consequences`. Window rows retain the generated-family identity and root, purpose, observation end day, funding/window/anchor dates and scenario-definition hash. Generation records `independence_established=false` and `actual_axis_consequences=\"pending_runtime\"`; it does not claim execution.\n 191: \n 192: Pass the materialized manifest to `desk_probes.audit_desk(..., scenario_windows_manifest=...)` or its `--window-manifest` CLI option. Omission produces a missing-window proof, not a pass. There is no fallback to an older directory or automatic selection of the newest run. The supplied manifest must bind current `fixtures/scenario-windows.json` bytes and seed-1 roots for all six definitions, each with its declared 20-day horizon. The original four windows are unchanged; `FUND_04_Q20_EQUIVALENT_RETURN` and `DPR_05_Q1_PARTIAL_PRICE_RETURN` are expressly related lifecycle regression windows, not additional independent families. A scored window is not extended to 24 days to obtain a later favorable result. The manifest and generated roots accompany the run's evidence; this evaluator configuration does not expose tomorrow's events to a protected worker.\n","tool_call_id":"call_e306a3993dd95597b6d500d5260d794e","type":"tool_result"}},{"step":6,"generation":0,"created_at":"2026-09-20T09:59:37.421Z","event":{"content":"STDOUT:\ndocs keys dict_keys(['CURRENT_INPUTS.json', 'docs/capital-actions.md', 'docs/capital-rulebook.md', 'docs/desk-runtime-contract.md', 'docs/economic-specification.md', 'docs/reference-input-contract.md', 'docs/reserve-module.md', 'family/worker/legal-terms.txt', 'fixtures/desk-policy.json', 'schemas/daily-report.schema.json'])\nCURRENT_INPUTS.json dict 2\n{'sha256': '76856db6f8f135b7fc21ec86623f24a6aaa37040808ffb6cfe233edda6e05722', 'text': '{\"case\":{\"agreements\":[{\"agreement_id\":\"SALE_U\",\"closeout\":{\"currency\":\"USD\",\"dispute_process\":\"Morrow & Vale documented independent quote process; disputed claims survive maturity until settled\",\"evidence\":[{\"document_id\":\"SYNTHETIC_PACKET\",\"locator\":\"fictional-executed-agreements\"}],\"setoff\":false,\"stay_business_days\":0,\"valuation_basis\":\"principal_and_accrued_interest\"},\"effectiveness\":{\"conditions\":[{\"ass\ndocs/capital-actions.md dict 2\n{'sha256': 'b89cc0ab4ebb2da49f50ae0ab44260c9916ab3c45e82e2832c08205467bcac87', 'text': '# Capital actions, prices and binding constraints\\n\\nThis is a fictional pricing annex dated 19 September 2026. Its counterparties, contracts, opinions and executable quotes are invented for the educational instance. The public inputs are [numerical-inputs.json](../fixtures/numerical-inputs.json). No quoted price in this annex is represented as an observed market transaction or an IFRS observability conclusio\ndocs/capital-rulebook.md dict 2\n{'sha256': 'e41e897bb0f859af89299499433324884cd157819b8d49257d7d07d0d577ad7a', 'text': '# Capital rulebook for the back-to-back funding capstone\\n\\nAs-of date: 19 September 2026. Amounts are USD unless stated otherwise. This is an educational comparator using the dated, current global Basel text below. It is not an opinion on implementation in any particular jurisdiction, regulatory permission, an accounting election, or evidence that a transaction is executable.\\n\\nThe rulebook contains the for\ndocs/desk-runtime-contract.md dict 2\n{'sha256': '9c70cf772762ca0845b4d6b107d1ef948ebc557d397564566f74109e7fb16a3a', 'text': '# Settled desk contract\\n\\nThis contract specifies the actual daily book, not the seventeen controlled financial report panels. It is a named synthetic desk convention supplementing the dated rulebook. The versions exported by `desk_contract.py` are `desk-state.v3`, `desk-envelope.v2` and `desk-policy.v3`, with no v1 aliases. Report labels remain `daily-book.v2` and `daily-grade.v1`; `worker-packet.v1` is unc\ndocs/economic-specification.md dict 2\n{'sha256': '80cb44c6e1c3346e1d345eb0647e2381fc97f074150654a3ce0aa6f4129daf44', 'text': '# Economic specification of the funding book\\n\\nAs of 19 September 2026. This is a fictional USD book and a public contract for its standalone numerical verifier. It is not a production installation, an observed transaction, or a national regulatory opinion. The exact source requests are preserved in [user-request.xml](../sources/user-request.xml) and [source-structures.xml](../sources/source-structures.xml).\ndocs/reference-input-contract.md dict 2\n{'sha256': 'bc59f27372ec2c6f81be9e4e83b404f45e3bb42d2ee9d742da2dedd537bb5f62', 'text': '# Reference input contract\\n\\nThis annex defines the implemented BOOK reference conventions. It supplies fictional premises, not external legal opinions, market observations or a regulatory approval. The parameter schema, reference validator and the Python calculations share this contract. An unsupported convention is a reference error, not permission to choose a nearby method.\\n\\n## Numeric and legal boundar\ndocs/reserve-module.md dict 2\n{'sha256': '30a551175152fb2b98dec975fec539e1131c8c4458adce7c7a0fa454deb74708', 'text': '# Cash, reserves and the statutory bridge\\n\\nAs of **19 September 2026**. All entities, contracts, valuations, model distributions and market quotes in this module are fictional. Amounts are USD; tables labelled `m` use USD millions. The official sources support the stated rules, not the fictional transactions or their prices. This is an educational design and standalone calculation artifact, not a production\nfamily/worker/legal-terms.txt dict 2\n{'sha256': 'ee06975127ae967c42cb3d0f51447b5008200eb04b6157dd5f6dfa945ad87694', 'text': '<a id=\"actual-deployment-terms\"></a>\\nFictional current contract for FUND_01, series 1. Jurisdiction: Fictional Commonwealth of Orivale / series 1. The borrower Brackenford Trade Bank [FUND_01 series 1] grants issued_security_pledge rights over DEPSEC, 990009000 USD1 units or identified payment-right face units. The collateral relation is independent; issuance exists now: true. Ownership basis is pledge; the \nfixtures/desk-policy.json dict 2\n{'sha256': '99a4529f5f18565cef56d712bc35bd226678bccc1d91a92ea0f1c237538fe099', 'text': '{\\n  \"schema_version\": \"desk-policy.v3\",\\n  \"name\": \"Settled synthetic desk conventions, 2026-09-19\",\\n  \"status\": \"Public fictional desk policies. These conventions supplement, and never replace, authenticated instrument terms, quotes, legal rights or cash receipts.\",\\n  \"source_documents\": [\\n    \"docs/desk-runtime-contract.md\",\\n    \"docs/economic-specification.md\",\\n    \"docs/capital-actions.md\",\\n    \"do\nschemas/daily-report.schema.json dict 2\n{'sha256': '08ba89e6b7d0709a080d2e4f32ee2eb7271b5b8cbdc9b875de8b9c5d7409211b', 'text': '{\\n  \"$schema\": \"https://json-schema.org/draft/2020-12/schema\",\\n  \"$id\": \"urn:back-to-back-funding:daily-book.v2\",\\n  \"title\": \"Settled parent-checkpoint financial and institutional assertions\",\\n  \"description\": \"Five financial sections use exact current-source assertions. Legal, compliance, structure and recommendation sections use entailed premises, independent client outcomes and supported alternatives, \ndaily_report {\n  \"max_bytes\": 1048576,\n  \"max_collection_items\": 4096,\n  \"max_depth\": 24,\n  \"max_nodes\": 30000,\n  \"max_string_length\": 4096,\n  \"numeric_tolerances\": {\n    \"money\": \"0.000001\",\n    \"scalar\": \"0.000000000001\"\n  },\n  \"schema_version\": \"daily-book.v2\"\n}\nreceipts first/last\n{\n  \"action_id\": null,\n  \"day\": -89,\n  \"event_id\": null,\n  \"hash\": \"f1af08bb6bcf3d9c1da84c03a236d43cfca124304651cb5655c80ded92b7b545\",\n  \"id\": \"receipt:d6ca010918dd18d2d071537cdea765f9caa2c3555ae60e2fae9aa8769be3214e\",\n  \"kind\": \"source_binding\",\n  \"operations\": [],\n  \"postings\": {},\n  \"previous_receipt_hash\": \"0000000000000000000000000000000000000000000000000000000000000000\",\n  \"sequence\": 1,\n  \"source_evidence\": [\n    {\n      \"file\": \"fixtures/desk-policy.json\",\n      \"locator\": \"/schema_version\"\n    }\n  ],\n  \"terms\": {\n    \"case_hash\": \"6a3a58d6a50368837264762f24a8eface0a9a08cc00257b2ac3e9512d8ccca9e\",\n    \"event_bindings_hash\": \"92c6b167b0d756cddce8b45c50975649f0e4a6274153aa106b5d63f4455fa4d4\",\n    \"family_hash\": \"16c357b6edc8cae7e6894b56b1dcd2a29126bc9a5df13901ee56756df58b920f\",\n    \"parameters_hash\": \"210b07b375cb8c0132dd8a2ddbff8bf529f64c0836ecc170f9486883db4a79b2\",\n    \"policy_hash\": \"99a4529f5f18565cef56d712bc35bd226678bccc1d91a92ea0f1c237538fe099\",\n    \"source_files_hash\": \"c6a667d8acf7070ef8f30217a801096dfedeb4cdffd4d992ed4bc863a322c33e\"\n  }\n}\n{\n  \"action_id\": null,\n  \"day\": -89,\n  \"event_id\": null,\n  \"hash\": \"320f6c77614ae941e1d5afe5d878adc44f5f0c83b4ea99f075991a9ad065d64a\",\n  \"id\": \"receipt:80bc79d396ab38414ece36c9b6944115e34c4d0e9af408fab49fa1ee15856403\",\n  \"kind\": \"opening_cash\",\n  \"operations\": [],\n  \"postings\": {\n    \"cash\": \"123751125\",\n    \"contributed_equity\": \"-123751125\",\n    \"restricted_cash\": \"0\"\n  },\n  \"previous_receipt_hash\": \"f1af08bb6bcf3d9c1da84c03a236d43cfca124304651cb5655c80ded92b7b545\",\n  \"sequence\": 2,\n  \"source_evidence\": [\n    {\n      \"document_id\": \"SYNTHETIC_PACKET\",\n      \"locator\": \"fictional-ledgers\"\n    }\n  ],\n  \"terms\": {\n    \"amount\": \"123751125\",\n    \"asset_id\": \"USD\",\n    \"available_date\": \"2027-06-05\",\n    \"contract_id\": null,\n    \"source_id\": \"OPENING\",\n    \"status\": \"settled\"\n  }\n}\n{\n  \"action_id\": null,\n  \"day\": -89,\n  \"event_id\": null,\n  \"hash\": \"70200cad7f6870fd947efa50d21738c19e85e263ddf0bb3a6641ff63a8e2b8a2\",\n  \"id\": \"receipt:e24ee60763cab16f0ac642fa48fa3101fe7ace9c4311a60e5a8cadf8506674ca\",\n  \"kind\": \"opening_reference\",\n  \"operations\": [\n    {\n      \"id\": \"U\",\n      \"op\": \"put_lot\",\n      \"value\": {\n        \"book_value\": \"990009000\",\n        \"class\": \"funding_reference\",\n        \"correlation\": false,\n        \"coupon_spread\": \"0.009900578\",\n        \"encumbrance\": null,\n        \"enforceability\": \"effective\",\n        \"id\": \"U\",\n        \"instrument_id\": \"U\",\n        \"issued\": true,\n        \"issuer_id\": \"APEX\",\n        \"issuer_kind\": \"bank\",\n        \"location\": \"CUST_U_OPEN\",\n        \"maturity_date\": \"2047-06-05\",\n        \"owner\": \"MERIDIAN\",\n        \"quantity\": \"990009000\",\n        \"rating\": \"AAA\",\n        \"return_obligation\": null,\n        \"reuse_permitted\": false,\n        \"source_evidence\": [\n          {\n            \"document_id\": \"SYNTHETIC_PACKET\",\n            \"locator\": \"fictional-instrument-register\"\n          }\n        ]\n      }\n    },\n    {\n      \"id\": \"LEGACY\",\n      \"op\": \"put_contract\",\n      \"value\": {\n        \"effective_date\": \"2027-06-05\",\n        \"execution_date\": \"2027-06-05\",\n        \"id\": \"LEGACY\",\n        \"kind\": \"legacy\",\n        \"maturity_date\": \"2047-06-05\",\n        \"payment_dates\": [\n          \"2027-09-05\",\n          \"2027-12-05\",\n          \"2028-03-05\",\n          \"2028-06-05\",\n          \"2028-09-05\",\n          \"2028-12-05\",\n          \"2029-03-05\",\n          \"2029-06-05\",\n          \"2029-09-05\",\n          \"2029-12-05\",\n          \"2030-03-05\",\n          \"2030-06-05\",\n          \"2030-09-05\",\n          \"2030-12-05\",\n          \"2031-03-05\",\n          \"2031-06-05\",\n          \"2031-09-05\",\n          \"2031-12-05\",\n          \"2032-03-05\",\n          \"2032-06-05\",\n          \"2032-09-05\",\n          \"2032-12-05\",\n          \"2033-03-05\",\n          \"2033-06-05\",\n          \"2033-09-05\",\n          \"2033-12-05\",\n          \"2034-03-05\",\n          \"2034-06-05\",\n          \"2034-09-05\",\n          \"2034-12-05\",\n          \"2035-03-05\",\n          \"2035-06-05\",\n          \"2035-09-05\",\n          \"2035-12-05\",\n          \"2036-03-05\",\n          \"2036-06-05\",\n          \"2036-09-05\",\n          \"2036-12-05\",\n          \"2037-03-05\",\n          \"2037-06-05\",\n          \"2037-09-05\",\n          \"2037-12-05\",\n          \"2038-03-05\",\n          \"2038-06-05\",\n          \"2038-09-05\",\n          \"2038-12-05\",\n          \"2039-03-05\",\n          \"2039-06-05\",\n          \"2039-09-05\",\n          \"2039-12-05\",\n          \"2040-03-05\",\n          \"2040-06-05\",\n          \"2040-09-05\",\n          \"2040-12-05\",\n          \"2041-03-05\",\n          \"2041-06-05\",\n          \"2041-09-05\",\n          \"2041-12-05\",\n          \"2042-03-05\",\n          \"2042-06-05\",\n          \"2042-09-05\",\n          \"2042-12-05\",\n          \"2043-03-05\",\n          \"2043-06-05\",\n          \"2043-09-05\",\n          \"2043-12-05\",\n          \"2044-03-05\",\n          \"2044-06-05\",\n          \"2044-09-05\",\n          \"2044-12-05\",\n          \"2045-03-05\",\n          \"2045-06-05\",\n          \"2045-09-05\",\n          \"2045-12-05\",\n          \"2046-03-05\",\n          \"2046-06-05\",\n          \"2046-09-05\",\n          \"2046-12-05\",\n          \"2047-03-05\",\n          \"2047-06-05\"\n        ],\n        \"source_evidence\": [\n          {\n            \"document_id\": \"SYNTHETIC_PACKET\",\n            \"locator\": \"fictional-ledgers\"\n          }\n        ],\n        \"state\": {\n          \"interest_accrued\": \"0\",\n          \"interest_paid\": \"0\",\n          \"last_accrual_date\": \"2027-06-05\",\n          \"outstanding_principal\": \"990009000\",\n          \"paid_periods\": []\n        },\n        \"status\": \"active\",\n        \"terms\": {\n          \"day_count\": \"ACT/365F\",\n          \"ois\": \"0.0356420304\",\n          \"principal\": \"990009000\",\n          \"quarter\": \"0.25\",\n          \"spread\": \"0\"\n        }\n      }\n    }\n  ],\n  \"postings\": {\n    \"legacy_debt\": \"-990009000\",\n    \"retained_U\": \"990009000\"\n  },\n  \"previous_receipt_hash\": \"320f6c77614ae941e1d5afe5d878adc44f5f0c83b4ea99f075991a9ad065d64a\",\n  \"sequence\": 3,\n  \"source_evidence\": [\n    {\n      \"document_id\": \"SYNTHETIC_PACKET\",\n      \"locator\": \"fictional-ledgers\"\n    }\n  ],\n  \"terms\": {\n    \"amount\": \"990009000\",\n    \"asset_id\": \"U\",\n    \"available_date\": \"2027-06-05\",\n    \"contract_id\": \"LEGACY\",\n    \"source_id\": \"OPENING\",\n    \"status\": \"settled\"\n  }\n}\n{\n  \"action_id\": null,\n  \"day\": -2,\n  \"event_id\": null,\n  \"hash\": \"c4859d76689a9299022fa839ea946c6dd1737ebcb07e6cec3af9fecec14c7719\",\n  \"id\": \"receipt:1228798c7ad1acbcbd75d357b72a13cb03e99a57fa635dca6dc97ea1b5be3b09\",\n  \"kind\": \"opening_clock\",\n  \"operations\": [\n  \n[...truncated...]\n    \"revision\": 0\n    }\n  ],\n  \"postings\": {},\n  \"previous_receipt_hash\": \"bf451744563698f652cbf946083d16a705664fe262bde3d2bd6270b08085c3e1\",\n  \"sequence\": 410,\n  \"source_evidence\": [\n    {\n      \"file\": \"docs/desk-runtime-contract.md\",\n      \"locator\": \"## Clock and settlement order\"\n    }\n  ],\n  \"terms\": {\n    \"from_day\": -2,\n    \"funding_start_date\": \"2027-06-05\",\n    \"to_day\": -1,\n    \"window_start_date\": \"2027-09-02\"\n  }\n}\n{\n  \"action_id\": null,\n  \"day\": -1,\n  \"event_id\": null,\n  \"hash\": \"5897f7b9d4fb37b4b086b7bc0cd3f87561788a10817164931d34c6b9def7c08c\",\n  \"id\": \"receipt:30fe2ea324136cbd6fb09fabb7dedd197ee1c1d91f3682ef31b007fefa0eefad\",\n  \"kind\": \"scheduled:approval_review\",\n  \"operations\": [],\n  \"postings\": {},\n  \"previous_receipt_hash\": \"c4859d76689a9299022fa839ea946c6dd1737ebcb07e6cec3af9fecec14c7719\",\n  \"sequence\": 411,\n  \"source_evidence\": [\n    {\n      \"document_id\": \"SYNTHETIC_PACKET\",\n      \"locator\": \"fictional-desk-mandate\"\n    }\n  ],\n  \"terms\": {\n    \"contract_id\": null,\n    \"kind\": \"approval_review\",\n    \"period_id\": \"2027-09-01\",\n    \"phase\": 0,\n    \"scheduled_date\": \"2027-09-01\"\n  }\n}\n{\n  \"action_id\": null,\n  \"day\": -1,\n  \"event_id\": null,\n  \"hash\": \"0b61f73c295de67f3bc50f0f7faa60a243663667ae6519099a1b4138005e70ab\",\n  \"id\": \"receipt:45260c63c5cd6546396aab916c285b55bd9d8669d1f3490d5a30dea7ca885259\",\n  \"kind\": \"scheduled:approval_review\",\n  \"operations\": [],\n  \"postings\": {},\n  \"previous_receipt_hash\": \"5897f7b9d4fb37b4b086b7bc0cd3f87561788a10817164931d34c6b9def7c08c\",\n  \"sequence\": 412,\n  \"source_evidence\": [\n    {\n      \"document_id\": \"SYNTHETIC_PACKET\",\n      \"locator\": \"fictional-desk-mandate\"\n    }\n  ],\n  \"terms\": {\n    \"contract_id\": null,\n    \"kind\": \"approval_review\",\n    \"period_id\": \"2027-09-01\",\n    \"phase\": 1,\n    \"scheduled_date\": \"2027-09-01\"\n  }\n}\n{\n  \"action_id\": null,\n  \"day\": -1,\n  \"event_id\": null,\n  \"hash\": \"2b7412c41ba120f9247ff3061d2bb3f1176c8ae441cdd265d8b517f9f91524ed\",\n  \"id\": \"receipt:2b5b6bc098710aed2ee44078f68f0c51423ae91735cbbdf1ef22a016296be1f3\",\n  \"kind\": \"scheduled:day_close\",\n  \"operations\": [\n    {\n      \"id\": \"FACILITY\",\n      \"op\": \"put_contract\",\n      \"value\": {\n        \"effective_date\": \"2027-06-05\",\n        \"execution_date\": \"2027-06-05\",\n        \"id\": \"FACILITY\",\n        \"kind\": \"facility\",\n        \"maturity_date\": \"2047-06-05\",\n        \"payment_dates\": [\n          \"2027-09-05\",\n          \"2027-12-05\",\n          \"2028-03-05\",\n          \"2028-06-05\",\n          \"2028-09-05\",\n          \"2028-12-05\",\n          \"2029-03-05\",\n          \"2029-06-05\",\n          \"2029-09-05\",\n          \"2029-12-05\",\n          \"2030-03-05\",\n          \"2030-06-05\",\n          \"2030-09-05\",\n          \"2030-12-05\",\n          \"2031-03-05\",\n          \"2031-06-05\",\n          \"2031-09-05\",\n          \"2031-12-05\",\n          \"2032-03-05\",\n          \"2032-06-05\",\n          \"2032-09-05\",\n          \"2032-12-05\",\n          \"2033-03-05\",\n          \"2033-06-05\",\n          \"2033-09-05\",\n          \"2033-12-05\",\n          \"2034-03-05\",\n          \"2034-06-05\",\n          \"2034-09-05\",\n          \"2034-12-05\",\n          \"2035-03-05\",\n          \"2035-06-05\",\n          \"2035-09-05\",\n          \"2035-12-05\",\n          \"2036-03-05\",\n          \"2036-06-05\",\n          \"2036-09-05\",\n          \"2036-12-05\",\n          \"2037-03-05\",\n          \"2037-06-05\",\n          \"2037-09-05\",\n          \"2037-12-05\",\n          \"2038-03-05\",\n          \"2038-06-05\",\n          \"2038-09-05\",\n          \"2038-12-05\",\n          \"2039-03-05\",\n          \"2039-06-05\",\n          \"2039-09-05\",\n          \"2039-12-05\",\n          \"2040-03-05\",\n          \"2040-06-05\",\n          \"2040-09-05\",\n          \"2040-12-05\",\n          \"2041-03-05\",\n          \"2041-06-05\",\n          \"2041-09-05\",\n          \"2041-12-05\",\n          \"2042-03-05\",\n          \"2042-06-05\",\n          \"2042-09-05\",\n          \"2042-12-05\",\n          \"2043-03-05\",\n          \"2043-06-05\",\n          \"2043-09-05\",\n          \"2043-12-05\",\n          \"2044-03-05\",\n          \"2044-06-05\",\n          \"2044-09-05\",\n          \"2044-12-05\",\n          \"2045-03-05\",\n          \"2045-06-05\",\n          \"2045-09-05\",\n          \"2045-12-05\",\n          \"2046-03-05\",\n          \"2046-06-05\",\n          \"2046-09-05\",\n          \"2046-12-05\",\n          \"2047-03-05\",\n          \"2047-06-05\"\n        ],\n        \"source_evidence\": [\n          {\n            \"file\": \"worker/legal-terms.txt\",\n            \"locator\": \"actual-deployment-terms\"\n          },\n          {\n            \"file\": \"worker/docs/desk-runtime-contract.md\",\n            \"locator\": \"## Clock and settlement order\"\n          }\n        ],\n        \"state\": {\n          \"interest_accrued\": \"0\",\n          \"interest_paid\": \"0\",\n          \"last_accrual_date\": \"2027-09-02\",\n          \"outstanding_principal\": \"0\",\n          \"paid_periods\": []\n        },\n        \"status\": \"active\",\n        \"terms\": {\n          \"cash_account_id\": \"CASH_BRANCH\",\n          \"day_count\": \"ACT/365F\",\n          \"fee\": \"0\",\n          \"initial_own_bond_spread\": \"0.0064352412\",\n          \"lender_id\": \"FACILITY_LENDER\",\n          \"limit\": \"257402340\",\n          \"ois\": \"0.0356420304\",\n          \"spread\": \"0.0108903245\",\n          \"unconditional_by_selected_cutoff\": true,\n          \"year_days\": \"365\"\n        }\n      }\n    },\n    {\n      \"id\": \"FUND_TRS\",\n      \"op\": \"put_contract\",\n      \"value\": {\n        \"effective_date\": \"2027-06-05\",\n        \"execution_date\": \"2027-06-05\",\n        \"id\": \"FUND_TRS\",\n        \"kind\": \"funding_trs\",\n        \"maturity_date\": \"2047-06-05\",\n        \"payment_dates\": [\n          \"2027-09-05\",\n          \"2027-12-05\",\n          \"2028-03-05\",\n          \"2028-06-05\",\n          \"2028-09-05\",\n          \"2028-12-05\",\n          \"2029-03-05\",\n          \"2029-06-05\",\n          \"2029-09-05\",\n          \"2029-12-05\",\n          \"2030-03-05\",\n          \"2030-06-05\",\n          \"2030-09-05\",\n          \"2030-12-05\",\n          \"2031-03-05\",\n          \"2031-06-05\",\n          \"2031-09-05\",\n          \"2031-12-05\",\n          \"2032-03-05\",\n          \"2032-06-05\",\n          \"2032-09-05\",\n          \"2032-12-05\",\n          \"2033-03-05\",\n          \"2033-06-05\",\n          \"2033-09-05\",\n          \"2033-12-05\",\n          \"2034-03-05\",\n          \"2034-06-05\",\n          \"2034-09-05\",\n          \"2034-12-05\",\n          \"2035-03-05\",\n          \"2035-06-05\",\n          \"2035-09-05\",\n          \"2035-12-05\",\n          \"2036-03-05\",\n          \"2036-06-05\",\n          \"2036-09-05\",\n          \"2036-12-05\",\n          \"2037-03-05\",\n          \"2037-06-05\",\n          \"2037-09-05\",\n          \"2037-12-05\",\n          \"2038-03-05\",\n          \"2038-06-05\",\n          \"2038-09-05\",\n          \"2038-12-05\",\n          \"2039-03-05\",\n          \"2039-06-05\",\n          \"2039-09-05\",\n          \"2039-12-05\",\n          \"2040-03-05\",\n          \"2040-06-05\",\n          \"2040-09-05\",\n          \"2040-12-05\",\n          \"2041-03-05\",\n          \"2041-06-05\",\n          \"2041-09-05\",\n          \"2041-12-05\",\n          \"2042-03-05\",\n          \"2042-06-05\",\n          \"2042-09-05\",\n          \"2042-12-05\",\n          \"2043-03-05\",\n          \"2043-06-05\",\n          \"2043-09-05\",\n          \"2043-12-05\",\n          \"2044-03-05\",\n          \"2044-06-05\",\n          \"2044-09-05\",\n          \"2044-12-05\",\n          \"2045-03-05\",\n          \"2045-06-05\",\n          \"2045-09-05\",\n          \"2045-12-05\",\n          \"2046-03-05\",\n          \"2046-06-05\",\n          \"2046-09-05\",\n          \"2046-12-05\",\n          \"2047-03-05\",\n          \"2047-06-05\"\n        ],\n        \"source_evidence\": [\n          {\n            \"document_id\": \"SYNTHETIC_PACKET\",\n            \"locator\": \"fictional-executed-agreements\"\n          }\n        ],\n        \"state\": {\n          \"checkpoint_attribution\": {},\n          \"financing_coupon_accrued\": \"10193163.186945957065\",\n          \"last_accrual_date\": \"2027-09-02\",\n          \"last_reset_date\": \"2027-06-05\",\n          \"last_reset_price\": \"1\",\n          \"netting_id\": \"FUNDING_P\",\n          \"observability_history\": [\n            {\n              \"day\": -89,\n              \"observable\": false\n            }\n          ],\n          \"paid_periods\": [],\n          \"principal\": \"990009000\",\n          \"reference_coupon_accrued\": \"10904336.156938392391\",\n          \"reset_periods\": [],\n          \"unsettled_stub\": \"0\",\n          \"vm_balance\": \"0\"\n        },\n        \"status\": \"active\",\n        \"terms\": {\n          \"NICA\": \"0\",\n          \"SA_CVA_approval\": false,\n          \"classification_evidence\": {\n            \"file\": \"docs/exhibit-fields.md\",\n            \"locator\": \"fictional-classification\"\n          },\n          \"contract_id\": \"FUND_TRS\",\n          \"currency\": \"USD\",\n          \"full_value_reset\": false,\n          \"last_reset_price\": \"1\",\n          \"locked_financing_spread\": \"0.0069303218\",\n          \"minimum_transfer_amount\": \"0\",\n          \"mpor_floor\": {\n            \"illiquid_or_hard_to_replace\": true,\n            \"non_centrally_cleared\": true,\n            \"over_5000_transactions\": false,\n            \"remargin_interval_days\": \"1\",\n            \"repeated_disputes\": false,\n            \"source_evidence\": {\n              \"file\": \"docs/reference-input-contract.md\",\n              \"locator\": \"mpor-floor-facts\"\n            }\n          },\n          \"netting_set_id\": \"FUNDING_P\",\n          \"next_price_settlement_years\": \"0.25\",\n          \"notional\": \"990009000\",\n          \"ois\": \"0.0356420304\",\n          \"ordinary_BA_maturity_floor_applies\": true,\n          \"original_reference_rating\": \"AAA\",\n          \"provider_ECRA_rating\": \"A\",\n          \"provider_bank_eligible\": true,\n          \"provider_credit_quality\": \"IG\",\n          \"provider_due_diligence_uplift\": false,\n          \"provider_id\": \"P\",\n          \"provider_recovery\": \"0.4\",\n          \"provider_sector\": \"financial\",\n          \"quantity\": \"990009000\",\n          \"quarter\": \"0.25\",\n          \"ratings_permitted\": true,\n          \"reference_coupon_spread\": \"0.009900578\",\n          \"reference_evidence\": {\n            \"file\": \"docs/exhibit-fields.md\",\n            \"locator\": \"fictional-executed-agreements\"\n          },\n          \"reference_id\": \"U\",\n          \"reference_issuer_kind\": \"other\",\n          \"reference_price_basis\": \"USD per unit of original principal; final ex-distribution price zero\",\n          \"regulatory_classification\": \"Credit-only SA-CCR plus LEV30 written credit under fictional classification letter; failed-sale IFRS retention reconciled separately\",\n          \"remaining_years\": \"20\",\n          \"replacement_quote\": {\n            \"closeout_basis\": \"Full financing and return obligations under matched replacement terms, no own-spread-linked termination payment\",\n            \"contract_id\": \"FUND_TRS\",\n            \"conversion\": \"remaining_quarterly_annuity\",\n            \"conversion_rate\": \"0.0356420304\",\n            \"currency\": \"USD\",\n            \"executable\": true,\n            \"id\": \"SYN-REPL-FUND-FUND_01-S1\",\n            \"includes_old_reference_adjustment\": false,\n            \"locked_financing_spread\": \"0.0069303218\",\n            \"notional\": \"990009000\",\n            \"off_quarter_convention\": \"fractional_remaining_annuity_clean_quote\",\n            \"old_reference_adjustment_upfront\": \"0\",\n            \"provider_id\": \"P\",\n            \"quantity\": \"990009000\",\n            \"quarter\": \"0.25\",\n            \"quote_basis\": \"reset_to_today\",\n            \"quoted_at\": \"2027-06-05\",\n            \"quoted_base_financing_spread\": \"0.009900825\",\n            \"reference_id\": \"U\",\n            \"remaining_years\": \"20\",\n            \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n            \"reset_price_convention\": \"Current reference price; old reference-price return is excluded from quoted margin\",\n            \"roll_convention\": \"Same surviving contract, remaining maturity rolls down without renewal; margin beta applies only to stated synthetic \n{\n  \"action_id\": null,\n  \"day\": -1,\n  \"event_id\": null,\n  \"hash\": \"252b97695db77d17a7d7a66d5640e912fd10bef88173e8b31c0899a68ea87694\",\n  \"id\": \"receipt:4b57bf8c268e2007b9f79c2d31f134988fe7a2769bca33fffe2a652a5143e273\",\n  \"kind\": \"opening_clock\",\n  \"operations\": [\n    {\n      \"as_of\": \"2027-09-02\",\n      \"day\": 0,\n      \"financial_time\": \"0.2418478260869565217391304347826086956522\",\n      \"op\": \"commit_day\",\n      \"revision\": 0\n    }\n  ],\n  \"postings\": {},\n  \"previous_receipt_hash\": \"2b7412c41ba120f9247ff3061d2bb3f1176c8ae441cdd265d8b517f9f91524ed\",\n  \"se\n[...output truncated at 25000 bytes; 41136 total...]\n\nSTATUS:\nFinished normally at 2026-09-20T09:59:37Z (elapsed=0.07s)","tool_call_id":"call_8cc04971a87d50e38137c94b4e8fe4d2","type":"tool_result"}},{"step":8,"generation":0,"created_at":"2026-09-20T10:00:28.246Z","event":{"content":"parent main-agent cancelled","marker":"cancelled","type":"system"}}]