Decompose: Feature: "Little Black Book" mode — locked private vault for discreet contacts — Phase 1: Vault DB + store split (separate Dexie instance) #139
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#139
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 1: Vault DB + store split (separate Dexie instance)
Goal: Stand up
kin_vaultas a distinct Dexie database. Vault data NEVER lives in the mainkin_db. The main DB has zero knowledge of vault contacts. Future readers cannot infer vault existence from main-DB shape.Approach candidates:
src/vault/vault-db.tsexporting avaultDbinstance with namekin_vault, version 1. Schema mirrors main Person / Interaction / Gift / Date tables but scoped to the vault.vaultDbis constructed lazily insideVaultStore, never imported bydb.tsorschemas.ts.Outputs:
src/vault/vault-db.tswith tables:vaultPeople,vaultInteractions,vaultGifts,vaultDates,vaultNotes.src/vault/VaultStore.tsskeleton wrapping all vault queries; rejects reads unless unlock state is "unlocked" in-memory.Acceptance criteria:
kin_vaultDexie DB created with namekin_vault, separate fromkin_db.vault-dbfromsrc/db.ts,src/schemas.ts, or any main-DB module.VaultStoreexportsisUnlocked(): boolean; any query called while locked throwsVaultLockedError.kin_db(Inspect) has novaultPeopletable;kin_vault(Inspect) has nopeopletable.Files touched:
src/vault/vault-db.ts(new),src/vault/VaultStore.ts(new),src/db.ts(untouched, verify no import path), new unit tests undersrc/vault/__tests__/.Decomposed from kimi_agent_kin_app_sync#26
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.