[Review] Vault-gate scrub list duplicated in src/lib/store.ts:1001 and src/pages/PersonDetail.tsx:2967 — should be a single helper #184
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#184
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?
Finding
Two sites maintain the exact same list of sensitive fields to scrub when
vaultLocked === true:src/lib/store.ts:1001-1014:src/pages/PersonDetail.tsx:2967-2974(insideMetricsTab):Adding a new sensitive field to
Interaction(e.g.repairDate,conflictResolutionNotes) requires updating both lists in lockstep. There's no sharedscrubSensitiveFields(interactions)helper.Suggested fix
Export a single helper, e.g. in
src/vault/vault-metrics-engine.tsor a newsrc/vault/scrub.ts:Call from both sites. Add a unit test that mutates a new field on a sample Interaction and asserts the helper clears it.
Severity
Medium. Drift hazard. Each new sensitive field is a double-edit; missing one site = a privacy leak.
Discovered by
Manual code review pass over #169, 2026-09-14.
Closing as already-fixed.
Location:
0854652(on main)Change: fix(#184): extract vault-gate scrub helper, dedupe #169 scrub lists
The chat-agent code review read against a stale HEAD and reported this issue as open. The fix was already in place (committed for #184, in the kilo-gsd worktree for #185) when the review started.
Stash + worktree state at session start:
0854652(fix #184), not4fe2244as the session began assuming.No work to do. Re-classify if either fix needs to be re-merged to a different branch.