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
⌘K palette hit titles a record by its raw lookup id when the object's nameField is a lookup #34175
Filing gate ③: area-directed (area S2 of seat domain:server#5). This is the out-of-scope item of #34055 (os-dev report 6903090153), first named by the #33864 dev (os-dev report 6899087689, item 4, carried on #34055 by note 6899142203). It is the sibling of #34055 / PR #34172.
Today
packages/metadata-protocol/src/protocol-record-reads.tssearchAll → renderTitle returns row[titlePointer] as stored. If an object's nameField is a lookup-typed field (lookup / master_detail / user), the ⌘K palette and global search title each hit by the stored foreign key, not by the target record's title. The named producer is sys_record_share, whose nameField is recipient_id, a lookup. Any app object titled by a person or a parent record does the same; HotCRM's crm_project_member is the case behind #34055. The record header already follows the lookup ($expand), and since PR #34172 activity rows do too.
The resolver #34172 reuses (resolveLookupTitles) is a plugin-audit closure, and metadata-protocol sits below plugin-audit in the graph, so it cannot import it. Adding $expand to the palette's find would change each hit's record wire shape.
Ask
Measure on main first: a lookup-titled object in a palette search, and the hit's title. Then follow the lookup to the target's title (ADR-0079 titleFieldOf on the target). The read must run as the searching user, and a refused reader keeps the bare id, the same rule as $expand and referenceNameVisible (ruling 6574398310). The hit's wire shape must not change. Seam: spec:ObjectSchema.nameField (lookup-typed) → protocol-record-reads.tssearchAllrenderTitle.
Prior rulings read: ADR-0079 (record title resolver); ruling 6574398310 (referenceNameVisible, refused reader gets {id, name, readRefused} only when declared).
Reader: domain:server (metadata-protocol record reads). Size S.
Claim: PM loop round 2 (area-lease ux-3 of repo:objectstack#5; the maintainer, verbatim, 2026-11-19T00:07Z: 「接手 area:ux」「优先 p1 p2」) · 2026-11-19T01:46Z
Session: session_01Utp6CZiaBg6rk7dpy1s9Me
Account: os-bill
Branch: claude/issue-34175-palette-lookup-title
Worktree: objectstack-issue-34175 (os-dev worktree in the ux-3 container)
Domain: domain:server
Seat: repo:objectstack#5
File surface: packages/metadata-protocol/src/protocol-record-reads.ts (searchAll / renderTitle) and, only if a shared title helper must move, its file in packages/metadata-protocol/src/**; a new test file named for this card; changeset. ⛔ packages/plugins/plugin-audit/**, packages/spec/**. Stop on breach and report.
Container & model: S, mode:subagent, model: default — no path-derived mandate, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: platform — packages/metadata-protocol/src/protocol-record-reads.tssearchAll → renderTitle returns row[titlePointer] as stored (objectstack); the record header ($expand) and activity rows (#34172) already follow the lookup, the palette does not; every user searching an object whose nameField is lookup-typed (sys_record_share.recipient_id on stock).
Thread-read: 6984496169
Premise: holds — on main renderTitle (~:440) returns String(row[titlePointer]) with no lookup follow; to be measured first by the dev as the card asks.
Serial constraints cleared: none — no open PR touches protocol-record-reads.ts at claim time.
Pre-claim lane: server — packages/metadata-protocol/src/** (domain:server).
Pre-claim deps: none named; sibling #34055 / PR #34172 merged.
Prior rulings read: ADR-0079 (record display name, titleFieldOf); ruling 6574398310 (referenceNameVisible: a refused reader keeps the bare id); the card's fence that the hit's wire shape does not change.
Lease: lease:ux-3
{
"issue": 34175,
"status": "done",
"branch": "claude/issue-34175-palette-lookup-title",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35292",
"head": "ff64484d3d05c0ab670d59c748da0926434faa16",
"session": "session_01Utp6CZiaBg6rk7dpy1s9Me",
"premise_still_valid": true,
"summary": "searchAll now titles a hit whose nameField is a reference field (lookup/master_detail/user/tree, via spec referenceTargetOf) by the target record's ADR-0079 title. The target titles come from one id-$in find per swept object, selecting only id and the title column, with the searcher's own context. A refused reader keeps the bare id: a target whose exposure does not serve get, canReadObject false, a PERMISSION_DENIED read, a row outside the row scope, or a title column stripped by FLS. Any other failure of the target read propagates, as in #8896. The hit wire shape is unchanged. The premise holds for the ask as written (lookup-typed nameField). However, the card's named stock producer, sys_record_share.recipient_id, is a Field.text column, not a lookup, so its palette title is not changed by this fix (see out_of_scope_findings).",
"measured_on_main": "d6d9645056, new test file before the fix: the PIN answered { pm_1: 'per_1', pm_2: 'per_2', pm_3: 'per_1' }, i.e. hits titled by the raw lookup id; Tests 7 failed | 4 passed (11) (the 4 are refusal/exposure/wire-shape/control legs, vacuous on main).",
"refused_reader_pin": "packages/metadata-protocol/src/protocol.search-title-lookup.test.ts has four REFUSED legs: the object is refused before any read (the target is never read), the read throws PERMISSION_DENIED, the row is outside the row scope, and FLS strips the title column. Each keeps the bare id. There are also an exposure-without-get leg and an outage-propagates leg, which asserts code and status. Ablation: deleting the canReadObject pre-check (ablation-replace anchor 1 to 0, blob 35ced7511b80 to f92c32c63df5) turns the object-refused leg red, Tests 1 failed | 10 passed (11). The restore put the blob back equal to HEAD, with git diff HEAD empty.",
"tests": "Measured at bc101adfda: pnpm --filter @objectstack/metadata-protocol typecheck exited 0 (tsc --listFiles includes the new test), and vitest run --maxWorkers=2 gave Test Files 358 passed | 9 skipped (367), Tests 23218 passed | 45 skipped (23263), VERDICT command-exit 0. Re-measured at ff64484d3d: the new test file gives Tests 11 passed (11), and core --project repo src/security/second-object-read-exposure.pin.test.ts gives Tests 4 passed (4), VERDICT command-exit 0. Not caused by this diff: plugin-security org-admin-assignment-boundary.posture.test.ts gives Tests 104 passed (104) locally.",
"gates": "Local, final head ff64484d3d: dispatch-gates --commands derived 69 families, 69 were run and all exited 0. dispatch-gates --ran: 69 accounted for, 0 NOT-MEASURED, 0 UNRUN, exit 0. overlap-check: VERDICT clean exit 0 before each push. Earlier heads: check:test-source-alias exited 1 on the new test, fixed in 7e664c7da9. check:lean-entry-closure exited 3 until objectql was built, then 0. CI on ff64484d3d: every non-skipped check-run is completed/success, including Lint & Repo Gates, TypeScript Type Check, Test Core 1-10/10, Build Core, Governed Surface Queue Guard, Type Check UI/Test UI/Build & E2E UI/Live E2E UI, Dogfood Regression Gate and Check Changeset. Earlier, on 7e664c7da9, Test Core 6/10 was red on the core second-object-read-exposure pin (fixed by classifying the caller), and Test Core 8/10 had a 5000 ms timeout in an untouched plugin-security test.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "4. Relay fleet-write: (1) pr_create, POST /repos/objectstack-ai/objectstack/pulls plus POST /issues/35292/assignees (os-bill). (2) and (3) issue_patch, PATCH /repos/objectstack-ai/objectstack/issues/35292 (PR body: final gate readings, then the core-pin classification and CI readings). (4) post-stamped, POST /repos/objectstack-ai/objectstack/issues/34175/comments (os-dev-report). git push is not counted.",
"line_budget": "n/a — no skills/** or ratcheted ledger touched",
"files_changed": [
"packages/metadata-protocol/src/protocol-record-reads.ts",
"packages/metadata-protocol/src/protocol.search-title-lookup.test.ts",
"packages/core/src/security/second-object-read-exposure.pin.test.ts",
".changeset/34175-search-lookup-title.md"
],
"deviations": [
"File surface: packages/core/src/security/second-object-read-exposure.pin.test.ts is outside the claim's surface. CI reds any unclassified caller of referenceTargetOf, so the new read had to be registered as a decided read: a CALLERS row plus the pinned decision-function list. The edit is mechanical and is named in the PR body.",
"The PR body was patched twice through the relay's issue_patch, as the parent's note allowed, to cite the final-head gate union and the CI readings. The first commit was amended before its first push, to make the trailer model-free as AGENTS.md requires.",
"The searchAll method docblock in protocol.ts is not edited, because it is outside the file surface. The contract text lives on readReferenceTitles and servesSearchTitleTarget."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"class: a · reach: not measured at a public door (inferred from source plus spec: canServeApiOperation({apiMethods:['get','list']}, 'search') answers true, measured with the built spec) · evidence: sys_record_share.nameField is recipient_id, a Field.text polymorphic principal id paired with recipient_type, so the palette still titles a record-share hit by the raw recipient id. A fix needs the recipient_type-keyed directory read that the console's recipient-picker face performs, which is a different design from following a lookup · dedupe words: record share palette title, recipient_id raw id, search title polymorphic recipient · carrier: os-bill (area ux-3) · noted, not filed",
"carrier: none · noted, not filed: referenceNameVisible is not served on the search title. A refused reader keeps the bare id, as dispatched. Serving the name would need a system-context read, which is a separate disclosure decision."
],
"overlap_check": "VERDICT clean exit 0 (origin/main merges cleanly, 0 PR heads overlapping) before every push; last at ff64484d3d"
}
Close-out 2026-11-19T04:55Z: PR #35292 MERGED as 22af9e659e; Fixes closed this card. Delivered: a ⌘K / global-search hit whose nameField is a reference field (lookup / master_detail / user / tree) is titled by the target record's ADR-0079 title, read once per searched object as the searcher; a refused reader keeps the bare id; the hit's wire shape is unchanged. Correction of the card's premise: the named stock producer sys_record_share.recipient_id is a polymorphic Field.text, not a lookup, so its title does not change here. Follow-ups owed by L1 ACCEPT 6998964493, nested under this card: #35307 (record-share palette title) and #35308 ([Decision] referenceNameVisible on the search title). pm:dispatched off.
Activity
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Ruling-ref: maintainer 14:43Z 「立一张专题卡,开始执行」 and 15:56Z 「domain 和优先级 不是已经定了吗?为什么现在不能改卡」 · regrade v3 under epic #35205
Grade: p2 (was p3) · area:ux · Bug · UX × daily · the ⌘K palette titles a record by its raw lookup id
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Claim: PM loop round 2 (area-lease ux-3 of repo:objectstack#5; the maintainer, verbatim, 2026-11-19T00:07Z: 「接手 area:ux」「优先 p1 p2」) · 2026-11-19T01:46Z
Session:
session_01Utp6CZiaBg6rk7dpy1s9MeAccount:
os-billBranch:
claude/issue-34175-palette-lookup-titleWorktree:
objectstack-issue-34175(os-dev worktree in the ux-3 container)Domain:
domain:serverSeat:
repo:objectstack#5File surface:
packages/metadata-protocol/src/protocol-record-reads.ts(searchAll/renderTitle) and, only if a shared title helper must move, its file inpackages/metadata-protocol/src/**; a new test file named for this card; changeset. ⛔packages/plugins/plugin-audit/**,packages/spec/**. Stop on breach and report.Container & model:
S,mode:subagent,model: default — no path-derived mandate,effort: highClause-②: no
Metadata-protocol: none
Responsibility: platform —
packages/metadata-protocol/src/protocol-record-reads.tssearchAll→renderTitlereturnsrow[titlePointer]as stored (objectstack); the record header ($expand) and activity rows (#34172) already follow the lookup, the palette does not; every user searching an object whosenameFieldis lookup-typed (sys_record_share.recipient_idon stock).Thread-read: 6984496169
Premise: holds — on main
renderTitle(~:440) returnsString(row[titlePointer])with no lookup follow; to be measured first by the dev as the card asks.Serial constraints cleared: none — no open PR touches
protocol-record-reads.tsat claim time.Pre-claim lane: server —
packages/metadata-protocol/src/**(domain:server).Pre-claim deps: none named; sibling #34055 / PR #34172 merged.
Prior rulings read: ADR-0079 (record display name,
titleFieldOf); ruling 6574398310 (referenceNameVisible: a refused reader keeps the bare id); the card's fence that the hit's wire shape does not change.Lease:
lease:ux-3objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
os-dev-report
{ "issue": 34175, "status": "done", "branch": "claude/issue-34175-palette-lookup-title", "pr": "https://github.com/objectstack-ai/objectstack/pull/35292", "head": "ff64484d3d05c0ab670d59c748da0926434faa16", "session": "session_01Utp6CZiaBg6rk7dpy1s9Me", "premise_still_valid": true, "summary": "searchAll now titles a hit whose nameField is a reference field (lookup/master_detail/user/tree, via spec referenceTargetOf) by the target record's ADR-0079 title. The target titles come from one id-$in find per swept object, selecting only id and the title column, with the searcher's own context. A refused reader keeps the bare id: a target whose exposure does not serve get, canReadObject false, a PERMISSION_DENIED read, a row outside the row scope, or a title column stripped by FLS. Any other failure of the target read propagates, as in #8896. The hit wire shape is unchanged. The premise holds for the ask as written (lookup-typed nameField). However, the card's named stock producer, sys_record_share.recipient_id, is a Field.text column, not a lookup, so its palette title is not changed by this fix (see out_of_scope_findings).", "measured_on_main": "d6d9645056, new test file before the fix: the PIN answered { pm_1: 'per_1', pm_2: 'per_2', pm_3: 'per_1' }, i.e. hits titled by the raw lookup id; Tests 7 failed | 4 passed (11) (the 4 are refusal/exposure/wire-shape/control legs, vacuous on main).", "refused_reader_pin": "packages/metadata-protocol/src/protocol.search-title-lookup.test.ts has four REFUSED legs: the object is refused before any read (the target is never read), the read throws PERMISSION_DENIED, the row is outside the row scope, and FLS strips the title column. Each keeps the bare id. There are also an exposure-without-get leg and an outage-propagates leg, which asserts code and status. Ablation: deleting the canReadObject pre-check (ablation-replace anchor 1 to 0, blob 35ced7511b80 to f92c32c63df5) turns the object-refused leg red, Tests 1 failed | 10 passed (11). The restore put the blob back equal to HEAD, with git diff HEAD empty.", "tests": "Measured at bc101adfda: pnpm --filter @objectstack/metadata-protocol typecheck exited 0 (tsc --listFiles includes the new test), and vitest run --maxWorkers=2 gave Test Files 358 passed | 9 skipped (367), Tests 23218 passed | 45 skipped (23263), VERDICT command-exit 0. Re-measured at ff64484d3d: the new test file gives Tests 11 passed (11), and core --project repo src/security/second-object-read-exposure.pin.test.ts gives Tests 4 passed (4), VERDICT command-exit 0. Not caused by this diff: plugin-security org-admin-assignment-boundary.posture.test.ts gives Tests 104 passed (104) locally.", "gates": "Local, final head ff64484d3d: dispatch-gates --commands derived 69 families, 69 were run and all exited 0. dispatch-gates --ran: 69 accounted for, 0 NOT-MEASURED, 0 UNRUN, exit 0. overlap-check: VERDICT clean exit 0 before each push. Earlier heads: check:test-source-alias exited 1 on the new test, fixed in 7e664c7da9. check:lean-entry-closure exited 3 until objectql was built, then 0. CI on ff64484d3d: every non-skipped check-run is completed/success, including Lint & Repo Gates, TypeScript Type Check, Test Core 1-10/10, Build Core, Governed Surface Queue Guard, Type Check UI/Test UI/Build & E2E UI/Live E2E UI, Dogfood Regression Gate and Check Changeset. Earlier, on 7e664c7da9, Test Core 6/10 was red on the core second-object-read-exposure pin (fixed by classifying the caller), and Test Core 8/10 had a 5000 ms timeout in an untouched plugin-security test.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "4. Relay fleet-write: (1) pr_create, POST /repos/objectstack-ai/objectstack/pulls plus POST /issues/35292/assignees (os-bill). (2) and (3) issue_patch, PATCH /repos/objectstack-ai/objectstack/issues/35292 (PR body: final gate readings, then the core-pin classification and CI readings). (4) post-stamped, POST /repos/objectstack-ai/objectstack/issues/34175/comments (os-dev-report). git push is not counted.", "line_budget": "n/a — no skills/** or ratcheted ledger touched", "files_changed": [ "packages/metadata-protocol/src/protocol-record-reads.ts", "packages/metadata-protocol/src/protocol.search-title-lookup.test.ts", "packages/core/src/security/second-object-read-exposure.pin.test.ts", ".changeset/34175-search-lookup-title.md" ], "deviations": [ "File surface: packages/core/src/security/second-object-read-exposure.pin.test.ts is outside the claim's surface. CI reds any unclassified caller of referenceTargetOf, so the new read had to be registered as a decided read: a CALLERS row plus the pinned decision-function list. The edit is mechanical and is named in the PR body.", "The PR body was patched twice through the relay's issue_patch, as the parent's note allowed, to cite the final-head gate union and the CI readings. The first commit was amended before its first push, to make the trailer model-free as AGENTS.md requires.", "The searchAll method docblock in protocol.ts is not edited, because it is outside the file surface. The contract text lives on readReferenceTitles and servesSearchTitleTarget." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "class: a · reach: not measured at a public door (inferred from source plus spec: canServeApiOperation({apiMethods:['get','list']}, 'search') answers true, measured with the built spec) · evidence: sys_record_share.nameField is recipient_id, a Field.text polymorphic principal id paired with recipient_type, so the palette still titles a record-share hit by the raw recipient id. A fix needs the recipient_type-keyed directory read that the console's recipient-picker face performs, which is a different design from following a lookup · dedupe words: record share palette title, recipient_id raw id, search title polymorphic recipient · carrier: os-bill (area ux-3) · noted, not filed", "carrier: none · noted, not filed: referenceNameVisible is not served on the search title. A refused reader keeps the bare id, as dispatched. Serving the name would need a system-context read, which is a separate disclosure decision." ], "overlap_check": "VERDICT clean exit 0 (origin/main merges cleanly, 0 PR heads overlapping) before every push; last at ff64484d3d" }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me
Close-out 2026-11-19T04:55Z: PR #35292 MERGED as
22af9e659e;Fixesclosed this card. Delivered: a ⌘K / global-search hit whosenameFieldis a reference field (lookup / master_detail / user / tree) is titled by the target record's ADR-0079 title, read once per searched object as the searcher; a refused reader keeps the bare id; the hit's wire shape is unchanged. Correction of the card's premise: the named stock producersys_record_share.recipient_idis a polymorphicField.text, not a lookup, so its title does not change here. Follow-ups owed by L1 ACCEPT 6998964493, nested under this card: #35307 (record-share palette title) and #35308 ([Decision]referenceNameVisibleon the search title).pm:dispatchedoff.fix(metadata-protocol): title a record-share search hit by its recipi…