Repository navigation
feat: warn on SQLite schema changes - #1252
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
| path && | ||
| !isDocsPath(path) && | ||
| !/(^|\/)(?:__tests__|examples?|fixtures?|test|tests)(?:\/|$)/i.test(path) && | ||
| !/\.(?:spec|test)\.[^/]+$/i.test(path), |
|
Codex review: needs real behavior proof before merge. Reviewed August 26, 2026, 7:11 PM ET / 23:11 UTC. ClawSweeper reviewWhat this changesAdds SQLite table/schema detection for OpenClaw pull-request diffs and renders a prominent warning in the generated ClawSweeper review comment. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 6 items remain Keep this PR open: the new filename classifier introduces an input-controlled polynomial regular expression, and it silently treats truncated pull-file lists as a clean negative result. The PR body provides test and CI claims but no after-fix real-behavior artifact. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherClawSweeper classifies GitHub pull-file patches, stores the result in a review report, and renders that report into a maintainer-facing comment. This PR adds a SQLite-specific classifier alongside the existing persistent-data-model policy. flowchart LR
A[Pull request file patches] --> B[SQLite schema classifier]
B --> C[Review report front matter]
C --> D[Comment renderer]
D --> E[Maintainer warning]
B --> F[Policy tests]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The added filename regex has a concrete polynomial-time path on uncontrolled pull-file metadata. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the specialized warning, but use linear filename parsing and explicitly represent incomplete pull-file inspection before publishing a definitive SQLite warning state. Do we have a high-confidence way to reproduce the issue? Not applicable as a bug report: this PR proposes a new classifier, and source inspection directly identifies its unsafe regex and its missing truncated-list branch. Is this the best way to solve the issue? No: the SQLite-specific presentation is a reasonable extension of the existing data-model warning, but it needs bounded matching and an explicit incomplete-scan outcome before it is safe to use. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against afe976209aa5. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
Acceptance criteria:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
Sample ClawSweeper comment
Warning
SQLite table change
This PR modifies persisted SQLite tables in
packages/memory-host-sdk/src/host/memory-schema-base.ts. Prefer a design that avoids changing persisted SQLite tables. If the change is necessary, verify migration and upgrade compatibility against an existing database before merge.PRs without a detected SQLite table/schema change render no SQLite callout.
Test plan
pnpm run build && node --test test/pr-surface-policy.test.tspnpm run check(3,743 tests passed)