Skip to content

[Task]: Add ModularityKit.Mutator.Governance.Redis provider #31

Description

@rian-be

Summary

Add a dedicated Redis persistence provider for governed mutation requests so governance storage and query workflows can move beyond the in-memory runtime.

Goal

Make ModularityKit.Mutator.Governance usable with Redis backed request persistence, optimistic concurrency, and operational query reads while keeping provider specific concerns outside the base governance package.

Scope

What should be implemented?

  • Create the ModularityKit.Mutator.Governance.Redis package
  • Implement IMutationRequestStore for Redis backed request persistence
  • Implement IMutationRequestQueryStore for Redis backed governance queries
  • Add Redis keyspace conventions for request documents, revisions, and query indexes
  • Support optimistic concurrency for governed request updates
  • Support Redis backed pending queue, state based, status based, and approval oriented reads
  • Add DI registration for the Redis provider
  • Add Redis focused examples and tests
  • Document provider architecture, storage strategy, and compatibility decisions with ADRs

Acceptance Criteria

  • Governance request storage works on Redis without changing governance abstractions
  • Governed request updates preserve optimistic concurrency semantics
  • Common governance reads can be served through Redis-backed query implementations
  • Provider specific logic remains isolated in ModularityKit.Mutator.Governance.Redis
  • Applications can register the provider through dedicated DI extensions
  • Examples and tests demonstrate Redis backed persistence and query behavior
  • Redis provider architecture is documented through ADRs

Notes

The governance package already has an in-memory runtime for examples and tests, but a real provider is needed to make request lifecycle, approvals, and governance reads durable in operational environments.

Redis is the first persistence provider for this layer and should establish the packaging, indexing, and query strategy baseline for later providers.

Related ADRs:

  • ADR-022: Governance Request Decisions and Storage
  • ADR-026: Governance Request Query API
  • ADR-029: Governance Redis Provider Package
  • ADR-030: Governance Redis Request Storage and Query Strategy
  • ADR-031: Governance Redis Serialization and Document Compatibility
  • ADR-032: Governance Redis Concurrency and Index Maintenance Model

Metadata

Metadata

Assignees

Labels

No labels
No labels
No fields configured for Feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions