Repository navigation
feat(diagnostics, ticket-136): detect host anomalies beyond cache cleanup - #179
Merged
Merged
Conversation
…anup Add 'fixos anomalies': read-only detection of systemd restart loops, container logs without rotation, large stale directories in tool state stores, regenerable IDE indexes, and zombie or leaked identical processes. Removal is limited to stale-state and idle IDE-index findings confirmed by a fresh scan, inside the user's home, with a receipt. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Why
On 2026-11-16 a manual clean-up of a shared build host found causes of load and disk pressure that
fixos autoandfixos cleanupdid not report: a service restarting in a loop (16 881 restarts), Docker container logs without rotation (6 GiB), 26 GiB of untouched backups in~/.local/state, a 22 GiB JetBrains index with no IDE running, about 420 zombie processes and 470 leaked identical helper processes.What
New command
fixos anomaliesbacked byfixos/diagnostics/host_anomalies.py(stdlib only, command runner and/procroot injectable):NRestarts, flagged high when inauto-restartlog-opts.max-sizeindaemon.json, and json logs above 100 MiB~/.local/state/~/.local/shareabove the size threshold with nothing modified for N daysindexdirectories; protected while that IDE runsSystem-level remedies stay suggested commands.
--remove PATHand--remove-safedelete onlystale-stateand idleide-indexpaths that a fresh scan still reports, inside the home directory, never through a symlink or a protected directory, and write a receipt.Verification
python -m pytest tests/unit/test_host_anomalies.py -q: 10 passed.ruff checkandruff format --checkpass for the three new files../project/governance-check.sh: GOV-PASS.docker-proxyandcontainerd-shimas leaked groups; grouping by the complete command line removed those false positives (covered by a test).dupass over a 138 GiB state store was still running when this PR was opened).Scope note
Reuses the unassigned ticket-136 allocation that blocked new allocation. No version bump:
VERSIONandpyproject.tomlare outside theapplicationworkstream, so releasing this (and the already merged artifact reclaim) as 2.4.0 needs an integration ticket.🤖 Generated with Claude Code