create_context_receipt
Creates a context receipt from documents, recording selected and omitted context, dependencies, and risk controls without using an LLM. Optionally saves a recovery bundle for byte-exact omission recovery.
Instructions
Create a Context Receipt from supplied documents.
documents_json may be:
a JSON object mapping source path to text
a JSON array of
[source_path, text]pairsa JSON array of objects with
source_path/textorsource/contentkeys
The receipt records selected context, omitted relevant context, dependency links, fingerprints, token ratio, warnings, and risk controls. It does not call an LLM.
Set recoverable=True to also persist a project-local recovery bundle,
so any omitted chunk can later be recovered byte-exact and verified via
recover_receipt_omission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| recoverable | No | ||
| chunk_tokens | No | ||
| token_budget | No | ||
| documents_json | Yes | ||
| overlap_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |