Re-wire Telegram operator features in the Messaging Service #1161

Closed
opened 2026-10-27 13:39:16 +00:00 by sam · 0 comments
Owner

The daemon's deleted setupTelegramGateway wired several telegram.Gateway seams that archiemessaging.compose does not. Each is silently absent from the extracted service:

  • Version: fmt.Sprintf("Archie\nGateway: %s\nRuntime: %s", gatewayVersion, runtimeVersion) -- /version now reports nothing.
  • Updates (releaseupdate.Service): /update is gone. Built by makeUpdateService from chat.telegram.update_check_command / update_install_command, StatePath filepath.Join(cfg.WorkDir, "telegram-update-deferrals.json"), InstallType installtype.Type(), Enrich componentInstallTypeEnricher.
  • ReleaseAnnouncements (releaseannounce.Announcer): StatePath was filepath.Join(workDir, fmt.Sprintf("release-announcements-%x.json", sha256(botUser)[:8])); components gateway -> /usr/share/archie/CHANGELOG.archied.md and runtime -> /usr/share/archie/CHANGELOG.archie.md. The path helper and both changelog consts were deleted from internal/app/archied/main.go in 8cda.6.4; reproduce the hash scheme exactly or announcements replay.
  • UpdateReportPath: updateReportPath(cfg.WorkDir, cfg.BotUser).
  • RunningVersions: daemonRunningVersions(agentStatus) -- the daemon-side agent-version tracker is not reachable from the Messaging Service, so this needs a contract decision, not a copy.
  • Reload: makeTelegramReload re-resolved the token and allowlist on SIGHUP. ChannelDescriptor.ReloadSupported still advertises telegram as reloadable.
  • SetShowToolCalls(cfg.Chat.ShowToolCalls): not projected into ResolvedConfig.
  • Dangerous (gateway.DangerousCommandAuthority): never wired in the daemon either; confirm it is intentionally unused before carrying it.

Version-derived items need archie-messaging to take its own ldflags stamp (Taskfile.yml builds it with none today) or to read the versions from the Gateway over the contract.

Close reason

Closed


Imported from beads archie-core-8cda.6.6 · GitHub #909 · type task · priority P1 · created 2026-09-19 · closed 2026-09-19

The daemon's deleted setupTelegramGateway wired several telegram.Gateway seams that archiemessaging.compose does not. Each is silently absent from the extracted service: - Version: fmt.Sprintf("Archie\nGateway: %s\nRuntime: %s", gatewayVersion, runtimeVersion) -- /version now reports nothing. - Updates (releaseupdate.Service): /update is gone. Built by makeUpdateService from chat.telegram.update_check_command / update_install_command, StatePath filepath.Join(cfg.WorkDir, "telegram-update-deferrals.json"), InstallType installtype.Type(), Enrich componentInstallTypeEnricher. - ReleaseAnnouncements (releaseannounce.Announcer): StatePath was filepath.Join(workDir, fmt.Sprintf("release-announcements-%x.json", sha256(botUser)[:8])); components gateway -> /usr/share/archie/CHANGELOG.archied.md and runtime -> /usr/share/archie/CHANGELOG.archie.md. The path helper and both changelog consts were deleted from internal/app/archied/main.go in 8cda.6.4; reproduce the hash scheme exactly or announcements replay. - UpdateReportPath: updateReportPath(cfg.WorkDir, cfg.BotUser). - RunningVersions: daemonRunningVersions(agentStatus) -- the daemon-side agent-version tracker is not reachable from the Messaging Service, so this needs a contract decision, not a copy. - Reload: makeTelegramReload re-resolved the token and allowlist on SIGHUP. ChannelDescriptor.ReloadSupported still advertises telegram as reloadable. - SetShowToolCalls(cfg.Chat.ShowToolCalls): not projected into ResolvedConfig. - Dangerous (gateway.DangerousCommandAuthority): never wired in the daemon either; confirm it is intentionally unused before carrying it. Version-derived items need archie-messaging to take its own ldflags stamp (Taskfile.yml builds it with none today) or to read the versions from the Gateway over the contract. ### Close reason Closed --- _Imported from beads `archie-core-8cda.6.6` · GitHub #909 · type task · priority P1 · created 2026-09-19 · closed 2026-09-19_
sam added the hightask labels 2026-10-27 13:39:16 +00:00
sam self-assigned this 2026-10-27 13:39:16 +00:00
sam closed this issue 2026-10-27 13:39:16 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#1161