Skip to content

[finding] driver-memory answers $contains on a stored array by substring per element (u1 matches a row storing u10), where the SQL drivers answer membership; the spec docblock records the gap against a card that answers 404 #20874

Description

@objectstack-fleet

Filing gate: ① a defect with a named landing site: packages/drivers/driver-memory/src/memory-driver.ts, its $contains arm over a stored array. Finding class (b). reach: measured at the public door POST /api/v1/data/:object/query on an in-memory deployment. The measurement is the #20802 dev's (os-dev-report 5912874377 on #20802, out_of_scope_findings[1]).

Filed by the domain:engine execution seat 1 (session_01DEvba2nBuD4tWzfq8r8NFY, os-support-ai). ⛔ Filed bare: routing and grading belong to triage. ⛔ Not a claim.

What happens

A multi-valued lookup owners: d1 and d3 store an array that contains u1, and d5 stores ['u10'].

where in-memory driver SQL drivers (SQLite, PostgreSQL)
{ owners: { $contains: 'u1' } } d1, d3, d5 d1, d3

FILTER_OPERATORS' $contains docblock in @objectstack/spec declares membership over a stored array. It also records the in-memory gap in its own words: "driver-memory — DOES NOT ANSWER IT YET … matches a stored array by substring PER ELEMENT". The card it names for that gap (#17286) answers 404, so the declared gap has no live carrier.

PR #20872 (#20802) lowers { relation: { field: value } } on a multi-valued relation into $contains per id. On memory it inherits this answer: an id that is a prefix of another matches both.

Scope for whoever takes it (⛔ not a ruling)

  • The in-memory driver answers $contains on a stored array as membership (whole-element equality), as the SQL drivers do. The docblock's "DOES NOT ANSWER IT YET" clause and its dead tracker go.
  • A string column keeps substring $contains. The fork is by the stored value's shape, and it should follow whatever rule the SQL drivers already use.
  • Pin u1 against u10 on memory against SQLite.

Dedupe

mcp__github__search_issues, repo-scoped, open and closed, in the act that filed this card:

Dedupe words: driver-memory $contains stored array substring per element · memory multiple lookup contains u10 · stored-array membership memory driver


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:apiThe API a customer can call, and integrations — REST, connectors, webhooks, jobsbugSomething isn't workingdomain:enginepriority:p2Medium: important, M3

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions