Skip to main content

Posts

Workflow Timeout: Retry, Resume or Escalate?

" Operations and recovery A timeout tells you that a response did not arrive in time. It does not prove the remote operation failed. That uncertainty is why a blind retry can be dangerous for mutating actions. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves A timeout tells you that a response did not arrive in time. It does not prove the remote operation failed. That uncertainty is why a blind retry can be dangerous for mutating actions. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status, HTTP codes, model output, approva...

Human Approval Patterns for High-Risk AI Actions

" AI guardrail architecture Human approval works best when it is placed at the boundary where an uncertain recommendation becomes a consequential action. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves Human approval works best when it is placed at the boundary where an uncertain recommendation becomes a consequential action. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status, HTTP codes, model output, approval state and destination records are evidence. Statements such as ""the API is broken"" or ...

Least-Privilege Permissions for AI Agents

" AI guardrail architecture Least privilege limits blast radius. If an AI task only needs to read records, a credential that can delete or modify those records creates avoidable risk. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves Least privilege limits blast radius. If an AI task only needs to read records, a credential that can delete or modify those records creates avoidable risk. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status, HTTP codes, model output, approval state and destination records are evidence. Statemen...

How to Prevent an AI Agent From Calling the Wrong Tool

" AI guardrail architecture When an agent can select among many tools, the model is making a routing decision with real permissions behind it. Reliability improves when the available action surface is smaller and more explicit. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves When an agent can select among many tools, the model is making a routing decision with real permissions behind it. Reliability improves when the available action surface is smaller and more explicit. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status,...

How to Stop an AI Agent From Sending Messages Without Approval

" AI guardrail architecture An AI system can be useful at drafting while still being unsafe to give unrestricted send capability. The simplest control is to make 'draft' and 'send' separate authorities. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves An AI system can be useful at drafting while still being unsafe to give unrestricted send capability. The simplest control is to make 'draft' and 'send' separate authorities. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status, HTTP codes, mod...

AI Classified a Customer Incorrectly: How to Add a Confidence Gate

" AI output reliability Classification errors are expected in probabilistic systems. Reliability comes from controlling what happens after uncertainty, not from assuming every label is correct. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves Classification errors are expected in probabilistic systems. Reliability comes from controlling what happens after uncertainty, not from assuming every label is correct. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status, HTTP codes, model output, approval state and destination record...

AI Returns Invalid JSON: How to Validate Before the Next Step

" AI output reliability A model can return malformed JSON, extra prose, missing keys or structurally valid data with unsafe values. The next workflow step should not assume model output is ready to execute. Resolution rule Change one boundary at a time. Preserve the failing evidence, apply the smallest safe correction, then replay the known case and check the business effect as well as the technical run status. Contents What the symptom actually proves Evidence to collect before changing the workflow Likely failure paths Resolution sequence Prevention design Verify the fix Decision table Sources and scope What the symptom actually proves A model can return malformed JSON, extra prose, missing keys or structurally valid data with unsafe values. The next workflow step should not assume model output is ready to execute. A useful diagnosis begins by separating what is directly observed from what is only suspected. Execution status, HTTP codes, model output, approval st...