Repository navigation
fix(ci): allow SQLite schema contract inspection - #105591
Merged
Merged
Conversation
steipete
force-pushed
the
codex/fix-sqlite-schema-contract-guard
branch
from
July 12, 2026 18:18
e8e065e to
f425474
Compare
Contributor
|
Codex review: stale review; fresh review needed. Summary Next step |
Contributor
Author
|
Land-ready proof for
No runtime, config, documentation, or changelog surface changes. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
The architecture CI lane on current
mainfails after #105583 because the new SQLite schema-contract inspector performs intentional rawnode:sqlitemetadata queries without being listed as an approved SQLite boundary.Why This Change Was Made
Add
src/infra/sqlite-schema-contract.tsto the existing lifecycle/schema/transaction/pragma allowlist group. This is the narrow owner-boundary fix: the module must execute generated DDL in an in-memory database and inspect SQLite-native schema metadata, while the guard continues rejecting raw SQLite access everywhere else.User Impact
No runtime behavior changes. Architecture CI accepts the intentional schema-inspection boundary introduced by #105583 and remains fail-closed for other raw SQLite access.
Evidence
main:node scripts/check-kysely-guardrails.mjsreported eight violations insrc/infra/sqlite-schema-contract.ts.tbx_01kxbrk5sqe3241yn49fkn65fa:pnpm check:architecturepassed, including import-cycle, deprecated API/JSDoc, Kysely type generation, Kysely guardrail, and database-first legacy-store checks. Run: https://github.com/openclaw/openclaw/actions/runs/29203497303patch is correct, confidence 0.98).git diff --check: passed.AI-assisted change.