Steven,
A couple of the issues on the latest PR got much larger than I feel comfortable trying to resolve via PR comments, so I'm posting one of them here in the hopes email may give us a bit more latitude in capturing the conversation. I have worked through most of the requests, but this one I think needs some explanation.
---
The parenthetical you flagged - "Because an ACAL RuleType object has no Target, the action test ... is carried here on the nested PolicyType object's Target" - is gone. It's replaced with:
[[RBAC]] §5.3 defines it as a <Policy> containing a Permit <Rule> and does not fix whether the hasPrivilegesOfRole action test is in a <Target> or a <Condition>; [[RBAC]] §2.5's example puts both that test and the queried-role test in the <Rule>'s <Condition>. This profile ports the <Policy> as a nested PolicyType object and likewise leaves the placement of the action test open.
The §4.3 "Changes From the Previous Version" bullet is reworded to match.
Constraint 1
Was: "SHALL have a Target that evaluates to true only when the ...action-id attribute has the value ...has-privileges-of-role, so that the HasPrivilegesOfRole Policy is NotApplicable to every ordinary access request."
Now: "SHALL evaluate to NotApplicable for every request whose ...action-id attribute does not have the value ...has-privileges-of-role, so that it does not affect any ordinary access request. This action test MAY be applied by the nested PolicyType object's Target, by its Rule's Condition, or by both."
Why: The old constraint mandated a <Target>. Per your point, XACML 3.0 RBAC §5.3 states only what the <Rule> must permit, and §2.5's example does the action test in the <Condition>. This states the functional outcome and leaves placement to the author. Constraint 1 also does the work of forcing the action test to exist somewhere: if it were nowhere, a non-has-privileges-of-role request whose resource happens to carry the role attribute would make the role-only Condition true and the Policy Permit (which this SHALL forbids).
Constraint 3
Was: "SHALL contain a single Rule with Effect Permit whose Condition evaluates to true for such a request only if the resource role attribute names this Permission Policy's role."
Now: "For a has-privileges-of-role request, SHALL evaluate to Permit if the resource role attribute names this Permission Policy's role, and to NotApplicable if it does not. It SHALL contain exactly one Rule, with Effect Permit, and SHALL NOT gate that Permit on any subject attribute. [[RBAC]] §5.3 requires the Rule to "permit any Subject" to make the query, so that any subject who reaches the HasPrivilegesOfRole Policy (through this role's Role Policy, or through a senior role's Permission Policy in the hierarchy) and asks about this role receives Permit."
Why: the old wording ("Condition ... true for such a request") leaned on the old constraint 1 having already gated the action in the <Target>. It's now stated as the Policy's behaviour for a has-privileges-of-role request - decoupled from where the action test lives. It also adds the positive requirement that XACML 3.0 §5.3 makes ("SHALL permit any Subject"): The query must not be gated on subject attributes, so a senior-role holder always gets Permit.
Constraint 4 (New)
This popped up as I was editing the issues above.
New: "SHALL have a CombiningAlgId that evaluates to NotApplicable when its single Rule evaluates to NotApplicable - permit-overrides, deny-overrides, first-applicable, or an ordered variant. This is stricter than [Section 5.3]: permit-unless-deny (forbidden there) would answer 'has privileges' for a role the subject does not hold; deny-unless-permit (permitted there) would make this Policy return Deny rather than NotApplicable for any request its Rule does not match - including an ordinary access request, where constraint 1's action test is carried only in the Rule's Condition - and a senior role's Permission Policy combining that Deny under deny-overrides would override a legitimate Permit."
Why: Two hazards.
Queried role ≠ this PP's role → the single Rule is NotApplicable → permit-unless-deny synthesizes Permit` → false "yes."
Relaxing constraint 1 opened a second: with the action test only in the Condition, an ordinary request also makes the Rule NotApplicable; permit-unless-deny → Permit (violates constraint 1), and deny-unless-permit → Deny, which a senior role inheriting under deny-overrides turns into a denied-but-should-be-permitted access.
This constraint requires an algorithm that passes NotApplicable through unchanged (which, among the standard set, rules out both permit-unless-deny and deny-unless-permit here, even though §5.3 allows deny-unless-permit elsewhere.)
---
I will keep working through the other feedback inline on the PR (I hope) while you all digest this.
thanks
b