Expand description
Generated per-method signature policy (§4.4, §5.2).
Enrollment equivalence is not authorization. An enrolled signer proves who signed; the method’s generated policy decides what signing topology that method requires: whether it may be called with no credential at all, which cryptographic suite the primary logical signer must use, and whether additional enrolled approvers are required.
The policy is a property of the decoded leaf, not of the caller. It is resolved after the single Cap’n Proto decode and evaluated before replay admission, so a request that fails it never consumes store capacity.
A leaf with no policy row is unlisted and denies. That is the same rule
the design gives for a leaf that exists only in a newer client schema: an
unlisted (service, leaf path) denies, never falls back to a coarser row.
Structs§
- Allowed
Approver Group - One approver group the generated policy allows, pinned exactly.
- Generated
Method Policy Provider - Inventory registration submitted by every server-side generated module.
- Generated
Method Policy Row - One generated method-policy row (v16 §6.1).
- InMemory
Method Policy - An explicit policy table keyed by
(service domain, leaf path).
Enums§
- Approver
Rule - How many, and which, additional enrolled logical signers must approve.
- Authentication
Requirement - Whether a generated row admits the
Unauthenticateddisposition (v16 §6.1). - Crypto
Suite - The cryptographic suite a method requires of its primary logical signer.
- Mutation
Semantics - The generated application policy a mutating method declares (v16 §4.8) — distinct from request-proof replay admission. The declaration metadata describes each method’s retry semantics or activation prerequisite; the annotation itself does not implement enforcement.
- Signature
Policy - The signing topology a method requires.
Constants§
- READ_
CLASS_ ACTIONS - The read-class authorization actions (S3
ScopeActionBlock A). A leaf may explicitly classify bounded session/subscription state under either action; every other action requires a mutation policy. - SYSTEM_
LOW_ LABEL - The system-low label — the exact expansion of
$dispatchPublicand the mandatory value of every row’stransitional_labelduring migration (v16 §7.3). Public ⇔target_labelis exactly this label.
Traits§
- Dispatch
Method Policy - Resolves the generated policy row for one decoded leaf.
Functions§
- build_
generated_ method_ policy - Build and validate the complete generated method-policy table.
- collect_
generated_ rows - Collect the complete generated inventory, deterministically sorted by
(service, numeric leaf path). - dispatch_
label - Construct a dispatch label from its parsed axes (v16 §6). This is the ONE
constructor generated rows use — there is no permissive default and no
string parsing at runtime; the grammar was checked at code generation
against the checked-in
InitialLabelMap. - evaluate
- Evaluate a resolved policy against a verified proof.
- global_
method_ policy - install_
generated_ method_ policy - Install the complete generated method-policy inventory as the process policy table (v16 §6.1). Returns the number of installed rows.
- mediated_
operation_ for_ request - Recover the only policy action an authenticated scoped request may mediate. The returned action is derived from the signed request leaf, not supplied by the mediator.
- set_
global_ method_ policy - validate_
generated_ rows - Validate one complete generated row set (v16 §6.1 build gates).
- verify_
mediated_ operation - Bind a mediated query’s operation to the original signed request leaf. This does not authenticate the body or grant authority: callers must first verify the holder transcript, credential, target, freshness and replay.