Repository navigation
docs(adr): split nodeIdOf, add isActive, spec setFeeRouter (#450 §B.1+§B.2+§B.5) - #455
Merged
Merged
Conversation
) Resolves three §B items in #450: §B.1 + §B.2: StakingRegistry surface — keep nodeIdOf returning the bundled (bytes32 nodeId, bool active) tuple per the original ADR 003 design (saves an RPC for callers that need both signals); add a single-purpose isActive(operator) → bool view alongside it for callers that work with operator addresses and only need the activity bit. isActive is a pure single-contract storage read — operator-level blacklist status (per ADR 011) is intentionally NOT consulted; clients filter against ContentBlacklist.isOriginBlacklisted themselves when the combined "authorized origin" predicate is needed. The "active" semantics are pinned: false for unregistered, in-unbonding, below-minStake, and auto-ejected operators. §B.5: Spec StablePaymentChannel.setFeeRouter(addr) properly — GOVERNANCE_ROLE, standard 48h timelock, FeeRouterUpdated event, address(0) and same-address rejection. Open channels are unaffected because the EIP-712 domain separator hashes the contract's own address, not the FeeRouter (carve-out in ADR 016 § No proxy deployment patterns). New § Governance setter: setFeeRouter subsection in ADR 003. Cross-file alignment: - ADR 016 § Off-Chain Read API: split the nodeIdOf row into nodeIdOf + isActive entries. - ADR 022 §1.6 Origin discovery: clarified that the requester filters by active == true after reading nodeIdOf; tuple framing kept. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
There was a problem hiding this comment.
Code Review
This pull request updates several Architecture Decision Records (ADRs) to provide more technical detail on governance setters and registry view functions. Specifically, it expands the documentation for setFeeRouter in ADR 003, including its authority, validation logic, and impact on settlements. It also introduces the isActive view function in the StakingRegistry across ADR 003 and ADR 016, and refines the origin discovery process in ADR 022. Feedback was provided to use markdown links for internal ADR section references within comments to ensure better navigability and consistency with GFM anchor slug conventions.
This was referenced May 7, 2026
…mment Address Gemini review on PR #455: convert plain "(per ADR 011 § X)" references inside the isActive NatSpec comment into proper Markdown links with GFM-generated anchors so they render as navigable links in the rendered ADR. Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
1 of 4 tasks
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
First slice of #450. Resolves three §B items, all in
IStakingRegistry/StablePaymentChannel:isActive(operator)added to theIStakingRegistrysurface in ADR 003. Pure single-contract storage read; returnstrueiffoperatoris registered with active (non-unbonding) stake at or aboveminStake.nodeIdOfreturn type kept as the bundled(bytes32 nodeId, bool active)tuple per the original ADR 003 design (saves an RPC when callers need both signals). The standaloneisActivelives alongside it forOriginAssignmentcallers and others who only need the activity bit and don't want to read the binding slot.setFeeRouter(addr)properly spec'd. New subsection in ADR 003 with authority (GOVERNANCE_ROLE), timelock (standard 48h), event (FeeRouterUpdated), validation (rejectsaddress(0)and same-address), and the EIP-712 carve-out reference to ADR 016 § No proxy deployment patterns.Decisions made (per planning conversation)
isActivesemantics: false for unregistered, in-unbonding, below-minStake, and auto-ejected operators. Operator blacklist (ContentBlacklist.isOriginBlacklisted) is intentionally not consulted —isActiveis a pure single-contract storage read; callers that need the combined "authorized origin" predicate filter againstContentBlacklistthemselves per ADR 011 § Interaction with ContentBlacklist.nodeIdOfreturn shape: kept as tuple per original ADR 003 design (saves an RPC; design comment block in ADR 003 already documents the rationale).isActiveis the lighter standalone alternative when only the bit is needed.Cross-file alignment
nodeIdOfrow into two entries — bundlednodeIdOfand standaloneisActive— with their respective consumers documented.active == trueafter reading the tuple; framing is unchanged.Out of scope
Test plan
pre-commit run --files <touched files>clean (markdownlint, EOF, trailing whitespace)isActiveandnodeIdOfconsumer references — every site that says "StakingRegistry.isActive(operator)" or "StakingRegistry.nodeIdOf(operator)" in ADRs 011 / 016 / 022 still reads coherently after the splitRelated
🤖 Generated with Claude Code