Instrument Voicy activity stream events #190

Merged
backmeupplz merged 1 commit from gen-kaneo-16-activity-events into main 2026-05-13 19:35:24 +00:00
backmeupplz commented 2026-05-13 19:16:54 +00:00 (Migrated from github.com)

Summary

  • Add a reusable Voicy activity stream emitter with env-based URL/token config, short timeout, and no-op behavior when unconfigured.
  • Emit anonymized activity for Telegram updates, handled commands, queued transcriptions, worker job lifecycle, and runtime startup.
  • Document stream env vars and add a proof script covering anonymization, no-op behavior, token-authenticated submit, project/source metadata, and payload safety.

Validation

  • yarn build-ts - passed
  • yarn lint - passed
  • yarn test:activity-stream - passed; local HTTP capture verified /activity/v1/events, bearer auth, project=voicy, source=bot, and no raw chat/user IDs, message text, file IDs, or file unique IDs in emitted payloads.

Manual QA

Manual Telegram QA is not required for this PR because bot behavior is unchanged: emitters are fire-and-forget, catch request failures, and no-op when stream env vars are absent. Review should focus on privacy of event text and runtime overhead.

Kaneo: GEN-KANEO-16

## Summary - Add a reusable Voicy activity stream emitter with env-based URL/token config, short timeout, and no-op behavior when unconfigured. - Emit anonymized activity for Telegram updates, handled commands, queued transcriptions, worker job lifecycle, and runtime startup. - Document stream env vars and add a proof script covering anonymization, no-op behavior, token-authenticated submit, project/source metadata, and payload safety. ## Validation - `yarn build-ts` - passed - `yarn lint` - passed - `yarn test:activity-stream` - passed; local HTTP capture verified `/activity/v1/events`, bearer auth, `project=voicy`, `source=bot`, and no raw chat/user IDs, message text, file IDs, or file unique IDs in emitted payloads. ## Manual QA Manual Telegram QA is not required for this PR because bot behavior is unchanged: emitters are fire-and-forget, catch request failures, and no-op when stream env vars are absent. Review should focus on privacy of event text and runtime overhead. Kaneo: GEN-KANEO-16
Sign in to join this conversation.
No reviewers
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
backmeupplz/voicy!190
No description provided.