Reproducible context evidence · MIT + CC BY 4.0
Context assembly manifest fixture
Inspect how one fixed task filters nine synthetic candidates by tenant, scope, data class, and freshness before it ranks or budgets evidence. The bundle includes strict TypeScript, sixteen tests, the reviewed manifest, and its SVG diagram.
Files
Policy before ranking
Cross-tenant, forbidden, unauthorized, and stale candidates are rejected before relevance or authority can affect selection.
Fail-closed evidence
Missing, stale, or oversized required evidence stops assembly before a model payload exists.
Inspectable decisions
Included and excluded sources retain versions, trust labels, token counts, and machine-readable decision reasons.
Verified scope
Sixteen tests cover required-source failures, freshness, tenant and scope isolation, forbidden data, distractor overload, budgeting, prompt injection, deterministic output, stored evidence, and the SVG. The happy path selected 424 of 430 supplied source tokens.