large-payload-completeness
Skill2 starsChanged 6 months agoMITView on GitHub
Verify large payload fetches are COMPLETE — anti silent-truncation. Cross-check size vs expected, follow all pagination cursors. Use when fetching from paginated APIs, large databases, HAR files, log dumps, transcripts, or any payload >50k chars.
In this repository30 other files it gives its agents.
- adr-spec-gateSkill
- agent-continuity-loopSkill
- agent-flywheelSkill
- agent-runtime-paritySkill
- business-guardrailsSkill
- compact-instructionsSkill
- debug-protocolSkill
- dns-and-whois-toolsSkill
- docs-as-codeSkill
- engineering-standardsSkill
- excellence-no-intermediatesSkill
- git-pr-rulesSkill
- hooks-for-enforcementSkill
- hooks-multi-tool-paritySkill
- iac-first-commitSkill
- impact-metrics-gateSkill
- ledger-auto-updatesSkill
- llm-model-selectionSkill
- local-service-autostartSkill
- multi-phase-sessionSkill
- new-projectSkill
- notion-apiSkill
- notion-batch-patternSkill
- observability-when-to-addSkill
- permanent-learning-protocolSkill
- progress-md-businessSkill
- reactive-integration-designSkill
- secure-secret-inputSkill
- tokens-taxonomySkill
- version-bump-rulesSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 9 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When fetching a large payload (database queries, API responses, log dumps, HAR files, transcript extracts, or any source exceeding ~50k …
- Distinctive: line 23
If the source is known to contain 337k characters and the fetch returned 90k, the gap of 247k must be explained.
- Distinctive: line 24
Do not assume "the important bits came through." Do not assume "rest is probably duplicate or low-value." Declare the gap explicitly.
- Distinctive: line 33
Do not just say "I read the source" without quantifying what fraction you actually covered.
- Distinctive: line 34
If the expected size is unknown, estimate or declare the estimate ("this file appears to be ~500 lines.
- Very specific: line 37
If one fetch method returns N items, verify with a count or length check from the same source (e.g., log.entries.length vs.
- Distinctive: line 38
If two tools should return the same data, compare their sizes.
- Distinctive: line 42
If you constructed a summary from the first page of results and didn't check pagination, the summary may sound plausible while being …
- Distinctive: line 51
This is the moment to apply the gate: Stop. Verify coverage before proceeding.
- Distinctive: line 63
Before you claim "I have read everything from source X":
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Verify Large Payload Fetches Are COMPLETE — Anti Silent-Truncation
When fetching a large payload (database queries, API responses, log dumps, HAR files, transcript extracts, or any source exceeding ~50k characters), you must explicitly verify completeness before claiming you have read everything.
Why This Matters
Silent truncation is a particularly dangerous failure mode because coherent output masks incomplete data. An AI can produce a plausible, well-reasoned response based on the first chunk of a paginated fetch without realizing 60–70% of the source is missing. The response sounds complete and internally consistent, which fools both the AI and the human reader into believing the analysis is based on the full dataset.
Real-world example: An agent was asked to build a comprehensive report from a large database across multiple rounds of data collection. The agent fetched in chunks and implicitly assumed completeness. The response was coherent. Only later, when the human questioned a specific detail, did re-inspection reveal that a substantial middle section (containing critical data) and the final portion were silently skipped. The first chunk had been sufficient to construct a seemingly complete narrative, masking the gap.
The cost: rework, missed details in the deliverable, and erosion of trust.
Mandatory Gate — Before Operating on Fetched Content
Apply this gate every time you fetch a large payload:
- Cross-check size returned vs. expected.
- If the source is known to contain 337k characters and the fetch returned 90k, the gap of 247k must be explained. An unexplained gap means the fetch is incomplete.
- Do not assume "the important bits came through." Do not assume "rest is probably duplicate or low-value." Declare the gap explicitly.
- Follow all pagination cursors to completion.
- For paginated APIs: follow
next_cursor,next_page,has_more: false, or equivalent end-of-list signal provided by the source. - Confirm explicitly that the source has signaled "end of data" — do not stop because you got enough results to construct an answer.
- Common sources: Notion databases and pages, GitHub API, Stripe API, any REST API with
pageorcursorparameters, HAR fileentriesarray, JSON Lines log files.
- For paginated APIs: follow
- Declare coverage explicitly before claiming completeness.
- Example: "I fetched characters 0–90k of an expected 337k total (27% coverage). The remaining 73% is unread."
- Do not just say "I read the source" without quantifying what fraction you actually covered.
- If the expected size is unknown, estimate or declare the estimate ("this file appears to be ~500 lines; I read 156").
- Cross-check with a different tool or metric when viable.
- If one fetch method returns N items, verify with a count or length check from the same source (e.g.,
log.entries.lengthvs. payload size estimate). - If two tools should return the same data, compare their sizes.
- If one fetch method returns N items, verify with a count or length check from the same source (e.g.,
- Be suspicious of coherent output.
- An answer that "makes sense" and "reads well" is not evidence of complete data. Coherence is cheap; verification is costly.
- If you constructed a summary from the first page of results and didn't check pagination, the summary may sound plausible while being systematically biased toward early results.
Symptoms and Detection
Watch for this pattern during your own work:
- You have fetched data and are about to declare findings or close the task.
- You feel confident in your answer.
- But you have not explicitly verified that you read the entire source.
This is the moment to apply the gate. Stop. Verify coverage before proceeding.
When to Apply This Skill
- Fetching from any paginated API (REST, GraphQL, custom) — verify all pages/cursors are consumed.
- Reading large files (>~50k characters): log dumps, HAR files, JSONL transcripts, CSV exports, database dumps.
- Querying databases where result count may exceed a page limit.
- Building any deliverable (report, analysis, audit, summary, recommendation) from a large source — the cost of incompleteness is high, and the buyer will likely notice missing data.
- Extracting data from multi-page documents or sources that logically span multiple requests.
Checklist
Before you claim "I have read everything from source X":
- Expected size of source is known or estimated (e.g., "API returns up to 1000 results per page; I expect ~20k items total")
- Actual size fetched is known (e.g., "I fetched 45 items across 3 pages" or "the response body is 234k chars")
- Size reconciliation is explicit (e.g., "I have 45 items from 3 pages; the API returned
has_more: false, so 45 is the complete set") - Pagination cursors (if applicable) were exhausted (
next_cursoris null,has_moreis false, or no 4th page exists) - Coverage as a percentage is stated when feasible (e.g., "100% of API results" or "characters 0–234k of ~450k expected")
Applies to: all AI agents, all projects. This is a specialization of the broader "evidence-based operation protocol" that focuses on a specific failure mode: silent truncation from incomplete pagination or chunked fetches. It does not replace that broader protocol; it reinforces one mode of failure that is easy to miss when the partial output is coherent.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

