Skip to content

docs(adr): drop non-existent double-settlement offense from ADR 014 - #584

Merged
alpergundogdu merged 2 commits into
mainfrom
claude/lucid-satoshi-63790b
May 18, 2026
Merged

alpergundogdu merged 2 commits into
mainfrom
claude/lucid-satoshi-63790b

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Summary

  • Delete the "fourth offense, double settlement" line in ADR 014 §Context. It described a structurally impossible threat: the EIP-712 Voucher type signs channelId as its first field (ADR 003 §EIP-712 Voucher Signature; digest also bound by the StablePaymentChannel domain separator). A voucher only validates against its one channel — closeChannel/disputeChannel reconstruct the digest with the channel's own channelId and SignatureChecker.isValidSignatureNow(channel.client, …) rejects any off-channel voucher (WrongChannel). "Submitting the same voucher to multiple channels" cannot happen, and the defense is the core PoC StablePaymentChannel scheme — not "production-only". This is literally the already-closed "Replay attack on vouchers" entry in ADR 003.
  • Fix two four→three miscounts (§Slashed emission sites, §Consequences/Positive) that contradicted the three-variant enum OffenseType { Phantom, RateManipulation, Blacklist } and the three submit*Challenge functions in ISlashJudge.

"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.)
  • No residual four / double settl / fourth in ADR 014
  • Prose flow verified: three-item list → "Content corruption …" reads cleanly with the paragraph removed
  • No issue/PR/self-repo refs introduced (adr/ self-containment convention)

🤖 Generated with Claude Code

alpergundogdu and others added 2 commits May 18, 2026 17:52
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]>
@alpergundogdu
alpergundogdu merged commit 20c8e15 into main May 18, 2026
3 checks passed
@alpergundogdu
alpergundogdu deleted the claude/lucid-satoshi-63790b branch May 18, 2026 16:56

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