15 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. They complement the existing interactive labs.

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.

Practical guide

Pruning Ignored Directories Can Skip a Nested .gitignore That Re-Includes Files

Why turning dir/** into a pruned directory hides files a nested .gitignore re-includes, checked against real git, and a pruning rule that keeps the speed-up only where it is safe.

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.

Views are my own and do not represent any employer, past or present.