Level 11 project
Bounded Agent
Start from the canonical project files, validate the result, and keep the evidence you need to explain what you built.
There is no upload or grading service. Run the documented validator or checks where applicable, keep the results, and score your own evidence against the rubric below. A passing check by itself does not mean the project is complete. Suggested strong-evidence target: 16/20. Critical-criterion rule: A 16/20 total is not sufficient if any criterion the rubric marks as critical scores zero.
Start here
Launch lesson: Bounded Agent Integration Workshop
Prerequisite project: Multimodal Tool-Using Assistant
Prerequisites
Python help for this project:
Complete Level 11 through Bounded Agent Integration Workshop and the Level 10 Multimodal Tool-Using Assistant project. You should already understand tool schemas, permissions, exact approval binding, explicit state transitions, retries, and recorded trace evaluation.
Goal
Build a small agent controller whose loop is explicit, bounded, reviewable, and testable.
Task
Open projects/starters/l11/agent.py and complete:
choose_subgoalselect_actionupdate_working_memorymemory_write_allowedapproval_validstop_reasontransitionvalidate_run
Stuck on a TODO?
Choose one function at a time. Hint 1 offers direction, hint 2 offers pseudocode, and hint 3 reveals only that function's reference implementation after confirmation.
agent.py: choose_subgoal()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: select_action()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: update_working_memory()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: memory_write_allowed()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: approval_valid()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: stop_reason()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: transition()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
agent.py: validate_run()
Try the starter function and run its validator before revealing the reference.
Hints for this TODO
Validation
Run these commands from the downloaded Project folder or the public materials repository root.
python projects/tests/l11/validate_submission.py \
projects/starters/l11/agent.py \
projects/tests/l11/fixtures/passing/agent-run.jsonCompare with a reference
First complete your own TODOs and run the submission validator above. Then open the published reference solution. Reference acceptance tests check the completed reference, not your submission:
python projects/tests/l11/test_reference.pyRubric
Score each criterion from 0–4. A submission should score at least 16/20 and must not score 0 on authority/boundedness or evaluation.
| Criterion | 4 — Strong evidence | 3 — Meets | 2 — Partial | 1 — Weak | 0 — Missing |
|---|---|---|---|---|---|
| Goal, planning, and action choice | Goal stays explicit; subgoals are observable/revisable; selected actions match current need, available evidence, and least-authority constraints | Correct goal/subgoal/action flow with minor gaps | Functional flow but planning or action rationale is weak | Frequent irrelevant/drifting actions | No coherent goal-directed loop |
| State and memory | Working state is typed/selective with provenance; control fields are protected; persistent writes and retrieval follow scope/freshness/privacy policy | Correct state/memory boundaries with minor gaps | State works but provenance or memory policy is shallow | Mostly transcript-driven or stale memory handling | No reliable state/memory boundary |
| Authority, approval, and boundedness | Permissions are external to model output; approvals bind exact actions and expire; stop rules cover success/blocker/denial/repetition/budget with zero unsafe continuation | Correct boundaries with minor gaps | Most controls exist but one important edge is weak | Prompt wording carries major control responsibility | Unauthorized action, approval bypass, or unbounded loop can pass |
| Failure analysis and evaluation | Fixed trajectories cover key failure classes; earliest-boundary diagnosis is explicit; metrics separate task, selection, safety, memory, drift, and efficiency; release is recomputed | Strong evaluation with small omissions | Fixed cases exist but slices/diagnosis or recomputation is limited | Mostly anecdotal demos or final-answer-only checks | No meaningful trajectory evaluation |
| Reproducibility and communication | Standard-library deterministic path, versioned policy/evaluator/fixtures, exact commands, debug record, limitations, and optional live-path differences are clear | Reproducible with minor omissions | Several identities or limitations missing | Manual screenshots/output only | No reproducible package |
Objective checks
The validator checks active/pending subgoal choice, permission-filtered action selection, protected working-memory updates, memory-write policy, exact/expiring approval binding, stopping rules, explicit transitions, raw-trajectory metric recomputation, goal-drift detection, repeated-action bounds, prohibited memory-write rejection, unauthorized execution rejection, and release-rule recomputation.
The intentional failure fixture keeps the task outcomes correct while inserting control failures. A passing implementation must reject it; final-answer success cannot compensate for authority, memory, or boundedness violations.
Self-check before you call it done
- Can you trace the goal, revisable subgoals, permitted action selection, and protected working state?
- Can you show scoped memory reads/writes, exact expiring approvals, and stopping/budget rules?
- Can you reproduce failure trajectories, earliest-boundary diagnoses, and recomputed task/safety/drift metrics?
- Can you show the intentional control-failure fixture is rejected even when task outcomes appear correct?