Right now kit does not tolerate disk space exhaustion. It crashes on transcript persistence.
All internal file system operations should be wrapped with a memory-fallback guard. If disk is full, best-effort store in memory.
If in-memory fallback also fails, e.g.: memory exhaustion, the process should exit gracefully.
We could also look into squatting a bit of disk space up front, sacrifice the squat file to allow clean disk flush before exit.
Right now kit does not tolerate disk space exhaustion. It crashes on transcript persistence.
All internal file system operations should be wrapped with a memory-fallback guard. If disk is full, best-effort store in memory.
If in-memory fallback also fails, e.g.: memory exhaustion, the process should exit gracefully.
We could also look into squatting a bit of disk space up front, sacrifice the squat file to allow clean disk flush before exit.