Public: anyone can read this; the crew can change it.
Home: a crew scorecard (landed, first-pass green, rework rate per member) and a streak of days without a red main, shown never notified #16885
Check · Review · Land · Live done — Landed and live in production.
The home now has an admin-only crew card, "Crew, last 30 days", at the foot of the Figures section. It shows the days since main last went red, then one row per crew member who landed a pull in the window. The terminal's home shows the same lines for an admin.
-
Reviews
Changes requested — before the latest pushThe card does what the issue asks: streak, a row per member, calm when empty, admin-only on the page and in the terminal, tested, and the how-to is in docs/features/living-home.md (README untouched). Two things to fix before it lands, in one round.
Fix first:
.ccdraws a bordered box around the card, which breaks principle 6 (few borders) and principle 7 (rows over boxes). Drop the border and padding, keep the 16px margin, and let a hairline sit above the section if it needs one. Then change the.ccline in docs/design/areas/home-flow.md to match.Also fix: the zero-day streak says "Main is red now, or went red today", which is two answers and reads as a hedge (principles 1 and 8).
streakDaysreturns 0 both while red and when the last red was under a day ago, so split them: return a distinct value for red-now (for example ared: booleanfield) and say "Main is red now" for it, and "Main went red today" for a true 0. The feature doc already promises "Main is red now".Smaller, not blocking:
MAX_ROWS = 12is a cap added with nothing asking for it; a crew is small. Remove it, or say in the pull why the card must be bounded.- The module header says the card is "never on a request", but the terminal dashboard calls
readCrewCardon each render (src/tui/screens/dashboard.ts). It is a handful of indexed queries, but either read the worker's cachedfigures.crewthere or fix the comment. - The terminal test covers only the empty case and the lines helper; add one that an admin's dashboard shows the streak line and a guest's does not.
- The 0.58-similar
pulltest helper next toaddPullcould share one helper.
ApprovedApproved. Earlier asks, all met in the diff: (1) the .cc block has no border, box or padding, just a 16px margin (principles 6 and 7); the rows are the shared bare rowList. (2) The streak wording tells "Main is red now", "Main went red today" and N days apart, through the new
redflag. (3) MAX_ROWS is gone, so there is no cap. (4) The module header now says who reads what. (5) The terminal carries the same lines for an admin only, and a test checks that a guest sees none. (6) The how-to is in docs/features/living-home.md and the .cc classes are in docs/design/areas/home-flow.md; nothing went into README. The attention budget for home is raised in one file with a note, merged from both sides. The card is admin-only because it sits in the figures region, which refuses visitors with 404. Nothing is notified. I did not re-read the screenshots this round: the markup is a heading, a line and rows, all links.Two things I would do next, both Non-blocking:
- Tighten the live-figures test in test/crew-card.test.ts. It accepts either the card or "Reading the figures", so it would pass with the card removed. Seed the worker's picture, or call figuresGrid with a known Figures, and assert the card text and the member link.
- Where a forge has no main check and nothing landed, the terminal prints nothing while the web card says "No main check on record yet" and the empty sentence. Pick one behaviour for both doors, and say so in living-home.md.
-
Checks
shipped production is serving it deploy bb265f4
-
History
- Attention budget: merge both sides' raises, measured at 352 words, 58 blocks 45ae129
- Merge main into crew scorecard branch 0504f28
- Bridge v1: home becomes operable — select any tile, row or figure and act in place, keyboard first (#16898) 6edf0f6
- Follow upstream's "last checked" speaks the UI's one clock: `time()`, not a hand-rolled HH:MM UTC (#16902) 8fd7cde
- Install scripts off for unreviewed repositories (bun install --ignore-scripts) (#16886) 59dc8a4
- Home: two or three owner-pinned panels with release annotations (#16884) 12309f3
- A check's plan line survives a long log: in the summary when green, in the detail when red (#16889) 0a6deb5
- Main green: the static web loads no data graph again (FLAGS_FILE in a leaf module) (#16912) 42c8c1d
- Crew card: no box, red now apart from red today, no row cap; terminal test for admin and guest b709724
- MCP tools to list, add, grant and remove crew SSH devices (#16863) 8d40736
- Lent runners: a peer forge can lend check compute, scoped to public pulls, budgeted, sampled and revocable (#16836) 4c3cffb
- infra list opens with one paragraph naming every machine, and show finds a machine by name (#16900) 09cecc1
- "tries at /signin close the API door" passes every time on a loaded check machine (#16904) 362a2b5
- Talk's direct lane: small edits go straight to a live preview branch in seconds; the check runs once at Publish (#16832) 1cb0dba
- Look: the card sits on / only 98a3c0a
- Status page: backups get their own honest row instead of reading as slow pages (#16891) e8a1cb1
- Nightly drill on the vxrail: the one-click path against production, loud on the step that broke (#16843) 3a83699
- An idle fresh forge has a memory budget test that names where its memory goes (#16883) 3bcfa79
- A front router wakes an asleep forge on its first request and says "waking…" while it does (#16882) 2d3e9b2
- Two timing flakes measured against load: page budgets scale by a same-run calibration; review budget is event-driven (#16879) fee6f7a
7 earlier comments
<!-- look-pages 7b2444a018db --> Look pages for 7b2444a, from the gate:
look pages (inferred): this pull changes src/web/pages/home_figures.ts, src/web/pages/home_flow_style.ts; the forge pictures / (src/web/pages/home_figures.ts), /docs (src/web/pages/home_figures.ts), /explore (src/web/pages/home_figures.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
I've pushed the fix as 412fd06b6. I haven't seen the forge's check on it yet.
The check failed because the Crew card made two things too big:
- Terminal dashboard: the card added two lines to the top of the screen. That pushed the On you rows out of view, which broke the
tui-onyouandtui-yours-askstests. On a forge with no main check and no landed work,crewCardLinesnow returns nothing, so the dashboard keeps its height. The card still appears on the web/Figures region, and in the terminal once there is a streak or landed work. I changed the empty-card assertion intest/crew-card.test.tsto expect no lines. - Home attention budget: the web card's empty sentence put
/over the first-view budget, which failed theattentionandattention-stampedtests. I raised only the home entry indocs/design/attention-budget.jsonby 8 words and 1 block, with a note naming #16849. I did not regenerate the whole file, because my branch is behind main and that would have rewritten other pages' budgets.
I ran crew-card, tui-onyou, tui-yours-asks, attention and attention-stamped: 26 pass and tsc is clean.
crew-review-budget failed in the check but passes alone, with and without my change, so I judged it load-flaky and left it alone. page-budget and web-import-cost were already red on main, per the check's own report, and I did not touch them.
<!-- look-pages 412fd06b649c --> Look pages for 412fd06, from the gate:
look pages (inferred): this pull changes src/web/pages/home_figures.ts, src/web/pages/home_flow_style.ts; the forge pictures / (src/web/pages/home_figures.ts), /docs (src/web/pages/home_figures.ts), /explore (src/web/pages/home_figures.ts) and 28 more, the pages whose routes import it. A "Looks: <path>" or "No look: <why>" line in a commit message overrides
Home now shows a crew scorecard in the Figures section, under the ship time. It lists landed pulls, first-pass green rate and rework rate per member, plus a streak of days without a red main. It is shown only, never notified.
- Review feedback: The code is unchanged since the review. I only added a
Looks: /line (this commit has no code in it), because the card sits on/alone, not the 31 pages the gate inferred. - Checks: I ran the dead-code test (
test/unused-exports.test.ts),test/tui-crawlers.test.tsandtest/crew-card.test.tsbefore pushing; all 9 tests pass.bun x tsc --noEmitis clean, andbun scripts/gate.ts --fixhad nothing to rewrap. The "shows the share, the budgets that refused and the agent refused" test is not in this diff; I didn't find it by name, so the two suites above are the nearest match. - Test records: The crew card test builds real records, with no
as neverleft. - Direction: The commits name the issue as
Direction: … (#16849). - Duplicate-function note: The gate says
pullintest/crew-card.test.tsis 0.58 similar toaddPullintest/api-pulls-check-preview.test.ts. I left it, since it is a note, not a refusal, and the two helpers build different records. - Terminal: The terminal dashboard prints the card's lines only when the forge has a main check or landed work, so an empty forge stays quiet there.
To try it, sign in as an admin, open /, and read the Figures section.
[{"go":"/","look":"Figures section, under the ship time","expect":"A Crew card with per-member landed, first-pass green and rework figures, and the days-since-red-main streak"}]Home now has a crew scorecard in the Figures section, under the ship time. It shows landed pulls, first-pass green and rework per member, plus a streak of days without a red main. It is shown only, never notified, and admin-only on the page and in the terminal.
This round answers @juniper's review:
- Borders:
.ccis now a plain section with a 16px margin and no border, padding or radius. The.ccline indocs/design/areas/home-flow.mdsays so. - Streak wording:
CrewCardhas a newred: booleanfield. It says "Main is red now" when main's latest finished check is red, and "Main went red today" for a true zero-day streak.streakWordstakes the flag as a second argument. - Row cap: I removed
MAX_ROWS. - Module header: I fixed the comment. The page reads the worker's cached card, and the terminal dashboard reads it on each render. I did not switch the terminal to the cached
figures.crew. - Terminal test: An admin's dashboard shows "Crew, 30 days: Main is red now", and a guest's shows no Crew line.
- Duplicate helper: I left the 0.58-similar
pullhelper in the crew card test next toaddPull, so they stay separate. It was marked non-blocking, and the two build different records.
Checks: bun x tsc --noEmit is clean, design-lint is clean, and the crew-card, unused-exports and TUI-crawlers tests pass.
Failing test: test/page-budget.test.ts fails on the pull page's median (15.7 ms against a 12.5 ms budget). It fails the same way without my change, and I did not touch that page.
[{"go":"/","look":"Figures section, under the ship time","expect":"A Crew heading with no box around it, the streak line (\"N days without a red main\", \"Main is red now\" or \"Main went red today\"), then a row per member"}]I merged main into the branch and pushed it. Only docs/design/attention-budget.json conflicted.
- Budget file: I kept the home budget raises from both sides. Main added 15 words and 1 block for the slots under the lanes. This pull added 8 words and 1 block for the Crew card's empty sentence. Measured on the merged page, home is now 352 words and 58 blocks at both widths. I put the numbers and the note in that one file.
- Mistake and fix: My first resolution overwrote the whole file and dropped every other page's budget. The attention tests caught it. I restored main's copy and edited only the home entry.
- Tests: The attention and crew-card tests pass (21 tests), and
bun scripts/design-lint.tsis clean.bun x tsc --noEmitprinted no errors. I did not run the full suite:scripts/fast.tsnamed 3766 of 4567 files, so I ran only the budget and crew-card tests. - Gate:
bun scripts/gate.ts --fixleft nothing to commit. It printed two notes that test helpers intest/crew-card.test.tslook like existing ones,pullanddashboardText. I left them.
The forge will run the full check on the push.
The home now has an admin-only crew card, "Crew, last 30 days", at the foot of the Figures section. It shows the days since main last went red, then one row per crew member who landed a pull in the window. The terminal's home shows the same lines for an admin. I did not run the full suite (the forge runs it on push), and I never started the app to look at the card on a page.
I ran
bun x tsc --noEmit,bun scripts/design-lint.ts, and the newtest/crew-card.test.tswithtest/home-figures.test.tsand the dashboard tests (42 pass).gate.ts --fixfound nothing more to rewrap. Thegate.ts --explainrun printed no output I could read, so I have not seen what the gate will hold the diff to.4 landed · 75% green first pass · 25% reworkand links to/settings/crew/<name>. The issue says "its board", but I found no per-member board page, so that is where the link goes. It is one line to change if you meant something else.crewScorecardsover the same 30-day window.alarm_red_main.tsdoes. I wrote a new query becausestreakStartinalarm_red_main.tsis private and answers a different question (when the current red began).readCrewCard, kept 30 s), and it redraws with the figures' live region.crewScorecardsandrecentWindow,getRepoandownRepoPath,rowandrowList, and the figures' live region.bun scripts/similar.tsfound nothing like the new module.src/flow/crew_card.ts. The docs aredocs/features/living-home.mdand a.ccentry indocs/design/areas/home-flow.md.Closes #16849