fix(skills): keep unreadable directories non-fatal - #569
Merged
Conversation
Downgrade recoverable skill discovery read failures so background supervision does not treat them as terminal run errors. Add a regression that keeps loading valid configured skills beside an unreadable unrelated directory. Agent: Marcellinus
Record the existing tracing-test workspace package in codex-core-skills so remote cargo fetch --locked can run the regression. Agent: Marcellinus
Contributor
Author
|
[REVIEW] GO — #569 @ 65964a5 — lens: correctness+security+gates, reviewer Hostus (1 of 1) Exact candidate read:
Commands and gates:
Forge checks read, by name and conclusion:
Blocking P0/P1 findings: none. The change preserves skill discovery behavior and the existing diagnostic while downgrading only a recoverable descendant-directory read from ERROR to WARN. It does not broaden filesystem access, follow additional paths, suppress the warning, alter sandbox selection, or change session/auth data handling. Non-blocking follow-ups:
|
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Skill discovery already skips directory entries it cannot read, but it logged those recoverable failures at
ERROR. Durable background supervision treated that event as the attempt failure, so an unrelated macOS Photos library exhausted all retries even though it was not a skill document.Todos task:
68a25c6e-7164-453e-921c-b3989ec2e3de.What changed
WARNwhile preserving fail-open traversal of the configured roots.WARN, neverERROR.tracing-testworkspace package in thecodex-core-skillslock entry.Test plan
31543364023on candidate65964a54feebf022dc38d536d62b24e3439d818c:cd codex-rs && just test-fast -p codex-core-skillsreturned 0; 112 tests passed, 0 skipped.just fmt-check,cargo metadata --locked --no-deps,git diff --check, staged secrets scan, and branch-diff secrets scan returned 0. No local Rust build or test was run under the repository remote-build rule.Rollback
Revert this pull request; this restores the prior
ERRORdiagnostic and removes the focused regression.