Skip to main content

Module knowledge

Module knowledge 

Source
Expand description

Ranked, byte-capped docs/knowledge/ injection for planning seeds (slice 2).

Separate from the lessons budget (crate::lessons::LESSONS_INJECT_MAX_BYTES). Missing vault → inject nothing. Stale notes and notes without verified_against are excluded from automatic injection.

Boundary note (positioning ADR, frozen surface): context-MANAGEMENT features — retrieval pipelines, memory systems, dynamic context optimization — are frozen; this is a capped, ranked, auditable injection, deliberately not a context engine (docs/knowledge/decisions/positioning-governance-evidence-layer.md).

Structs§

KnowledgeQuery
Inputs that drive note ranking for a planning or revised-planning seed.
RefreshFinding
One vault note’s refresh result.
RefreshReport
Report-only drift check over docs/knowledge/ (slice 3).

Enums§

RefreshVerdict
One citation verdict from refresh_knowledge.

Constants§

KNOWLEDGE_INJECT_MAX_BYTES
Hard cap (bytes) on the rendered knowledge block — D-C / ticket.

Functions§

refresh_knowledge
Walk the vault and report drifted / missing / unverified citations.
render_knowledge_for_planning
Render a ≤4 KiB knowledge block, or None when the vault is missing/empty of injectable content.