[feature] Intimate-state awareness — cycle tracking, mood cycles, conflict prediction #168
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#168
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?
Update (2026-09-09)
User clarified: intimate-state awareness should live in the Little Black Book vault, not the main DB. The vault is already implemented:
kin_vault(src/vault/vault-db.ts:11) — physically isolated fromKinDatabase. Inspecting the main DB reveals nothing about vault existence or content.vaultPeople,vaultInteractions,vaultGifts,vaultDates,vaultNotes(with avaultNotesextension).VaultStoreImpl(src/vault/VaultStore.ts:23) — singleton, throwsVaultLockedErrorunless explicitly unlocked for the session.src/vault/lifecycle.ts) — locks on background (default 60s, configurable 0/60/300).src/lib/db.tsdoes NOT import the vault module — separation is enforced by import boundaries.This means the right place for cycle/fertility/depression/conflict-precursor tracking is:
vaultCyclestable (or vaultNotes extension) — opt-in per person, never exposed via main-DB metricsbehavior-pattern-engine.tsshould have a vault-mode variant that operates on vault-only dataOriginal spec still stands, but with this redirection
All 5 gaps below should be implemented as vault-only features:
vaultCyclestable, phase computation happens in vault contextPrivacy architecture
The vault is the right home because:
Implementation sketch
vault-db.tsschema:VaultCycleStore,VaultMoodStore,VaultPredictionStoretoVaultStore.ts— each gated byassertUnlocked()vault-metrics-engine.ts— runs cycle phase + mood trend + precursor detection ONLY against vault data<IntimateInsights />component — renders inside the vault view, shows mood trend / cycle phase / conflict precursor alertsSeverity
High — same as before. The bones exist (vault) but the intimate-state features themselves are not built. Without them, the vault is just a place to hide data; with them, it's the engine that actually makes use of it.
↳ Parent issue: #169 (privacy audit — every privacy-sensitive field traced back to the Little Black Book). All work on this issue should reference #169's field-by-field audit and the architectural fix sketch.