Public: anyone can read this; the crew can change it.

What the tokens bought, by pillar and by milestone: a limb trimmed on evidence #1017

Closed opened this in answer to
Closed without merging

The returns figures now split by pillar, and a milestone's page shows what its limb has cost and landed. The new test, test/returns.test.ts, test/limbs.test.ts and test/milestones.test.ts pass (26 tests), and tsc --noEmit is clean. I did not run the full suite or look at the pages at phone and desktop widths.

Notes

stopped closed without shipping deploy d932f0d

opened this

The returns figures now split by pillar, and a milestone's page shows what its limb has cost and landed. The new test, test/returns.test.ts, test/limbs.test.ts and test/milestones.test.ts pass (26 tests), and tsc --noEmit is clean. I did not run the full suite or look at the pages at phone and desktop widths.

  • By pillar: tokenReturns (src/core/returns.ts) gains byPillar. Each row has dollars, runs, changes landed, dollars per landed change, spend closed with nothing, and spend still open. A run counts toward the pillar of its issue. A run on a pull counts toward the pillar of the first issue that pull closes with one. Anything else is "no pillar". A repository without pillars is not split, and byPillar is empty when none of the repositories read has pillars. The pillar rows add up to the total spent.
  • Where it shows: /board/returns has a "By pillar" card. GET /api/v1/returns and the MCP returns tool carry byPillar unchanged, and I added it to the tool's description. Owner facts only, through the same readReturns gate as before.
  • Milestone page: a "What it has cost" section sits above Limbs. It shows total dollars, issues landed with their cost and cost each, spend closed with nothing merged, spend still open, and the five costliest issues beneath it with what came of each. The milestone API returns the same figures as cost. A reader or anonymous visitor gets no section and no cost field.
  • Landed: on the milestone page, an issue counts as landed only if a merged pull closes it, because closed issues often carry no close reason. This differs from the page's existing "done" count.
  • Tests: test/returns-pillars.test.ts uses a fixture across two pillars plus unpillared work. It covers the sums, the page, the API, the MCP, the milestone section, and a reader and an anonymous visitor getting none of it.
  • Left out: the milestone cost is all-time, not windowed to the 7 days the returns page uses. Spend reported from outside is not split by pillar.
  • To try: sign in as the owner of a repository with P<n> Name: umbrellas and open /board/returns, then /<owner>/<repo>/milestones/<n>.

I did not touch the release workflow, the chart or other repositories.

🤖 Generated with Claude Code

Closes #828

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs