Choose an orchestrator, runtime, and deployment surface
Bound parallel work, compare the value of competing designs, and place execution and state.
A field-service team wants a daily exception report. One worker reads depot records, another reads dispatch notes, and a coordinator prepares a decision brief. The architecture review asks who owns failed tasks, how progress survives a restart, and whether the proposal earns its cost.
1.4 · Define worker contracts and recovery
Give each worker a bounded question, permitted inputs, deadline, and return contract. Return evidence references, covered time ranges, errors, and completion status. An empty successful result and an unavailable source must remain distinguishable. Assign the coordinator a durable task manifest and a join rule. Parallelize independent reads, then synthesize after required inputs arrive or a named deadline triggers partial reporting.
If a worker restarts, reuse verified completed work by task ID and input revision. Retrying the whole graph can duplicate a side effect. Give irreversible writes a single owner and a durable operation identity. Track parent and child spans so the coordinator can attribute missing evidence to a particular task.
Recover one missing branch
The brief requires both dispatch and depot evidence. The coordinator’s manifest reads dispatch D9 complete, 0 exceptions and depot D9 timed_out, cursor 4. A restart occurs before synthesis. A worker proposes the headline “No exceptions today.” Which records can the coordinator reuse, and what can it publish at the deadline?
Replay the join
Reuse the verified dispatch result for revision D9. Resume the depot branch from its last confirmed page if the source supports stable cursors for that revision. Otherwise replay that read under the same task ID and deduplicate its evidence references. Keep the checkpoint and completion marker together so a crash cannot mark an unread page complete.
The join requires two successful branches for a complete brief. At the deadline it can publish an explicitly partial report if the customer permits one. “Dispatch checked, depot pending” describes the evidence. Zero exceptions across the depot would be an unsupported inference. Also verify the manifest contains every required source. Workers with isolated context cannot report a branch the coordinator never created.
Video background · freeCodeCamp at 2:14:52 · spotting an omitted subtask
Resolve disagreement at synthesis
Dispatch says that all 12 vans are available. A depot worker reports 11 available and one awaiting inspection. Each worker completed successfully. Before declaring a conflict, compare the fleet IDs, the meaning of “available,” the effective time, and the cited record revisions. Store each claim with its evidence reference and scope through the join.
Two identical claims backed by copies of the same record give one independent observation. Two different values for the same fleet and time require a scoped recheck or an explicitly unresolved result. Averaging the counts to 11.5 would hide the exact van that needs a decision.
Further study · freeCodeCamp at 6:23:06 · claim provenance across workers
1.5 · Compare designs against business value
Compare feasible designs using the business unit of value. Suppose a useful, reviewed report saves 15 minutes and a rejected report saves none. At 200 reports per week, increasing acceptance from 70% to 80% saves five additional staff-hours. At an illustrative $40/hour, that is $200 per week before extra compute and review costs. An option costing $300 more per week needs another benefit to justify it.
Check hard limits first. A cheaper option that misses the contractual deadline is infeasible. Record sensitivity to demand, acceptance, and the cost of a wrong decision.
Decide which pilot earns its review time
Another depot processes 400 reports a week. Each accepted draft saves 12 minutes at $45 per hour, and each rejected draft costs three minutes to inspect. Design A has 75% acceptance and costs $500 a week to run. B has 85% acceptance and costs $780. Both meet the turnaround target. Estimate weekly net value and find the smallest whole number of additional acceptances that would justify B’s premium.
Check the value calculation
A saves 60 hours of accepted work and spends five hours on rejections. Net value is 55 × $45 − $500 = $1,975. B saves 68 hours and spends three hours on rejections. Its net is 65 × $45 − $780 = $2,145. Each rejection converted into an acceptance recovers 15 minutes, worth $11.25. The $280 premium requires 25 additional acceptances. The pilot projects 40.
This decision assumes equal severity of errors and comparable workloads. Compare difficult reports separately before scaling. A single severe false acceptance can change the economics even as average acceptance rises.
Choose which requests can wait for a batch
A team pays an illustrative $0.04 per synchronous report. Its batch quote is $0.02. Of 10,000 requests, 8,000 are independent reports for next week and 2,000 support callers waiting on the line. Moving the 8,000 flexible requests saves $160 before operational costs. Moving everything saves another $40, but only a service with a proven interactive deadline can take the live traffic.
Keep a request manifest and reconcile batch results by custom ID because their order can differ from submission. Record per-item status. If a subset expires, resubmit eligible missing work within its remaining deadline. Retrying the entire file wastes successful work and can repeat downstream delivery.
Further study · freeCodeCamp at 11:24:41 · asynchronous batch results · Claude documentation
1.6 · Choose a deployment surface and runtime
Decide separately where model requests are served and where the agent runs. Compare the direct Anthropic API with Amazon Bedrock, Google Vertex AI, and Microsoft Foundry against the specific region, model version, features, identity controls, retention terms, and network boundary the customer requires. Verify availability for the selected surface and region before committing to a feature or residency promise.
A Messages API loop gives the application direct responsibility for tool dispatch, sessions, and retries. A self-hosted Agent SDK or headless Claude Code runtime can use a team-controlled environment, with the team owning sandboxing, secrets, and operations. Managed Agents can provide hosted execution and session infrastructure. Verify what state or artifacts leave the customer boundary and who retains them. A cloud endpoint choice alone does not settle runtime custody.
Draw the custody boundary twice
A client already approves model inference through one regional cloud endpoint. Tools must run on the client’s private network. Conversation checkpoints and generated reports must be recoverable into the client’s own storage. The sales proposal offers a hosted agent because a private model endpoint has already been approved. List the data transfers that still need approval.
Review a feasible deployment
Trace the initial prompt to the model endpoint, the proposed tool call to the execution environment, the tool result back to the model, and the checkpoint and report to their stores. For every transfer record region, identity, permitted fields, retention and recovery owner. A tool executing privately can still return sensitive fields to a hosted session. Reduce the result to the fields authorized for inference.
A client-operated SDK worker plus the approved endpoint is a candidate if the required model and features are available there. The client now owns sandbox updates, checkpoint durability and recovery. A hosted runtime needs evidence for each corresponding flow and any cross-boundary tool connection. If the client lifts the custody restriction, compare measured latency and operating burden again.
Design exercise
Compare a hosted runtime with a customer-operated SDK worker for a client whose tools must execute inside its private network. Record where prompts, tool execution, artifacts, and session state live in each proposal. A design is feasible only if each flow satisfies the stated boundary and has an operational owner.
Further reading · Building effective agents · Claude model comparison and availability · Managed Agents and runtime responsibilities
Choose an orchestrator, runtime, and deployment surface quiz
Answer 11 questions. Check each answer for an explanation.