[{"step":0,"generation":0,"created_at":"2026-09-20T08:38:35.882Z","event":{"content":"New agent session \"main-agent\" started at 2026-09-20T08:38:35Z.","marker":"new_session","type":"system"}},{"step":0,"generation":0,"created_at":"2026-09-20T08:38:35.883Z","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-20T08:38:35.885Z","event":{"content":"Working directory: `/work`","marker":"workspace","type":"system"}},{"step":0,"generation":0,"created_at":"2026-09-20T08:38:35.885Z","event":{"content":"Work as the funding trader: manage the firm's interests, serve its clients and control risk throughout the entire management period. Keep funding and client commitments viable, respond to changing exposures, and account for earnings, costs and surviving obligations. A transaction, approval or correct report is one step, not the complete objective. Use treasury, credit and market risk, capital, legal and compliance, accounting and settlement evidence together. Operate the current financial desk checkpoint in /packet/packet.json. Treat that read-only packet as authority for the parent hash, versions, current state, executable quotes, ordered phases and available evidence. Earlier delivered receipts are retained in /work/receipts. Your prior working files and Amplio run history remain in /work. Use the public conventions and exact citations in public_inputs.documents, including the complete schemas/daily-report.schema.json document for report fields and citations. In calculations.recommendation.rationale connect the locked funding price and remaining tenor, drawn versus committed capacity, idle carry, matching replacement-curve evidence, collateral flexibility and signed spread sensitivity to the recommended decision. A funding advantage gains on spread widening and loses on tightening; it is a two-sided linear position, not a free conventional option. Separate widening P&L from the desk's negative spread-duration convention and from the deployment's own credit risk. Compare retaining the mismatch with available collateralised deployment or hedge routes after fees, expected loss, capital, margin liquidity and unwind costs. Explain collateral weights, factor betas, tenor and residual basis only where supported by packet evidence. Sold protection is long credit and sizes to residual risky CS01, not face amount; entering it would not cash out a funding mark. Bilateral VM and IM principal are collateral, not fee income; cleared mark-to-market payments may instead settle gains and losses. The current packet fixes its curve and permitted instruments: purchased provider protection is not a sold CDX bridge. Do not invent a curve change, CDX trade or CLO purchase. Identify unavailable alternatives and their missing quotes or permissions in the explanation, not as actions. Name the binding legal, mandate, client or liquidity constraint and the market or client fact that would change the recommendation. Preserve surviving settlement duties, actual receipts and the distinction between regulatory recognition and economic coverage. Do not claim to have chosen this inherited book's opening trades. The optional /packet/calculator.py only accepts the registered practice query contract in packet.calculator and never grades or values this live book. Prepare one strict JSON desk-envelope.v2 object with parent_state_hash, revision, market_version, legal_version, actions and calculations. Calculations use daily-book.v2. Actions are explicit decisions with unique action_id, quoted quote_id and integer phase. Only accepted actions settle the current day. An empty action list cannot advance it. Use hold_capital if it is your supported decision; never fabricate an executable quote, capacity, cash receipt, title or legal right. Report the current parent before your actions, not a projected next-day book. Write the whole envelope as UTF-8 JSON, at most 1048576 bytes, to /work/artifacts/envelope-5645f9aaf2b5407c984ebb4aa4c3deec.json. Do not execute or submit it yourself. Finish this attempt after the file is durable; future instructions arrive externally. Current parent: 6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165.","type":"user"}},{"step":1,"generation":0,"created_at":"2026-09-20T08:38:51.612Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_d44ec1fc826a5dd19b7e9c1b165a34f8","name":"bash","arguments":"{\"command\":\"pwd; ls -la /packet; ls -la /work; printf '\\\\nARTIFACT_DIR=%s\\\\n' \\\"$AMPLIO_ARTIFACT_DIR\\\"; ls -la /work/receipts 2>/dev/null; python - <<'PY'\\nimport json,os\\np='/packet/packet.json'\\nprint('packet_bytes',os.path.getsize(p))\\nd=json.load(open(p))\\nprint('top_keys',list(d))\\nfor k,v in d.items():\\n print(k, type(v).__name__, list(v)[:24] if isinstance(v,dict) else 'len='+str(len(v)) if isinstance(v,(str,list)) else v)\\nPY\",\"max_output_length\":12000}"}],"type":"assistant","usage":{"prompt_tokens":4876,"completion_tokens":305,"total_tokens":5181}}},{"step":1,"generation":0,"created_at":"2026-09-20T08:38:51.697Z","event":{"content":"STDOUT:\n/work\ntotal 2864\ndr-xr-xr-x 1 root root     200 Sep 20 08:38 .\ndrwxr-xr-x 1 root root     240 Sep 20 08:38 ..\n-r-xr-xr-x 1 root root    7086 Sep 20 08:38 calculator.py\n-r--r--r-- 1 root root     745 Sep 20 08:38 manifest.json\n-r--r--r-- 1 root root 2921009 Sep 20 08:38 packet.json\n-r--r--r-- 1 root root    2520 Sep 20 08:38 practice-inputs.json\ntotal 0\ndrwx------ 1 amplio amplio 140 Sep 20 08:38 .\ndrwxr-xr-x 1 root   root   240 Sep 20 08:38 ..\ndrwx------ 1 amplio amplio  40 Sep 20 08:38 artifacts\ndrwx------ 1 amplio amplio 240 Sep 20 08:38 data\ndrwx------ 1 amplio amplio  40 Sep 20 08:38 home\ndrwx------ 1 amplio amplio  60 Sep 20 08:38 receipts\ndrwx------ 1 amplio amplio  80 Sep 20 08:38 tmp\n\nARTIFACT_DIR=/work/data/artifacts/1zx0ecgn\ntotal 1171\ndrwx------ 1 amplio amplio      60 Sep 20 08:38 .\ndrwx------ 1 amplio amplio     140 Sep 20 08:38 ..\n-rw------- 1 amplio amplio 1198704 Sep 20 08:38 page-6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165-0-415.json\npacket_bytes 2921009\ntop_keys ['as_of', 'available_events', 'calculator', 'day', 'event_bindings', 'family_id', 'legal_version', 'market_version', 'parent_state_hash', 'phases', 'policy', 'prior_receipts', 'public_inputs', 'quotes', 'receipt_window', 'revision', 'run_id', 'schema_version', 'state']\nas_of str len=10\navailable_events list len=0\ncalculator dict ['accepts_live_state', 'accepts_parameter_overrides', 'calculator_sha256', 'limits', 'operations', 'practice_ids', 'registry_sha256', 'request_fields', 'schema_version', 'scope']\nday int 0\nevent_bindings dict []\nfamily_id str len=7\nlegal_version int 0\nmarket_version int 0\nparent_state_hash str len=64\nphases list len=3\npolicy dict ['accounting', 'calendar', 'capital', 'collections', 'csa', 'daily_report', 'defaults', 'execution', 'facility', 'institutional', 'inventory', 'name', 'offset', 'opening', 'prices', 'protection', 'prudent_valuation', 'reinvestment', 'repo', 'resource_limits', 'rights', 'schema_version', 'source_documents', 'source_evidence']\nprior_receipts list len=415\npublic_inputs dict ['case', 'documents', 'family', 'parameters', 'policy']\nquotes list len=66\nreceipt_window dict ['after_sequence', 'has_more', 'last_sequence', 'through_sequence']\nrevision int 0\nrun_id str len=32\nschema_version str len=21\nstate dict ['accepted_action_count', 'accepted_action_ids', 'accounts', 'applied_event_ids', 'as_of', 'contracts', 'day', 'family_id', 'financial_time', 'last_receipt_hash', 'last_receipt_sequence', 'legal', 'legal_version', 'lots', 'market', 'market_version', 'obligations', 'pending', 'revision', 'schema_version']\n\n\nSTATUS:\nFinished normally at 2026-09-20T08:38:51Z (elapsed=0.08s)","tool_call_id":"call_d44ec1fc826a5dd19b7e9c1b165a34f8","type":"tool_result"}},{"step":2,"generation":0,"created_at":"2026-09-20T08:39:26.918Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_1e21916d0cd45e5780b889b60ae6b679","name":"bash","arguments":"{\"max_output_length\":22000,\"command\":\"python - <<'PY'\\nimport json, os\\np=json.load(open('/packet/packet.json'))\\na=os.environ['AMPLIO_ARTIFACT_DIR'];os.makedirs(a,exist_ok=True)\\nfor k in ['state','quotes','phases','policy','public_inputs','calculator','receipt_window']:\\n path=f'{a}/{k}.json';json.dump(p[k],open(path,'w'),ensure_ascii=False,indent=2)\\nprint('HEADER',json.dumps({k:p[k] for k in ['as_of','day','family_id','legal_version','market_version','parent_state_hash','revision','run_id','schema_version','phases','receipt_window']},indent=2))\\nprint('PUBLIC_INPUTS', {k:(len(v) if isinstance(v,(dict,list,str)) else v) for k,v in p['public_inputs'].items()})\\nd=p['public_inputs']['documents'];print('DOC_TYPE',type(d).__name__)\\nif isinstance(d,list):\\n for i,r in enumerate(d):\\n  print('DOC',i, {k:v for k,v in r.items() if k not in ['text','content','body','lines']})\\nelse:\\n for k,v in d.items():\\n  print(k,str(v)[:800] if not isinstance(v,str) else ('len '+str(len(v))))\\nprint('STATE_KEYS')\\nfor k,v in p['state'].items():\\n print(k,type(v).__name__, ('len='+str(len(v))) if isinstance(v,(list,dict,str)) else v)\\nprint('POLICY_TOP',json.dumps({k:v for k,v in p['policy'].items() if k not in ['source_documents','source_evidence']},indent=2))\\nPY\"}"}],"type":"assistant","usage":{"prompt_tokens":6053,"completion_tokens":401,"total_tokens":6454,"cache_read_tokens":4874}}},{"step":2,"generation":0,"created_at":"2026-09-20T08:39:27.077Z","event":{"content":"STDOUT:\nHEADER {\n  \"as_of\": \"2027-09-02\",\n  \"day\": 0,\n  \"family_id\": \"FUND_01\",\n  \"legal_version\": 0,\n  \"market_version\": 0,\n  \"parent_state_hash\": \"6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165\",\n  \"revision\": 0,\n  \"run_id\": \"0828ac8b17bc464aba990de9985d6a36\",\n  \"schema_version\": \"desk-worker-packet.v1\",\n  \"phases\": [\n    {\n      \"event\": null,\n      \"phase\": 0,\n      \"scheduled\": [\n        {\n          \"contract_id\": null,\n          \"kind\": \"approval_review\",\n          \"period_id\": \"2027-09-02\",\n          \"scheduled_date\": \"2027-09-02\"\n        }\n      ]\n    },\n    {\n      \"event\": null,\n      \"phase\": 1,\n      \"scheduled\": [\n        {\n          \"contract_id\": null,\n          \"kind\": \"approval_review\",\n          \"period_id\": \"2027-09-02\",\n          \"scheduled_date\": \"2027-09-02\"\n        }\n      ]\n    },\n    {\n      \"event\": null,\n      \"phase\": 2,\n      \"scheduled\": [\n        {\n          \"contract_id\": null,\n          \"kind\": \"day_close\",\n          \"period_id\": \"2027-09-02\",\n          \"scheduled_date\": \"2027-09-02\"\n        }\n      ]\n    }\n  ],\n  \"receipt_window\": {\n    \"after_sequence\": 0,\n    \"has_more\": false,\n    \"last_sequence\": 415,\n    \"through_sequence\": 415\n  }\n}\nPUBLIC_INPUTS {'case': 12, 'documents': 10, 'family': 8, 'parameters': 30, 'policy': 26}\nDOC_TYPE dict\nCURRENT_INPUTS.json {'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\":[{\"assessed_at\":\"2027-06-05T12:00:00Z\",\"condition_id\":\"SALE_U_AUTH\",\"description\":\"Required parties and authority confirmed\",\"evidence\":[{\"document_id\":\"SYNTHETIC_PACKET\",\"locator\":\"fictional-opinions\"}],\"status\":\"satisfied\"}],\"effective_at\":\"2027-06-05T12:00:00Z\",\"status\":\"effective\"},\"evidence\":[{\"docum\ndocs/capital-actions.md {'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 conclusion.\\n\\nThe [capital rulebook](capital-rulebook.md) fixes the dated official factors and the selected applicability conditions. This annex fixes contractual prices and the synthetic equity-pricing convention. The Python module derives every exposure, reserve and action value from those inputs. Actual \ndocs/capital-rulebook.md {'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 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\\n- **Official\ndocs/desk-runtime-contract.md {'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 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\\n## Authority and module ownership\\n\\n\ndocs/economic-specification.md {'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). 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-ruleboo\ndocs/reference-input-contract.md {'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 boundaries\\n\\nEconomic 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 inp\ndocs/reserve-module.md {'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 installation, accounting opinion or assertion of regulatory compliance.\\n\\nThe implementation is [reserve_ledger.py](../src/reserve_ledger.py), driven only by [numerical-inputs.json](../fixtures/numerical-inputs.json) and the public results of [numerical_fixture.py](../src/numerical_fixture.py). Th\nfamily/worker/legal-terms.txt {'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 return obligation is identical. Reuse permission is false; current enforcement status is effective. Reuse requires existing owned and unencumbered units, the express permission, current enforceability and preservation of the specified return claim. A contingent promise creates no security inventory;\nfixtures/desk-policy.json {'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    \"docs/capital-rulebook.md\",\\n    \"docs/reference-input-contract.md\",\\n    \"schemas/daily-report.schema.json\",\\n    \"docs/reserve-module.md\"\\n  ],\\n  \"resource_limits\": {\\n    \"max_input_bytes\": 1048576,\\n    \"max_json_depth\": 32,\\n    \"max_json_nodes\": 50000,\\n    \"max_string_length\": 16384,\\n    \"max_\nschemas/daily-report.schema.json {'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, never exact reference prose.\",\\n  \"type\": \"object\",\\n  \"additionalProperties\": false,\\n  \"required\": [\\n    \"schema_version\",\\n    \"parent_state_hash\",\\n    \"rates\",\\n    \"credit_xva\",\\n    \"capital\",\\n    \"liquidity\",\\n    \"accounting\",\\n    \"legal\",\\n    \"compliance\",\\n    \"structure\",\\n    \"recom\nSTATE_KEYS\naccepted_action_count int 0\naccepted_action_ids list len=0\naccounts dict len=35\napplied_event_ids list len=0\nas_of str len=10\ncontracts dict len=7\nday int 0\nfamily_id str len=7\nfinancial_time str len=42\nlast_receipt_hash str len=64\nlast_receipt_sequence int 415\nlegal dict len=9\nlegal_version int 0\nlots dict len=54\nmarket dict len=8\nmarket_version int 0\nobligations dict len=0\npending list len=0\nrevision int 0\nschema_version str len=13\nPOLICY_TOP {\n  \"accounting\": {\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, c\n[...truncated...]\ning\",\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  },\n  \"capital\": {\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  },\n  \"collections\": {\n    \"loan_application\": \"discharge_identified_loan_receivable_and_matching_collection_return_obligation_once\",\n    \"opening_recognition\": \"controlled_payment_rights_are_security_for_existing_loan_not_a_second_asset\",\n    \"ownership_otherwise\": \"assigned_claim\",\n    \"ownership_when_enforcement_denied\": \"borrower\",\n    \"prefunding\": \"restricted_cash_and_borrower_return_liability_until_identified_loan_coupon_is_due_then_return_liability_and_receivable_clear_while_cash_remains_desk_owned_restricted_debt_service_cash\",\n    \"remittance\": \"only_exact_batch_with_effective_scoped_permission\",\n    \"restitution_or_correspondent_setoff\": \"consume_identified_batch_and_return_liability_without_desk_cash\",\n    \"restricted_receipt\": \"restricted_collections_asset_and_identified_return_liability_no_equity\"\n  },\n  \"csa\": {\n    \"VM_source\": \"actual_settled_cash_only\",\n    \"VM_treatment\": \"deposit_asset_or_returnable\n[...output truncated at 22000 bytes; 39658 total...]\n\nSTATUS:\nFinished normally at 2026-09-20T08:39:27Z (elapsed=0.14s)","tool_call_id":"call_1e21916d0cd45e5780b889b60ae6b679","type":"tool_result"}},{"step":3,"generation":0,"created_at":"2026-09-20T08:40:10.823Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_36855752cfe1523380eac284e4479811","name":"bash","arguments":"{\"max_output_length\":8000,\"command\":\"python - <<'PY'\\nimport json,os\\np=json.load(open('/packet/packet.json'));a=os.environ['AMPLIO_ARTIFACT_DIR']\\nfor k,v in p['public_inputs']['documents'].items():\\n path=a+'/documents/'+k;os.makedirs(os.path.dirname(path),exist_ok=True);open(path,'w').write(v['text']);print(k,len(v['text']),v['text'].count('\\\\n')+1)\\nfor k in ['state','policy','quotes','public_inputs']:\\n print(k,os.path.getsize(a+'/'+k+'.json'))\\nfor k in ['case','family','parameters']:\\n path=a+'/'+k+'.json';json.dump(p['public_inputs'][k],open(path,'w'),indent=2);print(k,os.path.getsize(path))\\nPY\"}"}],"type":"assistant","usage":{"prompt_tokens":12359,"completion_tokens":227,"total_tokens":12586,"cache_read_tokens":6051}}},{"step":3,"generation":0,"created_at":"2026-09-20T08:40:10.91Z","event":{"content":"STDOUT:\nCURRENT_INPUTS.json 143325 1\ndocs/capital-actions.md 37254 341\ndocs/capital-rulebook.md 81754 877\ndocs/desk-runtime-contract.md 55313 193\ndocs/economic-specification.md 56199 532\ndocs/reference-input-contract.md 17546 111\ndocs/reserve-module.md 38263 416\nfamily/worker/legal-terms.txt 29146 923\nfixtures/desk-policy.json 28028 409\nschemas/daily-report.schema.json 65635 2482\nstate 61294\npolicy 30093\nquotes 1364456\npublic_inputs 842653\ncase 140330\nfamily 13984\nparameters 57315\n\n\nSTATUS:\nFinished normally at 2026-09-20T08:40:10Z (elapsed=0.09s)","tool_call_id":"call_36855752cfe1523380eac284e4479811","type":"tool_result"}},{"step":4,"generation":0,"created_at":"2026-09-20T08:40:48.998Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_6e1de89279cf5313a5a7dcbab7b3f81c","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/documents/docs/desk-runtime-contract.md\",\"start_line\":1,\"end_line\":110}"},{"id":"call_9dd64c8a8cb354578767dde548a42c1a","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/documents/schemas/daily-report.schema.json\",\"start_line\":1,\"end_line\":450}"},{"id":"call_eaf382f8afff5272ab3d1c14dc848128","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/state.json\",\"start_line\":1,\"end_line\":350}"}],"type":"assistant","usage":{"prompt_tokens":12780,"completion_tokens":141,"total_tokens":12921,"cache_read_tokens":12357}}},{"step":4,"generation":0,"created_at":"2026-09-20T08:40:49Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/state.json (showing lines 1-350 of 2082)\n   1: {\n   2:   \"accepted_action_count\": 0,\n   3:   \"accepted_action_ids\": [],\n   4:   \"accounts\": {\n   5:     \"cash\": \"123832604.859317781832\",\n   6:     \"claim_allowance\": \"0\",\n   7:     \"contributed_equity\": \"-391053555\",\n   8:     \"deployment_accrued\": \"19437814.846170841304\",\n   9:     \"deployment_principal\": \"990009000\",\n  10:     \"expense_fees\": \"990009\",\n  11:     \"expense_funding\": \"18797129.89327568417\",\n  12:     \"expense_loss\": \"0\",\n  13:     \"facility_debt\": \"0\",\n  14:     \"income_carry\": \"-33376419.767308484527\",\n  15:     \"income_hedge\": \"0\",\n  16:     \"income_mark\": \"0\",\n  17:     \"inventory\": \"267302430\",\n  18:     \"legacy_debt\": \"-990009000\",\n  19:     \"management_deferral\": \"-41581875.436912685824\",\n  20:     \"management_funding_mark\": \"41581875.436912685824\",\n  21:     \"management_hedge_asset\": \"0\",\n  22:     \"management_income_deferral\": \"41581875.436912685824\",\n  23:     \"management_income_hedge\": \"0\",\n  24:     \"management_income_mark\": \"-41581875.436912685824\",\n  25:     \"management_income_reserve\": \"30187093.484686993067\",\n  26:     \"management_xva\": \"-30187093.484686993067\",\n  27:     \"posted_vm\": \"0\",\n  28:     \"received_vm\": \"0\",\n  29:     \"reinvestment_principal\": \"0\",\n  30:     \"repo_debt\": \"0\",\n  31:     \"restricted_cash\": \"0\",\n  32:     \"restricted_collections\": \"0\",\n  33:     \"retained_U\": \"990009000\",\n  34:     \"return_liability\": \"0\",\n  35:     \"sale_financing\": \"-990009000\",\n  36:     \"statutory_derivative_asset\": \"0\",\n  37:     \"statutory_derivative_liability\": \"0\",\n  38:     \"unpaid_payable\": \"-18797129.89327568417\",\n  39:     \"unpaid_receivable\": \"12867116.061819861391\"\n  40:   },\n  41:   \"applied_event_ids\": [],\n  42:   \"as_of\": \"2027-09-02\",\n  43:   \"contracts\": {\n  44:     \"DEP_LOAN\": {\n  45:       \"effective_date\": \"2027-06-05\",\n  46:       \"execution_date\": \"2027-06-05\",\n  47:       \"id\": \"DEP_LOAN\",\n  48:       \"kind\": \"deployment_loan\",\n  49:       \"maturity_date\": \"2032-06-05\",\n  50:       \"payment_dates\": [\n  51:         \"2027-09-05\",\n  52:         \"2027-12-05\",\n  53:         \"2028-03-05\",\n  54:         \"2028-06-05\",\n  55:         \"2028-09-05\",\n  56:         \"2028-12-05\",\n  57:         \"2029-03-05\",\n  58:         \"2029-06-05\",\n  59:         \"2029-09-05\",\n  60:         \"2029-12-05\",\n  61:         \"2030-03-05\",\n  62:         \"2030-06-05\",\n  63:         \"2030-09-05\",\n  64:         \"2030-12-05\",\n  65:         \"2031-03-05\",\n  66:         \"2031-06-05\",\n  67:         \"2031-09-05\",\n  68:         \"2031-12-05\",\n  69:         \"2032-03-05\",\n  70:         \"2032-06-05\"\n  71:       ],\n  72:       \"source_evidence\": [\n  73:         {\n  74:           \"document_id\": \"SYNTHETIC_PACKET\",\n  75:           \"locator\": \"fictional-executed-agreements\"\n  76:         }\n  77:       ],\n  78:       \"state\": {\n  79:         \"concession_spread\": \"0\",\n  80:         \"concession_start_date\": null,\n  81:         \"last_accrual_date\": \"2027-06-05\",\n  82:         \"matured_principal_received\": \"0\",\n  83:         \"matured_principal_reinvested\": \"0\",\n  84:         \"outstanding_principal\": \"990009000\",\n  85:         \"paid_periods\": [],\n  86:         \"prefunding\": {}\n  87:       },\n  88:       \"status\": \"active\",\n  89:       \"terms\": {\n  90:         \"borrower_id\": \"BORROWER\",\n  91:         \"coupon_spread\": \"0.0455411592\",\n  92:         \"notional\": \"990009000\",\n  93:         \"ois\": \"0.0356420304\",\n  94:         \"principal\": \"990009000\",\n  95:         \"quarter\": \"0.25\",\n  96:         \"security_contract_id\": \"DEP_SECURITY\"\n  97:       }\n  98:     },\n  99:     \"DEP_SECURITY\": {\n 100:       \"effective_date\": \"2027-06-05\",\n 101:       \"execution_date\": \"2027-06-05\",\n 102:       \"id\": \"DEP_SECURITY\",\n 103:       \"kind\": \"deployment_security\",\n 104:       \"maturity_date\": \"2032-06-05\",\n 105:       \"payment_dates\": [],\n 106:       \"source_evidence\": [\n 107:         {\n 108:           \"file\": \"worker/legal-terms.txt\",\n 109:           \"locator\": \"actual-deployment-terms\"\n 110:         },\n 111:         {\n 112:           \"file\": \"worker/docs/desk-runtime-contract.md\",\n 113:           \"locator\": \"## Clock and settlement order\"\n 114:         }\n 115:       ],\n 116:       \"state\": {\n 117:         \"active_lot_id\": \"DEPSEC\",\n 118:         \"collection_batches\": {},\n 119:         \"distributions\": {},\n 120:         \"liquidated_quantity\": \"0\",\n 121:         \"returned\": false,\n 122:         \"rights_chain\": []\n 123:       },\n 124:       \"status\": \"active\",\n 125:       \"terms\": {\n 126:         \"asset_id\": \"DEPSEC\",\n 127:         \"borrower_id\": \"BORROWER\",\n 128:         \"collateral_issuer_id\": \"CELADON\",\n 129:         \"collateral_relation\": \"independent\",\n 130:         \"contract_id\": \"DEP_SECURITY\",\n 131:         \"coupon_spread\": \"0.0455411592\",\n 132:         \"currency\": \"USD\",\n 133:         \"enforceability\": \"effective\",\n 134:         \"face_per_unit\": \"1\",\n 135:         \"facility\": {\n 136:           \"cash_account_id\": \"CASH_BRANCH\",\n 137:           \"lender_id\": \"FACILITY_LENDER\",\n 138:           \"limit\": \"257402340\",\n 139:           \"spread\": \"0.0108903245\",\n 140:           \"unconditional_by_selected_cutoff\": true\n 141:         },\n 142:         \"initial_operating_cash\": \"123751125\",\n 143:         \"issued\": true,\n 144:         \"legal_form\": \"issued_security_pledge\",\n 145:         \"market_funding_spread\": \"0.0108903245\",\n 146:         \"market_haircut\": \"0.08910333\",\n 147:         \"opening_total_cash\": \"123751125\",\n 148:         \"operating_call\": \"17820162\",\n 149:         \"ownership_basis\": \"pledge\",\n 150:         \"quantity\": \"990009000\",\n 151:         \"restricted_cash\": \"0\",\n 152:         \"return_obligation\": \"identical\",\n 153:         \"reuse_permitted\": false,\n 154:         \"scope\": \"actual_daily_book\",\n 155:         \"source_evidence\": [\n 156:           {\n 157:             \"file\": \"worker/legal-terms.txt\",\n 158:             \"locator\": \"actual-deployment-terms\"\n 159:           },\n 160:           {\n 161:             \"file\": \"worker/docs/desk-runtime-contract.md\",\n 162:             \"locator\": \"## Clock and settlement order\"\n 163:           }\n 164:         ]\n 165:       }\n 166:     },\n 167:     \"FACILITY\": {\n 168:       \"effective_date\": \"2027-06-05\",\n 169:       \"execution_date\": \"2027-06-05\",\n 170:       \"id\": \"FACILITY\",\n 171:       \"kind\": \"facility\",\n 172:       \"maturity_date\": \"2047-06-05\",\n 173:       \"payment_dates\": [\n 174:         \"2027-09-05\",\n 175:         \"2027-12-05\",\n 176:         \"2028-03-05\",\n 177:         \"2028-06-05\",\n 178:         \"2028-09-05\",\n 179:         \"2028-12-05\",\n 180:         \"2029-03-05\",\n 181:         \"2029-06-05\",\n 182:         \"2029-09-05\",\n 183:         \"2029-12-05\",\n 184:         \"2030-03-05\",\n 185:         \"2030-06-05\",\n 186:         \"2030-09-05\",\n 187:         \"2030-12-05\",\n 188:         \"2031-03-05\",\n 189:         \"2031-06-05\",\n 190:         \"2031-09-05\",\n 191:         \"2031-12-05\",\n 192:         \"2032-03-05\",\n 193:         \"2032-06-05\",\n 194:         \"2032-09-05\",\n 195:         \"2032-12-05\",\n 196:         \"2033-03-05\",\n 197:         \"2033-06-05\",\n 198:         \"2033-09-05\",\n 199:         \"2033-12-05\",\n 200:         \"2034-03-05\",\n 201:         \"2034-06-05\",\n 202:         \"2034-09-05\",\n 203:         \"2034-12-05\",\n 204:         \"2035-03-05\",\n 205:         \"2035-06-05\",\n 206:         \"2035-09-05\",\n 207:         \"2035-12-05\",\n 208:         \"2036-03-05\",\n 209:         \"2036-06-05\",\n 210:         \"2036-09-05\",\n 211:         \"2036-12-05\",\n 212:         \"2037-03-05\",\n 213:         \"2037-06-05\",\n 214:         \"2037-09-05\",\n 215:         \"2037-12-05\",\n 216:         \"2038-03-05\",\n 217:         \"2038-06-05\",\n 218:         \"2038-09-05\",\n 219:         \"2038-12-05\",\n 220:         \"2039-03-05\",\n 221:         \"2039-06-05\",\n 222:         \"2039-09-05\",\n 223:         \"2039-12-05\",\n 224:         \"2040-03-05\",\n 225:         \"2040-06-05\",\n 226:         \"2040-09-05\",\n 227:         \"2040-12-05\",\n 228:         \"2041-03-05\",\n 229:         \"2041-06-05\",\n 230:         \"2041-09-05\",\n 231:         \"2041-12-05\",\n 232:         \"2042-03-05\",\n 233:         \"2042-06-05\",\n 234:         \"2042-09-05\",\n 235:         \"2042-12-05\",\n 236:         \"2043-03-05\",\n 237:         \"2043-06-05\",\n 238:         \"2043-09-05\",\n 239:         \"2043-12-05\",\n 240:         \"2044-03-05\",\n 241:         \"2044-06-05\",\n 242:         \"2044-09-05\",\n 243:         \"2044-12-05\",\n 244:         \"2045-03-05\",\n 245:         \"2045-06-05\",\n 246:         \"2045-09-05\",\n 247:         \"2045-12-05\",\n 248:         \"2046-03-05\",\n 249:         \"2046-06-05\",\n 250:         \"2046-09-05\",\n 251:         \"2046-12-05\",\n 252:         \"2047-03-05\",\n 253:         \"2047-06-05\"\n 254:       ],\n 255:       \"source_evidence\": [\n 256:         {\n 257:           \"file\": \"worker/legal-terms.txt\",\n 258:           \"locator\": \"actual-deployment-terms\"\n 259:         },\n 260:         {\n 261:           \"file\": \"worker/docs/desk-runtime-contract.md\",\n 262:           \"locator\": \"## Clock and settlement order\"\n 263:         }\n 264:       ],\n 265:       \"state\": {\n 266:         \"interest_accrued\": \"0\",\n 267:         \"interest_paid\": \"0\",\n 268:         \"last_accrual_date\": \"2027-09-02\",\n 269:         \"outstanding_principal\": \"0\",\n 270:         \"paid_periods\": []\n 271:       },\n 272:       \"status\": \"active\",\n 273:       \"terms\": {\n 274:         \"cash_account_id\": \"CASH_BRANCH\",\n 275:         \"day_count\": \"ACT/365F\",\n 276:         \"fee\": \"0\",\n 277:         \"initial_own_bond_spread\": \"0.0064352412\",\n 278:         \"lender_id\": \"FACILITY_LENDER\",\n 279:         \"limit\": \"257402340\",\n 280:         \"ois\": \"0.0356420304\",\n 281:         \"spread\": \"0.0108903245\",\n 282:         \"unconditional_by_selected_cutoff\": true,\n 283:         \"year_days\": \"365\"\n 284:       }\n 285:     },\n 286:     \"FUND_TRS\": {\n 287:       \"effective_date\": \"2027-06-05\",\n 288:       \"execution_date\": \"2027-06-05\",\n 289:       \"id\": \"FUND_TRS\",\n 290:       \"kind\": \"funding_trs\",\n 291:       \"maturity_date\": \"2047-06-05\",\n 292:       \"payment_dates\": [\n 293:         \"2027-09-05\",\n 294:         \"2027-12-05\",\n 295:         \"2028-03-05\",\n 296:         \"2028-06-05\",\n 297:         \"2028-09-05\",\n 298:         \"2028-12-05\",\n 299:         \"2029-03-05\",\n 300:         \"2029-06-05\",\n 301:         \"2029-09-05\",\n 302:         \"2029-12-05\",\n 303:         \"2030-03-05\",\n 304:         \"2030-06-05\",\n 305:         \"2030-09-05\",\n 306:         \"2030-12-05\",\n 307:         \"2031-03-05\",\n 308:         \"2031-06-05\",\n 309:         \"2031-09-05\",\n 310:         \"2031-12-05\",\n 311:         \"2032-03-05\",\n 312:         \"2032-06-05\",\n 313:         \"2032-09-05\",\n 314:         \"2032-12-05\",\n 315:         \"2033-03-05\",\n 316:         \"2033-06-05\",\n 317:         \"2033-09-05\",\n 318:         \"2033-12-05\",\n 319:         \"2034-03-05\",\n 320:         \"2034-06-05\",\n 321:         \"2034-09-05\",\n 322:         \"2034-12-05\",\n 323:         \"2035-03-05\",\n 324:         \"2035-06-05\",\n 325:         \"2035-09-05\",\n 326:         \"2035-12-05\",\n 327:         \"2036-03-05\",\n 328:         \"2036-06-05\",\n 329:         \"2036-09-05\",\n 330:         \"2036-12-05\",\n 331:         \"2037-03-05\",\n 332:         \"2037-06-05\",\n 333:         \"2037-09-05\",\n 334:         \"2037-12-05\",\n 335:         \"2038-03-05\",\n 336:         \"2038-06-05\",\n 337:         \"2038-09-05\",\n 338:         \"2038-12-05\",\n 339:         \"2039-03-05\",\n 340:         \"2039-06-05\",\n 341:         \"2039-09-05\",\n 342:         \"2039-12-05\",\n 343:         \"2040-03-05\",\n 344:         \"2040-06-05\",\n 345:         \"2040-09-05\",\n 346:         \"2040-12-05\",\n 347:         \"2041-03-05\",\n 348:         \"2041-06-05\",\n 349:         \"2041-09-05\",\n 350:         \"2041-12-05\",\n","tool_call_id":"call_eaf382f8afff5272ab3d1c14dc848128","type":"tool_result"}},{"step":4,"generation":0,"created_at":"2026-09-20T08:40:49.002Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/documents/docs/desk-runtime-contract.md (showing lines 1-110 of 192)\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","tool_call_id":"call_6e1de89279cf5313a5a7dcbab7b3f81c","type":"tool_result"}},{"step":4,"generation":0,"created_at":"2026-09-20T08:40:49.005Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/documents/schemas/daily-report.schema.json (showing lines 1-450 of 2481)\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","tool_call_id":"call_9dd64c8a8cb354578767dde548a42c1a","type":"tool_result"}},{"step":5,"generation":0,"created_at":"2026-09-20T08:41:37.195Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_f96950948f4c56458d4191b995e2f1bc","name":"bash","arguments":"{\"max_output_length\":22000,\"command\":\"find /work -maxdepth 4 -type f | head -80; python - <<'PY'\\nimport json,os\\np=json.load(open('/packet/packet.json'));a=os.environ['AMPLIO_ARTIFACT_DIR']\\nprint('FAMILY',json.dumps(p['public_inputs']['family'],indent=2))\\nfor i,q in enumerate(p['quotes']):\\n print('Q',i,{k:v for k,v in q.items() if k not in ['terms','source_evidence','source_documents']}, 'termkeys=',list(q.get('terms',{})), 'ev=',q.get('source_evidence'))\\n # show quote compact without duplicated immutable sources\\nqs=[]\\nfor q in p['quotes']:\\n r={k:v for k,v in q.items()}\\n # Print later first quote\\n qs.append(r)\\nprint('QUOTE 0',json.dumps(qs[0],indent=2))\\nprint('QUOTETYPES', {q.get('kind','?') for q in qs})\\ns=p['state'];r={k:v for k,v in s.items() if k not in ['lots','contracts','accounts']};r['contracts']={k:{key:val for key,val in v.items() if key != 'payment_dates'} for k,v in s['contracts'].items()}\\njson.dump(r,open(a+'/state-core.json','w'),indent=2)\\nPY\"}"}],"type":"assistant","usage":{"prompt_tokens":27423,"completion_tokens":359,"total_tokens":27782,"cache_read_tokens":12778}}},{"step":5,"generation":0,"created_at":"2026-09-20T08:41:37.292Z","event":{"content":"STDOUT:\n/work/data/config.toml\n/work/data/lock\n/work/data/logs/amplio-20260920-083831.log\n/work/data/amplio.db\n/work/data/amplio.db-wal\n/work/data/amplio.db-shm\n/work/data/auth.token\n/work/data/server.json\n/work/data/artifacts/1zx0ecgn/state.json\n/work/data/artifacts/1zx0ecgn/quotes.json\n/work/data/artifacts/1zx0ecgn/phases.json\n/work/data/artifacts/1zx0ecgn/policy.json\n/work/data/artifacts/1zx0ecgn/public_inputs.json\n/work/data/artifacts/1zx0ecgn/calculator.json\n/work/data/artifacts/1zx0ecgn/receipt_window.json\n/work/data/artifacts/1zx0ecgn/case.json\n/work/data/artifacts/1zx0ecgn/family.json\n/work/data/artifacts/1zx0ecgn/parameters.json\n/work/tmp/amplio-bash-stdout-436797939\n/work/tmp/amplio-bash-stderr-4165635150\n/work/receipts/page-6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165-0-415.json\nFAMILY {\n  \"axes\": {\n    \"collateral_relation\": \"independent\",\n    \"enforceability\": \"effective\",\n    \"legal_form\": \"issued_security_pledge\",\n    \"return_obligation\": \"identical\",\n    \"reuse_permitted\": false\n  },\n  \"clock\": {\n    \"accrual_convention\": \"quarter_fraction_times_elapsed_calendar_days_over_period_calendar_days\",\n    \"day_zero\": 0,\n    \"deployment_maturity_date\": \"2032-06-05\",\n    \"funding_maturity_date\": \"2047-06-05\",\n    \"funding_start_date\": \"2027-06-05\",\n    \"quarter_schedule\": [\n      {\n        \"end_date\": \"2027-09-05\",\n        \"period\": 1,\n        \"start_date\": \"2027-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2027-12-05\",\n        \"period\": 2,\n        \"start_date\": \"2027-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2028-03-05\",\n        \"period\": 3,\n        \"start_date\": \"2027-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2028-06-05\",\n        \"period\": 4,\n        \"start_date\": \"2028-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2028-09-05\",\n        \"period\": 5,\n        \"start_date\": \"2028-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2028-12-05\",\n        \"period\": 6,\n        \"start_date\": \"2028-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2029-03-05\",\n        \"period\": 7,\n        \"start_date\": \"2028-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2029-06-05\",\n        \"period\": 8,\n        \"start_date\": \"2029-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2029-09-05\",\n        \"period\": 9,\n        \"start_date\": \"2029-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2029-12-05\",\n        \"period\": 10,\n        \"start_date\": \"2029-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2030-03-05\",\n        \"period\": 11,\n        \"start_date\": \"2029-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2030-06-05\",\n        \"period\": 12,\n        \"start_date\": \"2030-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2030-09-05\",\n        \"period\": 13,\n        \"start_date\": \"2030-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2030-12-05\",\n        \"period\": 14,\n        \"start_date\": \"2030-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2031-03-05\",\n        \"period\": 15,\n        \"start_date\": \"2030-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2031-06-05\",\n        \"period\": 16,\n        \"start_date\": \"2031-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2031-09-05\",\n        \"period\": 17,\n        \"start_date\": \"2031-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2031-12-05\",\n        \"period\": 18,\n        \"start_date\": \"2031-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2032-03-05\",\n        \"period\": 19,\n        \"start_date\": \"2031-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2032-06-05\",\n        \"period\": 20,\n        \"start_date\": \"2032-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2032-09-05\",\n        \"period\": 21,\n        \"start_date\": \"2032-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2032-12-05\",\n        \"period\": 22,\n        \"start_date\": \"2032-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2033-03-05\",\n        \"period\": 23,\n        \"start_date\": \"2032-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2033-06-05\",\n        \"period\": 24,\n        \"start_date\": \"2033-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2033-09-05\",\n        \"period\": 25,\n        \"start_date\": \"2033-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2033-12-05\",\n        \"period\": 26,\n        \"start_date\": \"2033-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2034-03-05\",\n        \"period\": 27,\n        \"start_date\": \"2033-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2034-06-05\",\n        \"period\": 28,\n        \"start_date\": \"2034-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2034-09-05\",\n        \"period\": 29,\n        \"start_date\": \"2034-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2034-12-05\",\n        \"period\": 30,\n        \"start_date\": \"2034-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2035-03-05\",\n        \"period\": 31,\n        \"start_date\": \"2034-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2035-06-05\",\n        \"period\": 32,\n        \"start_date\": \"2035-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2035-09-05\",\n        \"period\": 33,\n        \"start_date\": \"2035-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2035-12-05\",\n        \"period\": 34,\n        \"start_date\": \"2035-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2036-03-05\",\n        \"period\": 35,\n        \"start_date\": \"2035-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2036-06-05\",\n        \"period\": 36,\n        \"start_date\": \"2036-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2036-09-05\",\n        \"period\": 37,\n        \"start_date\": \"2036-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2036-12-05\",\n        \"period\": 38,\n        \"start_date\": \"2036-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2037-03-05\",\n        \"period\": 39,\n        \"start_date\": \"2036-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2037-06-05\",\n        \"period\": 40,\n        \"start_date\": \"2037-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2037-09-05\",\n        \"period\": 41,\n        \"start_date\": \"2037-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2037-12-05\",\n        \"period\": 42,\n        \"start_date\": \"2037-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2038-03-05\",\n        \"period\": 43,\n        \"start_date\": \"2037-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2038-06-05\",\n        \"period\": 44,\n        \"start_date\": \"2038-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2038-09-05\",\n        \"period\": 45,\n        \"start_date\": \"2038-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2038-12-05\",\n        \"period\": 46,\n        \"start_date\": \"2038-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2039-03-05\",\n        \"period\": 47,\n        \"start_date\": \"2038-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2039-06-05\",\n        \"period\": 48,\n        \"start_date\": \"2039-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2039-09-05\",\n        \"period\": 49,\n        \"start_date\": \"2039-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2039-12-05\",\n        \"period\": 50,\n        \"start_date\": \"2039-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2040-03-05\",\n        \"period\": 51,\n        \"start_date\": \"2039-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2040-06-05\",\n        \"period\": 52,\n        \"start_date\": \"2040-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2040-09-05\",\n        \"period\": 53,\n        \"start_date\": \"2040-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2040-12-05\",\n        \"period\": 54,\n        \"start_date\": \"2040-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2041-03-05\",\n        \"period\": 55,\n        \"start_date\": \"2040-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2041-06-05\",\n        \"period\": 56,\n        \"start_date\": \"2041-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2041-09-05\",\n        \"period\": 57,\n        \"start_date\": \"2041-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2041-12-05\",\n        \"period\": 58,\n        \"start_date\": \"2041-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2042-03-05\",\n        \"period\": 59,\n        \"start_date\": \"2041-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2042-06-05\",\n        \"period\": 60,\n        \"start_date\": \"2042-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2042-09-05\",\n        \"period\": 61,\n        \"start_date\": \"2042-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2042-12-05\",\n        \"period\": 62,\n        \"start_date\": \"2042-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2043-03-05\",\n        \"period\": 63,\n        \"start_date\": \"2042-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2043-06-05\",\n        \"period\": 64,\n        \"start_date\": \"2043-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2043-09-05\",\n        \"period\": 65,\n        \"start_date\": \"2043-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2043-12-05\",\n        \"period\": 66,\n        \"start_date\": \"2043-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2044-03-05\",\n        \"period\": 67,\n        \"start_date\": \"2043-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2044-06-05\",\n        \"period\": 68,\n        \"start_date\": \"2044-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2044-09-05\",\n        \"period\": 69,\n        \"start_date\": \"20\n[...truncated...]\n5\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2045-03-05\",\n        \"period\": 71,\n        \"start_date\": \"2044-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2045-06-05\",\n        \"period\": 72,\n        \"start_date\": \"2045-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2045-09-05\",\n        \"period\": 73,\n        \"start_date\": \"2045-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2045-12-05\",\n        \"period\": 74,\n        \"start_date\": \"2045-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2046-03-05\",\n        \"period\": 75,\n        \"start_date\": \"2045-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2046-06-05\",\n        \"period\": 76,\n        \"start_date\": \"2046-03-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2046-09-05\",\n        \"period\": 77,\n        \"start_date\": \"2046-06-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2046-12-05\",\n        \"period\": 78,\n        \"start_date\": \"2046-09-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2047-03-05\",\n        \"period\": 79,\n        \"start_date\": \"2046-12-05\",\n        \"year_fraction\": \"0.25\"\n      },\n      {\n        \"end_date\": \"2047-06-05\",\n        \"period\": 80,\n        \"start_date\": \"2047-03-05\",\n        \"year_fraction\": \"0.25\"\n      }\n    ],\n    \"unit\": \"calendar_day\",\n    \"window_start_date\": \"2027-09-02\"\n  },\n  \"deployment_contract\": {\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  \"family_id\": \"FUND_01\",\n  \"jurisdiction\": \"Fictional Commonwealth of Orivale / series 1\",\n  \"parties\": {\n    \"borrower\": \"Brackenford Trade Bank [FUND_01 series 1]\",\n    \"facility_lender\": \"Ternwell Liquidity Bank [FUND_01 series 1]\",\n    \"protection_provider\": \"Morrowfen Credit Assurance [FUND_01 series 1]\",\n    \"provider\": \"Alderwick Funding Trust [FUND_01 series 1]\",\n    \"reference_issuer\": \"Kestrelmere Funding Company [FUND_01 series 1]\"\n  },\n  \"terms\": {\n    \"branch_call\": \"17820162\",\n    \"branch_free_cash\": \"123751125\",\n    \"deployment_coupon_spread\": \"0.0455411592\",\n    \"facility_limit\": \"257402340\",\n    \"lender_spread\": \"0.0108903245\",\n    \"market_haircut\": \"0.08910333\",\n    \"notional\": \"990009000\",\n    \"ois\": \"0.0356420304\",\n    \"own_bond_spread\": \"0.0064352412\",\n    \"provider_cds\": \"0.0084151402\"\n  },\n  \"title\": \"Registered pledge and a coupon arriving after the debit\"\n}\nQ 0 {'as_of': '2027-09-02', 'id': '157e8cf5a33d362b83926d6b0e6bea27a2f9e6681700623a150a29f36e790213', 'kind': 'hold_capital', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'fee', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'fixtures/numerical-inputs.json', 'locator': '/actions/hold'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 1 {'as_of': '2027-09-02', 'id': 'cf39fe6ce4b250075669874bf7081d614dd94f0f16946b74c86259210f294185', 'kind': 'execute_csa', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'csa'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 2 {'as_of': '2027-09-02', 'id': '1bc1d38445c96a7c43c3597e11cd1b6924da8ce44a8196dd9e643ebdfdf5db38', 'kind': 'substitute_collateral', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'prices', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'substitution'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 3 {'as_of': '2027-09-02', 'id': 'ffb3435ac97a68eb6c7093d2bc8bf6878263fbb8e60af4bfca1853ea72fcf84d', 'kind': 'reverse_substitution', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'prices', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'substitution'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 4 {'as_of': '2027-09-02', 'id': '430f6928d4bd9679c8f2ffa17451ab532ccf739a9d80be5ae0100b7098352196', 'kind': 'execute_offset', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'offset'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 5 {'as_of': '2027-09-02', 'id': '43986ec033c9f49b297fb29e13ac10e5834d28c7723ac08ec4b97a89a0545e74', 'kind': 'consolidate_netting', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'offset'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 6 {'as_of': '2027-09-02', 'id': '8cb0fd4a90b52afadf7bb583d6db656ddb7920c82deda62ce94a0e79b6f0831e', 'kind': 'buy_protection', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'protection'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 7 {'as_of': '2027-09-02', 'id': 'cbb2fb3161e49de42b65e73c14cb47d7e2ac2c69247d8aa3c82e9bd6fba0298c', 'kind': 'designate_protection', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['disclosed_event_prefix', 'mandate', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'pricing', 'resource_limits', 'source_quote', 'version_basis'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'docs/exhibit-fields.md', 'locator': 'fictional-actions'}, {'file': 'fixtures/desk-policy.json', 'locator': 'protection'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 8 {'as_of': '2027-09-02', 'id': '120c605ca4096ebcfbc4a77f080766647e8ccea7c748819ce6ff3e629dbc6a23', 'kind': 'repo_allocate', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'valid_until': '2027-09-02'} termkeys= ['capital_budget', 'days', 'disclosed_event_prefix', 'equity_hurdle', 'inventory', 'lenders', 'mandate', 'ois', 'own_spread', 'phase_legal', 'phase_market', 'phase_prefix_digest', 'policy', 'prices', 'pricing', 'requirement', 'resource_limits', 'version_basis', 'year_days'] ev= [{'file': 'fixtures/desk-policy.json', 'locator': 'prices'}, {'file': 'fixtures/numerical-inputs.json', 'locator': '/allocation'}, {'file': 'fixtures/desk-policy.json', 'locator': 'repo'}, {'document_id': 'SYNTHETIC_PACKET', 'locator': 'fictional-desk-mandate'}]\nQ 9 {'as_of': '2027-09-02', 'id': '34a1a05f5477c817ee706ac91e5d4b72bf2e193fdf9a218140565f39211714f9', 'kind': 'repay_repo', 'legal_version': 0, 'market_version': 0, 'parent_state_hash': '6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165', 'phase': 0, 'revision': 0, 'val\n[...output truncated at 22000 bytes; 72607 total...]\n\nSTATUS:\nFinished normally at 2026-09-20T08:41:37Z (elapsed=0.08s)","tool_call_id":"call_f96950948f4c56458d4191b995e2f1bc","type":"tool_result"}},{"step":6,"generation":0,"created_at":"2026-09-20T08:42:24.117Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_e0ef1b3e6da15a84be605b84a6ae9183","name":"edit_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/plan.md\",\"edits\":[{\"old_text\":\"\",\"new_text\":\"# Current checkpoint plan\\n\\nAuthority: /packet/packet.json; parent 6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165, 2027-09-02, day/revision/market/legal versions 0. Inherited book, not our opening trades. No submission or live-book calculator calls.\\n\\n1. Read the complete daily-report schema and public desk conventions; preserve exact source citations. Inspect state, quote terms, case mandates and receipt chain.\\n2. Parallel focused reviews: (a) legal/compliance/client structure and executable decision constraints; (b) independently derive credit/XVA and capital; (c) accounting/settlement/liquidity evidence. Parent owns rates, decision economics and final integration.\\n3. Select the least-cost viable explicit decision using only current quotes and phases; distinguish the parent report from contemplated effects. Evaluate funding mismatch, signed spread risk, actual cash versus undrawn capacity, collateral rights, fees/reserves/capital/margin and unavailable routes.\\n4. Build all nine daily-book.v2 sections using Decimal computations and supported premises. Cross-check accounts, receipts, formulas, schema, citations, versions, action keys and quotes.\\n5. Write one strict UTF-8 JSON envelope atomically with fsync to the user-specified /work/artifacts/envelope-5645f9aaf2b5407c984ebb4aa4c3deec.json (<=1048576 bytes). Do not execute or submit; finish this attempt after durability.\\n\"}]}"}],"type":"assistant","usage":{"prompt_tokens":35261,"completion_tokens":553,"total_tokens":35814,"cache_read_tokens":27421}}},{"step":6,"generation":0,"created_at":"2026-09-20T08:42:24.119Z","event":{"content":"Created /work/data/artifacts/1zx0ecgn/plan.md (9 lines).\n+ # Current checkpoint plan\n+ \n+ Authority: /packet/packet.json; parent 6d1645a487425409f4da8db6aa0d4fcaab93ce7b8516b65ce41eaaf60d2ad165, 2027-09-02, day/revision/market/legal versions 0. Inherited book, not our opening trades. No submission or live-book calculator calls.\n+ \n+ 1. Read the complete daily-report schema and public desk conventions; preserve exact source citations. Inspect state, quote terms, case mandates and receipt chain.\n+ 2. Parallel focused reviews: (a) legal/compliance/client structure and executable decision constraints; (b) independently derive credit/XVA and capital; (c) accounting/settlement/liquidity evidence. Parent owns rates, decision economics and final integration.\n+ 3. Select the least-cost viable explicit decision using only current quotes and phases; distinguish the parent report from contemplated effects. Evaluate funding mismatch, signed spread risk, actual cash versus undrawn capacity, collateral rights, fees/reserves/capital/margin and unavailable routes.\n+ 4. Build all nine daily-book.v2 sections using Decimal computations and supported premises. Cross-check accounts, receipts, formulas, schema, citations, versions, action keys and quotes.\n+ 5. Write one strict UTF-8 JSON envelope atomically with fsync to the user-specified /work/artifacts/envelope-5645f9aaf2b5407c984ebb4aa4c3deec.json (<=1048576 bytes). Do not execute or submit; finish this attempt after durability.\n","tool_call_id":"call_e0ef1b3e6da15a84be605b84a6ae9183","type":"tool_result"}},{"step":7,"generation":0,"created_at":"2026-09-20T08:43:13.63Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_b0cfb6e0bb0456e5be8a877f9b7d3644","name":"spawn_agent","arguments":"{\"task\":\"Focused legal/compliance/client desk review. Read /packet/packet.json as authority and extracted docs/schema under /work/data/artifacts/1zx0ecgn. Parent plan there. Do not submit, execute actions or use optional calculator to value live book. Determine current legal/compliance/structure daily-book.v2 sections using full corresponding schema and exact evidence citations/entailed source premises. Inspect current client mandate, legal rights, deadlines, action quotes, counterparty restrictions. Recommend viable actions (hold_capital vs CSA/substitution/offset/protection etc) and binding constraints, missing permissions. Distinguish inherited opening trades and actual current parent outcomes. Write /work/data/artifacts/1zx0ecgn/institutional-sections.json with legal/compliance/structure (+ possible recommendation draft) and notes/institutional-review.md with key economic/action considerations. You own only these files and any uniquely named helper. Communicate questions/results. No further delegation unless essential.\"}"},{"id":"call_ffa23859f6ae5fb7a04c4b35eef796bb","name":"spawn_agent","arguments":"{\"task\":\"Focused quantitative credit/XVA and capital valuation of current parent in /packet/packet.json. Extracted docs full daily-report.schema.json etc at /work/data/artifacts/1zx0ecgn/documents; state/parameters/case/policy extracted too. Compute daily-book.v2 credit_xva and capital sections independently with Decimal and public conventions; optional /packet/calculator.py is practice-only and must NOT value live book. Current parent 2027-09-02 day0, inherited book; do not project actions into parent. Use receipts as needed. Include complete schemas and exact evidence citations. Write /work/data/artifacts/1zx0ecgn/credit-capital-sections.json plus uniquely named helper credit_capital.py and notes formulas/assumptions. Examine cost/benefit of current CSA/substitution/offset/buy protection vs retaining risk to advise parent, but don't execute or submit. Your code edits only your assigned artifact files. No further delegation unless essential.\"}"},{"id":"call_780eb502b3415457a34f809910b9b7d3","name":"spawn_agent","arguments":"{\"task\":\"Focused accounting, liquidity and settlement review for current /packet/packet.json parent. Public docs/schema extracted at /work/data/artifacts/1zx0ecgn/documents plus state/parameters/case/policy/quotes. Need accurate complete daily-book.v2 accounting and liquidity sections under full schema using Decimal/public rules and actual receipt chain in /work/receipts. No optional live calculator, no actions/submission. Parent is day0 2027-09-02 with inherited opening history; report current parent, no projected trades. Verify cash, debt, receivable/payable accrual vs obligations, inventory rights, receipt backed cash source, two independent journals/bridge, reserve attribution, surviving obligations. Write /work/data/artifacts/1zx0ecgn/accounting-liquidity-sections.json and uniquely named helper acct_liquidity.py if needed plus notes. Assess current and impending funding/client duties only from disclosed evidence and advise hold/draw/other route. Do not edit other agents' artifacts. No further delegation unless essential.\"}"}],"type":"assistant","usage":{"prompt_tokens":36187,"completion_tokens":663,"total_tokens":36850,"cache_read_tokens":35259}}},{"step":7,"generation":0,"created_at":"2026-09-20T08:43:13.631Z","event":{"content":"Spawned sub-agent \"quick-bee\" (type=standard_agent) at 2026-09-20T08:43:13Z for task: Focused accounting, liquidity and settlement review for current /packet/packet.j…","tool_call_id":"call_780eb502b3415457a34f809910b9b7d3","type":"tool_result"}},{"step":7,"generation":0,"created_at":"2026-09-20T08:43:13.632Z","event":{"content":"Spawned sub-agent \"bright-stork\" (type=standard_agent) at 2026-09-20T08:43:13Z for task: Focused legal/compliance/client desk review. Read /packet/packet.json as authori…","tool_call_id":"call_b0cfb6e0bb0456e5be8a877f9b7d3644","type":"tool_result"}},{"step":7,"generation":0,"created_at":"2026-09-20T08:43:13.633Z","event":{"content":"Spawned sub-agent \"suave-cobra\" (type=standard_agent) at 2026-09-20T08:43:13Z for task: Focused quantitative credit/XVA and capital valuation of current parent in /pack…","tool_call_id":"call_ffa23859f6ae5fb7a04c4b35eef796bb","type":"tool_result"}},{"step":8,"generation":0,"created_at":"2026-09-20T08:43:31.479Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_e39a9f19863552309325c758bcf58063","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/documents/schemas/daily-report.schema.json\",\"start_line\":451,\"end_line\":930}"},{"id":"call_9b94f844a0ff52828dd42b3f70a19fe8","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/state-core.json\",\"start_line\":1,\"end_line\":440}"},{"id":"call_bf25fee2c998501b83c6c6c38936ff49","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/documents/docs/reference-input-contract.md\",\"start_line\":1,\"end_line\":111}"}],"type":"assistant","usage":{"prompt_tokens":37030,"completion_tokens":141,"total_tokens":37171,"cache_read_tokens":36185}}},{"step":8,"generation":0,"created_at":"2026-09-20T08:43:31.48Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/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_bf25fee2c998501b83c6c6c38936ff49","type":"tool_result"}},{"step":8,"generation":0,"created_at":"2026-09-20T08:43:31.483Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/documents/schemas/daily-report.schema.json (showing lines 451-930 of 2481)\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","tool_call_id":"call_e39a9f19863552309325c758bcf58063","type":"tool_result"}},{"step":8,"generation":0,"created_at":"2026-09-20T08:43:31.485Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/state-core.json\n   1: {\n   2:   \"accepted_action_count\": 0,\n   3:   \"accepted_action_ids\": [],\n   4:   \"applied_event_ids\": [],\n   5:   \"as_of\": \"2027-09-02\",\n   6:   \"day\": 0,\n   7:   \"family_id\": \"FUND_01\",\n   8:   \"financial_time\": \"0.2418478260869565217391304347826086956522\",\n   9:   \"last_receipt_hash\": \"0088a4f7766fb2319151fe963f9e7fba59db8bda2eb064b7dfce91cc9517be3c\",\n  10:   \"last_receipt_sequence\": 415,\n  11:   \"legal\": {\n  12:     \"approvals\": {},\n  13:     \"decisions\": {},\n  14:     \"defaults\": {\n  15:       \"borrower\": false,\n  16:       \"provider\": false,\n  17:       \"reference_issuer\": false\n  18:     },\n  19:     \"disputes\": {},\n  20:     \"facility_status\": \"available\",\n  21:     \"observable\": false,\n  22:     \"rights\": {\n  23:       \"delivery|contract|\": \"effective\",\n  24:       \"enforceability|contract|\": \"effective\",\n  25:       \"issuance|contract|\": \"effective\",\n  26:       \"remittance|contract|\": \"denied\",\n  27:       \"restitution|borrower_only|\": \"conditional\",\n  28:       \"reuse|contract|\": \"denied\",\n  29:       \"substitution|contract|\": \"conditional\"\n  30:     },\n  31:     \"substitution_requests\": {},\n  32:     \"transfer_blocks\": {\n  33:       \"cash_remittance\": false,\n  34:       \"custody_delivery\": false\n  35:     }\n  36:   },\n  37:   \"legal_version\": 0,\n  38:   \"market\": {\n  39:     \"em_move\": \"0\",\n  40:     \"funding_move\": \"0\",\n  41:     \"market_open\": true,\n  42:     \"own_bond_spread\": \"0.0064352412\",\n  43:     \"own_cds_spread\": \"0.0029701437\",\n  44:     \"provider_cds\": \"0.0084151402\",\n  45:     \"ratings\": {\n  46:       \"borrower\": \"BB\",\n  47:       \"deployment_collateral\": \"BB\",\n  48:       \"funding_reference\": \"AAA\",\n  49:       \"provider\": \"A\"\n  50:     },\n  51:     \"reference_move\": \"0\"\n  52:   },\n  53:   \"market_version\": 0,\n  54:   \"obligations\": {},\n  55:   \"pending\": [],\n  56:   \"revision\": 0,\n  57:   \"schema_version\": \"desk-state.v3\",\n  58:   \"contracts\": {\n  59:     \"DEP_LOAN\": {\n  60:       \"effective_date\": \"2027-06-05\",\n  61:       \"execution_date\": \"2027-06-05\",\n  62:       \"id\": \"DEP_LOAN\",\n  63:       \"kind\": \"deployment_loan\",\n  64:       \"maturity_date\": \"2032-06-05\",\n  65:       \"source_evidence\": [\n  66:         {\n  67:           \"document_id\": \"SYNTHETIC_PACKET\",\n  68:           \"locator\": \"fictional-executed-agreements\"\n  69:         }\n  70:       ],\n  71:       \"state\": {\n  72:         \"concession_spread\": \"0\",\n  73:         \"concession_start_date\": null,\n  74:         \"last_accrual_date\": \"2027-06-05\",\n  75:         \"matured_principal_received\": \"0\",\n  76:         \"matured_principal_reinvested\": \"0\",\n  77:         \"outstanding_principal\": \"990009000\",\n  78:         \"paid_periods\": [],\n  79:         \"prefunding\": {}\n  80:       },\n  81:       \"status\": \"active\",\n  82:       \"terms\": {\n  83:         \"borrower_id\": \"BORROWER\",\n  84:         \"coupon_spread\": \"0.0455411592\",\n  85:         \"notional\": \"990009000\",\n  86:         \"ois\": \"0.0356420304\",\n  87:         \"principal\": \"990009000\",\n  88:         \"quarter\": \"0.25\",\n  89:         \"security_contract_id\": \"DEP_SECURITY\"\n  90:       }\n  91:     },\n  92:     \"DEP_SECURITY\": {\n  93:       \"effective_date\": \"2027-06-05\",\n  94:       \"execution_date\": \"2027-06-05\",\n  95:       \"id\": \"DEP_SECURITY\",\n  96:       \"kind\": \"deployment_security\",\n  97:       \"maturity_date\": \"2032-06-05\",\n  98:       \"source_evidence\": [\n  99:         {\n 100:           \"file\": \"worker/legal-terms.txt\",\n 101:           \"locator\": \"actual-deployment-terms\"\n 102:         },\n 103:         {\n 104:           \"file\": \"worker/docs/desk-runtime-contract.md\",\n 105:           \"locator\": \"## Clock and settlement order\"\n 106:         }\n 107:       ],\n 108:       \"state\": {\n 109:         \"active_lot_id\": \"DEPSEC\",\n 110:         \"collection_batches\": {},\n 111:         \"distributions\": {},\n 112:         \"liquidated_quantity\": \"0\",\n 113:         \"returned\": false,\n 114:         \"rights_chain\": []\n 115:       },\n 116:       \"status\": \"active\",\n 117:       \"terms\": {\n 118:         \"asset_id\": \"DEPSEC\",\n 119:         \"borrower_id\": \"BORROWER\",\n 120:         \"collateral_issuer_id\": \"CELADON\",\n 121:         \"collateral_relation\": \"independent\",\n 122:         \"contract_id\": \"DEP_SECURITY\",\n 123:         \"coupon_spread\": \"0.0455411592\",\n 124:         \"currency\": \"USD\",\n 125:         \"enforceability\": \"effective\",\n 126:         \"face_per_unit\": \"1\",\n 127:         \"facility\": {\n 128:           \"cash_account_id\": \"CASH_BRANCH\",\n 129:           \"lender_id\": \"FACILITY_LENDER\",\n 130:           \"limit\": \"257402340\",\n 131:           \"spread\": \"0.0108903245\",\n 132:           \"unconditional_by_selected_cutoff\": true\n 133:         },\n 134:         \"initial_operating_cash\": \"123751125\",\n 135:         \"issued\": true,\n 136:         \"legal_form\": \"issued_security_pledge\",\n 137:         \"market_funding_spread\": \"0.0108903245\",\n 138:         \"market_haircut\": \"0.08910333\",\n 139:         \"opening_total_cash\": \"123751125\",\n 140:         \"operating_call\": \"17820162\",\n 141:         \"ownership_basis\": \"pledge\",\n 142:         \"quantity\": \"990009000\",\n 143:         \"restricted_cash\": \"0\",\n 144:         \"return_obligation\": \"identical\",\n 145:         \"reuse_permitted\": false,\n 146:         \"scope\": \"actual_daily_book\",\n 147:         \"source_evidence\": [\n 148:           {\n 149:             \"file\": \"worker/legal-terms.txt\",\n 150:             \"locator\": \"actual-deployment-terms\"\n 151:           },\n 152:           {\n 153:             \"file\": \"worker/docs/desk-runtime-contract.md\",\n 154:             \"locator\": \"## Clock and settlement order\"\n 155:           }\n 156:         ]\n 157:       }\n 158:     },\n 159:     \"FACILITY\": {\n 160:       \"effective_date\": \"2027-06-05\",\n 161:       \"execution_date\": \"2027-06-05\",\n 162:       \"id\": \"FACILITY\",\n 163:       \"kind\": \"facility\",\n 164:       \"maturity_date\": \"2047-06-05\",\n 165:       \"source_evidence\": [\n 166:         {\n 167:           \"file\": \"worker/legal-terms.txt\",\n 168:           \"locator\": \"actual-deployment-terms\"\n 169:         },\n 170:         {\n 171:           \"file\": \"worker/docs/desk-runtime-contract.md\",\n 172:           \"locator\": \"## Clock and settlement order\"\n 173:         }\n 174:       ],\n 175:       \"state\": {\n 176:         \"interest_accrued\": \"0\",\n 177:         \"interest_paid\": \"0\",\n 178:         \"last_accrual_date\": \"2027-09-02\",\n 179:         \"outstanding_principal\": \"0\",\n 180:         \"paid_periods\": []\n 181:       },\n 182:       \"status\": \"active\",\n 183:       \"terms\": {\n 184:         \"cash_account_id\": \"CASH_BRANCH\",\n 185:         \"day_count\": \"ACT/365F\",\n 186:         \"fee\": \"0\",\n 187:         \"initial_own_bond_spread\": \"0.0064352412\",\n 188:         \"lender_id\": \"FACILITY_LENDER\",\n 189:         \"limit\": \"257402340\",\n 190:         \"ois\": \"0.0356420304\",\n 191:         \"spread\": \"0.0108903245\",\n 192:         \"unconditional_by_selected_cutoff\": true,\n 193:         \"year_days\": \"365\"\n 194:       }\n 195:     },\n 196:     \"FUND_TRS\": {\n 197:       \"effective_date\": \"2027-06-05\",\n 198:       \"execution_date\": \"2027-06-05\",\n 199:       \"id\": \"FUND_TRS\",\n 200:       \"kind\": \"funding_trs\",\n 201:       \"maturity_date\": \"2047-06-05\",\n 202:       \"source_evidence\": [\n 203:         {\n 204:           \"document_id\": \"SYNTHETIC_PACKET\",\n 205:           \"locator\": \"fictional-executed-agreements\"\n 206:         }\n 207:       ],\n 208:       \"state\": {\n 209:         \"checkpoint_attribution\": {\n 210:           \"carry\": \"33376419.767308484527\",\n 211:           \"cash_funding_drag\": \"18797129.89327568417\",\n 212:           \"claim_loss\": \"0\",\n 213:           \"closing_as_of\": \"2027-09-02\",\n 214:           \"deferral_observability\": \"-41581875.436912685824\",\n 215:           \"deferral_theta\": \"0\",\n 216:           \"funding_action\": \"41581875.436912685824\",\n 217:           \"funding_mtm\": \"0\",\n 218:           \"funding_theta\": \"0\",\n 219:           \"hedge_accrual\": \"0\",\n 220:           \"hedge_cash\": \"0\",\n 221:           \"hedge_mark\": \"0\",\n 222:           \"management_equity_change\": \"374455742.38934580729\",\n 223:           \"opening_as_of\": \"2027-06-05\",\n 224:           \"operating_cost\": \"990009\",\n 225:           \"overlay_equity_change\": \"-30187093.484686993067\",\n 226:           \"overlay_journal_pnl\": \"-30187093.484686993067\",\n 227:           \"owner_contributions\": \"391053555\",\n 228:           \"pnl_total\": \"-16597812.61065419271\",\n 229:           \"reserve_action\": \"-30187093.484686993067\",\n 230:           \"reserve_mtm\": \"0\",\n 231:           \"reserve_theta\": \"0\",\n 232:           \"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 233:           \"statutory_equity_change\": \"404642835.874032800357\",\n 234:           \"statutory_journal_pnl\": \"13589280.874032800357\",\n 235:           \"statutory_mark\": \"0\",\n 236:           \"tie_difference\": \"0\"\n 237:         },\n 238:         \"financing_coupon_accrued\": \"10193163.186945957065\",\n 239:         \"last_accrual_date\": \"2027-09-02\",\n 240:         \"last_reset_date\": \"2027-06-05\",\n 241:         \"last_reset_price\": \"1\",\n 242:         \"netting_id\": \"FUNDING_P\",\n 243:         \"observability_history\": [\n 244:           {\n 245:             \"day\": -89,\n 246:             \"observable\": false\n 247:           }\n 248:         ],\n 249:         \"paid_periods\": [],\n 250:         \"principal\": \"990009000\",\n 251:         \"reference_coupon_accrued\": \"10904336.156938392391\",\n 252:         \"reset_periods\": [],\n 253:         \"unsettled_stub\": \"0\",\n 254:         \"vm_balance\": \"0\"\n 255:       },\n 256:       \"status\": \"active\",\n 257:       \"terms\": {\n 258:         \"NICA\": \"0\",\n 259:         \"SA_CVA_approval\": false,\n 260:         \"classification_evidence\": {\n 261:           \"file\": \"docs/exhibit-fields.md\",\n 262:           \"locator\": \"fictional-classification\"\n 263:         },\n 264:         \"contract_id\": \"FUND_TRS\",\n 265:         \"currency\": \"USD\",\n 266:         \"full_value_reset\": false,\n 267:         \"last_reset_price\": \"1\",\n 268:         \"locked_financing_spread\": \"0.0069303218\",\n 269:         \"minimum_transfer_amount\": \"0\",\n 270:         \"mpor_floor\": {\n 271:           \"illiquid_or_hard_to_replace\": true,\n 272:           \"non_centrally_cleared\": true,\n 273:           \"over_5000_transactions\": false,\n 274:           \"remargin_interval_days\": \"1\",\n 275:           \"repeated_disputes\": false,\n 276:           \"source_evidence\": {\n 277:             \"file\": \"docs/reference-input-contract.md\",\n 278:             \"locator\": \"mpor-floor-facts\"\n 279:           }\n 280:         },\n 281:         \"netting_set_id\": \"FUNDING_P\",\n 282:         \"next_price_settlement_years\": \"0.25\",\n 283:         \"notional\": \"990009000\",\n 284:         \"ois\": \"0.0356420304\",\n 285:         \"ordinary_BA_maturity_floor_applies\": true,\n 286:         \"original_reference_rating\": \"AAA\",\n 287:         \"provider_ECRA_rating\": \"A\",\n 288:         \"provider_bank_eligible\": true,\n 289:         \"provider_credit_quality\": \"IG\",\n 290:         \"provider_due_diligence_uplift\": false,\n 291:         \"provider_id\": \"P\",\n 292:         \"provider_recovery\": \"0.4\",\n 293:         \"provider_sector\": \"financial\",\n 294:         \"quantity\": \"990009000\",\n 295:         \"quarter\": \"0.25\",\n 296:         \"ratings_permitted\": true,\n 297:         \"reference_coupon_spread\": \"0.009900578\",\n 298:         \"reference_evidence\": {\n 299:           \"file\": \"docs/exhibit-fields.md\",\n 300:           \"locator\": \"fictional-executed-agreements\"\n 301:         },\n 302:         \"reference_id\": \"U\",\n 303:         \"reference_issuer_kind\": \"other\",\n 304:         \"reference_price_basis\": \"USD per unit of original principal; final ex-distribution price zero\",\n 305:         \"regulatory_classification\": \"Credit-only SA-CCR plus LEV30 written credit under fictional classification letter; failed-sale IFRS retention reconciled separately\",\n 306:         \"remaining_years\": \"20\",\n 307:         \"replacement_quote\": {\n 308:           \"closeout_basis\": \"Full financing and return obligations under matched replacement terms, no own-spread-linked termination payment\",\n 309:           \"contract_id\": \"FUND_TRS\",\n 310:           \"conversion\": \"remaining_quarterly_annuity\",\n 311:           \"conversion_rate\": \"0.0356420304\",\n 312:           \"currency\": \"USD\",\n 313:           \"executable\": true,\n 314:           \"id\": \"SYN-REPL-FUND-FUND_01-S1\",\n 315:           \"includes_old_reference_adjustment\": false,\n 316:           \"locked_financing_spread\": \"0.0069303218\",\n 317:           \"notional\": \"990009000\",\n 318:           \"off_quarter_convention\": \"fractional_remaining_annuity_clean_quote\",\n 319:           \"old_reference_adjustment_upfront\": \"0\",\n 320:           \"provider_id\": \"P\",\n 321:           \"quantity\": \"990009000\",\n 322:           \"quarter\": \"0.25\",\n 323:           \"quote_basis\": \"reset_to_today\",\n 324:           \"quoted_at\": \"2027-06-05\",\n 325:           \"quoted_base_financing_spread\": \"0.009900825\",\n 326:           \"reference_id\": \"U\",\n 327:           \"remaining_years\": \"20\",\n 328:           \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n 329:           \"reset_price_convention\": \"Current reference price; old reference-price return is excluded from quoted margin\",\n 330:           \"roll_convention\": \"Same surviving contract, remaining maturity rolls down without renewal; margin beta applies only to stated synthetic parallel scenarios\",\n 331:           \"scenario_margin_beta\": \"1\",\n 332:           \"source_evidence\": {\n 333:             \"file\": \"docs/exhibit-fields.md\",\n 334:             \"locator\": \"fictional-quote-board\"\n 335:           },\n 336:           \"status\": \"Fictional binding quote convention for this educational instance, not an observed market quote\"\n 337:         },\n 338:         \"reset_basis\": \"Quarterly reference-price return settlement; future financing advantage survives\",\n 339:         \"stub\": \"0\",\n 340:         \"threshold\": \"0\"\n 341:       }\n 342:     },\n 343:     \"LEGACY\": {\n 344:       \"effective_date\": \"2027-06-05\",\n 345:       \"execution_date\": \"2027-06-05\",\n 346:       \"id\": \"LEGACY\",\n 347:       \"kind\": \"legacy\",\n 348:       \"maturity_date\": \"2047-06-05\",\n 349:       \"source_evidence\": [\n 350:         {\n 351:           \"document_id\": \"SYNTHETIC_PACKET\",\n 352:           \"locator\": \"fictional-ledgers\"\n 353:         }\n 354:       ],\n 355:       \"state\": {\n 356:         \"interest_accrued\": \"8603966.706329727105\",\n 357:         \"interest_paid\": \"0\",\n 358:         \"last_accrual_date\": \"2027-09-02\",\n 359:         \"outstanding_principal\": \"990009000\",\n 360:         \"paid_periods\": []\n 361:       },\n 362:       \"status\": \"active\",\n 363:       \"terms\": {\n 364:         \"day_count\": \"ACT/365F\",\n 365:         \"ois\": \"0.0356420304\",\n 366:         \"principal\": \"990009000\",\n 367:         \"quarter\": \"0.25\",\n 368:         \"spread\": \"0\"\n 369:       }\n 370:     },\n 371:     \"inventory:L1\": {\n 372:       \"effective_date\": \"2027-06-05\",\n 373:       \"execution_date\": \"2027-06-05\",\n 374:       \"id\": \"inventory:L1\",\n 375:       \"kind\": \"inventory_security\",\n 376:       \"maturity_date\": \"2032-06-05\",\n 377:       \"source_evidence\": {\n 378:         \"file\": \"docs/exhibit-fields.md\",\n 379:         \"locator\": \"fictional-actions\"\n 380:       },\n 381:       \"state\": {\n 382:         \"interest_accrued\": \"1024059.080807722957\",\n 383:         \"last_accrual_date\": \"2027-09-02\",\n 384:         \"outstanding_principal\": \"118801080\",\n 385:         \"paid_periods\": []\n 386:       },\n 387:       \"status\": \"active\",\n 388:       \"terms\": {\n 389:         \"coupon_spread\": \"0\",\n 390:         \"day_count\": \"quarter_actual_fraction\",\n 391:         \"instrument_id\": \"L1\",\n 392:         \"lot_id\": \"L1\",\n 393:         \"ois\": \"0.0356420304\",\n 394:         \"principal\": \"118801080\",\n 395:         \"quarter\": \"0.25\"\n 396:       }\n 397:     },\n 398:     \"inventory:L2\": {\n 399:       \"effective_date\": \"2027-06-05\",\n 400:       \"execution_date\": \"2027-06-05\",\n 401:       \"id\": \"inventory:L2\",\n 402:       \"kind\": \"inventory_security\",\n 403:       \"maturity_date\": \"2032-06-05\",\n 404:       \"source_evidence\": {\n 405:         \"file\": \"docs/exhibit-fields.md\",\n 406:         \"locator\": \"fictional-actions\"\n 407:       },\n 408:       \"state\": {\n 409:         \"interest_accrued\": \"938720.824073746043\",\n 410:         \"last_accrual_date\": \"2027-09-02\",\n 411:         \"outstanding_principal\": \"108900990\",\n 412:         \"paid_periods\": []\n 413:       },\n 414:       \"status\": \"active\",\n 415:       \"terms\": {\n 416:         \"coupon_spread\": \"0\",\n 417:         \"day_count\": \"quarter_actual_fraction\",\n 418:         \"instrument_id\": \"L2\",\n 419:         \"lot_id\": \"L2\",\n 420:         \"ois\": \"0.0356420304\",\n 421:         \"principal\": \"108900990\",\n 422:         \"quarter\": \"0.25\"\n 423:       }\n 424:     }\n 425:   }\n 426: }\n","tool_call_id":"call_9b94f844a0ff52828dd42b3f70a19fe8","type":"tool_result"}},{"step":9,"generation":0,"created_at":"2026-09-20T08:43:19.688Z","event":{"child_session_id":"bright-stork","content":"llm call: openai request failed after 3 attempts: openai 429 Too Many Requests: At most four inference requests may be pending.","type":"child_result","verdict":"crashed"}},{"step":9,"generation":0,"created_at":"2026-09-20T08:44:45.186Z","event":{"stop_reason":"tool_calls","tool_calls":[{"id":"call_78c91de1467a5b8ea030a77fe2d43c71","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/documents/schemas/daily-report.schema.json\",\"start_line\":931,\"end_line\":1400}"},{"id":"call_bdaa6f50fb5356979829b5e91d9e5a1f","name":"view_file","arguments":"{\"path\":\"/work/data/artifacts/1zx0ecgn/documents/docs/desk-runtime-contract.md\",\"start_line\":111,\"end_line\":192}"},{"id":"call_429711a248185714810176e27f78d74d","name":"send_message","arguments":"{\"session_id\":\"bright-stork\",\"content\":\"Please resume assigned legal/compliance/client task (initial infrastructure rate limit; your prior task remains). Parent owns rates/decision integration; do not delegate.\"}"}],"type":"assistant","usage":{"prompt_tokens":51057,"completion_tokens":184,"total_tokens":51241,"cache_read_tokens":37028}}},{"step":9,"generation":0,"created_at":"2026-09-20T08:44:45.214Z","event":{"content":"Message sent to bright-stork at 2026-09-20T08:44:45Z","tool_call_id":"call_429711a248185714810176e27f78d74d","type":"tool_result"}},{"step":9,"generation":0,"created_at":"2026-09-20T08:44:45.234Z","event":{"content":"file_fingerprint=8140862cef57\nFile: /work/data/artifacts/1zx0ecgn/documents/docs/desk-runtime-contract.md (showing lines 111-192 of 192)\n[L111  #f3474c] \n[L112  #0275da] ## Implementation interfaces and ownership\n[L113  #aa6e57] \n[L114  #3f52c7] 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[L115  #ecf897] \n[L116  #443b55] `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[L117  #7971e0] \n[L118  #b557a6] 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[L119  #25595a] \n[L120  #03d9c4] 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[L121  #d38ed1] \n[L122  #70872d] 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[L123  #4e2f77] \n[L124  #9e4334] 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[L125  #58a359] \n[L126  #6862d8] 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[L127  #d182a1] \n[L128  #d860b6] 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[L129  #c7d4c2] \n[L130  #f148c9] 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[L131  #37a38a] \n[L132  #c9f001] 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[L133  #8f026b] \n[L134  #54223f] 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[L135  #96dfec] \n[L136  #dba265] 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[L137  #e76706] \n[L138  #bd3885] ### Snapshot builder\n[L139  #83cef4] \n[L140  #d611d9] `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[L141  #0ad2a7] \n[L142  #39ea4a] 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[L143  #355f9d] \n[L144  #baa991] 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[L145  #50a060] \n[L146  #1c4207] 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[L147  #13b194] \n[L148  #591cb3] 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[L149  #2b9f27] \n[L150  #bd9124] `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[L151  #a02d3e] \n[L152  #965c38] ### Exact state vocabulary\n[L153  #624f85] \n[L154  #8a782d] 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[L155  #5871ba] \n[L156  #06c2c1] 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[L157  #6db584] \n[L158  #d78d6f] `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[L159  #0ed5da] \n[L160  #5ae370] 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[L161  #a79894] \n[L162  #b36542] 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[L163  #f1b593] \n[L164  #c71e37] `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[L165  #7dfb12] \n[L166  #9ec358] 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[L167  #3a4a4b] \n[L168  #72ea32] 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[L169  #151b38] \n[L170  #577f6a] 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[L171  #ba15f4] \n[L172  #d05bbf] 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[L173  #f0be1c] \n[L174  #29213c] 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[L175  #cae2d0] \n[L176  #65e8e4] 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[L177  #97a68a] \n[L178  #a6b86f] 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[L179  #e80811] \n[L180  #defeac] `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[L181  #ad4b2f] \n[L182  #6e45d4] 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[L183  #b294b7] \n[L184  #4edaed] 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[L185  #f1fff3] \n[L186  #feedcb] 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[L187  #2ae106] \n[L188  #f4aa49] ## Explicit scenario windows\n[L189  #2c3236] \n[L190  #751e3a] `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[L191  #29a574] \n[L192  #28b076] 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_bdaa6f50fb5356979829b5e91d9e5a1f","type":"tool_result"}},{"step":9,"generation":0,"created_at":"2026-09-20T08:44:45.258Z","event":{"content":"File: /work/data/artifacts/1zx0ecgn/documents/schemas/daily-report.schema.json (showing lines 931-1400 of 2481)\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:         },\n","tool_call_id":"call_78c91de1467a5b8ea030a77fe2d43c71","type":"tool_result"}},{"step":10,"generation":0,"created_at":"2026-09-20T08:44:57.302Z","event":{"content":"llm call: openai request failed after 3 attempts: openai 429 Too Many Requests: At most four inference requests may be pending.","marker":"error","type":"system"}},{"step":11,"generation":0,"created_at":"2026-09-20T08:45:20.325Z","event":{"content":"[RESUMED at 2026-09-20T08:45:20Z]","type":"recover"}}]