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

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:

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:

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