input-audit: Did the LLM actually process all of your input?
Models almost never say, "I didn't read page 37." They produce a fluent, confident, seemingly complete answer based on what they saw. What gets omitted is often not noise, but the most critical pieces: a password that flashed for one second, a conclusion on a scanned page, a real decision hidden in speaker notes, or contradictory numbers in a hidden worksheet.
This skill does one thing: turns "done processing" from a feeling into a number.
How input gets silently dropped
| Input | Common ways it’s lost | How this repo checks and fixes it |
|---|---|---|
| Video | Only extracting a fixed number of frames or a fixed frame rate; fleeting cards, prices, passwords, or single PPT slides never get captured | inventory.py estimates frame sampling interval; coverage.py video calculates how many visual states each sampling strategy sees; screen-and-ocr/slide_changes.py captures frames per scene change, even for flash frames |
| Audio | Only processing the first audio track; VAD treats whispers or singing as silence; hallucination filtering deletes genuine speech; music segments have no text | coverage.py audio: segments with sound but no text, or text without sound (suspected hallucination) |
| Images | Long edge exceeds vision limit (Claude ~1568 px) and gets resized; long screenshot text becomes blurry; animated GIF only shows one frame | inventory.py calculates scaling factor; docs-and-images/tile_image.py tiles the image; coverage.py image |
| Scanned pages have no text layer; numbers in charts are not in the text layer; multi-column text is read out of order; very long PDFs get truncated | inventory.py finds scanned pages; docs-and-images/pdf_extract.py + OCR; coverage.py pdf | |
| Office | Speaker notes, hidden slides, comments, revisions, hidden worksheets, headers/footers, footnotes, embedded images | inventory.py counts each item; docs-and-images/office_extract.py full extraction; coverage.py office |
| Text | Truncated beyond context window; "middle losses" in long texts; wrong encoding causing garbled text | inventory.py checks against context budget and detects encoding; reads in chunks and records which chunks were read |
| Archives | Never unpacked | inventory.py prompts to unzip first, then re-inventories after unpacking |
| Tool output | Command output truncated due to length; paginated results only retrieved the first page | Save output to disk and read in segments; paginate and retrieve all pages, recording total count |
| Upstream agent | Summary is treated as original; downstream agent cannot know what was missed upstream | Handoff must include both ledger and coverage reports (see below) |
Three ledgers
-
Inventory ledger (before processing): What the total input is, and what a quick read would miss.
python ${CLAUDE_SKILL_DIR}/scripts/inventory.py inputs/ --out ledger.json --md ledger.md \ [--vision-max 1568] [--uniform-frames 16 32] [--context-chars 200000]For each file, lists: total quantity (seconds, frames, pages, images, sheets, characters), risks (high-risk items bolded), and recommended processing path.
-
Processing ledger (during processing): Every step produces intermediate files with timestamps or page numbers, e.g.,
asr.jsonl,segments.json,pages.jsonl,office/*.md,tiles/index.json. -
Coverage ledger (after processing): Compares intermediate files against the real input, calculates coverage, and lists gaps.
python ${CLAUDE_SKILL_DIR}/scripts/coverage.py audio --media clip.mp4 --asr asr.jsonl --cov coverage.json python ${CLAUDE_SKILL_DIR}/scripts/coverage.py video --segments slides/segments.json [--subs subs/subs.json] --cov coverage.json python ${CLAUDE_SKILL_DIR}/scripts/coverage.py pdf --pages report/pages.jsonl --ocr ocr.json --cov coverage.json python ${CLAUDE_SKILL_DIR}/scripts/coverage.py image --image long.png --tiles tiles/index.json --cov coverage.json python ${CLAUDE_SKILL_DIR}/scripts/coverage.py office --ledger ledger.json --found office/deck.pptx.found.json --cov coverage.json python ${CLAUDE_SKILL_DIR}/scripts/coverage.py summary --cov coverage.json --md coverage.md --min 0.98 # exit code 1 if below threshold
If coverage is below the threshold, do not conclude. First process the gaps; if they can't be processed, explicitly state them in the answer.
Every response includes a coverage statement
Processed: 50s video (speech 33/33s, visual 7/7 states), PDF 2/2 pages (page 2 scanned, OCR'd), long screenshot read as 4 tiles, PPT 2/2 slides with 1 speaker note, Excel 2/2 sheets (including 1 hidden sheet). Not processed: 1 embedded image in notes.docx. Suspect: 7 discrepancies between spoken audio and subtitles; corrected against original video.
This statement is cheap to produce but tells the reader (human or next agent) how trustworthy this answer is.
Multi-agent collaboration protocol
- When handing off results: Include
ledger.md,coverage.md, and a list of suspected issues. See the template inexpressive-output/references/templates.mdunder "Agent handoff form." - When receiving results: First check the other agent's coverage statement. Any summary without a coverage statement is treated as "unverified"; key conclusions must be cross-referenced back to timestamps or page numbers in the original.
- When dividing work into chunks: Each chunk records its scope (seconds range, page range). Before aggregation, verify that the union of all chunks covers the entire input.
- Never replace the original with a "summary of a summary": When aggregating, if contradictions arise, go back to the original, not between two summaries.
Real-world test (examples/short-video: a folder, 6 files, all synthetic)
| Quick read method | What was missed | After full processing |
|---|---|---|
| Uniformly sample 8 / 16 frames from video | 2 pieces of information that flashed for 1s each, seen 0/2 and 1/2 respectively | Scene-change detection captured only 7 images; 7/7 visual states all retrieved |
| Only read PDF text layer | Conclusion and budget limit on page 2 (scanned); coverage 50% | After OCR, 2/2 pages |
| Look at long screenshot directly | Entire image scaled to 0.31x; delivery time on last line unreadable | Tiled into 4 pieces, each read at 1.0x |
| Only read slide body | Speaker note "Decision made: choose B" and hidden slide "Supplier may be delayed by two weeks" | 3/3 items |
| Only read Word body | Comment "Fix this, don't send yet" | 1/1 |
| Only read first worksheet | 130 in hidden sheet contradicts 100 in summary sheet | 2/2 worksheets |
8 critical pieces of information; quick read captured at most 1 of them; after full processing, all 6 inputs achieved 100% coverage.
Notes
- 100% coverage does not equal perfectly correct: It only indicates that every part was processed. Recognition errors must be caught by cross-modal verification (
timeline-fusionautomatically compares subtitles with speech) and quantitative evaluation (quality-eval). soundandspeechmetrics:speechuses Silero VAD, the same detector used for transcription;soundis an independent energy detector, including music and noise. Gaps insoundare either music or untranscribed speech; each gap must be manually confirmed (listen, or check SenseVoice event labels).--vision-max: The default of 1568 is Claude's value; change it to the appropriate limit for other models.- Frame sampling estimation is a model: It describes the consequences of a "uniformly sample N frames" strategy, not the actual behavior of any specific product.