rag-governance
Skill2 starsChanged 4 months agoMITView on GitHub
Implement access-aware RAG in Enterprise RAG or VAP: hybrid retrieval, rerank, citations, AegisAI HITL for sensitive chunks. Use when tuning retrieval, adding Qdrant adapter, or wiring enterprise_rag_platform.
2 other projects use a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Zengxiansheng007/skills-oldtheir own version, first seen Aug 24, 2026
- vpeetla-ai/reflection-agent-patternedited, first seen Jun 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 1
- vpeetla-ai/reflection-agent-pattern★ 297% same
Wrote their own version · 1
- Zengxiansheng007/skills-old★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- aegis-gatewaySkill
- agentic-engineeringSkill
- agent-protocol-stack-2026Skill
- agents-that-run-for-daysSkill
- deploy-vercel-renderSkill
- enterprise-ai-architectSkill
- git-commit-authorSkill
- governed-ai-stackSkill
- grill-with-contextSkill
- hitl-side-effectsSkill
- honest-status-tableSkill
- langgraph-orchestrationSkill
- loop-engineeringSkill
- mcp-tool-exposureSkill
- portfolio-adrSkill
- production-observabilitySkill
- repo-fix-prSkill
- setup-vpeetla-skillsSkill
- tdd-agent-loopsSkill
- vllm-inferenceSkill
The file
Files
RAG Governance
Principles
- Access before ranking — filter by tenant/role before vector search. This only holds if
tenant/role/clearance come from a verified identity (JWT/OIDC claims) — never trust
these fields if they arrive as plain request-body values with no signature behind them.
enterprise_rag_platformshipped with client-asserted Principal fields for a while before this was caught and documented (see itsdocs/adr/0004-api-auth-and-principal-trust.md) — don't repeat that when wiring a new access-aware RAG endpoint. - Citations required — every answer cites chunk IDs
- HITL for sensitive — low confidence or PII-tagged chunks → gateway pause
Hybrid retrieval
query → embed → vector + BM25 → merge (hybrid_alpha) → rerank → top_kVAP strategy adapter
enterprise_ragstrategy in venkat-ai-platform delegates to Enterprise RAG API- Env:
ENTERPRISE_RAG_API_URL
LoopForge tuning (ODAEU)
top_k,hybrid_alpha,rerank_thresholdversioned in RAG config tree- Lessons stored when eval fails
Reference
enterprise_rag_platform— Qdrant adapter, OTLP exportloop-engine-agent-platform/src/loop_engine/rag/
Tests
- Golden queries with expected chunk IDs
- Access denial: user without role gets empty retrieval, not leaked chunks
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

