Conceptual summary of the article’s Ollama 0.20.3 chat path: a context clamp can remove older messages while retaining system messages and a recent tail; the evaluated count describes the shortened prompt.

Ollama Context Truncation: What num_ctx Overflow Drops

An agent on a local Ollama server stops acting on its own conversation mid-session: a tool result it received ten turns ago is treated as never having existed, and nothing in the API response says why. The usual suspects are the model, the sampler and the prompt wording. In Ollama 0.20.3 the likelier cause is the server. When the rendered conversation does not fit num_ctx, /api/chat removes whole messages from the front of the history, keeps the tail, and answers with a normal 200 response. prompt_eval_count then reports the size of the shortened prompt, not the size of the prompt you sent, so a dashboard built on that number shows a healthy, small request. ...

October 31, 2026 · 10 min · baeseokjae

Agent Traces That Don't Join: gen_ai.system vs gen_ai.provider.name and a Join-Key Contract for Mixed-Framework Fleets (2026)

A team runs a LangGraph service, an OpenAI Agents SDK worker, and a coding-agent CLI with telemetry switched on this quarter. Every producer is instrumented, every span arrives, and the per-agent cost dashboard still covers exactly one of the three. The others are not erroring; they are simply invisible to the group by everyone wrote, because the attribute that identifies a provider is spelled differently by each producer and, in one case, is not an attribute at all. The instrumentation guide already on this site, OpenTelemetry for AI agents, teaches how to emit those spans and predates the rename described below; this post is about what happens after the spans exist. The architecture question that led readers to the site is answered structurally in the multi-agent system design guide, which covers how to decompose the fleet but not what the telemetry contract between its members has to say. ...

October 31, 2026 · 10 min · baeseokjae
Four diagnostic branches from the article: request rejection, a length stop, context shifting, and slow repeated prefill without an overflow. The figure summarizes source analysis, not new measurements.

llama-server Context Overflow: Diagnose Prompt Limit Failures

An agent that has been working against a self-hosted llama.cpp server for twenty or forty turns eventually stops working, and the symptom is almost never specific enough to act on: a half-written answer, an empty completion, a tool call that never arrives, or a request that never gets a reply at all. The tempting response is to raise -c, which is exactly the fix that KV memory may not allow, and which does nothing for the two of the four failure modes below that are not really about running out of room. ...

October 30, 2026 · 15 min · baeseokjae

MCP stdio Leaks: Why Your Agent's Tool Servers Hang at Shutdown, Die on a Bad Filename and Leave Ghost Tools

A stdio MCP server that never exits is not a mystery: the Python SDK’s writer task can be blocked in a pipe write that only the reader can unblock, so cancelling it waits forever. In MCP Python SDK 2.2.0 on Linux, this probe reproduced that hang and three related lifecycle defects — an unencodable string that kills the connection with no JSON-RPC error, a rejected ClientSessionGroup registration that leaves a second server child alive and unreachable, and a disconnected session whose old tool name survives in group.tools. All four have a host-side workaround you can enforce today, and the probe below counts exactly what your host leaks. ...

October 30, 2026 · 8 min · baeseokjae
Table of stale-return rates from the 30-case fixture: append-only recency and last-write-wins upsert return a superseded value in 66.7% of current-truth queries, both bitemporal policies return none, and without a query-time as-of predicate the bitemporal store answers only 13.3% of 2026-08-01 queries correctly.

Zep Temporal Memory and Stale Facts: A Reproducible 30-Case Fixture (2026)

An agent answers “your plan is the Starter tier” three weeks after the account moved to Enterprise. The fact is in the store. The store has timestamps. The answer is still wrong. When that happens the team usually has three suspects and no way to tell them apart: the extraction step filed something incorrectly, the store’s invalidation rule never closed the old fact, or the retrieval query asked the wrong question. This post is a fixture that splits those three apart on paper and in code, so you can tell which one you are looking at. To be precise about the scope: what the fixture exercises is four modelled invalidation policies, not Zep or Graphiti themselves — neither product is run anywhere below. The governance version of the same argument is in the anatomy of persistent memory; this post is the measurement that argument does not carry. ...

October 30, 2026 · 10 min · baeseokjae

Ollama's Silent Tool-Call Failures: Conversation-History Round-Trip, Dropped Calls and Retyped Arguments

An agent loop calls a local Ollama server, the HTTP status is 200, the stream ends cleanly, and the assistant message contains nothing: no content, no tool_calls, done_reason: "stop". The loop treats that as “the model is done” and stops. Nothing was done. No error was raised. That is the failure this article is about. It is not one bug with one cause. Four separate, currently open reports against Ollama between versions 0.34.1 and 0.40.8 describe four different ways a tool call disappears or comes back mutated, and the source of tag v0.40.12 shows which of those paths are still present in the newest release at the time of writing. ...

October 29, 2026 · 13 min · baeseokjae
Diagnostic map distinguishing an absent graph, a query with no matches, a failed ingestion pipeline, and a stopped worker. No aggregate failure rate is inferred from these categories.

Cognee Empty Recall: Diagnose Missing Agent Memory

A memory layer fails quietly in one specific way that matters more than any benchmark score: the agent asks for context, receives nothing usable, and answers anyway. Nothing raises in the application. The model’s confidence is unchanged, the user gets a plausible answer with no memory behind it, and no alert fires because from the client’s point of view the call returned. Cognee is a graph-and-vector memory library for agents, and its maintainers publish dated fleet telemetry as public GitHub issues. That telemetry is unusual: it gives per-release, per-day denominators for exactly this failure, so the silence can be measured rather than described. This article maps each visible symptom to one cause, one probe, and one fix, and keeps every number tied to the release and date printed in the issue it came from. ...

October 29, 2026 · 14 min · baeseokjae
RockB — AI tools and engineering guides

LiteLLM Rewrites Your Tool Call IDs: Debugging Broken Multi-Turn Tool Loops Across Ollama, Gemini and Responses Bridges

Your agent calls a tool through a LiteLLM proxy. Turn one returns a tool call, the tool runs, and turn two comes back with an empty tool result or a 400 from the provider. The model never saw a different question — it saw a conversation whose tool call and tool result no longer share an identifier. That single broken invariant produces a whole family of symptoms that look like model failures, and the code paths responsible sit in the proxy, not in the model. ...

October 28, 2026 · 8 min · baeseokjae
Agent Memory on Cloudflare Workers: the documented API contract

Agent Memory on Cloudflare Workers: API and Compaction

Cloudflare Agent Memory is a managed memory store for AI agents: you bind it to a Worker, address an isolated profile per user or tenant, hand it conversations, and get back extracted facts, events, instructions and tasks that survive context compaction. The documentation is public even though the service is in private beta, so the useful engineering question today is not “does it work” but “what exactly is specified, and what is left unspecified”. ...

October 28, 2026 · 20 min · baeseokjae
The read/write asymmetry described for self-hosted mem0ai 2.2.1: an expired row can be hidden by reads yet remain available to the write-path duplicate check. The hosted platform is excluded.

mem0 Expired Memories: Why New Writes Get Blocked

Your agent stored user prefers aisle seats with an expiration date. The date passed. The user says it again. You call add() with a fresh expiration_date, get no exception, get an empty results list, and get_all() shows nothing. The fact never lands, and it will never land as long as the expired copy is what the search returns. On mem0ai 2.2.1 — the Python OSS package, self-hosted — the cause is a read/write asymmetry. Expiration is applied as a filter on the read paths but not on the ADD path. The expired row is still handed to the extraction LLM as an “existing memory”, and its hash is still loaded into the dedup set, so the fresh write is dropped as a duplicate of a record the user can no longer see. The same write machinery adds a second dependency: an update that only touches metadata or the expiry date still calls the embedding provider, and a provider error stops that update before anything is persisted. ...

October 28, 2026 · 13 min · baeseokjae