Agents and AutomationLesson 54 of 72

Module 6 · Eight patterns that keep working

Joining two automations without joining their failures

In this lesson

  • 9 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 8 of 8 in this chapter

This chapter’s goalIdentify which recurring shape an automation request is, assemble it from that shape’s known parts, and state in advance how it will fail and which mechanical check catches that failure before a person sees the output.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Five stages, joined by a status columnextractedStage one writesthe row andstops. Fourthousand anhour, at its ownspeed, blockedby nothing.validatingClaimed fifty ata time with FORUPDATE SKIPLOCKED, by asmany workers asyou choose torun.validated orfailedA malformed PDFgets a reasonand is setaside; the otherfour hundredcarry on.matchedAgainst thepurchase orders,keyed on thesource referenceso a replaychanges nothing.draftedOnly theexceptions reachhere, and aperson sends.Written as direct calls, a slow stage two shows up as errors in stage one’s log and somebody spends amorning debugging a working extractor. Written as a status column, the backlog is a number that namesthe real bottleneck.
Written as direct calls, a slow stage two shows up as errors in stage one's log and somebody spends a morning debugging a working extractor. Written as a status column, the backlog is a number that names the real bottleneck.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 8Free · no account needed
Lesson steps

Real systems are several patterns in a row

An invoice system is an extractor, then a validator, then a matcher against purchase orders, then a drafting step for the exceptions, then a monitor watching the whole thing. Five patterns from this module, joined.

How they are joined decides whether the result can be operated.

The interface is a queue, not a function call

The tempting design is direct: stage one finishes an invoice and calls stage two.

Now suppose stage one extracts four thousand invoices an hour and stage two validates nine hundred. With a direct call, stage one blocks or times out, and its logs fill with errors. Somebody investigates the extractor, which is working perfectly. The real constraint is invisible, reported in the wrong place, and every failed call loses the extraction work that had already been paid for.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Context Engineering exam.

Stuck on something?Ask Mai, your AI tutor

How to cite: Addaly (2026) ‘Joining two automations without joining their failures’, in Agents and Automation. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/agents-and-automation/composing-patterns (Accessed: 27 November 2026).