engineering

Context Loss Is an Engineering Problem

Context loss is often described as a model limitation. In practice, it is also an engineering failure. A later agent can have a large context window and still make the wrong change when it cannot identify the active branch, the dirty work that must be preserved, the decision that constrained a prior patch, or the test that established a behavior.

Repository state is the first recoverable layer. A useful handoff records the checkout, branch, head commit, dirty paths, and current lane. It distinguishes source truth from generated artifacts and separates a local observation from a remote fact. Without that boundary, an agent can treat an old receipt as proof of a new build or treat an unrelated file as disposable noise.

Decisions need the same treatment. A short record of why a route remains private, why a deployment stays owner-only, or why a source claim is bounded prevents the next session from reopening settled questions. The record must be specific enough to recover an action, not merely broad enough to sound responsible.

Verification evidence closes the loop. A test name without the source commit, scope, and result is weak evidence. A passing build does not prove an owner-authenticated deployment. A screenshot does not prove a private source boundary. The point is not to create paperwork. The point is to preserve the smallest set of facts that lets a later operator determine what is true.

Agent-Cache treats those facts as a bounded context packet rather than a replacement for the repository. It routes an arriving agent toward the real owners, tests, and receipts. It flags stale evidence and leaves decisions recoverable after a session ends. The operational result is simple: fewer repeated investigations, fewer accidental reversions, and a clearer next safe step when work resumes.