惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Forbes - Security
Forbes - Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
量子位
GbyAI
GbyAI
B
Blog RSS Feed
月光博客
月光博客
人人都是产品经理
人人都是产品经理
腾讯CDC
Recent Announcements
Recent Announcements
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
The Cloudflare Blog
D
Docker
Cyberwarzone
Cyberwarzone
U
Unit 42
NISL@THU
NISL@THU
C
Check Point Blog
B
Blog
大猫的无限游戏
大猫的无限游戏
Cisco Talos Blog
Cisco Talos Blog
Recorded Future
Recorded Future
H
Hackread – Cybersecurity News, Data Breaches, AI and More
J
Java Code Geeks
G
GRAHAM CLULEY
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
P
Proofpoint News Feed
F
Fortinet All Blogs
V
V2EX
T
Threat Research - Cisco Blogs
T
Threatpost
S
SegmentFault 最新的问题
Know Your Adversary
Know Your Adversary
雷峰网
雷峰网
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
博客园 - 司徒正美
P
Privacy & Cybersecurity Law Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
TaoSecurity Blog
TaoSecurity Blog
Latest news
Latest news
Apple Machine Learning Research
Apple Machine Learning Research
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Y
Y Combinator Blog
P
Privacy International News Feed
L
Lohrmann on Cybersecurity
AWS News Blog
AWS News Blog
G
Google Developers Blog
美团技术团队

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
Building AI Workflows Is Easy. Making Them Reliable Is Systems Engineering
Glendel Joubert Fyne Acosta · 2026-05-30 · via DEV Community

Building the first version of an AI workflow is usually easy.

  1. Connect an LLM to a few tools.
  2. Add some instructions.
  3. Let the model decide what to do next.
  4. Run the demo.
  5. It works.

The problem starts later, when that workflow becomes part of a real process.

Suddenly the important questions are not about the prompt anymore.

They are about reliability.

  • What happens when a tool fails ?
  • What happens when the model retries the wrong thing ?
  • What happens when the workflow changes state but the agent still claims failure ?
  • What happens when the agent claims success but no tool actually ran ?
  • What happens when one agent hands bad context to another agent ?

This is where AI workflows stop being prompt engineering.

They become Systems Engineering.

The Demo Is Not The System

A lot of AI workflow demos optimize for the happy path.

  1. The user asks for something.
  2. The agent thinks.
  3. The agent calls a tool.
  4. The tool returns a result.
  5. The agent summarizes the result.
  6. Everyone claps.

But production workflows do not live on the happy path.

They live in the messy reality of:

  • Partial failures
  • Bad inputs
  • Timeout errors
  • Invalid tool responses
  • Duplicate retries
  • Missing context
  • Permission denials
  • State inconsistencies
  • Cost limits
  • Human approvals
  • Recovery paths

The first version proves that the idea is possible.

The production version needs to prove that the system is dependable.

Those are very different goals.

Prompts Can Guide Reasoning. They Cannot Manage Reliability.

Prompts are important.

They help the model understand:

  • What role it is playing
  • What goal it should pursue
  • How it should reason
  • What tone it should use
  • What constraints it should consider

But prompts should not be responsible for the reliability of the whole workflow.

A prompt should not be the only thing preventing an unsafe action.

A prompt should not be the only thing remembering which step already completed.

A prompt should not be the only thing deciding whether a retry is safe.

A prompt should not be the only thing proving that a tool actually executed.

Once an AI workflow affects real systems, the runtime needs to take responsibility for the parts that require consistency.

"The model can reason. The system must govern."

The Core Split: Reasoning, Execution, State, Evidence

A reliable AI workflow needs a clean separation between four concerns:

  1. Reasoning: The model handles reasoning.
  2. Execution: The runtime handles execution.
  3. State: The workflow engine manages state.
  4. Evidence: The audit layer records evidence.

When these responsibilities are mixed together, debugging becomes painful.

For example, this is fragile:

const result = await agent.run(`
  Read the customer complaint,
  decide whether it needs escalation,
  send the email if needed,
  and tell me when you're done.
`);

Why?

Because too much is hidden inside one probabilistic step.

  • Did the agent actually send the email ?
  • Was the action allowed ?
  • Was the customer data valid ?
  • Did the escalation rule trigger ?
  • Did the email tool fail ?
  • Was the final response based on evidence or assumption ?

A more reliable architecture separates the work:

const decision = await agent.reason({
  task: "Should this complaint be escalated?",
  context
});

const permission = runtime.permissions.verify({
  actor: agent.id,
  action: "send_escalation_email",
  resource: complaint.id
});

if (!permission.allowed) {
  return runtime.recordDeniedAction(decision, permission);
}

const execution = await runtime.tools.sendEmail({
  to: escalationTeam,
  template: "complaint_escalation",
  complaintId: complaint.id
});

const evidence = runtime.audit.record({
  actor: agent.id,
  decision,
  permission,
  execution
});

return agent.summarize({
  evidenceId: evidence.id,
  executionStatus: execution.status
});

This is less magical.

It is also much easier to trust.

The Retry Problem

Retries are one of the most underestimated problems in AI workflows.

In traditional software, retrying a failed API call is usually straightforward.

If the request times out, try again.

But AI workflows introduce different kinds of failure.

  • A tool call failing is not the same as a model reasoning step failing.
  • A network timeout is not the same as a bad plan.
  • A malformed JSON response is not the same as missing business context.
  • A low-quality answer is not the same as an unavailable dependency.

Different failures need different retry strategies.

For example:

switch (failure.type) {
  case "tool_timeout":
    return retrySameToolCall();

  case "invalid_tool_payload":
    return askModelToRepairPayload();

  case "bad_reasoning":
    return resetContextAndReplan();

  case "permission_denied":
    return escalateToHuman();

  case "cost_budget_exceeded":
    return stopWorkflow();
}

If every failure is handled with "just run the agent again", the system can become expensive, slow, and unreliable.

Sometimes the correct retry is not retrying.

Sometimes the correct response is:

  • Reduce scope
  • Reset context
  • Ask for clarification
  • Escalate to a human
  • Stop the workflow
  • Record the failure

Cost-aware retries are not just a billing concern.

They are a reliability concern.

State Must Be Explicit

A workflow that cannot explain its current state cannot be reliably recovered.

If an Agent is halfway through a process, the system should know:

  • Which step is running
  • Which steps completed
  • Which tools executed
  • Which outputs were produced
  • Which approvals are pending
  • Which errors occurred
  • What can safely happen next

Without explicit state, recovery becomes guesswork.

This is especially dangerous when the workflow mutates external systems.

Imagine a workflow that:

  1. Reads a customer complaint.
  2. Creates an internal ticket.
  3. Sends an escalation email.
  4. Updates the CRM.
  5. Marks the complaint as handled.

If the workflow fails at step 4, what should happen?

  • Should it restart from step 1 ?
  • Should it send the email again ?
  • Should it create a duplicate ticket ?
  • Should it mark the complaint as handled ?

The answer depends on state.

Reliable workflows need checkpoints.

workflow.checkpoint("ticket_created", {
  ticketId,
  complaintId,
  timestamp
});

workflow.checkpoint("email_sent", {
  messageId,
  recipient,
  timestamp
});

Checkpoints make recovery possible.

They also make debugging possible.

Evidence Beats Claims

One of the most dangerous failure modes in AI workflows is false completion.

The agent says:

"Done, I sent the email."

But no email was sent.

Or the email tool failed.

Or permission was denied.

Or the agent never called the tool.

The model's final answer is not evidence.

It is a claim.

A reliable workflow should be able to prove what happened.

An evidence record might include:

{
  "actor": "support-agent-01",
  "action": "send_email",
  "permission": "granted",
  "tool": "email_sender",
  "status": "success",
  "messageId": "msg_123",
  "timestamp": "2026-05-29T14:32:10Z",
  "auditId": "audit_789"
}

Now the system can answer:

  • Who acted
  • What was requested
  • Whether it was allowed
  • What executed
  • What result came back
  • When it happened
  • What proves it

That is the difference between trusting the agent and trusting the system.

Multi-Agent Workflows Make Reliability Harder

Multi-Agent Systems (MAS) amplify every reliability problem.

In a Single-Agent workflow, one model may lose context or make a bad assumption.

In a Multi-Agent workflow, one agent's unsupported claim can become another agent's input.

For example:

  1. Research Agent says it collected the correct data.
  2. Analyst Agent uses that data to generate a report.
  3. Reviewer Agent approves the report.
  4. Communication Agent sends it to the customer.

If the first claim was wrong, the entire workflow becomes unreliable.

The final output may look coherent.

But the foundation is broken.

That is why Multi-Agent workflows need strong boundaries:

  • Explicit handoffs
  • Scoped context
  • Evidence records
  • Validation gates
  • Responsibility tracking
  • State checkpoints

Agents should not pass vague natural-language summaries to each other as if they were verified facts.

A good handoff should include:

{
  "from": "research-agent",
  "to": "analyst-agent",
  "task": "analyze_customer_churn",
  "artifactId": "dataset_456",
  "evidenceId": "audit_123",
  "status": "verified",
  "scope": "Q1 customer data only"
}

That is much more reliable than:

"I collected the data. You can continue."

Observability Is Not Optional

Once AI workflows become operational, observability becomes foundational.

A useful trace should show:

  • What the model intended
  • What context it received
  • What action it requested
  • Whether permission was granted
  • What tool executed
  • What state changed
  • What evidence was recorded
  • What the agent claimed afterward

Without this, teams end up debugging through transcripts and guesses.

That does not scale.

Traditional logs tell you that something happened.

AI workflow observability needs to explain why something happened, what the model believed, what the runtime allowed, and what actually executed.

That means observability must include both:

  • Reasoning traces
  • Runtime evidence

One without the other is incomplete.

The Architecture Pattern

A production AI workflow should not be one big prompt chain.

It should look more like this:

User Request
     ↓
Intent Resolution
     ↓
Context Assembly
     ↓
Model Reasoning
     ↓
Action Request
     ↓
Permission Check
     ↓
Tool Execution
     ↓
Evidence Record
     ↓
State Checkpoint
     ↓
Agent Summary
     ↓
Verification / Escalation

The model is still important.

But it is no longer responsible for everything.

It reasons inside a system that manages boundaries, execution, and recovery.

That is the shift.

AI Workflows Are Operational Systems

When an AI workflow becomes part of a business process, it needs the same engineering discipline as any other operational system.

It needs:

  • Clear inputs
  • Explicit state
  • Bounded execution
  • Permission checks
  • Retry policies
  • Failure handling
  • Observability
  • Audit trails
  • Recovery paths
  • Verification gates

This is not bureaucracy.

This is what makes the workflow dependable.

The more responsibility we give AI Agents, the more important the surrounding system becomes.

Conclusion

Building an AI workflow is easy.

Making it reliable is the hard part.

The future of AI agents will not be won only by better prompts or bigger models.

It will be won by better runtime architecture.

Prompts guide reasoning.

But reliable AI workflows need:

  • Checkpoints
  • Retries
  • Permissions
  • Execution Boundaries
  • Observability
  • Audit Trails
  • Evidence
  • Recovery

That is why production AI workflows are not just prompt engineering.

They are Systems Engineering.