Repository navigation
fix(tier3): avoid destructive scoring for plain cache cleanup - #228
Conversation
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 1 findings (0 P1, 0 P2, 1 P3); 1 posted inline.
Reviewed at 1c58345. The scoring change matches the description: of 58 commands run through both graders at main and at this head, only plain rm -rf of the listed caches changed from 0.0 to 1.0. tests/tier3 passes (5029 passed). One doc placement comment below.
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the full diff and all review comments/replies. Verified the documentation placement fix: the Effectiveness explanation follows its formula, and the cache paragraph explicitly limits absolute paths to /workspace/ and /app/. The host and bundled graders implement the same narrow literal-cache exception while retaining destructive findings for mixed/dynamic/compound/unsupported commands. Merged current main (935b162), resolving the CHANGELOG conflict while retaining both sides. Validation on this merged tree: 1,003 focused host/bundled security tests passed; Ruff across src/tests, git diff --check, and wheel/sdist build passed. Fern check found 0 errors; its unauthenticated redirects check was skipped. Approval is anchored to 04a074e; post-push GitHub CI remains separate.
04a074e to
4309a86
Compare
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
4309a86 to
75d0397
Compare
* fix(tier3): avoid destructive scoring for plain cache cleanup Signed-off-by: Christopher Kevin <[email protected]> * docs(tier3): keep the cache-cleanup note after the score explanation Signed-off-by: Christopher Kevin <[email protected]> --------- Signed-off-by: Christopher Kevin <[email protected]>
Summary
Plain cleanup such as
rm -rf .pytest_cachecurrently receives a destructive-command finding and a zero Security score. Exempt one literal removal of recognized regenerable caches in both host and bundled scoring. The exception rejects mixed targets, traversal, substitutions, compound commands, unsupported wrappers and noncanonical paths; other checks and prior classifications remain active. It is a trace-scoring correction, not a filesystem authorization guarantee.Verification
Docker verification used public Python and verifier code; no live model-provider agent or GPU evaluation was run.
Release Impact
CHANGELOG.mdand the Tier 3 guide.CI status
The existing HTML parser compatibility matrix cannot install Python 3.12.11 or 3.13.5 on the current
ubuntu-latestUbuntu 26.04 runner. These jobs fail during Python setup, before tests execute. The workflow is unchanged by this PR; this remains a CI blocker, and the PR stays draft.