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 declaresinternal: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.