Skip to content
Agent Field Notes
Practice topicsFilter practice questions by topic.All practice →
knowledge unit 03IntermediateSystem designAbout 12 minutes

Understand → Implement → Debug → Design

Acceptance is an evidence contract, not a prose impression

Measure outcome and constraints separately, then show why A/B averages cannot cancel an extra effect.

Reviewacceptance contractReturnRelease access control

Knowledge content check2026-10-11 · Check the source of the original question2026-10-11

Which step do you want to learn from this knowledge point?

Select the starting point based on the current basis, or you can go deeper one by one. When you encounter an unfamiliar concept, go back to the core principles first; use the knowledge exercises to check your understanding when you are finished.

Understand first

New to this knowledge point

Complete the prerequisite concepts, read the principles and counterexamples, and then explain why in your own words.

Start with core principles →

Implement next

Prepare to write the principles into code

Understand implementation steps and boundaries, complete small tasks, and check results against acceptance requirements.

View the code example →

Debug failures

Need to handle failures and changes in conditions

Follow the continuous questioning to locate the failure premise, and then compare the migration cases to explain how the plan should be adjusted.

Continue to delve deeper into the problem →

Compare designs

Need to design or review plans

Combine engineering deductions and senior self-evaluation standards to explain the applicable conditions, costs and alternatives of the plan.

Analyze engineering scenarios →
Knowledge unit directory

LEARN · PRACTICE · REFLECT

Knowledge learning and personal records

My notes and review ↗

First read along the principles, Q&A and migration cases. When you need to check your understanding, switch to reinforcement exercises or start personal recording.

Answers and personal notes

Each modified commit will be kept as an independent history. Your level of mastery is up to you to evaluate yourself against the standards.

Core concept · Acceptance is an evidence contract, not a prose impression

Understand the core principles first

Preparatory concepts:Authoritative artifacts and effect receipts, Hard constraints versus quality scores, Task/trial identity and independent semantic review

Required outcomes and prohibited behaviors need observable evidence and separate verdicts before an aggregate can inform release.

Visual guide · Two independent gates control release

Two independent gates control release

A quality average cannot offset forbidden effects. A run with no violations still needs acceptable business outcomes. Select the figure to open it at full size.

A report can be present but unauthorized, or eloquent but unsupported. A tool trajectory can differ from a reference and still satisfy the task. The acceptance contract must decide what evidence matters before seeing the output so the grader does not reward superficial similarity.

The executable counts show a stronger evaluator exposing errors that narration hides. They do not prove the hypothetical agent itself was fixed. Continue the evaluation course for repeated attempts, confusion statistics and assumption-based bounds.

The local checklist has two separate gates: hard_constraint_gate checks authorization/effects/budgets, while quality_gate checks a declared minimum trial success ratio (the teaching default is 1.0). An all-failed dataset can satisfy the hard constraints and must still be blocked by quality_gate. release_gate permits only when both permit. Choose product thresholds before inspecting the candidate scores; this fixture gate does not establish production readiness, dataset coverage or semantic quality.

Acceptance: from actual evidence to separate verdicts
  1. 1
    Task contract

    Fix inputs, required evidence, prohibited actions, and budgets. Keep labels out of model input.

  2. 2
    Run record

    Bind prompt/model/data versions; retain tool events, artifacts, and business receipts.

  3. 3
    Hard gates

    Check authorization, structure, citations, budgets, and effect counts separately. An average score cannot offset a dangerous failure.

  4. 4
    Semantic review

    Check each free-form claim. Mark this dimension not_scored when review has not been performed.

  5. 5
    Comparison

    Keep all attempts; report task counts, repetitions, denominators, failures, and unscored dimensions.

This experiment contains 8 authored tasks × 3 trials per version. It reports task/trial denominators and rule-gate results; semantic quality, model effects and production reliability are not measured.

Check understanding with a question

How do executable acceptance gates prevent a fluent but invalid agent release?

Compare with the reference answer

Define initial state, allowed actions, observable outcome and hard limits before evaluation. Grade business records/artifacts and process constraints independently; calibrate open-text review separately. Preserve task/attempt identities, slices and unscored dimensions. A quality average cannot offset an authorization, duplicate-effect or budget violation under a hard-gate contract.

Implementation and trade-offs

The authored records expose a faulty evaluator: narration_score≥0.8 accepts all 24 A trials. The actual contract combines business_ok with authorization, maximum effect count and budget bounds, producing 16/24 and eight narration false accepts. A cache-based alternate path passes because the contract does not demand one exact trajectory.

Version B has 20/24 passes but still one duplicate-effect and one budget violation. Both release gates block. The mean improved while individual constraints remained unsatisfied; a hard gate cannot be repaid by more successful easy tasks.

The harness stores task_id, attempt, provenance and observation dimensions. It rejects duplicate trial identities and compares versions on paired tasks/attempts. It reports any-success and all-success task counts separately. Semantic narrative review remains distinct; a fluent score is not a business receipt.

The ratios and confusion counts are actually computed over authored fixtures. There was no live model, human rater, measured latency/cost or independent production sample. A real evaluation adds authenticated execution evidence, representative/held-out tasks, versioned agent/judge/data and full-strategy retry assessment. No statistical headline replaces severe-failure regression gates.

The local checklist has two separate gates: hard_constraint_gate checks authorization/effects/budgets, while quality_gate checks a declared minimum trial success ratio (the teaching default is 1.0). An all-failed dataset can satisfy the hard constraints and must still be blocked by quality_gate. release_gate permits only when both permit. Choose product thresholds before inspecting the candidate scores; this fixture gate does not establish production readiness, dataset coverage or semantic quality.

code example

Reproducible local boundary check

Python 3.9+, standard library. Extract /lab/deep-dive/agent-core-deep-dive-v1.zip and run this snippet beside evaluation_deep_dive.py; /lab/deep-dive/evaluation_deep_dive.py is also available. Authored fixtures only; not a live model or external service.

from evaluation_deep_dive import fixtures,summary,demo
a=summary(fixtures('A'));b=summary(fixtures('B'))
assert a['trial_success']['numerator']==16
assert b['trial_success']['numerator']==20
assert b['release_gate']=='block'
failed=summary([dict(r,business_ok=False,authorized=True,effect_count=0,budget_units=0) for r in fixtures('A')])
assert failed['hard_constraint_gate']=='allow'
assert failed['quality_gate']=='block'
assert failed['release_gate']=='block'
print(demo()['narration_only_evaluator']['false_accepts'],b['release_gate'])

expected output

8 block

Engineering deduction

scene
Eight authored task contexts and three attempts per version; narration looks good even when permission or effects fail.
design decisions
Use a business oracle plus separate authorization/effect/budget gates and retain task-level results.
Verify target
A=16/24, B=20/24; both block release. Narration-only A accepts eight invalid attempts.
applicable boundary
These are actual calculations over invented records, not measured agent improvements or production data.

Continuous questions and answers

Continue reading along with the premises and constraints of the problem. Understand the reference answers first, then try to put away the answers and explain the cause and effect and trade-offs in your own words.

Draw inferences from one example: If the conditions change, how to deduce it?

First find out the conditions for change, and then determine which premises in the original plan still hold true. The following cases are teaching deductions to facilitate the transfer of principles to new problems.

Text output becomes an external send

Changing conditions:The outcome changes from a reviewable draft to an irreversible publication.

Extended question:Which acceptance dimensions become hard gates?

Derivation and reference solutions

Current authority, exact approved recipients/content, operation identity, one effect and reliable send receipt. Semantic review still matters, but a high text score cannot authorize sending. Unknown send state needs reconciliation and cannot be turned into non-execution for a neat summary.

The principles that remain unchanged:Hard effect/authority constraints remain independent from prose quality.

Uncertain workload and several feasible architectures

Changing conditions:The design objective changes with unknown future load.

Extended question:How should the evaluator compare solutions fairly?

Derivation and reference solutions

State scenarios and constraints, evaluate correctness under each, and compare cost/latency/maintenance with explicit assumptions and sensitivity. Do not assert measured performance without a representative run. Prefer a reasoned decision with boundaries over an ungrounded universal winner.

The principles that remain unchanged:The evaluation must judge supported reasoning under declared constraints.

Easy to make mistakes

  • Scoring success from the answer text instead of business state.
  • Averaging prohibited effects with prose quality.
  • Requiring an exact trace despite multiple valid solutions.
  • Reporting fixture pass counts as measured model reliability.

References

Official mechanisms were checked on 2026-10-11. Examples and schedules are authored; local Python/SQLite outputs are actually executed. No enterprise incident, live model accuracy or production reliability is asserted. New Q&A and migration cases are added for principle explanation, and source verification and case operation verification are recorded separately.

Check how far you understand

After reading, you can explain the principles, boundaries, and trade-offs against these standards. It is up to you to evaluate your mastery; if further verification is needed, complete the small tasks below.

Basic standards met
Defines outcome, allowed action and hard-gate evidence beyond fluent text.
Intermediate and advanced signals
Reproduces counts, false accepts and valid alternate trajectories using the executable contract.
Senior criteria
Designs paired/held-out evaluation, constraint slices, judge calibration and actual retry-policy measurement with bounded statistical claims.

View verification records for independent examples

Continue to do advanced research experiments

Let reviews read events and actual effects

Differentiate between run success, result contracts, and unscored semantic quality along actual checkpoints, events, and servicer receipts for the same research task.

Read full text and fault analysis → · Download experiment package ↓

python3 cli.py memory-put
python3 cli.py submit
python3 cli.py run
python3 evaluate.py
python3 -m unittest discover -s . -p test_lab.py -v

Keep evidence and check item by item

  • Explain the basis of passed in terms of events and checkpoints.
  • Point out credible observations of scope, references, idempotent effects, and step budgets respectively.
  • Semantic_support and model_quality are not_scored, and passed cannot be written as model quality score.

By default, deterministic summary functions and synthetic documents are used; real operating trajectories and mechanical constraints are evaluated, and there is no semantic support to verify the real model.

Hands-on verificationComplete on demand · Suggestions35 minutes

Run evaluation_deep_dive.py and EvaluationTests. Reproduce narration-only false accepts and A/B hard-gate counts. Write a release contract for a text report and an external send using different evidence obligations.

Expand acceptance requirements and checkpoints
  • A has16/24 and B20/24 passes over 8×3 authored records.
  • The narration evaluator has eight false accepts and the permission slice has three unauthorized trials.
  • B is blocked despite its better average and the alternate valid path is accepted.
  • The report states fixture provenance and semantic/performance dimensions not measured.
  • No hard violations and zero business success: hard_constraint_gate=allow, quality_gate=block, release_gate=block.

Key inspections

  • Names an authoritative outcome oracle and individual hard constraints.
  • Accepts multiple valid paths when required outcome/process facts hold.
  • Reports repeated-trial/task denominators and all failures.
  • Keeps fixture arithmetic, model quality and production risk claims distinct.