Skip to content

feat(herald): proactive daily content engine#309

Merged
rz1989s merged 14 commits into
mainfrom
feat/herald-content-engine
Jun 2, 2026
Merged

feat(herald): proactive daily content engine#309
rz1989s merged 14 commits into
mainfrom
feat/herald-content-engine

Conversation

@rz1989s
Copy link
Copy Markdown
Member

@rz1989s rz1989s commented Jun 2, 2026

Summary

Gives HERALD a proactive daily content engine: a cron drafts one original tweet/day from a weekly theme calendar + a live GitHub activity digest (via the HERALD LLM), and enqueues it to the existing approval queue. You approve in the Command Center HeraldView; the existing checkScheduledPosts poller publishes approved posts. Generation is DB-only — it never calls the X API.

New packages/agent/src/herald/content/ submodule (6 modules + 23 tests) wired into the HERALD startup block:

  • calendar.ts — day-of-week → content theme
  • github-digest.ts — commits/PRs/releases/stars, graceful degradation
  • prompt.ts — HERALD content-drafting voice + draft prompt
  • generator.ts — LLM draft via chat(), tools: [] (no wallet registry), code-point-safe 280 truncation
  • enqueue.tstype='content' pending row + same-day guard
  • cron.ts — orchestrator + opt-in hourly cron, gated on kill-switch + budget

Safety

  • Opt-in via HERALD_CONTENT_CRON_ENABLED (default off)
  • LLM runs with no tools — content drafting can't trigger fund-moving actions
  • Generation skips when the kill switch is active or the budget gate is paused
  • Approval queue preserved — content posts are pending; nothing auto-publishes (keep HERALD_AUTO_APPROVE_POSTS=false)

First workstream of the T3 Superteam growth-phase refresh. Plan: docs/superpowers/plans/2026-06-02-herald-content-engine.md.

Test Plan

  • pnpm --filter @sipher/agent test1685 passed / 2 skipped (pre-existing Torque e2e)
  • pnpm typecheck — clean
  • Per-task TDD + two-stage review (spec + quality) + final holistic review
  • Go-live (manual): set @sipprotocol X OAuth creds + HERALD_CONTENT_CRON_ENABLED=true on the VPS; confirm a draft lands in HeraldView for approval

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
sipher Ready Ready Preview, Comment Jun 2, 2026 8:44am

@rz1989s rz1989s merged commit 2c7b9f9 into main Jun 2, 2026
8 checks passed
@rz1989s rz1989s deleted the feat/herald-content-engine branch June 2, 2026 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant