Core documentation

7. Sense answers as-of the baseline (own index allowed)

Specification metadata
adr: 7
title: Sense answers as-of the baseline (own index allowed)
status: accepted
date: 2026-06-16

§Context

Sense servers are usually stateful — they keep a warm index (a code graph, a type server) rather than re-reading the tree per call. That index can lag the working tree. In an IDE a lagging index is a cosmetic glitch; in a guardian loop, a sense answer computed against a stale graph can misroute a judge’s scope or mislead the agent. We need a freshness rule that does not forbid the warm index that makes sense fast.

§Decision

A sense server MAY keep its own index, but it MUST answer as-of the request’s baseline:

§Consequences