The Output Noticed Before the Monitoring Did
A scheduled daily brief asks a model to survey the day: what the shelves carried, what a couple of opened articles said in depth, and what the temperature looked like on a social network. Three clauses, three corpus sections.
One morning the brief itself mentioned, in passing, that there were no temperature samples in what it had been given. The samples had been collected. The statistics said four of them. They were not in the corpus. The generated text was the first thing in the entire system to report the defect — which tells you exactly how much the monitoring was worth.
Growth Somewhere Else Broke It
The assembly was ordinary: build the headline section, then the extracts, then the samples, join, and cut to a character cap. That worked while the reader had a handful of shelves. Then the shelves roughly doubled, and their headlines alone exceeded the entire cap.
Nothing about the sample-gathering code changed. Nothing failed. The sections appended last simply fell off the end, silently, because they were appended last — and the sections appended last were the small unique ones, precisely because bulky sections feel like the main event and get written first. Tail truncation grants priority in code-authoring order, which correlates with nothing.
Reserve First, Fill What Remains
The repair inverts the priority. Build the small irreplaceable sections and measure them. Subtract from the cap. Whatever is left is the headline allowance, and the headlines fill it explicitly, stopping when the allowance is exhausted rather than being cut afterwards.
The distinction is worth stating precisely, because both versions produce a corpus under the cap. In the truncating version, the cap decides which sections exist. In the budgeted version, the author decides which sections exist and the cap decides how much breadth the bulky one gets. Same limit, opposite semantics.
Keep the Belt-and-Braces Cut, and Label It
A final absolute truncation still belongs at the end — budgets have arithmetic bugs, and exceeding a hard context limit is a failure worse than a shortened corpus. The difference is that it should now be unreachable in normal operation, and when it does fire it appends a visible marker rather than ending mid-sentence. A truncation that announces itself is a diagnostic; a silent one is the bug this whole lesson is about.