Bot layer: §10.10 MUSTs (command router, mention addressing) and bot-default drifts #97

Closed
opened 2026-08-13 21:36:21 +02:00 by thecrealm · 0 comments
Owner

Review findings, three items:

  1. katrix-bot public surface is onMessage/autojoin/reply/run only. §10.10:11,17-19 MUST command routing and mention-addressing. No deferral record exists — build or defer+record.
  2. MatrixBot connects without a sendConfig, so bots run STRICT_PER_ROOM while spec §10.5.2 declares related-only the bot default (D22 named it 'bot default' too). Fix the default or amend the spec.
  3. MatrixBot.kt:90,102 constructs a ktor HttpClient() as a default argument value — a second HTTP-client construction site vs §3.2's the-transport-is-the-only-HTTP rule (signature stays clean since the parameter type is HttpPort, but the default instantiates ktor in katrix-bot). Route through a transport-provided default or record the exception.
Review findings, three items: 1. katrix-bot public surface is onMessage/autojoin/reply/run only. §10.10:11,17-19 MUST command routing and mention-addressing. No deferral record exists — build or defer+record. 2. MatrixBot connects without a sendConfig, so bots run STRICT_PER_ROOM while spec §10.5.2 declares related-only the bot default (D22 named it 'bot default' too). Fix the default or amend the spec. 3. MatrixBot.kt:90,102 constructs a ktor HttpClient() as a default argument value — a second HTTP-client construction site vs §3.2's the-transport-is-the-only-HTTP rule (signature stays clean since the parameter type is HttpPort, but the default instantiates ktor in katrix-bot). Route through a transport-provided default or record the exception.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
thecrealm/katrix#97
No description provided.