14 original guides / 10 runnable exercises

Build the harness that can explain a failure.

Explore execution boundaries, safe retries, independent grading and self-improvement with review gates. Runnable examples use synthetic state and never deploy a candidate automatically.

Agent definitions, teams and adaptive routing

Ten additional guides with runnable Python exercises, expected results and counterexamples. Each exercise includes an expected result and a counterexample.

Agent definitions and routing

Define an agent before designing its harness

Separate the agent specification, execution policy and independent success criteria.

Agent definitions and routing

ADK agent, runner and harness: who owns what?

Place the framework lifecycle inside application-owned identity, budgets and delivery checks.

Agent definitions and routing

Design an agent team without creating a delegation loop

Use typed handoffs, capability checks and a shared budget to keep specialist teams accountable.

Agent definitions and routing

Build a small Markov agent router from transition counts

Calculate interpretable route scores, apply smoothing and preserve an explicit fallback.

Agent definitions and routing

Choose routing thresholds using error costs and abstention

Measure coverage and routing mistakes before promoting a faster decision path.

Agent definitions and routing

Prepare routing JSONL without teaching the router its own mistakes

Preserve label provenance and separate task families before evaluating routing updates.

Agent definitions and routing

Detect agent stalls using evidence of progress

Combine task-specific progress signals with global turn, time and redirect limits.

Agent definitions and routing

Prevent agent abuse at the tool boundary

Enforce resource scope, exact-action approval and independent outcome verification.

Agent definitions and routing

Choose models using task evidence and hard constraints

Filter incompatible candidates before comparing measured quality, latency and cost.

Agent definitions and routing

Release an agent and its harness as one evaluated unit

Bind approvals to the complete execution configuration and preserve rollback evidence.

Run the Python exercises below locally. This publication contains articles and exercises; the interactive application is separate.

Run the same grader locally

git clone https://github.com/Sandeep-BA/cassandra-mcp.git
cd cassandra-mcp
node scripts/run_harness.cjs promotion examples/harness-promotion.json
npm test

The CLI and browser share our original grading code. No key, model download, provider request or cloud bill is involved. This is a teaching harness, not an autonomous production deployment system.