feat(comms): content strategy and Comms agent infrastructure#132
feat(comms): content strategy and Comms agent infrastructure#132ohld merged 4 commits intoproductionfrom
Conversation
Daily content plan with ~30 post ideas across 6 categories, minimal brand guide with colors/font/tone rules, and vc.ru origin story archive with then-vs-now comparison.
On-demand Prefect flow for posting text/photo editorials to channel. Weekly burger economy snapshot (Sunday 14:00 MSK) with minted/spent aggregates and top-5 earners.
Deep link handler for ?start=giveaway_77 with whitelist to prevent unlimited burger minting. Runs after onboarding for new users. Adds ADD_TO_GROUP_DEEPLINK constant and TrxType.GIVEAWAY.
Editorial flow on-demand, weekly burger report Sunday 14:00 MSK.
1c6af45 to
4626401
Compare
Staff Engineer Review — 4 issues (3 critical, 1 informational)Codex structured + adversarial pass both flagged these. 3 issues need fixes before merge. [P1] Weekly burger report counts transfers as "minted"
Result: "Выпущено" will be inflated on any week with transfers or bot-reply payments, and Fix: Add [P1] Race condition in giveaway claim
Fix: Add [P2] New users via giveaway deep link get two memes (double delivery)
Every new user entering via Fix: Defer giveaway payout to [P3] Editorial channel fallback silently posts to EN on invalid input
Fix: if channel not in ("ru", "en"):
raise ValueError(f"Unknown channel: {channel!r}")Lint fixes already pushed in |
CI Status & ReviewCI is failing, but investigation shows these are pre-existing failures on Failures (not introduced by this PR)
Confirmed: last 5 CI runs on PR Changes AssessmentThe comms infrastructure changes are solid:
Merging — CI failures are a separate pre-existing issue to fix on |
Summary
Content strategy for @ffmemes Telegram channel with daily posting cadence (~1 post/day). Comms Manager agent is now operational with content plan, brand guide, and posting infrastructure.
Content & Brand
docs/comms/content-plan.md— ~30 post ideas across 6 categories (Feature Spotlights, Lore, Data Insights, Engagement, Recurring, Behind-the-scenes)docs/comms/brand-guide.md— Colors (#FF6B35 primary), Work Sans font, chart palette, visual formatsdocs/comms/lore/— vc.ru origin story archive with then-vs-now comparison (Oct 2020 → Mar 2026)Posting Infrastructure
src/flows/crossposting/editorial.py— On-demand Prefect flow for text/photo editorial posts with optional inline buttonssrc/flows/crossposting/weekly_report.py— Sunday 14:00 MSK burger economy snapshot (minted/spent/top earners)scripts/serve_flows.pyGiveaway System
src/tgbot/handlers/treasury/giveaway.py— Deep link handler for?start=giveaway_77TrxType.GIVEAWAYwith 77 burger payoutAgent Config
agents/.paperclip.yaml— ANALYST_DATABASE_URL for Comms agent DB queriessrc/tgbot/constants.py— ADD_TO_GROUP_DEEPLINK for "add to chat" CTA postsPre-Landing Review
Codex review found and we fixed 3 issues:
Test plan
?start=giveaway_77deep link credits burgers?start=giveaway_fakedoes NOT credit burgers