Skip to content
CCPEDIAby Unity Nodes

RFP 22: dpm-disclose, a CI check on which parties can see each Daml contract, seeking a Tech & Ops champion

1 posts82 viewsLast activity 6d ago

  1. solokingOP

    Hi all, I’m Maheswaran, an independent developer in the Daml Language &
    Developer Tooling SIG.

    Who can see a Daml contract is decided by the signatory, observer,
    controller and choice observer clauses on each template. Nothing in the
    toolchain reports that set or fails a build when it grows. Adding one
    observer broker line to a Trade template gives the broker the notional
    on every trade, and on every consuming choice too. In review it looks
    like a field addition.

    dpm-disclose works out that set for every template and choice in a
    package, checks it against a disclosure.yaml the team writes, and exits
    non-zero when a new version widens it. The prototype has been public
    since August: GitHub - soloking1412/dpm-disclose: Works out which parties can see a Daml contract, and fails the build when that set gets wider · GitHub

    I ran it over 415 templates in Splice, Daml Finance and the OpenZeppelin
    Canton packages, with each package pinned to a commit and the script
    included, so anyone can run it again:

    File soloking1412/dpm-disclose

    docs/2026-08-public-package-sweep.md

    # Running disclose over six public Daml packages
    
    August 2026.
    
    I pointed the tool at every public Daml package I could find and recorded what
    it could and could not work out. The purpose was to find out where source level
    analysis stops being useful, not to audit anyone's code.
    
    Nothing here is a privacy defect in someone else's package. Where a template
    discloses to a lot of parties that is usually because it is meant to. What is
    reported below is how much of the disclosure picture is visible from source, and
    what it would take to see the rest.
    
    ## What was run
    
    ```
    disclose report <repo> --json
    ```
    
    | Package | Commit |
    
    This file has been truncated. show original

    It resolves 84% of nodes from source today. Most of what it misses goes
    through one Daml Finance helper, and three Splice templates resolve to
    no party at all because the tool can’t yet follow a function call.

    The proposal is PR #1074:

    Pull request canton-foundation/canton-dev-fund

    Proposal: dpm-disclose, disclosure analysis and upgrade gate for Daml packages (RFP 22) (#1074)

    main ← soloking1412:rfp22-disclosure-analysis
    opened 06:39PM - 23 Nov 26 UTC

    ## Development Fund Proposal Submission **Proposal file:** [rfps/security-ass…

    It moves the tool to Daml-LF so it runs on a .dar with no source, and
    ships it as a dpm component with a GitHub Action. 200,000 CC over 12
    weeks, with half paid only when teams outside the project run it in CI.

    Witness (PR #946) covers what dpm test runs disclose, including
    divulgence. This covers every template and choice with no tests, so on
    the same package the two should agree on signatories and observers.

    Three asks:

    • A Tech & Ops champion.
    • Teams who want to try it on their own package. Send me a package and
      I’ll run it and send you the report. If it’s useful, a comment on the
      PR helps a lot.
    • Anyone who thinks the informee rules are wrong. They’re in analyse()
      in src/disclose/ledger.py, about twenty lines.

    Thanks,
    Maheswaran Velmurugan