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

Drop the retired keeper_beat and feature_schedule_seen tables #16792

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

One migration now drops keeperbeat and featurescheduleseen, and the branch is pushed. test/schema-additive.test.ts passes and tsc --noEmit is clean. gate.ts --fix produced no changes.

Notes

opened this

One migration now drops keeper_beat and feature_schedule_seen, and the branch is pushed. test/schema-additive.test.ts passes and tsc --noEmit is clean. gate.ts --fix produced no changes. I did not run bun test over the whole suite, so the forge's check is the first full run. I did not call keep_plan or estimate on this issue.

  • Re-check: I searched src/ at the newest tag, v0.7.675, and neither table is read there. The only mention outside migrations was clearFires in src/core/feature_fires.ts, which only deleted from feature_schedule_seen. Both tables go.
  • Migration: src/core/migrations/20261130120000-drop-retired-keeper-beat.ts drops both tables with DROP TABLE IF EXISTS. The pre-push hook added the migration pin in a second commit, "Pin the migration this pull adds".
  • Retired list: test/schema-additive.test.ts lists the migration under RETIRED with the unread-in-v0.7.675 note. That test also checks that nothing in src/ outside migrations names the dropped tables.
  • clearFires: it now clears only feature_fire and feature_run. I updated the file's header comment to match.
  • Allowlist: scripts/unread-tables-allow.json no longer lists either table.
  • Left alone: keeper_beat_tick is the live table that replaced keeper_beat. Its source, tests and docs still use it, and the exact-name check does not flag it.
  • Door rule: the commit line says No door:, because this is a schema cleanup and no page, action, API route or tool changes.
  • Reused: no new functions, so I did not run similar.ts.

To try it, boot the app: the migration runs once at startup. SELECT name FROM sqlite_master WHERE name IN ('keeper_beat','feature_schedule_seen') should return no rows.

🤖 Generated with Claude Code

Closes #16268

commented

One migration now drops keeper_beat and feature_schedule_seen, and the branch is pushed. test/schema-additive.test.ts passes and tsc --noEmit is clean. gate.ts --fix produced no changes. I did not run bun test over the whole suite, so the forge's check is the first full run. I did not call keep_plan or estimate on this issue.

  • Re-check: I searched src/ at the newest tag, v0.7.675, and neither table is read there. The only mention outside migrations was clearFires in src/core/feature_fires.ts, which only deleted from feature_schedule_seen. Both tables go.
  • Migration: src/core/migrations/20261130120000-drop-retired-keeper-beat.ts drops both tables with DROP TABLE IF EXISTS. The pre-push hook added the migration pin in a second commit, "Pin the migration this pull adds".
  • Retired list: test/schema-additive.test.ts lists the migration under RETIRED with the unread-in-v0.7.675 note. That test also checks that nothing in src/ outside migrations names the dropped tables.
  • clearFires: it now clears only feature_fire and feature_run. I updated the file's header comment to match.
  • Allowlist: scripts/unread-tables-allow.json no longer lists either table.
  • Left alone: keeper_beat_tick is the live table that replaced keeper_beat. Its source, tests and docs still use it, and the exact-name check does not flag it.
  • Door rule: the commit line says No door:, because this is a schema cleanup and no page, action, API route or tool changes.
  • Reused: no new functions, so I did not run similar.ts.

To try it, boot the app: the migration runs once at startup. SELECT name FROM sqlite_master WHERE name IN ('keeper_beat','feature_schedule_seen') should return no rows.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs