Prompt #141
Back to promptsRAG Governance Knowledge Page Section
- Variables
- section_name, section_slug, tag_filter
- Tags
- stack-aware,rag-stack,governance,ap56,knowledge,lessons
- Source
- research-2026-05-01-stack-aware
- Use count
- 0
- Created
- 2026-05-01T18:30:48.776731+00:00
- Updated
- 2026-05-01T18:30:48.776731+00:00
Content
Add a new section to the rag-stack /governance/knowledge/ page following AP56 patterns.
The Knowledge Governance Board UI lives in:
- Blueprint: src/rag_stack/web/knowledge_governance_ui.py
- Template: templates/self_service/knowledge_governance.html
- URL pattern: /governance/knowledge/{section_slug}
Your section ({section_name}) should:
1. Display lessons with status=proposed filtered by tags containing `{tag_filter}`
2. Show contradiction signals (AP11) for the section's topic area
3. Provide approve/deprecate actions (POST /api/v1/lessons/{id}/status)
4. Reference trust_level column to visually distinguish internal/code vs untrusted/web
Include Jinja2 template snippet and the Flask route handler in knowledge_governance_ui.py.
Follow AP56: every governance page must show provenance + confidence + author for each lesson.