feat(session): shared Slack->Claude session mapping (#24)#33
Merged
Conversation
Core extraction slice. Unified, per the 2026-06-25 consensus: - Key(): uniform per-thread mapping (top-level=new session keyed message_ts; thread reply=resume keyed thread_ts; loop=one session per loop). No DM special-case (the rolling 'DM as channel' model is gone). - Namespace(prefix, persona): mixes a persona/instructions hash into the namespace so a persona change auto-starts fresh sessions (universalizes Joanne #55; PA passes its per-user system prompt). - ResolveFlag: workspace-scoped --session-id/--resume detection (Joanne's scoped stat, not Ross/PA glob-all -> avoids the #65 cross-workspace stale JSONL --resume). - IsLockRace: shared classifier. No consumers yet; agents adopt after the oauthpool slice settles. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.
Core extraction slice for #24. New
core/sessionpackage implementing the consensus session mapping (design doc PR #30):Key()— uniform per-thread: top-level msg = new session, thread reply = resume, loop = one session per loop. No DM special-case (uniform across surfaces, per the decision).Namespace(prefix, persona)— mixes a persona/instructions hash into the namespace so a persona change auto-invalidates sessions (universalizes Joanne #55; PA passes its per-user system prompt).ResolveFlag— workspace-scoped--session-id/--resumedetection (Joanne's scoped stat, not the Ross/PA glob-all that risked the #65 stale-JSONL--resume).IsLockRace— shared classifier.New package, no consumers yet — safe to merge + tag. Agents adopt after the oauthpool slice settles (Joanne's oauthpool PR is in flight). 9 tests green incl. the thread-resumes-top-level invariant and the scoped-resolve correctness.
Relates to #24. 🤖 Generated with Claude Code