Public: anyone can read this; the crew can change it.
Access 3b, web pages: the remaining admin gates (a local user?.isAdmin, isAdmin !== true || agent) ask adminPage beside them #18413
Merged 2h ago, live in production
Almost all of the gates this issue listed were already wrapped on main when I started. I wrapped the one admin gate that wasn't and added a test for it.
-
Reviews
ApprovedOne-line shadow gate on /settings/everyday: adminPage asks beside the old answer, which still decides, so nothing a person sees or does changes (no layout, keyboard, phone or no-JS effect). It matches the other gates in the file and the backups rule about not asking twice in render helpers. The test is a source-text check, so it would fail without the change. The no-door note is fair. Next: (1) replace the source-string assertion with a behavioural test that checks a parting is counted under 'web everyday'; (2) once the shadow counts are quiet, make may() the deciding answer and delete the old isAdmin check, so there is one way to decide.
-
Checks
shipped production is serving it deploy 55693b7
-
History
- Try: sign in as the admin and open /settings/everyday; it still shows the step, or sends a non-admin to /settings Looks: /settings/everyday 42f8c63
- Access 3b: the everyday step's admin gate asks adminPage beside it c7e41c9
- A new inline isAdmin check in a moved door fails the gate (#18410) e472288
- Access 3, infrastructure and clouds: the admin-only routes ask may() in shadow (#18409) 7855bb1
- Full suite red: test/data-browser.test.ts (#18411) 7f3333e
- Sentinel: backup was degraded 14 minutes today: The last restore drill 2026-12-06 failed at restore. The backup check last ran 2026-12-06T09:25:52.363Z (1 min ago); 39… (#18407) 24f4503
- A tab-forge read-only link can be revoked by the person who made it (#18402) bfd96cb
- Access 3, web pages: every page that gates on isAdmin or sign-in also asks may(), counted beside the old check (#18400) 8f27ed4
- A tab-forge app leaves as one spec file and comes back in, with or without its records (#18399) 081ac9e
- A person shares one imported session by a link that hides what the forge redacts (#18391) 080d52c
- Full suite red: test/data-browser.test.ts (#18394) b4310c7
- Red after landing: #18373 broke test/data-browser.test.ts (#18393) ab53312
- An imported session opens by reading its stored gzip line by line, not as one decoded string (#18387) a3b5b3e
- A big session is stored without holding the whole file twice: the import writes it to gzip in chunks and checks UTF-8 as it goes (#18385) 8ceefc1
- A person imports a Claude Code or Codex session from /traces in the browser (#18382) d8b1b2b
- A person saves a /traces search by name and reopens it from the list and the palette (#18381) db6a2d2
- small: an imported session's row in /traces opens its page (#18379) 067798c
- Full suite red: test/talk-build-no-crew.test.ts (#18380) fc3efe0
- /traces narrows by the tool a run used and the file it touched, on the page, the API and the terminal (#18373) ee241ef
- An imported session's steps carry their tokens and the page shows them, where the file holds them (#18372) 5739158
Almost all of the gates this issue listed were already wrapped on main when I started. I wrapped the one admin gate that wasn't and added a test for it. The pushed change touches one line in src/web/pages/everyday.ts; I ran tsc, test/web-pages-may.test.ts, test/door-inline-checks.test.ts and gate.ts --fix, and all passed. I did not run the full suite.
What changed
everydayPage(GET /settings/everyday) now asksadminPage(ctx, "everyday", user.isAdmin)in its admin check. The old answer still decides, so||short-circuits exactly as before. A parting withmayis counted inaccess_disagreementunderweb everyday.test/web-pages-may.test.tshas one new test. It checks that the everyday gate goes throughadminPage, and that billing'ssoldSectiondoes not.
Already done on main
- Every other module the issue named already calls
adminPage: forges, forge_machine, forge_upgrade, billing, packs, admin-limits, economics, visitors, forge_move_in, boards*, flows-all, teams, runners, telemetry and trusted.
What I left alone
- Billing's
soldSectionandportalSectionshow or hide a block. They sit inside a page that is already gated, and asking again would count each parting twice. This matches the existingbackups.tsrule and its test. everydayToAdminchecksadminOf(daily).isAdmin. The person acting there is the everyday account, not the admin, so askingforge.administerof that principal would part on every request.- The
user.isAdmin && user.kind === "user"check ineveryday.tsand the display-onlyisAdminreads are not gates.
Doors: no terminal or docs/features/ change, since nothing a page shows or does changed. The commit says No door.
To try it: sign in as the admin and open /settings/everyday. It still shows the step. A non-admin is still sent to /settings. Look path: /settings/everyday.
🤖 Generated with Claude Code
<!-- look-pages 42f8c638f69d --> Look pages for 42f8c63, from the gate:
look pages (none): "Looks: /settings/everyday" is not a page of app.looks in forge.json; this pull changes src/web/pages/everyday.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 28 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
Almost all of the gates this issue listed were already wrapped on
mainwhen I started. I wrapped the one admin gate that wasn't and added a test for it. The pushed change touches one line insrc/web/pages/everyday.ts; I rantsc,test/web-pages-may.test.ts,test/door-inline-checks.test.tsandgate.ts --fix, and all passed. I did not run the full suite.What changed
everydayPage(GET /settings/everyday) now asksadminPage(ctx, "everyday", user.isAdmin)in its admin check. The old answer still decides, so||short-circuits exactly as before. A parting withmayis counted inaccess_disagreementunderweb everyday.test/web-pages-may.test.tshas one new test. It checks that the everyday gate goes throughadminPage, and that billing'ssoldSectiondoes not.Already done on
mainadminPage: forges, forge_machine, forge_upgrade, billing, packs, admin-limits, economics, visitors, forge_move_in, boards*, flows-all, teams, runners, telemetry and trusted.What I left alone
soldSectionandportalSectionshow or hide a block. They sit inside a page that is already gated, and asking again would count each parting twice. This matches the existingbackups.tsrule and its test.everydayToAdminchecksadminOf(daily).isAdmin. The person acting there is the everyday account, not the admin, so askingforge.administerof that principal would part on every request.user.isAdmin && user.kind === "user"check ineveryday.tsand the display-onlyisAdminreads are not gates.Doors: no terminal or
docs/features/change, since nothing a page shows or does changed. The commit saysNo door.To try it: sign in as the admin and open
/settings/everyday. It still shows the step. A non-admin is still sent to/settings. Look path:/settings/everyday.🤖 Generated with Claude Code
Closes #18401