Skip to content
The AI Agent Factory

Check yourself

Approved by
Panaversity ·
6 min read

Answer each question in a few lines, then compare with the outline below it.

  1. 27.1. Dave's review must give every open invoice a decision, and the auditors want the same steps next month. How do you choose who decides one step of it? Outline: ask three things of the step, not of the job. Business requirements: does it change with what the worker finds? Error tolerance: what does a wrong choice cost, and what would catch it? Audit constraints: must the path be the same every time, or is a record enough? A step that is known before the run, or must always or never happen, goes to code. A step that depends on what is found goes to the model, inside a stop, a boundary and a check. A step that is both is split.
  2. 27.2. Name four things code can hold in a workflow, and the price they share. Outline: the order (a chain), the branch (a route), what runs side by side, and the stop of a check-and-retry loop. That loop is the evaluator-optimizer pattern. A model's answer may pick a branch or ask for another round. It can never add a step. The price: a workflow handles only what its builder planned for. A case no branch covers goes to an agent step or to a person, marked needs_review.
  3. 27.3. What does an orchestrator hand to the model, and what does your code keep? Outline: the model decides when to split and what to tell each subagent. Code keeps the list of subagents, how deep they go, how many run at once, the turn limit and the budget. Split by the context a part needs, not by kind of work. The price is tokens, several times one agent's, and a path that may differ each run. One loop is the fair other choice.
  4. 27.4. Which two ends of a subagent's work can code check, and when is a separate checker independent? Outline: the brief going in, and the answer coming back. The answer has a form that a check by code can test against the subagent's own tool results, which your trace holds. A checker is independent when it has its own context, its own access to the source, and a check it can run, not a transcript it reads.
  5. 27.5. How does the place a worker runs change your table? Outline: where the loop runs decides which steps your code can hold at all. On a managed, sandboxed agent runtime, the model decides the next step inside a session, so your code holds only what comes between sessions. With your own loop, your code can hold every decision. With an agent SDK, it holds what comes between the model's calls, through limits and hooks.
  6. 27.6. A run repeats one tool call until someone stops it by hand. What are the three steps of the diagnosis? Outline: give the failure its name, where there is one. Say where it began. Then find the run row that nobody decided, or decided wrongly, and the pattern that corrects it. Here the row is when the run stops, the pattern is tool-use loop termination, and it is missing. A turn limit set so low that a good run ends at it is the same pattern, misapplied.
  7. 27.7. You port the orchestrator to another SDK. What do you read first, and what do you set yourself? Outline: who decides what runs next, what a helper sees when it starts, how a person is asked, and each default limit. Then pass every limit yourself. On any runtime, a stop, a boundary and a check that your code holds must still be there when the model decides badly.

Chapter 27: Agent Architecture

Recall cards for who decides each step of a job, what code still holds, and how to find the step nobody decided.

1 / 17
Owner
Panaversity