Skip to content

feat: topic channel mapping with race condition handling#61

Merged
shetty4l merged 4 commits intomainfrom
feat/topic-channel-mapping
Mar 1, 2026
Merged

feat: topic channel mapping with race condition handling#61
shetty4l merged 4 commits intomainfrom
feat/topic-channel-mapping

Conversation

@shetty4l
Copy link
Owner

@shetty4l shetty4l commented Mar 1, 2026

Summary

  • Add TopicChannelMapping state entity for persisting semantic topic-to-thread mappings
  • Add createForumTopic/deleteForumTopic Telegram API methods for forum thread management
  • Implement resolveTopicKey with race condition handling (orphan thread cleanup on UNIQUE constraint)
  • Fall back to allowedUserIds[0] DM when no supergroupId configured

Commits

  • feat: add TopicChannelMapping state + supergroupId config
  • feat: implement resolveTopicKey with race condition handling
  • test: add exhaustive test suite for topic resolution

Validation

All checks pass (291 tests, typecheck, lint, format, dashboard build).


Part of cortex#109 (Epic: Wilson Architecture Redesign)
Enables cortex#115 (Cerebellum) downstream

@shetty4l shetty4l merged commit ad0b796 into main Mar 1, 2026
4 checks passed
@shetty4l shetty4l deleted the feat/topic-channel-mapping branch March 1, 2026 12:43
Sign up for free to 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