ADR-0005 — Local RAG retrieval surface (ADR-E)

  • Status: Seeded placeholder — not yet ratified (Epic 3; 🔒 closer review).

  • Source: docs/planning-artifacts/architecture.md §"Contested Decisions" ADR-E (#274—​277); Decision Priority (D4.3).

Context (to be decided)

Design-in a retrieval trait over decrypted in-memory data (structured/keyword, no vectors in v1) vs defer with an injectable-context seam. The index is Private<T>, an encrypted-store citizen with a hot/cold lock lifecycle, and KB-shaped so Open Food Facts can reuse it.

Decision

Pending. The Inference trait (Epic 3) leaves the retrieval seam open.

Consequences

To be recorded when decided.