Repository navigation
docs(adr): drop non-existent double-settlement offense from ADR 014 - #584
Merged
Merged
Conversation
The "fourth offense, double settlement (same voucher to multiple
channels)" line described a structurally impossible threat: the
EIP-712 Voucher type signs channelId as its first field (ADR 003
§EIP-712 Voucher Signature), so a voucher only validates against its
one channel. That is exactly the already-closed "Replay attack on
vouchers" defense in ADR 003, enforced on-chain by the PoC
StablePaymentChannel itself — not "production-only".
Also corrects two "four"->"three" miscounts (Slashed emission sites,
Consequences) that contradicted the three-variant ISlashJudge
OffenseType enum {Phantom, RateManipulation, Blacklist}.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
…three Removing the non-existent "double settlement" offense from ADR 014 left appendix-observability.md §2.1 saying "five slashable offenses" while the canonical set is three (phantom, rate manipulation, blacklist) — matching ADR 014 and ADR 028's "All three slashable offenses". The §2.1 metrics table itself only covers those three. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates the documentation in ADR 014 to remove references to "double settlement" as a fourth slashable offense, as it is not covered by on-chain verification in the current scope. Consequently, the total count of slashable offenses with a concrete on-chain evidence path has been updated from four to three throughout the document. I have no feedback to provide.
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
Vouchertype signschannelIdas its first field (ADR 003 §EIP-712 Voucher Signature; digest also bound by theStablePaymentChanneldomain separator). A voucher only validates against its one channel —closeChannel/disputeChannelreconstruct the digest with the channel's ownchannelIdandSignatureChecker.isValidSignatureNow(channel.client, …)rejects any off-channel voucher (WrongChannel). "Submitting the same voucher to multiple channels" cannot happen, and the defense is the core PoCStablePaymentChannelscheme — not "production-only". This is literally the already-closed "Replay attack on vouchers" entry in ADR 003.four→threemiscounts (§Slashedemission sites, §Consequences/Positive) that contradicted the three-variantenum OffenseType { Phantom, RateManipulation, Blacklist }and the threesubmit*Challengefunctions inISlashJudge."double settlement" appears nowhere else in the ADR corpus; ADR 026 §8 (the cited source) enumerates no offenses, only slashing rates/distribution. This was stale residue from a pre-
channelId-binding draft.Test plan
pre-commit run --files adr/014-on-chain-verification.md— all hooks pass (markdownlint, adr book list in sync, etc.)four/double settl/fourthin ADR 014🤖 Generated with Claude Code