Model-visible means logged.
Anything that reaches a model request must be reconstructable from one append-only session log. If it is not in the log, it did not happen not for the model, not for replay, not for the timeline you show a person.
Once you take it seriously, a lot of agent bugs start to look like the same bug.
Most products persist a list of messages: user, assistant, user, assistant.
That list is a view. It is not the history.
Compaction is a fact. Someone summarized the first forty turns and kept a tail. If you rewrite the message list and forget to record that rewrite, you cannot answer a simple question: what did the model see on the turn after the summary?
A tool call is a fact. The arguments, the result, the denial. If the model saw a tool result, that result belongs in the log — not only in a side cache the UI reads.
A role handoff is a fact. The builder took over from the planner. The next request is a different agent with a different job. That change is not a chat message. It still has to be in the history.
The plan a person approved is a fact. Teams often park it in a side store so summarization does not erase it. That is a symptom. The plan survived because the transcript was not trusted to keep it.
When those facts live beside the transcript, summarization and the UI slowly fork. You patch a cursor. You special-case “do not compact this.” You rebuild the model window from three places and hope they agree.
They will not keep agreeing.