From 15145f1cdcb0345373501095b76c312dc94c80a8 Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Thu, 15 Oct 2026 09:43:42 +0200 Subject: [PATCH] docs: instance boundaries come from resets (D7) The agent review of ab8d245 found that a gap between two session windows made the analysis invent a previous instance up to the current start and drop the real one's samples, and that an early Codex reset gave the old window tokens from before the new window's first sample. D7 now takes boundaries from resets, keeps real instances, infers past instances only without samples and never for short windows. Refs #5 --- docs/decisions.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docs/decisions.md b/docs/decisions.md index 6384576..e08c070 100644 --- a/docs/decisions.md +++ b/docs/decisions.md @@ -176,9 +176,14 @@ probe. where they do not. A finished instance uses its own last sample for `k` when it has one, else the current `k`. Estimates are always marked as estimates and never exceed 100 %: a limit that is reached stops use, so an estimate that would pass it shows "limit reached (estimated)" at - the time it crosses. No tokens in the instance means no estimate. An instance ends at its reset - or when the next instance's samples begin, whichever comes first (Codex can start a new window - early); past instances are labelled with their real start and end. + the time it crosses. No tokens in the instance means no estimate. Instance boundaries come from + resets: an instance starts at its reset minus its length, and ends at its reset or at the next + instance's start, whichever comes first (Codex can start a new window early). Spans between + instances (a session window opens only with the next message) belong to none. A past instance + with samples is always the real one; an instance is only inferred where no samples exist, by + stepping back one window length, and never overlaps a real one. Windows of a day or shorter are + never inferred, since a session starts with whatever message comes next. Past instances are + labelled with their real start and end. A window without a known length or reset has no pace; FinalToken never guesses one; an estimate is a marked calculation from measured tokens, not a guess.