Phase 2: Vault enrollment + move-in/move-out plumbing #140
Labels
No labels
blocked:depends-p1
blocked:gate-research
blocked:lint-failed
blocked:needs-decision
blocked:needs-human
blocked:verify-failed
bug
data-loss
documentation
enhancement
feature-request
in-progress
needs-decompose
needs-triage
pwa
quickfix
security
security/high
security/medium
test
test-coverage
triage-approved
vault
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Mark/kimi_agent_kin_app_sync#140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Phase 2: Vault enrollment + move-in/move-out plumbing
Goal: First-launch path enrolls a PIN (or biometric) before the vault is usable. Existing contacts can be moved in/out via PersonDetail. Main DB people flagged vault-only via a foreign-key reference to the vault row id; the main Person row never carries vault data.
Approach candidates:
vault.primaryFactor = "pin" | "biometric"in app settings.VaultStore.moveFromMain(personId)/VaultStore.moveToMain(personId). Move is a real cross-DB write, not a flag flip.Outputs:
Vault.tsx.vault.primaryFactorsetting with defaultpin.VaultStore.moveFromMain(personId)andmoveToMain(personId).Acceptance criteria:
kin_vaultand deletes fromkin_db.kin_vaulttokin_dband deletes the vault row.Files touched:
src/vault/Vault.tsx(enrollment sub-screen),src/vault/VaultStore.ts(move methods),src/screens/PersonDetail.tsx(move actions).Decomposed from kimi_agent_kin_app_sync#26
Decompose: Feature: "Little Black Book" mode — locked private vault for discreet contacts — Phase 2: Vault enrollment + move-in/move-out plumbingto Phase 2: Vault enrollment + move-in/move-out plumbingQA verified ✅
66187a4(feat: Phase 2 vault enrollment + move-in/move-out plumbing),10c200c(chore: remove unused variable)Commits landed 2026-07-16 01:55-01:57 PDT. All tests green. Issue already closed on Forgejo.
cc: @tasker-worker
Phase 5 verification passed ✅
Forensic trace test suite (
src/vault/__tests__/forensic-trace.test.ts) confirms:9/9 tests pass. Runner:
scripts/verify-vault-trace.sh. Committed at288ffb3.