Repository navigation
fix(tooling): separate deprecated SQLite compatibility from live T1 debt - #169610
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR separates verified deprecated SQLite compatibility calls from live T1 debt and rejects bundled references to those APIs. Example: Inspect the reported source snapshot containing 607 T1 call expressions.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides a useful, owner-backed accounting correction that current main lacks, with no actionable regression found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherRepository tooling reads working-tree, staged, or committed source snapshots and produces SQLite migration inventories and CI ratchet results. flowchart TD
A[Source snapshot] --> B[Compatibility symbol scan]
A --> C[SQLite call parser]
B --> D[Tier classification]
C --> D
D --> E[Generated inventory]
D --> F[Head and baseline ratchet]
Technical reviewBest possible solution: Use the shared classifier for reviewed deprecated boundaries while preserving released APIs and conservative T1 accounting elsewhere. Do we have a high-confidence way to reproduce the issue? Current-main source includes the two deprecated implementations in raw T1 accounting; the PR reports their separation on identical source, and no target code was executed during this review. Is this the best way to solve the issue? A shared symbol-backed classifier consistently handles current, staged, and baseline snapshots while the narrow registry avoids relabeling mixed kernels without caller evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 952d3ac4dcb4. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +158, Docs +41, Other +309. Total +508 across 7 files. Added test files: 1. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (1 earlier review cycle)
Reviewed October 12, 2026, 1:36 AM ET / 05:36 UTC (Revision 2). |
…ebt (openclaw#169610) Distinguish proven deprecated-only SQLite compatibility from live or unproven T1 sites. Reject bundled runtime references to registered compatibility APIs, preserving released SDK implementations until the next major. Add symbol-graph and ratchet regressions and document the SDK-major removal path. No product or runtime SQL changes.
What Problem This Solves
The SQLite worker inventory kept counting deprecated synchronous SDK compatibility implementations as live T1 debt after bundled callers migrated, so its headline did not reliably show the remaining cutover work.
User Impact
No runtime behavior, SQL, schema, SDK export, or update behavior changes. Released synchronous APIs remain available. The inventory now distinguishes conservatively live/unproven T1 from mechanically verified deprecated-only T1-compat.
Why This Change Was Made
A small reviewed operation registry plus TypeScript symbol resolution checks the actual source snapshot, including import/reexport aliases, SDK subpaths, namespace access, dynamic imports, and escaped callbacks. A bundled value reference fails the existing worker ratchet even when another SQL call is removed in the same patch. Missing deprecation markers fail; deleting a retired API removes its compatibility count. Type-only uses and pure reexports preserve the released contract.
The initial registry deliberately covers only
executeSqliteQueryTakeFirstSyncLegacyanddeleteSessionUpstreamLink. The general query wrapper still has bundled migration/diagnostic callers, and returned-method families or mixed kernels need stronger boundary proof; these remain T1. This replaces the ratchet's ad hoc forwarding allowance. The worker-access guide documents removal at the next Plugin SDK major with replacement release notes.Evidence
On integrated main baseline
cde0f8844503f332dcdc1aa1a5453a9a7294d6b8, the old accounting versus the new classifier on the same source reports:The two compatibility expressions are one per listed API. The new classifier applied identically to both sides reports T1
605 → 605, T1-compat2 → 2. This is a classification correction, not a query saving. No product paths or ordinary-path authority checks are removed; accepted runtime edge cases are unchanged. Warmed statements/requests and MAIN statements are unchanged by construction; the runtime SQL harness is not used for this tooling-only lane.pnpm test test/scripts/check-database-worker-ratchet.test.ts test/scripts/database-worker-compat.test.ts --maxWorkers=1). Coverage includes caller reintroduction without total growth, aliases, namespaces, dynamic imports/rest/computed bindings, escaped callbacks, type-only references, deprecation removal, API deletion, and staged snapshots. CI owns the final-head test run under the coordinator's relaxed testing v6 policy.git diff --check. Earlier integrated proof passed inventory verification, Madge (0 cycles), export-name guard, script types, T1 and dialect ratchets. The local root-type runner exited 137 after all four partitions reported passing; final-head CI owns the complete type gates.sort→toSorted), now fixed. Its other type failures came from main's missingOptionCardexport; the fix and the coordinator's known-clean typecheck baseline are now integrated. No rerun of the old head was requested.agentRunHasVisibleReply,retireOpenClawStateReadConnectionAfterCorruption,ApprovalPage,CustodianPage,QuestionPage(production scan), andSkillWorkshopViewProps. These are inherited, not exclusions added by this PR.Remote capacity was full for more than 33 minutes. Earlier validation used the then-authorized local proof-slot fallback after the 1-minute load average fell to 47.88. No remote lease was created; the slot is released. Final validation follows relaxed testing v6 (local basic lint, PR CI).
Final head
efe7760ca7d9eac4c272b338903bc9c263d22929: CI run 38208282861 passed, including all production/test type jobs, lint jobs, source contracts, guard jobs, docs, and the required CI gate. The native workflow was attempted but hit an orphaned lock and missing Git objects in its scratch clone; both locks were recovered, with no merge submitted. Landing uses the campaign-authorized SHA-pinned REST squash fallback.