R290 · AI education › Learning paths for AI engineers

Ask the environment, not the model: harness disciplines from a multi-agent systems book review

Read the original

Authors Ashish Joshi

harness-designagent-architectureproduction-operationsevalsorchestration

What this entry is

A practitioner review of Building Agentic AI Systems, Second Edition (Anjanava Biswas and Wrick Talukdar, Packt, 2026; ISBN 9781803238753; code at PacktPublishing/Building-Agentic-AI-Systems). What follows is a reviewer's account of the book, written from a disclosed publisher review copy, rather than the book itself; the question below is which of the ideas survive outside the book's framing.

The review's organising claim is worth keeping even if nothing else is: a model inside a loop is not a system. The system is the harness, the protocol layer, the deployment and the controls. The book's arc follows that order — single-agent internals, then MCP for tools and data, then agent-to-agent protocols, then production deployment, evaluation and governance.

The architectural ideas

Reinjection: ask the environment, not the model

When the model announces it is finished, the harness does not take its word. It runs a verifier it already trusts — a test, a schema check, a query against the system of record — and when that verifier fails, the failure text goes back into the loop as the next observation.

This is the single most transferable idea in the review, and it is really a statement about where authority lives. A model's self-report of completion is a generated token sequence with no privileged access to the world; the verifier has access to the world. Any loop that terminates on the model's claim has made the model its own judge.

The design question it forces: for each task class your agent handles, what is the cheapest check you actually trust? If you cannot name one, you do not have a termination condition — you have a stopping heuristic.

Model or harness? Diagnose before you rewrite the prompt

Before editing a prompt, establish whether the model ever received the instruction or the error it would have needed. Often it did not: the tool returned a truncated payload, the error was swallowed, the schema the model was told about differs from the one the tool enforces, the relevant instruction fell out of a context window.

The practical consequence is that a large share of apparent reasoning failures are plumbing failures, and prompt edits applied to plumbing failures produce prompts that are long, superstitious and brittle. The discipline is to log what the model actually saw on the failing turn, and only then decide whether the fix belongs in the prompt, the verifier or the tool's output format.

Error messages written for a model

A raw stack trace is written for a human with access to the source. A model needs the actionable delta: which field was wrong, what the valid values are, what to do next. This is a cheap change with an unusually good return, because it converts a retry that cannot succeed into one that can.

The corollary is that your tool layer now has two audiences with different needs, and the model-facing text is a first-class interface, versioned and tested like any other.

The harness itself: budgets, termination, oscillation, checkpointing

The four controls the review names are the ones that decide whether an agent is operable:

The distributed monolith warning

Agents chained together by synchronous calls reproduce the worst failure mode of early microservices: a set of components that are separately deployed but cannot fail, scale or be released independently. One slow agent in the chain becomes everyone's latency; one failure becomes everyone's failure.

The design-time question is where the boundaries should be asynchronous — a queue, an event, a work item picked up later — rather than discovering it after a timeout cascade in production. This is not a new insight, which is precisely why it is worth repeating: multi-agent architectures are being assembled right now by teams who learned it once and are not applying it.

The protocol and production layers

The review describes the MCP and agent-to-agent chapters as a grounded tour of the protocol layer — agent cards, transports, authentication — with a worked fraud-detection example in which a monitoring agent hands off to a compliance agent before a transaction is blocked. The production chapters pair Kubernetes with managed platforms and apply the familiar distributed-systems kit: circuit breakers, idempotency, sagas.

Two things to hold loosely. First, specific vendor and adopter claims in the book (which managed platforms are covered, which firms have moved to MCP) are the reviewer's summary. Second, protocol chapters age fastest; treat them as a model of the problem shape rather than a current specification.

Failure modes this framing predicts

FailureMechanismWhere the fix belongs
Agent reports success on work it did not doLoop terminates on self-reportVerifier + reinjection
Endless loop inside budgetNo oscillation detectionHarness state tracking
Retry storm that cannot succeedModel never saw the actionable errorModel-facing error text
Prompt grows superstitious additionsPlumbing failures misdiagnosed as reasoning failuresLog what the model received
One slow agent stalls the whole pipelineSynchronous chainingAsync boundary at design time
Long run lost on restartNo checkpointingDurable harness state
Duplicate side effects after retryNon-idempotent toolsIdempotency keys at the tool layer

Tradeoffs worth stating

Review checklist

For an agent system heading toward production:

  1. For every task class, name the verifier the harness trusts for completion. If there is none, the loop has no termination condition.

  2. Confirm failed verifications are fed back as observations, not swallowed or retried blind.

  3. Check that budgets (tokens, time, tool calls, cost) are enforced in code, with a hard stop.

  4. Confirm oscillation detection exists, and that hitting it is logged distinctly from hitting a budget.

  5. Confirm long runs checkpoint, and that a checkpoint can be inspected after a failure.

  6. Read your tool layer's error strings as a model would: do they say what to change?

  7. On the last three reasoning failures, establish from logs what the model actually received before any prompt was edited.

  8. Draw the call graph between agents and mark every synchronous edge. Justify each one or make it asynchronous.

  9. For every tool with a side effect, confirm idempotency under retry.

  10. Confirm trace context propagates across asynchronous boundaries.

What this does not settle

The review is favourable and discloses a free review copy, so its enthusiasm is not evidence. More importantly, none of the disciplines above come with effect sizes: nothing here tells you how much reinjection improves task success, how often plumbing rather than reasoning is the true cause, or at what scale the distributed-monolith penalty starts to bite. These are engineering heuristics with good mechanical justification, not measured results. Treat them as a checklist to instrument, and measure the effect in your own system.

Connections

See R290 on the knowledge map

Part of the Research notes on nowucca.com. Figures and claims are the source's own unless the summary says otherwise.