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
This commit is contained in:
Florian Schmidt
2026-10-15 09:43:42 +02:00
parent ab8d245df8
commit 15145f1cdc
+8 -3
View File
@@ -176,9 +176,14 @@ probe.
where they do not. A finished instance uses its own last sample for `k` when it has one, else 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 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 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 the time it crosses. No tokens in the instance means no estimate. Instance boundaries come from
or when the next instance's samples begin, whichever comes first (Codex can start a new window resets: an instance starts at its reset minus its length, and ends at its reset or at the next
early); past instances are labelled with their real start and end. 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 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. is a marked calculation from measured tokens, not a guess.