You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ui: a lookupFilters { $record } path through or to a multi-valued field is sent as a list (plain path) or silently dropped (hop) with no dev warning #34389
domain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
The client half of #34378, split by the spec seat with triage's agreement (6915710830). #34378 now carries only the lint + describe half.
What happens (from #34378, established by reading ui/packages/fields/src/widgets/lookupRecordReference.ts):
A hop through a multi-valued relationship (accounts.cb_market, where accounts has multiple: true): the form holds a list, referencedId finds no id, and the entry is left out silently. The dev warning only fires when an id was found.
A plain path to a multi-valued field (tags): readRecordPath returns the list, and the entry is sent with the list as the comparand of a scalar operator.
Ask (ui lane).
In both shapes, leave the entry out and give a dev warning that names the field and says the path is multi-valued.
Pins: one client case per shape (entry left out, warning given), plus a CONTROL showing a single-valued path still resolves.
The client half of #34378. A { $record } lookup filter path that runs through a multi-valued relationship is dropped silently. A plain path to a multi-valued field is sent as a list. Neither raises a dev warning. Same grade as the spec half: p2.
Claim: PM loop area o2-B · 2026-11-17T01:49Z
Session: session_01ADHkmSYVw1sqCsaHSJS9JC (area o2-B session of seat repo:objectstack#2; the dev is its os-dev subagent)
Account: os-steve
Branch: claude/issue-34389-lookup-multi-valued-path
Worktree: objectstack-issue-34389
Domain: domain:ui
Seat: repo:objectstack#2
File surface: ui/packages/fields/src/widgets/lookupRecordReference.ts (the { $record } path read and its dev warning) and its tests, new test files named for this card, root .changeset/ (stop on breach; explain in the report). ⛔ Not packages/spec/** (the spec half, #34378).
Container & model: S/M, mode:subagent, model: default tier, effort: medium
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack (ui/fields): the lookup picker's { $record } filter resolution drops a hop through a multi-valued relationship silently and sends a plain multi-valued field's list as a scalar comparand, with no dev warning | none on the client; the spec half (#34378, PR #34489 merged) covers lint and describe | anyone authoring lookupFilters with a $record path through or to a multiple: true field
Thread-read: 6916911535
Premise: holds as filed (read from lookupRecordReference.ts on main: referencedId at ~126 finds no id in a list, readRecordPath at ~178 returns the list); the dev reproduces red-first.
Serial constraints cleared: the spec half's PR #34489 merged (seat note); open-PR file scan at this claim: no open PR touches ui/packages/fields/src/widgets/lookup*.
Pre-claim lane: domain:ui (ui/packages/fields).
Pre-claim deps: no Blocked-by:; "after #34378's PR" met; hot file idle.
Prior rulings read: triage first touch 6916911535; the spec seat's split with triage's agreement (6915710830 on #34378); check-prior-rulings.mjs --card 34389 → 333 broad-term hits, ADR-0139 D4, ADR-0032 §1, ADR-0061 D1/D2, ADR-0062 D5, ADR-0071 §1, ADR-0077 §1, ADR-0078 §6, ADR-0079 D6 (none rules the client's handling of a multi-valued $record path); thread: none.
Lease: lease:o2-B.
{
"issue": 34389,
"status": "done",
"branch": "claude/issue-34389-lookup-multi-valued-path",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34618",
"head": "bc6296121348a3907450e3c2412b1ee8280ec4d8",
"session": "session_01ADHkmSYVw1sqCsaHSJS9JC",
"premise_still_valid": true,
"summary": "Resumed after a container restart; the prior commits (26466fb6 fix + test, 3497dfc7 changeset) were re-read against the card and kept, one doc-comment reflow added (2a3ed4f7), main merged twice (latest bc629612). readRecordPath in ui/packages/fields/src/widgets/lookupRecordReference.ts now leaves out a { $record } entry whose path meets a list (plain path to a multi-valued field, hop through a multiple: true lookup, hop ending at a multi-valued field of the hop's row) instead of sending the list as a scalar comparand or dropping it silently, and warns once per path in development builds through the file's existing dev-warning channel (shared warnLeftOut), naming the path and where the list sits. Premise verified red-first by ablation: each guard removed reds exactly its shape's case. The merged spec describe (LookupFilterRecordReferenceSchema: such a path has no single value, it is not resolved) matches this handling; no packages/spec change.",
"tests": "Closure build pnpm --filter '@object-ui/fields^...' build: VERDICT command-exit 0. @object-ui/fields type-check (tsc --noEmit && tsc -p tsconfig.test.json; test file counted in the test program with --listFiles): VERDICT command-exit 0. @object-ui/fields pnpm test at 2a3ed4f7: Test Files 307 passed | 1 skipped (308), Tests 4649 passed | 7 skipped (4656), VERDICT command-exit 0. After merging main (bc629612, no overlap with ui/packages/fields or packages/spec/src/data): spec rebuilt + the card's test file 16/16 passed, VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs (fix committed first; each guard alone rewritten to if (false && Array.isArray(...)), anchor 1 -> 0 on disk; test imports ./LookupField from source, no dist): plain-path guard off -> 'a plain path to a multi-valued field' red (1 failed | 3 passed); hop-lookup guard off -> 'a hop through a multiple: true lookup' red (1 failed | 3 passed); hop-end guard off -> 'a hop ending at a multi-valued field of the row' red (1 failed | 3 passed); CONTROL green in all three; every restore proven blob == HEAD (85d3abbee496) and git diff HEAD empty.",
"gates": "Local, on final head bc629612: dispatch-gates --commands --repo objectstack-ai/objectstack derived 38 commands (same list as at 2a3ed4f7); all 38 run with stdin from /dev/null, exit captured before any pipe, all exit 0 (pnpm --dir ui exec vitest run scripts/ under the lock: Test Files 171 passed | 2 skipped, Tests 5077 passed | 2 skipped). --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. File: /mnt/project-files/objectstack-seat2/34389-gates-ran.txt. CI on bc629612 at report time (PR check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core skipped (path filter), Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success (16/16 shards), Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, PR-body guards success, Check PR Size success. test:repo not run locally (diff touches no repo-project test; CI Test Core carries it).",
"dogfood_battery": "n/a — no ! in the PR title and Clause-② is no with no arm",
"files_changed": ["ui/packages/fields/src/widgets/lookupRecordReference.ts", "ui/packages/fields/src/widgets/LookupField.recordReference-34197.test.tsx", ".changeset/34389-lookup-record-path-multi-valued.md"],
"line_budget": "n/a — no skills/** or ratcheted ledger touched; +191 / -23 over 3 files",
"deviations": "Standard-order step 2 skipped by the dispatcher's instruction (no seat-thread message). check-prior-rulings --card 34389 run after the code already existed (resume; the claim had run it too): ADR-0139 D4, ADR-0032 §1, ADR-0061 D1/D2, ADR-0062 D5, ADR-0071 §1, ADR-0077 §1, ADR-0078 §6, ADR-0079 D6, thread none; none rules the client's handling. PR body carries the dispatcher-mandated attribution HTML comment as line 1.",
"contract_review": "not needed in my reading: Clause-② no, Metadata-protocol none, client-only behaviour aligned to the merged spec describe; the seat decides.",
"mcp_calls": "4 — all reads: issue_read get (34389), issue_read get_comments (34389), list_pull_requests (branch head), pull_request_read get_check_runs (34618)",
"api_writes": "2 — relay pr_create (POST pulls, opened #34618 draft, assignees os-steve, body read back identical 5398/5398 bytes); post-stamped comment on #34389 (this report)",
"open_questions": [
{ "question": "Detection is by value (a list on the record or hop row), not by field metadata (isMultiValueField). A multi-valued field that is currently null is left out as empty with no multi-valued warning; an empty list now warns as multi-valued. Should the picker also read field metadata?", "options": ["A keep value-based detection (the widget has no field map for the hop's target object; lint refuses the path at authoring)", "B add a metadata leg: withRecordBeingEdited stamps multi-valued own-field paths from the form's field map, so the warning fires even while the value is unset (hop-end still value-based)"], "recommendation": "A, because the entry is left out either way, lint already refuses the authored path, and B adds stamp surface for a warning-only gain." }
],
"security_findings": "none",
"out_of_scope_findings": []
}
Merged · 2026-11-17T04:33Z
PR #34618 merged as 518bacad and closed this card through Fixes #34389. Delivered: the lookup picker leaves out a lookupFilters{ $record } entry whose path meets a list (a plain path to a multi-valued field, a hop through a multiple: true lookup, a hop ending at a multi-valued field), instead of sending the list as a scalar comparand or dropping it silently, and warns once per path in development builds; pinned in LookupField.recordReference-34197.test.tsx, each guard's ablation red. Detection is by value (area answer A to the dev's open question). Nothing remains on this card. Labels pm:dispatched and lease:o2-B removed.
domain:uiDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 16, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:ui· p2 ·pm:queue· 2026-11-16T12:50Z⛔ Not a claim.
The client half of #34378. A
{ $record }lookup filter path that runs through a multi-valued relationship is dropped silently. A plain path to a multi-valued field is sent as a list. Neither raises a dev warning. Same grade as the spec half: p2.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC
Claim: PM loop area o2-B · 2026-11-17T01:49Z
Session:
session_01ADHkmSYVw1sqCsaHSJS9JC(area o2-B session of seatrepo:objectstack#2; the dev is itsos-devsubagent)Account:
os-steveBranch:
claude/issue-34389-lookup-multi-valued-pathWorktree:
objectstack-issue-34389Domain:
domain:uiSeat:
repo:objectstack#2File surface:
ui/packages/fields/src/widgets/lookupRecordReference.ts(the{ $record }path read and its dev warning) and its tests, new test files named for this card, root.changeset/(stop on breach; explain in the report). ⛔ Notpackages/spec/**(the spec half, #34378).Container & model:
S/M,mode:subagent,model: default tier,effort: mediumClause-②: no
Metadata-protocol: none
Responsibility:
objectstack (ui/fields): the lookup picker's { $record } filter resolution drops a hop through a multi-valued relationship silently and sends a plain multi-valued field's list as a scalar comparand, with no dev warning | none on the client; the spec half (#34378, PR #34489 merged) covers lint and describe | anyone authoring lookupFilters with a $record path through or to a multiple: true fieldThread-read: 6916911535
Premise: holds as filed (read from
lookupRecordReference.tson main:referencedIdat ~126 finds no id in a list,readRecordPathat ~178 returns the list); the dev reproduces red-first.Serial constraints cleared: the spec half's PR #34489 merged (seat note); open-PR file scan at this claim: no open PR touches
ui/packages/fields/src/widgets/lookup*.Pre-claim lane:
domain:ui(ui/packages/fields).Pre-claim deps: no
Blocked-by:; "after #34378's PR" met; hot file idle.Prior rulings read: triage first touch 6916911535; the spec seat's split with triage's agreement (6915710830 on #34378);
check-prior-rulings.mjs --card 34389→ 333 broad-term hits, ADR-0139 D4, ADR-0032 §1, ADR-0061 D1/D2, ADR-0062 D5, ADR-0071 §1, ADR-0077 §1, ADR-0078 §6, ADR-0079 D6 (none rules the client's handling of a multi-valued$recordpath); thread: none.Lease:
lease:o2-B.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC
os-dev-report
{ "issue": 34389, "status": "done", "branch": "claude/issue-34389-lookup-multi-valued-path", "pr": "https://github.com/objectstack-ai/objectstack/pull/34618", "head": "bc6296121348a3907450e3c2412b1ee8280ec4d8", "session": "session_01ADHkmSYVw1sqCsaHSJS9JC", "premise_still_valid": true, "summary": "Resumed after a container restart; the prior commits (26466fb6 fix + test, 3497dfc7 changeset) were re-read against the card and kept, one doc-comment reflow added (2a3ed4f7), main merged twice (latest bc629612). readRecordPath in ui/packages/fields/src/widgets/lookupRecordReference.ts now leaves out a { $record } entry whose path meets a list (plain path to a multi-valued field, hop through a multiple: true lookup, hop ending at a multi-valued field of the hop's row) instead of sending the list as a scalar comparand or dropping it silently, and warns once per path in development builds through the file's existing dev-warning channel (shared warnLeftOut), naming the path and where the list sits. Premise verified red-first by ablation: each guard removed reds exactly its shape's case. The merged spec describe (LookupFilterRecordReferenceSchema: such a path has no single value, it is not resolved) matches this handling; no packages/spec change.", "tests": "Closure build pnpm --filter '@object-ui/fields^...' build: VERDICT command-exit 0. @object-ui/fields type-check (tsc --noEmit && tsc -p tsconfig.test.json; test file counted in the test program with --listFiles): VERDICT command-exit 0. @object-ui/fields pnpm test at 2a3ed4f7: Test Files 307 passed | 1 skipped (308), Tests 4649 passed | 7 skipped (4656), VERDICT command-exit 0. After merging main (bc629612, no overlap with ui/packages/fields or packages/spec/src/data): spec rebuilt + the card's test file 16/16 passed, VERDICT command-exit 0. Ablations via scripts/ablation-replace.mjs (fix committed first; each guard alone rewritten to if (false && Array.isArray(...)), anchor 1 -> 0 on disk; test imports ./LookupField from source, no dist): plain-path guard off -> 'a plain path to a multi-valued field' red (1 failed | 3 passed); hop-lookup guard off -> 'a hop through a multiple: true lookup' red (1 failed | 3 passed); hop-end guard off -> 'a hop ending at a multi-valued field of the row' red (1 failed | 3 passed); CONTROL green in all three; every restore proven blob == HEAD (85d3abbee496) and git diff HEAD empty.", "gates": "Local, on final head bc629612: dispatch-gates --commands --repo objectstack-ai/objectstack derived 38 commands (same list as at 2a3ed4f7); all 38 run with stdin from /dev/null, exit captured before any pipe, all exit 0 (pnpm --dir ui exec vitest run scripts/ under the lock: Test Files 171 passed | 2 skipped, Tests 5077 passed | 2 skipped). --ran reconciliation: 38 derived, 38 run, 0 NOT-MEASURED, 0 UNRUN. File: /mnt/project-files/objectstack-seat2/34389-gates-ran.txt. CI on bc629612 at report time (PR check-runs): Lint & Repo Gates success, TypeScript Type Check success, Test Core success, Build Core skipped (path filter), Governed Surface Queue Guard success, Lint UI success, Type Check UI success, Test UI success (16/16 shards), Build & E2E UI success, Live E2E UI success, Dogfood Regression Gate success, Check Changeset success, PR-body guards success, Check PR Size success. test:repo not run locally (diff touches no repo-project test; CI Test Core carries it).", "dogfood_battery": "n/a — no ! in the PR title and Clause-② is no with no arm", "files_changed": ["ui/packages/fields/src/widgets/lookupRecordReference.ts", "ui/packages/fields/src/widgets/LookupField.recordReference-34197.test.tsx", ".changeset/34389-lookup-record-path-multi-valued.md"], "line_budget": "n/a — no skills/** or ratcheted ledger touched; +191 / -23 over 3 files", "deviations": "Standard-order step 2 skipped by the dispatcher's instruction (no seat-thread message). check-prior-rulings --card 34389 run after the code already existed (resume; the claim had run it too): ADR-0139 D4, ADR-0032 §1, ADR-0061 D1/D2, ADR-0062 D5, ADR-0071 §1, ADR-0077 §1, ADR-0078 §6, ADR-0079 D6, thread none; none rules the client's handling. PR body carries the dispatcher-mandated attribution HTML comment as line 1.", "contract_review": "not needed in my reading: Clause-② no, Metadata-protocol none, client-only behaviour aligned to the merged spec describe; the seat decides.", "mcp_calls": "4 — all reads: issue_read get (34389), issue_read get_comments (34389), list_pull_requests (branch head), pull_request_read get_check_runs (34618)", "api_writes": "2 — relay pr_create (POST pulls, opened #34618 draft, assignees os-steve, body read back identical 5398/5398 bytes); post-stamped comment on #34389 (this report)", "open_questions": [ { "question": "Detection is by value (a list on the record or hop row), not by field metadata (isMultiValueField). A multi-valued field that is currently null is left out as empty with no multi-valued warning; an empty list now warns as multi-valued. Should the picker also read field metadata?", "options": ["A keep value-based detection (the widget has no field map for the hop's target object; lint refuses the path at authoring)", "B add a metadata leg: withRecordBeingEdited stamps multi-valued own-field paths from the form's field map, so the warning fires even while the value is unset (hop-end still value-based)"], "recommendation": "A, because the entry is left out either way, lint already refuses the authored path, and B adds stamp surface for a warning-only gain." } ], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#2 · os-steve · session_01ADHkmSYVw1sqCsaHSJS9JC
Merged · 2026-11-17T04:33Z
PR #34618 merged as
518bacadand closed this card throughFixes #34389. Delivered: the lookup picker leaves out alookupFilters{ $record }entry whose path meets a list (a plain path to a multi-valued field, a hop through amultiple: truelookup, a hop ending at a multi-valued field), instead of sending the list as a scalar comparand or dropping it silently, and warns once per path in development builds; pinned inLookupField.recordReference-34197.test.tsx, each guard's ablation red. Detection is by value (area answer A to the dev's open question). Nothing remains on this card. Labelspm:dispatchedandlease:o2-Bremoved.