SettleFlow as a reusable coordination layer on top of Daml Finance / FinLib

I’ve been thinking about where a project like SettleFlow fits relative to the existing Daml Finance / FinLib stack.

FinLib already provides a lot of the important settlement building blocks: asset deposits, asset transfers, DvP templates, lifecycle handling, allocation helpers, and settlement triggers. In that sense, it covers much of the mechanics of settlement.

But FinLib also explicitly leaves one part open: how a DvP gets instructed is often bespoke to the use case. That seems like the gap SettleFlow is aiming at.

My current understanding is that SettleFlow is not trying to replace FinLib or invent a new primitive. It looks more like a reusable workflow layer that sits above those building blocks and handles the coordination that applications still need to implement:

  • trade proposal / instruction flow
  • multi-party authorization collection
  • leg matching and readiness tracking
  • execute / cancel / withdraw lifecycle
  • audit-friendly workflow state

If that’s right, then SettleFlow is less about settlement primitives and more about making settlement workflows reusable across applications that otherwise end up rebuilding the same orchestration logic in different ways.

Curious how others think about this:

  • Do you see this as a useful reusable layer?
  • Or is this something most teams would just implement directly on top of FinLib / Canton primitives?
  • Where do you think the line is between a helpful reference implementation and a real infrastructure layer?

A reusable layer could help, but the baseline matters. Legacy FinLib omits bespoke DvP instruction logic. Daml Finance’s Settlement.V4 creates instructions from routed steps and supports allocation/approval and atomic batch execution. Where does SettleFlow sit relative to trade agreement and initiation?

Daml Finance’s settlement time is not enforced. CIP-56 includes allocation and settlement deadlines, but explicitly leaves responses to missed deadlines: including retries and penalties to applications. SettleFlow could potentially standardize those policies.

For infrastructure readiness, I’d look for a stable interface, tested authorization/cancellation behaviour and reuse across independent applications. A reference package could be valuable while that evidence develops.

Since Daml Finance is no longer actively maintained, supported SDK, Canton and package versions should be explicit. Could you share the repository and an integration example showing which existing choices SettleFlow composes?

Hi :waving_hand: Georgi Radev,

Thank you, this is the most useful feedback we have had. I read your links and the Daml Finance docs, and here is where we stand.

Baseline. Daml Finance Settlement V4 already covers a lot: a factory creates a Batch and per-step Instructions from routed steps; each Instruction needs the sender’s allocation and the receiver’s approval; a settler executes the Batch atomically; the requestors can cancel it; and consenters collect consent at creation. CIP-0056 covers allocations, settlement deadlines and the DvP flow that wallets and registries implement. We are not trying to replace either. Daml Finance’s README says it is not actively maintained, so we will use it only as a comparison baseline and take no runtime dependency on it.

Where SettleFlow sits. In CIP-0056’s terms, it is the settlement app: the part before and around the atomic step. That means agreement and initiation (propose, accept, optional M-of-N approval), creating the allocation requests, tracking readiness, and triggering the standard’s settlement. It will not touch keys, topology or participant admin APIs, and each party signs its own steps.

What we think is actually missing. Your point on deadlines is the clearest gap. CIP-0056 gives allocations and settlements deadlines but leaves the response to a missed one (retries, penalties) to applications, and Daml Finance’s settlement time is an optional indicator that is not enforced. We will build a configurable policy: cancel, extend, or roll into a new settlement, with a record of which party failed, and any penalty only as an explicit optional hook. Beyond that, we are testing whether threshold (M-of-N) approval and auditor receipts without amounts add anything. We have not seen either in the libraries above, but we will not claim them until a side-by-side shows it.

Readiness. Agreed on all three criteria. Our plan is a documented, versioned interface; tests of authorization and cancellation behaviour, with a failing test first for each defect reported in our current code; and use by at least two independent applications before we call it infrastructure. Until then it is a reference package.

Versions. We will publish the supported Daml SDK, Canton, Splice token standard and CIP-0112 package versions and run a CI matrix over them.

Repository and example. GitHub - BikkoFarms/SettleFlow · GitHub (Apache-2.0). To be straightforward: today the code uses its own allocation and settlement logic on mock tokens and a simulated demo, so it does not yet compose the standard’s choices. The integration example you asked for is our next step: a 3-party DvP on a LocalNet using real allocations, composing AllocationRequest, AllocationFactory_Allocate, Allocation_ExecuteTransfer or SettlementFactory_SettleBatch, and Allocation_Cancel / Allocation_Withdraw, together with a side-by-side against raw CIP-56 and Daml Finance. We will post the working example in this thread when it runs.

If anyone has built the approval or missed-deadline step themselves, we would love to hear what you did and what hurt.