This example shows the first real runtime flow built on ModularityKit.Mutator.Governance.
It focuses on MutationRequest, IMutationRequestStore, and MutationRequestLifecycleManager rather than the core mutation engine itself.
- creating governed requests with
MutationRequestFactory.Pending(...)andMutationRequestFactory.Approved(...) - storing requests in
InMemoryMutationRequestStore - moving requests through the lifecycle with
MutationRequestLifecycleManager - listing pending requests globally and by
StateId - explicit runtime paths for:
- approval
- cancellation
- expiration sweep
- external-check pending state
- inspecting
MutationRequestDecisionhistory after transitions
Program.csScenarios/GovernanceRequestLifecycleScenario.cssrc/Governance/Abstractions/Requests/Model/MutationRequest.cssrc/Governance/Abstractions/Lifecycle/IMutationRequestLifecycleManager.cssrc/Governance/Runtime/MutationRequestLifecycleManager.cssrc/Governance/Runtime/InMemoryMutationRequestStore.cs
dotnet run --project Examples/Governance/RequestLifecycle/RequestLifecycle.csprojThe sample prints:
- pending requests after submission
- pending requests filtered by state
- requests expired during the expiration sweep
- final lifecycle state and decision history for each request