Skip to content

docs(adr): drop adminReclaimNodeId; reclaimNodeId is sufficient (#410) - #414

Merged
thiras merged 2 commits into
mainfrom
adr/drop-admin-reclaim-node-id
May 6, 2026
Merged

thiras merged 2 commits into
mainfrom
adr/drop-admin-reclaim-node-id

Conversation

@alpergundogdu

Copy link
Copy Markdown
Contributor

Closes #410.

Drops the adminReclaimNodeId admin-override path from StakingRegistry. The legitimate reclaimNodeId path (verifies Ed25519 ownership of the NodeId's private key) covers every realistic squat scenario. The admin override existed as an early-testing safety valve with no concrete use case.

Changes

  • adr/001-network.md — drops adminReclaimNodeId from the interface, gas-cost table, and the "PoC safety valve" subsection. The reclaim-flow paragraph now ends with "reclaimNodeId is the sole reclaim mechanism: there is no admin override."
  • adr/appendix-poc-production-seams.md — drops the adminReclaimNodeId row from the inventory table; drops the "Contracts: unsafe-admin feature" subsection (which described PocStakingRegistry extending StakingRegistry with the admin function via separate Foundry deploy scripts).
  • adr/architecture.md — updates the open-question summary line to "reclaimNodeId as the sole reclaim mechanism in both PoC and production."

Wins

  • One contract (StakingRegistry), not two (PocStakingRegistry extension dropped)
  • One Foundry deploy script, not mode-split
  • One PoC/production split removed from the seams inventory

Same simplification pattern as #408: a hedge that doesn't earn its keep, removed cleanly pre-launch.

Test plan

  • Verify no remaining references to adminReclaimNodeId or PocStakingRegistry in adr/
  • Verify gas-cost table totals are still consistent

🤖 Generated with Claude Code

The legitimate reclaimNodeId path (verifies Ed25519 ownership of the
NodeId's private key) covers every realistic squat scenario. The
adminReclaimNodeId override existed as an "early testing safety
valve" with no concrete use case once the protocol is committed to
its design.

Removing it collapses the StakingRegistry PoC/production split:

- One contract (StakingRegistry), no PocStakingRegistry extension
- One deploy script, not Foundry-mode-conditional
- One row removed from the seams appendix inventory

Same simplification pattern as #408. Closes #410.

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 removes the adminReclaimNodeId function and all associated documentation from the ADRs, effectively eliminating the administrative 'safety valve' for NodeId reclamation. The reclaimNodeId function, which requires a valid Ed25519 signature, is now the sole mechanism for reclaiming a NodeId in both PoC and production environments. Feedback was provided to explicitly emphasize the requirement of Ed25519 signatures in the documentation to maintain precision regarding cryptographic key usage.

Comment thread adr/001-network.md Resolved
…ll environments

Address Gemini review comment on PR #414. Strengthen the reclaim-flow
paragraph to explicitly state that ed25519 wire-key ownership is the
sole reclaim path in both PoC and production, distinguishing it from
the secp256k1 on-chain signatures used for slash evidence and the
NodeId<->Ethereum binding.

Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
@thiras
thiras merged commit b248f28 into main May 6, 2026
9 checks passed
@thiras
thiras deleted the adr/drop-admin-reclaim-node-id branch May 6, 2026 08:24
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.

Drop adminReclaimNodeId from PoC; legitimate reclaimNodeId is sufficient

2 participants