<?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: Wei Rongjie</title>
    <description>The latest articles on DEV Community by Wei Rongjie (@weirongjie_dcs).</description>
    <link>https://dev.to/weirongjie_dcs</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%2F4122017%2F773af5e4-8d64-4fc0-b5d6-2eb81fdcf64a.png</url>
      <title>DEV Community: Wei Rongjie</title>
      <link>https://dev.to/weirongjie_dcs</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/weirongjie_dcs"/>
    <language>en</language>
    <item>
      <title>LLM Agents Keep Failing in Production. Here's Why a Causal Architecture Might Be the Answer.</title>
      <dc:creator>Wei Rongjie</dc:creator>
      <pubDate>Sun, 13 Sep 2026 06:56:49 +0000</pubDate>
      <link>https://dev.to/weirongjie_dcs/llm-agents-keep-failing-in-production-heres-why-a-causal-architecture-might-be-the-answer-1ale</link>
      <guid>https://dev.to/weirongjie_dcs/llm-agents-keep-failing-in-production-heres-why-a-causal-architecture-might-be-the-answer-1ale</guid>
      <description>&lt;p&gt;&lt;em&gt;An update on the DCS research program and what it means for agent builders.&lt;/em&gt;&lt;/p&gt;




&lt;p&gt;If you've built and shipped LLM agents, you know the pattern. The model produces a clean trace. Every tool call looks right individually. The plan sounds plausible. And then — nothing works. The agent loops. It returns a confident wrong answer. It rewrites the entire context when a single tool fails.&lt;/p&gt;

&lt;p&gt;After you've debugged a few of these, you start to suspect it's not a prompt engineering problem. It's deeper.&lt;/p&gt;

&lt;h2&gt;
  
  
  The diagnosis from DCS
&lt;/h2&gt;

&lt;p&gt;DCS (Dynamic Causal Structure) is a cross-disciplinary research program that just went public with a ~200,000-word theoretical manuscript (DOIs: 10.5281/zenodo.22709952 and 10.6084/M9.FIGSHARE.33519052). It covers everything from cosmology to AI agents, but for developers, the relevant part is narrow and practical.&lt;/p&gt;

&lt;p&gt;The core claim: &lt;strong&gt;next-token prediction optimizes for conditional likelihood, not for causal structure.&lt;/strong&gt; It tells you what comes next given what you've already seen. It doesn't tell you &lt;em&gt;which of its own assumptions would break if reality pushed back.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Here's the gap in tabular form:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;What current LLMs do well&lt;/th&gt;
&lt;th&gt;What they struggle with&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Predict next token given context&lt;/td&gt;
&lt;td&gt;Localize which assumption broke under perturbation&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Generate plausible plans&lt;/td&gt;
&lt;td&gt;Identify which parts of the plan are load-bearing&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Synthesize from training data&lt;/td&gt;
&lt;td&gt;Know when a tool result invalidates a prior step&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Handle distribution that looks like training data&lt;/td&gt;
&lt;td&gt;Re-derive downstream state after a single node changes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  What DCS proposes as the fix
&lt;/h2&gt;

&lt;p&gt;The DCS framework traces a chain that runs:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;causal structure → causal persistence → causal compression
→ causal emergence → causal prediction → causal intervention
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For agent engineering, the operational translation is straightforward:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Store dependency graphs, not just traces.&lt;/strong&gt; Each tool call should annotate which prior assumption it depends on. When a tool returns unexpected data, the agent should know which upstream node to revisit.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Treat perturbation as first-class input.&lt;/strong&gt; Errors, missing files, and user contradictions are not edge cases. They're the unit of work. A causal architecture localizes the affected node and re-derives only downstream state — it doesn't rewrite the whole context.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Explanation should be a subgraph, not a paragraph.&lt;/strong&gt; When an agent explains itself, the output should be a view of its own dependency structure, not freshly synthesized text that may itself be hallucinated.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Separate prediction from intervention.&lt;/strong&gt; Next-token prediction is necessary but not sufficient. The jump from "simulating multiple futures" to "deciding which causes to manufacture today" is the hard part — and it's where current agents consistently fail.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The AI risk angle
&lt;/h2&gt;

&lt;p&gt;There's a corollary that should matter to anyone building AI systems with real-world access. DCS argues that the biggest risk from AI is not rebellion — it's &lt;strong&gt;loyal execution of wrong objectives at increasing speed and scale&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;This isn't just an alignment philosophy. It has an architectural root. If an agent can't inspect its own causal assumptions — if it can't tell you which parts of its plan are speculative and which are load-bearing — then no amount of RLHF or human review will catch every error before it becomes an email that gets sent, a transaction that executes, or a robot action that lands.&lt;/p&gt;

&lt;p&gt;The real variable isn't how smart the model is. It's how large its &lt;strong&gt;causal domain&lt;/strong&gt; becomes — how much real-world intervention capability it can access through tools, APIs, and physical interfaces.&lt;/p&gt;

&lt;h2&gt;
  
  
  The "living theory" approach
&lt;/h2&gt;

&lt;p&gt;One unusual feature: DCS is designed as an AI-native living theory. Multiple AI agents run in parallel as literature assistants, logic reviewers, fact-checkers, and adversarial debaters. New evidence enters, counterexamples are surfaced, weak propositions are downgraded, wrong ones exit. The theory version keeps updating.&lt;/p&gt;

&lt;p&gt;This is relevant to developers because it's essentially the same architecture problem: how do you build a system that updates itself locally under perturbation instead of regenerating from scratch?&lt;/p&gt;

&lt;h2&gt;
  
  
  Launch details
&lt;/h2&gt;

&lt;p&gt;The full program launches publicly on &lt;strong&gt;September 16, 2026&lt;/strong&gt; as a global online livestream:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;English session:&lt;/strong&gt; 09:00–11:30 Beijing time (Tuesday evening, September 15, US time zones)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Chinese session:&lt;/strong&gt; 19:30–22:00 Beijing time&lt;/li&gt;
&lt;li&gt;~2.5 hours, 130+ slide deck, live Q&amp;amp;A&lt;/li&gt;
&lt;li&gt;Non-commercial — no product, no fundraising&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;More at &lt;strong&gt;&lt;a href="https://MINDAS.ME" rel="noopener noreferrer"&gt;https://MINDAS.ME&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open questions for the DEV community
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Where in your own agent stacks have you seen a failure that looks causal — a specific dependency broke — rather than just a statistical miss?&lt;/li&gt;
&lt;li&gt;Is tool-use fine-tuning a permanent solution, or does it eventually hit the same causal-representation wall?&lt;/li&gt;
&lt;li&gt;What's the cleanest experiment that would show whether an agent benefits from explicit dependency graphs?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drop your thoughts in the comments. The author will be reading.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;DCS is an independent research program. It does not claim peer review or institutional endorsement. Claims in this article are presented as proposals within the DCS framework, not established scientific consensus.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>agents</category>
    </item>
    <item>
      <title>Do AI Agents Need a Causal Architecture, or Is Next-Token Prediction Enough?</title>
      <dc:creator>Wei Rongjie</dc:creator>
      <pubDate>Sat, 12 Sep 2026 10:29:00 +0000</pubDate>
      <link>https://dev.to/weirongjie_dcs/do-ai-agents-need-a-causal-architecture-or-is-next-token-prediction-enough-45e6</link>
      <guid>https://dev.to/weirongjie_dcs/do-ai-agents-need-a-causal-architecture-or-is-next-token-prediction-enough-45e6</guid>
      <description>&lt;p&gt;A few weeks ago I watched a well-funded agent demo crash. The model had a clean tool-calling loop and a beautiful UI. It was asked: "Why did you retry that tool call?" It answered confidently. Then it answered a different question. Then it contradicted itself.&lt;/p&gt;

&lt;p&gt;That failure wasn't about context length. It was about &lt;strong&gt;causal transparency&lt;/strong&gt;: the agent couldn't explain the causal chain of its own decisions.&lt;/p&gt;

&lt;h2&gt;
  
  
  The next-token contract is a correlation engine
&lt;/h2&gt;

&lt;p&gt;Transformers are trained on one objective: predict the next token. This is enormously powerful, but it optimizes for statistical consistency, not causal validity. A model can hold the right answer in its attention heads without holding a model of &lt;em&gt;why&lt;/em&gt; that answer causes the next step.&lt;/p&gt;

&lt;p&gt;We see the symptom in production every week:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Hallucinated tool calls that "look right" but violate API contracts&lt;/li&gt;
&lt;li&gt;Agents that loop on the same retry because they can't distinguish "I failed" from "the tool failed"&lt;/li&gt;
&lt;li&gt;Plausible explanations that don't match the trace&lt;/li&gt;
&lt;li&gt;Planning that degrades under small perturbations of the prompt&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The debate in 2025–2026 is whether scale alone closes this gap. My read: it doesn't, because the gap isn't a compute problem. It's an &lt;strong&gt;architecture-of-representation&lt;/strong&gt; problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a causal architecture would actually look like
&lt;/h2&gt;

&lt;p&gt;This is where I want to open a discussion rather than preach. Here is the working hypothesis I've been building (dubbed &lt;strong&gt;DCS — Dynamic Causal Structure&lt;/strong&gt;):&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;State, not just tokens.&lt;/strong&gt; An agent should maintain an explicit causal graph of its own situation: what node caused what, which edge is uncertain, which assumption is load-bearing.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Disturbance response.&lt;/strong&gt; Real agency is tested by perturbations — a tool returns an error, a file is missing, a user contradicts you. A causal graph updates locally; a next-token model reflows globally and often silently rewrites its own prior.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Explanation as a first-class artifact.&lt;/strong&gt; When you ask "why," the answer should be a subgraph, not a plausible sentence.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Scale across domains.&lt;/strong&gt; The same causal bookkeeping that explains a tool-call failure should explain a cell's metabolism, a neuron's firing pattern, and a civilization's transition. That's an ambitious bet, but I think the alternative — separate theories for physics, biology, and intelligence — has already failed to produce a unified research program.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  The uncomfortable counterargument
&lt;/h2&gt;

&lt;p&gt;I want to steelman the "scale is enough" position, because it's worth taking seriously:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Modern models already learn implicit causal structure from training data. Physics, grammar, and tool usage all have causal structure embedded.&lt;/li&gt;
&lt;li&gt;Fine-tuning on trajectories seems to fix most agent failures in practice.&lt;/li&gt;
&lt;li&gt;Causal-symbolic approaches (GOFAI, expert systems) have repeatedly promised transparency and delivered brittleness.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The reply, I think, is that implicit structure is fine when the distribution is narrow, and fails exactly when agents leave the textbook. Production agents operate under distribution shift by definition — that's the whole point of autonomy.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'm actually building
&lt;/h2&gt;

&lt;p&gt;I'm not here to sell a framework. I'm publishing a ~200,000-word research program called DCS (Dynamic Causal Structure) that tries to do three specific things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Define a single causal-structure primitive that applies from the Big Bang through chemistry, biology, neural systems, and finally AI agents.&lt;/li&gt;
&lt;li&gt;Derive testable predictions about where token-prediction systems should and shouldn't break.&lt;/li&gt;
&lt;li&gt;Treat the theory itself as a living agent — a document that updates as evidence comes in.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The launch is a live online session on &lt;strong&gt;September 16, 2026&lt;/strong&gt; (English session 09:00–11:30 Beijing; Chinese session 19:30–22:00 Beijing). It's ~2.5 hours, mostly animation, with a 138-slide deck. More here: &lt;a href="https://MINDAS.ME" rel="noopener noreferrer"&gt;https://MINDAS.ME&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Questions I'd love to hear from you
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Have you hit a production agent failure that looks causal rather than statistical?&lt;/li&gt;
&lt;li&gt;Do you think tool-use fine-tuning is a local patch or a permanent solution?&lt;/li&gt;
&lt;li&gt;What's the cleanest falsification test for a "causal architecture" claim?&lt;/li&gt;
&lt;li&gt;Is cross-disciplinary unification (physics → life → mind → AI) actually productive, or is it a philosopher's trap?&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Drop a comment. I'd rather be wrong in public than right in a slide deck.&lt;/p&gt;

</description>
      <category>ai</category>
      <category>machinelearning</category>
      <category>agents</category>
    </item>
  </channel>
</rss>
