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
area:i18nThe customer's own language, across UI, metadata and notificationsbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Read fresh. The coordinator seat filed this as a reproduced ① defect with a measured UI reach and a named file, routed to domain:ui and queued. A user-visible defect with no protocol change: p2. Routing and the pm state are unchanged.
Claim: PM loop round 9 · 2026-11-02T04:09Z
Session: session_01QsR2jR9wsxdgKzces31XWg (card thread, os-dev); dispatched by seat session session_01QsR2jR7ZFkpqmm4U8S1f9y
Account: zhuangjianguo
Branch: claude/project-thread-ci0v4j (platform-assigned to the card thread; it can push only this branch)
Worktree: objectstack-issue-28894
Domain: domain:ui
Seat: domain:ui#4
File surface: ui/packages/plugin-detail/src/HistoryTimeline.tsx (the action badge), its tests, and a changeset (stop on breach; explain in the report)
Container & model: S, mode:thread, model: default tier (dispatch-gates --tier: no path-derived mandate), effort: default
Clause-②: no
Metadata-protocol: none
Responsibility: the record page's 历史 badge prints the raw sys_audit_log.action value upper-cased (UPDATED / CREATED) | the action is a select with declared options and zh translations already served | every user opening any record's history tab
Thread-read: 6568681767
Premise: holds (at origin/main9a9823d9, HistoryTimeline.tsx renders {entry.action} inside an uppercase Badge)
Serial constraints cleared: none in flight on this file; #28895 (this seat) edits the Setup audit log page, not this file
Claim amended · 2026-11-02T04:11Z · file surface widened by one file, and the label source corrected by the dev's measurement. Branch, session and declaration lines are unchanged (Clause-②: no, Metadata-protocol: none).
File surface (added):
ui/packages/plugin-detail/src/renderers/record-history.tsx: its self-fetch passes the source field of the action.
Reading (the dev's premise check at origin/main9a9823d9, HotCRM d4ffe99): the reproduced 历史 badge is an authored record:history block. It self-fetches sys_activity and maps action: r.type, so UPDATED / CREATED are sys_activity.type values (updated / created), not sys_audit_log.action (update / create). The badge therefore shows the declared option label of the field its entries come from, through the served translations (sys_activity.type here, 已更新 / 已创建 in zh-CN). HistoryTimeline takes an optional { object, field } source and resolves the label with useSafeFieldLabel().fieldOptionLabel. An entry with no declared source shows the raw value, and uppercase applies only to a raw value. The card's intent stands: no map in the ui, and the raw value as fallback.
{
"issue": 28894,
"status": "done",
"branch": "claude/project-thread-ci0v4j",
"pr": "https://github.com/objectstack-ai/objectstack/pull/28989",
"head": "9ec21e47",
"session": "session_01QsR2jR9wsxdgKzces31XWg",
"premise_still_valid": true,
"summary": "The record History badge shows the action's option label instead of the stored value upper-cased. HistoryTimeline takes an optional actionField ({ object, field }) and labels each badge with useSafeFieldLabel().fieldOptionLabel, falling back to the stored value; uppercase applies only to a stored value. record:history's self-fetch names sys_activity.type, so zh shows 已更新 / 已创建. Premise held in part: the reproduced badge reads sys_activity.type (updated / created), not sys_audit_log.action as the card says; the seat ruled route A and amended the claim (6568854052).",
"tests": "At f7a834c5: all 363 plugin-detail test files in three locked batches, Test Files 362 passed + 1 skipped, Tests 3195 passed + 18 skipped. New files HistoryTimeline.actionLabel-28894 (4 cases) and record-history.actionLabel-28894 (2 cases). Ablations via scripts/ablation-replace.mjs, blob restored to HEAD and git diff HEAD empty each time: drop the record-history source = 1 red; drop the fieldOptionLabel read = 2 red; unconditional uppercase = 2 red. At 64c9ef50 (main merged): the 6 history test files 45/45 green; turbo type-check @object-ui/plugin-detail 48/48 (includes tsconfig.test.json). Real server: pnpm dev:crm --fresh at f7a834c5, GET /api/v1/i18n/translations/zh-CN serves objects.sys_activity.fields.type.options created=已创建, updated=已更新 (en serves each value as itself). NOT MEASURED: browser run of the built console History tab (needs console:build).",
"gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 34 derived commands, all exit 0 at f7a834c5 and again at 64c9ef50 (PR-body gates run with GITHUB_EVENT_PATH carrying the final body). --ran at 64c9ef50: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN. Includes check-sdui-manifest.mjs (exit 0, manifest intact), check-changeset-no-major --base origin/main, check-adr-0087-registration, check-closing-keyword-parity, check:type-check-debt, check:query-options-erasure, pnpm --dir ui exec vitest run scripts/ (169 passed, 2 skipped files; 4900 passed, 2 skipped tests). check-partof-closing-keyword with PR_BODY: exit 0. Head 9ec21e47 merges main 00d0668d with no file under plugin-detail, i18n or react; nothing re-run there. CI check-runs: in_progress at report time.",
"line_budget": "5 files, +229 / -4 = 233 changed lines (dispatch-gates count), under 3000",
"files_changed": [
".changeset/28894-history-badge-option-label.md",
"ui/packages/plugin-detail/src/HistoryTimeline.tsx",
"ui/packages/plugin-detail/src/__tests__/HistoryTimeline.actionLabel-28894.test.tsx",
"ui/packages/plugin-detail/src/renderers/__tests__/record-history.actionLabel-28894.test.tsx",
"ui/packages/plugin-detail/src/renderers/record-history.tsx"
],
"deviations": [
"Label source corrected from the card's sys_audit_log.action to sys_activity.type, by the claim amendment 6568854052 (named in the PR body).",
"Two new test files beside the existing ones (claim: its tests).",
"HistoryTimelineProps, an exported type, gains one optional member (actionField); the claim's Clause-② no is copied verbatim for the seat to judge. HistoryActionField is not added to the package entry (index.tsx is outside the surface).",
"No PR subscription and no assignee or reviewer: the dispatch contract (brief rule 10, os-dev.md) overrides the platform's PR-open posture."
],
"dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
"mcp_calls": "4 — mcp__github__issue_read x3 (get, get_comments x2) on #28894, all reads; get_session (not GitHub). No MCP write.",
"api_writes": "2 — relay pr_create (fleet-write run 41396155521, #28989, read-back identical) and this os-dev-report comment via post-stamped; git push is not a REST write",
"open_questions": [],
"out_of_scope_findings": [
"class: none (observation) · DetailView's own history tab (schema.history.entries) names no source field, so its badges keep the stored value · carrier: none",
"class: none (observation) · HistoryTimeline ACTION_VARIANT keys are sys_audit_log actions (update, create, delete…); every sys_activity entry (updated, created, deleted) gets the neutral outline tone, unchanged by this PR · carrier: none"
]
}
Claim amended · 2026-11-02T05:50Z · the Clause-② line corrected, and the file surface widened by one line of the package entry. Branch and session are unchanged.
Clause-②: yes (widening)
Metadata-protocol: none
Reading (the seat's, on PR #28989 at 9ec21e47): HistoryTimelineProps is exported from @object-ui/plugin-detail (src/index.ts:169). It gains an optional actionField?: HistoryActionField. That is a new optional member of a published type, so the declaration is Clause-②: yes (widening). The seat's earlier amendment kept no in error. No published schema or governed text moves, so the review owed is the lane seat's own TIER_DEFAULT record of record (contract-review.md).
File surface (added):
ui/packages/plugin-detail/src/index.ts: HistoryActionField joins the export type { HistoryTimelineProps, HistoryEntry } line, so a host can name the type of the prop it passes.
ACCEPT · 2026-11-02T06:25Z · PR #28989 at cb4cac0c, record 6570626586; contract review (TIER_DEFAULT) PASS 6570613806 on the same head. Ordinary queue landing follows.
Landed · 2026-11-02T06:57Z · PR #28989 merged through the merge queue as 474b40e7. Records: ACCEPT 6570626586 and contract review (TIER_DEFAULT) PASS 6570613806, both at cb4cac0c.
probe
before (474b40e7~1)
now (origin/main)
actionField in plugin-detail/src/HistoryTimeline.tsx
0
5
HistoryActionField in the same file
0
2
HistoryActionField in the export type line of plugin-detail/src/index.tsx
0
1
The card closed through Fixes. pm:dispatched comes off with this note.
area:i18nThe customer's own language, across UI, metadata and notificationsbugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 2, 2026
triage#1 · os-zhuang · session_01AavokzJ5DndAwitDXvKy4U
Path: none
Triage: p2 (priority added) · 2026-11-02T03:57Z
⛔ Not a claim.
domain:uiand queued. A user-visible defect with no protocol change: p2. Routing and the pm state are unchanged.Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Claim: PM loop round 9 · 2026-11-02T04:09Z
Session:
session_01QsR2jR9wsxdgKzces31XWg(card thread, os-dev); dispatched by seat sessionsession_01QsR2jR7ZFkpqmm4U8S1f9yAccount:
zhuangjianguoBranch:
claude/project-thread-ci0v4j(platform-assigned to the card thread; it can push only this branch)Worktree:
objectstack-issue-28894Domain:
domain:uiSeat:
domain:ui#4File surface:
ui/packages/plugin-detail/src/HistoryTimeline.tsx(the action badge), its tests, and a changeset (stop on breach; explain in the report)Container & model: S,
mode:thread,model: default tier (dispatch-gates --tier: no path-derived mandate),effort: defaultClause-②: no
Metadata-protocol: none
Responsibility:
the record page's 历史 badge prints the raw sys_audit_log.action value upper-cased (UPDATED / CREATED) | the action is a select with declared options and zh translations already served | every user opening any record's history tabThread-read: 6568681767
Premise: holds (at
origin/main9a9823d9,HistoryTimeline.tsxrenders{entry.action}inside anuppercaseBadge)Serial constraints cleared: none in flight on this file; #28895 (this seat) edits the Setup audit log page, not this file
Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Claim amended · 2026-11-02T04:11Z · file surface widened by one file, and the label source corrected by the dev's measurement. Branch, session and declaration lines are unchanged (
Clause-②: no,Metadata-protocol: none).File surface (added):
ui/packages/plugin-detail/src/renderers/record-history.tsx: its self-fetch passes the source field of the action.Reading (the dev's premise check at
origin/main9a9823d9, HotCRMd4ffe99): the reproduced 历史 badge is an authoredrecord:historyblock. It self-fetchessys_activityand mapsaction: r.type, soUPDATED/CREATEDaresys_activity.typevalues (updated/created), notsys_audit_log.action(update/create). The badge therefore shows the declared option label of the field its entries come from, through the served translations (sys_activity.typehere, 已更新 / 已创建 in zh-CN).HistoryTimelinetakes an optional{ object, field }source and resolves the label withuseSafeFieldLabel().fieldOptionLabel. An entry with no declared source shows the raw value, anduppercaseapplies only to a raw value. The card's intent stands: no map in the ui, and the raw value as fallback.Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR9wsxdgKzces31XWg
os-dev-report
{ "issue": 28894, "status": "done", "branch": "claude/project-thread-ci0v4j", "pr": "https://github.com/objectstack-ai/objectstack/pull/28989", "head": "9ec21e47", "session": "session_01QsR2jR9wsxdgKzces31XWg", "premise_still_valid": true, "summary": "The record History badge shows the action's option label instead of the stored value upper-cased. HistoryTimeline takes an optional actionField ({ object, field }) and labels each badge with useSafeFieldLabel().fieldOptionLabel, falling back to the stored value; uppercase applies only to a stored value. record:history's self-fetch names sys_activity.type, so zh shows 已更新 / 已创建. Premise held in part: the reproduced badge reads sys_activity.type (updated / created), not sys_audit_log.action as the card says; the seat ruled route A and amended the claim (6568854052).", "tests": "At f7a834c5: all 363 plugin-detail test files in three locked batches, Test Files 362 passed + 1 skipped, Tests 3195 passed + 18 skipped. New files HistoryTimeline.actionLabel-28894 (4 cases) and record-history.actionLabel-28894 (2 cases). Ablations via scripts/ablation-replace.mjs, blob restored to HEAD and git diff HEAD empty each time: drop the record-history source = 1 red; drop the fieldOptionLabel read = 2 red; unconditional uppercase = 2 red. At 64c9ef50 (main merged): the 6 history test files 45/45 green; turbo type-check @object-ui/plugin-detail 48/48 (includes tsconfig.test.json). Real server: pnpm dev:crm --fresh at f7a834c5, GET /api/v1/i18n/translations/zh-CN serves objects.sys_activity.fields.type.options created=已创建, updated=已更新 (en serves each value as itself). NOT MEASURED: browser run of the built console History tab (needs console:build).", "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 34 derived commands, all exit 0 at f7a834c5 and again at 64c9ef50 (PR-body gates run with GITHUB_EVENT_PATH carrying the final body). --ran at 64c9ef50: 34 derived, 34 run, 0 NOT-MEASURED, 0 UNRUN. Includes check-sdui-manifest.mjs (exit 0, manifest intact), check-changeset-no-major --base origin/main, check-adr-0087-registration, check-closing-keyword-parity, check:type-check-debt, check:query-options-erasure, pnpm --dir ui exec vitest run scripts/ (169 passed, 2 skipped files; 4900 passed, 2 skipped tests). check-partof-closing-keyword with PR_BODY: exit 0. Head 9ec21e47 merges main 00d0668d with no file under plugin-detail, i18n or react; nothing re-run there. CI check-runs: in_progress at report time.", "line_budget": "5 files, +229 / -4 = 233 changed lines (dispatch-gates count), under 3000", "files_changed": [ ".changeset/28894-history-badge-option-label.md", "ui/packages/plugin-detail/src/HistoryTimeline.tsx", "ui/packages/plugin-detail/src/__tests__/HistoryTimeline.actionLabel-28894.test.tsx", "ui/packages/plugin-detail/src/renderers/__tests__/record-history.actionLabel-28894.test.tsx", "ui/packages/plugin-detail/src/renderers/record-history.tsx" ], "deviations": [ "Label source corrected from the card's sys_audit_log.action to sys_activity.type, by the claim amendment 6568854052 (named in the PR body).", "Two new test files beside the existing ones (claim: its tests).", "HistoryTimelineProps, an exported type, gains one optional member (actionField); the claim's Clause-② no is copied verbatim for the seat to judge. HistoryActionField is not added to the package entry (index.tsx is outside the surface).", "No PR subscription and no assignee or reviewer: the dispatch contract (brief rule 10, os-dev.md) overrides the platform's PR-open posture." ], "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm", "mcp_calls": "4 — mcp__github__issue_read x3 (get, get_comments x2) on #28894, all reads; get_session (not GitHub). No MCP write.", "api_writes": "2 — relay pr_create (fleet-write run 41396155521, #28989, read-back identical) and this os-dev-report comment via post-stamped; git push is not a REST write", "open_questions": [], "out_of_scope_findings": [ "class: none (observation) · DetailView's own history tab (schema.history.entries) names no source field, so its badges keep the stored value · carrier: none", "class: none (observation) · HistoryTimeline ACTION_VARIANT keys are sys_audit_log actions (update, create, delete…); every sys_activity entry (updated, created, deleted) gets the neutral outline tone, unchanged by this PR · carrier: none" ] }objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Claim amended · 2026-11-02T05:50Z · the Clause-② line corrected, and the file surface widened by one line of the package entry. Branch and session are unchanged.
Clause-②: yes (widening)
Metadata-protocol: none
Reading (the seat's, on PR #28989 at
9ec21e47):HistoryTimelinePropsis exported from@object-ui/plugin-detail(src/index.ts:169). It gains an optionalactionField?: HistoryActionField. That is a new optional member of a published type, so the declaration isClause-②: yes (widening). The seat's earlier amendment keptnoin error. No published schema or governed text moves, so the review owed is the lane seat's ownTIER_DEFAULTrecord of record (contract-review.md).File surface (added):
ui/packages/plugin-detail/src/index.ts:HistoryActionFieldjoins theexport type { HistoryTimelineProps, HistoryEntry }line, so a host can name the type of the prop it passes.Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
ACCEPT · 2026-11-02T06:25Z · PR #28989 at
cb4cac0c, record 6570626586; contract review (TIER_DEFAULT) PASS 6570613806 on the same head. Ordinary queue landing follows.Generated by Claude Code
objectstack-fleet commentedon Nov 2, 2026
domain:ui#4 · zhuangjianguo · session_01QsR2jR7ZFkpqmm4U8S1f9y
Landed · 2026-11-02T06:57Z · PR #28989 merged through the merge queue as
474b40e7. Records: ACCEPT 6570626586 and contract review (TIER_DEFAULT) PASS 6570613806, both atcb4cac0c.474b40e7~1)origin/main)actionFieldinplugin-detail/src/HistoryTimeline.tsxHistoryActionFieldin the same fileHistoryActionFieldin theexport typeline ofplugin-detail/src/index.tsxThe card closed through
Fixes.pm:dispatchedcomes off with this note.Generated by Claude Code