Public: anyone can read this; the crew can change it.

Drop the retired keeper_beat table; clearFires stops naming feature_schedule_seen (#16268) #16359

opened this From outside

Check · Review · Land · Live — The access wall holds it for a person to decide: a trusted source's pull touches a path a trusted source's work may not change alone; a trusted source's pull touches release machinery. Allow it (merge) or send it back. Next: person, the access wall holds it for a person to decide: a trusted source's pull touches a path a trusted source's work may not change alone; a trusted source's pull touches release machinery. Allow it (merge) or send it back.

Green for 5 days, not landed: it waits for a person: the access wall holds it for a person to decide: a trusted source's pull touches a path a trusted source's work may not change alone; a trusted source's pull touches release machinery. Allow it (merge) or send it back. To unblock: a person who writes the repository merges it or requests changes.

Ready to land

grokbot/forge:fix/pinned-forge-confirm-sentences → main 193 commits fork

Combined with main

The preview is built from combined/16359 (052be587d4): main merged into this pull's head. Merging lands that branch.

The checks line says which commit the check ran on.

Review

Sign in to review this change.
5 files changed +16 −4
scripts/unread-tables-allow.json −1
@@ -1,6 +1,5 @@
11 [
22 "feature_schedule_seen",
3 "keeper_beat",
43 "proof_run",
54 "sentinel_kept",
65 "week_reading"
src/core/feature_fires.ts +3 −3
@@ -1,6 +1,6 @@
11 /**
2 * What the forge last did for each tool of an absorbed app (`feature_fire`), the last 30 runs of
3 * each (`feature_run`), and the schedule each tool was first seen with (`feature_schedule_seen`).
2 * What the forge last did for each tool of an absorbed app (`feature_fire`) and the last 30 runs of
3 * each (`feature_run`).
44 */
55
66 import type { Database } from "bun:sqlite";
@@ -66,5 +66,5 @@ export function runHistory(db: Database, appId: string): Run[] {
6666
6767 /** Forget the app's fires: it is no longer absorbed, or no longer exists. */
6868 export function clearFires(db: Database, appId: string): void {
69 for (const t of ["feature_fire", "feature_run", "feature_schedule_seen"]) db.query(`DELETE FROM ${t} WHERE app_id = ?1`).run(appId);
69 for (const t of ["feature_fire", "feature_run"]) db.query(`DELETE FROM ${t} WHERE app_id = ?1`).run(appId);
7070 }
src/core/migration-pins/20261124235500-drop-keeper-beat.pin added +1
@@ -0,0 +1,1 @@
1 a0efc8e13013640ea0015e5cc2518504238c6adf86eae916d3a7015224fc180d
src/core/migrations/20261124235500-drop-keeper-beat.ts added +8
@@ -0,0 +1,8 @@
1 // The release tick's one-row heartbeat (#11794), replaced by keeper_beat_tick in
2 // bb6145ca (#11822), first shipped in v0.7.551; nothing since reads or writes
3 // keeper_beat (#16268). Its last row was copied into keeper_beat_tick then.
4 // Not additive, on purpose: test/schema-additive.test.ts names it as retired
5 // and holds the tree to never naming it again.
6 export default `
7 DROP TABLE IF EXISTS keeper_beat;
8 `;
test/schema-additive.test.ts +4
@@ -150,6 +150,10 @@ const RETIRED: Record<string, { readonly drops: readonly string[]; readonly sinc
150150 drops: ["flow_only_watch", "flow_only"],
151151 since: "d34910d4 (#7771), shipped from v0.7.302 (#8731)",
152152 },
153 "20261124235500-drop-keeper-beat": {
154 drops: ["keeper_beat"],
155 since: "bb6145ca (#11822), shipped from v0.7.551 (#16268)",
156 },
153157 };
154158
155159 /**

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs