# Technical writing

Canonical URL: https://chabot.dev/blog/

How agent platforms and the systems around them work, written while building them.

- [Deterministic wakes, reports, and memory for long-running agents](https://chabot.dev/blog/deterministic-wakes-reports-and-memory-for-long-running-agents/index.md): How deterministic code can own wakes, reports and memory for long-running agents, with event batching and cold resets timed by the prompt-cache lifetime.
- [Keeping agent guardrails off the hot path](https://chabot.dev/blog/keeping-agent-guardrails-off-the-hot-path/index.md): How to keep an agent's guardrails off the hot path: four ordered checks, a judge that never sees untrusted text, and owner interruptions budgeted like latency.
- [Designing out shared fate in an agent runtime](https://chabot.dev/blog/designing-out-shared-fate-in-an-agent-runtime/index.md): Why process-per-agent is affordable once idle agents unload, how to fence a single SQLite writer, and why a plan that resends history makes the cached prefix the cost model.
- [Treating a sixteen-agent build like a production system](https://chabot.dev/blog/treating-a-sixteen-agent-build-like-a-production-system/index.md): Running a sixteen-lane agent build like a production system: reviewing specifications at their seams, a rival design as adversarial review, and measuring friction from session logs.
- [Moving a cloud coding agent to a Mac with consumer-driven contracts](https://chabot.dev/blog/moving-a-cloud-coding-agent-to-a-mac-with-consumer-driven-contracts/index.md): Running a cloud coding agent on one Mac by building shims from its call sites, mirroring upstream unedited, and reviewing each change from the goal and diff alone.
- [Context over prompts and LLM judges for subjective output](https://chabot.dev/blog/context-over-prompts-and-llm-judges-for-subjective-output/index.md): Why prompt wording and LLM judges failed to improve a model's taste in outfits, what measuring its context revealed, and why a judge must pass the contrast that matters before it gates output.
- [Keeping agent memory current when facts change](https://chabot.dev/blog/agent-memory-that-remembers-the-current-answer/index.md): Similarity search returns an old fact and its correction together, and recall@k cannot tell them apart. Storing supersession on the record and grading the final answer can.
- [Stopping delayed retries from resurrecting deleted records](https://chabot.dev/blog/forgetting-a-memory-must-survive-the-retry/index.md): How durable operation receipts and permanent tombstones stop a redelivered create from bringing back a record that was deleted while the create was still in flight.
- [Replacing embedded Raft with Valkey in a configuration service](https://chabot.dev/blog/taking-raft-out-of-our-configuration-service/index.md): A configuration service that embedded its own Raft: which responsibilities stayed in the service when Valkey replaced it, and why every multi-key write then became an atomic script.
- [Slow or fast news day? Picking the right number of updates](https://chabot.dev/blog/ten-stories-is-a-maximum/index.md): Asked for ten updates, an LLM returns ten whether or not anything happened. A deterministic filter chooses what a daily digest covers before the model is called, and skips the call on slow days.
- [Inversion of control for agent pipelines and MCP servers](https://chabot.dev/blog/inversion-of-control-for-agent-pipelines-and-mcp-servers/index.md): Keeping a long agent job's goal and state in SQLite, splitting perception from judgment, and moving an MCP server's reasoning into the user's own assistant host.
- [Evaluating frontier models by replaying real agent work](https://chabot.dev/blog/evaluating-frontier-models-by-replaying-real-agent-work/index.md): Building model evaluations from your own agent recordings, separating reviewer drift from model gains with a calibration rescore, and why an LLM judge can only verify what it can see.
- [Where to measure equivalence when porting a coding agent](https://chabot.dev/blog/where-to-measure-equivalence-when-porting-a-coding-agent/index.md): Porting an open-source coding agent to a constrained platform: where to measure equivalence, why the original should generate the expected outputs, and why a findings ledger beats a parity score.
- [Separating an agent from its platform for differential testing](https://chabot.dev/blog/separating-an-agent-from-its-platform-for-differential-testing/index.md): How to separate an agent from its platform with a mechanical test when verifying a port, and how to run the unmodified original as a deterministic oracle for differential testing.
- [Verifying a coding agent port without a model in the loop](https://chabot.dev/blog/verifying-a-coding-agent-port-without-a-model-in-the-loop/index.md): How to verify a ported agent harness one step at a time with no model in the loop, by comparing each next request byte for byte and never counting supplied inputs as passes.
- [Counting interventions instead of adding watchdogs](https://chabot.dev/blog/counting-interventions-instead-of-adding-watchdogs/index.md): Counting why people step in to an agent platform, letting threads own goals judged by observed progress, and running recovery code in shadow before it may act.
- [Letting agents observe and maintain their own platform](https://chabot.dev/blog/letting-agents-observe-and-maintain-their-own-platform/index.md): How to give agents access to the platform they run on: broad redacted reads, narrow self-referential writes, an explicit unknown for what is deployed, and reversible changes.
- [Replaying injected memory without breaking extended thinking](https://chabot.dev/blog/replaying-injected-memory-without-breaking-extended-thinking/index.md): Why memory injected into an extended-thinking request must be recorded and replayed at its original position, and how to keep history, canonical memory and admitted input apart.
- [Messaging live coding agents without confusing delivery with completion](https://chabot.dev/blog/messaging-live-coding-agents-without-confusing-delivery-with-completion/index.md): How a local MCP broker lets live Codex, Claude Code and hosted agent sessions message and wake each other, with journalled writes that never resend an unknown outcome.
- [Managing worker agents with service state instead of prompt rules](https://chabot.dev/blog/managing-worker-agents-with-service-state-instead-of-prompt-rules/index.md): Why a coordinator agent's duties to its workers belong in service state: stored waits with clocks for worker questions, a computed capacity line, and workers that own whole areas.
- [Getting an agent coordinator to brief like a product manager](https://chabot.dev/blog/getting-an-agent-coordinator-to-brief-like-a-product-manager/index.md): Why prompt fixes do not hold an agent coordinator's voice across hundreds of turns, and how to split rules between prompt, tool descriptions, state and services so the prompt stays short.
- [Keeping a shared event loop fast across sixty agents](https://chabot.dev/blog/keeping-a-shared-event-loop-fast-across-sixty-agents/index.md): Why a shared event loop is only as fast as its worst synchronous stretch, and how encode-once fan-out, closing back-pressured sockets and group commit kept one gateway responsive for sixty agents.
- [Letting an agent diagnose production without giving it a shell](https://chabot.dev/blog/letting-an-agent-diagnose-production-without-giving-it-a-shell/index.md): Why read-only is not enough for an agent-facing operations interface: bounded verbs, stated uncertainty, fenced tenant text, analytics checked against ground truth, and leak-proof suppression.
- [Putting scripts in charge of agent-run releases](https://chabot.dev/blog/putting-scripts-in-charge-of-agent-run-releases/index.md): How fingerprinting inputs makes release test results reusable, why a post-mortem's lesson has to become a script that refuses, and how to keep acceptance evidence through a rolling upgrade.
- [Enforcing hard spending limits in an AI gateway](https://chabot.dev/blog/enforcing-hard-spending-limits-in-an-ai-gateway/index.md): How an AI gateway makes a spending limit a hard ceiling for concurrent agents: reserve each call's worst-case cost before dispatch, fail closed without a bound, and settle interrupted calls once.
- [Reshaping a tenant instead of raising platform limits](https://chabot.dev/blog/reshaping-a-tenant-instead-of-raising-platform-limits/index.md): Serving a 65 MB browser desktop through 4 MiB replies: chunked model delivery, a small TensorFlow Lite interpreter, a CSS-order regression from code splitting, and right-sized storage.
- [Why queue redelivery changes how you contain an agent browser](https://chabot.dev/blog/why-queue-redelivery-changes-how-you-contain-an-agent-browser/index.md): How at-least-once queue redelivery changes containment for a headless agent browser: costs bounded before work, limits on attempts and work, and a JavaScript interpreter fenced off.
- [One write path for people, agents, and redelivered requests](https://chabot.dev/blog/one-write-path-for-people-agents-and-redelivered-requests/index.md): How a workspace where AI agents are members keeps one write path for people, agents and redelivered requests: complete mediation, a deputy rule, and deterministic ids as idempotency.
- [Closing bug classes in a constrained Rust web framework](https://chabot.dev/blog/closing-bug-classes-in-a-constrained-rust-web-framework/index.md): Why a framework on a constrained Rust platform should fail the build rather than shim: strict generated contracts, an honest TanStack Start port, post-mortem lints and build-time compression.
- [Sharing code without a dependency chain](https://chabot.dev/blog/sharing-code-without-a-dependency-chain/index.md): Why a one-dependency rule is a supply-chain defense, what it costs in code reuse, and how lockfiles, drift checks and a signed index make copied source trustworthy.
- [Measuring and gating a platform's agent experience](https://chabot.dev/blog/measuring-and-gating-a-platforms-agent-experience/index.md): How to benchmark the instructions, tool descriptions and errors a coding agent reads on an MCP platform, holding everything else fixed, and turn the result into a release gate.
- [Proving the harness before scoring the agent](https://chabot.dev/blog/proving-the-harness-before-scoring-the-agent/index.md): The experimental controls a coding-agent evaluation needs at each layer, from task certification and configuration read-back to audit tooling and grader corrections that never overwrite the run.
- [Progressive disclosure and live control in a coding agent workspace](https://chabot.dev/blog/progressive-disclosure-and-live-control-in-a-coding-agent-workspace/index.md): How a coding-agent workspace keeps deeper views on the real sandbox, tracks reader scroll intent with hysteresis, and lets voice steer running turns without a copy of task state.
- [Running coding-agent workspaces on shared hosts and versioned storage](https://chabot.dev/blog/running-coding-agent-workspaces-on-shared-hosts-and-versioned-storage/index.md): Why co-located workspaces stall on syncfs(2), how a durability-matched control finds it, and how to give agents Git tools over a store that is not Git.
- [Enforcing wire, identity, and approval contracts in an agent platform](https://chabot.dev/blog/enforcing-wire-identity-and-approval-contracts-in-an-agent-platform/index.md): Making each boundary in an agent platform checkable: shared SDK fixtures, three-state delegated identity, and approval receipts that can be spent only once across replicas.
- [Coordinating parallel coding agents in code, not prompts](https://chabot.dev/blog/coordinating-parallel-coding-agents-in-code-not-prompts/index.md): Why parallel coding agents need coordination in code: admission control for one sandbox, reviews pinned to a source revision, and decisions journaled before acting.
- [Write-ahead logging for long-running agents](https://chabot.dev/blog/write-ahead-logging-for-long-running-agents/index.md): What an agent runtime should persist before it acknowledges a turn, edits files or dispatches a background job, and how recovery compares that intent with what actually happened.
- [Append-only context for long-running coding agents](https://chabot.dev/blog/append-only-context-for-long-running-coding-agents/index.md): How to lay out a coding agent's prompt so file edits keep the prompt cache warm, compact a conversation without losing the source, and keep token counts honest across providers.
- [From a single loop to a coding-agent harness](https://chabot.dev/blog/from-a-single-loop-to-a-coding-agent-harness/index.md): What running a minimal coding agent forces into its harness: sub-agents as context isolation, resource-keyed parallel tool calls, and deterministic course correction.
- [Entity resolution with provenance for developer ecosystems](https://chabot.dev/blog/entity-resolution-with-provenance-for-developer-ecosystems/index.md): How to join developer data that shares no key, with method and confidence on every link, unresolved rows kept visible, and employees excluded in one toggle.
- [Dogfooding a graph database with a live Bluesky feed](https://chabot.dev/blog/dogfooding-a-graph-database-with-a-live-bluesky-feed/index.md): How a live Bluesky feed on a graph database, combining sustained writes, parallel queries, in-engine modules and analytics, surfaced engine defects benchmarks miss, each fixed upstream.
- [Replacing setup guides with a hosted VS Code environment](https://chabot.dev/blog/replacing-setup-guides-with-a-hosted-vs-code-environment/index.md): Why a persistent, per-user browser VS Code workspace with deep links from the docs onboards developers onto a heavy JVM toolchain better than installation guides do.
- [Porting a long-lived Java server to share-nothing PHP](https://chabot.dev/blog/porting-a-long-lived-java-server-to-share-nothing-php/index.md): Porting a server from a long-lived JVM to process-per-request PHP: what to mirror, why caching a parsed structure only halves the cost, and why a resident daemon was the wrong answer.
- [Running PHP as an event-driven network server](https://chabot.dev/blog/running-php-as-an-event-driven-network-server/index.md): Why PHP's execution model, not the language, kept it from holding connections open, and what a select-based event loop must handle: partial writes, idle expiry and a response that never ends.
