Skip to content

security(wrprc): refuse a missing format instead of matching None - #164

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

security(wrprc): refuse a missing format instead of matching None#164
luisgf merged 1 commit into
mainfrom
security/audit-161

Conversation

@luisgf

@luisgf luisgf commented Aug 13, 2026

Copy link
Copy Markdown
Owner

_str_or_none turned missing/blank/non-string formats into None, and c.format == fmt then matched None == None — a second grant bucket next to well-formed entries. Same fail-open class #89 already closed for WRPAC identifiers.

A query without a string format is now refused. A registered entry whose format is missing never matches.

Closes #161

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

Missing, blank or non-string formats on both the WRPRC entry and
the DCQL query used to become None and match each other. An absent
format is now a failure, never a match.

Closes #161
@luisgf
luisgf merged commit 866321c into main Aug 13, 2026
13 of 14 checks passed
@luisgf
luisgf deleted the security/audit-161 branch August 13, 2026 15:05
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 format match is None==None so a missing format is a second grant bucket

1 participant