Skip to content
Agent Field Notes
Course contentsExpand a topic to choose a lesson.

SYSTEMATIC LEARNING / FOUR-LEVEL COURSE

Computation, references, and consistent snapshots for large results

Examine output contracts, paging, artifact references, and deterministic calculations.

Learning objectives: 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.

Content checked: 2026-10-30 · Each level has independent explanations, tasks and inspections

Choose a starting point based on your familiarity with this topic. Current level: Foundation · Understand the concepts. After completing the task, continue to the next level. Reading and self-checks alone do not establish mastery.

On this level

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
  1. 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.

  2. What should I do if the artifact reference is obtained by another tenant?

    Externalizing data reduces context load but introduces a separate read boundary.

  3. How to handle underlying data updates during paging?

    Pagination requires consistency across pages as well as splitting results into chunks.

Foundation · Understand the concepts

Derive ownership and invariants

Objectives of this level: Derive full versus partial totals and the source of current read authority.

Visual guide · Small context, complete computation

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.

Keep computation complete while keeping context small

Ten sample rows can illustrate a report, but cannot establish a total over one hundred thousand rows. Compute over an authoritative complete snapshot outside the model, return a bounded explanation, and retain a scoped artifact reference for inspection. A smaller prompt must not silently become a smaller computational basis.

The fixture separates observed_sum_cents from total_cents. If expected_rows=3 but only two rows totaling 30 cents arrived, report observed 30 and total=null. Once every row is present and the page chain terminates, total may be established under the declared trusted snapshot contract. Monetary arithmetic uses integer cents.

Artifact metadata and inline text have separate budgets. budget_chars limits Python Unicode code points in text prefixes; it is neither a token budget nor a cap on the complete serialized response. A URI and hash describe a claimed object until an authenticated storage adapter verifies its bytes and current access.

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

Derive ownership and invariants

Keep computation complete while keeping context small

Ten sample rows can illustrate a report, but cannot establish a total over one hundred thousand rows. Compute over an authoritative complete snapshot outside the model, return a bounded explanation, and retain a scoped artifact reference for inspection. A smaller prompt must not silently become a smaller computational basis.

The fixture separates observed_sum_cents from total_cents. If expected_rows=3 but only two rows totaling 30 cents arrived, report observed 30 and total=null. Once every row is present and the page chain terminates, total may be established under the declared trusted snapshot contract. Monetary arithmetic uses integer cents.

Artifact metadata and inline text have separate budgets. budget_chars limits Python Unicode code points in text prefixes; it is neither a token budget nor a cap on the complete serialized response. A URI and hash describe a claimed object until an authenticated storage adapter verifies its bytes and current access.

Acceptance task for this level

For the three inputs, write each output/error by hand and identify the source of trusted facts; explain which expected fields encode business rather than transport success.

Acceptance self-checks

Reading this browser’s record…

Hide the answer and check your understanding

When may a sample sum be called the full total?

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.