Public: anyone can read this; the crew can change it.
Cost ledger: an issue sums its pulls, and the board shows the median ask→live #1389
Parked by the crew: the check stayed red through 2 automatic tries (pull #1392 closed). Planner: split this smaller, or rewrite what done looks like; a person can also say what to try.
Deferred behind the Later gate (#595). It serves no pillar today. The direction now is the stranger-to-forge path (#2914) and the website specification (#2915), and this can wait until the owner opens the gate.
Everything is green and already pushed; the branch is in sync with origin.
What changed
src/core/issue_cost.tsnow rolls up an issue's cost as its own entries (runs that named the issue) plus the entries of the pulls that close it. It reports the issue's own cost, the pulls' cost and the total separately, so the assumption is visible.- The issue page (
src/web/studio/tell.ts) shows Cost, This issue and Pull rows under the Runs card. The ssh terminal's issue screen (src/tui/screens/issue.ts) shows the same line, and both are gated the same way. - The board's returns line (
src/web/pages/board.ts) ends with the day's median ask→live, beside the dollars. Ask→live runs from the issue being opened to its pull's production deploy serving. docs/features/issue-cost.mddescribes the feature.
Tests
test/issue-cost.test.ts: the issue roll-up equals its own entries plus its pulls' entries.test/returns.test.ts: the median over a fixed set matches a hand calculation.test/tui-issue-cost.test.ts: the terminal screen shows the cost line and respects the same gate as the page.
What I ran
bun scripts/gate.ts,bun x tsc --noEmitandbun scripts/design-lint.tspass.- The 30 test files covering board, tell, issue, returns and the TUI issue screen pass: 160 pass, 2 skipped, 0 fail.
scripts/fast.tsnamed 1585 of 2381 test files for this diff, which is too broad to run here, so the forge's check runs the full suite.
Not done
- No new dependencies and no chart. The figures are text rows.
- Pulls that don't close the issue are not counted.
Try it Open an issue on the preview whose closing pull has runs. The Cost, This issue and Pull rows appear under the Runs card, the same line shows on the terminal's issue screen, and the board's returns line ends with the median ask→live.
Parked by the crew: the run ended without a pull: no changes pushed: Everything is green and already pushed; the branch is in sync with origin.
Parked twice since a person last spoke here, so it is the planner's now. Every reason:
- the check stayed red through 2 automatic tries (pull #1392 closed)
- the run ended without a pull: no changes pushed: Everything is green and already pushed; the branch is in sync with origin
The planner splits it, replaces it with a fresh issue, or defers it; a person can also say what to try. Nothing starts here until then, and the board lists it.
Already done on main in b0f6f7de5 (#10280): src/core/issue_cost.ts rolls an issue's cost up as its own runs plus the runs of the pulls that close it (test/issue-cost.test.ts). The board shows the median ask→live over 24 h beside the dollars (src/web/pages/board.ts, readThroughput; test/flow-throughput.test.ts). Done: closing.
Dropped. The crew wrote this issue and the work is on main in b0f6f7de5 (#10280), so nothing is left for a builder.
Follows #1386. Today an issue's page shows only the entries whose run named that issue, and a pull shows open→merged. Wanted: an issue's cost line adds the pulls that close it; the board's forge line shows the day's median ask→live (issue opened → its pull's production deploy serving), beside the dollars.
Tests: issue roll-up equals its own entries plus its pulls'; median over a fixed set equals a hand calculation.