Skip to content

Guarantee one memory-loop writer per Vault #1

Description

@miniLV

What to build

Guarantee that each Vault has exactly one scheduled memory-loop writer.

  • Model the writer as one exclusive choice: codex or claude.
  • Keep session-source selection and read-only skill installation targets independent and multi-select.
  • Apply a Vault-wide writer lease to both Daily ingestion and periodic reconciliation.
  • Reject or safely skip a second writer while a lease is active.
  • Recover from stale leases after abnormal termination.
  • Preserve compatibility with existing Codex-only configurations.
  • Surface the selected writer, lease owner, and conflict reason in setup/status output.

Acceptance criteria

  • Configuration cannot select Codex and Claude as writers at the same time.
  • Runtime protection prevents concurrent Daily or reconciliation writes to the same Vault.
  • Codex and Claude may still both be session sources.
  • Codex and Claude may still both have the read-only query skill installed.
  • Active collisions, abnormal release, and stale-lease recovery have automated coverage.
  • Existing Codex-only setups migrate without requiring a manual reset.
  • User-facing status clearly explains which writer owns the Vault and why a conflicting run was rejected.

Blocked by

None.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestready-for-agentScoped and ready for an agent to implement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions