mod policy#
- module policy#
Policy types for the ACG system.
Enums
- enum TransformationClass#
Rewrite category that an ACG policy can allow or deny.
- Canonicalization#
Normalize equivalent content into a canonical form.
- VariableExtraction#
Extract variable content into placeholders.
- SectionReordering#
Reorder prompt sections without changing their content.
- StableContextPromotion#
Promote stable context earlier in the prompt.
- ContextPlacement#
Move context between placement regions.
- Compression#
Compress content to reduce prompt size.
- ToolScopeReduction#
Reduce tool-related scope or schema context.
Structs and Unions
- struct ArchetypeRoutingOverride#
Routing override for one observed session archetype.
- archetype: SessionArchetype#
Session archetype the override applies to.
- model_class: ModelClass#
Model class to prefer for that archetype.
- struct CachePolicy#
Policy controlling when ACG outputs can be cached and reused.
- min_stability_score: f64#
Minimum stability score required before caching is allowed.
- min_evidence_count: u32#
Minimum number of observations required before caching is allowed.
- default_sharing_scope: SharingScope#
Default sharing scope used for cached artifacts.
- warm_first_enabled: bool#
Whether warm-first coordination is enabled for eligible fan-outs.
- max_fanout_for_warm_first: Option<u32>#
Optional upper bound on fan-out width for warm-first coordination.
- struct PolicyEnvelope<T>#
Versioned wrapper for an ACG policy document.
This envelope binds a concrete policy payload to the agent identity it was derived for and records the schema version and creation timestamp.
- agent_identity: AgentIdentity#
Agent identity the enclosed policy applies to.
- policy_version: String#
Version string for the policy schema or generation pipeline.
- created_at: DateTime<Utc>#
Timestamp when the policy document was created.
- policy: T#
Concrete policy payload.
- struct RetentionPolicy#
Policy controlling how long learned artifacts should be retained.
- default_tier: RetentionTier#
Default retention tier when no scope-specific override matches.
- scope_overrides: Option<Vec<ScopeRetentionOverride>>#
Optional per-scope overrides for the default tier.
- struct RewritePolicy#
Policy controlling what prompt rewrites the runtime can apply automatically.
- allowed_transformations: Vec<TransformationClass>#
Transformation classes permitted by the policy.
- require_validation: bool#
Whether every rewrite must pass a validation step before use.
- max_auto_risk_tier: Option<u32>#
Highest automatically applicable risk tier, when bounded.
- struct RoutingPolicy#
Policy controlling model-class routing decisions.
- default_model_class: ModelClass#
Default model class to select when no override matches.
- fallback_allowed: bool#
Whether fallback routing is allowed when the preferred class is unavailable.
- archetype_overrides: Option<Vec<ArchetypeRoutingOverride>>#
Optional model-class overrides keyed by session archetype.
- session_cost_cap: Option<f64>#
Optional session-level cost cap used during routing decisions.
- struct ScopeRetentionOverride#
Retention-tier override for one sharing scope.
- scope: SharingScope#
Sharing scope the override applies to.
- tier: RetentionTier#
Retention tier to use for that scope.