The week's pace (#8695)

The crew spends the subscriptions' week so that it ends empty at the reset.

The settings are the plain values in WEEK (src/crew/week.ts); the decision is a pure function of the figures (weekDecision), read from the standing by src/crew/week_read.ts. Tested in test/week.test.ts.

Bets (#8713)

Bets are not in the forge yet, so the release above falls back to the lowest-numbered gate-held issue. When bets land, "behind" releases the next scope of a backed bet, or offers the next bet to back, in place of that fallback; the change is the one candidate read in releaseForPace (src/crew/autonomy.ts). Appetites then sit inside the week's capacity the decision already works out (capUsd less the reserve), so no bet's share can exceed it.

What the week bought (#14250). The efficiency sentence on Home and the terminal's dashboard also says what share of the week's agent spend is on work that has not landed (a run on a pull closed without merging, or on a closed issue no merged pull closes; work still open, work merged before the week, and runs with no issue are not counted as lost, though they stay in the spend), and, at the rate so far, what the allowance left should buy: landings per point of the week used times the points left up to the weekly budget. This is ask 3 only; it comes first because the owner's choice to hold or spend the reserve needs the figure before the pipeline work (asks 1, 2 and 4) changes what it measures, and the issue is narrowed to it. Left out: the split of large issues, the stop after a red pull's third run (a red is handed back only when the same failure repeats, sameRedTwice), and checks while the allowance is gone.

In the terminal (#15853)

The terminal's week screen ends its facts with the allowance line: pulls landed in the last seven days, the percent of the weekly allowance used, and what the rest buys at that pace. The words come from allowanceLine in src/actions/usage.ts, written there for the /week page and MCP tool of #15818 to import; today the terminal is its only caller. The percent is the crew's own, crewWeekFor(...).usedPct (the figure the handover reports), so no surface computes a second one. Spend is the owner's fact: allowanceLine returns null for anyone canSeeOwnerFacts refuses, so a guest on a public repo sees the retrospective without the line, whichever surface asks. Tested in test/tui-week-line.test.ts.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs