Repository navigation
Stop watching the disk's free space - #77
Merged
Merged
Conversation
The recorder polled statvfs every 30 seconds, dropped request bodies below 1 GB free and stopped recording below 200 MB, and announced each change as `StorageChanged`. How full the user's disk is belongs to the operating system, not to an AI gateway; what the gateway owns is its own footprint, and that is already bounded: bodies are collected by age and total size, summaries by age. A write that fails on a full disk is logged and dropped like any other recorder error, and forwarding never depended on it. - Remove `tw_store::disk`, the recorder's level, its checks and tests, and tw-store's direct libc dependency. - Remove `Event::StorageChanged`. - `StorageStatus.level` (ok / metadata_only / stopped / unavailable) becomes `recording: bool`: the only state left is whether recording started. - The diagnostics bundle no longer has a "Disk state" row. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Sep 21, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
How full the user's disk is belongs to the operating system, not to an AI gateway. The gateway's job is to keep its own footprint bounded, and it already does: request bodies are collected after 7 days or past 2 GB, request summaries after 90 days.
Until now the recorder also polled
statvfsevery 30 seconds, stopped saving bodies below 1 GB free, stopped recording altogether below 200 MB, and announced each change asStorageChangedso the desktop app could raise a notice about it. That is gone.What changes
tw_store::diskis removed, along with the recorder's level, its periodic check, the three tests that exercised it, and tw-store's directlibcdependency.Event::StorageChangedis removed.StorageStatus.level(ok/metadata_only/stopped/unavailable) becomesrecording: bool. With the disk levels gone, the only thing left to say is whether recording started at all.On a full disk
A body or row that cannot be written is logged at debug level and dropped, the same as any other recorder error; forwarding never went through this layer.
forwarding_affectedstaysfalse.Protocol
CONTROL_API_VERSIONstays at 3. A client built against the old shape fails to parse/storageand treats it as absent, which only hides a banner; nobody sends or expectsstorage_changedany more. The desktop app follows in the same release.🤖 Generated with Claude Code