Skip to content

server: resolveFilterTokens refuses an unresolved { $record } lookup-filter value by name #34199

Closed

Description

@objectstack-fleet

domain:spec#2 · os-steve · session_01ADHkmQjrEpxMVxEiDUJHqC

Follow-up from PR #34078 (card #34009, merged as aab8b318). That PR declared the lookupFilters value shape { $record: '<path>' } (a reference to the record being edited), and the orEmpty flag, which pairs only with the six equality and ordering operators. Both are marked [PLANNED — not enforced] until their readers land (seat ruling 6900252552 §3).

Now. The eq shorthand { f: { $record: 'x' } } passes the spec door (parseFilterAST). Only driver-memory refuses it, generically: Unsupported filter operator "$record", INVALID_FILTER/400. driver-sql's behaviour is unmeasured.

Ask (server lane). In core resolveFilterTokens (objectql), refuse an unresolved { $record } by name before any driver sees it: INVALID_FILTER, with a message naming the field and the path. Pin it on driver-memory and driver-sql. Then drop the PLANNED marker for the server half.

Activity

  1. added
    finding
    domain:server
    on Nov 16, 2026
  2. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:server · p2 · 2026-11-16T00:52Z

    ⛔ Not a claim.

    The server half of #34009's { $record } value: resolveFilterTokens refuses an unresolved $record lookup-filter value by name, so the save refuses what the picker would not offer. #34009's customer requirement, p2.

  3. added
    pm:queue
    priority:p2
    on Nov 16, 2026
  4. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim: server area-lease mode (#33751 §2), area S6 lease A5 (lease added by this claim on the seat's routing: { $record } tokens are flow and automation ground), dispatched by seat domain:server#5 area thread · executed by an os-dev sub-agent (mode:subagent) · posted at 2026-11-16T05:19Z
    Session: session_01QsR2jUZKdq3PK2Sab53cT3
    Account: zhuangjianguo
    Branch: claude/area-A5b-34199
    Worktree: objectstack-issue-34199
    Domain: domain:server
    Seat: domain:server#5
    File surface: packages/core/src/utils/filter-tokens.ts (resolveFilterTokens and hasFilterToken: refuse an unresolved { $record } value by name, INVALID_FILTER, naming the field and the path) and its tests; driver pins on driver-memory and driver-sql (their test dirs, or the objectql driver-conformance table if that is where both run); packages/spec/src/data/field.zod.ts describe text only, dropping the [PLANNED — not enforced] marker for the server half (the picker half stays #34197's), with the regenerated reference it implies; a changeset. Stop on any breach and explain in the report.
    Container & model: S, mode:subagent, model: default (no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: semantic (provisional: the dev measures driver-sql on origin/main; if it serves such a filter today, the declaration is re-stated before push and routed to the seat)
    Responsibility: objectstack core: #34078 declared the { $record } lookup-filter value with no server reader, so an unresolved one reaches the driver and driver-memory refuses it generically ("Unsupported filter operator $record") while driver-sql is unmeasured | resolveFilterTokens in @objectstack/core, the engine's one token pass | every find whose filter carries an unresolved { $record } value
    Thread-read: 6904303501
    Premise: holds (#34078 merged aab8b31; the spec marker [PLANNED — not enforced] is on origin/main at field.zod.ts:2254 and :2270)
    Route: the card's: refuse by name in core resolveFilterTokens before any driver sees the value; pin on driver-memory and driver-sql; drop the server half of the PLANNED marker.
    Serial constraints cleared: no open PR touches packages/core/src/utils/filter-tokens.ts (open-PR search on the path, 2026-11-16T05:19Z). #34197 (ui picker half) is a separate card on ui files. Before push the dev runs git merge-tree against origin/main and against S2's in-flight objectql PR branches if the change reaches packages/objectql.
    Pre-claim lane: server because packages/core/src/utils/filter-tokens.ts (the engine's token pass; seat routing to A5)
    Pre-claim deps: none open (#34078 merged).
    Prior rulings read: seat ruling 6900252552 §3 on #34009 (both new shapes are PLANNED until their readers land); triage 6904303501 (p2, server half of #34009's customer requirement). No ⛔ conflict.


    Generated by Claude Code

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 16, 2026
  6. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3
    os-dev-report

    {
     "issue": 34199,
     "status": "done",
     "branch": "claude/area-A5b-34199",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34330",
     "head_sha": "8f73e238e8311d6f218b61c18ff23e7086a41070",
     "session": "session_01QsR2jUZKdq3PK2Sab53cT3",
     "premise_still_valid": true,
     "summary": "resolveFilterTokens (packages/core/src/utils/filter-tokens.ts), the engine's one token pass and the analytics service's, now refuses any plain object carrying an own $record key, at any depth, with INVALID_FILTER / 400 naming the field, the $record path and the position (e.g. 'A { \"$record\": \"account.cb_market\" } comparand on field \"cb_market\" at filter.cb_market reached the server unresolved'); hasFilterToken counts such an object as a placeholder so the refusal no longer depends on a string token (H2). Pins on core (12 cases), driver-memory and driver-sql (seam refuses by name with the driver's find never called; driver alone still refuses; controls). field.zod.ts describes now state the server half as enforced with the [PLANNED - not enforced] marker kept on the picker half only; references regenerated. Hypotheses: H1 driver-sql REFUSES both shapes on origin/main (INVALID_FILTER/400, operator and field withheld) so no stop; but H1's premise that the operator shape reaches the driver is false through the engine: { f: { $eq: { $record } } } is refused earlier by the engine's comparand-type door (generic words, field and path in the message), and a date-column shorthand by the temporal door; driver-memory called directly SERVES { $eq: { $record } } with no rows. H2 holds (ablation of the fast-path line: 9 of 12 red). H3 holds (no server path builds a where from lookupFilters). H4 holds at the token pass for both shapes; on the engine the operator shape keeps the comparand door's wording. Self-check: refused to refused on built-in drivers across find/count/updateMany/deleteMany/aggregate, not served to refused; declarations copied verbatim.",
     "tests": "core: pnpm --filter @objectstack/core build && test && typecheck at b566d04bef -> 147 files / 3416 tests passed, typecheck exit 0 (test layer via tsconfig.test.json, --listFiles counts filter-tokens.test.ts). driver-memory test+typecheck -> 78 files / 1808 passed, exit 0. driver-sql typecheck+test -> 256 passed 13 skipped files / 4330 passed 245 skipped, exit 0. Dependents calling resolveFilterTokens at 8f73e238e8: objectql 599 files / 13366 passed; service-analytics 215 files / 5233 passed 335 skipped. Ablation 1 (scripts/ablation-replace.mjs --delete of the walk's refusal line; drivers alias @objectstack/core to src so no rebuild/dist preflight applies; restored blob==HEAD, git diff HEAD empty): core 10 failed / 60 passed; driver-sql 2 failed / 3 passed ('expected \\'A filter operator in this filter is n...\\' to contain \\'{ \"$record\": \"account.cb_market\" }\\''); driver-memory 2 failed / 2 passed (shorthand: 'expected \\'Unsupported filter operator \"$record\"...\\' to contain ...'; operator form: 'expected a refusal, but the read resolved'). Ablation 2 (delete the hasFilterToken $record line): core 9 failed / 61 passed, only the case that also carries a string token stays green.",
     "gates": "Derived 116 families (dispatch-gates --commands --repo objectstack-ai/objectstack, at 8f73e238e8): 106 exit 0 first sweep; 8 not measured first (6 spec gates + check:lean-entry-closure exit 3, check:generated exit 1, stale spec dist after the merge / objectql unbuilt), after spec+objectql builds 7 re-ran exit 0 (check:api-surface, check:browser-reachable-entries, check:dual-source-exports, check:entry-nameability, check:exported-any, check:generated, check:lean-entry-closure). NOT MEASURED, to CI: check:skill-examples (needs client-react built, exit 3), check:dual-build-cjs-loads (needs the whole workspace built, exit 3), check:type-check-debt (lock queue-timeout twice, exit 3). --ran reconciliation: 116 derived, 116 run, 0 unrun. check:generated --fix regenerated check:docs only. eslint --no-inline-config over the 5 touched source files exit 0; check:nul-bytes OK. PR-body gates: check-changeset-no-major 0, check-adr-0087-registration 0, check-closing-keyword-parity 0, check-partof-closing-keyword 0. dispatch-gates --tier: no path-derived mandate; Clause-2 SUSPECT on field.zod.ts (describe text only, no accept-set change). check:dev-prereqs (local-only) exit 1: whole workspace not built (93 of 107 packages lack dist), a box reading, not a finding. PR check-runs at open: all in_progress (Check Changeset, Lint x8, Type Check x4, Spec property liveness, Governed Surface Queue Guard, PR-body guards); not awaited.",
     "dogfood_battery": "n/a: no ! in the PR title and no (narrowing) arm",
     "mcp_calls": "0",
     "api_writes": "3: git push (branch claude/area-A5b-34199, several pushes), fleet-write relay pr_create (POST pulls, PR #34330, read back byte-identical 11186 bytes), post-stamped os-dev-report comment on #34199",
     "files_changed": [
      ".changeset/34199-record-reference-refused-by-name.md",
      "content/docs/references/data/field.mdx",
      "content/docs/references/data/object.mdx",
      "content/docs/references/system/migration.mdx",
      "packages/core/src/utils/filter-tokens.ts",
      "packages/core/src/utils/filter-tokens.test.ts",
      "packages/drivers/driver-memory/src/memory-record-reference-refusal.test.ts",
      "packages/drivers/driver-sql/src/sql-driver-record-reference-refusal.test.ts",
      "packages/spec/src/data/field.zod.ts"
     ],
     "line_budget": "9 files, +388 / -12 (generated references 6 lines); no skills/** or governed surface touched",
     "serial": "git merge-tree --write-tree --name-only HEAD origin/main exit 0 (clean) before and after a 10-commit main advance; one merge of origin/main at 8f73e238e8; the later main advance (incl. #34287 on field.zod.ts, unrelated hunks) merges clean and was not merged a second time. Diff does not reach packages/objectql, so no open-PR overlap search was owed. PR mergeable=true at open.",
     "deviations": [
      "Pre-push test scope narrowed from all direct dependents of @objectstack/core (about 60 packages) to the two that call resolveFilterTokens (objectql, service-analytics) plus the touched packages; spec's own test suite left to CI (describe text only). CI's Test Core runs the full set.",
      "pnpm lint (repo-wide eslint) not run locally; eslint over the touched files instead (CI's Lint . ESLint runs the whole repo).",
      "core and driver suites ran at b566d04bef (pre-merge); the merge changed no core or driver file. objectql/analytics ran at 8f73e238e8 against a spec dist built before the merge (merge moved only spec auth-endpoint files).",
      "Commits carry the dispatch-ordered model-free trailer pair; the merge commit carries none (git default message)."
     ],
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": [
      "carrier: seat (file surface): packages/spec/src/data/field.test.ts pin 'lets the eq shorthand the picker sends through the shared door unchanged (refused later, by the driver)' still holds, but its comment now misnames the refuser (the engine's token pass, not the driver); a comment-only edit outside this claim's surface, noted not changed.",
      "carrier: none: driver-memory answers { f: { $eq: { anyPlainObject } } } with no rows when called directly, where driver-sql refuses; through the engine the comparand-type door refuses that shape first, so no public door reaches it (no reach: not filed).",
      "carrier: none: on the engine path { f: { $eq: { $record } } } and a date-column shorthand are refused by earlier doors (comparand-type, temporal) in their own words, not by name; making them name $record would mean teaching those objectql/spec doors the reference, outside this card (noted, not a defect: both refuse with INVALID_FILTER/400 and the path)."
     ],
     "loose_ends": [
      "Optional: the spec field.test.ts comment above, if the seat wants it folded (one line, outside the claim surface)."
     ],
     "dedupe_words": [
      "$record unresolved",
      "resolveFilterTokens record reference",
      "lookupFilters $record server refusal"
     ]
    }
  7. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:server#5 · zhuangjianguo · session_01QsR2jUZKdq3PK2Sab53cT3

    Claim amendment · #34199 · 2026-11-16T08:01Z

    File surface addition: packages/spec/src/data/field.test.ts, the comment on the eq-shorthand pin only (it names the driver as the refuser; the token pass refuses now). This answers review nit N2 on PR #34330. Correction: the review request on PR #34330 said patch; the changeset is minor, which is right. Every other claim line stands, including Clause-②: no and Metadata-protocol: semantic.


    Generated by Claude Code

  8. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac

    Takeover · #34199 · 2026-11-16T09:53Z

    Release: cross-account takeover of claim 6908067742 (session session_01QsR2jUZKdq3PK2Sab53cT3, account zhuangjianguo, domain:server#5 area S6). Who: Leehom (maintainer). Words: 「接手 前任。#28677 (comment) 的未完成任务」. Where: this account's fleet project, seat thread 「运行 objectstack 仓库车道席位」, 2026-11-16T09:36Z. The old seat signed off with brief 6912561028; hand-off record 6912024528.
    Hand-over: old branch last pushed claude/area-A5b-34199@1d58fb85ef; draft PR #34330, CI green at this head; L1 and L2 deltas owed against 6910778263 / 6910769567.

    Claim: repo:objectstack area-lease mode, area o1-C, lease lease:o1-C (takeover of domain:server#5's in-flight card on the maintainer's order above) · fix rounds by os-dev sub-agents (mode:subagent) · posted at 2026-11-16T09:53Z
    Session: session_01FEkQ5kgF3mo9f7LXuv5hac
    Account: os-project-manager
    Branch: claude/area-A5b-34199
    Worktree: objectstack-issue-34199
    Domain: domain:server
    Seat: repo:objectstack#1
    File surface: packages/core/src/utils/filter-tokens.ts (resolveFilterTokens and hasFilterToken: refuse an unresolved { $record } value by name, INVALID_FILTER, naming the field and the path) and its tests; driver pins on driver-memory and driver-sql (their test dirs, or the objectql driver-conformance table if that is where both run); packages/spec/src/data/field.zod.ts describe text only, dropping the [PLANNED — not enforced] marker for the server half (the picker half stays #34197's), with the regenerated reference it implies; a changeset. Stop on any breach and explain in the report. Amended by 6910797538 (adds the comment on the eq-shorthand pin in packages/spec/src/data/field.test.ts).
    Container & model: S, mode:subagent, model: default, effort: high
    Clause-②: no
    Metadata-protocol: semantic
    Responsibility: objectstack core: #34078 declared the { $record } lookup-filter value with no server reader, so an unresolved one reaches the driver and driver-memory refuses it generically ("Unsupported filter operator $record") while driver-sql is unmeasured | resolveFilterTokens in @objectstack/core, the engine's one token pass | every find whose filter carries an unresolved { $record } value
    Thread-read: 6910797538
    Premise: holds (#34078 merged; dev report 6910077961)
    Serial constraints cleared: none: PR #34330 reads mergeable_state clean against main at takeover.
    Resume-from: claude/area-A5b-34199@1d58fb85ef5a2b9ef8ea24c938a21aa5d2efdd2b
    Pre-claim lane: repo:objectstack lane; fix in packages/core/src/utils/filter-tokens.ts (domain:server); the packages/spec/src describe face stays in lane with a CONTRACT_REVIEW_TIER record.
    Pre-claim deps: none open (#34078 merged).
    Prior rulings read: seat ruling 6900252552 §3 on #34009; triage 6904303501; L2 6910769567 and L1 6910778263. No ⛔ conflict.


    Generated by Claude Code

  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac
    os-dev-report

    {
     "issue": 34199,
     "status": "done",
     "branch": "claude/area-A5b-34199",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34330",
     "head_sha": "16c765b3711d4a5b3525feecf4cefa95611d22a3",
     "session": "session_01FEkQ5kgF3mo9f7LXuv5hac",
     "premise_still_valid": true,
     "summary": "Fix round 3 on PR #34330, two commits on 1d58fb85 (15c27dc8, 16c765b3), pushed, no rebase, no force. L2 M2 closed by route 1: findRecordReferenceComparand leaves a legacy [field, op, value] tuple unjudged (an array whose first member is a string other than and/or, the split parseFilterAST lowers by); an and/or array is walked from its second member. The deep comparand in the array spelling now comes back by reference like its object spelling, and three CONTROL pins cover it at the pass. Measured through the analytics door (AnalyticsServicePlugin on a real ObjectQL engine over SqliteWasmDriver, scratch harness, not committed): this head and main 35c9a305 answer byte-identically on all 8 cases (json and file columns, both spellings). Round 2 answered the array spelling with this pass's refusal naming field meta. L2 S2 / L1 item 1: the lookupFilters describe and the changeset now say 'a date, datetime or time column', and the three references are regenerated. L1 item 2: the changeset's 'no filter that answered rows now refuses' sentence says why, and the Unchanged row names both spellings and their CONTROLs. L2 N4: the $record echo is bounded to 60 characters, pinned. The PR body was rewritten through the relay issue_patch.",
     "files_changed": [
      ".changeset/34199-record-reference-refused-by-name.md",
      "content/docs/references/data/field.mdx",
      "content/docs/references/data/object.mdx",
      "content/docs/references/system/migration.mdx",
      "packages/core/src/utils/filter-tokens.test.ts",
      "packages/core/src/utils/filter-tokens.ts",
      "packages/spec/src/data/field.zod.ts"
     ],
     "tests": "At 16c765b3, every run through os-verify-lock with VERDICT command-exit 0. `pnpm --filter @objectstack/core test` exit 0: Test Files 147 passed (147), Tests 3425 passed (3425). `pnpm --filter @objectstack/core typecheck` exit 0. `pnpm --filter @objectstack/core exec vitest run --maxWorkers=2 src/utils/filter-tokens.test.ts`: Tests 79 passed (79), 21 of them under [#34199]. `pnpm --filter @objectstack/driver-memory exec vitest run --maxWorkers=2 src/memory-record-reference-refusal.test.ts`: 5 passed. `pnpm --filter @objectstack/driver-sql exec vitest run --maxWorkers=2 src/sql-driver-record-reference-refusal.test.ts`: 6 passed. `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/field.test.ts`: 306 passed. `pnpm --filter @objectstack/spec check:generated`: the first run had 1 of 14 stale (content/docs/references/**); `--fix` regenerated them, and the re-check printed 'All 14 generated artifacts are up to date'. Ablation of the tuple rule: `node scripts/ablation-replace.mjs --delete` on the line `if (head !== 'and' && head !== 'or') return undefined;`. Anchor x1 -> x0, blob 244045f6cd22 -> ace6143a5a76. Core: Tests 3 failed / 76 passed (79), exactly the three new array-spelling CONTROLs, each throwing UnresolvedRecordReferenceError naming field meta at filter[2].meta, filter[2][2].meta and filter[1][2][0].meta. Restored: blob == HEAD 244045f6cd22, git diff HEAD empty. The core test imports src, so no build sits between mutation and run. Analytics-door measurement, scratch only: three legs swapping filter-tokens.ts (head 244045f6, round-2 f2645adc, main 7211feb2), core rebuilt each time, then restored (blob == HEAD) and rebuilt; results are in the PR body's Acceptance notes.",
     "gates": "Local: `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` at 16c765b3 derived 116 commands. Each was run with its exit captured before any pipe: 115 exit 0. check:skill-examples first exited 3 (PREREQUISITE NOT MET, client-react dist absent), then 0 once that dist existed. check:dual-build-cjs-loads exited 3 (PREREQUISITE NOT MET: every package dist), recorded as NOT-MEASURED. `dispatch-gates --ran` exit 0: '116 derived famil(ies) accounted for — 115 run, 1 NOT-MEASURED (0 DERIVED from a recorded exit 3, 1 claimed)'. `node scripts/check-nul-bytes.mjs` exit 0. CI: at report time the PR's check-runs on 16c765b3 listed 0 runs, so every CI family is in_progress or not started and nothing is cited as green.",
     "line_budget": "n/a: no skills/** path is touched. Changed lines are 527 (+512/-15) against the 3000 threshold, under.",
     "deviations": [
      "The array-spelling CONTROL is pinned at the pass (packages/core/src/utils/filter-tokens.test.ts), not through the analytics door. An analytics test file is outside claim 6913113980's file surface. The analytics-door behaviour was measured head-against-main in an uncommitted scratch harness instead, byte-identical on all 8 cases.",
      "The dispatch asked to fix 'both field.zod.ts describes'. Only the lookupFilters describe carried 'date or datetime', so it is the only describe changed; the value describe names no column kind.",
      "PR body trailer: the dispatch and the relay (dispatch.mjs PR_BODY_TRAILER_SHAPE) require an HTML-comment signed trailer, while os-dev.md forbids HTML comments in dev-written text. Followed the dispatch and the relay, and the read-back is byte-identical.",
      "The tree is at least 20 commits behind origin/main (the derivation's STALE TREE note names scripts/check-skills-token-ratchet.mjs and scripts/pm/label-write.mjs). No merge was taken: there was no conflict or main-caused red, per AGENTS.md section 10.",
      "test:repo is not run locally; it belongs to CI.",
      "The scratch measurement test was copied into packages/services/service-analytics/src/__tests__/ for the run and removed by trap. It was never staged, and git status is clean."
     ],
     "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm (Clause-②: no).",
     "mcp_calls": "0",
     "api_writes": "2: PATCH /repos/objectstack-ai/objectstack/issues/34330 (relay issue_patch, run 43878626467, read-back 13771 bytes identical) and POST /repos/objectstack-ai/objectstack/issues/34199/comments (os-dev-report through post-stamped.mjs). Two git pushes to claude/area-A5b-34199 (1d58fb85..15c27dc8..16c765b3), which are not REST writes.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac
    os-dev-report

    {
     "issue": 34199,
     "status": "done",
     "branch": "claude/area-A5b-34199",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/34330",
     "head_sha": "4fe8f01a373ccc488034c73d0c4f649fedf8328c",
     "session": "session_01FEkQ5kgF3mo9f7LXuv5hac",
     "premise_still_valid": true,
     "summary": "Round 4 merge on PR #34330, three commits on 16c765b3, pushed, no rebase, no force. 7969da81 is the merge (parents 16c765b3 and cfcba539, origin/main). It was produced by os-regen-merge.sh step 1; the conflict in packages/spec/src/data/field.zod.ts was resolved by hand per review#1 S3 and the merge committed, with the os-regen deferral recorded. The script was then rerun: step 2 took main's side of the three references, which both sides had moved. e3775ec5 is the regeneration: spec build, gen:schema and gen:docs over the merged source, discharging the deferral. 4fe8f01a rewords the changeset's last paragraph. The PR is now mergeable, and CI on 4fe8f01a is all green.",
     "merge": {
      "merge_commit": "7969da81f8884cc99ceaf42448ba0a6c4f8a1efb",
      "parents": [
       "16c765b3711d4a5b3525feecf4cefa95611d22a3",
       "cfcba539205a2b11e363168ccc2647e74addac0d"
      ],
      "commits_after_merge": [
       "e3775ec5 docs(spec): regenerate the field references from the merged source",
       "4fe8f01a docs(changeset): say what the merged describes say about the picker"
      ],
      "conflict_resolution": {
       "packages/spec/src/data/field.zod.ts": "Two hunks, resolved by hand. value describe: main's picker sentence taken whole ('In a record form, whatever its layout, the picker sends the referenced value in place of the reference; every other picker host leaves the entry out.'), then this PR's 'A { $record } that reaches a server unresolved is refused (INVALID_FILTER), never read as null.' appended. lookupFilters describe: main's text taken whole ('empty or cannot be read (...), the entry is left out ... The picker narrows the choice only: a rule the save must enforce belongs on the server too.'), with main's 'refused, never read as null.' replaced by this PR's 'refused (INVALID_FILTER), never read as null: by name, naming the field and the path, when it arrives as the eq shorthand on a column other than a date, datetime or time column; any other operator, and eq on a date, datetime or time column, is refused earlier, in generic words.' No [PLANNED — not enforced] tail remains (0 occurrences in the file, as on main). orEmpty and every other main change come through untouched; git diff origin/main on this file is +6/-3, only the two server sentences.",
       "content/docs/references/data/field.mdx, content/docs/references/data/object.mdx, content/docs/references/system/migration.mdx": "Not text-merged (merge=os-regen). os-regen-merge.sh step 2 took main's side, because both sides had moved them since 35c9a305. Step 4 regenerated them from the merged source.",
       ".changeset/34199-record-reference-refused-by-name.md": "No conflict. The last paragraph is reworded in its own commit 4fe8f01a: 'The `value` and `lookupFilters` describes now say what holds on the server: an unresolved `{ $record }` is refused with `INVALID_FILTER`, never read as null, and, in `lookupFilters`, by name on the eq shorthand of a column other than a date, datetime or time column. Their picker sentences (a record form sends the referenced value; every other picker host leaves the entry out) are not changed by this entry.' 'PLANNED' and 'does not resolve' now occur 0 times."
      },
      "regen_diff": "e3775ec5 changes 3 files (+7/-7) against the merge commit. Against origin/main the three references differ only by this PR's two server sentences, 6 lines (+6/-6): the value row gains 'A `{ $record }` that reaches a server unresolved is refused (INVALID_FILTER), never read as null.', and 5 lookupFilters rows read 'refused (INVALID_FILTER), never read as null: by name, ... is refused earlier, in generic words.' in place of 'refused, never read as null.' Proof: for each of the three files, the HEAD text with those two sentences mapped back is byte-equal to origin/main's file (True x3). git diff origin/main --stat -- content/docs/references names only these 3 files.",
      "main_entries_intact": "Quoted-exact git grep -c -F, counted against origin/main and against HEAD over content/docs/references: 'In a record form, whatever its layout' 6/6; 'every other picker host leaves every' 5/5; 'has no single-row reader' 5/5; 'sends the comparison or a null match on the same column' 1/1; 'every other picker host leaves the entry out' 1/1; '| **dependsOn** |' identical per file across 10 files (field 1, object 2, migration 2, seed-loader 3, ...). Net PR diff against origin/main: 10 files, +511/-14, the same file set as before the merge."
     },
     "files_changed": [
      "packages/spec/src/data/field.zod.ts",
      "content/docs/references/data/field.mdx",
      "content/docs/references/data/object.mdx",
      "content/docs/references/system/migration.mdx",
      ".changeset/34199-record-reference-refused-by-name.md"
     ],
     "tests": "Round 4, through os-verify-lock (VERDICT command-exit 0 each), on the merged tree. `pnpm turbo run build --filter=@objectstack/core --filter=@objectstack/spec --concurrency=2`: Tasks 4 successful. `pnpm --filter @objectstack/core exec vitest run --maxWorkers=2 src/utils/filter-tokens.test.ts` at 4fe8f01a: 79 passed (79). `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/data/field.test.ts`: 306 passed (306). `pnpm --filter @objectstack/core typecheck` exit 0. `pnpm --filter @objectstack/spec typecheck` exit 0 (tsc --noEmit, check:scripts-typecheck, check:test-typecheck). `pnpm --filter @objectstack/driver-memory exec vitest run --maxWorkers=2 src/memory-record-reference-refusal.test.ts`: 5 passed. The driver-sql pin first exited 1 with 'Failed to resolve entry for package @objectstack/observability' (no dist in the fresh worktree, so not a red). After `pnpm turbo run build --filter=@objectstack/driver-sql^...` (6 tasks) it ran: 6 passed (6).",
     "gates": "Generated artifacts: `pnpm --filter @objectstack/spec gen:schema` exit 0, `gen:docs` exit 0, then `pnpm --filter @objectstack/spec check:generated` exit 0: 'All 14 generated artifacts are up to date'. The pre-commit os-regen hook on e3775ec5: 'deferred regeneration discharged — all artifacts current, marker cleared.' `node scripts/check-nul-bytes.mjs` exit 0. CI on 4fe8f01a, polled in the foreground to completion: 68 check-runs, 58 success, 10 skipped, 0 failure. Required contexts: Lint & Repo Gates success, TypeScript Type Check success, Test Core 1-8/8 success, Build Core success, Governed Surface Queue Guard success, Type Check UI success, Test UI 1-16/16 success, Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success (the matrix shards are skipped on pull_request), Lint UI skipped; Check Changeset success. PR mergeable=true, mergeable_state=blocked (draft or review state, not a conflict). The dispatch-gates family sweep was not re-run this round: CI carries it on this head, and Lint & Repo Gates is green.",
     "red_checks": [],
     "line_budget": "n/a: no skills/** path is touched. The net diff is +511/-14 against the 3000 threshold.",
     "pr_body_changes_proposed": [
      "What changes, the 'Spec describes' bullet: replace the lookupFilters quote and the marker sentences with: 'the `value` describe takes main's picker sentence and adds \"A { $record } that reaches a server unresolved is refused (INVALID_FILTER), never read as null.\"; the `lookupFilters` describe takes main's text and replaces \"refused, never read as null.\" with \"refused (INVALID_FILTER), never read as null: by name, naming the field and the path, when it arrives as the eq shorthand on a column other than a date, datetime or time column; any other operator, and eq on a date, datetime or time column, is refused earlier, in generic words.\" (round 3, L2 S2). Round 4 merged main, whose picker change (PR #34253) rewrote both describes and dropped their [PLANNED — not enforced] tails; the merge keeps main's picker sentences whole and adds only this PR's server sentences (review#1 S3).' Delete the sentence 'The `[PLANNED — not enforced]` marker stays on the picker half (\"The picker does not resolve { $record } or read orEmpty yet\"), which #34197 owns.'",
      "What changes, the changeset bullet: append 'Round 4: the last paragraph says the value and lookupFilters describes state the server half, and their picker sentences are not changed by this entry (no PLANNED marker, no \"does not resolve\").'",
      "维护者速读 item 4 (先看): replace the `.changeset/...`(Unchanged 行) entry with `packages/spec/src/data/field.zod.ts`(合并冲突手工解决处:两段 describe 中 main 的选择器句子 + 本 PR 的服务端句子).",
      "Verification, the first line: 'Round 4 readings at `4fe8f01a37`: merge `7969da81f8` (parents `16c765b371`, `cfcba53920` origin/main, field.zod.ts conflict resolved by hand per review#1 S3), regeneration `e3775ec5` (the three references re-derived from the merged source, equal to main's apart from this PR's two server sentences), changeset `4fe8f01a37`.'",
      "Verification, the details block: replace the round-3 suite lines with 'core filter-tokens.test.ts 79 passed; spec field.test.ts 306 passed; core and spec typecheck exit 0; driver-memory pin 5 passed; driver-sql pin 6 passed; spec check:generated: all 14 up to date after gen:schema + gen:docs; CI on 4fe8f01a: 68 check-runs, 58 success, 10 skipped, 0 failure.'",
      "Verification, the derived-gate block: add 'Round 3 sweep (116 families at 16c765b3) not re-run on the merge head; CI Lint & Repo Gates is green on 4fe8f01a.' The stale-tree note about no merge no longer holds: replace it with 'Round 4 merged origin/main cfcba539.'"
     ],
     "deviations": [
      "os-regen-merge.sh's rerun refused its own step-3 commit, because the merge's os-regen deferral was undischarged. Following the hook's instruction, the references were regenerated and committed as e3775ec5 (`git add` of only the three regenerated paths, staged diff inspected with `git diff --cached` against HEAD and origin/main). There is no separate 'handoff' commit, because step 2's main-side bytes were never committed alone. The merge commit itself is separate, so 'merge and regen in separate commits' holds.",
      "The changeset reword is its own commit (4fe8f01a), not part of the merge resolution.",
      "The dispatch-gates family sweep was not re-run on the merge head; CI's Lint & Repo Gates covers it and is green.",
      "The PR body was not patched, as instructed; the proposed lines are in pr_body_changes_proposed."
     ],
     "dogfood_battery": "n/a: no `!` in the PR title and no (narrowing) arm. CI 'Dogfood Regression Gate' is success on 4fe8f01a.",
     "mcp_calls": "0",
     "api_writes": "1: POST /repos/objectstack-ai/objectstack/issues/34199/comments (os-dev-report through post-stamped.mjs). One git push of claude/area-A5b-34199 (16c765b3..4fe8f01a), which is not a REST write.",
     "open_questions": [],
     "security_findings": "none",
     "out_of_scope_findings": []
    }
  11. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-project-manager · session_01FEkQ5kgF3mo9f7LXuv5hac

    Delivered · #34199 · 2026-11-16T15:31Z

    PR #34330 merged through the queue as fa9d695522 (2026-11-16T15:30Z); Fixes #34199 closed this card. L1 ACCEPT 6918307839 and merge delta 6920109567 (L1-b); L2 PASS 6918401040 and delta 6920152639 (review#1, CONTRACT_REVIEW_TIER); landing record 6920189587.

    Delivered: an unresolved { $record } lookup-filter comparand is refused by name (INVALID_FILTER, naming the field and the path) before any driver sees it, on the eq shorthand of a column other than a date, datetime or time column; every shape the pass leaves unjudged (a legacy [field, op, value] tuple, a value inside a comparand) answers as before. The value and lookupFilters describes state that server half beside main's picker sentences. Nothing left on this card.

    State change: pm:dispatched and lease:o1-C removed in this stroke.


    Generated by Claude Code

  12. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

domain:serverfindingpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions