Module policy

Module policy 

Source
Expand description

Deterministic policy — the rules only application code may apply.

The model proposes; this module decides. Every threshold that governs whether something becomes durable memory lives here so it can be reviewed, tuned and tested in one place, rather than being distributed across prompts.

Structs§

CadenceConfig
A “every N turns or every N seconds, whichever comes first” cadence.
IngestionConfig
Ingestion behaviour.
MemoryRuntimeConfig
Consolidated runtime configuration (§31).
PromotionConfig
Criteria a staged pattern must meet to become durable memory.
PromotionEvidence
The evidence standing behind a staged candidate, weighed against PromotionConfig.
RetrievalConfig
Retrieval budgets and timeouts.
SessionConfig
Logical session lifecycle thresholds.
TranscriptConfig
How partial and final transcripts are treated.

Enums§

AdmissionVerdict
The outcome of admitting one observation into the ledger.
DiscardReason
Why a candidate was refused.

Functions§

admit_observation
Deterministic gate every observation passes before entering the ledger.
aggregate_confidence
Aggregate confidence over independent evidence.
contains_instruction_shaped_content
Whether text looks like an attempt to instruct the model rather than describe the user.
default_episodic_ttl
Default time-to-live for an episodic memory, by scope and kind (§24.2).
meets_promotion_criteria
Whether a staged candidate meets the promotion bar.
resolve_expiry
Resolve an expiry instant for a candidate, honouring an extractor hint.
speaker_is_admissible
Whether a speaker’s utterance may even be transcribed into the ledger.