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

推荐订阅源

WordPress大学
WordPress大学
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
博客园 - 聂微东
GbyAI
GbyAI
Recent Commits to openclaw:main
Recent Commits to openclaw:main
博客园_首页
D
Docker
S
Security @ Cisco Blogs
K
Kaspersky official blog
爱范儿
爱范儿
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
V
V2EX
C
CXSECURITY Database RSS Feed - CXSecurity.com
T
Troy Hunt's Blog
Cloudbric
Cloudbric
博客园 - 三生石上(FineUI控件)
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
The Hacker News
The Hacker News
美团技术团队
S
SegmentFault 最新的问题
L
Lohrmann on Cybersecurity
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
宝玉的分享
宝玉的分享
The Last Watchdog
The Last Watchdog
Y
Y Combinator Blog
M
MIT News - Artificial intelligence
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Martin Fowler
Martin Fowler
Google Online Security Blog
Google Online Security Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tor Project blog
Vercel News
Vercel News
The Cloudflare Blog
G
Google Developers Blog
T
Threat Research - Cisco Blogs
AI
AI
Stack Overflow Blog
Stack Overflow Blog
I
InfoQ
Scott Helme
Scott Helme
S
Schneier on Security
大猫的无限游戏
大猫的无限游戏
The GitHub Blog
The GitHub Blog
S
Securelist
IT之家
IT之家
Microsoft Azure Blog
Microsoft Azure 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
Toward a Standard Model for Agent Memory
Daniel Nwane · 2026-05-27 · via DEV Community

Most agent memory systems are digital attics.

You put things in. You hope to find them later. You mostly don't. The retrieval is fuzzy, the context is lost, and the agent that needs to remember why a deployment failed three weeks ago gets back something that looks related but carries none of the causal weight.

This is the wrong mental model for memory. Not because the retrieval is bad — though it often is but because storage is the wrong frame entirely.

If memory is storage, you're building a place things go to accumulate. If memory is infrastructure, you're building something load-bearing. Agents depending on memory for causal context — why this failed, what fixed it, how that decision connected to this outcome — need load-bearing infrastructure. Not a warehouse. A power grid.

The difference is consequential. Storage fails silently. You put something in and nothing comes out, or something wrong comes out, and the agent keeps going with degraded information it can't see is degraded. Infrastructure fails loudly, because the system depending on it stops working. Load-bearing memory makes failures visible. That's not a downside. That's the point.

I've been building production agent workflows on Cloudflare Workers for two years, long enough to feel this distinction in concrete terms. The vectorize-mcp-worker — hybrid vector + BM25 search, cross-encoder reranking, a Gemma 4 MoE reflection layer — started as a storage system. Every architectural decision I've made since has been moving it toward infrastructure. That shift didn't happen all at once. It happened because the storage model kept producing the same failure: agents that couldn't distinguish between what looked relevant and what caused the thing they were trying to understand.

A comment thread on Ken Walger's "Engineering Agent Memory" article clarified something I'd been working around without having language for.


The Sequencing Problem

The obvious fix for agent memory is write-time tagging. Tag what you know when you know it. Mark failures as failures. Mark resolutions as resolutions. Build the causal chain at the moment it happens.

The problem is that causality is only visible in retrospect.

An agent logs: "deployment failed due to timeout." That's a real memory. It happened. It's worth keeping. Later — same session, different session, a week later — the agent logs: "switched to async pattern, deployment succeeded." Also real. Also worth keeping.

These two memories belong together. They're the before and after of the same causal chain. But at write-time, you don't know that. When the failure happens, there's no resolution to link it to. When the resolution happens, the failure might be in a different session, under a different key, already buried in the retrieval index.

Vector search won't find the link reliably either. "Deployment failed due to timeout" and "switched to async pattern" don't look similar in embedding space. They're semantically distant. A similarity search for one won't surface the other. The causal connection is invisible to the retrieval layer.

This is the sequencing problem. Write-time tagging is premature because the thing you need to tag — the causal relationship — doesn't exist yet when the first memory lands. And post-hoc retrieval is unreliable because the link you need to recover isn't semantic. It's structural. It's temporal. It's the kind of connection that requires knowing what happened before and after, not just what looks alike.

Most memory systems stub this out. Summarize the session. Hope the summary captures enough. Move on.

It doesn't. And the failure mode is subtle enough that you don't notice until the agent is confidently reasoning from a memory that's missing the half that would have changed the conclusion.


Instrumented Capture + Temporal Mirror

The sequencing problem has two parts. They need two different solutions.

The first part — what to capture at write-time — is solved by instrumented capture. Not tagging outcomes. Tagging intent. When an agent makes a tool call, the instrumentation layer sees not just the result but the active context: what the agent was attempting, what state it was in, what it expected to happen. "Attempting calibration sequence v2" is richer than "calibration failed." The failure is the outcome. The attempt is the context. You need both, and only one of them exists at write-time.

MCP is the right layer for this. If the tool call routes through an MCP server, the server sees the full reasoning context — intent, failure mode, action taken — in real time, not reconstructed from a cold transcript later. Instrumentation at the call site captures signal that post-hoc analysis can't recover. The question is fidelity, which I'll come back to.

The second part — bridging the gap between a failure tag and a resolution that lands later — is what Ken Walger calls the Temporal Mirror. A post-write reflection pass that runs across recent entries and surfaces causal candidates: memories that aren't similar in embedding space but are temporally adjacent and structurally complementary. The failure and its resolution. The question and the answer it didn't know was coming.

In my setup, that reflection pass runs via Gemma 4 MoE after ingestion. Not a local model. The reason is specific: causal candidate identification requires enough reasoning capacity to recognize structural complementarity across entries that don't look alike on the surface. A smaller local model handles classification well. It misses the non-obvious links. And the non-obvious links are exactly where the causal chain value lives — if the link were obvious, vector search would have found it already.

The token cost is real. It's also bounded. The reflection pass runs once per ingestion event, not per query. A fixed overhead at write-time rather than a compounding cost every time the memory is accessed. That trade-off only makes sense if the reflection pass actually improves retrieval precision — which brings us to how the link gets stored once it's found.


Forensic Receipt: Pre-paying for Precision

Once the reflection pass identifies a causal link, the question is how to store it so retrieval can use it deterministically.

The answer isn't another embedding. It's a UUID.

Ken Walger calls this the Forensic Receipt — a unique identifier that links a failure entry to its resolution entry, independent of their semantic similarity. The agent doesn't need to search for the connection. It's already encoded. "deployment-failure-2024-11-04" links directly to "async-resolution-2024-11-07" via a stored causal edge, not via a similarity score that might or might not surface the right entry depending on how the query is phrased.

This is the difference between a Reasoning Ledger and a Digital Attic. The attic accumulates. The ledger traces. When an agent queries memory for context about a deployment failure, the ledger doesn't return what looks like deployment failures — it returns the specific failure and its resolution, linked by a chain of evidence that was built deliberately at ingestion time.

The cost argument is cleaner than it sounds. Every fuzzy vector search that fails to surface the right memory is a cost: tokens spent, context window consumed, agent confidence degraded on a premise that's missing a piece. The reflection pass that builds the Forensic Receipt is an upfront investment against that compounding failure cost. You're pre-paying for retrieval precision at ingestion rather than paying repeatedly for imprecision at query time.

The attic charges you every time you look for something and can't find it. The ledger charges you once, when you put it in correctly.


The Observer's Tax

There's a constraint that sits underneath all of this that the architecture can't ignore.

Ken Walger, whose background is in forensic auditing, named it the Observer's Tax: if your instrumentation is heavy enough to change the latency or behavior of the agent, you've lost the high-fidelity signal you were trying to capture. The agent you're logging isn't the agent anymore. The causal chain you're preserving is the chain of a degraded system.

Instrumented capture only works if the instrumentation is cheap enough to leave on in production. An MCP layer that adds 400ms to every tool call changes the agent's decision timing. A reflection pass that blocks ingestion until it completes changes the agent's memory availability mid-session. The Observer's Tax isn't a theoretical concern — it's the boundary condition that determines whether the whole architecture is describing a real system or an idealized one.

The practical implication: lightweight instrumentation over comprehensive instrumentation. Every additional signal the capture layer records is a cost paid in latency and behavioral change. The goal isn't maximum fidelity. It's minimum-viable fidelity — enough signal to build the causal chain, cheap enough to not corrupt it.

Event-driven triggering applies the same principle to the reflection pass. Running it after every write is expensive. Running it on a schedule risks the gap: a failure tag sitting unlinked for hours before the next sweep. The better trigger is structural: the reflection pass fires when a write contains specific signals — error states, resolution markers, state transitions — rather than on a timer or on every entry. The signal-to-noise ratio on causal candidates improves significantly. The cost stays bounded.


Toward a Standard Model

That's what infrastructure does. Storage charges you at query time. The Reasoning Ledger charges you once, when you build it correctly.

I'm calling this a proposal, not a standard. The pieces are real — they come from production systems, from a comment thread that surfaced the right vocabulary, from architectural decisions made under Cloudflare's CPU constraints where every overhead is visible immediately. But the boundary conditions aren't fully mapped. High-fidelity capture as the load-bearing requirement is the right frame. How cheap is cheap enough? What's the minimum-viable reflection pass for a given workflow complexity? Those questions don't have clean answers yet.

What the architecture gives you right now is a way to think about the problem that storage framing doesn't. Not where to put things. What to build so that agents can reason from them.


The Open Problem

The open problem isn't retrieval. It's capture fidelity.

Every part of this architecture downstream of the instrumentation layer depends on the capture layer getting the signal right. The Temporal Mirror can only find causal connections that the ingestion pipeline actually received. The Forensic Receipt can only link entries that contain enough structural signal to recognize as complementary. The Observer's Tax names the constraint but doesn't solve it: we don't yet have a principled way to determine what minimum-viable instrumentation looks like for a given agent workflow.

That's the next thing to figure out. Not how to retrieve memory better — vector search, BM25, cross-encoder reranking, all of that is solved enough to build on. How to capture what the agent actually did in a form that makes causal reasoning possible later, without the capture itself changing what the agent does.

Most of this piece came out of a comment thread on Ken Walger's "Engineering Agent Memory" on DEV.to. Ken coined both sides of the central frame — "digital attic" and "power grid for reasoning" — in the same sentence, and named the Temporal Mirror, the Forensic Receipt, the Observer's Tax, and the Standard Model. The sequencing problem, event-driven triggering, and Instrumented Capture came from my end. The production specifics — Gemma 4 MoE reflection pass, Cloudflare CPU constraints, vectorize-mcp-worker architecture — are mine. Everything else emerged from the exchange.

If you want to read the thread before the write-up arrived here, it's worth reading. Ken thinks carefully about forensic integrity in ways that transfer directly to agentic systems.

The Standard Model isn't finished. The open constraint — how cheap is cheap enough for a given workflow — doesn't have a clean answer yet. But the frame is more useful than the one it replaces. You can build on infrastructure. You can't build on an attic.