<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hub-ERT</title>
    <description>The latest articles on DEV Community by Hub-ERT (@martinrrxl).</description>
    <link>https://dev.to/martinrrxl</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4283145%2F30e5ff82-bc13-41ba-9d2e-15977dd56ed1.png</url>
      <title>DEV Community: Hub-ERT</title>
      <link>https://dev.to/martinrrxl</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/martinrrxl"/>
    <language>en</language>
    <item>
      <title>Your AI Agent Timed Out. Did It Just Create Two Invoices?</title>
      <dc:creator>Hub-ERT</dc:creator>
      <pubDate>Sat, 05 Dec 2026 19:24:04 +0000</pubDate>
      <link>https://dev.to/martinrrxl/your-ai-agent-timed-out-did-it-just-create-two-invoices-33hd</link>
      <guid>https://dev.to/martinrrxl/your-ai-agent-timed-out-did-it-just-create-two-invoices-33hd</guid>
      <description>&lt;p&gt;Your AI agent receives a simple instruction: create an invoice, send it to the customer, and update the CRM.&lt;/p&gt;

&lt;p&gt;The invoice is successfully created.&lt;/p&gt;

&lt;p&gt;Then the connection times out.&lt;/p&gt;

&lt;p&gt;The agent receives an error, retries the operation, and creates a second invoice.&lt;/p&gt;

&lt;p&gt;Congratulations. Your AI agent has just rediscovered distributed systems.&lt;/p&gt;

&lt;p&gt;The problem isn't intelligence. It's execution.&lt;/p&gt;

&lt;p&gt;The failure had nothing to do with the quality of the model.&lt;/p&gt;

&lt;p&gt;A more sophisticated prompt would not solve it either.&lt;/p&gt;

&lt;p&gt;The external system performed an operation, but the agent never received confirmation. From the agent's perspective, the outcome is unknown.&lt;/p&gt;

&lt;p&gt;This distinction matters when agents interact with production systems:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating invoices in accounting software.&lt;/li&gt;
&lt;li&gt;Modifying customer records in a CRM.&lt;/li&gt;
&lt;li&gt;Sending emails to external recipients.&lt;/li&gt;
&lt;li&gt;Creating purchase orders in an ERP.&lt;/li&gt;
&lt;li&gt;Updating employee records.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Every one of these operations can have consequences that survive the failure of the agent that initiated it.&lt;/p&gt;

&lt;p&gt;A timeout is not a rollback&lt;/p&gt;

&lt;p&gt;Consider this sequence:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The agent requests invoice creation.&lt;/li&gt;
&lt;li&gt;The accounting system commits the transaction.&lt;/li&gt;
&lt;li&gt;The response is lost.&lt;/li&gt;
&lt;li&gt;The agent retries.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Unless the integration explicitly prevents duplicate operations, the retry may create another invoice.&lt;/p&gt;

&lt;p&gt;This is precisely why execution reliability cannot be delegated entirely to a language model.&lt;/p&gt;

&lt;p&gt;An agent should not have to infer whether a financial transaction occurred from an incomplete conversation history.&lt;/p&gt;

&lt;p&gt;Four properties I would require from a production agent workflow&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Idempotency&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Every business operation should have a stable identifier that survives retries.&lt;/p&gt;

&lt;p&gt;For example:&lt;/p&gt;

&lt;p&gt;"invoice:create:order_7842"&lt;/p&gt;

&lt;p&gt;Where the destination API supports idempotency keys, repeated requests using the same key should not produce additional business operations within the API's documented guarantees.&lt;/p&gt;

&lt;p&gt;Generating a new key every time the agent retries defeats the purpose.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Persistent execution state&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;An operation needs an execution record outside the model's context window.&lt;/p&gt;

&lt;p&gt;A minimal state machine could distinguish:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"PENDING" — the operation has not started.&lt;/li&gt;
&lt;li&gt;"IN_PROGRESS" — execution has been attempted.&lt;/li&gt;
&lt;li&gt;"SUCCEEDED" — the external operation is confirmed.&lt;/li&gt;
&lt;li&gt;"FAILED" — failure has been established.&lt;/li&gt;
&lt;li&gt;"UNKNOWN" — the external outcome cannot yet be determined.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That last state is especially important.&lt;/p&gt;

&lt;p&gt;An unknown outcome should trigger reconciliation, not necessarily another write operation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Reconciliation&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Before repeating an ambiguous operation, the execution layer should determine whether its intended effect already exists.&lt;/p&gt;

&lt;p&gt;For example, it could query the accounting system using an external order reference.&lt;/p&gt;

&lt;p&gt;If the invoice exists, the workflow can continue without creating another one.&lt;/p&gt;

&lt;p&gt;If the result remains uncertain and the API offers no safe retry mechanism, the workflow should stop for investigation.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Partial failure recovery&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Suppose the invoice was created, the email was sent, but the CRM update failed.&lt;/p&gt;

&lt;p&gt;Restarting the entire workflow is usually the wrong recovery strategy.&lt;/p&gt;

&lt;p&gt;Instead, resume from the failed step using persistent execution records and verified external state.&lt;/p&gt;

&lt;p&gt;This is not an exotic AI problem. It is a familiar distributed systems problem with a new kind of client.&lt;/p&gt;

&lt;p&gt;A failure-injection test for your agent&lt;/p&gt;

&lt;p&gt;Before connecting an agent to a production ERP, try these scenarios in a sandbox:&lt;/p&gt;

&lt;p&gt;Injected failure| Expected behaviour&lt;br&gt;
Timeout after invoice creation| No duplicate invoice&lt;br&gt;
Agent process crashes| Recover execution state&lt;br&gt;
CRM becomes unavailable| Preserve completed operations&lt;br&gt;
Two workers execute the same task| Prevent duplicate business effects&lt;br&gt;
External outcome cannot be verified| Stop for reconciliation&lt;/p&gt;

&lt;p&gt;A successful demonstration under ideal conditions tells you very little about how an agent handles these failures.&lt;/p&gt;

&lt;p&gt;Where should this logic live?&lt;/p&gt;

&lt;p&gt;Ideally, not inside the prompt.&lt;/p&gt;

&lt;p&gt;The assistant can interpret instructions and select actions. The execution architecture should provide the mechanisms required to make those actions reliable.&lt;/p&gt;

&lt;p&gt;This is one reason I am interested in platforms such as "Houston" (&lt;a href="https://ok-houston.com/r/s99sapu6" rel="noopener noreferrer"&gt;https://ok-houston.com/r/s99sapu6&lt;/a&gt;), which position themselves at the execution and orchestration layer between AI assistants and enterprise software.&lt;/p&gt;

&lt;p&gt;Regardless of the platform, I would explicitly test its behaviour under network failures, concurrent requests and interrupted workflows before relying on it for critical operations.&lt;/p&gt;

&lt;p&gt;Agentic AI does not make decades of software engineering obsolete.&lt;/p&gt;

&lt;p&gt;If anything, it makes those engineering principles more valuable.&lt;/p&gt;

&lt;p&gt;When was the last time you deliberately broke your AI agent's connection halfway through a transaction?&lt;/p&gt;




&lt;p&gt;Further reading:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"AWS Well-Architected: Make mutating operations idempotent" (&lt;a href="https://docs.aws.amazon.com/wellarchitected/latest/framework/rel04-bp04.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/wellarchitected/latest/framework/rel04-bp04.html&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;"AWS: Transactional outbox pattern" (&lt;a href="https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html" rel="noopener noreferrer"&gt;https://docs.aws.amazon.com/prescriptive-guidance/latest/cloud-design-patterns/transactional-outbox.html&lt;/a&gt;)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Disclosure: I work commercially with Houston and may receive compensation through the link above. The failure scenarios are proposed engineering tests, not verified Houston test results.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>architecture</category>
      <category>distributedsystems</category>
      <category>softwareengineering</category>
    </item>
    <item>
      <title>Your AI Agent Passed Its Prompt. Can It Pass a Permission Test?</title>
      <dc:creator>Hub-ERT</dc:creator>
      <pubDate>Fri, 04 Dec 2026 16:39:18 +0000</pubDate>
      <link>https://dev.to/martinrrxl/your-ai-agent-passed-its-prompt-can-it-pass-a-permission-test-3kfb</link>
      <guid>https://dev.to/martinrrxl/your-ai-agent-passed-its-prompt-can-it-pass-a-permission-test-3kfb</guid>
      <description>&lt;p&gt;A customer-support agent is asked to prepare the briefing for a renewal meeting.&lt;/p&gt;

&lt;p&gt;It opens the CRM, reads recent email, produces a good summary and stops. No incident. No hallucination. Everyone is happy.&lt;/p&gt;

&lt;p&gt;Now ask a different question: &lt;strong&gt;could that same agent have deleted the customer record?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The successful demo tells you nothing about the answer. You have tested the agent's behaviour, not the boundary around it.&lt;/p&gt;

&lt;h2&gt;
  
  
  A small experiment for your next MCP integration
&lt;/h2&gt;

&lt;p&gt;Create a test workspace with two fictional customers. Give an agent access to the first customer's records only, with no write permission. Do not use production data.&lt;/p&gt;

&lt;p&gt;Then run these requests separately:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Request&lt;/th&gt;
&lt;th&gt;Expected result&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Read the first customer's record&lt;/td&gt;
&lt;td&gt;Allowed&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read the second customer's record&lt;/td&gt;
&lt;td&gt;Denied&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Update the first customer's record&lt;/td&gt;
&lt;td&gt;Denied&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Access connection credentials&lt;/td&gt;
&lt;td&gt;Denied&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Read the first record after access has been revoked&lt;/td&gt;
&lt;td&gt;Denied&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Keep the same agent, model and prompt throughout. Inspect the enforcement point and its logs, rather than accepting the assistant's statement that it refused a request.&lt;/p&gt;

&lt;p&gt;There is one subtle but important distinction: an assistant that decides not to make a dangerous call is behaving safely in that instance. A system that rejects the call independently of the assistant provides evidence of an enforced boundary.&lt;/p&gt;

&lt;p&gt;Those are not interchangeable results.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where does MCP fit?
&lt;/h2&gt;

&lt;p&gt;The &lt;a href="https://modelcontextprotocol.io/" rel="noopener noreferrer"&gt;Model Context Protocol&lt;/a&gt; standardizes how assistants interact with external capabilities. It also has an authorization specification; MCP is not inherently insecure.&lt;/p&gt;

&lt;p&gt;But once a company has connected several assistants to operational tools, the engineering questions extend beyond protocol compatibility:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Which real user or service identity is this operation running under?&lt;/li&gt;
&lt;li&gt;What operations, resources and destinations can that identity reach?&lt;/li&gt;
&lt;li&gt;Are the credentials kept away from both the model and the execution environment?&lt;/li&gt;
&lt;li&gt;Where is authorization enforced when an operation is attempted?&lt;/li&gt;
&lt;li&gt;What happens when a source-system permission is withdrawn?&lt;/li&gt;
&lt;li&gt;Can an operator reconstruct which person, agent and connection performed a particular action?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;An architecture can answer those questions with existing infrastructure, bespoke services or an execution platform. The important part is that the answers can be tested.&lt;/p&gt;

&lt;h2&gt;
  
  
  The case for an execution boundary
&lt;/h2&gt;

&lt;p&gt;Consider a team using multiple AI assistants to work with a CRM and email.&lt;/p&gt;

&lt;p&gt;For an initial read-only customer brief, the model needs to request specific information. It does not need a CRM administrator token, unrestricted network access or the ability to send messages.&lt;/p&gt;

&lt;p&gt;A useful pattern is to separate:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;The assistant&lt;/strong&gt;, which decides what information or operation to request.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The execution boundary&lt;/strong&gt;, which evaluates the request against the current identity, allowed operations and connection restrictions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The service&lt;/strong&gt;, which still enforces its own permissions.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The audit trail&lt;/strong&gt;, which records the attempted action and its outcome.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;This distinction also helps when the team changes assistants. An access-control policy implemented below the model does not have to be redesigned simply because the interface used to request a task changes.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://ok-houston.com/r/s99sapu6" rel="noopener noreferrer"&gt;Houston&lt;/a&gt; is one example of an execution platform built around this separation. Its approach includes server-side permission checks, connection-level controls, isolated execution, credentials kept outside the agent's reach and traceability of actions. With personal connections, access remains constrained by the source account's permissions; additional connection restrictions can narrow it further.&lt;/p&gt;

&lt;p&gt;It is not a claim that all actions are safe. Within granted permissions, an agent can still perform permitted operations, and a read-only connection does not eliminate data-disclosure risks. You must also review what information is returned to the assistant and what its provider can process.&lt;/p&gt;

&lt;p&gt;For a first pilot, I would start with synthetic data, narrowly scoped read-only access and one workflow that a human can verify.&lt;/p&gt;

&lt;h2&gt;
  
  
  The test I would put in a design review
&lt;/h2&gt;

&lt;p&gt;Don't ask only: "Did the agent do the right thing?"&lt;/p&gt;

&lt;p&gt;Ask: "What happens when it tries to do something it should never be able to do?"&lt;/p&gt;

&lt;p&gt;A good answer includes an enforceable policy, a negative test, and evidence of the result.&lt;/p&gt;

&lt;p&gt;This does not make prompts less important. It makes their role clearer: they guide the assistant. They should not be the only thing standing between a useful workflow and an unauthorized action.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where does your team enforce its agent permissions today: in the model's instructions, the tool implementation, a gateway, or a dedicated execution layer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I work with Houston commercially and may receive compensation if you become a customer through the Houston link above. The permission tests described here are proposed tests, not results of a completed Houston security audit.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>security</category>
      <category>ai</category>
      <category>mcp</category>
      <category>architecture</category>
    </item>
  </channel>
</rss>
