Repository navigation
fix(skills): delete the TLC state files of each model check after its run and when it stops - #532
Merged
Merged
Conversation
… run and when it stops A stopped run of the membership check left 16 GB of TLC state in the temp folder. Each check script now deletes the -metadir of a run when the run ends, and a trap deletes the rest on exit or on INT, TERM, or HUP. The logs stay. The membership and object storage scripts delete their temp folder when every config gives its expected result.
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
The formal verification skills must be safe to run again and again. A stopped run of
.agents/skills/membership-lifecycle/check.shleft 16 GB of TLC state in$TMPDIR. TLC deletes its state files only when a run ends normally. A kill, a timeout, or an agent that stops waiting leaves them. No script had a trap. The object storage script also never deleted itsmktemp -dfolder.What changed
-metadirof a TLC run when the run ends.object-storage-lifecycle.XXXXXX.Scope
Only the three
check.shscripts. No model, config, or verdict changes.Tradeoffs
A failed run keeps its logs but not its TLC state, so a failed run cannot be resumed with
-recover. None of the scripts used-recover.Blast Radius
Local runs of the model checks. CI does not run them.
Verification
membership-lifecycle/check.sh MC.cfg, stopped with TERM after 30 s: the folder went from 309M to 4K.MC.outstayed, and no TLC process stayed. Exit 130.membership-lifecycle/check.sh Managers.cfg: PASS, and no temp folder stays.object-storage-lifecycle/check.sh Chart LateCommit: both baseline, and no temp folder stays.bff-session-lifecycle/model/check.sh: every verdict ok, and 0.metafolders stay.sh -npasses on each script.