Repository navigation
fix(claude): pass writer-session proof in standalone channel (#86) - #87
Merged
Merged
Conversation
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
This was referenced Nov 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #86.
Root cause
runClaudeAdaptercalledregisterSynloqTools(mcpServer, relay)without thewriterSessionIdproof, 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),requireWriterrejects every write from the owning session itself withNOT_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_ackdenied at 13:13:22Z against ownerlocal_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.sessionIdaswriterSessionIdin the standalone Claude channel'sregisterSynloqToolscall.Verification
test/cli/standalone-adapter.test.ts: owning Claude session acks after registration.NOT_WRITER), passes with it (verified by stash/unstash).pnpm verifygreen: 101 files / 848 tests, format, typecheck, build.