Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Bind code changes to acceptance evidence
- Evidence of code delivery must be bound to the actual commit and environment. Acceptance goals are determined by tasks and protected constraints, and the Agent cannot make a change appear complete by deleting tests, hiding failures, or reusing old results.
How does the mechanism work?
Step-by-step explanation
- Is the Agent complete after deleting the failed test?
Task completion requires protecting acceptance criteria from changes by the executor.
- How to distinguish regression when existing tests fail?
Existing systems often have failures, so use a fair before-and-after comparison.
- Can the previous test results be reused after modification?
Acceptance evidence applies to a specific version; later changes may invalidate it.
Foundation · Understand the concepts
Understand the principle · Bind code changes to acceptance evidence
Objectives of this level: Distinguish revision-bound evidence from an Agent’s success claim.
Visual guide · Bind delivery to the changed source
A green result from an old revision cannot accept a new patch. The local evidence function is separate from actual Java source, build and regression execution. Select the figure to open it at full size.
Same after-sales project
A coding Agent proposes a Java refund-deduplication patch. Changed paths, source revision and actually executed build/regression records must align. The Python function below evaluates a local evidence contract only; passing it cannot replace a Java source/build delivery or a target JD’s Java language requirement.
The existing capstone main-return creates a return application; it does not execute a refund. These manifests are independent fictional extensions or policy/evidence/counting exercises. They do not add real refunds, publication, model calls or Java execution to the capstone runtime.
Read complete fixtures
current-green-evidence
{
"revision": "r2",
"allowed_paths": [
"src/AfterSalesReceipt.java"
],
"changed_paths": [
"src/AfterSalesReceipt.java"
],
"events": [
{
"kind": "build",
"revision": "r2",
"executed": true,
"exit_code": 0
},
{
"kind": "regression",
"revision": "r2",
"executed": true,
"exit_code": 0
}
],
"baseline_exit": 1
}
Expected
{
"expected": {
"delivery": "evidence_complete",
"reasons": []
},
"error": null
}
stale-build
{
"revision": "r2",
"allowed_paths": [
"src/AfterSalesReceipt.java"
],
"changed_paths": [
"src/AfterSalesReceipt.java"
],
"events": [
{
"kind": "build",
"revision": "r1",
"executed": true,
"exit_code": 0
},
{
"kind": "regression",
"revision": "r2",
"executed": true,
"exit_code": 0
}
],
"baseline_exit": 1
}
Expected
{
"expected": {
"delivery": "review_only",
"reasons": [
"build_not_executed"
]
},
"error": null
}
bool-exit
{
"revision": "r2",
"allowed_paths": [
"src/AfterSalesReceipt.java"
],
"changed_paths": [
"src/AfterSalesReceipt.java"
],
"events": [
{
"kind": "build",
"revision": "r2",
"executed": true,
"exit_code": false
},
{
"kind": "regression",
"revision": "r2",
"executed": true,
"exit_code": 0
}
],
"baseline_exit": 1
}
Expected
{
"expected": null,
"error": "ValueError:input"
}
Reason before coding
Current green evidence is complete because both events bind r2 and the baseline is red. A green build for r1 leaves build_not_executed for r2. A bool false exit code is malformed, not integer zero.
Write your predicted decision, evidence used and evidence still absent for each sample before running anything. Match the complete protocol in the implementation track; the examples alone are not the entire contract.
Responsibility boundary
Four tracks are learning methods, not job levels. Junior candidates own bounded code and a counterexample; intermediate candidates own integration/recovery and changed-business evidence; senior candidates add architecture, isolation/migration/incident ownership and one specialty. Real API and JD-required production experience stay separate evidence gates. A fixed local pass is not a learner mastery or hiring certificate.
code example
Read the visible decision evidence
Current green evidence is complete because both events bind r2 and the baseline is red. A green build for r1 leaves build_not_executed for r2. A bool false exit code is malformed, not integer zero.
Before running, name one fixture assumption you would need to replace with trusted service evidence.
Acceptance task for this level
Before execution, annotate the three visible fixtures with decision, gate order, known fact and missing evidence; then compare your predictions with the supplied expectations. Contract: assess_patch_delivery(payload).
Reading this browser’s record…
Hide the answer and check your understanding
Can Python fixture tests satisfy a Java JD?
Expand reference derivation
No. Deliver Java source, actual build/test outputs and the language-specific interview work separately.
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.