Catalog ID: EL-34
Public issue: #130
Reviewed baseline: 71abaf4067d4118f28910a22c20524b4e0282b28
Core objective: Provide local retrieval and evidence discovery across
explicitly indexed, encrypted user data with citation-first results,
living-person safeguards, bounded indexing, and no implicit remote disclosure.
Priority / phase: P3 / Post-MVP retrieval
Publication status: Published as #130.
Dependency mapping
UX/UI requirements
- Provide source selection, indexing status, scope filters, evidence snippets,
citations, confidence explanations, and stale-index warnings.
- Separate exact evidence matches from generated summaries.
- Make living-person filtering and remote-disclosure state visible.
- Preview the effect of delete-index, rebuild, and source removal.
Public interfaces
- Add
RetrievalSource, IndexJob, EvidenceQuery, EvidenceHit,
CitationReference, and IndexDeletionPreview.
- Return bounded snippets and opaque source references, not paths/full records.
- Any future remote augmentation is a separate explicit operation with provider
and consent fields.
Underlying app changes
- Complete a renewed threat review before implementation.
- Add encrypted index storage, schema/version metadata, source fingerprints,
bounded ingestion, deletion, rebuild, and stale-source detection.
- Keep deterministic retrieval independent from model generation.
- Filter living-person data before any provider boundary.
Acceptance criteria
Security mitigations and rejected anti-patterns
- Applies TM-S01, TM-L01, TM-L02, TM-F01, TM-A02, TM-D01, and TM-O01.
- Reject plaintext vector stores, complete records in renderer, implicit global
indexing, cloud embeddings without consent, provider inference, network
fallback, uncited generated answers, and payload logs.
Workspace mapping
- Exclusive owned paths:
desktop/src/features/retrieval/**,
src/ancestryllm/api/routes/retrieval/**,
src/ancestryllm/services/retrieval/**,
tests/services/retrieval/**, desktop/tests/retrieval/**, and
docs/threat-models/retrieval.md.
- Shared-file rule: Encryption, migrations, provider policy, generated
contracts, dependencies, and lockfiles require coordinator ownership.
- Base rule: Branch after dependencies merge and renewed review approval.
- Branch:
feature/electron-el-34-local-retrieval
- Worktree:
/Users/justinsoderberg/Development/worktrees/ancestryllm-electron-el-34-local-retrieval
- Validation:
make test; make lint; make typecheck; make security;
pnpm --dir desktop test; pnpm --dir desktop typecheck; encryption and
network-denial tests
Catalog ID: EL-34
Public issue: #130
Reviewed baseline:
71abaf4067d4118f28910a22c20524b4e0282b28Core objective: Provide local retrieval and evidence discovery across
explicitly indexed, encrypted user data with citation-first results,
living-person safeguards, bounded indexing, and no implicit remote disclosure.
Priority / phase: P3 / Post-MVP retrieval
Publication status: Published as #130.
Dependency mapping
UX/UI requirements
citations, confidence explanations, and stale-index warnings.
Public interfaces
RetrievalSource,IndexJob,EvidenceQuery,EvidenceHit,CitationReference, andIndexDeletionPreview.and consent fields.
Underlying app changes
bounded ingestion, deletion, rebuild, and stale-source detection.
Acceptance criteria
deletion, poisoning, living-person data, and remote augmentation.
provider=noneretrieval performs no network access.regression tests.
Security mitigations and rejected anti-patterns
indexing, cloud embeddings without consent, provider inference, network
fallback, uncited generated answers, and payload logs.
Workspace mapping
desktop/src/features/retrieval/**,src/ancestryllm/api/routes/retrieval/**,src/ancestryllm/services/retrieval/**,tests/services/retrieval/**,desktop/tests/retrieval/**, anddocs/threat-models/retrieval.md.contracts, dependencies, and lockfiles require coordinator ownership.
feature/electron-el-34-local-retrieval/Users/justinsoderberg/Development/worktrees/ancestryllm-electron-el-34-local-retrievalmake test;make lint;make typecheck;make security;pnpm --dir desktop test;pnpm --dir desktop typecheck; encryption andnetwork-denial tests