Recover reach counter in shadow mode #55

Merged
backmeupplz merged 1 commit from fix/mkt-28-shadow-counter into master 2026-09-18 02:50:10 +00:00
backmeupplz commented 2026-09-18 02:48:28 +00:00 (Migrated from github.com)

Summary

  • restore a resumable reach counter that never writes the production user-count file
  • count private chats locally and check group membership/audience through Telegram
  • recover orphaned Voicy chat IDs from transcription jobs
  • recover orphaned Randy group IDs from raffles, edited chats, and admin-chat history
  • fail closed on incomplete sources and write the shadow result atomically
  • stop logging the Cloudflare credential

Safety

  • output is restricted to STATS_SHADOW_RESULT_PATH
  • usercount.txt is explicitly rejected
  • checkpoints are persistent and failed Telegram calls are retried on the next run
  • no website/API code path invokes the shadow collector

Validation

  • yarn test --runInBand — 58 tests passed
  • git diff --check

Kaneo: MKT-28 — Recover borodutch.com complete chat counter in shadow mode

## Summary - restore a resumable reach counter that never writes the production user-count file - count private chats locally and check group membership/audience through Telegram - recover orphaned Voicy chat IDs from transcription jobs - recover orphaned Randy group IDs from raffles, edited chats, and admin-chat history - fail closed on incomplete sources and write the shadow result atomically - stop logging the Cloudflare credential ## Safety - output is restricted to `STATS_SHADOW_RESULT_PATH` - `usercount.txt` is explicitly rejected - checkpoints are persistent and failed Telegram calls are retried on the next run - no website/API code path invokes the shadow collector ## Validation - `yarn test --runInBand` — 58 tests passed - `git diff --check` Kaneo: MKT-28 — Recover borodutch.com complete chat counter in shadow mode
Sign in to join this conversation.
No description provided.