HxGuard is the platform's policy decision point (PDP): a single fail-closed check(subject, action, resource) answers every authorization question on migrated surfaces. Roles, access groups, and grants remain the policy data — HxGuard is the one decision path over them, with every denial audited.
Instead of scattering role checks across endpoints, protected routes ask HxGuard whether a subject (a user, or a non-human caller like a connector) may perform an action (such as rules.definitions.write or replay.cohorts.run) on an optional resource. The answer is always an explicit decision with a reason.
request > endpoint > HxGuard check(subject, action, resource)
|- role-backed actions (action registry: which roles may do it)
|- grant-backed actions (namespace grants, per-resource)
|- relationship-backed (case tuples: owner / assignee / viewer / editor)
v
Decision(allow, reason) deny > 403 + audited SecurityEvent
authz_denied security events (visible in HxShield) in their own transaction, so the audit record survives the request rollback the 403 causes.Case-level access is decided from stored relationships, written in the same transaction as the case change itself — authorization cannot drift out of sync with case state. A case's owner is its creator; assignees are materialized automatically from the assignment lifecycle; viewers and editors come from explicit shares.
A role is a bundle of privileges, and that bundle is editable. Deciding that managers and developers may review risk is a change an administrator makes in Access Groups → Platform Roles — not a code change, a release, and a deploy.
deny. Deny always wins over allow. A revocation that is a row somebody wrote is easier to audit, and easier to explain, than one that is an absence.role_privileges_changed security event carrying the before and after.deny revokes for every holder of that role at once, which makes it the fastest route to nobody being able to grant access. HxGuard compares who holds the bootstrap action before the change against who would hold it afterwards, and refuses the edit with a 409 if the answer would be nobody.