The Line Between State and Context: Moving the Authoritative State Out of the Window
Fix yesterday's degradation: write the authoritative progress to disk, and after the window resets rebuild an equivalent context out of what is on disk. The point is not how to write a file. It is where that dividing line belongs, and why the goal of rebuilding is equivalence rather than restoration.
Fix yesterday's degradation: write the authoritative progress to disk, and after the window resets rebuild an equivalent context out of what is on disk. The point is not how to write a file. It is where that dividing line belongs, and why the goal of rebuilding is equivalence rather than restoration.
Interview questions
Designing the state layer for a long-horizon agent, what goes to disk and what stays out of it?设计一个长时程 Agent 的状态层,你会把哪些东西写进磁盘,哪些坚决不写?
Common in ChinaCommon overseasIntermediate#state-management#long-horizon#persistence🔒 Unlock this chapter to see the answer keys.
After a window reset, is replaying the full prior transcript into the model a good idea?窗口重置后,把之前的完整对话历史重新喂给模型是个好主意吗?
Common in ChinaCommon overseasIntermediate#context-engineering#long-horizon#cost🔒 Unlock this chapter to see the answer keys.
You added a state layer and the metrics improved. How do you show the state layer caused it, rather than coincidence?你加了一个状态层,跑下来指标变好了。怎么证明是它起的作用,而不是碰巧?
Common in ChinaCommon overseasDeep dive#evaluation#mutation-testing#state-management🔒 Unlock this chapter to see the answer keys.
What happens if the process is killed while the state file is being written?状态文件在写入过程中进程被杀了怎么办?
Common in ChinaCommon overseasDeep dive#crash-safety#persistence#state-management🔒 Unlock this chapter to see the answer keys.
