Skip to content

fix(state): declare apns_registration_tombstones STRICT#108850

Merged
steipete merged 1 commit into
mainfrom
fix/apns-tombstones-strict-schema
Jul 16, 2026
Merged

fix(state): declare apns_registration_tombstones STRICT#108850
steipete merged 1 commit into
mainfrom
fix/apns-tombstones-strict-schema

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Main is broken: gateway startup migration throws Canonical SQLite schema contains non-STRICT tables: apns_registration_tombstones, failing every gateway-boot test across the node/contract/QA-smoke shards.

Why This Change Was Made

src/infra/sqlite-strict.ts requires every OpenClaw-owned canonical table to be declared STRICT (no allowlist). apns_registration_tombstones, added in #108543, was declared without STRICT while its sibling apns_registrations (and node_host_config, etc.) are STRICT. This regenerates the canonical schema with ) STRICT;.

User Impact

Unblocks CI for all open PRs and restores clean gateway startup. No behavior change beyond the table now enforcing STRICT column typing, consistent with every other canonical table.

Evidence

  • src/state/openclaw-state-schema.sql + regenerated openclaw-state-schema.generated.ts now declare the table STRICT.
  • node scripts/run-vitest.mjs src/infra/sqlite-strict.test.ts → 14/14 passed.
  • node scripts/generate-kysely-types.mjs --verify clean (generated matches source).

The canonical SQLite schema requires every OpenClaw-owned table to be STRICT
(src/infra/sqlite-strict.ts). apns_registration_tombstones (added in #108543)
was declared without STRICT, so gateway startup migration throws "Canonical
SQLite schema contains non-STRICT tables" and every gateway-boot test fails.
Match the sibling apns_registrations table.
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 16, 2026
@steipete
steipete merged commit 91f57a3 into main Jul 16, 2026
89 of 91 checks passed
@steipete
steipete deleted the fix/apns-tombstones-strict-schema branch July 16, 2026 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant