Summary
Implement ephemeral token management (for replyTo URLs), channel API key management, and thread/turn lifecycle logic.
Tasks
Token Management
Thread Management
Turn Management
Acceptance Criteria
- Ephemeral tokens are valid within TTL and rejected after expiry
- Channel API keys grant access scoped to the channel
- Threads are correctly created/resolved for native, virtual, and main thread scenarios
- Turns are logged for every interaction
- Unit tests for token lifecycle, thread resolution, and turn tracking
Dependencies
References
Summary
Implement ephemeral token management (for replyTo URLs), channel API key management, and thread/turn lifecycle logic.
Tasks
Token Management
replyToURLs (default TTL 24h, globally configurable)ot_ch_sk_*prefix)StorageAdapterThread Management
threadId(ot_thr_*), associate with native thread if availablemain threadIDTurn Management
turnId(ot_turn_*), associate with threadAcceptance Criteria
Dependencies
References