# CDM collateral workflow → task map

Part of `investigation-cdm-workflow-task-map` (goal `goal-end-to-end-flow`). One row per collateral workflow that this
repository's analysis identifies, with its CDM status, the prototype flow that implements it (the CDM workflows in
[`architecture/prototype.architecture.json`](../../architecture/prototype.architecture.json), written in CALM), what
is built, and the task that closes what is missing.

Sources: [`cdm-csa-coverage-matrix.md`](cdm-csa-coverage-matrix.md),
[`cdm-other-agreements-coverage-matrix.md`](cdm-other-agreements-coverage-matrix.md),
[`findings.md`](findings.md), [`collateral-conceptual-model.md`](collateral-conceptual-model.md),
[`collateral-flows.md`](collateral-flows.md), [`business-case.md`](business-case.md) and the gap register
[`gap-register.md`](gap-register.md) (gap IDs G1–G41). Implementation status is
as of 2026-11-22 (`main` after PR #92, release `v0.2-demo`): every row of sections A, B and C is built, and the full live suite (57 specs) passed locally on a reset chain after PR #89; PR #90 then changed `flow-registered-collateral-gmsla`.
Since `v0.1-demo` (`goal-tokenized-collateral`) the rows that move a Registered or Claim token (tMMF) complete on the record keeper's confirmation, and the rows where a party takes tUST or tMMF as collateral apply the provenance gate; the changes are listed in [`../releases/v0.2-demo.md`](../releases/v0.2-demo.md).

Build order, set by the project owner on 2026-11-03: the ISDA CSA cycle first (sections A and B), then the four other
agreement families (section C). Section B starts only after the rest of section A is done: `flow-oracle-update`,
`flow-revaluation-top-up` and the valuation gaps G7–G10 (`nw-core-cycle-first`, project owner). The order of the
rows in section B (`nw-csa-extension-order`) and section C (`nw-agreement-family-order`) was proposed by the
maintainer and accepted by the project owner (2026-11-03).

Every section uses the same columns:

- **#**: the row's number in its section: the order of the margin cycle in A, the build order in B and C.
- **Workflow**: the collateral workflow.
- **CDM status**: what CDM 7.7.0 covers, with the gap IDs of what it lacks (gap register; scores from the coverage
  matrices where they exist).
- **`cdm-ext`**: what the local extension adds over CDM 7.7.0.
- **Prototype**: the prototype flow and what is built (contracts, gateway, services, console).
- **Live spec**: the Playwright test in `console/e2e/live/<module>.spec.ts` that asserts on-chain state through the gateways.
- **Task**: the task that builds the row or closes what is missing.
- **PR**: the pull request that added the row's prototype flow and live spec; — when the row is not built.

## A. ISDA CSA margin cycle — implemented in the prototype

| # | Workflow | CDM status | `cdm-ext` | Prototype | Live spec | Task | PR |
|---|---|---|---|---|---|---|---|
| 1 | Margin call issue and response (agree, partly agree, dispute) | types only: no function, event or dispute record (G1, G3) | lifecycle steps and state (`cdmx.collateral.margincall`), events with qualification (`cdmx.collateral.event`), the dispute record and its resolution (`cdmx.collateral.dispute`) | `flow-im-margin-call-pledge`: built; the disputed amount is recorded, dispute resolution is not run | passes | `task-cdm-gap-closure` | #5 |
| 2 | Collateral proposal, eligibility, accept or reject | no proposal type (G2); additional haircut defect (G7, D1); concentration limits not evaluated (G8); rating check by text (G11, D8, open) | proposal and decision (`cdmx.collateral.proposal`), corrected haircut (`cdmx.collateral.valuation`), concentration limits (`cdmx.collateral.concentration`); G11 not covered | `flow-im-margin-call-pledge`: built Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the receiving party's service refuses to accept the proposal unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-cdm-gap-closure` (valuation, G7–G10); `task-document-provenance` | #5 |
| 3 | Pledge settlement into escrow | no link from an accepted proposal to a transfer (G4); balances not updated (G5); no collateral transfer type (G37, open) | settlement transfers (`cdmx.collateral.transfer`), portfolio kept from settled events (`cdmx.collateral.portfolio`); `transferType` stays absent | `flow-im-margin-call-pledge`: built; for a tMMF pledge the party consoles show whether the transfer agent has confirmed, and the register's breaks against the ledger (`flow-registered-collateral`) | passes | `task-cdm-gap-closure`; `task-console-record-keeper-completion` | #5 |
| 4 | Variation margin call and title transfer | Credit Support Amount for the 2018 IM CSA only (G9); no exposure netting (G10); no title-transfer party roles (G38, open) | VM Credit Support, Delivery and Return Amounts (`cdmx.collateral.valuation`, VM functions), netting set and exposure (`cdmx.collateral.exposure`); G38 not covered | `flow-vm-margin-call-transfer`: built | passes | `task-cdm-gap-closure` (valuation, G7–G10) | #5 |
| 5 | Return of excess initial margin | a call direction in the types only (G6) | return calls released without a proposal, within the agreed amount (`cdmx.collateral.margincall`) | `flow-return`: built | passes | `task-e2e-remaining-flows` | #11 |
| 6 | Default and enforcement against segregated IM | custody and segregation terms only, no enforcement step (G14) | enforcement as an event (`cdmx.collateral.enforcement`) | `flow-default-enforcement`: built; default notices through `services/oracle`; the enforcement records its CDM `CollateralEnforcement` hash, and for tMMF completes on the transfer agent's confirmation, which the party consoles show (`flow-registered-collateral`; local run 2026-11-22: 54 passed) | passes | `task-e2e-remaining-flows`; G14 in `task-cdm-gap-closure`; `task-authoritative-record-settlement-enforcement`; `task-console-record-keeper-completion` | #11 |
| 7 | Oracle price update | input to G7 and G11; ratings are not published to the feed | none | `flow-oracle-update`: built; `services/oracle` publishes through the operator's gateway; operator console | passes | `task-e2e-remaining-flows` | #13 |
| 8 | Revaluation and top-up call | revaluation and top-up score 2 (CSA matrix) | none beyond rows 2 and 4 | `flow-revaluation-top-up`: built; revaluation in `services/collateral`, top-up call from the secured party's console | passes | `task-e2e-remaining-flows`; modelling question `task-revaluation-top-up-modelling` | #14, #15 |
| 9 | Two-way initial margin (one leg per direction) | not scored | the pledgor's reclaim on the secured party's default (`Create_CollateralReclaim`, `cdmx.collateral.enforcement`); rules to be confirmed (`task-sme-two-way-im-rules`) | `flow-two-way-im-default`: built; legs from the calls, `CollateralControl.reclaim`, console leg selector; each party pledges to the other, and on A's default B enforces A's leg and reclaims its own | passes | `task-two-way-initial-margin` (resolved; `wp-adr-two-way-im`) | #40 |

## B. ISDA CSA workflows with no prototype flow

**Complete 2026-11-07:** every row below is built in the prototype with a live spec and merged (#25 to #37); the
parent task `task-csa-workflow-extensions` is resolved. Cost-based optimisation of the allocation basket
(`task-csa-allocation-optimisation`) and the SME confirmation of each row's rules remain open as their own tasks.

Rows are in build order (`nw-csa-extension-order`): gap-register priority first, then workflows that
extend flows the prototype already runs. Each row has its own task under `task-csa-workflow-extensions` (split on
2026-11-06).

| # | Workflow | CDM status | `cdm-ext` | Prototype | Live spec | Task | PR |
|---|---|---|---|---|---|---|---|
| 1 | Close-out netting on default | elections only (0–2): G15, P2 | ISDA 2002 MA Section 6(e) for the CSA (`cdmx.collateral.closeout`); GMRA, GMSLA and CCP close-out not covered | `flow-close-out-netting`: built (`CollateralControl.closeOut`, gateway, service, console) | passes | `task-csa-close-out-netting` | #25 |
| 2 | Substitution | partial (2): works for repo and lending only, qualified as a renegotiation (G16, P2; D5) | ISDA CSA Paragraph 4(d) with consent (`cdmx.collateral.substitution`) | `flow-substitution`: built (request, consent or refusal, settlement in `CollateralControl`, gateway, service, console); each step has a Substitution ledger anchor, which both parties build the same (local run 2026-11-22 on a reset chain) Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the receiving party's service refuses its consent unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-csa-substitution`; `task-substitution-ledger-anchors`; `task-document-provenance` | #25 |
| 3 | Interest on cash collateral | types only (2): G17, P2 | Interest Amount for one period on CDM's `CollateralInterestParameters`: daily accrual, rate rules, rounding, withholding tax, write-off, transfer or adjustment (`cdmx.collateral.interest`); compounding not covered | `flow-interest-on-cash`: built (`CollateralControl.stateInterest` and `payInterest`, gateway, service, console); one observed rate and the current escrow for every day (interim, `task-sme-interest-daily-balances`) | passes | `task-csa-interest-on-cash` | #26 |
| 4 | Amendment of agreement terms | modelled for the CSA (4) | Agreement event qualified, eligibility schedule amended per asset alongside CDM's elections change (`cdmx.collateral.amendment`); D18 | `flow-agreement-amendment`: built (`CollateralControl.proposeAmendment` and `decideAmendment`, per-pair eligibility, gateway, service fold of the agreed amendments from CDM's sample IM CSA, console); MTA and haircut changes only | passes | `task-csa-amendment` | #27 |
| 5 | Margin call cancellation | no matrix row; only the ISO 20022 message names (colr.005/006, findings); CDM's generic `WorkflowStep` cancel only | Withdrawal of an unanswered call; request and acceptance or refusal after a response; `Cancelled` status, proposals voided, qualifiers (`cdmx.collateral.margincall`); a replacement call names the cancelled call (`IssueCallInstruction.replacesCall`, `ReplacementAllowed`); rules to be confirmed (`task-sme-call-cancellation-rules`) | `flow-call-cancellation`: built (`MarginCall.withdrawCall`, `requestCancellation` and `decideCancellation`, gateway, service, console). `flow-call-replacement`: built (`MarginCall.issueReplacementCall`, gateway, service, console) | both pass | `task-csa-call-cancellation`, `task-csa-call-replacement` | #28, #32 |
| 6 | Settlement netting | absent (0–2), no gap ID; "inside the transfer step when built" (CSA matrix); CDM has the election `netInterestWithMarginCalls` only | VM deliveries, VM returns and Interest Amounts due between two parties on one day in one currency netted to one transfer (`cdmx.collateral.netting`, `Create_SettlementNetting`); initial margin does not net; rules to be confirmed (`task-sme-settlement-netting-rules`) | `flow-settlement-netting`: built (`CollateralControl.settleNetted` and `stateInterestForNetting`, gateway, service, console) | passes | `task-csa-settlement-netting` | #35 |
| 7 | Collateral allocation and optimisation | absent (0): G34, P3; the pledgor chooses assets by hand | `AllocateCollateral` fills the agreed amount from eligible inventory in the pledgor's ranking order, last asset rounded up to whole units, no concentration limits (`cdmx.collateral.allocation`, `wp-adr-allocation-scope`); rules to be confirmed (`task-sme-allocation-ranking`) | `flow-allocation`: built (service `POST /api/v1/calls/{id}/allocation`, console "Suggest allocation" fills the proposal basket; no contract change) | passes | `task-csa-allocation` | #36 |
| 8 | Reconciliation | absent (0): G35; back in scope 2026-11-07 (business case §8 item 3) | `ReconcilePortfolios` matches the parties' trade snapshots by UTI on key terms and a valuation tolerance, with each party's exposure; `ReconcileWithLedger` compares a party's records with the ledger (`cdmx.collateral.reconciliation`, `wp-adr-reconciliation-scope`); rules to be confirmed (`task-sme-reconciliation-rules`) | `flow-reconciliation`: built (service `POST /api/v1/reconciliation/portfolio` and `/ledger`, snapshots exchanged service to service, snapshot and result hashes on the `PortfolioReconciliation` contract, console "Reconcile portfolios", "Reconcile with ledger" and "Dispute citing reconciliation"; the ledger check covers call status and amounts and the escrow by token, one escrow record per IM leg) | passes | `task-csa-reconciliation` | #37 |

Out of scope per the gap register and business case: ISDA SIMM calculation (G13, input only) and regulatory
reporting (G36).

## C. Other agreement families — after the CSA cycle

Rows are in build order (`nw-agreement-family-order`): repo and securities lending (P2) before triparty
and CCP (P3). Repo has one row per workflow, in the build order of `wp-adr-repo-gmra-scope` (proposed, 2026-11-07),
each with its own task under `task-repo-gmra-workflows`. Securities lending has one row per workflow, in the build
order of `wp-adr-securities-lending-gmsla-scope` (accepted 2026-11-11), each with its own task under
`task-securities-lending-gmsla-workflows`; the CDM check of 2026-11-11 is recorded in that task. Triparty has one row per
workflow, in the build order of `wp-adr-triparty-scope` (accepted 2026-11-11), each with its own task under
`task-triparty-workflows`; the CDM check of 2026-11-12 is recorded in that task. CCP lists
the workflows the analysis covers in the Workflow column until its scope is decided.

| # | Workflow | CDM status | `cdm-ext` | Prototype | Live spec | Task | PR |
|---|---|---|---|---|---|---|---|
| 1 | Repo (GMRA): agreement terms and their amendment | empty `GlobalMasterRepoAgreement` (R1, score 1: G20); no GMRA terms amendment (R2, score 0: G19) | `GmraTerms` (CDM `LegalAgreementBase`, Party1 and Party2, the Annex I elections) and `GmraTermsAmendment` with the changed elections, qualified `AgreementTermsChange` (`cdmx.collateral.gmra`, `wp-adr-repo-gmra-terms`) | `flow-repo-gmra-terms`: built (`CollateralControl.proposeTermsAmendment` and `decideTermsAmendment`, one terms hash chain per agreement kind and pair; gateway, service fold in `CdmGmra`, console "GMRA terms" card); MTA and default Margin Ratio changes only | passes | `task-repo-gmra-terms` | #44 |
| 2 | Repo (GMRA): purchase and repurchase settled delivery versus payment | Purchase Price and Repurchase Price computed (R6, score 3: no sample exercises it); repurchase transfer and term events usable (R10 score 4, R13 score 5). Found in the build: `InterestCashSettlementAmount` needs the payout's `calculationPeriodDates` and CDM's `CalculationPeriod` gives an empty period for a term repo; CDM's own repo sample fails 7.7.0 validation; `Create_BusinessEvent` leaves the Repurchase event's `closedState -> activityDate` empty | `RepoPurchaseQuantity`, `RepoPriceDifferential` (CDM's `FixedAmount` over the stated period), `RepoRepurchasePrice` and the `RepoSettlement` document (`cdmx.collateral.repo`, `wp-adr-repo-purchase-repurchase`) | `flow-repo-purchase-repurchase`: built (new `RepoSettlement` contract: book, affirm, and two instructions per phase that move both legs in one transaction; gateway, service `CdmRepo` with a business date, console "Repos" card); term repos, fixed rate; a movement of tMMF is complete only once its Repo ledger anchor is Complete and the transfer agent confirms it, and tMMF is taken only under a control agreement (`EligibleUnderControl`) Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the buyer's service refuses the affirmation unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-repo-purchase-repurchase`; `task-authoritative-record-other-flows`; `task-substitution-ledger-anchors`; `task-document-provenance` | #45 |
| 3 | Repo (GMRA): margin maintenance: Net Exposure and margin transfer | no Transaction or Net Exposure (R6, R7, R21: G12); margin ratio inverted (defect D2) | `cdmx.collateral.repo`: `RepoMarginRatio`, `RepoTransactionExposure`, `RepoNetExposure`, `RepoMarginCallAmount`, `RepoNetMarginInterest`; D2 corrected by `RepoPurchasePriceForMarketValue`, tests in `RepoMarginTest` | "Repo margin (GMRA)" card; service routes `/repo-margin`, `/repo-margin/calls`, `/repo-margin/interest`; GMRA calls settle by title transfer through `MarginCall` and the VM path | passes | `task-repo-margin-maintenance` | #46 |
| 4 | Repo (GMRA): repricing | usable (R8, score 5) except `Qualify_Reprice`, which cannot be true for a repo (D20); the new price is an input and no transfer is generated | new Purchase Price, cash difference and `RepoIsReprice` (`cdmx.collateral.repo`) | `flow-repo-reprice`: built (offer and agreement in the Repo margin card, one CDM reprice event and one settlement per purchased repo in `RepoSettlement`, gateway, service, console) | passes | `task-repo-reprice` | #47 |
| 5 | Repo (GMRA): adjustment | defective for a repo: `Create_AdjustmentPrimitiveInstruction` overwrites the cash quantity (D21) and `Qualify_Adjustment` cannot be true (D20); R8 scored it 5, usable as is; no transfer is generated | corrected instruction `RepoAdjustmentInstruction`, accrued Price Differential and `RepoIsAdjustment` (`cdmx.collateral.repo`) | `flow-repo-adjustment`: built (offer and agreement in the Repo margin card, one CDM adjustment event and one settlement per purchased repo in `RepoSettlement`, gateway, service, console) | passes | `task-repo-adjustment` | #48 |
| 6 | Repo (GMRA): substitution of purchased securities | R11 scored it 5, usable as is; the instruction is usable, but `Qualify_Substitution` cannot be true during the term and the lot keeps the old security as its observable (D22); CDM has no value check | substitute quantity `RepoSubstitutionQuantity` and `RepoIsSubstitution` (`cdmx.collateral.repo`) | `flow-repo-substitution`: built (request in the Repos card, agreement or refusal by the Buyer, one CDM substitution event and one settlement in `RepoSettlement`, gateway, service, console); a substitute Registered or Claim security needs a control agreement (`EligibleUnderControl`), and its movement completes once its ledger anchor is Complete and the record keeper confirms Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the buyer's service refuses to agree unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-repo-substitution`; `task-authoritative-record-other-flows`; `task-substitution-ledger-anchors`; `task-document-provenance` | #49 |
| 7 | Repo (GMRA): interest and manufactured income | R12 scored repo interest, rate change and interim payment 5; the interim payment is usable, and it records a transfer without changing the Repurchase Price; no function for GMRA paragraph 5 income. The rate change is not built | `RepoInterimInterestPaid` (deducted in `RepoPriceDifferential`), `RepoManufacturedIncome`, `RepoManufacturedIncomeAmount` (`cdmx.collateral.repo`) | `flow-repo-income`: built (interim interest and income entered by hand, agreed or refused in the Repos card, settled in tUSD by phases of `RepoSettlement`, gateway, service, console) | passes | `task-repo-income` | #50 |
| 8 | Repo (GMRA): roll | usable on the Repurchase Date (R13, score 5): `Create_RollPrimitiveInstruction` and `Qualify_Roll` work on the prototype's repo, and `Qualify_Roll` is false for a roll during the term; the closing leg carries the new termination date (D23, no effect on the trades) | none added; uses `RepoAccruedPriceDifferential` and `RepoRepurchasePrice` from earlier rows | `flow-repo-roll`: built (either party proposes the new Repurchase Date and rate in the Repos card, the other agrees or refuses, the Seller pays the Price Differential in tUSD by a phase of `RepoSettlement`, gateway, service, console) | passes | `task-repo-roll` | #52 |
| 9 | Repo (GMRA): pair-off | tag only, fails its own validation (R13; D24): `Create_PairOffInstruction` adds a package reference to each trade and settles nothing, and its instructions fail CDM's `Instruction` condition `NewTrade`, CDM's sample included; a trade event, not netting of collateral movements (R22) | the pair-off event without CDM's faulty instructions (`RepoPairOffEvent`, built on CDM's `Create_PackageExecutionDetails`), its qualifier `RepoIsPairOff`, and the net settlement of the paired repurchase legs (`RepoPairOffSettlement`, `RepoPairOffNetAmount`) in `cdmx.collateral.repo` (`wp-adr-repo-pair-off`, accepted 2026-11-11) | `flow-repo-pair-off`: built (on the common Repurchase Date either party proposes the pair-off of two offsetting purchased repos in the Repos card, the other agrees or refuses; both repos are repurchased in one transaction of `RepoSettlement`, no securities move, and the Seller of the repo with the higher Repurchase Price pays the difference in tUSD; gateway, service, console) | passes | `task-repo-pair-off` | #55 |
| 10 | Repo (GMRA): buy/sell-back | qualification only (R14, score 4: G33): `AssetPayout.tradeType` `BuySellBack` and `Qualify_BuySellBack` hold through every `CdmRepo` event; CDM has no buy/sell-back economics (income in the sell-back price) | `BuySellBackIncome`, `BuySellBackIncomeDeduction` (the income plus interest to the Repurchase Date, on CDM's `FixedAmount`), `BuySellBackSellBackPrice` and `RepoIsBuySellBack` in `cdmx.collateral.repo`; `RepoPairOffMatches` requires the same type and `RepoPairOffNetAmount` nets the Sell Back Prices (`wp-adr-repo-buy-sell-back`, accepted 2026-11-11) | `flow-repo-buy-sell-back`: built (a Repo / Buy/sell-back choice at booking, `bookBuySellBack` on `RepoSettlement`; agreed income moves no cash and lowers the Sell Back Price; no interim interest; a roll nets the deduction; pair-off only within one type; gateway, service, console) | passes | `task-repo-buy-sell-back` | #56 |
| 11 | Repo (GMRA): default and close-out (paragraph 10) | absent (R20 default and R23 close-out, score 0): CDM's termination event qualifies and carries no amount; no Event of Default, Default Market Value or netting; CDM's repurchase event fails `Qualify_Repurchase` (D25) | `GmraDefaultNotice`, `GmraCloseOutStatement` with `GmraDefaultRepurchasePrice` (to the Early Termination Date), `GmraDefaultMarketValue` and `GmraCloseOutNetAmount` in `cdmx.collateral.repo` (`wp-adr-repo-default-close-out`, accepted 2026-11-11) | `flow-repo-default-close-out`: built (the non-defaulting party notifies the default to the oracle, serves the Default Notice, and `closeOutDefault` on `RepoSettlement` closes out every purchased repo of the pair with CDM's termination event; margin held under GMRA calls included; no securities move; the payer pays one tUSD balance; gateway, service, console) | passes | `task-repo-default-close-out` | #58 |
| 12 | Securities lending (GMSLA): GMSLA agreement terms and their amendment | Usable as is (S1, scored 2): a `LegalAgreement` with `GlobalMasterSecuritiesLendingAgreement` elections (collateral, Base Currency, Events of Default) validates and round-trips; no amendment: `Create_AgreementTermsChange` returns nothing for a GMSLA (S2, score 2: G21); its agreement-type check skips master agreement elections (D28) | `GmslaTerms` (CDM's `LegalAgreement` as is, with `GmslaPrototypeElections`: minimum transfer amount per party and a default margin; condition `IsGmsla` covers D28) and `GmslaTermsAmendment` with the changed elections, qualified `AgreementTermsChange` (`cdmx.collateral.gmsla`, `wp-adr-gmsla-terms`, accepted 2026-11-11) | `flow-gmsla-terms`: built (`CollateralControl`'s terms hash chain under kind GMSLA, no contract change; service fold in `CdmGmsla`, console "GMSLA terms" card); notification time, MTA and default margin changes only | passes | `task-gmsla-terms` | #59 |
| 13 | Securities lending (GMSLA): securities loan delivery against collateral, and full and partial return | CDM's settlement workflows fail CDM validation on CDM's own samples, and `Create_Return` gives no instruction (S9, S13; D26). Checked 2026-11-11 on a loan in the prototype's shape: execution and returns built with `Create_BusinessEvent` pass CDM validation; the execution qualifies as `Execution`, a partial return as `PartialTermination`, a full return as `Termination` (and also `FullReturn` against non-cash collateral: D4); a return leaves the collateral unchanged | `cdmx.collateral.gmsla`: `GmslaLoan` (CDM's execution event and cdm-ext `GmslaLoanTerms`: margin, rebate or fee rate, optional term date), `GmslaLoanSettlement` (delivery or return, with CDM's return event and its qualification), `GmslaRequiredCollateral` (Market Value x margin, rounded up), `GmslaReturnCollateral` (pro rata, rounded down; all on a full return), `Qualify_GmslaReturn` (FullReturn or PartialReturn, resolving D4 for the prototype); `CdmLoan` reduces the collateral position after CDM's return event | `flow-gmsla-loan-delivery-return`: built (new `SecuritiesLoan` contract: the lender books, the borrower affirms, both instruct the delivery and each return, which swap securities and collateral atomically by title transfer; open loans; service `CdmLoan`, console "Securities loans (GMSLA)" card); a delivery or a return of tMMF is complete only once its SecuritiesLoan ledger anchor is Complete and the transfer agent confirms it (`flow-registered-collateral-gmsla`; local run 2026-11-22 on a reset chain); Registered or Claim collateral needs a control agreement (`EligibleUnderControl`) Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the lender's service refuses to book against that collateral unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-gmsla-loan-delivery-return`; `task-authoritative-record-other-flows`; `task-substitution-ledger-anchors`; `task-document-provenance` | #60 |
| 14 | Securities lending (GMSLA): marking to market and margin transfer | No marking calculation (S7, score 2: G12); aggregation is an election only (S23). Checked 2026-11-11 on the prototype's loans: `Create_ExposureFromTrades` lists the loans' positions with no aggregate value; `SecurityFinanceCashSettlementAmount` gives quantity × booked price × margin, with no price input and payer and receiver reversed (D29); a valuation instruction through `Create_BusinessEvent` passes validation, qualifies as `ValuationUpdate` and adds to the trade's valuation history | `cdmx.collateral.gmsla`: `GmslaMarkStatement` and `GmslaMarkedLoan` (each loan at the feed prices, the margin held, the net figure and the call), `GmslaLoanRequirement` (Market Value x margin at the price), `GmslaLoanCollateralValue` (no haircut), `GmslaLoanExposure`, `GmslaNetExposure` (both directions netted, less the margin held), `GmslaMarginCallAmount` (above the minimum transfer amount, rounded down); `IssueCallInstruction` carries the statement's hash (`markStatement`) | `flow-gmsla-marking`: built (no contract change: a GMSLA call is a VM call by title transfer whose IssueCall step names the GMSLA; service `CdmGmslaMark`, console "Securities lending marks (GMSLA)" card) | passes | `task-gmsla-marking` | #61 |
| 15 | Securities lending (GMSLA): recall of loaned securities | Terms only (S14, score 2: G18): `RecallProvision` and a `Recall` transfer type; no recall function or event; CDM issue #4213. Checked 2026-11-11 on the prototype's loans: a `RecallProvision` on the loan's `TerminationProvision` passes validation; a transfer of type `Recall` through `Create_BusinessEvent` passes validation and qualifies only as `SecurityTransfer`, the same as a transfer of type `Return`, adds to the transfer history, and leaves the loaned quantity and the trade open; CDM has no recall notice and no recall qualification | `cdmx.collateral.gmsla`: `GmslaRecallNotice` (quantity recalled, notice date, intended settlement date from the offset), `GmslaRecallWithdrawal`, `GmslaRecallSettlementDate` (CDM's `AddBusinessDays`, weekends skipped), `GmslaRecallOffset` (from the loan's CDM `RecallProvision`), `GmslaRecallOverdue`, `GmslaRecallRemaining`; new loans carry CDM's `RecallProvision` | `flow-gmsla-recall`: built (`SecuritiesLoan.recall` and `withdrawRecall`, a settled return reduces or clears the recall; new deployment; service `CdmRecall`, the recall column in the "Securities loans (GMSLA)" card) | passes | `task-gmsla-recall` | #62 |
| 16 | Securities lending (GMSLA): substitution of non-cash collateral | S10 scored it 4: `Create_SubstitutionPrimitiveInstruction` exists, with no securities lending sample; for repo it could not qualify during the term (D22). Checked 2026-11-11 on the prototype's loans: the instruction, with the loaned lot restated as its `priceQuantity`, passes validation, keeps the loan open with the loaned quantity and the `RecallProvision`, sets the new collateral, and moves the effective date to the substitution date; the lot keeps the loaned security; `Qualify_Substitution` is false on open and term loans alike (D22); no request, consent or value check | type `GmslaLoanSubstitution` and qualifier `GmslaIsSubstitution` (`cdmx.collateral.gmsla`) | `flow-gmsla-substitution`: built (`SecuritiesLoan.requestSubstitution`, `agreeSubstitution`, `refuseSubstitution`; test token tAGY for loan collateral only; borrower's request and lender's agreement or refusal in the Loans card; gateway, service, console); substitute Registered or Claim collateral needs a control agreement (`EligibleUnderControl`), and its movement completes once its ledger anchor is Complete and the record keeper confirms Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the lender's service refuses to agree unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-gmsla-substitution`; `task-authoritative-record-other-flows`; `task-substitution-ledger-anchors`; `task-document-provenance` | #63 |
| 17 | Securities lending (GMSLA): rebate on cash collateral | No rebate function (S12, score 2): `PriceSubTypeEnum.Rebate` only. Checked 2026-11-11 on the prototype's cash loan: `Create_SecurityLendingInvoice` gives no amount (D27) and `Create_BillingSummary` has no implementation; `FixedAmount` over the collateral's `InterestRatePayout` gives the rebate with the cash held as the notional; CDM's on-demand interest payment refuses a loan; a transfer of type `InterestReturn` through `Create_BusinessEvent` qualifies as `CashTransfer` | type `GmslaLoanInvoice` (with `GmslaInvoicePeriod` and `GmslaRateTypeEnum`) and function `GmslaInvoiceTotal` (`cdmx.collateral.gmsla`) | `flow-gmsla-rebate`: built (`SecuritiesLoan.bill`, `payBill`, `refuseBill` with the billed-through date; new deployment; service `CdmLoanInvoice`, the Rebate column in the Loans card; gateway, service, console) | passes | `task-gmsla-rebate` | #64 |
| 18 | Securities lending (GMSLA): lending fee on loans against non-cash collateral | CDM's invoice has no amounts on CDM's own sample (S11; defect D27). Checked 2026-11-11 on the prototype's loan against tUST: as booked, `Create_SecurityLendingInvoice` gives a record with no amount (D27); with a fee `InterestRatePayout` added to the trade's payout the trade validates and CDM bills price x shares x margin x rate x days/360 (42.50 on 100,000 tMMF at 1.00, margin 1.02, 0.5%, 30 days), with no asset, transfer type or summary on the result; `FixedAmount` on the market value gives 41.67; one price observation per record, no daily accrual | `GmslaLoanInvoice` of rate type `Fee` (the loaned security's `price`, each period's `quantity`, condition `FeePrice`) (`cdmx.collateral.gmsla`) | `flow-gmsla-lending-fee`: built (no contract change: row 17's `SecuritiesLoan.bill`, `payBill`, `refuseBill`; the lender bills, the borrower pays; service `CdmLoanInvoice.fee`, the Rate billing column in the Loans card) | passes | `task-gmsla-lending-fee` | #65 |
| 19 | Securities lending (GMSLA): default and close-out | Elections only (S19, S25, score 2: G15): `EventsOfDefault`, automatic early termination. Checked 2026-11-11 on the prototype's loans: CDM's termination event (`Create_TerminationInstruction`) passes validation and qualifies as `Termination` on cash and securities loans (and as `FullReturn` on a loan against securities), carries no amount and leaves the collateral position; `Qualify_GmslaReturn` gives nothing; the baseline GMSLA has automatic early termination not applicable for both parties; no Default Market Value, set-off or net balance | `GmslaDefaultNotice`, `GmslaCloseOutStatement` with `GmslaDefaultLoanValue` (the Default Market Value of the loaned securities, the collateral held, the rate accrued as a `GmslaLoanInvoice`), `GmslaDefaultHeldMargin`, `GmslaDefaultLoanAmount`, `GmslaCloseOutNetAmount` (`cdmx.collateral.gmsla`, reusing `GmraDefaultMarketValue`) | `flow-gmsla-default-close-out`: built (`SecuritiesLoan` takes the oracle and gains `serveDefaultNotice`, `closeOutDefault`, `payCloseOut` and the state `ClosedOut`; service `CdmLoanDefault`, console "Securities lending default (GMSLA)" card) | passes | `task-gmsla-default-close-out` | #65 |
| 20 | Triparty (GMRA repo): terms and the collateral profile | Terms: no triparty agreement type (T1, score 1); the agent as a party passes validation (T2). Profile: `EligibleCollateralSpecification` validates and `HaircutFor` gives its haircuts (T3, T4); concentration limits generic (T5) | `TripartyTerms` (`cdmx.collateral.triparty`): the giver, the receiver, the agent in CDM's `TripartyAgent` role, the GMRA terms hash and the profile as CDM's `EligibleCollateralSpecification`. CDM's `CheckCriteria` does not match the profile's ISIN criteria, so `ConcentrationLimitBreaches` cannot apply its limit (observation in the task) | `flow-triparty-terms`: built (new `TripartySettlement` contract: propose, affirm, refuse, terminate; BANK-T on the `bank-c` node with gateway 8203 and service 8003, `PARTY_ID=T`; service `CdmTriparty`; console "Triparty terms" card and the agent's console `#/live/T`) Since 2026-11-22 the giver may propose a profile with tMMF (`registeredCollateral`), when tMMF is eligible under a control agreement (`EligibleUnderControl`); `flow-registered-collateral-triparty`. | passes | `task-triparty-terms-profile`; `task-authoritative-record-other-flows` | #65 |
| 21 | Triparty (GMRA repo): trade start: allocation by the agent and DvP of the cash | Absent: no allocation by an agent (T7, score 0), no triparty delivery method in `DeliveryMethodEnum` (T9, score 0); the repo itself qualifies with a `TripartyAgent` party. Checked 2026-11-12 on the prototype's repo: an allocated triparty repo (the agent as a party, the profile as eligible collateral, one collateral position per allocated asset, each with its own quantity) passes validation and qualifies as a repurchase agreement; a repo with no collateral position fails `CollateralCollateralExists`, so the CDM trade follows the allocation; a `Basket` underlier does not load; the CSA allocation takes no concentration limit | `TripartyRepoRequest`, `TripartyDeposit`, `TripartyAllocation` and `AllocateTriparty` (`cdmx.collateral.triparty`): the agent's allocation in the giver's ranking within the profile's haircuts, each asset under a limit capped at its share of the Purchase Price, nothing allocated when the deposit cannot cover it; `TripartyConcentrationBreaches`, the per-ISIN check (local fix for D30) | `flow-triparty-trade-start`: built (`TripartySettlement`: deposits with the giver's rank, withdrawal of free collateral, request, affirmation, the agent's allocation, refusal, cancellation, and the purchase in one transaction against the allocation hash; service `CdmTriparty` request and allocation, the CDM repo with one collateral position per allocated asset and the `CdmRepo.collateralPositions` reader; console deposit, request, affirm, settle and withdraw in the terms card, allocate in `#/live/T`); a deposit of a Registered or Claim token needs a control agreement (`EligibleUnderControl`), the giver may add tMMF to the profile under the same condition, and the terms view reports the completion of each deposit and withdrawal of tMMF by the record keeper (`flow-registered-collateral-triparty`); a deposit or withdrawal carries no CDM document, so it has no ledger anchor and its transaction's finality stands in for one, while the other triparty movements use their Triparty anchor (project owner, 2026-11-22) Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the receiver's service refuses to settle against the allocation unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-triparty-trade-start`; `task-authoritative-record-other-flows`; `task-substitution-ledger-anchors`; `task-document-provenance` | #65 |
| 22 | Triparty (GMRA repo): daily revaluation by the agent, with top-up or release | Absent: no required collateral value from the agent (T6, score 0); haircuts generic (T4). Checked 2026-11-12 on the trade-start repo: CDM's valuation update (`Create_Valuation`) records the agent's collateral and trade valuations and qualifies (`Qualify_ValuationUpdate`), one amount per scope, no per-position values or haircuts, and needs `MarkToMarket` (the only source is `CentralCounterparty`); a changed collateral portfolio through `Create_SubstitutionInstruction` validates and keeps the repo a repurchase agreement, and neither `Qualify_Substitution` nor `Qualify_Adjustment` is true (D20, D22); passed the revaluation date, `Create_SubstitutionPrimitiveInstruction` restarts the accrual | `TripartyRevaluation`, `TripartyMovement`, `RevalueTriparty` and `TripartyRequiredValue` (`cdmx.collateral.triparty`): the Repurchase Price accrued to the date against the holding at the feed prices after haircuts, a top-up from the free account in the giver's ranking within the limits, a release from the lowest-ranked asset, nothing moved when uncovered, breaches recorded; `RepoIsCollateralTopUp` and `RepoIsCollateralRelease` tell a top-up and a release from a substitution | `flow-triparty-revaluation`: built (`TripartySettlement.revalue`: the new holding replaces the old in one transaction, each hash kept with its block; gateway reads of the repo, free account and feed prices at a block; service `CdmTriparty.revalue` with the valuation event and the qualified terms change, and the giver's and receiver's recomputation from the chain at the block before; console revalue in `#/live/T` and each revaluation with its check) | passes | `task-triparty-revaluation` | #65 |
| 23 | Triparty (GMRA repo): substitution by the agent | Data only (T8, score 2): `CollateralPortfolio` can hold a reallocated portfolio; the repo substitution event (R11) is instructed by the trade parties. Checked 2026-11-12 on the trade-start repo: a swap through `Create_SubstitutionInstruction` with the trade's own Purchase Date validates and keeps the Repurchase Price; `Qualify_Substitution` and `Qualify_Adjustment` are false (D20, D22); `EventIntentEnum` has no collateral substitution (`Reallocation` is for block trades); `Create_ProposedWorkflowStep` (the request, with the agent's `WorkflowStepApproval`) and `Create_AcceptedWorkflowStep` (the event) validate, the accepted step's `previousWorkflowStep` empty unless the proposed step carries a key | `TripartySubstitutionRequest`, `TripartySubstitution`, `SubstituteTriparty`, `TripartyLessUnits` (`cdmx.collateral.triparty`): the units asked back returned, then the holding topped up from the free account in the giver's ranking without the returned asset, within the limits, until it covers the Repurchase Price accrued to the date; declined when it cannot | `flow-triparty-substitution`: built (`TripartySettlement` `requestSubstitution`, `withdrawSubstitution`, `substitute`, `declineSubstitution` and one history of holding changes per repo, `changesOf`; service request, substitute, decline and the agent's own swap of an excess over a limit, with CDM's workflow steps; the giver's and receiver's recomputation from the chain at the block before; console recall in the giver's repo row, substitute and swap out in `#/live/T`) Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the agent's service refuses the substitution, checked for the receiver unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`). | passes | `task-triparty-substitution`; `task-document-provenance` | #65 |
| 24 | Triparty (GMRA repo): trade end: release of the collateral against repayment | Absent: no settlement through the agent (T9, score 0); the repurchase event is CDM's (row 3, defect D25). Checked 2026-11-12 on the trade-start repo and on it after a substitution: CDM's repurchase event validates and closes the trade as `Terminated`, `Qualify_Repurchase` and `Qualify_Termination` are false; the event zeroes the cash and leaves the collateral portfolio as it was, so the terminated trade still lists its collateral; one CDM `ScheduledTransfer` per held asset validates; `DeliveryMethodEnum` has nothing through an agent | `TripartyTradeEnd` and `TripartyReleaseCoversHolding` (`cdmx.collateral.triparty`): CDM's repurchase event over the repo as its last allocation, revaluation or substitution left it, one `ScheduledTransfer` per held asset from the receiver to the giver and the Repurchase Price from the giver to the receiver, all on the Repurchase Date; conditions that the release is the collateral portfolio unit for unit and the cash moves against it | `flow-triparty-trade-end`: built (`TripartySettlement` `prepareTradeEnd` (the agent, on the Repurchase Date, no substitution pending) and `settleRepurchase` (the giver: the Repurchase Price to the receiver and the holding to its free account in one transaction; the repo ends `repurchased`); the giver's and receiver's rebuild from the chain at the block before; console prepare in `#/live/T`, settle in the giver's repo row; the spec also ends the other settled repos under the terms and terminates them) | passes | `task-triparty-trade-end` | #65 |
| 25 | Triparty (GMRA repo): the triparty agent's report to both parties | Absent: no report or reconciliation by an agent (T12, score 0); `CollateralStatusEnum` and `CollateralBalance` hold positions as data (T10). Checked 2026-11-12 on the trade-start repo: the repo's `CollateralPortfolio` with an identifier, each position `SettledAmount` with its haircut as `treatment`, and `CollateralBalance` rows after and before haircuts from the giver to the receiver validates; `FullAmount` is refused on a position; the giver's free collateral fits a portfolio without a balance (a balance needs a payer and a receiver) | `TripartyReport` and `TripartyRepoReport` (`cdmx.collateral.triparty`): per settled repo the exposure (the Repurchase Price accrued to the date), each held asset valued after haircuts, the coverage and breaches, and CDM's `CollateralPortfolio` of the holding (positions `SettledAmount` with their haircuts, balances after and before haircuts from the giver to the receiver); the giver's free collateral as a portfolio without a balance; to `wp-adr-triparty-reporting` (proposed, awaiting review) | `flow-triparty-reporting`: built (`TripartySettlement` `recordReport` and `reportsOf`; gateway read of the terms at a block; service report, and the giver's and receiver's rebuild from the chain at the block before; console `Send report` in `#/live/T` and the latest report with its check in each terms card) | passes | `task-triparty-reporting` | #65 |
| 26 | CCP (GMRA repo, `wp-adr-ccp-scope`): membership and rules: BANK-C, its rulebook, the members' default fund contributions | Absent: no CCP agreement type in `LegalAgreementTypeEnum`, no default fund (G23); `PartyRoleEnum.ClearingOrganization` names the CCP. Checked 2026-11-12: CDM's `LegalAgreementBase` of type `Other` validates for a CCP–member agreement; its `contractualParty` is `(2..2)`, so one agreement cannot name the CCP and both members; CDM's `LegalAgreement` needs `agreementTerms`, which have no CCP rulebook terms | `CcpRulebook` and `CcpMember` (`cdmx.collateral.ccp`): the CCP in the `ClearingOrganization` role; each member's `LegalAgreementBase` (type `Other`, "CCP rulebook") with the CCP and the member as its two contractual parties, and its default fund share; the IM rate (5%), the variation margin period (1 day), the default fund (1,000,000 USD) and the CCP's capital (250,000 USD); conditions that the shares make the fund, the members are distinct and not the CCP, each agreement names both, and every amount is in the base currency | `flow-ccp-membership`: built (fifth Besu node `ccp` for BANK-C, gateway 8204, service 8004 `PARTY_ID=C`; `CcpClearing` `publishRulebook` (the hash, the members and shares, and the capital in one transaction), `join` (affirm the hash and pay the share; in effect once all have paid), `leave` (no cleared repo; the share back); the members' rebuild of the rulebook; console `#/live/C` publishes, and the CCP card in `#/live/A` and `#/live/B` joins and leaves) | passes | `task-ccp-membership` | #66 |
| 27 | CCP: clearing of a bilateral repo by novation to BANK-C | Partial (G23): CDM's clearing event validates and qualifies. Checked 2026-11-12: a split with intent `Clearing` in three branches (a party change of `Party2` and of `Party1` to BANK-C, each adding its `ClearingOrganization` role, and a quantity change to zero that closes the bilateral trade as `Terminated`), keyed by `GlobalKeyProcessStep`, validates and `Qualify_ClearedTrade` is true (two branches close nothing and give false); the new trades give their Purchase Price only once reloaded from JSON with references resolved; the `Seller` and `Buyer` party roles carry over unchanged. CDM has no record tying the clearing to a CCP rulebook | `CcpNovation` (`cdmx.collateral.ccp`): the rulebook hash, the bilateral trade hash, BANK-C in the `ClearingOrganization` role and CDM's clearing event; conditions that the intent is `Clearing`, `Qualify_ClearedTrade` holds, and BANK-C is a party to both open trades (function `CcpTradesWithoutTheCcp`) | `flow-ccp-clearing`: built (`RepoSettlement` `Novated` state and `novate`, callable only by `CcpClearing`; `CcpClearing` `submitClearing` (the seller), `affirmClearing` (the buyer), `acceptClearing` (BANK-C: rulebook in effect, both members paid) or `refuseClearing`, and `instructCleared` (each member its own leg's cdm-ext `RepoSettlement` document; the second instruction moves the securities and the cash between the members, BANK-C nets to zero; the repurchase lowers the cleared-repo counts); the buyer's rebuild from its booking and BANK-C's from the trade the event carries; the clearing section of the CCP card in `#/live/A`, `#/live/B` and `#/live/C`) Provenance gate (2026-11-22): for tUST or tMMF (`provenanceRequired`) the CCP's service refuses to accept the repo for clearing unless the token's provenance path for a pledge to it is complete (`ProvenanceLive.refusal`); margin and default fund payments are in tUSD, which is not marked. | passes | `task-ccp-clearing`; `task-document-provenance` | #66 |
| 28 | CCP: daily variation margin and initial margin | Partial (G23): `MarginCallIssuance` from the CCP under an `Other` agreement validates; no CCP margin model (ISDA SIMM only). Checked 2026-11-13: a call with `RegMarginTypeEnum` `VM` for variation margin and one with `NonRegIM` for initial margin validate under `callAgreementType` `Other` ("CCP rulebook"); `RepoTransactionExposure` gives a cleared leg's GMRA Transaction Exposure, the same on both legs. CDM has no record of a member's margin over its cleared trades | `CcpVariationMarginLine` and `CcpMarginStatement` (`cdmx.collateral.ccp`): a line per cleared repo (exposure at the Margin Ratio, rounded, less the variation margin paid, from the seller's side; none once repurchased), the initial margin at the rulebook's rate of the open repos' Purchase Prices less what is held, the net, and CDM's `VM` and `NonRegIM` calls exactly when the member pays them (functions `CcpRepoExposure`, `CcpMemberVariationMargin`, `CcpInitialMarginRequired`, `CcpCallCount`, `CcpCallAmount`) | `flow-ccp-margin`: built (`CcpClearing` `issueMargin` (BANK-C, a round per business date: each member's statement hash, variation and initial margin, each repo's change), `payMargin` (a member that owes; the last payment settles the round and pays those owed), `cancelMarginRound` (a member in the round in default), `vmBalance` per repo; variation margin passes between the members, initial margin stays in `CcpClearing` and blocks leaving; each member's rebuild of its statement from the chain and the feed; the margin section of the CCP card in `#/live/A`, `#/live/B` and `#/live/C`) | passes | `task-ccp-margin` | #66 |
| 29 | CCP: member default: close-out and the default fund waterfall | Absent (G23): no member default, auction, waterfall or default fund. Checked 2026-11-13: each leg closes out with the GMRA default values of row 11 (`GmraDefaultTransactionValue`, CDM's termination event), the same on both legs; CDM's `Min` gives each waterfall layer | `CcpDefaultTransaction`, `CcpWaterfall` and `CcpDefaultManagement` (`cdmx.collateral.ccp`): each of the defaulter's cleared repos closed out at the oracle's price, the residual after the variation margin paid and the survivor's amount; the waterfall over the loss in the rulebook's order (the defaulter's IM, its contribution, the CCP's capital, the other members' contributions) and what is returned to the defaulter (functions `CcpWaterfallLayer`, `CcpTransactionsWithoutTheDefaulter`) | `flow-ccp-default`: built (`CcpClearing` `closeOutDefault` (BANK-C, the member in default on the oracle: the repos `ClosedOut`, the waterfall, the survivors owed and the defaulter paid, what survivors owe recorded; the defaulter no longer paid), `payDefaultDue`, each member's `contributed`; BANK-C's service records the default on the oracle and cancels an open round; each member's rebuild from the novations and the chain; the member default section of the CCP card) | passes | `task-ccp-default` | #66 |
| 30 | CCP: porting a cleared repo from one member to another | Partial (G23): a party change with the `Novation` intent validates; `Qualify_Novation` is false. Checked 2026-11-13: the party change of one cleared leg's counterparty to the receiving member, keyed by `GlobalKeyProcessStep`, validates and gives the new leg with the receiving member and BANK-C; `Qualify_Novation` stays false. CDM has no record of a member's admission to a CCP | `CcpAdmission` (the rulebook hash, the CCP and the admitted member's `CcpMember`) and `CcpPorting` (`cdmx.collateral.ccp`): the repo, the two members and the leg, CDM's party change with intent `Novation`, and the payment at the oracle's price (for the seller the Market Value less the accrued Repurchase Price plus the variation margin paid; for the buyer the accrued Repurchase Price less the variation margin received); conditions that the receiving member is on the one open leg | `flow-ccp-porting`: built (`CcpClearing` `admitMember` (BANK-C admits BANK-T to the rulebook in effect), `requestPorting` (a party to a purchased repo), `acceptPorting` (the receiving member), `approvePorting` (BANK-C: the payment and a buyer's securities move, the receiving member becomes the leg's party) or `refusePorting`; each party's rebuild from the novation's leg and the feed, and instruction from the new leg; admit in `#/live/C`, the CCP card in `#/live/T`, the porting steps of a clearing row) | passes | `task-ccp-porting` | #66 |

## Cross-cutting

- `task-onchain-privacy`: what each participant must not see of other parties' calls, pledges and disputes.
- `task-collateral-service-unit-tests`: `services/collateral` has no unit tests.
- `task-live-spec-balance-aware-amounts`: live specs drain the pledgor's balances on a persistent chain.
- `task-live-spec-node-read-after-write`: a service reads a counterparty's new record before its own node has the block (`flow-settlement-netting`, once).

## Gaps with no workflow row

Every gap in the register appears in a row above or in this table, with the reason it has no row of its own. The
reasons were accepted by the project owner on 2026-11-10 (source
`76b1272797c0e7a3814ebe05fbcfcd8223578c22`); G26 is deferred by the project owner's decision
`nw-defer-message-standard-mapping`.

| Gap | Register status | Why no row |
|---|---|---|
| G24 | closed: `cdmx.collateral.ledger` `TokenizedAsset` | Applies to every flow that moves a token (tUST, tMMF, tUSD), so no single workflow owns it. |
| G25 | closed: `LedgerAnchor`, built by the collateral service (`CdmAnchors`) | Applies to every flow: the service anchors each folded step and the live specs check both parties' anchors. |
| G29 | closed (proposed, for review): 120 tests in 12 classes (2026-11-04; 329 `@Test` methods in `cdm-ext` at `v0.2-demo`) | Tests ship with every extension, in each row's `cdm-ext` work. |
| G39 | closed: Java toolchain (`wp-adr-java-cdm-stack`) | Applies to every extension and every flow. |
| G40 | open, P3 | No flow depends on it: no aircraft or other physical-asset token is deployed, since CDM 7.7.0 has no asset type for one. The aircraft case exists as provenance fixtures only (`ProvenanceAircraftTest`); whether non-financial collateral is modelled waits on REG-6 to REG-10. Reason accepted by the project owner on 2026-11-22 (`task-v02-demo-release-summary`). |
| G41 | partial, P2 (2026-11-22) | Applies to every flow that takes tUST or tMMF as collateral, through the provenance gate at the receiving party's step (rows A2, B2, C2, C6, C13, C16, C21, C23, C27), so no single workflow owns it; `task-document-provenance`, live spec `flow-provenance`. Reason accepted by the project owner on 2026-11-22 (`task-v02-demo-release-summary`). |
| G26 | open, P2; **deferred** (`nw-defer-message-standard-mapping`, project owner, 2026-11-10) | **Deferred.** A mapping between CDM and ISO 20022 `colr` or FpML collateral messages. The first goal is a proof of concept of CDM over Besu; mapping from a message standard to CDM is important, even critical, but trivial. The prototype's parties exchange CDM documents (`wp-adr-cdm-payload-carrier`); this is the simplification stated under `nw-mimic-real-flows`. Business case criterion S8 is deferred with it. |
| G30 | open, P2 | Not hit by the prototype (accepted by the project owner, 2026-11-10). D7: CDM's `Qualify_RepurchaseAgreement` requires one `InterestRatePayout` only. Checked 2026-11-10 with a temporary test over the collateral service's repo events (`CdmRepo`: book, interim interest once and twice, reprice, adjust, substitute, roll, interim interest then roll): every resulting trade has one payout, an `InterestRatePayout`, and qualifies as a repo. CDM's on-demand interest payment records a transfer in the trade's transfer history and adds no payout leg, so the defect register's inference that it may fail qualification does not hold for these trades. D13 concerns CDM's own event samples, which the prototype does not read. Row C9 (pair-off), checked 2026-11-10 over CDM's pair-off of two offsetting `CdmRepo` repos: each trade keeps one `InterestRatePayout` and qualifies as a repo; the same holds for the `cdm-ext` pair-off event `RepoPairOffEvent` (test `PairOffTest.eachPairedTradeStillQualifiesAsARepoWithOnePayoutGapG30`, 2026-11-10). Row C10 (buy/sell-back, through `Qualify_BuySellBack`, which has the same one-payout rule), checked 2026-11-11 with a temporary test over a `CdmRepo` trade with `AssetPayout.tradeType` `BuySellBack` and every `CdmRepo` event (book, the buyer's check, repurchase, reprice, adjust, substitute, interim interest, roll, pair-off): every resulting trade is valid, keeps one `InterestRatePayout` and the trade type, qualifies as a buy/sell-back and not as a repo. |
| G27 | open, P3 | Tracked in the register only (accepted by the project owner, 2026-11-10): a mapping between asset taxonomies, P3, so no built flow depends on it (register). The mapping starts from `collateral-asset-taxonomy-mapping.md`. |
| G28 | open, P3 | Tracked in the register only (accepted by the project owner, 2026-11-10): regulatory and reference-data references; the register lists no flow that needs them. |
| G31 | open, P3 | Not hit by the prototype; tracked in the register only (accepted by the project owner, 2026-11-10). D3 and D6 are in CDM's repo sample `functions/repo-and-bond/repo-execution-func-input.json` and its documentation page. Checked 2026-11-10: the prototype reads three CDM samples, none of them that one: the 2018 NY law IM CSA (`CdmAgreement`, validated when loaded) and two FpML-ingested rates swaps (`CdmReconciliation`). `CdmRepo` builds its execution in the shape of the repo sample but without its faults: `collateralType` NonCash, `collateralCriteria` and `isIncluded` set (D6), and the Margin Ratio as `marginPercentage`, 1.02 in the tests (D3); every booking event is validated (`CdmRepo` line 172). `CdmAgreementTest`, `CdmReconciliationTest` and `CdmRepoTest` pass (33 tests). |
| G32 | open, P3 | Misspellings in CDM; renaming needs a CDM change, so no local closure exists (register: "note only"). |
