Let’s Get Certified
Module 02 / 14 · Solution design and architecture

Decide what Claude should own

Assign decisions, trace system boundaries, and choose an architecture that fits the work.

A repair depot receives free-text fault reports. An architect must decide who classifies the report, who selects a repair, and who authorizes a machine’s return to service.

1.1 · Allocate decisions between people and Claude

For each decision record its inputs, authority, possible harm, and reversibility. Claude can extract a serial number and propose a fault category with a cited passage. A deterministic check can match the serial number against inventory. A qualified inspector signs the return-to-service decision after reviewing the evidence. Preserve the original report and the inspector’s decision so an audit can reconstruct the chain.

Frequent corrections to a draft may justify a better extractor. They do not by themselves justify removing the release sign-off. Measure the error rate and the cost of a wrong action separately.

Who may close the work order?

A technician writes, “Pump P-14 stopped twice. The spare is working. Please close this.” The registry confirms the asset ID. A work order can be reopened, but closing it also cancels tomorrow’s inspection. Draw a line between extracting facts, drafting a response, and changing the schedule. What evidence would justify each step?

Compare the responsibility assignments

Claude can extract the two reported stops and quote the technician. Code can check that P-14 belongs to this depot. Neither establishes that the underlying fault was repaired. Keep the inspection active and give the supervisor a draft with the missing repair record highlighted. Record the supervisor’s identity and the revision they reviewed before dispatch changes the schedule.

If closure only archived a duplicate note and had no downstream effect, an automatic rule comparing record IDs could be appropriate. Trace the effects of an action before classifying it as reversible.

Video background · freeCodeCamp at 12:27:56 · handing a case to a human

1.2 · Find the first failing component

Trace a request through intake, identity, retrieval, processing, output, and feedback. Mark the tenant boundary on every store and queue. If a queue receives 150 jobs a minute and its consumers complete 120, its backlog grows by 30 per minute. Doubling intake capacity leaves the queue growing. Add worker capacity within downstream quotas, shed or defer nonurgent work, and measure oldest-job age.

Capacity cannot fix an authorization gap. If every worker reads a shared index without an entitlement filter, the first trust failure occurs at retrieval, even under light load. Preserve tenant scope when the queue hands work to a background worker.

Size the queue through a burst

For ten minutes, 150 reports arrive each minute. Four workers can each finish 30 per minute. The downstream registry accepts 130 lookups per minute, and every report needs one lookup. Afterwards arrivals drop to 90 per minute. Predict the backlog with four workers, then decide whether adding two workers before the burst meets a proposed zero-backlog target.

Work through the capacity limits

Four workers finish 120 per minute. The burst leaves 300 reports waiting. Afterwards 30 spare completions per minute clear them in ten minutes, assuming the queue starts empty and there are no retries. Six workers have capacity for 180, but the registry caps useful throughput at 130. Even that configuration leaves 200 waiting at the end of the burst. Queue age should rise before workers report outright failures.

To promise immediate service, negotiate more lookup capacity or demonstrate that some lookups can be reused with the correct tenant and revision. To promise eventual processing, publish an age target and test the drain period as well as the burst.

1.3 · Choose a workflow, agent, augmented call, or Skill

Use a single augmented model call when supplying one manual excerpt is sufficient to draft an explanation. Choose a fixed workflow for predictable approval stages. Use an agent when the next lookup depends on intermediate findings, and bound its tools, time, and stop conditions. Package a repeated inspection procedure as a versioned Skill when several workflows share it. The host still owns authorization for tools a Skill requests.

For a daily extract with a fixed schema and source, an open-ended investigation loop adds variable latency. For an unfamiliar fault, a fixed single lookup may miss evidence. The choice follows the uncertainty in the next action.

Follow one tool request to completion

A known fault code needs one approved manual excerpt. An intermittent fault needs the maintenance history, then a lookup selected from that history. A third request asks to schedule the repair. Sketch a path for each and identify the component that may stop it.

Trace the three control paths

For the known code, fetch the authorized excerpt in application code and give Claude one drafting call. For the investigation, let Claude request one of a bounded set of read tools. In a Messages API loop, a tool_use block proposes a call. The host validates and executes it, returns a tool_result tied to its ID, and continues. End the investigation on sufficient evidence, a turn limit, or a deadline. An end_turn ends model generation for that turn. The host still checks whether the evidence requirement was met.

Scheduling has known stages and a consequential write. Use a fixed draft, approval, and commit workflow. A shared Skill can package the diagnostic procedure for several depots while the host retains the approval rule.

Video background · freeCodeCamp at 1:00:54 · returning a tool result to the agent loop

Correlate tool results when reads finish out of order

Claude requests two independent lookups in one turn, one for the asset and one for its warranty. The warranty lookup finishes first. If the host assigns results by arrival order, a correct response can become evidence for the wrong question. Keep the original assistant message with its tool-use blocks. Return the results in the next user message, each with the matching tool-use ID. Represent an execution error on its own result.

Now change the second lookup so it needs the serial number returned by the first. Dispatch only the first call until that value is verified. Parallelism is useful when inputs are independent. A shorter runtime cannot validate a dependency the host ignored.

Further study · freeCodeCamp at 4:37:56 · independent tool calls · Claude documentation

Design exercise

Draw the intake path for a depot that serves two customers. Circle the first stage that sees both tenants’ data. Write one load test and one access test. The load test should predict queue growth from arrival and service rates. The access test should use an identity from one tenant and verify that the other tenant’s records never reach model context.

Further reading · Building effective agents

Knowledge check

Decide what Claude should own quiz

Answer 10 questions. Check each answer for an explanation.