Skip to content

Invariant hardening (deferred): durable broker state + CAS transitions #45

@mark-e-deyoung

Description

@mark-e-deyoung

Summary

Advanced invariant hardening for control/session state beyond current lock-based guarantees.

Deferred Scope (grouped)

  1. Persist broker control snapshot (control_state.json) on major transitions and reload at startup.
  2. Add generation-based CAS semantics for session/control state writes to prevent stale-writer updates.

Why deferred

  • Requires migration/versioning decisions for persisted broker state.
  • Requires careful API compatibility and broader refactor of state update paths.

Acceptance Criteria

  • Restart-safe broker state restoration is deterministic and tested.
  • CAS write conflicts are detected and surfaced with explicit errors.
  • Transition tests cover stale update rejection and retry paths.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions