Skip to content

fix(auth): bind local-node eject to replica proof#1230

Draft
LiranCohen wants to merge 3 commits into
mainfrom
feat/local-node-eject-cleanup
Draft

fix(auth): bind local-node eject to replica proof#1230
LiranCohen wants to merge 3 commits into
mainfrom
feat/local-node-eject-cleanup

Conversation

@LiranCohen

@LiranCohen LiranCohen commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Summary

  • persist v2 ejection markers bound to a stable source-replica ID, canonical registration topology, and converged drain manifest
  • inspect retired message and task stores before remote-mode boot; legacy, changed, or unreadable proofs fall back locally while preserving pairing
  • fail drains when any registered DID resolves no active sync projection

This intentionally does not delete local stores. It establishes the fail-closed source-replica proof needed before destination storage-generation binding and cross-context write fencing can make deletion safe in #1166.

Test plan

  • bun run lint
  • bun run build
  • packages/auth: bun run test:node (536 pass)
  • packages/agent: bun run test:node (1327 pass)
  • bunx changeset status

@sonarqubecloud

Copy link
Copy Markdown

@LiranCohen
LiranCohen marked this pull request as draft July 18, 2026 17:33
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.

1 participant