Skip to main content

Module policy

Module policy 

Source
Expand description

Bounded signed closure and explicit local whole-source adoption. Remote Share/consent/Sentinel and consumer admission are separate open gates.

Modules§

remote
Purpose-scoped remote controller recognition, whole-source disclosure policy, RecipientRecord reuse, decision-ticket codec, and R2 issuance/current grant. B2 wrap_for / private M decode / PacketProtection delivery remain separate.

Structs§

AuthenticatedClosure
Recognized paired issuer’s exact declared graph, not semantic policy admission. Receipt retains exact pin-owner incarnation; cached closure does not block revocation.
BoundClosure
Signed manifest plus a separately recognized paired publisher signature over the exact descriptor (including entry roots), associated with a full candidate. This does not prove payload download, plaintext disclosure rights or durability.
LocalEffectControl
Current-authority gate with the same concrete owner and private grant. No permit escapes; failed checks and cancellation are terminal even when the callback catches an error. This is not a remote Share/consent decision.
LocalGrantRequest
Trusted local administrative decision, NOT a wire grant or consent proof. The host establishes rights for ALL bytes (header/index/gaps/all entries), exact recipient and purpose through its existing governance owners first. No partial/mixed/unknown coverage profile is supported by this entry point.
LocalWholeSourceGrant
Concrete owner borrow is retained from installation through final use. The private handle cannot be rebound to an unrelated similarly populated owner. Holding this guard excludes other grant mutations; hosts must keep it short.
ManifestArtifact
ManifestDependency
ManifestFields
Untrusted input fields. Issuer is recognized only by an installed paired pin.
ManifestView
PublicationProof
Untrusted proof inputs. Selected publisher pin is locally installed and role scoped.

Enums§

PolicyError

Constants§

CLOSURE_PURPOSE
MAX_MANIFEST_BYTES
PUBLICATION_PURPOSE

Functions§

adopt_local_whole_source
Trusted admin bootstrap, analogous to AuthorityOwner’s existing installer. This is NOT remote Share/Sentinel/consent integration. No policy evaluator or wire parser may call this merely because a manifest signature verified.
authenticate_closure
Expected key identifiers/epoch/audience are checked against the selected local pin. No wire key imports or caller-provided verified/Allow booleans exist.
decode_manifest
encode_manifest_into
Canonicalize an already structurally checked candidate into caller storage.