Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Task contracts and independent acceptance checks
- A harness turns goals into executable boundaries and verifiable artifacts. The model may change the solution, but cannot manufacture success by changing permissions or acceptance criteria. Recovery rebuilds the working view from facts rather than treating a progress summary as authoritative system state.
How does the mechanism work?
Step-by-step explanation
- How to prevent the Agent from modifying the acceptance criteria to pass itself?
When the model controls the candidate implementation, check again whether it also controls the grader.
- A constraint is lost after context compression. How to find out the details at runtime?
Summarization is lossy and hard limits cannot rely solely on model memory.
- What should I do if the recovery record is inconsistent with the current repository version?
Persisted state may lag behind the actual environment, so reconcile facts before resuming.
Foundation · Understand the concepts
Derive ownership and invariants
Objectives of this level: Separate a claimed pass from required business evidence.
Visual guide · Facts outrank a pass flag
The checker binds terminal state, tenant/task receipts and cost. Fixture labels are trusted inputs here; real receipt provenance needs an independent authority. Select the figure to open it at full size.
What is the harness proving?
A model supplies candidate actions and explanations. The harness owns the surrounding execution contract: authenticated task identity, allowed capabilities, budgets, persisted progress and an acceptance decision grounded in independent facts. For an after-sales task, “I refunded it” is a claim; a current tenant-scoped service receipt is evidence. A tool returning HTTP 200 is only transport success until its business outcome is checked.
Separate three records: the requested goal and acceptance version; the working context used to reason; and the authoritative business ledger. A summary may help reconstruct context, but cannot create a receipt or restore revoked permission. A model may revise its plan within the goal; changing the goal or acceptance policy needs a distinct authorized revision.
| Observation | Can it establish completion? | Missing fact |
|---|---|---|
| claimed_passed=true, receipt absent | No | Required business effect |
| claimed_passed=false, valid scoped receipts, successful state, cost in limit | Yes under this local contract | None of the stated checks |
| Required receipt plus a foreign-tenant extra receipt | No | Scope integrity |
The fixture's receipt.valid is a trusted adapter input. A caller writing valid=true is not an authenticating adapter. This distinction is the first boundary to explain before writing the checker.
Continue the same implementation
Use the complete function contract and reproduction commands in the implementation layer. Public cases remain in cases/harness-contract.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
What is the harness proving?
A model supplies candidate actions and explanations. The harness owns the surrounding execution contract: authenticated task identity, allowed capabilities, budgets, persisted progress and an acceptance decision grounded in independent facts. For an after-sales task, “I refunded it” is a claim; a current tenant-scoped service receipt is evidence. A tool returning HTTP 200 is only transport success until its business outcome is checked.
Separate three records: the requested goal and acceptance version; the working context used to reason; and the authoritative business ledger. A summary may help reconstruct context, but cannot create a receipt or restore revoked permission. A model may revise its plan within the goal; changing the goal or acceptance policy needs a distinct authorized revision.
| Observation | Can it establish completion? | Missing fact |
|---|---|---|
| claimed_passed=true, receipt absent | No | Required business effect |
| claimed_passed=false, valid scoped receipts, successful state, cost in limit | Yes under this local contract | None of the stated checks |
| Required receipt plus a foreign-tenant extra receipt | No | Scope integrity |
The fixture's receipt.valid is a trusted adapter input. A caller writing valid=true is not an authenticating adapter. This distinction is the first boundary to explain before writing the checker.
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.
Reading this browser’s record…
Hide the answer and check your understanding
Why may claimed_passed=False still pass?
Expand reference derivation
The claim is not evidence. Valid task-scoped receipts, success state and bounded cost satisfy the explicit business contract.
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.