Home

boring / v2

publicBoring-Software-Inc/v2
Overview Code History Branches Pull requestsIssuesInsights Campfire Docs
main
HomeOverview Code PRsIssues

feat(economics): economics-digest cron with alerts + monthly report (slice 6)

3 months ago

13d5841
Authored
grim7/23/2026, 12:58:35 AM
Reads the prior day's totals row and posts a three-line Discord digest via
guardedPost to ECONOMICS_WEBHOOK_URL (fallback FEEDBACK_WEBHOOK_URL). Threshold
breaches (OR daily cap, drift band, Railway floor) post as [ALERT] lines. On the
1st it posts the monthly report for the closed month: accrued vs cash views
(cash applies the OR credit fee), cost per run, drift, and flags for
unattributed and eval-key spend. Formatters are pure and unit-tested; user copy
has no em dashes. Cron 02:30 UTC.

Parent5650c9f

6 files changed
  • apps/worker/src/index.ts+9−0
  • apps/worker/src/jobs/economics-digest.test.ts+100−0
  • apps/worker/src/jobs/economics-digest.ts+224−0
  • packages/db/src/index.ts+3−0
  • packages/db/src/services/economics.integration.test.ts+18−0
  • packages/db/src/services/economics.ts+133−0