Skip to content

Adopt local vaults as retained hosted mirrors - #2

Merged
callumalpass merged 1 commit into
mainfrom
agent/local-vault-adoption
Jul 27, 2026
Merged

callumalpass merged 1 commit into
mainfrom
agent/local-vault-adoption

Conversation

@callumalpass

Copy link
Copy Markdown
Collaborator

Summary

  • add explicit portable authority adoption for an existing local mdbase vault
  • upload configuration, types, configured Bases views, and Markdown as one canonical snapshot
  • persist the one-time credential in Obsidian SecretStorage and the resumable checkpoint/snapshot under .mdbase
  • make hosted mdbase authoritative only after the exact fenced snapshot activates
  • retain the existing vault as a pre-approved read-write mirror and fall back to owner enrollment if that pairing response is interrupted
  • block plugin authority writes while activation is unresolved, while keeping later external edits local for the new mirror

Verification

  • npm test (38 passed)
  • interruption coverage: lost activation response/restart, interrupted final upload, post-fence edit, cancellation, and expired checkpoint
  • mirror coverage: retained pairing, read/write convergence, interrupted mirror write, conflicts/collisions, reserved paths
  • npm run check:mobile (raw 512,524 bytes; gzip 149,959 bytes, both within budget)
  • npm run build
  • git diff --check

SDK artifacts are vendored from merged mdbase-connect commit c3a44aa7063a7bae1bbf89bbc8c5d7e868a95119.

@callumalpass
callumalpass merged commit 411a151 into main Jul 27, 2026
1 check passed
@callumalpass
callumalpass deleted the agent/local-vault-adoption branch July 27, 2026 13:00
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