Access Control Pipeline
Three-layer enforcement · folder gate · embed gate · retrieval filter
Source files
Layer 1 — folder gate at ingestion
- company-overview.mdAbout the company, mission, public services.
- press-release.mdLatest public announcement about Project Alpha.
- q3-roadmap.mdInternal roadmap and licensing fee model.
- partner-list.mdActive partner accounts and contract types.
- margins.mdPer-project margin percentages.
- salary-bands.mdCompensation bands by level.
- unreleased-ip.mdUnreleased product IP and algorithms.
- product-prd.mdPRD with public, confidential, and secret sections.
Chunking + embed gate
Layer 2 — per-chunk sensitivity, structural to the DB
The ingestion script reads ## [PUBLIC], ## [CONFIDENTIAL], and ## [SECRET] headers in /mixed/product-prd.md and tags each chunk independently. Secret chunks get embed_blocked=True and are excluded from the vector DB entirely.
- mix-prd-001PRD — Overviewpublic embedded
Project Alpha addresses the mid-market segment with a self-serve onboarding flow.
- mix-prd-002PRD — Feature specsconfidential embedded
Licensing fees follow tiered model: Starter, Growth, Enterprise. Volume discounts available.
- mix-prd-003PRD — Commercial targetssecret embed_blocked
Target margin 35% by EOY. Internal floor: 22%. Reserved for executive review.
Vector DB
What actually got stored (global, role-independent)
Query as Alex
Layer 3 — metadata filter derived from role
filter = { sensitivity: { $in: ["public", "confidential", "secret"] } }Results to LLM
Only allowed chunks reach the model
- conf-roadmap-001confidentialQ3 roadmap — licensing
Licensing tier introduced in Q3 at standard fee model. Internal partners receive 15% discount.
- mix-prd-002confidentialPRD — Feature specs
Licensing fees follow tiered model: Starter, Growth, Enterprise. Volume discounts available.
# Q3 roadmap — licensing [confidential] Licensing tier introduced in Q3 at standard fee model. Internal partners receive 15% discount. # PRD — Feature specs [confidential] Licensing fees follow tiered model: Starter, Growth, Enterprise. Volume discounts available.
The LLM never sees blocked content. Trust is enforced before generation, not inside it.