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:

Details

Sourceentries/2026/04/29/tests-test_compact.md