mud_server.services.policy.activation
Layer 3 activation service logic.
This module owns activation pointer mutation, replay consistency checks, and scope overlay resolution used by runtime callers.
Functions
|
Set one activation pointer for a scope and record audit history. |
|
List active pointers for exactly one activation scope. |
|
Resolve effective scope activations with client-over-world overlay semantics. |
|
Return effective active policy variant for one scope + policy id. |
|
Assert pointer table equals replayed activation-event history. |
Module Contents
- mud_server.services.policy.activation.set_policy_activation(*, scope, policy_id, variant, activated_by, rollback_of_activation_id=None)[source]
Set one activation pointer for a scope and record audit history.
When
rollback_of_activation_idis provided, the target variant is read from that event after strict scope and policy-id checks.
- mud_server.services.policy.activation.list_policy_activations(*, scope)[source]
List active pointers for exactly one activation scope.
- mud_server.services.policy.activation.resolve_effective_policy_activations(*, scope)[source]
Resolve effective scope activations with client-over-world overlay semantics.