Skip to content

fix(memory): share canonical SQLite FTS schemas on release branch - #187467

Merged
RomneyDa merged 2 commits into
release/2026.10.10from
beta5/sqlite-canonical-fts-20261029
Oct 29, 2026
Merged

RomneyDa merged 2 commits into
release/2026.10.10from
beta5/sqlite-canonical-fts-20261029

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Summary

Validation

  • Independent scoped source review: no P0–P2 source-code findings.
  • Current release-base owner tests: Node 87 passed; Bun 86 passed and one unchanged diagnostics-capability skip (covered on Node). Counts exclude duplicate reporter summaries.
  • Security/package-patch closure: 12 passed.
  • Changed-file SQLite design ratchet: 14 → 14; full-tree comparison against the current release base: 334 → 332.
  • DDL parity/live execution, scoped types, supported core typed lint and format passed.

Scope and limits

Two production files and the PR wrapper source inventory change. The inventory now includes the canonical FTS module required by extracted wrapper runtime imports. This PR does not include the separately owned #181927 or Windows helper repair. Full combined-source CI and exact Q=C release qualification remain required; this is not publication approval or a substitute for native-platform validation.

Reuse the existing schema owner for lazy FTS creation and recovery, preserving tokenizer and custom-table behavior while eliminating duplicated design constructs.

Co-authored-by: RomneyDa <[email protected]>
@clawsweeper

clawsweeper Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 29, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 29, 2026
@clawsweeper

clawsweeper Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes memory index creation and recovery share canonical SQLite FTS builders and includes their module in extracted PR wrappers.

Example: Create custom body index chunks_fts with the trigram tokenizer.

  • Before: Memory initialization constructs the SQL separately from recovery's canonical definitions.
  • After: Both paths use the same builder while preserving the table name, tokenizer, and resulting schema.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is source-correct with a verified no-migration case; supplied validation is chiefly test evidence, and broad CI is still running.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored internal refactor is outside the ordinary contributor proof gate; the body reports owner tests and DDL execution, while source inspection confirms equivalent SQL rather than a new runtime behavior.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Release validation is blocked by duplicated SQLite schema construction.
Reason: The maintainer-authored direction reuses an existing owner, preserves SQL behavior, and supplies the required wrapper dependency without broadening the release backport.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored release adaptation consolidates equivalent FTS definitions, and no actionable source defect was found.

Priority: P2
Reviewed head: 44d7ac7c2c1173687e04c94e83515187dddb08ce

Before merge

None.

Findings

None.

Agent review details

How this fits together

Memory initialization supplies table names and tokenizer clauses to the database schema owner, which produces FTS DDL also consumed by recovery classification.

flowchart TD
  A[Memory initialization] --> B[Canonical FTS builders]
  C[Recovery schema definitions] --> B
  B --> D[SQLite FTS schemas]
  A --> E[Existing reconciliation and triggers]
  E --> D
  F[PR wrapper inventory] --> B
Loading

Technical review

Best possible solution:

Retain the shared leaf builders and qualify this focused adaptation with the combined release candidate.

Do we have a high-confidence way to reproduce the issue?

No runtime defect is claimed; source inspection confirms duplicate DDL ownership, and the reviewed head's baseline-ratchet check passes.

Is this the best way to solve the issue?

Sharing the existing dependency-free schema owner is a focused solution that preserves branch-specific contracts and avoids scanner exemptions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against cdff9b02c81b.

Provenance checked

  • Memory FTS creation and reconciliation keeps the original intent (b148150: Reconcile derived indexes against canonical schemas while preserving authoritative memory rows and rejecting unsafe aliases.)
  • Recovery FTS schema definitions keeps the original intent (9949a3e: Recognize exact deployed FTS schemas during tokenizer-change recovery; the actual upstream rationale is documented in the merged recovery PR rather than the unrelated PR association supplied for this release commit.)
  • Extracted wrapper source inventory keeps the original intent (1edc42c: Retain runtime database dependencies in extracted wrappers; the added entry extends that existing closure.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vito Cappello: Raw commit 4ab6862 adds packages/memory-host-sdk/src/host/memory-schema-fts.ts:4 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 4ab686220f91; files: packages/memory-host-sdk/src/host/memory-schema-fts.ts)

PR surface

Source +11, Other +1. Total +12 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 28 17 +11
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 3 29 17 +12

Labels

Label changes:

  • add P2: This addresses a release-branch design-ratchet failure through a narrow internal consolidation without changing user-facing behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This addresses a release-branch design-ratchet failure through a narrow internal consolidation without changing user-facing behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 29, 2026, 4:01 AM ET / 08:01 UTC.

@RomneyDa
RomneyDa merged commit ecb6fbe into release/2026.10.10 Oct 29, 2026
144 of 145 checks passed
@RomneyDa
RomneyDa deleted the beta5/sqlite-canonical-fts-20261029 branch October 29, 2026 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants