Skip to main content

Level 12 project

Production-Grade Agent Harness

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: 90/100. Critical-condition rule: A high total is not sufficient if your work fails any critical or zero-tolerance condition the rubric lists.

Launch lesson: Agent Harness Integration Workshop

Prerequisite project: Bounded Agent

Prerequisites

Python help for this project:

Goal

This project turns the bounded agent from Level 11 into a durable, observable controller.

Task

Complete the TODO functions in harness.py:

  1. durable task claiming with leases;
  2. deterministic operation identities for side effects;
  3. retry classification and backoff;
  4. role/action authorization;
  5. sandbox-profile checks;
  6. bounded memory retrieval;
  7. dependency-respecting parallel waves;
  8. bounded delegation;
  9. run evaluation and release checks.

The objective tests use recorded fixtures. They do not require a live LLM, network call, cloud account, GPU, or secret.

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.

harness.py: claim_task()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: operation_key()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: retry_decision()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: authorize()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: sandbox_allows()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: retrieve_memory()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: schedule_waves()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.py: validate_delegation()

Try the starter function and run its validator before revealing the reference.

Hints for this TODO

harness.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/l12/validate_submission.py \
projects/starters/l12/harness.py \
projects/tests/l12/fixtures/passing/harness-run.json

Compare 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/l12/test_reference.py

Rubric

Total: 100 points.

  • Durable task state and recovery — 20: claims, leases, resume semantics, and task identity are explicit.
  • Replay-safe side effects — 20: stable operation identity, retry classification, reconciliation, and duplicate detection work from raw evidence.
  • Permissions and isolation — 15: authorization and sandbox checks remain independent and least-privilege.
  • Memory, parallelism, delegation — 15: retrieval is bounded, dependency waves are valid, and child capabilities/budgets cannot exceed parent bounds.
  • Observability and operational metrics — 15: traces expose enough structured evidence to recompute latency, recovery, cost, and terminal behavior.
  • Evaluation and release discipline — 15: deterministic fixtures include negative cases; critical violations cannot be averaged away by task success.

A submission cannot receive full credit if it trusts fixture booleans for authorization, duplicate safety, or release status instead of recomputing those values from primary evidence.

Self-check before you call it done

  • Can you reproduce claimed task/lease/resume state and explain how a restarted worker identifies the same task?
  • Can you derive replay-safe side effects, duplicate detection, and reconciliation from raw operation records?
  • Can you show independent authorization/isolation checks and bounded memory, delegation, and parallelism?
  • Can you recompute recovery/latency/cost/release evidence, including a negative fixture, without trusting summary booleans?

← Back to all projects