Context Assembly Under Budget¶
How does memory stay correct as it grows?
Module 8 of 8 in The Write Path in Earnest · 4 lessons · about 2.7 hours
41. The Packing Problem · ~40 min
Treat the token budget as constrained selection, not truncation.
42. Ordering and Formatting · ~35 min
Price the line format, and check whether ordering by score costs anything.
43. What Must Never Be Dropped · ~40 min
Make coverage an invariant of the packer, derived from the question rather than a topic list.
44. Does This Earn Its Tokens? · ~45 min
Price every element of the context, including the ones that are not memories.