Governed context assembly v1

This is an additive contract for evidence packages. It does not change the frozen Bundle Wiki profile or the OKF 0.2 core.

The TypeScript contract is maintained in apps/okf-explorer/src/lib/context/types.ts. Validate JSON with scripts/check_context_assembly.py; the schema registry resolves these local files only. Unknown fields are rejected. Missing provenance and authority remain representable where the engine needs to report incomplete evidence: passing shape validation alone is not evidence sufficiency. Runtime validation also rejects non-string review status, invalid original assertion IRIs and undeclared alias-object fields before assembly.

Package identity is SHA-256 of canonical JSON with context_id and budget.used_bytes omitted. The final byte count measures the complete UTF-8 JSON package. Evidence items are retained whole or omitted with a reason. The package never contains a generated AI answer.

See the implementation guide and evaluation method.

Optional full-source discovery

The governed package may contain a retrieval object recording whole-page lexical candidates, corpus coverage, query terms, transfer budgets and omissions. This is separate from concept resolution and completeness requirements. See the full-source decision.

Optional logical evidence units and corpus v2

See the decision for source-inclusion, whole-unit and authority boundaries. The consumer checks cross-field offsets, ordering, fragment hashes and budgets in addition to these shape schemas.