Repository navigation
feat(validator): add expiring account-scoped pairing pilot - #60
Merged
Merged
Conversation
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.
What
Add a default-empty allowlist of at most ten canonical node/human accounts and an explicit timezone-aware pilot deadline, bounded to 24 hours at startup. Public pairing stays off. Both parties are checked throughout existing-link and pending-approval flows; private lists exclude unlisted nodes. PostgreSQL checks expiry after node-lock waits. Settings repr and validation errors do not print pilot identifiers.
Why
The pairing API currently has only a global switch. Native production qualification needs a scoped, non-funded first-party pilot before any public activation. This is a rollout restriction, not an auth bypass: scoped keys, fresh human proof and explicit node signatures are unchanged.
Verification
Local full Core suite: 757 passed, 5 intentional skips. Pairing suite against disposable PostgreSQL 16.15: 70 passed, 5 SQLite-only skips. Actual node/Core integration: 5 passed; actual built Next Console/Core integration: 1 passed (SQLite and nonce fixtures explicitly remain test boundaries). Ruff and diff checks pass. Full reachable-history scan: 1560 commits clean; staged scan clean. Private schema cleanup left zero test schemas.
Risk and rollout
No schema, funding, credential issuance, account merge, payout, independence or validator economic changes. No production deployment or flag changes. Apply the reviewed code dark first, then configure only designated test identities for the separate supervised native run. Clear the pilot and global flag for rollback; never delete identities or association tables. DOX, route contract and env template updated.