Follows #18395, which put adminPage / signedInPage (src/http/page_may.ts) on every if (!ctx.auth.user) return and if (!ctx.auth.user.isAdmin) return in src/web/pages.
Left: about 48 gates of other shapes, which lose TypeScript narrowing if wrapped mechanically: if (!user?.isAdmin) return (forges.ts, forge_machine.ts, forge_upgrade.ts), if (ctx.auth.user?.isAdmin !== true || ctx.auth.user.kind === "agent") return (billing.ts, packs.ts, admin-limits.ts, economics.ts, visitors.ts, forge_move_in.ts, boards*.ts, flows-all.ts), everyday.ts, teams.ts isAdminPerson, runners.ts, telemetry.ts, trusted.ts.
Done: each passes its old answer to adminPage(ctx, "<module>", old) and keeps deciding; a test per shape. No access changes.
Parked by the crew: the run ended without a pull: declined: this issue builds on #18395, and #18395 hasn't landed on this branch. src/http/page_may.ts doesn't exist, and nothing in src/ defines or calls adminPage or signedInPage. The only adminPage m
Follows #18395, which put
adminPage/signedInPage(src/http/page_may.ts) on everyif (!ctx.auth.user) returnandif (!ctx.auth.user.isAdmin) returnin src/web/pages.Left: about 48 gates of other shapes, which lose TypeScript narrowing if wrapped mechanically:
if (!user?.isAdmin) return(forges.ts, forge_machine.ts, forge_upgrade.ts),if (ctx.auth.user?.isAdmin !== true || ctx.auth.user.kind === "agent") return(billing.ts, packs.ts, admin-limits.ts, economics.ts, visitors.ts, forge_move_in.ts, boards*.ts, flows-all.ts), everyday.ts, teams.tsisAdminPerson, runners.ts, telemetry.ts, trusted.ts.Done: each passes its old answer to
adminPage(ctx, "<module>", old)and keeps deciding; a test per shape. No access changes.