← back to AbramsEgo
build-queue/done/03-revenue-plumbing.md
21 lines
# AbramsEgo build task 03 — revenue-engine plumbing (gated go-live drafted)
Build the SAFE plumbing for the 4 revenue engines in ~/Projects/AbramsEgo. Do NOT
wire any real money mechanism — those are gated.
1. `server.js`: add an authed `POST /api/revenue/record` that appends a dated income
entry `{engine, amount, source, ts}` to `data/revenue-ledger.jsonl`, and make
`collectRevenue()` sum per-engine amounts from that ledger into the snapshot so
windows (today/week/month) reflect real dated income (update `buildPnL` to use
dated revenue per window instead of the flat total).
2. `public/index.html`: for each engine card add a "turn-on checklist" tooltip and a
status pill that reads from `revenue.json` (`gated`/`live`).
3. For EACH engine, DRAFT a go-live memo to `~/.claude/yolo-queue/pending-approval/`
describing the exact gated steps (Stripe product+price / affiliate signup+placement /
billing rail / ad-network account), each with an officer APPROVE/REVISE/BLOCK block.
Do NOT execute any of them.
4. Verify boot + posting a test income row moves `pnl.today.revenue` > 0. Commit
`feat: revenue ledger plumbing + gated engine go-live drafts`.
Local only. No deploy, no keys, no publish.