compact-is-infallible
IN premise
`compact()` handles empty networks, zero-budget, and missing metadata without raising exceptions — designed to always produce a valid string.
Summary
The compaction function is built to be crash-proof — it will always return a usable string no matter what edge cases it encounters, including empty data, no available budget, or incomplete metadata. This matters because compaction runs at a critical juncture (context window management), and a failure there would silently lose conversation state rather than gracefully degrade.
Dependents
These beliefs depend on this one:
- compact-structure-is-priority-ordered-and-infallible — The compact module produces output with deterministic priority-ordered sections (nogoods, OUT, IN) and handles all edge cases (empty networks, zero budget, missing metadata) without raising exceptions, with footer space pre-reserved before section filling begins.
Details
| Source | entries/2026/04/29/tests-test_compact.md |