Skip to content

canton: condense verbose module/choice doc comments#43

Closed
bengtlofgren wants to merge 1 commit into
fix/canton-fee-guardiangovernance-pinfrom
docs/canton-core-comment-density
Closed

canton: condense verbose module/choice doc comments#43
bengtlofgren wants to merge 1 commit into
fix/canton-fee-guardiangovernance-pinfrom
docs/canton-core-comment-density

Conversation

@bengtlofgren

Copy link
Copy Markdown

Summary

Judgment calls worth a second look

  • In GetGuardianGovernance's doc comment, dropped the incidental "...and an attacker guardian set" clause describing a forged CoreState -- the security point (gg is unforgeable) is preserved, just flagging the specific phrasing changed.
  • Treated CoreState's trailing field comments as fair game to tighten, not just the leading -- | block docs -- if you'd rather those stay verbatim, easy to revert just those hunks.
  • Left Governance.daml, VAA.daml, GuardianSet.daml, and README §10/§4.6 untouched -- already tight or judged too load-bearing/fact-dense to compress further without risk.

Test plan

  • Verified every changed line is either a full comment line or a trailing comment on an otherwise-unchanged code line (git diff filtered for non-comment changes: none found)
  • dpm build clean on both packages
  • dpm test: 44/44 passing

https://claude.ai/code/session_01VFr5RtBKysvjdRN2nKmhMV

Comment-only pass across canton/core and canton/test: the module and
choice-level doc comments had grown into multi-paragraph essays with
ALL-CAPS section labels and repeated restatements of the same point. Tighten
them to a sentence or short paragraph per fact, dropping narrative padding
while keeping every load-bearing invariant, security rationale, and
cross-reference intact (verified: every changed line is either a full
comment line or a trailing comment on an otherwise-unchanged code line).

Claude-Session: https://claude.ai/code/session_01VFr5RtBKysvjdRN2nKmhMV
@bengtlofgren
bengtlofgren requested a review from evan-gray as a code owner July 16, 2026 10:12
@bengtlofgren
bengtlofgren deleted the branch fix/canton-fee-guardiangovernance-pin July 16, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant