Skip to content

Core: Token & Thread/Turn Management - #20

Merged
ggondim merged 2 commits into
meta/17from
claude/issue-5-20260410-2150
Apr 10, 2026
Merged

Core: Token & Thread/Turn Management#20
ggondim merged 2 commits into
meta/17from
claude/issue-5-20260410-2150

Conversation

@ggondim

Copy link
Copy Markdown
Contributor

fixes#5

github-actionsBotand others added 2 commits April 10, 2026 21:56
Add packages/core with full implementation of:
- TokenManager: ephemeral token generation/validation/revocation (ot_tk_*)
with configurable TTL (default 24h), and channel API key management
(ot_ch_sk_*) with channel-scoped validation
- ThreadManager: native thread creation with de-duplication on native IDs,
virtual thread detection via reply-chain grouping, and main thread
get-or-create per (channel, target) pair
- TurnManager: inbound/outbound turn logging (ot_turn_*) with chronological
listing per thread
- StorageAdapter interface for pluggable persistence backends
- InMemoryStorageAdapter for testing
- Full unit test suite covering token lifecycle, thread resolution, and
turn tracking
Refs #5
Co-authored-by: claude[bot] <claude[bot]@users.noreply.github.com>
@ggondim
ggondim merged commit cf32514 into meta/17Apr 10, 2026
@claudeclaudeBot mentioned this pull request Apr 10, 2026
16 tasks
Sign up for freeto 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.

1 participant

@ggondim