Skip to main content

Module inference_policy

Module inference_policy 

Source
Expand description

Privileged local-host installation and admission of Sentinel inference policy. This API is for authenticated application commands. It must not be registered as a remotely callable signing endpoint. Inference never installs a default.

Structs§

InferenceActorSession
Opaque authenticated client handle, not serializable or constructible from selected identifier strings. The native owner retains all liveness checks.
InferenceHostConfiguration
SelectedInferenceIdentifier
Selection data is not a credential. Exact association must exist in the configured signed admission, independent of subject kind or controller key.

Constants§

CONFIGURATION_BUDGET_BYTES

Functions§

admit_inference
bind_chat_inference_session
Native host command, never callable through chat or an unauthenticated tool. Preparation is caller selected: a retained file lease or an explicit snapshot byte budget. Neither actor identity nor a permissive policy is synthesized.
bind_mcp_inference_session
Explicit local delegation to MCP. Remote tool arguments cannot select an actor or cause a login. Session revocation remains owned by NativeAuthority.
bind_poet_inference_session
Explicitly delegate the configured actor to this native host’s authenticated PoET transport. Prompt principal/agent fields never select this authority.
configure_inference_authority
Privileged LOCAL host configuration, never an inference tool. Caller chooses an independent project trust anchor and supplies its actual signed admission and source revision. No configuration or policy is synthesized from a login. Typed inputs are caller-owned; earlier parsing allocations are outside this adapter budget. Existing native journal limits remain enforced independently.
create_inference_actor_signer
Explicit key creation, NOT identity enrollment or admission. Never called by login or inference. Existing keys are not overwritten, even on a racing create.
disconnect_inference_controller
Explicit logout/controller-loss hook. Dropping the policy host invalidates old admitted sessions; a new login cannot resurrect them.
install_evidence_policy
Install the actual V3 per-token evidence policy required by native products. Observation requirements are explicitly selected by the privileged host.
install_policy
load_policy_status
lock_inference_controller_vault
This native lifecycle entry invalidates policy before returning from vault lock.
login_inference_actor
Actual signed challenge, not identifier matching or a boolean authentication assertion. No signer is created and no missing admission is synthesized.
native_product_session
Retain a route for an embedding’s own native session (including the CLI).
replace_inference_admission
A real signed successor is verified by the existing project owner; no signing or enrollment authority is inferred from the acting inference session.
revoke_policy
unbind_chat_inference_session