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
[Decision] Search title of a refused reader: should the ⌘K palette serve the target's name on a lookup field that declares referenceNameVisible, as $expand does? (follow-up to #34175) #35308
Filing gate: ② out-of-scope finding owed by the L1 ACCEPT of PR #35292 (comment 6998964493, 范围外去向 (b)). A decision question, not a defect: ⛔ not a claim; the maintainer decides.
The question
PR #35292 (#34175) titles a ⌘K / global-search hit whose nameField is a reference field by the target record's title, read as the searcher. A searcher refused the target keeps the bare id. $expand answers differently on a field that declares referenceNameVisible: true (ruling 6574398310): it serves { id, name, readRefused: true }, i.e. the target's name even to a refused reader. Should the search title follow referenceNameVisible too?
Serve the name: the palette matches $expand. It needs a system-context read of the target's title column for refused readers, which is a disclosure decision on a second surface (search), so it is not taken without a ruling.
First touch: a decision for the maintainer: should ⌘K serve a target's name to a refused reader when the lookup declares referenceNameVisibility? area:ux · pm:awaiting-maintainer · p2 (no type until the decision says what to build). The answer turns on the access contract, so this belongs to him.
Ruling (2026-11-22T10:28Z): option B, low priority. The maintainer (Steedos) answered in the project at 2026-11-22T10:27Z: 「附件预览(#34781) 和我讨论具体方案及开发成本, 其他同意」. "其他" is the recommendation a Fable-analysed rulings thread put to him for this card.
What the ruling binds:
When the lookup field declares referenceNameVisible (that is the spelling; referenceNameVisibility does not exist), the ⌘K hit's title shows the target's name to a reader refused the target. It is display only and never joins the match set.
The ruling reuses the engine's existing elevated read (engine-reference-name-visible.ts). It adds no second system-context read in metadata-protocol, and the hit's wire shape is unchanged.
Four pins: with the switch and a refusal, the name shows; without the switch, the id shows; with the name column FLS-masked, the masked value shows; a search by the target's name finds nothing.
pm:awaiting-maintainer is removed in this act, and the card enters the queue for seat 7's f7-shell area.
Triage: lands in area:ux · domain:ui · Task · priority:p2 · pm:queue · size S; rationale: the decision is ruled (option B), so what remains is building B on the ⌘K search title. The type and grade stay as set.
Audit record in the shape the claim check reads. Earlier triage touches on this card used another opening. A claimant should read the ruling comment of 2026-11-22T10:29Z first, because it says "low priority".
Claim: PM loop round 1
Session: session_01L9qibyUSf2nKJWW6qBemSU
Thread session: session_01L9qibxFCuXLc5ZzhPKym5c
Account: os-tesla
Branch: claude/project-thread-032j7p
Worktree: objectstack-issue-35308
Domain: server (the fix lands in packages/metadata-protocol; the card's domain:ui label is triage's to move, the UI shows hit.title unchanged)
Area: o3-ux (area:ux p2, a seat card thread)
Seat: repo:objectstack#3
Seat rulings on the pre-claim report (/mnt/project-files/card-35308/pre-claim-report-bd5407ec.md, main bd5407e), under the maintainer's ruling B (7077827375):
Premise holds: readReferenceTitles (protocol-record-reads.ts ~343) reads target titles as the searcher; a refused id falls to a bare id in renderTitle (~657); referenceNameVisible is read nowhere in the file.
Route A: for ids readReferenceTitles left untitled, and only after the same get exposure and disabled-package gates pass, read the source object once more as the searcher with expand on the pointer (fields ['id']), and take a title only from the engine's own serveReferenceNames answer where readRefused === true. No system-identity read is added in metadata-protocol; the hit's record shape is unchanged.
Pin 3 ("the masked value shows"): pinned as the engine's ADR-0079 fallback Record #<id> when the name column is FLS-unreadable or carries a maskingRule. That is the value the reused engine read serves, and it keeps the name hidden, so it meets the ruling; no fork.
Declaration: Clause-②: no, Metadata-protocol: none, @objectstack/metadata-protocol patch — no authorable key changes, the key's existing meaning gains one more place it is honoured. Spec prose unchanged; the metadata-protocol comment says a search title is not a field value.
The optional docs sentence is not written here.
File surface:
packages/rest/src/search-title-reference-name-visible.test.ts (new, real SecurityPlugin + ObjectQL + SqlDriver).
packages/core/src/security/second-object-read-exposure.pin.test.ts only if its read: description must change.
One .changeset/*.md (@objectstack/metadata-protocol patch).
Stop on breach and explain in the report.
Container & model: S, mode:thread, model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate"), effort: high, reason: the thread session serves this tier and a security-adjacent read path wants the higher effort
Writes: the PR only through the relay pr_create; comments, labels and bodies only through the relay write tools; report both numbers.
Clause-②: no
Metadata-protocol: none
Responsibility: a ⌘K searcher who may read a record but not the record it points to sees the target's name (or the masked fallback) where the field says referenceNameVisible: true, instead of a bare id, and never finds a hit by the target's name.
Premise: holds, read on origin/main bd5407e
Serial constraints cleared: none — re-run overlap-check before the first push
Readings owed in the report: the four pins at both layers, the two controls (readable target not re-read; target not serving get stays a bare id), one ablation per layer.
{
"issue": 35308,
"status": "done",
"branch": "claude/project-thread-032j7p",
"pr": "https://github.com/objectstack-ai/objectstack/pull/38272",
"session": "session_01L9qibxFCuXLc5ZzhPKym5c",
"premise_still_valid": true,
"summary": "Route A as claimed. In searchAll, when the primary-title pointer is a reference field declaring referenceNameVisible: true, the ids readReferenceTitles left untitled go to the new readRefusedReferenceNames: after the same get-exposure and disabled-package gates, the source rows holding them are read once more as the searcher (id + pointer, where id $in) with expand on the pointer (fields ['id']), and only the engine's own serveReferenceNames answers with readRefused === true title a hit. No system-context read in metadata-protocol; hit wire shape unchanged (record keeps the stored id); name never joins the match set; FLS-hidden or maskingRule name column = the engine's Record #ID floor (seat ruling on pin 3). patch changeset for @objectstack/metadata-protocol, Clause-② no, Metadata-protocol none.",
"tests": "Unit (protocol.search-title-lookup.test.ts, engine double answering $expand as serveReferenceNames does): 10 new cases, PIN 1 object gate + row scope (one ask, as the searcher, exact options), PIN 2 no switch -> bare id and no ask, PIN 3 Record #per_1, PIN 4 search 'Grace' -> 0 hits, wire shape, CONTROL readable (no ask), CONTROL FLS-stripped readable title keeps bare id, CONTROL target not serving get, failing ask -> envelope; file 21/21. Real backend (packages/rest/src/search-title-reference-name-visible.test.ts, SecurityPlugin + ObjectQL + SqlDriver better-sqlite3): PIN 1 Hidden Co (row scope) + Vault One (object gate), PIN 2 a2, PIN 3 Record #l1 (FLS) + Record #b1 (maskingRule) with Payroll / Grace Hopper absent, PIN 4 Hidden / Vault One / Acme -> 0 hits, wire shape, CONTROL readable Acme with zero expand reads of the source, CONTROL get-less target x1; 8/8. Ablation (if (namesRefusedTargets) -> && 'ABLATED_35308' === '', ablation-replace anchor hit 1, committed fix): unit 4 failed | 17 passed; rebuilt metadata-protocol, tsup folded the marker to 'if (namesRefusedTargets && false) {', dist preflight PASS with that spelling, rest 2 failed | 6 passed (PIN 1, PIN 3); restored blob == HEAD 6e13ca07fb3e, git diff HEAD empty, rebuilt, preflight --absent PASS, 21/21 and 8/8 again. metadata-protocol test: 373 files passed | 9 skipped, 23631 tests passed | 45 skipped. typecheck metadata-protocol + rest exit 0. eslint 3 files: 0 problems.",
"gates": "Local: node scripts/pm/dispatch-gates.mjs --commands -> 67 families, each run with exit captured before any pipe (record /mnt/project-files/card-35308/gates-ran-0296f683.list); --ran: 67 derived, 65 run exit 0, 2 NOT MEASURED derived from exit 3: check-plugin-teardown-shape.mjs --self-test (fixture pinned to a commit this shallow checkout cannot reach) and check:dual-build-cjs-loads (needs every package's dist/; only the @objectstack/rest^... closure was built). overlap-check.mjs: merges cleanly vs origin/main 98bd8dee, VERDICT clean. CI check-runs on #38272: in_progress at report time; the seat reads them at L1.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "13 — read-only: issue_read x3, pull_request_read x1 (get_files #35292), get_session x1, subscribe_pr_activity x1, plus hearthbot thread tools (read_thread, message_thread, update_progress_checklist, post_message, no_reply_needed); no GitHub write tool",
"api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38272/assignees os-tesla, read back 8588 bytes identical); this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35308/comments)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": ["carrier: triage · the card's domain:ui label; the fix lands in packages/metadata-protocol (domain:server), noted in the claim, not filed"]
}
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch: a decision for the maintainer: should ⌘K serve a target's name to a refused reader when the lookup declares
referenceNameVisibility? area:ux ·pm:awaiting-maintainer· p2 (no type until the decision says what to build). The answer turns on the access contract, so this belongs to him.objectstack-fleet commentedon Nov 22, 2026
repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC
Ruling (2026-11-22T10:28Z): option B, low priority. The maintainer (Steedos) answered in the project at 2026-11-22T10:27Z: 「附件预览(#34781) 和我讨论具体方案及开发成本, 其他同意」. "其他" is the recommendation a Fable-analysed rulings thread put to him for this card.
What the ruling binds:
referenceNameVisible(that is the spelling;referenceNameVisibilitydoes not exist), the ⌘K hit's title shows the target's name to a reader refused the target. It is display only and never joins the match set.engine-reference-name-visible.ts). It adds no second system-context read in metadata-protocol, and the hit's wire shape is unchanged.pm:awaiting-maintaineris removed in this act, and the card enters the queue for seat 7's f7-shell area.objectstack-fleet commentedon Nov 25, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in area:ux · domain:ui · Task · priority:p2 ·
pm:queue· size S; rationale: the decision is ruled (option B), so what remains is building B on the ⌘K search title. The type and grade stay as set.Audit record in the shape the claim check reads. Earlier triage touches on this card used another opening. A claimant should read the ruling comment of 2026-11-22T10:29Z first, because it says "low priority".
objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
Claim: PM loop round 1
Session:
session_01L9qibyUSf2nKJWW6qBemSUThread session:
session_01L9qibxFCuXLc5ZzhPKym5cAccount:
os-teslaBranch:
claude/project-thread-032j7pWorktree:
objectstack-issue-35308Domain:
server(the fix lands inpackages/metadata-protocol; the card'sdomain:uilabel is triage's to move, the UI showshit.titleunchanged)Area:
o3-ux(area:ux p2, a seat card thread)Seat:
repo:objectstack#3Seat rulings on the pre-claim report (
/mnt/project-files/card-35308/pre-claim-report-bd5407ec.md, main bd5407e), under the maintainer's ruling B (7077827375):readReferenceTitles(protocol-record-reads.ts~343) reads target titles as the searcher; a refused id falls to a bare id inrenderTitle(~657);referenceNameVisibleis read nowhere in the file.readReferenceTitlesleft untitled, and only after the samegetexposure and disabled-package gates pass, read the source object once more as the searcher withexpandon the pointer (fields ['id']), and take a title only from the engine's ownserveReferenceNamesanswer wherereadRefused === true. No system-identity read is added in metadata-protocol; the hit'srecordshape is unchanged.Record #<id>when the name column is FLS-unreadable or carries amaskingRule. That is the value the reused engine read serves, and it keeps the name hidden, so it meets the ruling; no fork.Clause-②: no,Metadata-protocol: none,@objectstack/metadata-protocolpatch — no authorable key changes, the key's existing meaning gains one more place it is honoured. Spec prose unchanged; the metadata-protocol comment says a search title is not a field value.File surface:
packages/metadata-protocol/src/protocol-record-reads.ts,packages/metadata-protocol/src/protocol.search-title-lookup.test.ts.packages/rest/src/search-title-reference-name-visible.test.ts(new, realSecurityPlugin+ObjectQL+SqlDriver).packages/core/src/security/second-object-read-exposure.pin.test.tsonly if itsread:description must change..changeset/*.md(@objectstack/metadata-protocolpatch).Stop on breach and explain in the report.
Container & model:
S,mode:thread,model: claude-opus-5-5 (default tier — dispatch-gates.mjs --tier: "no path-derived mandate"),effort: high, reason: the thread session serves this tier and a security-adjacent read path wants the higher effortWrites: the PR only through the relay
pr_create; comments, labels and bodies only through the relay write tools; report both numbers.Clause-②: no
Metadata-protocol: none
Responsibility: a ⌘K searcher who may read a record but not the record it points to sees the target's name (or the masked fallback) where the field says
referenceNameVisible: true, instead of a bare id, and never finds a hit by the target's name.Premise: holds, read on origin/main bd5407e
Serial constraints cleared:
none — re-run overlap-check before the first pushReadings owed in the report: the four pins at both layers, the two controls (readable target not re-read; target not serving
getstays a bare id), one ablation per layer.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibxFCuXLc5ZzhPKym5c
os-dev-report
{ "issue": 35308, "status": "done", "branch": "claude/project-thread-032j7p", "pr": "https://github.com/objectstack-ai/objectstack/pull/38272", "session": "session_01L9qibxFCuXLc5ZzhPKym5c", "premise_still_valid": true, "summary": "Route A as claimed. In searchAll, when the primary-title pointer is a reference field declaring referenceNameVisible: true, the ids readReferenceTitles left untitled go to the new readRefusedReferenceNames: after the same get-exposure and disabled-package gates, the source rows holding them are read once more as the searcher (id + pointer, where id $in) with expand on the pointer (fields ['id']), and only the engine's own serveReferenceNames answers with readRefused === true title a hit. No system-context read in metadata-protocol; hit wire shape unchanged (record keeps the stored id); name never joins the match set; FLS-hidden or maskingRule name column = the engine's Record #ID floor (seat ruling on pin 3). patch changeset for @objectstack/metadata-protocol, Clause-② no, Metadata-protocol none.", "tests": "Unit (protocol.search-title-lookup.test.ts, engine double answering $expand as serveReferenceNames does): 10 new cases, PIN 1 object gate + row scope (one ask, as the searcher, exact options), PIN 2 no switch -> bare id and no ask, PIN 3 Record #per_1, PIN 4 search 'Grace' -> 0 hits, wire shape, CONTROL readable (no ask), CONTROL FLS-stripped readable title keeps bare id, CONTROL target not serving get, failing ask -> envelope; file 21/21. Real backend (packages/rest/src/search-title-reference-name-visible.test.ts, SecurityPlugin + ObjectQL + SqlDriver better-sqlite3): PIN 1 Hidden Co (row scope) + Vault One (object gate), PIN 2 a2, PIN 3 Record #l1 (FLS) + Record #b1 (maskingRule) with Payroll / Grace Hopper absent, PIN 4 Hidden / Vault One / Acme -> 0 hits, wire shape, CONTROL readable Acme with zero expand reads of the source, CONTROL get-less target x1; 8/8. Ablation (if (namesRefusedTargets) -> && 'ABLATED_35308' === '', ablation-replace anchor hit 1, committed fix): unit 4 failed | 17 passed; rebuilt metadata-protocol, tsup folded the marker to 'if (namesRefusedTargets && false) {', dist preflight PASS with that spelling, rest 2 failed | 6 passed (PIN 1, PIN 3); restored blob == HEAD 6e13ca07fb3e, git diff HEAD empty, rebuilt, preflight --absent PASS, 21/21 and 8/8 again. metadata-protocol test: 373 files passed | 9 skipped, 23631 tests passed | 45 skipped. typecheck metadata-protocol + rest exit 0. eslint 3 files: 0 problems.", "gates": "Local: node scripts/pm/dispatch-gates.mjs --commands -> 67 families, each run with exit captured before any pipe (record /mnt/project-files/card-35308/gates-ran-0296f683.list); --ran: 67 derived, 65 run exit 0, 2 NOT MEASURED derived from exit 3: check-plugin-teardown-shape.mjs --self-test (fixture pinned to a commit this shallow checkout cannot reach) and check:dual-build-cjs-loads (needs every package's dist/; only the @objectstack/rest^... closure was built). overlap-check.mjs: merges cleanly vs origin/main 98bd8dee, VERDICT clean. CI check-runs on #38272: in_progress at report time; the seat reads them at L1.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "13 — read-only: issue_read x3, pull_request_read x1 (get_files #35292), get_session x1, subscribe_pr_activity x1, plus hearthbot thread tools (read_thread, message_thread, update_progress_checklist, post_message, no_reply_needed); no GitHub write tool", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + POST issues/38272/assignees os-tesla, read back 8588 bytes identical); this os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/35308/comments)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": ["carrier: triage · the card's domain:ui label; the fix lands in packages/metadata-protocol (domain:server), noted in the claim, not filed"] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU
2026-11-28T13:16Z · 收口:PR #38272 经合并队列合入,本卡随 Fixes 关闭;去掉 pm:dispatched。