Skip to content

Cross-host store concurrency: Claude Code and Codex sharing one Remember store has no contract and no tests #491

Closed

Description

@fdaviddpt

Promoted out of #406 as its second comment said it should be, at the moment it said to do it: "E. Promote to its own issue the moment C merges -- that is when it becomes both startable and the thing most likely to get skipped." C merged in v0.24.0 (_call_codex, _choose_summarizer_provider, pipeline/haiku.py), so this is startable now.

The claim nobody has tested

#406's own body asserts it: "The same installed plugin should remain safe when Claude Code and Codex use the same external Remember store on one machine." The maintainer comment on that issue already flagged it as "the sentence in this issue that carries the most unproven weight". Nothing has been done about it since, and v0.24.0 shipped Codex support without it.

What is actually in the tree, verified 2026-09-01 at f3232bd

  • scripts/lib-lock.sh (669 lines) and scripts/lib-staging-lock.sh (238 lines) are the whole locking surface.
  • Neither file contains the string codex or host. Both were written against a single host's session model.
  • lib-lock.sh:543 reasons explicitly about $$ being the same value in save-session.sh and its parent -- a claim about one host's process topology, not a portable one.
  • The eight tests/test_codex_*.py files cover manifest, signature detection, stdin session id, transcript path, upsubmit stdout and summarizer routing. None of them puts two hosts against one store.

So the locks may well be correct across hosts. The point is that nobody has established it, and the code carries no statement either way.

What would settle it

A contract, written down, for what two hosts sharing one store are allowed to assume about each other -- session-ID shape, lifecycle ordering, and what a lock holder from the other host looks like to a waiter -- and tests that exercise it. Concretely, at least:

  • two concurrent writers from different hosts against one .remember/ store, asserting no interleaved or lost entry;
  • a lock held by a dead process whose PID has been recycled by the other host;
  • session-ID shape: whether anything in the lock or staging path assumes the Claude session-ID form, and what happens when it meets Codex's.

Ranked

fails-to-preserve, unproven. This is not a report of an observed corruption -- it is a documented gap between a claim the project makes and any evidence for it. A negative assertion needs a positive control here more than usual: a two-host test that passes because the second host never actually wrote is the failure mode to design against.

Platform

Nothing observed on any platform. The file inspection above is observed on macOS/arm64 (Darwin 24.3.0); the absence of host-awareness in the two lock libraries is a property of the source and so holds everywhere -- that half is reasoned.

Activity

  1. added
    cohort-4
    on Sep 1, 2026
  2. self-assigned this
    on Sep 3, 2026
  3. added
    priority:medium
    on Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

cohort-4priority:medium

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions