Files
summercms/.planning/phases/19.1-chat-satellites/19.1-DISCUSSION-LOG.md

4.7 KiB

Phase 19.1: Chat satellites - Discussion Log

Audit trail only. Do not use as input to planning, research, or execution agents. Decisions are captured in CONTEXT.md — this log preserves the alternatives considered.

Date: 2026-10-09 Phase: 19.1-chat-satellites Areas discussed: HTTP surface, Herald Web Push lib, ChatVideo LiveKit, Forum Markdown

Scouting facts presented before the questions:

  • chatbots never calls Golem, so success criterion 2's sm-golem-plugin clause is vacuous.
  • userfriends is the same commit (182b514) in fonoteka and Wavepath and is unused by fonoteka's code.
  • No client calls the satellites' own routes; Wavepath's SPA uses only /_wave/api/v1/....

HTTP surface

Option Description Selected
Yes, like Phase 19 Generic /_x/api/v1 for forum, chatvideo and userfriends, mirroring the /_wave community routes and re-rooted by context alias ✓
Service API only Matches PHP; the app owns every route
Mixed Generic for userfriends and forum; video service-only
Option Description Selected
Generic APIs for both /_herald/api/v1/push/* and /_chatbots/api/v1 commands ✓
Herald yes, chatbots no Command dispatch stays in the app
Neither Keep the PHP shape
Option Description Selected
Drop all Legacy routes, components, assets and demo seeds dropped; seed migration IDs kept as no-ops ✓
Keep legacy routes as aliases Mount /api/video and /api/friends as aliases
Drop routes, keep seeds Demo seeders become an opt-in command
Option Description Selected
Generic context events userfriends fires group events; forum exposes DeleteContext; the app wires them ✓
Forum listens directly Optional capability check on userfriends
You decide

Herald Web Push lib

Option Description Selected
Hand-rolled, stdlib crypto/ecdh, hkdf, AES-GCM, and golang-jwt for VAPID
SherClockHolmes/webpush-go The de-facto Go library ✓
You decide after research
Option Description Selected
fetchguard built in PublicOnly client, no EndpointGuard seam, fail-closed ✓
Keep the seam, fetchguard default A host can add a push-service allow-list
Port as is Allow-all default
Option Description Selected
conga job per send Enqueued in the caller's transaction; gate, send and prune in the job ✓
Synchronous like PHP
Both
Option Description Selected
Config keys + env, port the command PHP env names mapped; herald:vapid-generate; warn when missing ✓
Generate on first boot

ChatVideo LiveKit

Option Description Selected
Hand-rolled golang-jwt tokens plus Twirp JSON over fetchguard
livekit/server-sdk-go The official SDK, with a decision note ✓
livekit/protocol auth only
Option Description Selected
Move into chatvideo A generic reconcile service, command and conga periodic job ✓
Leave it in the app

Forum Markdown

Option Description Selected
bluemonday The PHP HTMLPurifier policy mapped 1:1; goldmark for conversion ✓
Hand-rolled on x/net/html
Framework-level sanitizer
Option Description Selected
Semantic parity, keep stored rows Normalized-DOM golden tests; adopted rows served as stored ✓
Byte-identical
Re-render all on adoption
Option Description Selected
In sm-forum-plugin, exported
Framework module ✓

User's choice: "Framework module, done with gsd-quick by summer agent. We'll need that in multiple places." Notes: The module is delivered by a separate quick task in summercms.go, not by a plan of this phase. Forum consumes it.


Claude's Discretion

  • Identifier names, exact generic API paths, chatbots bot-token handling on the API, how calls are addressed in the chatvideo API, conga queue and job shapes, phrasebook strings, where the satellite alias rewrite lives, and the plan split.

Deferred Ideas

  • The framework Markdown/sanitizer module, delivered by a separate quick task.
  • Frontend components for friends, forum, video and push.
  • Wavepath's /_wave routes and host seam implementations, with the Wavepath app port.