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
Record activity rows title a record by its raw lookup id when the object's nameField is a lookup ("Created Project Member \"gCX6SR…\"") #34055
Filing gate ① a reproduced defect (user-visible), measured from HotCRM 6.4.0 on platform 18.5.0 during the end-to-end customer test.
What happens
crm_project_member declares nameField: 'person', a lookup to sys_user (hotcrm src/psa/objects/project_member.object.ts:24). The console resolves it correctly in the record header: the record page H1 reads Chris Consultant. Every activity row about the same record, on its own page, on the parent project and in the home Activity feed, prints the stored foreign key instead:
Surface
Shows
Record page header (/_console/apps/app.objectstack.hotcrm.psa/crm_project_member/record/NtAM2vJYa1Iae8OP)
Chris Consultant
Same page, Activity: create row
创建了 项目成员 "gCX6SRAtjmbpOPbxbcit1JxebXaHdAch"
Same page, Activity: update row
更新了 项目成员 "gCX6SRAtjmbpOPbxbcit1JxebXaHdAch":费率卡
Home → Activity feed (project manager)
Pablo PM 创建了 项目成员 "ZqLE6ESvrvQf3EZ4VW7ewDFi2VdrXigU"
Reach: the console, measured once (zh-CN; en reads the same id). Reproduce on any app object whose nameField is a lookup: create a row, then open its Activity.
Seam
The activity/audit record label resolves the nameField's stored value without following the lookup to the target's display name. #21878 (closed) moved recordLabel to the ADR-0079 resolver; that resolver appears to stop at the stored column. #33107 (closed) fixed the same class for analytics dimension labels; #30454 and #26195 (closed) fixed it per system object.
Suggestion
Resolve a lookup nameField to the target record's own title when the label is written (or rendered), as the record header already does. If a lookup nameField is not meant to be supported, the alternative is to refuse it at publish (os lint / schema). Then the record header's resolution is the unintended half, and apps get a loud error instead of ids in their feed.
Business reason
Every PSA tenant sees the staffing feed, which is the first thing a project manager reads after staffing a project, as rows of 32-character ids. Any app that titles a join object by its person (memberships, assignments, attendees) hits the same thing.
Reader: the objectstack server lane (plugin-audit / record label), or spec if the decision is to refuse lookup nameFields.
Grade suggestion: priority:p2: user-visible on a shipped surface, reproducible, no data loss. Size: S.
Dedupe:gh api search/issues on repo:objectstack-ai/objectstack is:issue activity nameField lookup (15 hits) and "nameField" lookup raw id (15 hits, overlapping). All are closed and none covers a lookup-typed nameField in activity rows: #21878, #33107, #30454, #26195, #20015 and #20059 are the nearest.
Triage: first touch → domain:server · p2 · 2026-11-15T17:46Z
⛔ Not a claim.
When an object's nameField is a lookup (HotCRM crm_project_member → sys_user), every activity row titles the record by the raw lookup id ("Created Project Member "gCX6SR…""), while the record header shows the person's name. Measured by HotCRM on 18.5.0, user-visible on every such record, so p2. The stored summary is composed in plugin-audit, the same place as #33830. One seat should take both.
⛔ Not a claim. A second site of this class, for whoever takes the card (measured by the #33864 dev, os-dev report 6899087689, item 4):
Setup ⌘K palette record hits title a row by its stored nameField value: packages/metadata-protocol/src/protocol-record-reads.ts ~l.438–442 (renderTitle in the searchAll path) returns row[titlePointer] as stored, without following a lookup. sys_record_share declares nameField: 'recipient_id' (a lookup), so a Record Share hit is titled by the raw recipient id.
One resolver that follows a lookup nameField to the target's title would close both the activity rows here and the palette hits. The ui/ half of #33864 lands as Part of #33864 (PR #34088); its item 4 is carried here, not on a ui card.
Claim: PM loop (area S2, #33751 §2; seat-routed into S2's free slot, an unleased p2; p3 #33830 rides along in the same PR, same plugin-audit summary composer)
Session: session_01QsR2jUg7BKfRBcTPyMxbLh
Account: zhuangjianguo
Branch: claude/area-A3-34055
Worktree: /home/claude/wt/area-A3-34055
Domain: domain:server
Seat: domain:server#5
File surface: packages/plugins/plugin-audit/src/** (the activity summary composer and its record-label read) · the ADR-0079 record-title resolver it calls, only where a lookup nameField must follow to the target's title · packages/metadata-protocol/src/protocol-record-reads.ts (renderTitle in searchAll, the palette site named in 6899142203) if the same resolver serves it · new test files named for this card · .changeset/** (stop on breach; explain in the report)
Container & model: M, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: objectstack (plugin-audit activity summaries): a lookup nameField is written as the stored foreign key instead of the target record's title · every app whose join object is titled by a person (HotCRM crm_project_member)
Premise: holds (HotCRM measured on 18.5.0; the dev pins it red-first)
Serial constraints cleared: no open PR touches plugin-audit's activity files or protocol-record-reads.ts (file lists read at claim time); the dev runs git merge-tree before push
Pre-claim lane: domain:server (plugin-audit plus the record-title read); the card's alternative of refusing a lookup nameField at publish is not taken, because the record header already resolves it, so no spec change
Pre-claim deps: none (#21878, #33107, #30454, #26195 closed)
Prior rulings read: ADR-0079 (record title resolver); #32655 / ruling C on #32440 (request-locale text, relevant to #33830's boolean wording); triage 6898663329 ("one seat should take both", #33830)
{
"issue": 34055,
"status": "done",
"branch": "claude/area-A3-34055",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34172",
"session": "session_01QsR2jUg7BKfRBcTPyMxbLh",
"premise_still_valid": true,
"summary": "Both cards are fixed in plugin-audit in one PR (Fixes #34055, Fixes #33830; #33830 rides along). #34055: recordLabel now follows a reference-typed title field (lookup / master_detail / user) to the target record's title through the existing resolveLookupTitles (ADR-0079 titleFieldOf on the target, the exposure gate on get, the credential/internal/key-material skips, one id-$in read projected to id plus the title column). The resolver now takes its reader as a parameter: the label reads as the WRITER (the hook's own api), and the two summary branches are unchanged. That is the server-side equivalent of the record header's $expand, which reads as the reader. A writer refused the title column, or served the row without it, keeps the stored value. #33830: a boolean/toggle value with no declared option is stored as {text: English word, boolean} in the summary code and worded through two new plugin catalogue keys, messages.activityValueTrue/False (all 11 bundles), in the write locale for the stored sentence and the reader's negotiated locale on read. Declared options still win, and milestone tokens keep the raw value. The palette renderTitle site is not fixed (see out_of_scope_findings): the reused resolver is a plugin-audit closure that metadata-protocol cannot import, and the engine alternative ($expand) changes the hit's record wire shape.",
"tests": "New files: src/activity-lookup-name-field-label-34055.test.ts (12 cases; bare engine plus the real installAuditWriters plus a counting driver; read-scope refusals as engine middleware) and src/activity-boolean-change-wording-33830.test.ts (6 cases; real kernel, AuditPlugin, sqlite-wasm, reader locale through the read middleware). RED FIRST: the 3 source files restored to the BASE 63db7240aa blobs (hash-object equal to the BASE:path blobs), then both files run: 'Tests 11 failed | 7 passed (18)'. The 7 that pass are the floors and controls, e.g. Received 'Status: New → Converted; Converted: false → true' and expected 'usr_grace_hopper_…' to be 'Grace Hopper'; restored to HEAD, tree clean. GREEN: 'Test Files 2 passed (2) / Tests 18 passed (18)'. Package suite at the merged head 49982fab3f, under the lock with the closure rebuilt after merging origin/main: 'pnpm --filter @objectstack/plugin-audit test && … typecheck': 'Test Files 96 passed (96) / Tests 1559 passed (1559)', 'check:test-typecheck: OK', VERDICT command-exit 0. The same 96/1559 also held at the pre-merge head 54254153bc. ABLATIONS (scripts/ablation-replace.mjs at 49982fab3f; every leg logged 'mutation landed: anchor 1 -> 0' and 'restored: blob == HEAD … git diff HEAD is empty'; source is imported relatively from src, so no dist leg): A, the label handed no titles: 5 red; B, the label read as api.sudo(): 2 red (the refused writer and the column-stripped writer get the title, which is the read-scope pin); C, the writer stores String(value): 4 red; D, the composer ignores the boolean: 2 red.",
"gates": "Local subset: dispatch-gates --commands at 49982fab3f (repo objectstack-ai/objectstack, fresh tree) derived 71; 68 exited 0, each exit captured before any pipe. Not measured locally: check:i18n exit 3 (PREREQUISITE NOT MET: CLI plus a multi-package build; the generated object bundles are untouched, messages.ts is hand-written), check:dual-build-cjs-loads exit 3 (needs a full pnpm build), check:type-check-debt exit 124 (local 280s timeout). All three are declared to CI. --ran reconciliation: '71 derived, 68 run, 0 NOT-MEASURED, 3 UNRUN' (the same three). PR-body gates on the body as sent: check-partof-closing-keyword exit 0; check-closing-target-claim exit 0 with UNDETERMINED for #34055 and #33830 (the newest Claim: comments' Branch: lines are backticked, '(shared)' on #33830, so the gate cannot parse them; this is a claim-format note for the seat); check-single-claim-paths on PR 34172 exit 0. git merge-tree --write-tree --name-only vs origin/main is clean; no open PR (all 80 read) touches the changed files. CI check-runs at head 49982fab3f when this report was written: Governed Surface Queue Guard=success; Check Changeset, Check PR Size, Lint · (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped ×3), PR-body guards and Type Check · (workspace, source, consumer, debt ledger) all in_progress; opt-in, queue and schedule jobs skipped.",
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay pr_create (POST repository_dispatch, which created pulls/34172); post-stamped issue comment on #34055 (this report). Plus 1 pointer comment on #33830 via post-stamped, which the dispatch asked for. git push is not counted.",
"open_questions": [],
"security_findings": "withheld",
"out_of_scope_findings": [
"class: a · reach: named producer: sys_record_share declares nameField recipient_id (a lookup), measured by the #33864 dev (os-dev report 6899087689 item 4, carried on #34055 by note 6899142203); not re-measured here · evidence: packages/metadata-protocol/src/protocol-record-reads.ts searchAll renderTitle returns row[titlePointer] as stored, so a ⌘K palette hit on an object titled by a lookup is titled by the raw foreign key. Not fixed in this PR: the resolver it reuses is a plugin-audit closure that metadata-protocol (below it in the graph) cannot import, and following the lookup with $expand in the palette's find would change each hit's returned record shape on the wire. Seam: spec:ObjectSchema.nameField (lookup-typed) → runtime:protocol-record-reads.ts searchAll renderTitle · dedupe words: palette searchAll renderTitle lookup nameField raw id, sys_record_share recipient_id title, global search hit title foreign key",
"carrier: none · noted, not filed: the trailing signed line of the PR body is written as plain text, not as the HTML comment the dispatch spelled; os-dev.md forbids HTML comments in GitHub text except the harness's first-line attribution comment, and it outranks the dispatch on conflict",
"carrier: none · noted, not filed: AGENTS.md ruling record 6583487846 (pin into an existing shared harness file) was weighed against the dispatch's new-files instruction; neither component has a shared harness file, so new files were used"
]
}
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:server· p2 · 2026-11-15T17:46Z⛔ Not a claim.
When an object's
nameFieldis a lookup (HotCRMcrm_project_member→sys_user), every activity row titles the record by the raw lookup id ("Created Project Member "gCX6SR…""), while the record header shows the person's name. Measured by HotCRM on 18.5.0, user-visible on every such record, so p2. The stored summary is composed in plugin-audit, the same place as #33830. One seat should take both.objectstack-fleet commentedon Nov 15, 2026
domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf
⛔ Not a claim. A second site of this class, for whoever takes the card (measured by the #33864 dev, os-dev report 6899087689, item 4):
nameFieldvalue:packages/metadata-protocol/src/protocol-record-reads.ts~l.438–442 (renderTitlein thesearchAllpath) returnsrow[titlePointer]as stored, without following a lookup.sys_record_sharedeclaresnameField: 'recipient_id'(a lookup), so a Record Share hit is titled by the raw recipient id.sys_notification,nameField: 'topic') is NOT MEASURED; it may be a different cause.One resolver that follows a lookup
nameFieldto the target's title would close both the activity rows here and the palette hits. Theui/half of #33864 lands asPart of #33864(PR #34088); its item 4 is carried here, not on a ui card.objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Claim: PM loop (area S2, #33751 §2; seat-routed into S2's free slot, an unleased p2; p3 #33830 rides along in the same PR, same plugin-audit summary composer)
Session:
session_01QsR2jUg7BKfRBcTPyMxbLhAccount:
zhuangjianguoBranch:
claude/area-A3-34055Worktree:
/home/claude/wt/area-A3-34055Domain:
domain:serverSeat:
domain:server#5File surface:
packages/plugins/plugin-audit/src/** (the activity summary composer and its record-label read) · the ADR-0079 record-title resolver it calls, only where a lookup nameField must follow to the target's title · packages/metadata-protocol/src/protocol-record-reads.ts (renderTitle in searchAll, the palette site named in 6899142203) if the same resolver serves it · new test files named for this card · .changeset/**(stop on breach; explain in the report)Container & model:
M,mode:subagent,model: TIER_DEFAULT,effort: highClause-②: no
Metadata-protocol: none
Responsibility: objectstack (plugin-audit activity summaries): a lookup
nameFieldis written as the stored foreign key instead of the target record's title · every app whose join object is titled by a person (HotCRMcrm_project_member)Premise: holds (HotCRM measured on 18.5.0; the dev pins it red-first)
Serial constraints cleared: no open PR touches plugin-audit's activity files or protocol-record-reads.ts (file lists read at claim time); the dev runs git merge-tree before push
Pre-claim lane: domain:server (plugin-audit plus the record-title read); the card's alternative of refusing a lookup nameField at publish is not taken, because the record header already resolves it, so no spec change
Pre-claim deps: none (#21878, #33107, #30454, #26195 closed)
Prior rulings read: ADR-0079 (record title resolver); #32655 / ruling C on #32440 (request-locale text, relevant to #33830's boolean wording); triage 6898663329 ("one seat should take both", #33830)
objectstack-fleet commentedon Nov 15, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
os-dev-report
{ "issue": 34055, "status": "done", "branch": "claude/area-A3-34055", "pr": "https://github.com/objectstack-ai/objectstack/pull/34172", "session": "session_01QsR2jUg7BKfRBcTPyMxbLh", "premise_still_valid": true, "summary": "Both cards are fixed in plugin-audit in one PR (Fixes #34055, Fixes #33830; #33830 rides along). #34055: recordLabel now follows a reference-typed title field (lookup / master_detail / user) to the target record's title through the existing resolveLookupTitles (ADR-0079 titleFieldOf on the target, the exposure gate on get, the credential/internal/key-material skips, one id-$in read projected to id plus the title column). The resolver now takes its reader as a parameter: the label reads as the WRITER (the hook's own api), and the two summary branches are unchanged. That is the server-side equivalent of the record header's $expand, which reads as the reader. A writer refused the title column, or served the row without it, keeps the stored value. #33830: a boolean/toggle value with no declared option is stored as {text: English word, boolean} in the summary code and worded through two new plugin catalogue keys, messages.activityValueTrue/False (all 11 bundles), in the write locale for the stored sentence and the reader's negotiated locale on read. Declared options still win, and milestone tokens keep the raw value. The palette renderTitle site is not fixed (see out_of_scope_findings): the reused resolver is a plugin-audit closure that metadata-protocol cannot import, and the engine alternative ($expand) changes the hit's record wire shape.", "tests": "New files: src/activity-lookup-name-field-label-34055.test.ts (12 cases; bare engine plus the real installAuditWriters plus a counting driver; read-scope refusals as engine middleware) and src/activity-boolean-change-wording-33830.test.ts (6 cases; real kernel, AuditPlugin, sqlite-wasm, reader locale through the read middleware). RED FIRST: the 3 source files restored to the BASE 63db7240aa blobs (hash-object equal to the BASE:path blobs), then both files run: 'Tests 11 failed | 7 passed (18)'. The 7 that pass are the floors and controls, e.g. Received 'Status: New → Converted; Converted: false → true' and expected 'usr_grace_hopper_…' to be 'Grace Hopper'; restored to HEAD, tree clean. GREEN: 'Test Files 2 passed (2) / Tests 18 passed (18)'. Package suite at the merged head 49982fab3f, under the lock with the closure rebuilt after merging origin/main: 'pnpm --filter @objectstack/plugin-audit test && … typecheck': 'Test Files 96 passed (96) / Tests 1559 passed (1559)', 'check:test-typecheck: OK', VERDICT command-exit 0. The same 96/1559 also held at the pre-merge head 54254153bc. ABLATIONS (scripts/ablation-replace.mjs at 49982fab3f; every leg logged 'mutation landed: anchor 1 -> 0' and 'restored: blob == HEAD … git diff HEAD is empty'; source is imported relatively from src, so no dist leg): A, the label handed no titles: 5 red; B, the label read as api.sudo(): 2 red (the refused writer and the column-stripped writer get the title, which is the read-scope pin); C, the writer stores String(value): 4 red; D, the composer ignores the boolean: 2 red.", "gates": "Local subset: dispatch-gates --commands at 49982fab3f (repo objectstack-ai/objectstack, fresh tree) derived 71; 68 exited 0, each exit captured before any pipe. Not measured locally: check:i18n exit 3 (PREREQUISITE NOT MET: CLI plus a multi-package build; the generated object bundles are untouched, messages.ts is hand-written), check:dual-build-cjs-loads exit 3 (needs a full pnpm build), check:type-check-debt exit 124 (local 280s timeout). All three are declared to CI. --ran reconciliation: '71 derived, 68 run, 0 NOT-MEASURED, 3 UNRUN' (the same three). PR-body gates on the body as sent: check-partof-closing-keyword exit 0; check-closing-target-claim exit 0 with UNDETERMINED for #34055 and #33830 (the newest Claim: comments' Branch: lines are backticked, '(shared)' on #33830, so the gate cannot parse them; this is a claim-format note for the seat); check-single-claim-paths on PR 34172 exit 0. git merge-tree --write-tree --name-only vs origin/main is clean; no open PR (all 80 read) touches the changed files. CI check-runs at head 49982fab3f when this report was written: Governed Surface Queue Guard=success; Check Changeset, Check PR Size, Lint · (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI release & engine gates, scoped ×3), PR-body guards and Type Check · (workspace, source, consumer, debt ledger) all in_progress; opt-in, queue and schedule jobs skipped.", "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write relay pr_create (POST repository_dispatch, which created pulls/34172); post-stamped issue comment on #34055 (this report). Plus 1 pointer comment on #33830 via post-stamped, which the dispatch asked for. git push is not counted.", "open_questions": [], "security_findings": "withheld", "out_of_scope_findings": [ "class: a · reach: named producer: sys_record_share declares nameField recipient_id (a lookup), measured by the #33864 dev (os-dev report 6899087689 item 4, carried on #34055 by note 6899142203); not re-measured here · evidence: packages/metadata-protocol/src/protocol-record-reads.ts searchAll renderTitle returns row[titlePointer] as stored, so a ⌘K palette hit on an object titled by a lookup is titled by the raw foreign key. Not fixed in this PR: the resolver it reuses is a plugin-audit closure that metadata-protocol (below it in the graph) cannot import, and following the lookup with $expand in the palette's find would change each hit's returned record shape on the wire. Seam: spec:ObjectSchema.nameField (lookup-typed) → runtime:protocol-record-reads.ts searchAll renderTitle · dedupe words: palette searchAll renderTitle lookup nameField raw id, sys_record_share recipient_id title, global search hit title foreign key", "carrier: none · noted, not filed: the trailing signed line of the PR body is written as plain text, not as the HTML comment the dispatch spelled; os-dev.md forbids HTML comments in GitHub text except the harness's first-line attribution comment, and it outranks the dispatch on conflict", "carrier: none · noted, not filed: AGENTS.md ruling record 6583487846 (pin into an existing shared harness file) was weighed against the dispatch's new-files instruction; neither component has a shared harness file, so new files were used" ] }objectstack-fleet commentedon Nov 16, 2026
domain:server#5 · zhuangjianguo · session_01QsR2jUg7BKfRBcTPyMxbLh
Landed: PR #34172 merged;
Fixesclosed this card.3d6005cb· ACCEPT 69043164023db857b3067ae6f0f2ecf8e43fa266c71b2631adat 2026-11-16T01:41Z; card closed (completed) by itState change:
pm:dispatchedandlease:A3removed, assignee cleared. Left over: the ⌘K paletterenderTitleraw lookup id → #34175.fix(plugin-audit): name a lookup-titled record by its target's title …