Skip to content

docs: replace legacy migration path with slashing-channel interactions - #52

Merged
thiras merged 2 commits into
mainfrom
docs/slashing-channel-interactions
Mar 30, 2026
Merged

thiras merged 2 commits into
mainfrom
docs/slashing-channel-interactions

Conversation

@thiras

@thiras thiras commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Removes the obsolete "Stablecoin Migration Path" section from ADR 003, which was superseded by ADR 010's governance-managed token allowlist
  • Adds a token-agnostic "Slashing and Channel Interactions" section to ADR 003 documenting how slashing, auto-ejection, and channel settlement interact
  • Adds cross-reference from ADR 004's auto-ejection section to the new ADR 003 section
  • Fixes stale contract isolation reference (was PaymentChannel, now correctly StakingRegistry)

Closes #9

Test plan

  • Verify markdown renders correctly on GitHub (headings, links, bold)
  • Verify #slashing-and-channel-interactions anchor works from ADR 004 cross-reference
  • Verify #slash-amounts-escalating and #auto-ejection anchors in ADR 004 still resolve

🤖 Generated with Claude Code

#9)

The stablecoin migration path in ADR 003 was superseded by ADR 010's
governance-managed token allowlist. Replace it with a token-agnostic
section documenting how slashing, auto-ejection, and channel settlement
interact. Add cross-reference from ADR 004's auto-ejection section.

Closes #9

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings March 30, 2026 21:21

Copilot AI 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.

Pull request overview

Updates the payment-model ADRs to remove an obsolete stablecoin migration plan and replace it with documentation of how slashing/auto-ejection interact with payment channel lifecycles, plus adds cross-references from tokenomics.

Changes:

  • Replaces “Stablecoin Migration Path” in ADR 003 with a “Slashing and Channel Interactions” section describing slashing, auto-ejection, and channel settlement behavior.
  • Adds an ADR 004 cross-reference noting that auto-ejection does not affect existing payment channels.
  • Fixes a stale contract isolation reference in ADR 003 (PaymentChannel → StakingRegistry).

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
adr/003-payments.md Removes legacy migration content; adds new slashing/channel interaction documentation; updates contract isolation reference.
adr/004-tokenomics.md Adds a cross-reference from auto-ejection to ADR 003’s new slashing/channel interactions section.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread adr/003-payments.md Resolved

@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 ADR 003 and ADR 004 to clarify the independence of payment channels from slashing and node ejection mechanisms, ensuring that client funds remain secure and channels can settle normally regardless of a node's staking status. The reviewer provided feedback correcting several technical inaccuracies regarding the functional separation between the StablePaymentChannel and StakingRegistry contracts, specifically noting dependencies for fee calculations and the actual protocol flow for channel participation and node verification.

Comment thread adr/003-payments.md Resolved
Comment thread adr/003-payments.md Resolved
Comment thread adr/003-payments.md Resolved
StablePaymentChannel references StakingRegistry via getEffectiveFee
for read-only fee discount lookups. Reword "isolated"/"no reference"
to "functionally separated" and clarify the interaction is read-only.
Fix openChannel flow: clients check registration before opening,
nodes verify status before accepting StreamRequest.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@thiras
thiras merged commit 283ae5c into main Mar 30, 2026
@thiras
thiras deleted the docs/slashing-channel-interactions branch March 30, 2026 21:30
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.

ADR 003: Legacy PaymentChannel interaction during migration is underspecified

2 participants