Pre/Post Context Compaction Information Retention Verifier
verify_context_compaction_fidelityAudits a compacted conversation summary against the original full context to detect dropped user constraints, lost file paths, altered numbers, or missing pending tasks. Use when verifying that an LLM context-compaction summary retained all task-critical facts before truncating history; for generating a new executive summary from a raw technical document, use summarize_technical_document instead. Read-only edge call (32 KB, 60 RPM): accepts 'original_context' ('compacted_summary' defaults to 'standard'), supports '?demo=true' or L402 (15 sats), and returns HTTP 400 if invalid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| audit_focus | No | Entity class prioritized during retention scoring; defaults to 'constraints_paths_and_numbers' when omitted. | |
| original_context | Yes | Full pre-compaction conversation history or task log. | |
| compacted_summary | Yes | Candidate compacted summary to audit for dropped constraints or entities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| safe_to_resume | Yes | True when retention_score >= 0.90 and zero critical constraints were lost. | |
| retention_score | Yes | Information preservation score from 0.0 to 1.0. | |
| preserved_entities | Yes | Critical constraints, paths, and numbers verified present in the summary. | |
| missing_critical_entities | Yes | Important entities or constraints dropped during compaction. |