Skip to content

⌘K palette: a record-share hit is still titled by the raw recipient id, because sys_record_share is titled by the polymorphic text field recipient_id (follow-up to #34175) #35307

Closed

Description

@objectstack-fleet

repo:objectstack#5 · os-bill · session_01Utp6CZiaBg6rk7dpy1s9Me

Filing gate: ② out-of-scope finding owed by the L1 ACCEPT of PR #35292 (comment 6998964493, 范围外去向 (a)), from the #34175 os-dev report. ⛔ Not a claim; triage sets lane and grade.

What the user sees

In the ⌘K palette and global search, a sys_record_share hit is titled by a raw principal id (a user, role or group id), not by who the record is shared with.

Why (read from source and the built spec; not measured at a public door)

Fix direction (a different design from #34175)

Title the hit through a recipient_type-keyed directory read (user / role / group), the same read the console's recipient-picker face performs, run as the searcher, with the bare id kept for a refused reader (the #34175 rule).

Reader

packages/metadata-protocol record reads (domain:server), or whoever owns the record-share surface.

Dedupe: open-issue search record share palette title, recipient_id raw id, search title polymorphic recipient → none.

Activity

  1. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    First touch (rules of #35223): area:ux · Bug · Cosmetic (a ⌘K record-share hit is titled by the raw recipient id) · end users → p2 (UX rule), domain:ui · pm:queue. Issue type set to Bug.

  2. added
    domain:ui
    pm:queue
    priority:p2
    on Nov 19, 2026
  3. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

    Claim: PM loop · area a4-H · 2026-11-22T04:31Z
    Session: session_01FEkQ5oK4fFfnLADcipbEeT
    Account: os-project-manager
    Branch: claude/issue-35307-share-hit-title
    Worktree: objectstack-issue-35307
    Domain: domain:ui
    Seat: repo:objectstack#4
    Area: a4-H
    File surface: packages/metadata-protocol/src/protocol-record-reads.ts (the searchAll hit title for an object whose nameField is a polymorphic principal id paired with a type field), a helper beside it if needed, its tests, a changeset; packages/plugins/plugin-sharing/src/objects/sys-record-share.object.ts only if a declared pointer is the measured route (stop on breach; explain in the report)
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier: no path-derived mandate), effort: high (area order a4-H)
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the searchAll hit title in objectstack packages/metadata-protocol for sys_record_share (nameField: 'recipient_id', a text principal id) | PR #35292 (#34175) titles a reference-typed nameField through the target's ADR-0079 title and keeps the bare id for a refused reader; a text pointer is outside it | every ⌘K / global search user who hits a record share
    Thread-read: 6999104572
    Premise: holds — on origin/main 13da40c sys-record-share.object.ts declares nameField: 'recipient_id' (a text field paired with recipient_type), and protocol-record-reads.ts follows only reference-typed pointers (PR #35292).
    Pre-claim lane: repo:objectstack whole-repo lane, area a4-H (named by the seat 2026-11-22T03:28Z); the fix lands in packages/metadata-protocol (server package family) while the card carries domain:ui — triage's label, noted, not changed here.
    Pre-claim deps: #34175 closed, PR #35292 merged.
    Prior rulings read: palette,record-share,titled,recipient,sys_record_share,polymorphic,text,field,recipient_id,follow-up → 167 hits; ADR-0003 Decision §2–§4, ADR-0014 Decision §2, ADR-0022 Decision §2, ADR-0032 Decision §2–§3, ADR-0058 D3, ADR-0061 D2–D3; protocol-record-reads.ts cites the 2026-08-29 search ruling (search is not a second read door; a read that could not run is never answered as no match), which binds this fix; thread: none.
    Fold-or-serial: not folded.
    Serial constraints cleared: none on this file surface at origin/main 13da40c

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#4 · os-project-manager · session_01FEkQ5oK4fFfnLADcipbEeT

    Release: claim 7074227216 (area a4-H, branch claude/issue-35307-share-hit-title) · 2026-11-22T04:46Z · never dispatched: no dev ran, no branch was pushed, no code exists.
    Reason: the maintainer cut the seat's concurrency before the dev slot opened. Provenance: Leehom, 「当前任务处理完,后续并发降到10」, in the project chat at 2026-11-22T04:45Z, relayed to this area by the seat thread session_01FEkQ5krBqrrgxCYgjXmfbv; the seat paused this card.
    Back to pm:queue, assignee cleared. Ready for the next claimant: premise holds on origin/main 13da40c (sys-record-share.object.ts nameField: 'recipient_id', a text field; protocol-record-reads.ts follows only reference-typed pointers, PR #35292). The fix is server-side in packages/metadata-protocol although the card carries domain:ui. A ready dispatch order sits in the project folder of seat repo:objectstack#4 (a4-H/order-35307.md).

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm

    Claim: PM loop · area s2-B · 2026-11-22T16:55Z
    Session: session_01ADHkmRB34k9WUWeGpRnVNm
    Account: os-steve
    Branch: claude/issue-35307-share-hit-title
    Worktree: objectstack-issue-35307
    Domain: domain:ui
    Seat: repo:objectstack#2
    Area: s2-B
    File surface: packages/metadata-protocol/src/protocol-record-reads.ts (the searchAll hit title for an object whose nameField is a polymorphic principal id paired with a type field), a helper beside it if needed, its tests (new card-named test file), a changeset; packages/plugins/plugin-sharing/src/objects/sys-record-share.object.ts only if a declared pointer that already exists in spec is the measured route. ⛔ No packages/spec/src/** change: a route that needs a new spec key stops and reports a fork (stop on breach; explain in the report)
    Container & model: M (design judgement in the directory read), mode:subagent, model: default tier (dispatch-gates --tier at 70194ffc: no path-derived mandate), effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: the searchAll hit title in objectstack packages/metadata-protocol for sys_record_share (nameField: 'recipient_id', a text principal id paired with recipient_type) | PR #35292 (#34175) titles a reference-typed nameField through the target's ADR-0079 title and keeps the bare id for a refused reader; a text pointer is outside it | every ⌘K / global search user who hits a record share
    Thread-read: 7074374906
    Premise: holds — on origin/main 70194ff sys-record-share.object.ts:54 declares nameField: 'recipient_id'; protocol-record-reads.ts:559-570 follows only a pointer referenceTargetOf answers for (reference-typed), so a text pointer renders the raw id.
    Pre-claim lane: repo:objectstack whole-repo lane, area s2-B (seat 2 area order 2026-11-22); the fix lands in packages/metadata-protocol (server package family) while the card carries domain:ui — triage's label, kept here (whole-repo lane; fixes stay in lane).
    Pre-claim deps: #34175 closed, PR #35292 merged; no Blocked-by: line.
    Prior rulings read: palette,record-share,titled,recipient,sys_record_share,polymorphic,text,field,recipient_id,follow-up → 167 hits; ADR-0003 Decision §2–§4, ADR-0014 Decision §2, ADR-0022 Decision §2, ADR-0032 Decision §2–§3, ADR-0058 D3, ADR-0061 D2–D3; protocol-record-reads.ts cites the 2026-08-29 search ruling (search is not a second read door; a read that could not run is never answered as no match), which binds this fix; thread: none.
    Fold-or-serial: not folded — no other claimable s2-B card shares this mechanism or file.
    Serial constraints cleared: no open PR touches protocol-record-reads.ts or sys-record-share.object.ts at 2026-11-22T16:55Z (open-PR file read; #36517 touches other metadata-protocol files only)

  8. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 22, 2026
  9. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRB34k9WUWeGpRnVNm
    os-dev-report

    {
     "issue": 35307,
     "status": "done",
     "branch": "claude/issue-35307-share-hit-title",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/36523",
     "session": "session_01ADHkmRB34k9WUWeGpRnVNm",
     "premise_still_valid": true,
     "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at e8b22f7f: 67 families, each run with stdin closed, exit captured before any pipe: 67 exit 0 (teardown-shape --self-test, check:dual-build-cjs-loads, check:lean-entry-closure first exit 3 for prerequisites: clone unshallowed, full build at concurrency 2; re-run exit 0). --ran: 67 derived, 67 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check: VERDICT clean exit 0. PR check-runs at e8b22f7f when reported: Lint & Repo Gates success, TypeScript Type Check success, Build Core success, Governed Surface Queue Guard success, Dogfood Regression Gate success, Test UI success, Live E2E UI success, Check Changeset success, PR-body guards success, Test Core shards 2,4,5,6,7,8 success and 1,3,9,10 in_progress.",
     "tests": "head e8b22f7f: pnpm --filter @objectstack/metadata-protocol typecheck exit 0; vitest run 363 files passed, 9 skipped, 23336 tests passed, 45 skipped (lock VERDICT command-exit 0). New file protocol.search-title-recipient-35307.test.ts plus search-title-lookup and search-title-namefield: 3 files, 32 tests passed. Ablation: call site renderTitle(row, referenceTitles ?? recipient map) reverted on disk by scripts/ablation-replace.mjs (anchor 1 to 0, blob 34aaaee9 to 20eb4f9f), new file 5 failed / 7 passed, restored blob == HEAD and git diff HEAD empty; suite imports ./protocol.js from source so no dist leg. test:repo not run locally (CI Test Core).",
     "api_writes": "4: fleet-write relay pr_create (POST pulls, plus its POST issues/36523/assignees leg), relay issue_patch on PR 36523 body, post-stamped comment on issue 35307",
     "mcp_calls": "0",
     "security_findings": "none",
     "deviations": "(1) PR body ends with the relay-required signed trailer after the robot line: issue_patch refuses a body without it, so the verbatim robot line is the second-to-last non-empty line. (2) Maintainer read-through has four lines, per os-dev.md (at most four, fixed), not the six the dispatch asked. (3) New test file per the claim's file surface rather than a describe in protocol.search-title-lookup.test.ts (AGENTS shared-harness rule), since that file is outside the claimed surface. (4) First full build was launched without turbo --concurrency=2 (mostly cache hits); stopped by recorded PIDs and re-run at concurrency 2.",
     "files_changed": [
      ".changeset/35307-search-recipient-title.md",
      "packages/metadata-protocol/src/protocol-record-reads.ts",
      "packages/metadata-protocol/src/protocol.search-title-recipient-35307.test.ts"
     ],
     "line_budget": "389 changed lines (+388/-1), under the 3000 threshold; no skills/** change"
    }
  10. removed
    pm:dispatched
    on Nov 22, 2026
  11. added a commit that references this issue on Nov 23, 2026
    07b1754
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:uipriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions