Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Computation, references, and consistent snapshots for large results
- The working input of the model can be small, and the computational basis for the conclusions cannot be silently reduced. The complete data is saved in the controlled artifact, the value calculated by the program is determined, and the model is read and interpreted on demand; citations, pagination and abstracts must indicate the version, scope and completeness.
How does the mechanism work?
Step-by-step explanation
- There are 100 rows on the previous page. Can you give the total amount directly?
Context truncation changes what is visible; it must not silently change the scope of conclusions.
- What should I do if the artifact reference is obtained by another tenant?
Externalizing data reduces context load but introduces a separate read boundary.
- How to handle underlying data updates during paging?
Pagination requires consistency across pages as well as splitting results into chunks.
Debugging · Diagnose failures
Trace counterexamples and failure windows
Objectives of this level: Repair a sample falsely labelled complete and a revoked reference still exposed.
Visual guide · Small context, complete computation
The packer separates observed sums from full totals. Incomplete pages keep total=null; artifact references still require current authorization on later reads. Select the figure to open it at full size.
Find the first point where coverage or authority was lost
Probe four failures independently. A full row count with a non-null final next_cursor is still incomplete. Duplicate row IDs are row_duplicate, not extra evidence. A page from a different snapshot/query is snapshot_binding even when its monetary sum looks plausible. An artifact from an old permission epoch is stale_reference even after the user is granted access again.
Check identities before aggregation and URI checks, following the published precedence. Otherwise a malformed URL may hide a more important tenant mismatch, and partial sums may be emitted from unauthorized data. Verify that text truncation changes only the working context: complete independent summary and artifact metadata must survive.
A matching snapshot string does not force a database to hold a consistent snapshot. A matching hash string does not prove the file was read. If the service's expected_rows was computed under a different transaction, the local completeness verdict rests on a false premise. Preserve the query plan/snapshot token and inspect the adapter boundary before blaming model arithmetic.
Continue the same implementation
Use the complete function contract and reproduction commands in the implementation layer. Public cases remain in cases/tool-result-artifacts.json inside the existing extended-agent-practice-v1.zip. These are local fixtures, not remote-model or production-load measurements.
code example
Trace counterexamples and failure windows
Find the first point where coverage or authority was lost
Probe four failures independently. A full row count with a non-null final next_cursor is still incomplete. Duplicate row IDs are row_duplicate, not extra evidence. A page from a different snapshot/query is snapshot_binding even when its monetary sum looks plausible. An artifact from an old permission epoch is stale_reference even after the user is granted access again.
Check identities before aggregation and URI checks, following the published precedence. Otherwise a malformed URL may hide a more important tenant mismatch, and partial sums may be emitted from unauthorized data. Verify that text truncation changes only the working context: complete independent summary and artifact metadata must survive.
A matching snapshot string does not force a database to hold a consistent snapshot. A matching hash string does not prove the file was read. If the service's expected_rows was computed under a different transaction, the local completeness verdict rests on a false premise. Preserve the query plan/snapshot token and inspect the adapter boundary before blaming model arithmetic.
Acceptance task for this level
Use the faulty function below in the learner module, grade the same inputs to a before report, then write your own repair/diff and rerun. Do not edit cases or expected values. The defect is given: this is public repair, not unseen independent diagnosis.
Reading this browser’s record…
Hide the answer and check your understanding
Which unchanged assertion catches the known sample-as-total bug?
Expand reference derivation
incomplete-page-never-total must keep complete=False and total_cents=null. authority-revoked separately requires ValueError:current_permission before exposing context or metadata.
Further explanations and practice
When encountering unfamiliar principles, first read the implementation, continuous questioning and migration cases, and then independently explain the premise and boundaries. Answers and notes are saved to the original account record.
All linked explanations and exercises (1 )
Sources and verification scope
The principles are based on public information; the numbers, cases and tasks are the teaching design of this website. Offline experiments verify the range noted on this page, and the learning effect still needs to be judged through independent tasks and feedback.