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§
- Accepted
Token - Receipt of an accepted record, not a reusable permission or restored state.
- Actor
Policy Scope - One explicit association; a policy may list several identifiers for the same subject. Supported principal kinds do not define an exhaustive identity ontology.
- Governed
Token Session - Created only from installed policy AND an actual current native association. No public constructor accepts copied evidence. This owns no numerical state.
- Inference
Admission - Admission values supplied by the authenticated host, then frozen for the request. Model identity must identify actual immutable model bytes/revision.
- Native
Policy Host - Policy
Document - Policy
List - Bounded cold storage. Deserialization checks the count before retaining each element, rather than accepting an unbounded Vec and checking afterwards.
- Policy
Rules - Explicit policy content selected by the human/host. No Default implementation: even an empty, permissive program must be deliberately installed.
- Policy
Status - Signed
Policy - Token
Decision - Decision for one exact proposal. Only an Allow can be committed; committing advances metadata, never publishes bytes or attests a numerical restoration.
- Token
Proposal - Actual proposal data supplied by the numerical/caller adapter. This is not a
semantic classifier:
observationmust be the adapter’s actual candidate observation, not a fabricated “safe” fact. Its source is part of qualification. - Trusted
Policy Identity - Host configuration, not an identity asserted by a policy/request. The host must obtain this key/principal binding from its authenticated configuration.
Enums§
- Constraint
Instruction - 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.
- Digest
Scope - Policy
Error
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.