Skip to content

test(CEL-PDP)--collision-precedence-rules-(stdlib-shadowing,-bag-name… - #58

Open
aviavissar wants to merge 1 commit into
praxis-proxy:mainfrom
aviavissar:test(CEL-PDP)--collision-precedence-rules-(stdlib-shadowing,-bag-namespace-vs-scalar)-lack-test-coverage-#3
Open

test(CEL-PDP)--collision-precedence-rules-(stdlib-shadowing,-bag-name…#58
aviavissar wants to merge 1 commit into
praxis-proxy:mainfrom
aviavissar:test(CEL-PDP)--collision-precedence-rules-(stdlib-shadowing,-bag-namespace-vs-scalar)-lack-test-coverage-#3

Conversation

@aviavissar

Copy link
Copy Markdown

ssue: praxis-proxy/policy#3 — CEL PDP collision-precedence rules had no tests. Not a runtime bug; the code already exists.

What landed (on branch test(CEL-PDP)--collision-precedence-rules-(stdlib-shadowing,-bag-namespace-vs-scalar)-lack-test-coverage-#3, uncommitted):

activation.rs — namespace_wins_when_scalar_arrives_after_branch
Pins the untested insert path: delegation.depth first, then scalar delegation. Namespace wins, scalar is dropped. Calls insert directly so HashMap iteration order cannot miss that path.

resolver.rs — custom_function_does_not_shadow_stdlib_size
Registers a custom size that would return 777. Stdlib still runs (size('hello') == 5). rustdoc on with_functions now states that as of cel 0.14 the stdlib overload wins.

No behavior change. Tests passed.

@szedan-rh

Copy link
Copy Markdown
Collaborator

@aviavissar - Please fix the DCO

…space-vs-scalar)-lack-test-coverage-praxis-proxy#3

Signed-off-by: aviavissar <aviavissar@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@aviavissar
aviavissar force-pushed the test(CEL-PDP)--collision-precedence-rules-(stdlib-shadowing,-bag-namespace-vs-scalar)-lack-test-coverage-#3 branch from 92a8984 to a7a14e5 Compare September 1, 2026 12:57
@araujof araujof self-assigned this Sep 1, 2026
@araujof araujof added the tests label Sep 1, 2026
@araujof araujof added this to the 0.1.2 milestone Sep 1, 2026
@araujof araujof moved this from Backlog to In progress in Praxis Policy Engine (PPE) Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

3 participants