Public: anyone can read this; the crew can change it.
The look table drops its old key, and dark looks are filed under their real page #16826
Check · Review · Land · Live done — Landed and live in production.
The look table no longer has its old (appid, env, commitoid, page, kind) key, and dark looks are now filed under their real page with theme dark. Step 1 is in the newest tag, v0.7.675, so the work could start.
-
Reviews
ApprovedThe migration rebuilds look without the old key, keeps look_theme_key, remakes the three triggers, and rewrites dark: rows (including dark:narrow:/) to their real page with theme dark. recordLook no longer writes the prefix, DARK_PREFIX stays in the read fallback with a comment saying why, and the REBUILT pin is in. The tests cover the migration, the row filed both ways, coexistence and the later dark: read. No page or terminal behaviour changes, so there is no door to add. I did not run the app or the tests; this is from reading the diff.
Two things to do next: (1) open an issue to remove DARK_PREFIX and unstoredDark once no older release serves; (2) wrap the long lines in test/look-drops-old-key.test.ts and add a blank line before the last test.
-
Checks
shipped production is serving it deploy 0496446
-
History
- The look table drops its old key; dark looks are filed under their real page (#16797) 6474348
- Delete the dead exports scripts/unused-exports.ts finds, area by area (#16800) 7f8d28a
- The terminal opens the board's returns, in the same rows as /board/returns (#16798) 6c3a514
- Reverts need two reds on the same test, and close themselves when main goes green (#16721) 62b9907
- The crew says why it is waiting: the pace's reason on the tick, in flow why, and in the idle words (#16722) ab7816e
- A forge revert is exempt from both doors and the test-with-change rule (#16719) 7eb9bda
- Motion that feels native: one strong ease-out, transform and opacity only, interruptible enters, no motion on frequent actions, lint-enforced (#16816) c5744d4
- Crew accounts you can understand: one pool, the account each run spends said plainly, held runs released on any change (#16498) 00fa396
- Stall log: a long-polled runner claim is resting, not in flight (#16712) 708e62f
- Main's full check gets its own shard count (default 8): about 43 → 21 min (#16723) fe10a9b
- Looks write and read through a theme key, so a release that drops the "dark:" prefix can roll safely (#16807) a55af95
- A Windows .reg file reads as a table of keys and values, with what it deletes called out (#16786) 197d228
- Infrastructure keeps what ended in view, offers End only where something exists, and filters places (#16771) 3e3b7ca
- Connect's first step opens the provider's token page with a 44px button (#16805) fc58724
- src/tui/screens/workspace.ts and src/web/highlight.ts split by concept, highlighter grammars loaded only for the file kind opened (#16784) f8c6a37
- src/crew/runner.ts and src/crew/autonomy.ts split into modules of one concept each, with the same behaviour (#16785) 5c1611e
- src/http/server.ts hands each route family to its own small module, with the same answers (#16782) 6e40585
- 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
The look table no longer has its old (app_id, env, commit_oid, page, kind) key, and dark looks are now filed under their real page with theme dark. Step 1 is in the newest tag, v0.7.675, so the work could start. The new tests, test/schema-additive.test.ts, test/schema-migrations.test.ts and bun x tsc --noEmit pass, and gate.ts --explain reads 32 rules with none failing. One test in test/looks.test.ts fails, a real capture through chromium. It fails the same way without my change, and I did not investigate why.
What changed
- Migration
20261130140000-look-drops-old-keyrebuildslookwithout the old key, keepslook_theme_key, and recreates the threefront_epoch_look_*triggers. Everydark:row becomes its real page with themedark, sodark:narrow:/becomesnarrow:/. - Both ways filed: if a dark look exists both as
dark:/pand as/p, the newer taking wins. - Pin: the migration has its pin, and
test/schema-additive.test.tslists the rebuild inREBUILTwith the reason. src/core/looks.ts:recordLookno longer writes thedark:prefix.DARK_PREFIXis kept only in thegetLookfallback, with a comment saying it is for rows an older release still writes during the roll.getLooknow prefers the plain page over the prefixed one.- Tests are in
test/look-drops-old-key.test.ts:- The migration rewrites
dark:rows, including the narrow one. - A row filed both ways collapses to the newer one.
- Light and dark of the same page coexist under one page string.
- A
dark:row written after the migration still reads back as dark. recordLookwrites no prefix.
- The migration rewrites
Not done
NARROW_PREFIXand thekindCHECK (phone, desktop and thumb only) are untouched, as the issue says.DARK_PREFIXstays until no older release serves.- I reused existing code and did not run
scripts/similar.ts, since I wrote no new function; the migration follows the table-copy pattern of20261114010000-machine-sample-hourly.
Try it: bun test test/look-drops-old-key.test.ts test/look-theme-key.test.ts test/schema-additive.test.ts
🤖 Generated with Claude Code
The look table no longer has its old (app_id, env, commit_oid, page, kind) key, and dark looks are now filed under their real page with theme
dark. Step 1 is in the newest tag, v0.7.675, so the work could start. The new tests,test/schema-additive.test.ts,test/schema-migrations.test.tsandbun x tsc --noEmitpass, andgate.ts --explainreads 32 rules with none failing. One test intest/looks.test.tsfails, a real capture through chromium. It fails the same way without my change, and I did not investigate why.What changed
20261130140000-look-drops-old-keyrebuildslookwithout the old key, keepslook_theme_key, and recreates the threefront_epoch_look_*triggers. Everydark:row becomes its real page with themedark, sodark:narrow:/becomesnarrow:/.dark:/pand as/p, the newer taking wins.test/schema-additive.test.tslists the rebuild inREBUILTwith the reason.src/core/looks.ts:recordLookno longer writes thedark:prefix.DARK_PREFIXis kept only in thegetLookfallback, with a comment saying it is for rows an older release still writes during the roll.getLooknow prefers the plain page over the prefixed one.test/look-drops-old-key.test.ts:dark:rows, including the narrow one.dark:row written after the migration still reads back as dark.recordLookwrites no prefix.Not done
NARROW_PREFIXand thekindCHECK (phone, desktop and thumb only) are untouched, as the issue says.DARK_PREFIXstays until no older release serves.scripts/similar.ts, since I wrote no new function; the migration follows the table-copy pattern of20261114010000-machine-sample-hourly.Try it:
bun test test/look-drops-old-key.test.ts test/look-theme-key.test.ts test/schema-additive.test.ts🤖 Generated with Claude Code
Closes #16797