Repository navigation
docs(adr): follow-up #558 — split dense paragraph, fully-qualify setShares - #559
Conversation
…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.
There was a problem hiding this comment.
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.
| #### 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. |
There was a problem hiding this comment.
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.
| 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
- 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.
- 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.
Follow-up to #558. Addresses two post-merge review comments that arrived after the squash-merge landed.
setShares→FeeRouter.setShares(...)to match the prose in ADR 003 that the cell references.Out of scope here
The third bot comment — cross-table consistency between §6's new
Tests / local dev | Network deploymentheaders and §§1–5, 7–9's existingPoC | Productionheaders — is intentionally not addressed: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 titledWhat 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.