Reference Spec · v1 (AI Safety & Knowledge Systems)1 REQ -> 1 TC · 0 Orphans
Enterprise RAG Pipeline with Citation Grounding & ACL Filtering
Filter pgvector chunks by caller ACL groups prior to ranking and require verbatim chunk citations or explicit abstention.
Actor: EmployeeActor: Knowledge Indexerv1 Non-Goals: Audio/video transcription ingestion
Locked Scope Assumptions
ASM-001Apply SQL WHERE acl_group_ids && user.groups inside pgvector query—never post-filter in LLM prompt.
US-001 · Slice #1FEAT-01
Query ACL-Scoped Chunks with Abstention Threshold
As a Employee, I want answers cited strictly to documents I have permission to view so that confidential HR/Finance docs never leak and answers are verifiable.
Entry SurfaceChat Search UI & POST /api/rag/query
Domain LogicAclVectorRetriever & CitationVerifier
Persistence / ExternalPostgreSQL pgvector document_chunks