Skip to content

security(wrprc): do not treat an empty claim key as missing - #162

Merged
luisgf merged 1 commit into
mainfrom
security/audit-160
Aug 13, 2026
Merged

security(wrprc): do not treat an empty claim key as missing#162
luisgf merged 1 commit into
mainfrom
security/audit-160

Conversation

@luisgf

@luisgf luisgf commented Aug 13, 2026

Copy link
Copy Markdown
Owner

#89 required grant-side precedence (narrow): one list, never the union. _registered_paths used _paths_under(claim) or _paths_under(claims), so a present-but-empty claim ([], [{}], unusable paths) extracted as [] and the second spelling widened the grant.

After #152 an empty grant means nothing. A second spelling must not refill it. Fallback to claims remains only when the spec key is absent.

Closes #160

Verified: bash .claude/skills/ship-issue/scripts/gate.sh (flake8, mypy, pytest 1632 passed / coverage 91%, build+twine).

Grant-side precedence used `or`, so a present-but-empty `claim`
fell through to `claims` and widened the grant. Presence of the
spec key now wins even when the list is empty.

Closes #160
@luisgf
luisgf merged commit 6497d0e into main Aug 13, 2026
13 of 14 checks passed
@luisgf
luisgf deleted the security/audit-160 branch August 13, 2026 14:59
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.

WRPRC grant-side 'or' treats empty claim as absent and widens the grant

1 participant