Don't Let AI Agents Call APIs Directly

Yaqin Hei ·

Don't Let AI Agents Call APIs Directly

At one architecture review, the vendor's slide 23 read: external systems integrated, 6 — order OMS, ticket platform, logistics provider, warehouse WMS, customer-service IM, knowledge base center. 25 APIs in total. 7 Tools on the Agent side. End-to-end coverage of 12 core scenarios including aftersales refunds, logistics tracking, ticket creation. The boss nodded. Then asked three things in passing. "What happens when the OMS vendor changes?" Vendor answer: "We rewrite the LLM Tools." "How does QA integrate before the OMS interface is ready?" Vendor answer: "Wait for the vendor's API." "Next month compliance audit needs the call-chain logs for every refund — can we get them?" Vendor answer: "Let's add some logging later." If all 25 APIs are wired up, why can't the architecture survive those three questions?

That was the moment the whole project team realized: all 25 APIs being wired up does not mean the architecture is right. It only proves the LLM can currently reach external systems. It does not prove this system can swap vendors without rewrites, can integrate without the real interface present, has audit trails for write operations, or can roll back to specific APIs when an incident hits. Those four things are the actual baseline of an enterprise-grade Agentic architecture. Across every customer-service Agent project I worked on this year, the most expensive architecture mistake is not in the algorithm, not in model choice, not in which vector DB you pick. It is this single decision: letting LLM Tools call external APIs directly. Looks like the shortest path, ships fastest, the slide deck looks best. But three months in, when the first vendor swap happens, the first compliance audit lands, the first production incident hits, the entire Tool layer and external system integration has to be torn down and rewritten. 90% of the enterprise Agentic projects I have seen build the wrong architecture at this interface layer. API integration is the part of a rollout most easily papered over with "we integrated 25 APIs," and the part that costs the most when problems land.

Calling external APIs directly: three costs that show up three months later

Letting LLM Tools call external interfaces directly looks like the shortest path, but it actually skips all three enterprise-grade concerns: contracts, abstractions, audit trails. The cost does not show in demo phase. It always shows three months in.

The first cost: swap a vendor, and you rewrite. The OMS field naming convention changes, camelCase to snake_case, plus new required fields. The ticket platform takes a major version upgrade, v4.x to v5.x. The logistics provider switches from A to B. Any change in your enterprise system integrations, and the entire Tool layer needs rework. One project I worked on, the OMS middleware upgrade revised one schema; the Agent's 7 Tools all needed regression testing, 4 engineers working overtime for 3 weeks. The root cause: LLM Tools are coupled to the external system. The interface name the LLM sees is the vendor's interface name.

The second cost: the project stalls when interfaces are missing. Public ecommerce platforms' real APIs are still pending commercial confirmation. The ticket system's field schema is still pending business stakeholder confirmation. The WMS authentication scheme has not been decided. If Tools call these APIs directly, the project halts until they exist. In projects I have seen, 80% of wasted engineering time was burned in this "waiting on interfaces" death loop. The root cause: no Mock contract layer, so dev and QA have nothing to integrate against.

The third cost: the compliance audit last mile fails. When a write operation — refund, cancel order, void ticket — caused an incident, compliance and finance want to look back. Which conversation triggered the Tool? What parameters? Who signed off: the LLM, the Workflow, the Critic, the Rules, or a business-signed threshold? The call-chain plus decision basis plus business signoff audit closure simply does not exist in the "LLM-calls-API-direct" architecture. When the incident hits, all you can see is "LLM emitted approve." No intermediate layer can tell you what validation that approve went through.

The three costs combined: "Agent calls APIs directly" trades demo speed away for the three most important capabilities of enterprise-grade architecture — swappable vendors, integrate-able contracts, auditable call chains. Without these three, an enterprise-grade Agentic project is just a slide deck.

Connecting to external APIs has to be split into five layers

Do not let the agent call external APIs directly. The segment of an enterprise-grade Agentic system that connects to external APIs is what I teach as five layers. Each layer solves exactly one thing; the contracts between layers do not leak. Miss any layer and you pay three months later. People already talk about anti-corruption layers, hexagonal design, tool proxies. I use five layers to make this split clear to teach; it is not a name the industry has already standardized, and it is not an architecture some open-source gateway has already shipped.

Here is what each layer is for. The Adapter translates external SaaS fields, protocols, auth, and error codes into the internal protocol. One Adapter per external system, with OAuth Token cache, camelCase and snake_case mapping, non-success business codes raised as XxxBizError, and HTTP retries. Owner: backend. The Service ABC layer lets the business layer not know which provider is in use. OrderClient, TicketClient, and LogisticsClient abstract base classes, plus Mock and Real implementations, switched at boot via SERVICES_BACKEND=mock/real. Owner: backend, and the business signs the schema. The Tool layer is the interface contract the LLM sees: name, parameter schema, read_only flag. Usually 7 to 12 Tools, each with a description, a parameters JSON Schema, and a read_only flag, registered through a ToolRegistry. Owner: backend and AI Ops. The Workflow layer orchestrates write operations in multiple steps and enforces safety limits: check_params, query, validate, critic_check, execute, notify, plus a max_steps safety limit and a human_review fallback. Owner: backend, with business sign-off. Critic and Rules are the last gate between "LLM decides" and "external state actually changes": an LLM Critic at the semantic layer, and Rules at the hard layer — amount thresholds, a 7-day order window, a 24-hour duplicate refund check — fail-closed. Owner: business, AI Ops, and legal sign-off.

Each layer's boundary is something the architect must be able to draw on a whiteboard. Not being able to means the architecture is unclear.

The LLM never sees the Adapter. The Adapter is at the bottom. The LLM never calls order_gateway.list_orders(). It only calls Tools. Tools call Service ABC. Service ABC calls Adapter.

The business layer never sees the provider. The business Workflow calls order_client.get_by_user(user_id). It does not know whether this order_client is MockOrderClient or RealOrderClient, much less whether the underlying system is OMS A or OMS B.

The Tool's contract to the LLM does not leak internal structure. The Tool's description is "query order," not "call the order gateway's /orders/list endpoint." The LLM does not see endpoint paths, field mappings, or auth.

Write operations must pass the Critic. Any Tool that modifies external state — cancel_order, create_refund, cancel_ticket — is forced by the Workflow DSL to pass through a critic_check step. Bypassing it is an architecture bug.

Config also splits into three tiers. Service and flow toggles live in code plus env vars. Business thresholds live in a dedicated config, and the business signs them. Ops monitoring thresholds live in Dashboard config. Three tiers, three people, no cross-contamination.

These five layers are not architects chasing elegance. They are the basic immunity for whether an enterprise-grade Agentic project can survive a vendor swap, a compliance audit, a production incident. Each layer with clear responsibilities means the team shares a vocabulary. Miss any one and the project becomes a rewrite in some specific scenario.

LayerSolves whatKey artifactsOwner
AdapterTranslates external SaaS fields, protocols, auth, error codes into internal protocolOne Adapter per external system (OAuth Token cache, camelCase and snake_case mapping, non-success business code raises XxxBizError, HTTP retries)Backend
Service ABCLets the business layer not know which provider is in useOrderClient / TicketClient / LogisticsClient abstract base classes + Mock implementations + Real implementations, switched at boot via SERVICES_BACKEND=mock/realBackend + business signs schema
ToolThe interface contract the LLM sees: name, parameter schema, read_only flag7-12 Tools, each with description / parameters JSON Schema / read_only flag; ToolRegistry for unified registrationBackend + AI Ops
WorkflowMulti-step orchestration of write operations + safety limitscheck_params → query → validate → critic_check → execute → notify; max_steps safety limit; human_review fallbackBackend + business sign-off
Critic + RulesLast gate between "LLM decides" and "external state actually changes"LLM Critic (semantic layer) + Rules (hard layer: amount thresholds, 7-day order window, 24h duplicate refund check), fail-closedBusiness + AI Ops + legal sign-off

Each layer solves exactly one thing.

The Adapter only translates. It does not make business decisions.

The Adapter only translates. It does not make business decisions. One Adapter per external SaaS, the more independent the better. This is where "swap vendor without pain" actually lives in enterprise-grade Agentic.

It handles six jobs, each tied to a real production lesson.

The first is auth. The order gateway uses OAuth2, and the token expires in 30 minutes. The naive version is "check the token before every call, then refresh." Under concurrency that becomes a disaster: 100 requests arrive at once, the token expires at once, and you fire 100 concurrent /oauth/token calls that knock the gateway over. The right version keeps a token cache inside the Adapter, uses asyncio.Lock to stop a refresh stampede, renews 60 seconds before expiry, clears the cache on 401, and retries once. Write that mechanism once, leave it in the Adapter, and nobody above Service ABC needs to know that tokens exist.

The second is field mapping. The order gateway returns code; different vendors name it bizCode, statusCode, or code, and the internal protocol unifies it as biz_code. The OMS field is productCode, internally sku_id. The ticket platform uses requestId, internally ticket_id. All of those naming differences are eaten by from_dict / to_dict methods in the Adapter. Everything above Service ABC receives an internal-protocol dataclass. It has no idea how the vendor named the field.

The third is error-code abstraction. The order gateway uses business codes to distinguish success from failure, for example code=0 for success and code=1004 for order not found. The ticket platform uses an HTTP status plus a custom error_code. The logistics provider uses result.success == false. All of these heterogeneous error codes are translated in the Adapter into XxxBizError(code, msg). Everything above Service ABC receives a Python exception and handles it with a uniform try/except.

The fourth is environment isolation. Calls from a test environment to a real interface have to carry X-Env: staging; production does not. That isolation header is injected automatically inside the Adapter from an environment variable. Business code never sees the header, so it cannot forget it and send test traffic into production.

The fifth is retry and timeout. httpx is configured with timeout=10s and connect_timeout=3s. A 401 is retried once, after the token is cleared. HTTP 5xx is not retried; the exception is raised to the business layer. These rules are defined once in the Adapter, and every call uses the same configuration. When something goes wrong, you do not have to hunt through each Tool to see whether it added its own retry.

The sixth is input validation, the first wall against SQL and path injection. What if an order id contains "'; DROP TABLE;--"? httpx escaping URL parameters will stop most of it. The Adapter also runs a strict schema check before the call: an order-id regex, amount greater than or equal to 0, a date format. Bad input is rejected immediately. This is not a Critic-level fallback. It is a first-wall rejection.

The most counterintuitive engineering discipline in the Adapter is that its code is better when it is boring: pure translation, pure retry, pure field mapping. Any logic that makes a business judgment is wrong. Whether a refund amount can change, whether an order can be cancelled: the Adapter does not care. Those belong to the Service layer, the Critic layer, and the Rules layer. The cleaner the Adapter, the less code a vendor swap has to touch.

The Adapter only translates. It does not make business decisions.

The business layer should not know which provider sits underneath

Service ABC is the real abstraction point for Mock integration, vendor swaps, and A/B switching in an enterprise-grade Agentic system. The business Workflow calls the ABC, not the Adapter. Get that wrong, and the project's swappability is gone.

For an order service, the abstract interface looks like this:

class OrderClient(ABC):
    @abstractmethod
    async def get_by_user(self, user_id: str) -> list[OrderInfo]: ...

    @abstractmethod
    async def get_by_id(self, order_id: str) -> OrderInfo | None: ...

    @abstractmethod
    async def get_active_orders(self) -> list[OrderInfo]: ...

    @abstractmethod
    async def cancel_order(self, order_id: str) -> CancelResult: ...

    @abstractmethod
    async def close(self) -> None: ...

Then there are two implementations. MockOrderClient writes a fixed set of mock orders: ORD-2026-0322-099 is the happy path, ORD-2026-0308-042 is a timeout boundary, ORD-2026-0311-001 is a logistics-tracking case. RealOrderClient calls OrderGatewayAdapter internally and translates the gateway response into an OrderInfo dataclass. The environment variable SERVICES_BACKEND=mock|real controls which implementation is injected. The business Workflow does not change a line.

This layer solves four things.

First, Mock comes before Real, so dev and QA can integrate without waiting for the interface to exist. The public ecommerce platform API is still pending commercial confirmation? That does not matter. First write a MockEcommerceClient against the schema the business signed off, and QA can finish every E2E scenario against the Mock. When the real interface arrives, switch SERVICES_BACKEND=real and run a contract-consistency test, Pact or schema alignment, and you are done. The project schedule is no longer held hostage by "waiting on the interface." This is the watershed between an enterprise-grade Agentic team and a shop that cannot move until a vendor answers.

Second, contract-consistency tests make sure the Mock does not lie. Every method signature and return structure implemented by MockOrderClient must match RealOrderClient. A pytest file, test_contract_services.py, enforces this: if the Mock fails to implement any abstract method on the ABC, the test fails and the PR cannot reach main. That is what keeps "the Mock integration passed" from meaning "it explodes when you switch to Real."

Third, a vendor swap only changes the Adapter, not the ABC. The OMS middleware goes from A to B? Change the Adapter inside RealOrderClient, or add a RealOrderClientV2. The business Workflow, the Tools, and the Critic do not change a line. The entire Tool layer only sees the ABC, and does not know whether anything underneath changed.

Fourth, two implementations of the same interface can run in parallel for A/B and canaries. Production wants to send 10% of traffic to the new Service and 90% to the old one? Add a routing layer above the ABC, ABRoutedOrderClient(old, new, ratio=0.1), and the business layer still does not know.

Service ABC is the layer most easily dismissed with "does a project this simple really need this?" And every project that thought it was simple paid the rewrite cost three months later for not having it. The architect should nail the ABC down in week one of the project, and forbid any Tool from importing an Adapter directly.

What the LLM sees is a business description, not an internal interface

The Tool layer is the only one of the five that faces the LLM directly. Its description and parameters JSON Schema decide how the LLM understands the capability. A Tool is not an alias for the ABC. It is the instruction manual the LLM reads, a translated version of the ABC.

A Tool has to get three things right.

First, the description is not "call the OMS API." It is "query an order."

The wrong version:

ToolDefinition(
    name="query_order",
    description="Call the order gateway /orders/list endpoint to list orders",
)

The right version:

ToolDefinition(
    name="query_order",
    description="Query a user's orders. When user_id is provided, return all of that user's orders; when order_id is provided, return that order's details. Only returns orders from the last 90 days.",
)

Why? If the LLM sees internal implementation names like "order gateway" and /orders/list, it will hallucinate the wrong interface, inventing an endpoint that does not exist. A Tool description has to be a business-semantic description, not a technical-implementation description. When the OMS vendor changes, the description does not change at all.

Second, parameters are a JSON Schema, not Python types.

parameters = {
    "type": "object",
    "properties": {
        "user_id": {"type": "string", "description": "User ID (take it from identity, do not extract it from the conversation text)"},
        "order_id": {"type": "string", "description": "Order ID, format ORD-YYYY-MMDD-XXX"},
    },
    "required": [],  # either one is enough; validate in execute
}

Notice that the description explicitly tells the LLM not to extract user_id from the conversation text. That is the safety dimension I wrote about in Pytest-green doesn't mean ship-ready.. Without that reminder, the LLM sees "the user said my ID is user_999" and fills it in.

Third, a read_only flag separates reads from writes.

ToolDefinition(name="query_order",   read_only=True)   # read
ToolDefinition(name="query_ticket",  read_only=True)   # read
ToolDefinition(name="cancel_order",  read_only=False)  # write, must pass Critic
ToolDefinition(name="create_refund", read_only=False)  # write, must pass Critic

A Tool with read_only=False is forced by the Workflow to pass through a critic_check step. The LLM is not allowed to call a write Tool without the Critic.

A few more engineering rules sit on this layer. Keep the Tool count between 7 and 12. A customer-service Agent project with more than 12 Tools usually has boundaries drawn too finely. "Query orders from the last 7 days" and "query orders from the last 30 days" as two Tools is wrong; they should be merged into query_order(time_window_days). Every Tool has execute(), JSON Schema validation, and a uniform ToolResult return value: { success: bool, data: any, error: str | None }. A Tool does not know the external system name. query_order does not know whether it is talking to OMS A or OMS B; cancel_ticket does not know which ticket platform is underneath. Service ABC absorbs all of that. A ToolRegistry handles registration, so adding a Tool does not require editing the LLM prompt template; it is automatically exposed in the LLM's tools list.

Write operations need four defenses. Miss one and an incident is waiting.

Any operation that changes external state — refund, cancel order, void ticket — has to pass through four defenses: Workflow orchestration, hard Rules checks, Critic semantic checks, and business-signed thresholds. Miss one, and an incident is waiting to happen.

Take a "small refund" Workflow as the standard sequence. Step one, check_params: missing arguments go straight to human_review, and the flow stops. Step two, query_order: fetch the order facts. Step three, validate: the hard Rules fire — amount at or under the signed maximum, order date inside a 7-day window, no duplicate refund in 24 hours, and special business types blocked, a business-type-code blacklist. Step four, the critic check: the LLM Critic runs a semantic check, fail-closed. Step five, execute_refund: actually call the write Tool, the one with read_only=False. Step six, notify: send the result to the customer.

Miss one of the four write-operation defenses, and an incident is waiting.

In that sequence, each layer has a job.

The Workflow itself has invariants, enforced at the DSL layer. The entry step must be check_params; you cannot skip argument checks and go straight to execution. A write Tool must be called after critic_check. max_steps defaults to 10, to stop an LLM death loop from burning resources. When human_review is true, the workflow exits immediately, and the LLM cannot keep pushing. When the trigger is event, meaning a scheduled job, suppress delta events and do not send unsolicited messages to the customer.

The Rules layer lives in a threshold config plus a rules engine in code. The business signs a document, it is converted into that config, and the code loads and validates it. Every amount, time window, and allow/deny list is read from there. Change it in one place, and the workflow rule, the Pydantic Field(le=...), and the rules display endpoint all take effect together. The threshold config must have a business-signed version. Engineers are not allowed to add a rule and ship it themselves.

The Critic layer is LLM semantic validation, and it is fail-closed. I wrote about this in Why a 70% Critic Beats a 95% Critic: an LLM timeout, a malformed response, an API 5xx, all treated as reject. The input is the real order facts the workflow has already fetched, plus the Rules result, not the user's raw message. The output is approve or reject, plus a rejection reason, written to the audit log.

The write Tool that actually calls the external system goes through Service ABC to the Adapter. The LLM never sees the Adapter. The full call chain, inputs, outputs, and decision basis land in a Langfuse trace, so a compliance audit can look them up.

If any of these four defenses fails, the safety of write operations degrades. The most common collapse I have seen is the Rules layer: the business never signed a written approval, engineering set the thresholds and shipped them, and six months later the business asks who decided this amount. The architect should nail this down at project start. Every Rule needs a business- and legal-signed written version. Unsigned rules do not ship.

The principle can stop there. A write path still needs to propose, validate, authorize, commit once, and reconcile against the receipt. Miss one of those, and the gate loosens on retry or on reconciliation. The sequence above still stands; a write still has to finish this controlled execution before it is allowed to land.

Bring this integration table to the next review

A typical enterprise customer-service Agent project integrates 6 major external systems with about 25 APIs. This checklist drops straight into your next architecture review for sign-off. Every row's layer, status, owner, and notes has to be made explicit in the room.

#External systemAPI categoryCountLayerStatus
1-5Order OMSlist_orders / get_order_detail / cancel_order / get_admin_region / oauth_token5Adapter ✓ + Service ABC ✓ + Tool ✓Ready
6Order OMSrequest_refund (whether this shares an endpoint with #14 still pending business confirmation)1Adapter awaiting schemaUndefined
7-9Ticket platformcreate_ticket / query_ticket / cancel_ticket3Adapter Stub + Service ABC ✓ + Tool ✓Stub (schema pending business)
10Logistics provider A (primary)track_logistics (signature auth)1Adapter Stub + Service ABC ✓Stub (signature formula pending)
11-13Logistics provider B (backup)track / intercept / receiver_change3Entirely missingNo Adapter at all
14-15Aftersales systemrefund_apply / aftersales_status2Adapter ✓, Workflow integration pendingPartial
16-19Public ecommerce platforms (several major platforms)order_query / logistics / refund4-8Mock contract (business has not locked it)Mock-only
20-21Invoice systeminvoice_status / invoice_issue2Adapter ✓, Workflow integration pendingPartial
22Price-difference FASrefund_diff1Entirely missingBusiness scenario pending
23-25Data-audit dashboardDirect database reads (data team owns this)3Out of Agent scope (data team)Out
26Customer-service IMwebhook + push_message1+1Inbound Adapter ✓ + outbound StubIn progress both ways
27Knowledge-base centerKB sync + reload2Internal KB Center, independently layeredReady
28Warehouse WMSget_shipment_status (dual-source verification)1Stub, fail-closed to a humanStub (interface pending)

This is a real project's integration list, already anonymized. Externally we report only about 25 APIs across 6 major systems. That is the approximate scale of this project. Integration lists differ by industry and by company; 25 is not a bar every team has to clear. The table rows are kept as they were, including counts that were still unlocked (4-8 on rows 16-19, 1+1 on row 26), which is exactly why the public number stays "about 25." At the next review, the architect should bring this table and ask, on every row: which layer is it in? Who owns it? Is it a Stub or real? Did the business sign off? You can get to the actual integration state in 30 minutes, which is ten times more useful than a slide that says all 25 APIs are green.

A table tells you the real integration state better than a slide with 25 green APIs.

A few signals on this table are ones an architect has to be able to see.

"Stub plus fail-closed to a human" is a normal state, not a bug. The WMS interface is not out yet, so StubWmsShippingClient in the Adapter defaults to UNKNOWN and fail-closes to a human. That is a design. It is not an excuse to wait for the interface before doing any work.

A Mock contract is not fake data. The public ecommerce platform is not decided yet, but once the schema is signed off, QA can run every E2E scenario against the Mock. The Mock is a contract implementation of Service ABC, not a placeholder.

"Out of Agent scope" is an architecture decision, not a staffing gap. Rows 23 to 25, the data-audit dashboard, belong to the data team. The Agent should not read the business database directly. Once that boundary is clear, the Agent team's scope stops expanding forever.

Brand-warehouse and special-business-type denylists belong in the threshold config. Certain business-type codes, maintained by the business and loaded from the signed version, trigger a deny, and they can only ship after the business signs in writing. Those business rules belong to the Critic and Rules layer, not the Tool layer.

Five things to drive this week

If you are the person responsible for getting this to land, these are five things you can drive next week. If any one of them is missing, a vendor change or a compliance audit three months from now is an incident.

First, draw a five-layer by six-system integration matrix and put it on Confluence. For every external API, which layer it sits in, who owns it, Mock or Real, and whether the business has signed off, all made explicit on one table. That table is the actual foundation of a painless vendor swap. Without it, six months later a vendor change costs 3 weeks of overtime.

Second, require engineering to change every Tool import to import the ABC, never the Adapter directly. This is a hard constraint at the level of the coding standard, and one grep will catch it. from app.adapters.order_gateway import ... appearing in the Tool layer is an architecture violation, and the PR does not reach main. If you do not enforce this, every benefit of Service ABC is wasted.

Third, walk every write-Tool Workflow and check for a critic_check step. A simple script can scan all the workflow DSLs and confirm that every read_only=False Tool has a critic_check before it is called. If it does not, it has not met the safety bar I wrote about in Pytest-green doesn't mean ship-ready., and it does not ship.

Fourth, put the threshold config in front of the business and legal, and get a written signature. Amount thresholds, time windows, special-business-type denylists, product-tag allowlists: every number and list that appears in the Rules layer has to be signed by the business and endorsed by legal. Shipping an unsigned threshold config is a compliance risk.

Fifth, line up five still-open interface schemas with the external dependencies: ticket-platform response fields, WMS shipment-status queries, the logistics signature formula, invoice-system endpoints, and the public ecommerce API. Every open item gets an owner, a deadline, and a statement of what it is blocking. If they are not locked, the Mock stays a Mock forever, and you never get to switch to Real.

Once these five are done, the project has a clear boundary around enterprise API integration. At the next architecture review you no longer rely on "we integrated 25 APIs" as a one-liner. You bring a table that shows every API's layer, owner, status, and signature. That is what enterprise-grade Agentic is supposed to look like.

The deepest lesson from a year of customer-service Agent projects is this: the largest cost in an enterprise Agentic rollout is not the algorithm, not the model, not the vector database. It is whether the layering of the external API integration is clear. 99% of projects can demo 7 Tools within 3 months. But only the projects that have drawn the five layers, the 6 systems, and the matrix of about 25 APIs can survive the first vendor change, the first compliance audit, and the first production incident six months later.

This piece is about turning architecture boundaries into a concrete checklist you can stick on the review whiteboard. The five-layer responsibility table lets you sign off what Adapter, Service ABC, Tool, Workflow, and Critic each do. The 6-system, about-25-API matrix lets you see the project's real integration state in 30 minutes. The four write-operation defenses let you produce a complete call chain at a compliance audit. The discipline of a business-signed threshold config lets you avoid a six-month-later argument about who set the threshold. If you are taking an enterprise Agentic system from kickoff to launch, print this piece and bring it to the next architecture review. It will probably save you a six-month rewrite after a vendor swap.

I have written about whether a plan can ship, and how not to abandon it after it does, in 28 projects called themselves Agents. Only 4 needed to be built as one., In week two of the pilot, "I want a refund" sent the money out., Why a 70% Critic Beats a 95% Critic, The less you are Apple, the less you can skip this., Contained is not resolved: how "98% CSAT" gets faked, Agent Skills vs Knowledge Base: Why Stuffing SOPs Into RAG Doesn't Make an Agent Capable, and Pytest-green doesn't mean ship-ready.. This piece is about drawing the line at the external API layer.

If you want to take these tools into your next architecture review, send me the keyword "API layering" and I'll send the pack: a five-layer responsibility checklist covering what Adapter, Service ABC, Tool, Workflow, and Critic each do, do not do, and who owns them, as a one-page PDF; a 6-systems × about-25-APIs integration matrix template you can fill for your own project and drop straight into Confluence; a Tool contract checklist covering description, JSON Schema, read_only, and an LLM-friendly language template; and a Rules business sign-off template, a threshold config plus a written sign-off sheet, usable by business and legal directly. Channels are in the footer — X or email both work.

How an intent system grows out of a corpus is in Corpus Drives Codebook — Why Your Intent Taxonomy Is Stuck at 60% and How It Evolves from 36 to 48. Why neither pure rules nor a pure LLM holds for intent classification is in Just add an LLM as a fallback? The bill went up 12x.. How to actually test an agent is in Pytest-green doesn't mean ship-ready.. Why a 98% satisfaction number can hide an unsolved problem is in Contained is not resolved: how "98% CSAT" gets faked.

Building an agent right now?

Send me your worst conversation. Free failure teardown.

Get a teardown →

Comments