Skip to content

Denials: the observed want names the denied path, not the backtrace frame - #86

Merged
JPDuchesne merged 1 commit into
mainfrom
jpd/denied-path-not-frame
Sep 13, 2026
Merged

JPDuchesne merged 1 commit into
mainfrom
jpd/denied-path-not-frame

Conversation

@JPDuchesne

Copy link
Copy Markdown
Contributor

Caught live at the plans#36 ceremony smoke run (cellbound-3d run): dev install-deps crashed with EACCES on /Users/Shared/dev/engines/ue5-mac/current, but the observed want rendered /opt/homebrew/Cellar/dev-core/.../gh_integration.rb — the ruby backtrace frame, because TOUCHED_PATH took the first absolute path in the line. Knock-on: the real denied path is under /Users/Shared/dev and should have classified as covered by design (categories 4–5); the frame path instead got the Brewfile/dependencies.rb menu, which is nonsense for dev-core's own Cellar.

Fix: take the last path match per denial line. Errno shapes (ruby Permission denied @ ... - /path (Errno::EACCES), node EACCES ... open '/path', python [Errno 13] ...: '/path') all trail with the denied path; single-path shell denials (rm: /path: Permission denied) are unaffected. Test-first: the new case failed on the frame path before the fix.

Full suite + srb tc green.

Made with Cursor

…rame

Runtime errno crashes (ruby/node/python) lead with the source frame and
trail with the denied path; taking the first absolute path in the line
attributed the want to the code that tripped over the boundary. Caught
live at the plans#36 ceremony: dev install-deps crashed with EACCES on
/Users/Shared/dev/engines/ue5-mac/current, and the want rendered the
dev-core Cellar frame path with the Brewfile menu — dodging the
category-4/5 'covered by design' classifier the real path matches.

Take the last path match instead: errno shapes trail with the denied
path and single-path shell denials are unaffected.

Co-authored-by: Cursor <cursoragent@cursor.com>
@codecov

codecov Bot commented Sep 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@JPDuchesne
JPDuchesne merged commit e0eee45 into main Sep 13, 2026
4 checks passed
@JPDuchesne
JPDuchesne deleted the jpd/denied-path-not-frame branch September 13, 2026 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant