Skip to content

docs(adr): reconcile PoC framing to ADR 016 canon; slim seams appendix - #582

Merged
alpergundogdu merged 2 commits into
mainfrom
claude/poc-framing-seams-hygiene
May 18, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
claude/poc-framing-seams-hygiene

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

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 + TimelockController are in the day-one single-audit-pass inventory; Timelock is DEFAULT_ADMIN_ROLE from 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:

  • Multi-token: ADR 003 / ADR 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"). Internally consistent.
  • ADR 014 PoC scope (double-settlement production-only, regional global-only, 10%-flat): deliberate and internally consistent; the parameterized bits are tunable day-one anyway.

Seams appendix → slimmed to the durable principle

appendix-poc-production-seams.md was out of date:

  • Dropped the #[cfg(feature="poc")] Cargo-feature design + "mechanical-deletion graduation path" thesis — no poc feature exists in crates/, and 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, and 9 per-seam code blocks (predated the cli/common two-binary split; impl crates are early). Now defers to CLAUDE.md / appendix-binaries.md as the layout source of truth.
  • 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.

Net: appendix 352 → ~40 lines.

Verification

  • markdownlint + heading-level checks clean
  • No dangling anchors corpus-wide (swept appendix-poc-production-seams.md#)
  • make MERMAID=0 book builds clean (slim appendix compiles in the reading-order book)
  • make check-book-list passing (pre-commit)

Reviewer note

The 009-governance.md change 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

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]>

@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 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.

Comment thread adr/appendix-poc-production-seams.md Resolved
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
alpergundogdu merged commit 0f25c59 into main May 18, 2026
11 checks passed
@alpergundogdu
alpergundogdu deleted the claude/poc-framing-seams-hygiene branch May 18, 2026 16:42
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]>
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