Skip to content

docs(adr): follow-up #558 — split dense paragraph, fully-qualify setShares - #559

Merged
alpergundogdu merged 1 commit into
mainfrom
adr-547-followup-density-fixes
May 14, 2026
Merged

alpergundogdu merged 1 commit into
mainfrom
adr-547-followup-density-fixes

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Follow-up to #558. Addresses two post-merge review comments that arrived after the squash-merge landed.

Out of scope here

The third bot comment — cross-table consistency between §6's new Tests / local dev | Network deployment headers and §§1–5, 7–9's existing PoC | Production headers — is intentionally not addressed:

  • §§1–5 (cache backend, gossip, etc.) retain real PoC-vs-production distinctions where backends, fixtures, and parameters genuinely differ across the two modes. The original headers stay valid.
  • §§7–9 (VotingEscrowReader, SafetyReservePayout, SwapHelper) carry the same "production from day one" applicability as §6 and could be relabelled in a separate pass. Filing as separate work avoids scope creep here.

Re #557

#557 also got a late bot comment asking to drop the delegated-voucher-signer (previously #190) reference as "historical narrative." Deliberately keeping that reference: the appendix section it lives in is literally titled What this runbook does not cover, and enumerating what is out of scope is the point of the section. Removing the line would leave readers wondering whether delegated voucher signers are supported. No follow-up PR for #557.

…tShares

Two post-merge review items from #558:

- ADR 003 § Settlement sequence: the four-clause paragraph introduced
  by #558 is split into two paragraphs at the natural boundary between
  scope statement and launch-configuration discussion.

- appendix-poc-production-seams.md §6 table cell: `setShares` →
  `FeeRouter.setShares(...)` for consistency with the ADR 003 prose
  that the cell cross-references.

The third bot comment — cross-table consistency between §6's new
"Tests / local dev | Network deployment" headers and §§1-5, 7-9's
existing "PoC | Production" headers — is out of scope here. §§7-9
(VotingEscrow / SafetyReserve / SwapHelper) carry the same
"production from day one" applicability as §6 and could be relabelled
in a separate pass; §§1-5 (cache backend, gossip, etc.) retain real
PoC-vs-production distinctions and should keep the original headers.
A separate PR can do the §§7-9 relabel if desired.
@alpergundogdu
alpergundogdu merged commit 7410846 into main May 14, 2026
11 checks passed
@alpergundogdu
alpergundogdu deleted the adr-547-followup-density-fixes branch May 14, 2026 14:54

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request improves the documentation by splitting long paragraphs for better readability in the payments ADR and updating function references to be more explicit in the production seams appendix. A review comment identified a broken cross-reference to ADR 016, noting a missing anchor and a mismatched section name, and provided a suggestion to fix the link to point correctly to the USDC flow diagram.

Comment thread adr/003-payments.md
#### Settlement sequence

End-to-end USDC flow (client→node settlement, then the parallel cache-miss bypass) is diagrammed in [ADR 016 §"FeeRouter integration"](016-contract-interactions.md). This ADR documents only the `StablePaymentChannel ↔ FeeRouter` interface contract. The full six-bucket split applies to every network deployment from launch — simplified launch configurations are expressed by setting non-active bucket shares to zero via `FeeRouter.setShares(...)` per [ADR 016 § Tunable Economics](016-contract-interactions.md#tunable-economics), not by deploying a reduced-surface stub. The cross-validation invariant in [ADR 016 § Tunable Economics](016-contract-interactions.md#tunable-economics) ensures any non-zero share has a wired non-zero destination, so the launch share configuration alone determines which downstream contracts must be ready at deploy time.
End-to-end USDC flow (client→node settlement, then the parallel cache-miss bypass) is diagrammed in [ADR 016 §"FeeRouter integration"](016-contract-interactions.md). This ADR documents only the `StablePaymentChannel ↔ FeeRouter` interface contract.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

medium

The cross-reference to ADR 016 is missing an anchor, which will cause the link to land at the top of the document rather than the relevant diagram. Additionally, the section name "FeeRouter integration" does not match any header in adr/016-contract-interactions.md. Given the context of the "End-to-end USDC flow," this should likely point to the "USDC Flow (Payments)" section. Ensure the anchor slug follows GFM conventions by converting to lowercase, replacing spaces with hyphens, and removing special characters like parentheses.

Suggested change
End-to-end USDC flow (client→node settlement, then the parallel cache-miss bypass) is diagrammed in [ADR 016 §"FeeRouter integration"](016-contract-interactions.md). This ADR documents only the `StablePaymentChannel ↔ FeeRouter` interface contract.
End-to-end USDC flow (client→node settlement, then the parallel cache-miss bypass) is diagrammed in [ADR 016 § USDC Flow (Payments)](016-contract-interactions.md#usdc-flow-payments). This ADR documents only the StablePaymentChannel ↔ FeeRouter interface contract.
References
  1. Verify that internal Markdown links use correct GitHub Flavored Markdown (GFM) anchor slugs, which are typically generated by converting headers to lowercase and replacing spaces with hyphens.
  2. When referencing ADRs, ensure that anchor links are correctly formatted, especially when special characters are present. GFM slug generation replaces whitespace with hyphens and removes special characters like parentheses.

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