Skip to content

reorg ledger model docs - #1628

Merged
miller-da merged 1 commit into
mainfrom
proposed-ledger-model
Nov 24, 2026
Merged

miller-da merged 1 commit into
mainfrom
proposed-ledger-model

Conversation

@miller-da

Copy link
Copy Markdown
Contributor

Proposed revision of Ledger Model documentation.
Removes deprecated content that had been migrated from RST Sphinx documentation.
Groups Ledger Model documentation into submenu items rather than one super file.

@miller-da miller-da added the documentation Improvements or additions to documentation label Sep 11, 2026
@mintlify

mintlify Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
cantonfoundation 🟢 Ready View Preview Nov 24, 2026, 2:19 AM

💡 Tip: Enable Automations to automatically generate PRs for you.

Comment on lines +6 to +11
import LedgerModelSimpleAssetASSET from '/snippets/daml-docs/ledger-model_SimpleAsset_ASSET.mdx';
import LedgerModelSimpleDvPDVP from '/snippets/daml-docs/ledger-model_SimpleDvP_DVP.mdx';
import LedgerModelSimpleDvPPROPOSAL from '/snippets/daml-docs/ledger-model_SimpleDvP_PROPOSAL.mdx';
import LedgerModelSimpleDvPSCRIPT from '/snippets/daml-docs/ledger-model_SimpleDvP_SCRIPT.mdx';
import LedgerModelSimpleDvPACCEPTANDSETTLE from '/snippets/daml-docs/ledger-model_SimpleDvP_ACCEPT_AND_SETTLE.mdx';
import LedgerModelSimpleDvPACCEPTTHENSETTLE from '/snippets/daml-docs/ledger-model_SimpleDvP_ACCEPT_THEN_SETTLE.mdx';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These snippets are not checked any more for syntactic correctness. In the old setup, they were extracted from a Daml file that was run through the Daml compiler in CI. How are these snippets supposed to be tested?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The snippets are copies of the marked sections of SimpleAsset.daml/SimpleDvP.daml, which ledger-model-daml-test still compiles in daml CI. All 15 of the snippets match today, but they aren't registered in cf-docs's snippet manifest, so they won't pick up source changes automatically. I'll register them in a follow-up so they're regenerated from the tested Daml files.


{/* COPIED_START source="docs-website:docs/replicated/daml/3.5/overview/explanations/ledger-model/ledger-structure.rst" hash="a180a0ec" */}

## Running workflow example

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section at the same level as the previous doesn't make much sense. I'd suggest to use the following structure:

  • Running example
    • Templates
    • Workflow

where the currently under Running example goes into Templates and the content of Running workflow example goes into Workflow.


{/* https://lucid.app/lucidchart/fdcc5894-e013-499e-ba85-de16300381a8/edit */}

<img src="/images/docs_website/dvp-propose-accept-and-settle-action.svg" className="align-center" style={{width: "100.0%"}} alt="The accept-and-settle action on Alice's ProposeSimpleDvP exercised by Bob." />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as #1628 (comment)

Those parties are called the **requesters** of the commit.
In Daml Script, the requesters correspond to the `actAs` parties given to the `submit` commands.

<Note>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit unfortunate that definition blocks are rendered the same way as a plain note with an exclamation mark. Is there some chance that a custom block type with a different visual representation could be used?

Comment on lines +389 to +391
<LedgerModelSimpleDvPSCRIPT />

<LedgerModelSimpleDvPACCEPTANDSETTLE />

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These two snippets should be integrated into a single one. Just concatenate both.

@andreaslochbihler-da andreaslochbihler-da left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @miller-da . This looks very nice. I've left a bunch of mostly mark-up suggestions on the main pages of the ledger model.

@meiersi-da additionally used Claude to compare the new pages against what's in the Daml repo, with the following findings:

  • Typos: “A Fetch action as a Fetch node” (daml #23354 fixes it to “has”). The PR also brings back .rst typos that cf-docs had corrected: “forth” instead of “fourth”, and “looks like” instead of “look like” (twice).

  • Stale link: shared/research.mdx still links to /overview/reference/ledger-model-detailed. It works only through the redirect.

Moreover, the .rst files in the Daml repo have meanwhile been updated for non-unique contract keys. These edits will have to be incorporated into the ledger model docs, but probably only in a subsequent PR.

@paulbrauner-da

Copy link
Copy Markdown
Contributor

Moreover, the .rst files in the Daml repo have meanwhile been updated for non-unique contract keys. These edits will have to be incorporated into the ledger model docs, but probably only in a subsequent PR.

They haven't because I have yet to address this comment. But if that would help, I could merge the PR and address the comment in a sub-sequent PR.

@paulbrauner-da

Copy link
Copy Markdown
Contributor

Moreover, the .rst files in the Daml repo have meanwhile been updated for non-unique contract keys. These edits will have to be incorporated into the ledger model docs, but probably only in a subsequent PR.

They haven't because I have yet to address this comment. But if that would help, I could merge the PR and address the comment in a sub-sequent PR.

Let's just merge this PR as is and I'll use the help of an llm to port my changes to this repo.

Signed-off-by: miller-da <jpz.miller@pm.me>
@miller-da
miller-da force-pushed the proposed-ledger-model branch from 8169cf0 to e67c34b Compare November 24, 2026 02:18
@miller-da
miller-da marked this pull request as ready for review November 24, 2026 02:29
@miller-da
miller-da merged commit 9a630fb into main Nov 24, 2026
4 checks passed
@miller-da
miller-da deleted the proposed-ledger-model branch November 24, 2026 02:30

This branch was successfully deployed

1 active deployment
staging - docs-main — e67c34bf Deployed Nov 24, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants