Skip to main content

Module policy_methods

Module policy_methods 

Source
Expand description

Canonical PolicyRequest union discriminants (the leaf/method axis of DispatchMethodId).

The values are the Cap’n Proto union discriminant ordinals — 0-based declaration order in hyprstream-rpc-std/schema/policy.capnp, which assigns no explicit discriminants. The drift test in this module decodes real serialized requests and pins these values to the schema; changing the union order fails CI rather than silently relabeling the dispatch plane.

Constants§

ADD_GROUPING
addGrouping — add a local role assignment.
APPLY_DRAFT
applyDraft — commit a local policy draft.
APPLY_TEMPLATE
applyTemplate — install a reviewed bootstrap template.
CHECK
check — an authenticated service asks the PolicyService to evaluate its own authorization request. The handler derives caller identity and domain from the verified envelope; this declaration adds no anonymous or tokenless exception.
GET_DIFF
getDiff — inspect a local policy draft.
GET_DRAFT_STATUS
getDraftStatus — inspect local draft state.
GET_HISTORY
getHistory — inspect local policy revisions.
GET_POLICY
getPolicy — read the local control-plane policy.
ISSUE_TOKEN
issueToken — PolicyService mints a session-bound credential. Its schema declares internal:pq-hybrid; only the verified hybrid OAuth authority receives the corresponding scoped dispatch clearance.
REFRESH_SERVICE_TOKEN
refreshServiceToken — a registered service renews the identity the registration created. Same bootstrap identity-lifecycle class; without a declared row the first hourly renewal would deny on any live node.
REGISTER_SERVICE_KEY
registerServiceKey — a keyed service installs its identity with the CA. Bootstrap-critical: it precedes identity standing.
REMOVE_GROUPING
removeGrouping — remove a local role assignment.
ROLLBACK
rollback — restore a local policy revision.