Skip to content

fix(memory): remove catalog canonicalization lint suppression - #174689

Merged
steipete merged 1 commit into
mainfrom
fix/ci-ui-context-lint-20261016
Oct 16, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-ui-context-lint-20261016

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Memory search schema admission added an oxc/no-map-spread suppression in e3457a5 (#174438), which makes the production suppression inventory fail on main (95 entries against 94).

Replace the table spread in custom-name canonicalization with the complete declared table fields. Names, SQL, columns and index names keep their existing transformations; strictness, rowid mode, foreign keys and triggers keep their original values. The supplied catalog remains unchanged. No schema, fingerprint, migration or runtime behavior change is intended, and the allowlist stays unchanged.

Validation:

  • Reproduced the exact extra inventory entry on main before editing.
  • pnpm test test/scripts/lint-suppressions.test.ts src/infra/database-engine/sqlite-memory-search-fragments.test.ts --maxWorkers=1: all 15 tests passed with Node.
  • Core types, targeted type-aware lint, formatting, and independent P2 review passed.

The missing-application-context transcript fixture repair is published separately on main; this PR changes only the memory catalog projection.

Project the declared table catalog fields explicitly when canonicalizing
custom memory-search table names. Preserve immutable input and all existing
fingerprint inputs without the map-spread suppression added by #174438.

The existing suppression inventory reproduces 95 vs 94 before this change.
All 12 memory-schema cases and three suppression-inventory tests pass.
@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@steipete
steipete marked this pull request as ready for review October 16, 2026 21:18
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T21:20:03.868977Z cfac7d1 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@steipete
steipete enabled auto-merge (squash) October 16, 2026 21:29
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces a table-object spread with explicit catalog fields so memory schema canonicalization needs no lint suppression.

Example: The production suppression inventory scans sqlite-memory-search-fragments.ts.

  • Before: The custom-name projection adds an oxc/no-map-spread suppression absent from the allowlist.
  • After: The projection preserves the same fingerprint inputs without that suppression.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small, complete repair with source-verified semantic equivalence and relevant reported validation; no actionable defect was found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored maintenance repair is outside the ordinary contributor proof gate; source inspection confirms equivalent fingerprint inputs, and the body reports focused native SQLite and inventory validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: Repository validation fails because memory-search canonicalization introduced an unallowlisted lint suppression.
Reason: The maintainer-authored repair restores the existing validation contract with no new option, API, or runtime policy.

Regression provenance

Regression provenance — verified: source commit e3457a592f0c by Peter Steinberger; canonical PR #174438 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a concrete suppression-inventory failure while preserving catalog fingerprint behavior, with no actionable code findings.

Priority: P2
Reviewed head: cfac7d105f6d7b99e7e5853a38c3c7809281f657

Before merge

None.

Findings

None.

Agent review details

How this fits together

SQLite memory-search admission supplies native catalog facts to this projection, which canonicalizes custom table names before comparing their fingerprint with generated schema expectations.

flowchart LR
  A[Memory search admission] --> B[Native SQLite catalog]
  B --> C[Custom name projection]
  C --> D[Catalog fingerprint]
  E[Generated schema fingerprint] --> F[Match decision]
  D --> F
Loading

Technical review

Best possible solution:

Land the explicit catalog projection while retaining the existing suppression allowlist and fingerprint contract.

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

The base suppression and exact-allowlist assertion establish the failure mechanism, consistent with the author's reported reproduction; no target code was executed during this read-only review.

Is this the best way to solve the issue?

Explicitly projecting all declared fields removes the offending operation without weakening validation, mutating the input, or changing fingerprint serialization.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Immutable custom-name catalog canonicalization keeps the original intent (e3457a5: Generated memory-search fingerprints canonicalize custom names without mutating supplied native catalog facts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit e3457a5 adds src/infra/database-engine/sqlite-memory-search-fragments.ts:141 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: e3457a592f0c; files: src/infra/database-engine/sqlite-memory-search-fragments.ts)

PR surface

Source +2. Total +2 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 4 2 +2
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 4 2 +2

Labels

Label changes:

  • add P2: Repairs a concrete repository validation failure with a narrow, behavior-preserving production change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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: Repairs a concrete repository validation failure with a narrow, behavior-preserving production change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 16, 2026, 5:33 PM ET / 21:33 UTC.

@steipete
steipete merged commit 4181838 into main Oct 16, 2026
205 of 207 checks passed
@steipete
steipete deleted the fix/ci-ui-context-lint-20261016 branch October 16, 2026 21:44
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash auto-merge.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
…aw#174689)

Project the declared table catalog fields explicitly when canonicalizing
custom memory-search table names. Preserve immutable input and all existing
fingerprint inputs without the map-spread suppression added by openclaw#174438.

The existing suppression inventory reproduces 95 vs 94 before this change.
All 12 memory-schema cases and three suppression-inventory tests pass.
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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

1 participant