Skip to content

fix(claude): pass writer-session proof in standalone channel (#86) - #87

Merged
OBenner merged 1 commit into
mainfrom
fix/86-claude-writer-proof
Nov 16, 2026
Merged

OBenner merged 1 commit into
mainfrom
fix/86-claude-writer-proof

Conversation

@OBenner

@OBenner OBenner commented Nov 16, 2026

Copy link
Copy Markdown
Owner

Fixes #86.

Root cause

runClaudeAdapter called registerSynloqTools(mcpServer, relay) without the writerSessionId proof, while the MCP stdio path (src/mcp/stdio.ts) computes it from the bound session. Once the role's session is registered (single-writer, #46), requireWriter rejects every write from the owning session itself with NOT_WRITER — the deny even names the owning session as the required writer, with no , not '…' suffix because the request carried no session id at all.

Found live during the Claude Desktop next-interaction window (W6) on the stand: synloq_ack denied at 13:13:22Z against owner local_4e5acc50-… registered by the same MCP child at 13:10:37Z.

The 2026-11-15 live DoD missed this because the stand had no registered session yet (writes passed via the token-only path).

Fix

One line: pass config.sessionId as writerSessionId in the standalone Claude channel's registerSynloqTools call.

Verification

  • New regression test in test/cli/standalone-adapter.test.ts: owning Claude session acks after registration.
  • Test fails without the fix (NOT_WRITER), passes with it (verified by stash/unstash).
  • pnpm verify green: 101 files / 848 tests, format, typecheck, build.

The standalone Claude adapter registers its session but called
registerSynloqTools without the writerSessionId proof, so once the
role session registered (single-writer, #46) every write from the
owning session itself was denied NOT_WRITER. The 2026-11-15 live DoD
missed it because no session was registered on the stand yet.

- runClaudeAdapter passes config.sessionId as writerSessionId
- regression test: owning session acks after registration; verified
  the test fails without the fix (NOT_WRITER) and passes with it
@OBenner
OBenner merged commit 34d8016 into main Nov 16, 2026
5 of 6 checks passed
@OBenner
OBenner deleted the fix/86-claude-writer-proof branch November 16, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Standalone Claude adapter omits writer-session proof: ack/send denied NOT_WRITER once the role session registers

1 participant