← back to AbramsEgo

build-queue/done/02-breakeven-target.md

10 lines

# AbramsEgo build task 02 — energy attribution + break-even target

Make the self-funding P&L sharper (~/Projects/AbramsEgo):

1. `server.js`: add env `ENERGY_ATTRIB_PCT` (default 100) so energy cost can be attributed as a fraction of machine draw to AbramsEgo/Claude; apply it in `energyCost()`. Add a computed **break-even target**: `pnl.breakEvenUsdPerDay` = today's cost, and `pnl.breakEvenUsdPerMonth`. Add `pnl.runwayNote` string.
2. `public/index.html`: in the P&L card, show a "Break-even: $X/day · $Y/mo" line and a progress bar of `selfFundingPct` toward 100%. Color: bad<50, warn<100, good>=100.
3. Read-only. Verify boot + `curl -u admin:'DW2024!' /api/pnl` shows `breakEvenUsdPerDay`. Commit `feat: energy attribution + break-even target in P&L`.

Do NOT deploy. Local only.