Review the prerequisites
Suitable for: Backend developers learning Agent applications.
- Release and rollback of behavioral configurations
- Agent behavior depends on prompts, models, tools, data, and policies. Releases must identify the complete configuration. Rollback restores conditions for future execution while preserving business facts that already occurred.
How does the mechanism work?
Step-by-step explanation
- How to track model supplier version changes?
Behavior releases depend on provider models, so explain the limits of traceability.
- What should I do if shadow traffic calls the sending tool?
Comparisons using real traffic can involve write tools, requiring protection against duplicate writes.
- Will old tasks automatically become safe after rollback?
After rolling back configuration, handle in-flight tasks carrying old state.
Debugging · Diagnose failures
Diagnose failures · Release and rollback of behavioral configurations
Objectives of this level: Reproduce same-ID conflict and Agent-only API rollback.
Visual guide · Compare the declared release
These deterministic six-case results changed top_k and a prompt tag together. They establish local regression outcomes, not isolated prompt or live-model gains. Select the figure to open it at full size.
Preserve in-flight semantics
Save as version_probe.py, run python3 version_probe.py in new version-work. Switching old-task v1→v2 must return task_id_conflict. Repair by new-task=v2 while old-task keeps v1, not by bypassing the check with UPDATE.
import json
from pathlib import Path
from agent import Agent
from common import LabError
from harness import client,merchant_process
from store import Store
work=Path('version-work');work.mkdir(exist_ok=True)
with merchant_process(work) as service:
s=Store(work/'agent.sqlite')
a=Agent(s,client(service.url))
a.submit('o-100','Return my unused item.','old-task','v1')
try:
a.submit('o-100','Return my unused item.','old-task','v2')
raise AssertionError('version switch should conflict')
except LabError as e:assert e.code=='task_id_conflict'
a.submit('o-100','Return my unused item.','new-task','v2')
result={'old_version':s.get('old-task')['prompt_version'],'new_version':s.get('new-task')['prompt_version'],'same_id_error':'task_id_conflict','merchant_returns':len(client(service.url,'admin-token').request('GET','/v1/audit')['returns'])}
(work/'version-conflict.json').write_text(json.dumps(result,indent=2)+'\n')
print(json.dumps(result,sort_keys=True));s.close()
Actual old_version=v1/new_version=v2/merchant_returns=0. Store.create rejects changed bindings, not an automatic migration engine. Pause/drain/old workers remain design work.
Restored ready does not mean uncommitted
The existing program starts actual APIs, migrates 1→2, commits a return, restores only Agent schema 1 backup and restarts. Use fresh rollout-work:existing rehearsal.json is reused, not a new execution.
python3 lab.py stage deployment --workspace rollout-work
python3 - <<'PY'
import json
from pathlib import Path
r=json.loads(Path('rollout-work/deployment/rehearsal.json').read_text())
assert r['upgrade']['schema_before']==1 and r['upgrade']['schema_after']==2
assert r['rollback']['schema_restored']==1 and r['rollback']['status_restored']=='ready'
assert r['merchant_count_before_rollback']==r['merchant_count_after_rollback']==1
assert r['execute_before_rollback']==r['rollback']['reconciled_receipt']
print('schema: 1 -> 2 -> 1; local restored: ready; merchant: 1 -> 1; original receipt reconciled')
PY
Local ready coexists with merchant 1. Execute reconciles the original receipt, retaining 1→1. Read Agent.execute and ops.rehearsal. This is local database/API compatibility, not weight rollback or production routing. Deleting merchant.sqlite, down -v or changing keys is not rollback.
Locate policy and owner changes at their actual boundaries
Follow the transfer evidence: old ordinary proposal → same-order gift/policyv2 → merchant policy_changed → learner red → same-file repair → real manual_review/no proposal → ownerbob → alice order_permission_denied. Merchant checks execute unconditionally; hooks cannot grant authority. A historical authorized answer does not authorize continued use after revocation.
Do not change the old approval version or erase the task to recover. Preserve initial/repaired hook bytes, invocation history, current SQL authority, exact MCP routes and provider usage. Verification rereads these instead of trusting report.json. The observer protocol requires a separately authored withheld variant; supplied reference success is not independent learner transfer.
A new contract preserves the old release failure
Compare four artifacts: original attempt8, unchanged v1 red grade, explicitly authored v2 repair and fresh raw v2 outputs. Rebuild verification from requests/rules/premises and the original20-attempt ledger rather than report.json. New results do not replace old0/4 and1/4 or establish independent learner transfer.
See project section11, walkthrough and single contract definition.
An edited answer invalidates prior review bindings
Exercise blank/partial records, stale packet/rubric hashes, incorrect quotes, invalid pointers and unresolved disagreement. Complete fields do not establish semantic truth or real identity. After answer/context/rule changes retain old output/findings and bind fresh reviews. Do not edit saved pass or copy teaching references. Declared prose review cannot waive mechanical failure or current access denial.
See section12, review form and workflow.
Adjudication cannot erase material findings
Replay critical failure versus material needs-evidence disagreement. Adjudication preserves both originals and requires revision; the original record stays vetoed. New answers require freshly bound reviews and simulated origins remain unauthorized. Initial-checkpoint verify failure and final technical verification differ; exit 0 is not human release approval.
See section 13 and the walkthrough.
Inspect the gap between exercise checks and release decisions
A complete escalation submission may be traceable without business success; an incorrect but complete judgment still needs human detection. Read mechanical status, submission_traceable, semantic non-assessment and pending human status separately instead of treating them as release approval.
See section 14 and the learner instructions.
code example
Evidence and interview explanation
Reproduce same-ID conflict and Agent-only API rollback.
Use the inputs,code and before/after evidence above;submit your own diff,not only a green screenshot.
Acceptance task for this level
Reproduce same-ID conflict and Agent-only API rollback. Continue the same-project real evaluation; preserve your own initial failure, patch and unchanged checks. Continue evidence-v2 practice; preserve the original failure, your own repair and unchanged-checker results. Complete semantic-review practice, separating teaching references, declaration completeness and actual human signoff. Replay the same-task review cycle, preserving initial reviews, stale-binding rejection and fresh records. Complete three source review exercises, preserving submissions, revisions and manual comparisons.
Reading this browser’s record…
Hide the answer and check your understanding
New key after local rollback?
Expand reference derivation
No:reconcile the original key;local rollback does not erase merchant history.
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.
- Google SRE: canary release and control monitoring
- Anthropic: Tasks, Attempts and Results in Agent Evaluation
- Same-project evaluation, fault decisions and requirement changes
- Frozen traces, grading and budget evidence
- Atomic facts and rule derivations
- Versioned evidence contracts and preserved raw records
- Human semantic review practice
- Zero-request rubric, forms and trace-grounded cases
- Same-task review and repair cycle
- Zero-request cycle execution evidence
- Source-based review practice
- Learner exercise execution evidence