feat(channel): THESEUS ledger sink — spoken and dashboard turns become durable receipts - #141
Merged
Merged
Conversation
…turns become durable receipts Every conversational utterance through the channel client (mod3_speak with post_to_chat, mod3_dashboard_post as assistant) is also committed as a receipt into the book repo's conversations/inbox/, riding the existing ingest workflow. Turns declare origin=seat + a seat-* from, so the wake line never echoes the seat's own voice. Fire-and-forget: speech never blocks on a git push; kill switch MOD3_THESEUS_SINK=0.
…alidation (adversarial review round)
… — latent main-branch trip, unpinned ruff on CI now formats py fences in .md
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.
What
Every conversational utterance through the channel client —
mod3_speakwithpost_to_chat=True,mod3_dashboard_postasassistant— is also committed as a receipt into the book repo'sconversations/inbox/, riding the existing ingest workflow into the THESEUS ledger. mod3's message store is RAM-only (2026-07-23 tomography, gap #6); this is the additive fix at the mouth. The daemon is untouched.Design
conversations-ingestworkflow; no content contention with the seat or the ingest bot.origin=seatand aseat-*from(both self-echo suppression keys for the wake line), and the sink enforces the prefix itself.asyncio.to_thread; failures log and swallow; kill switchMOD3_THESEUS_SINK=0._cleanupdrains in-flight sinks (bounded 15s) so a session's final utterance isn't cancelled mid-write.Verification
tests/test_theseus_sink.py— real bare-origin+clone git pairs, including a 6-thread concurrency test and the remote-moved rebase race; channel-client regression suite green).ledger.jsonwithorigin=seat— and the wake-line watcher stayed silent on both commits (no mark ... seat echo).