Skip to main content

Module governed

Module governed 

Source
Expand description

Explicitly installed policy with human-centric protections, signed actor associations and synchronous Sentinel decisions. Actor subjects and their multiple identifiers remain distinct from policy installation authority.

This foundation does not yet replace the decoder’s publication paths. Host installation is privileged: a public DID or a key supplied by a request is never authority. Numerical rollback and output publication belong to the caller; a rejected session must not reuse uncertain provider state.

Modules§

evidence
Signed V3 evidence and live native acceptance through the existing authority. Source labels describe supplied evidence; only separately qualified runtime adapters establish its actual origin, model backing and delivery semantics.

Structs§

AcceptedToken
Receipt of an accepted record, not a reusable permission or restored state.
ActorPolicyScope
One explicit association; a policy may list several identifiers for the same subject. Supported principal kinds do not define an exhaustive identity ontology.
GovernedTokenSession
Created only from installed policy AND an actual current native association. No public constructor accepts copied evidence. This owns no numerical state.
InferenceAdmission
Admission values supplied by the authenticated host, then frozen for the request. Model identity must identify actual immutable model bytes/revision.
NativePolicyHost
PolicyDocument
PolicyList
Bounded cold storage. Deserialization checks the count before retaining each element, rather than accepting an unbounded Vec and checking afterwards.
PolicyRules
Explicit policy content selected by the human/host. No Default implementation: even an empty, permissive program must be deliberately installed.
PolicyStatus
SignedPolicy
TokenDecision
Decision for one exact proposal. Only an Allow can be committed; committing advances metadata, never publishes bytes or attests a numerical restoration.
TokenProposal
Actual proposal data supplied by the numerical/caller adapter. This is not a semantic classifier: observation must be the adapter’s actual candidate observation, not a fabricated “safe” fact. Its source is part of qualification.
TrustedPolicyIdentity
Host configuration, not an identity asserted by a policy/request. The host must obtain this key/principal binding from its authenticated configuration.

Enums§

ConstraintInstruction
Versioned pure-constraint subset of the real Webizen ISA. Unsupported names fail deserialization. Lifecycle/emit instructions are not silently ignored; real temporal policy belongs to the graph guard, not the legacy pseudo-LTL.
DigestScope
PolicyError

Constants§

INFERENCE_POLICY_AUDIENCE
MAX_POLICY_JSON_BYTES
POLICY_COLD_BUDGET_BYTES
Conservative admission reservation for input, bounded decoded collections, and serialization. Allocator bookkeeping and caller-owned inputs are external.
POLICY_VERSION
TOKEN_EVIDENCE_BYTES

Functions§

policy_digest
Canonical digest: domain, fixed LE scalar fields, tagged digest scopes, and length-prefixed ordered collections. JSON formatting never changes identity.