Public: anyone can read this; the crew can change it.
Looks write and read through a theme key, so a release that drops the "dark:" prefix can roll safely #16807
Check · Review · Land · Live done — Landed and live in production.
Looks now upsert and read through the theme key, so a later release can drop the dark: prefix without breaking an older one mid-roll. Migration: 20261130130000-look-theme-key.ts adds a unique index on (appid, env, commitoid, page, kind, theme) and leaves the old key alone.
-
Reviews
ApprovedDoes what #16796 asked, whole, and nothing more. The migration is additive (unique index, old key kept, pin included), recordLook upserts on the theme key while still writing the dark: prefix, getLook matches the theme column with either page form and prefers the prefixed one, and the tests cover a hand-filed /p dark row through getLook and both lists plus a dark retake replacing in place. No page, action, route or tool changes, so no door is owed. The one failing chromium test is an environment limit and fails the same without this change. Next two: (1) when the prefix-dropping release lands, add a test that a pair of rows for the same look filed both ways resolves to the prefixed one; (2) add a unique-index collision test on the hand path (inserting /p dark twice fails) so the new key is pinned.
-
Checks
shipped production is serving it deploy aac12e1
-
History
- Looks write and read through a theme key, so a release that drops the dark: prefix can roll safely (#16796) 0332e2a
- An outsider's report or offer is rate-limited per address with a plain 429 and Retry-After (#14524) a70b09a
- An app gets an ordered change stream: rooms, presence and durable order, with no dependency (#16751) 3f72871
- Drop the retired keeper_beat and feature_schedule_seen tables (#16792) 6ebaedd
- A paused app's service port is released and says so on its page (#16787) ba6975c
- Typed errors at one boundary: name the error kinds src/http/respond.ts can answer and have handlers return them as plain data (#16775) bceeacb
- A subscriber gives a friend a forge in one tap, and sees who came — restarted from the parked branch, in two small pulls (#16766) 94c2cbe
- Every price on /pricing, the plan row and the MCP is formatted by one function, with a test over the three (#15694) a79722d
- One palette across the forge and its apps — restarted from the parked branch, forge side first (#16779) e4dd828
- With the weekly window full, the forge runs a model-free measurement and /week counts it (#16783) 7bffc31
- small: The guide spine, read as a new owner, an outside agent and an owner looking up a setting, has its findings fixed (#16781) b92c2a5
- An invite to an organization lands from the closed pull #12484's branch, with the signup welcome tested (#16764) 518ce94
- forge.json validates a service app's ports and refuses a clash with another app (#16778) a4bc344
- The platform inventory page has one primary next action and is looked at on phone and desktop widths (#16773) 721a707
- Admins mark which repositories are offered as templates for new forges (#16752) 577f9d8
- small: Escape leaves the tell box and keeps its draft per page (#16774) 24468de
- On a phone, one tap opens search with the keyboard up and results above it (#16749) 7238053
- A room on an app's change stream reports who is present (#16776) 98bb47d
- Port Jay Moran's demo: actions/demo, refs/demo and moveRefLeased's caller, demo routes (#16745) b346c0a
- The plans page says what each forge size is for, measured by the time to a first built change (#16759) a1bc223
Looks now upsert and read through the theme key, so a later release can drop the dark: prefix without breaking an older one mid-roll.
- Migration:
20261130130000-look-theme-key.tsadds a unique index on(app_id, env, commit_oid, page, kind, theme)and leaves the old key alone. I also added its pin file undersrc/core/migration-pins/. - Write:
recordLooknow usesON CONFLICT (app_id, env, commit_oid, page, kind, theme). It still writes thedark:prefix, so the old key is never violated. - Read:
getLookmatches on thethemecolumn and accepts the page either asdark:/por as plain/p, preferring the prefixed form. The three list functions already filtered on thethemecolumn and decoded either form, so they needed no change. Rows filed either way read back as page/p, theme dark. - Tests:
test/look-theme-key.test.tscovers both items from the issue.- A row inserted by hand as
/pwith themedarkreads back throughgetLookand the lists, andgetLookreturns nothing for that page in light. - A retake of a dark look replaces it, and the light look stays.
- A row inserted by hand as
- Test runs: the new tests,
test/schema-additive.test.ts(unchanged),test/schema-migrations.test.ts,test/looks-pairs.test.tsandtest/look-narrow.test.tspass.tscandgate --fixare clean. - One failure in
test/looks.test.ts: "a real capture through the grant door, with /usr/bin/chromium" fails. It fails the same way with my change stashed. The sandbox's Chromium doesn't run, so I haven't verified it here.
I did not change the dark: write, rebuild the old key, or drop the prefix. Those are the later steps of #16263. I reused the existing stored and unstoredDark helpers and added no new function, so similar.ts had nothing to flag. There's no page, action, API route or tool change, so the commit line says No door:.
To try it, run bun test test/look-theme-key.test.ts.
Looks now upsert and read through the theme key, so a later release can drop the
dark:prefix without breaking an older one mid-roll.20261130130000-look-theme-key.tsadds a unique index on(app_id, env, commit_oid, page, kind, theme)and leaves the old key alone. I also added its pin file undersrc/core/migration-pins/.recordLooknow usesON CONFLICT (app_id, env, commit_oid, page, kind, theme). It still writes thedark:prefix, so the old key is never violated.getLookmatches on thethemecolumn and accepts the page either asdark:/por as plain/p, preferring the prefixed form. The three list functions already filtered on thethemecolumn and decoded either form, so they needed no change. Rows filed either way read back as page/p, theme dark.test/look-theme-key.test.tscovers both items from the issue./pwith themedarkreads back throughgetLookand the lists, andgetLookreturns nothing for that page in light.test/schema-additive.test.ts(unchanged),test/schema-migrations.test.ts,test/looks-pairs.test.tsandtest/look-narrow.test.tspass.tscandgate --fixare clean.test/looks.test.ts: "a real capture through the grant door, with /usr/bin/chromium" fails. It fails the same way with my change stashed. The sandbox's Chromium doesn't run, so I haven't verified it here.I did not change the
dark:write, rebuild the old key, or drop the prefix. Those are the later steps of #16263. I reused the existingstoredandunstoredDarkhelpers and added no new function, sosimilar.tshad nothing to flag. There's no page, action, API route or tool change, so the commit line saysNo door:.To try it, run
bun test test/look-theme-key.test.ts.Closes #16796