fix: ignore Hermes transient cleanup in deletion correlation - #178
fix: ignore Hermes transient cleanup in deletion correlation#178cresslank wants to merge 6 commits into
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| // failure. These are generated session artifacts, not authored files, and | ||
| // must not contribute to the mass-file-deletion correlation. | ||
| let basename = path.rsplit(['/', '\\']).next().unwrap_or(path); | ||
| basename.starts_with("hermes-snap-") && basename.contains(".sh.tmp.") |
There was a problem hiding this comment.
Hermes exemption hides authored deletions
When authored files anywhere in the filesystem have basenames beginning hermes-snap- and containing .sh.tmp., this basename-only check classifies them as build artifacts, excluding them from the non-build deletion count and allowing a destructive burst to remain below the mass-file-deletion threshold. How this was verified: The predicate feeds the non-build count summed by the critical correlation without checking the file's directory or provenance.
88ee3f1 to
6a43702
Compare
|
Updated the branch to cover Hermes execute-code sandboxes and addressed the review concern by constraining all Hermes artifact exemptions to OS temp roots. Full tirith-core tests and clippy pass. |
|
Follow-up: parallel Hermes workers also delete the final |
Summary
2>/dev/nullwhen deriving delete operands.hermes-snap-*.sh.tmp.*environment snapshots under OS temp roots as generated artifacts.hermes_sandbox_*execute-code directories under OS temp roots as generated artifacts.Problem
Hermes removes these generated artifacts during normal terminal and execute-code operations. Parallel agent work could otherwise accumulate enough non-build deletions to trigger mass-file-deletion correlation and block unrelated operations.
The exemption is deliberately constrained to
/tmp,/private/tmp,/var/tmp, macOS/var/folders, and Windows driveTemproots. It does not exempt similarly named project files or directories.Validation
cargo fmt --checkcargo test -p tirith-core --lib(2931 passed, 1 ignored)cargo clippy -p tirith-core --all-targets -- -D warnings