Skip to content

Drop adminReclaimNodeId from PoC; legitimate reclaimNodeId is sufficient #410

Closed

Description

@alpergundogdu

Context

StakingRegistry has two reclaim functions for NodeId squatting:

  • reclaimNodeId(nodeId, ed25519Signature) — legitimate path. Verifies an Ed25519 signature proving ownership of the NodeId's private key, deregisters the squatter, and clears the binding. Production-canonical (ADR 001 § Reclaim flow).
  • adminReclaimNodeId(...) — onlyOwner admin override, present in the PoC "as a safety valve for early testing." Production removes it (appendix-poc-production-seams.md).

The seams split is implemented at the contract level: script/DeployPoc.s.sol deploys PocStakingRegistry (extends with admin reclaim); script/DeployProduction.s.sol deploys StakingRegistry directly.

Why drop now

Same shape as #408 — a hedge that doesn't earn its keep:

  • The legitimate reclaimNodeId path covers every realistic squat scenario where the operator controls the original Ed25519 key.
  • The admin override was a "what if registration goes wrong during early testing" safety valve. Pre-launch, there is no production traffic to be safe-valved from; the admin would need to actively front-run a real squatter, and even then the legitimate holder can act on the same evidence faster.
  • Removing it collapses the PoC/production split for StakingRegistry entirely: one contract, one deploy script.

Proposed change

  • Drop adminReclaimNodeId from the PoC.
  • Drop PocStakingRegistry extension contract; deploy StakingRegistry directly in both PoC and production.
  • Drop the corresponding row from the seams appendix inventory.

ADRs to update

  • adr/001-network.md — drop admin-reclaim mention from the interface section
  • adr/appendix-poc-production-seams.md — drop the adminReclaimNodeId row from the inventory table; consolidate StakingRegistry deploy story
  • Any contract scaffolding referenced in the deploy-script split

Out of scope

  • The legitimate reclaimNodeId path (stays unchanged)
  • The Ed25519 NodeId-ownership proof on registerNode (stays unchanged)

Pattern reference

This is the second instance of the pattern surfaced in #408: historical PoC/production hedge with no use case once the protocol is committed to its design. Pre-launch is the cheap window to remove these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions