README.md

2.2 KB · raw

rendered · source

Vault Adoption Drafts

Draft-only browser implementation plan for /Users/june/Downloads/peach-vault-adoption-brief.md.

Nothing in this folder is active code. src/drafts/** is excluded from both tsconfig.json and vitest.config.ts, so these files are inert until an integration pass copies the destination-form code/tests into real source.

Drafted against current dev state, not the brief's older base:

Files

Draft file Purpose
vault-createVaultFromRootKey.ts Phase 1 destination-form vault code for adopting an existing root key.
vault-createVaultFromRootKey.test.ts T-A01 through T-A05.
messages-CREATE_VAULT_FROM_ROOT_KEY.ts Phase 2 message type and handler draft.
messages-CREATE_VAULT_FROM_ROOT_KEY.test.ts T-A06 through T-A09.
chirp-adopt.ts Phase 3 adoption sub-protocol module.
chirp-adopt.test.ts T-A10 through T-A15.
AdoptionConsentModal.tsx Phase 4 source-device consent modal.
AdoptionConsentModal.test.tsx T-A16 through T-A20.
onboarding-adopt-path.tsx Phase 5 receiver onboarding path and AdoptVaultView sketch.
onboarding-adopt-path.test.tsx T-A21 through T-A25.
chirp-pair-adopt-source.ts Phase 6 source-side ADOPT_REQUEST routing.
chirp-pair-adopt-source.test.ts T-A26 through T-A29.
INTEGRATION-CONTRACT.md Source of truth for the later integration pass.

Security Notes