Repository navigation
docs(adr): reconcile PoC framing to ADR 016 canon; slim seams appendix - #582
Merged
Merged
Conversation
Canonical rule (workspace CLAUDE.md): "PoC" is a network-scale
milestone, NOT a reduced contract surface — the on-chain surface ships
at full production shape with governance-tunable economics from day one
([ADR 016 § Contract Inventory / § Tunable Economics]).
Genuine inconsistencies with that canon, fixed:
- 003-payments.md: rate bounds were "governable post-PoC" — contradicts
ADR 016:18/102 ("governance-tunable from day one"). Now: tunable from
day one within the hardcoded safety bounds, admin-key-gated in PoC,
ve-Governor in production.
- 009-governance.md: "governance contracts are additive post-PoC" /
"implemented post-PoC" — contradicts ADR 016:34/35 (DecdnGovernor +
TimelockController are in the day-one single-audit-pass inventory;
Timelock is DEFAULT_ADMIN_ROLE day one). Reframed: the contracts ship
day one; only the governance *process* (admin key -> ve-Governor)
differs by phase, not the contract surface.
Deliberately left as-is (investigated per request — these are
consistent, separately-documented scope decisions, not mis-framing):
- Multi-token: ADR 003/010 and the canonical ADR 016:24 inventory all
model it as a distinct post-PoC PaymentChannel replacing the USDC-only
StablePaymentChannel ("multi-token PaymentChannel ... is deferred").
- ADR 014 PoC scope (double-settlement, regional, 10%-flat): deliberate
and internally consistent; parameterization is tunable day-one anyway.
Seams appendix slimmed to the durable principle (option b):
- Dropped the `#[cfg(feature="poc")]` Cargo-feature design and the
"mechanical-deletion graduation path" thesis (no `poc` feature exists
in crates/; it framed PoC as a stubbed surface to delete, conflicting
with "contracts ship production-shaped day one").
- Dropped the stale 5-crate inventory + crates/ tree + 9 per-seam code
blocks (predated the cli/common two-binary split; crates are early).
Now defers to CLAUDE.md / appendix-binaries.md as the layout source.
- Reframed the contract surface as NOT a PoC/production seam — the only
contract-side seam is deployed-contract vs in-process test double.
- Fixed the resulting dangling inbound anchor (003-payments.md ->
removed appendix §1) and architecture.md's stale one-line descriptor.
Verified: markdownlint + heading checks clean; no dangling anchors;
`make MERMAID=0 book` builds clean.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request refactors several Architecture Decision Records (ADRs) to clarify the distinction between Proof of Concept (PoC) and production environments. The primary change is the assertion that the on-chain contract surface remains consistent across both phases, with differences restricted to operational scope, component implementations, and governance processes. The 'PoC/Production Seam Architecture' appendix was significantly streamlined to focus on trait-based seams at the application's wiring layer, ensuring domain crates remain free of mode-conditional logic. Review feedback focused on improving documentation link stability by adopting standard GitHub Flavored Markdown anchor slugs.
Address PR #582 review: link to a stable section anchor instead of the bare file. Corrected the anchor — the reviewer suggested `#contract-inventory`, but ADR 016's heading is `### 1. Contract Inventory` (slug `#1-contract-inventory`, per 016's own self-link at line 804); the suggested slug would have dangled. Applied the verified anchor to both this-PR references (appendix + 009) for consistency, plus the suggested comma after the introductory link. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
alpergundogdu
added a commit
that referenced
this pull request
May 18, 2026
…i-stablecoin from day 1 (#583) Team decision: no separate arbitrary-ERC-20 PaymentChannel contract and no PoC/production payment-channel split. StablePaymentChannel accepts multiple governance-allowlisted stablecoins from launch (USDC at launch); non-stablecoin assets are swapped off-protocol by the holder, so the contract needs no price oracle. - ADR 010 deleted entirely: file removed; dropped from architecture.md (Chapter 3 reading order + numeric index) and the Makefile BOOK_SRCS list; "do not reuse 010" recorded in CLAUDE.md (same handling as 027/029). - ADR 003 absorbs the governance stablecoin allowlist (addToken/removeToken), per-token rate bounds, token-keyed channel IDs, forceCloseChannel on token removal, the Stablecoin Vetting Checklist, and per-token decimal handling. - All PaymentChannel references and PoC/production payment seams removed across 005/008/009/012/013/016/018/019/024/026, README, architecture, glossary, and the operator/seams appendices; former ADR 010 inbound links repointed to ADR 003. - ADR 008 cross-token reputation open-question closed (stablecoin peg makes decimal-normalization sufficient; no oracle). Rebased onto main (#582 slim seams appendix / PoC-framing canon, #584): seams-appendix conflict resolved by taking the slim version and fixing its residual ADR-010 line; ADR 003 rate-bounds line merged (governance-tunable from day one + per-token). Verified: zero ADR-010 references corpus-wide, MD001 heading levels clean, new ADR-003 anchors resolve, adr/ self-contained, make check-book-list green (23 ADRs + 12 appendices), pre-commit clean. Open economics questions (FeeRouter per-token accounting gating, etc.) tracked in #583. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hygiene pass on PoC framing and the now-stale PoC/Production seams appendix. Canonical rule (workspace
CLAUDE.md): "PoC" is a network-scale milestone, not a reduced contract surface — the on-chain surface ships at full production shape with governance-tunable economics from day one (ADR 016 § Contract Inventory / § Tunable Economics).Genuine inconsistencies fixed
003-payments.md— rate bounds were "governable post-PoC", contradicting ADR 016:18/102 "governance-tunable from day one." Now: tunable from day one within the hardcoded safety bounds (admin-key-gated in PoC, ve-Governor in production).009-governance.md— "governance contracts are additive post-PoC" / "implemented post-PoC" contradicted ADR 016:34/35 (DecdnGovernor+TimelockControllerare in the day-one single-audit-pass inventory; Timelock isDEFAULT_ADMIN_ROLEfrom day one). Reframed: contracts ship day one; only the governance process (admin key → ve-Governor) differs by phase, not the contract surface.Investigated and deliberately left as-is
Per the request to verify multi-token first — these are consistent, separately-documented scope decisions, not mis-framing, so no change:
PaymentChannelreplacing the USDC-onlyStablePaymentChannel("multi-tokenPaymentChannel… is deferred"). Internally consistent.Seams appendix → slimmed to the durable principle
appendix-poc-production-seams.mdwas out of date:#[cfg(feature="poc")]Cargo-feature design + "mechanical-deletion graduation path" thesis — nopocfeature exists incrates/, and it framed PoC as a stubbed surface to delete, conflicting with "contracts ship production-shaped day one."crates/tree, and 9 per-seam code blocks (predated thecli/commontwo-binary split; impl crates are early). Now defers toCLAUDE.md/appendix-binaries.mdas the layout source of truth.003-payments.md→ removed appendix §1) andarchitecture.md's stale one-line descriptor.Net: appendix 352 → ~40 lines.
Verification
markdownlint+ heading-level checks cleanappendix-poc-production-seams.md#)make MERMAID=0 bookbuilds clean (slim appendix compiles in the reading-order book)make check-book-listpassing (pre-commit)Reviewer note
The
009-governance.mdchange is the most semantic — it reconciles ADR 009's PoC-governance wording to the canonical ADR 016 contract inventory. It does not rewrite 009's PoC-vs-production process description, only the "contracts are post-PoC" claim that conflicted with the day-one inventory.🤖 Generated with Claude Code