レッスンのプレビュー

AI Agent Observability: Sprint Contracts, Evaluator Rubrics and Clean Session Exit

How to know what an AI coding agent did: two observability layers, sprint contract (in scope / out of scope), an evaluator rubric instead of opinion, clean handoff, session exit checklist and code entropy.

harness observability sprint contract evaluator rubric clean handover harness entropy
このレッスンで学ぶこと
  • You will set up a sprint contract and an evaluator rubric instead of the vague 'looks fine'.
  • You will implement a clean session exit checklist covering five dimensions.
  • You will halt the growth of harness entropy — measured quantitatively, not by feel.

レッスンの冒頭

Sound familiar?

  • The agent reported the job done — but nobody knows what was actually verified
  • The next session starts not with the task, but with excavating someone else's code
  • The longer a project lives, the more each subsequent agent run costs

This isn't a one-off glitch — it's a systemic hole in harness observability. Over the course of a week, the same agent can honestly say “done” ten times — and each time it will mean something different. And after a month of work with no explicit cleaning up after itself, every new session spends not five minutes warming up but half an hour — just to work out what's actually going on in the project. Today we'll tackle both ends of this problem: how to make the agent's work explainable, and how to hand over cleanly between sessions.

The agent isn't being dim — it simply has nothing to show

  • “Done, but two tests are failing” — “Why?” — “Could be a timing issue”
  • “Which critical paths did you touch?” — “Let me have a look at the code…”
  • The agent isn't stupid — it physically has nothing to present as evidence

Play this dialogue through in your head — it will surely be familiar. The agent spent twenty minutes changing files and came back with “done, but two tests are failing”. Ask “why”, and you get guesswork about timing. Ask “which critical paths did you touch”, and the agent has to dive back into the code to answer a question about its own work. It's not about the model's intelligence. The problem is that the harness gave it nothing to point to: no execution trace, no agreement on what the result was even supposed to look like. Nothing to observe means nothing to explain — even if an explanation exists.

Observability is really two different layers

  • Runtime: logs, traces, metrics — answers “what happened”
  • Process: sprint contract, rubric, acceptance criteria — answers “why it was done this way”
  • Runtime only = you can see what broke, but not what was wanted
  • Process only = you know what was wanted, but not why it didn't work out

A harness has two independent layers of observability, and people mix them up all the time. Picture a garage: first the mechanic signs off a work order with you — what's to be fixed, and by which signs the car will count as roadworthy. That's the process layer: the sprint contract, the evaluator rubric, the acceptance criteria — they explain why a change should be accepted at all. And when you come to collect the car, you're shown the service log — what was removed, what was replaced. That's the runtime layer: logs, traces, metrics — what the system actually did. Service log only, and you can see the mechanic was turning spanners, but it's unclear whether he fixed what was actually broken. Work order only, and you know the goal but can't fathom why the car still squeaks. You need both — and they reinforce each other.

完全版のレッスンはサブスクリプションで

23 枚のスライドが完全版にはさらにあります。

ログインして購読すると、動画、全スライド、ノート、テスト、AIチューター、面接が利用できます。

ログインまたは新規登録 サブスクリプションに登録

レッスンの内容

  1. Sound familiar?
  2. The agent isn't being dim — it simply has nothing to show
  3. Observability is really two different layers
  4. Without observability: “correct” turns into mysticism
  5. ❓ Your move: how to stop the grading lottery
  6. Blind retries and a dropped handover between sessions
  7. Why the agent won't patch this on its own
  8. Sprint contract: the agreement before the code
  9. A sprint contract in full: one page instead of guesswork
  10. ✅ The answer: a rubric instead of opinion
  11. Common pitfall: scoring without evidence
  12. Common pitfall: scoring without evidence
  13. Task traces: not anecdotes, but aggregates
  14. The agent can explain everything — and still leave a mess behind
  15. Thirty minutes just to work out what the last session did
  16. Why entropy grows on its own
  17. Pitfall: 'we'll tidy it up later'
  18. A session is only closed when all five dimensions are closed
  19. Cleanup is two different modes, and you mustn't mix them up
  20. Cleanup is two different modes, and you mustn't mix them up
  21. The quality document: .agent/quality.md
  22. The harness ages too: simplification isn't optional
  23. The cleanup script must survive its own failure
  24. One loop — either it closes cleanly, or it starts over from scratch
  25. End-to-end project: step 6 for the payments backend
  26. Summary: a harness that explains itself

この講義に関する記事

このコースのすべてのレッスン

  1. What Is Harness Engineering? Why AI Coding Agents Fail Because of the Environment
  2. Error Accumulation in AI Agents: Why 95% Per-Step Accuracy Fails by Step 10
  3. AI Agent Reliability Metrics: MTBF, MTTR, Blast Radius and Little's Law
  4. Why AI Agents Fail in Production: Five Failure Layers and a Diagnostic Loop
  5. What an AI Agent Harness Is Made Of: Instructions, Tools, Environment, State, Feedback Loops
  6. Repository Map for AI Coding Agents: Project Structure and State Without Memory
  7. AGENTS.md Best Practices: Why a Giant Instructions File Fails and How to Build a Router
  8. AI Agent Memory Between Sessions: Session Handoff, PROGRESS.md and Bootstrap Contract
  9. feature_list.json for AI Agents: WIP=1, Feature Status and verify.sh Verification
  10. Agent Says 'Done' but the Feature Is Broken: Verification Gap and Definition of Done
  11. All Tests Pass, Feature Is Broken: E2E Tests and Architecture Rules for AI Agents
  12. AI Agent Observability: Sprint Contracts, Evaluator Rubrics and Clean Session Exit
  13. Autonomous AI Coding Agent for Hours: Loop Engineering and Stop Conditions
  14. Graph Engineering for AI Agents: When a Single Loop Is Not Enough and You Need a Task Graph
  15. Building an AI Agent Harness From Scratch: AGENTS.md, feature_list.json, verify.sh and an Autonomous Loop