03

Agentic Software Architecture

When the system acts for you, how do you know what happened?

03Agentic Software Architecture

Introduction

The editor clicks “Create task.” The board stops responding. If she clicks again, she might get two tasks. If she walks away, there might be none.

It’s the next Monday in the fictional pilot from Chapter 02. The team knows what it wants to test. Does connecting the data, past decisions, and the next task save work? To see how to build that, let’s rewind a little.

How one task gets created

The pricing page is among those losing traffic. The team wants three recommendations with evidence behind them. At the meeting, they’ll choose which one to act on first.

  1. The application compares traffic across two similar periods and checks which pages the team already decided to leave alone. An earlier decision can still apply this week.
  2. The agent looks into the drop on the pricing page. It sees that the drop is concentrated among mobile visits and suggests checking how the page loads on a phone.
  3. The editor reviews the evidence, picks an assignee, and moves the deadline to Friday. She confirms the task. The application needs to save it to the board.

The team needs a recommendation it can verify and a task that actually exists. Now we can see which decisions are worth handing over to AI.

Where it makes sense to let the agent choose

The team already has a rule for comparing date ranges. The application can apply it the same way every week. When code sets the checks and their order, that’s a predefined workflow. A model can summarize the data within it while code still decides what happens next.

For an unusual drop, the first check is only a starting point. The agent can compare devices first, then use the result to decide whether to inspect a group of pages or stop and ask for more data. When a model chooses its next step within limits like these, we’re using agentic software. For this pilot, start by giving it one such decision and limiting how many checks it can make. Sydney Runkle and Harrison Chase, July 22, 2026

Who gives the go-ahead?

The editor is happy for the agent to investigate the drop. Before the task goes into the board, she wants to see the project, assignee, and deadline. We put human review at that point. That’s human-in-the-loop.

The approval applies to the draft she saw. If someone changes the assignee afterward, the application asks for confirmation again. If access is revoked in the meantime, it blocks the write. Keeping the approved version and who approved it makes it possible to check the decision later. Partnership on AI researchers found gaps in these records when they reviewed four agent frameworks. Partnership on AI, October 7, 2026

Has the task already been saved?

Back to the editor. The board is silent, but the task may already have been saved. The application says “Checking whether the task was created.” It looks up the record using the ID it saved before sending the request.

If the application needs to try again

If the board uses that ID to recognize repeat requests, the application can send the same request while the ID is still valid. The board treats it as the same action, and there’s still one task. That property is called idempotency. If the board offers no such protection and the outcome is still unknown, the application stops automatic retries and leaves the check to a person. Muhammad Abu Bakkar Bin Akmal, November 4, 2026

Where does the application pick up?

The meeting ends before the task is confirmed. If the application restarts, it needs to remember which review started, which draft was approved, and whether it is still waiting for a response. Resuming from saved state is durable execution. The application checks the board to see what actually happened. Temporal, November 4, 2026

Code uses that saved state to decide which step comes next. That’s orchestration. During the investigation, a separate part of the software supplies data to the model, calls its permitted tools, and passes their results back. You’ll see that part called the agent harness. Anthropic describes how its implementation separates the loop around the model from the execution log. Anthropic Engineering, April 8, 2026

Can the review be ready before the meeting?

It’s Monday morning. The data is ready, and the application prepares a draft while the team is still getting together. If it receives two signals for the same week, both point to one review. The editor still decides whether to create a task.

That’s a proactive system. Work starts on a schedule or in response to an event. In this example, deciding when to start a draft is a separate decision from who authorizes the write. OpenAI shows a similar combination of scheduled starts and human approval in its workspace agents. OpenAI, April 22, 2026

When you need another system

The agent needs to read the number of mobile visits. The connector the application already uses is enough for the pilot. If you want different applications to discover and call the same tool in a common way, this is where the Model Context Protocol (MCP) fits. MCP, July 28, 2026 specification

Imagine that the campaign team has its own agent. It can take a question about a specific campaign, check its own sources, and return a result. Agent2Agent (A2A) is for handing off work between independent agents like these. A2A Project, August 27, 2026

How do you know it worked?

In the test, the application says “Task created.” You open the board and check the record. Is there exactly one task? Does it have the assignee and deadline the editor approved? In agent evaluation, you run checks like these on cases you’ve chosen in advance. You also check the steps, because a convincing final answer can hide a skipped check. OpenAI Cookbook, May 19, 2026

When the second version is worth it

For an unusual drop, see whether the extra checks produce a more useful recommendation. If access is revoked, expect the write to be blocked and the reason to be visible. If the response is lost after a successful write, expect one task and a confirmation only after verification. Both versions have to meet the approval and write requirements.

Exercise

  1. Go back to Chapter 02. Bring the job, the success criterion, and the advantage you decided to test. Which action makes that advantage possible?
  2. Map who decides. Put one rule for the application, one decision for the agent, and one point where a person can approve or stop the action on a page.
  3. Test two versions with the same data and criteria. Compare predefined steps with a version that gives the agent one decision. In the test environment, include a routine and a difficult case, revoked access, and a lost response after a write. Check what actually happened.
  4. Record your choice. Compare quality, time, cost, and human intervention. Which decision is worth handing over to the agent, and what result would make you turn it back into a rule? Personal Product Playbook

Questions to consider

  • Which check needs a decision that depends on the situation?
  • What exactly does a person approve, and what would require another confirmation?
  • What should the editor see while verification is still in progress?

Chapter 04 begins at her screen.

Sources and further reading