Skip to content

feat(approvals): the approval request page shows the whole business record - #34631

Merged
os-zhuang merged 7 commits into
mainfrom
claude/project-thread-lqqtq3
Nov 17, 2026
Merged

os-zhuang merged 7 commits into
mainfrom
claude/project-thread-lqqtq3

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

repo:objectstack#3 · os-support-ai · session_01WGufzhGHzMtixGDQoMmtqq

Fixes #34588

Clause-②: yes (widening — new @object-ui/i18n locale keys only; no metadata or schema accept set)
Metadata-protocol: none

维护者速读

  • 改了什么:审批请求页去掉「详情 / 时间线」两个标签页。审批按钮下面直接显示整条业务记录,分组和对象的默认记录页一致;下面是只读子表;右栏依次是审批进度、附件、动态,动态在最后。
  • 为什么改:以前只显示金额加 6 个字段,审批人要跳到业务记录才能看全(维护者 2026-11-17:「审批页应该直接显示完整的记录;「动态」在最后」)。
  • 风险与回滚:只改前端展示和请求页的页面元数据,不改快照存储和字段权限,审批页上不能编辑。回滚就是 revert 本 PR。改动 3463 行,超过 3000 行门槛,属于 Tier H。
  • 先看:ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx 的文件头(规则),再看 ApprovalDecisionPanel.tsx 的布局。
  • 两分钟验证:打开一条待审批的请求,确认整条记录都在。到业务记录上改一个字段后刷新,该字段应显示「已改动」和当前值。右栏顺序应是审批进度、附件、动态。
  • 需要你做的:审一下,因为是 Tier H,需要 os-zhuang 或 hotlong 批准后才能合并。

What changes

The request page (packages/plugins/plugin-approvals/src/sys-approval-request.page.ts): page:header → record:highlights → record:approval_decision, with no page:tabs. The Details tab (the request's own fields) and the Timeline tab (the sys_approval_action related list) are gone. Their content is now inside the decision panel. No node type or prop was added: record:approval_decision keeps its empty strict props row, so every part of the layout lives in the panel.

The decision panel (ui/packages/app-shell/src/views/approval-decision/):

  • Top: the "Flow-initiated" marker, the deciding comment, and the declared decision actions. All unchanged. [Decision] Record page under approval shows two stacked action bars (approval decisions on top, the record's own actions in the header): fold, merge, or move the approval actions? #34361 ruling A is not touched.
  • Left column, "As submitted" (SubmittedRecord.tsx + pure submittedRecordPlan.ts):
    • Every field of the request's payload snapshot that the reader may read, in the sections of the target object's default record page (deriveRecordDetailSections with field groups resolved), each through the record page's own cell, with payload_display names for references.
    • Not drawn: undeclared keys, hidden: true fields, framework columns, and fields the reader may not read. Field-level security is unchanged. The service redacts per reader, and both rows also pass withoutDeniedFields.
    • One findOne(object, id) (no params) reads the current record. A field whose current value differs is marked Changed (已改动) with its current value. valuesDiffer treats empty values as equivalent, numbers by value, dates by instant, references by id (stored or expanded), and lists as sets.
    • If the record cannot be read (refused, gone, not found), nothing is marked and the card says so.
    • "Open record" links to the business record.
  • Child tables: owned master_detail children and relatedList: 'primary' tables (deriveRelatedLists), each a plugin-detail RelatedList with no New, Add, edit or row action. They show CURRENT rows, with a note saying so, because the snapshot keeps the record's own row only. They are drawn only once the record reads.
  • Right rail, in this order:
    • Approval progress: the step line, the tally, and who it waits on.
    • Attachments: the record's file and image fields.
    • Activity: the request's thread, newest first, through the new approval-progress/ApprovalActionTimeline.tsx, which RecordApprovalsPanel now shares, so the two timelines cannot drift.
    • The thread is read through the page's adapter (useRecordContext().dataSource, which the console routes to GET /approvals/requests/:id/actions). It is read only on a read verdict for sys_approval_action, as the Timeline related list was.
  • Retired: RecordSnapshotSummary.tsx, snapshotSummaryPlan.ts and its test (the six-row cut and the amount lead).

Copy: seven new approvalsInbox.* keys in all eleven @object-ui/i18n packs: snapshotChanged, snapshotCurrentValue, snapshotOpenRecord, snapshotCurrentUnreadable, snapshotChildCurrent, progressTitle, attachmentsTitle.

Why this route, not embedding the business record page: the record page is a live, editable surface with its own approval bar (#34361) and header actions. Embedding it would put editing and a second decision bar on the request page, and it would show current values, not the evidence the approver is asked to decide on. The snapshot-faithful card keeps the submitted values primary and marks the drift. The seat accepted this route on the card thread.

Not done (card 不做): no editing; no change to snapshot storage. Child tables show current values, marked as such.

Tests

  • New submittedRecordPlan.test.ts (plan and comparison rules) and ApprovalDecisionPanel.fullRecord-34588.test.tsx. The second covers acceptance 1–3 on a 14-field record with groups, a denied field, a master_detail child, a changed field, rail order, child tables read-only, the findOne call shape, and an unreadable CONTROL.
  • Updated app-shell pins: ApprovalDecisionPanel.test.tsx (directory-read counts now exclude the one thread read; the pending CONTROL expects that read), ApprovalDecisionPanel.stepLine-12491.test.tsx (decisions on top, then line above tally inside the progress card), and ApprovalDecisionPanel.decidedSnapshot-27502.test.tsx (testids). RecordApprovalsPanel tests are unchanged and green.
  • sys-approval-request-page.test.ts: the body order is header, highlights, decision, with a new "has no tabs" test. The step_label timeline-column test is retired along with the tab.

Console pins rewritten (seat-widened surface: approvalRequestsDataSource.servedPage*.test.tsx)

The "Card line" column cites the card's 要做的 items. Item 1 is 「请求页在审批条下方直接显示该业务记录的完整内容:全部可读字段按对象的分组排列、子表(相关列表,只读)、附件」. Item 2 is 「提交后被改过的字段在旁边标出「已改动」并能看到当前值」. Item 4 is 「字段级权限照旧」.

approvalRequestsDataSource.servedPageSummary-12483.test.tsx

Pin Old assertion New assertion Card line
served page shape components[1] is record:approval_decision (page with tabs) the last component is record:approval_decision; no page:tabs 1, 3 and the ruling 「「动态」在最后」
labels and faces the unresolved reference contact takes no row, and its raw id is never printed contact is drawn as the record page draws it (the lookup cell's unresolved-reference face) 1 (all readable fields)
amount the amount leads ([data-summary-lead]) and is not repeated as a row no lead; amount is an ordinary field, drawn once, through the currency face 1
hidden field rows are exactly the six: name, account, cost_center, region, status, issued_on rows are all ten declared visible fields; internal_score stays out 1 (not only 6)
COUNTER-PROBE nothing hidden internal_score drawn and the last row is cut internal_score drawn, nothing cut (11 rows) 1
hidden amount never leads, shown nowhere shown nowhere (no lead exists) 1
field permissions denied fields' slots go to the next fields (six rows) the full list minus cost_center and amount; neither value anywhere 1, 4
COUNTER-PROBE allowed lead.key === 'amount' amount is drawn 1
no read of the record no read beyond the approvals get; no invoice path on the transport one host.findOne('invoice', 'inv_1'), no params; amount marked Changed with its current value; an expanded same-id account is not a change; still no invoice path on the transport 2
new CONTROL — a record that does not read: the unreadable note, nothing marked, all ten fields drawn 2
CONTROL no payload waits for the definition read of invoice, no summary no record card; neither the definition nor the record is asked for 1 (nothing to draw without a snapshot)
CONTROLs: undeclared key, label clash, no definition record-snapshot-summary testid submitted-record testid, same assertions 1
roll-up name guess no lead; total_amount a row inside the six (cost center removed to make room) no lead; total_amount an ordinary field (no row cut, so cost center stays) 1
amount of zero zero leads zero is drawn as the amount field 1

approvalRequestsDataSource.servedPageSummaryAmount-12534.test.tsx: the whole file pinned which roll-up takes the lead. With no lead, every row below is retired by item 1.

Pin Old assertion New assertion
expense total total_amount leads; the rows are six without it total_amount is an ordinary field; all ten fields, sum and count roll-ups alike, in declared order
invoice subtotal total leads total is an ordinary field
definition read the summarized object's definition is read once; no record read the summarized object's definition is never read (the record read is pinned in 12483)
FLS without total_amount, approved_amount leads total_amount is not drawn; approved_amount still is
CONTROL non-sum no lead; line_count a row folded into the expense-total test (line_count row)
CONTROL sum over number no lead retired: no lead logic is left to control
CONTROL currency-only unit_price leads unit_price is an ordinary field
CONTROL child definition unreadable the total is an ordinary row retired: the total is always an ordinary row
new — the record's child lines: once the record reads, showcase_expense_line is drawn read-only, with the current-rows note and its rows
new CONTROL — a record that does not read draws no child lines and sends no child read

Not edited, and green: approvalRequestsDataSource.decisionPage.test.tsx (including :341, where the timeline reads the actions route and never host.find) and approvalRequestsDataSource.servedPageMemberPermissions-13324.test.tsx (including the no-ApprovalRecordReads control, which sends no actions GET). Both were red mid-change. The cause was fixed in source, not in the pins: the thread read now goes through the page's adapter and is gated on the read verdict.

Acceptance notes

  1. Full record below the approval bar: every readable field, grouped like the default record page; child tables read-only; attachments. ✓ (fullRecord-34588 acceptance 1, console 12483/12534.)
  2. Snapshot values, with fields changed after submission marked 「已改动」 and showing their current value. ✓ (fullRecord-34588 acceptance 2, console 12483 "read once".)
  3. Right rail: 审批进度 → 附件 → 动态. ✓ (fullRecord-34588 rail order.)
  4. Field-level security unchanged. ✓ (denied-field tests in both suites.)

Verification

Run on this head (9f91de6; the tree is identical to the gated working tree):

Before / after readings

  • Before (origin/main 8dd8192): the request page has page:tabs (Details, Timeline). The decision panel draws "As submitted" with the amount lead and at most six rows (12483: rows name, account, cost_center, region, status, issued_on), and never reads the target record.
  • After (this head): no tabs. 12483 draws all ten visible fields, with contact through the lookup face. One findOne('invoice','inv_1'), and a changed amount carries the Changed mark with its current value (13,250) beside the submitted 12,500. 12534 draws the showcase_expense_line child table read-only from current rows. The rail order is progress, attachments, activity (fullRecord-34588).

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzhGHzMtixGDQoMmtqq

…ecord

The request page (sys_approval_request_detail) drops its Details/Timeline
tabs: header, highlights, then record:approval_decision, last. The panel
now draws, below the decision bar, every readable field of the request's
snapshot in the target object's default record page sections, marks a
field changed after submission with its current value (one findOne of the
record), the record's child tables read-only with current rows, and a
right rail of approval progress, attachments and activity (the request's
thread, read through the page's adapter on a read verdict).

RecordSnapshotSummary and snapshotSummaryPlan retire; the record approvals
panel and the request page share ApprovalActionTimeline. New
approvalsInbox.* keys in all eleven @object-ui/i18n packs. The
servedPageSummary 12483/12534 console pins are rewritten to the full
record.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhGHzMtixGDQoMmtqq
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 2 package(s): @objectstack/plugin-approvals, @objectstack/spec, touching 4 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/liveness/field.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/automation/approvals.mdx (via actor_id (literal, a string literal in regions), sys_approval_action (literal, a string literal in regions))
  • content/docs/automation/flows.mdx (via sys_approval_action (literal, a string literal in regions))
  • content/docs/automation/workflows.mdx (via sys_approval_action (literal, a string literal in regions))
  • content/docs/frontend/plugins/plugin-detail.mdx (via actor_id (literal, a string literal in regions))
  • content/docs/plugins/packages.mdx (via sys_approval_action (literal, a string literal in regions))

⛔ 2 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v16.mdx (via sys_approval_action (literal, a string literal in regions))
  • content/docs/releases/v17/17-7.mdx (via actor_id (literal, a string literal in regions), sys_approval_action (literal, a string literal in regions))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/liveness/field.json) — pages documenting those are invisible to this run
  • 1 anchor(s) matched too much of the corpus to be a work list: created_at (literal, 46 pages)
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 173 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json d57d6eedbb940257cc4d7604a26f407841f65bc7 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 23e4529aef545a48f1d1ed29ea7a5dc838271e7c — the merge of head 5539896777e2a43bb628746738ebd2b96707c9d3 into base d57d6eedbb940257cc4d7604a26f407841f65bc7, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 23e4529aef545a48f1d1ed29ea7a5dc838271e7c && git checkout 23e4529aef545a48f1d1ed29ea7a5dc838271e7c
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin d57d6eedbb940257cc4d7604a26f407841f65bc7 5539896777e2a43bb628746738ebd2b96707c9d3 && git checkout -B drift-repro d57d6eedbb940257cc4d7604a26f407841f65bc7 && git merge --no-ff 5539896777e2a43bb628746738ebd2b96707c9d3

node scripts/docs-audit/affected-docs.mjs --json d57d6eedbb940257cc4d7604a26f407841f65bc7

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs d57d6eedbb940257cc4d7604a26f407841f65bc7 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

The field/settledWhen row cited RecordSnapshotSummary.tsx#FieldFace,
which this change deletes; the request page's FieldFace in
SubmittedRecord.tsx now judges the predicate.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhGHzMtixGDQoMmtqq
… the findOne double's arity

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhGHzMtixGDQoMmtqq
openPathObjectReaders-12811 counts every reader of useMetadata().objects.
The approval request page's SubmittedRecord reads the list to find the
record's owned child objects; it is not on an app object-list open path,
so its row is kind 'off'.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzhGHzMtixGDQoMmtqq
…-lqqtq3

# Conflicts:
#	ui/packages/app-shell/src/views/approval-decision/ApprovalDecisionPanel.tsx
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB

席位核对 · L1 (seat 3, L1-a) · 2026-11-17T06:00Z

L1: ACCEPT
Head-sha: 5539896
Card: #34588 (triage 6937104748) · claim 6937367812 · amendments 6937866666, 6938072917, 6938514752 · os-dev-report 6939591274

Tier H by size (check-governed-merges --pr 34631: NOT governed, 0 of 32 paths, but +1957/−1516 = 3473 lines, over 3000). This ACCEPT is the L1 bar only. The PR stays draft and goes to the seat; it is readied and landed only after os-zhuang or hotlong approves.

Must-fix

None.

Should-fix

None.

Readings that hold

Item Reading
PR shape Draft, base main, Fixes #34588 (the card's own PR, all four 要做的 items). No !, no (narrowing): no dogfood battery owed.
Scope 32 files, all inside the claim plus its three amendments: plugin-approvals/src/** (the page and its test); app-shell/src/views/** (the panel, SubmittedRecord.tsx + submittedRecordPlan.ts (+ test) replacing RecordSnapshotSummary.tsx + snapshotSummaryPlan.ts (+ test), approval-progress/ApprovalActionTimeline.tsx shared with RecordApprovalsPanel.tsx, three rewritten panel suites, the new fullRecord-34588 suite); app-shell/README.md (6937866666); spec/liveness/field.json (6938072917, evidence clause only); openPathObjectReaders-12811.test.ts (6938514752, one off row); the two console servedPage* tests (test-only, in the claim); 11 locale files; the changeset.
The page sys_approval_request_detail now authors page:header → record:highlights → record:approval_decision, with no page:tabs, record:details or record:related_list. The header doc comment was rewritten to match, line for line. The highlight strip still drops record_id, now because the panel draws the target record, not a details-grid card.
Acceptance 1 (whole record, sections, child rows) planSubmittedRecord walks deriveRecordDetailSections (the object's default record-page derivation, field groups resolved through deriveFieldGroupDetailSections). It draws every declared, non-hidden, non-system field that either row serves, so the six-row cap is gone. Child tables are deriveRelatedLists filtered to isPrimary || isOwned, gated on the child's read verdict, drawn once the record read, each with the "current rows" note. Pinned past six fields, with child rows.
Acceptance 2 (Changed) One findOne(objectName, recordId) with no params (pinned as the only call), re-read on data-bus invalidation. valuesDiffer compares references by id (bare or expanded), numbers numerically, dates by instant, lists as sets, and all empties as one, so a served-expanded lookup does not falsely read as changed. Exactly one changed field is marked in the pin, with its current value. An unreadable record marks nothing and says so (CONTROL pin).
Acceptance 3 (FLS) Both rows pass withoutDeniedFields(row, perms, target) before planning, on top of the service's per-reader payload redaction; a hidden: true field is dropped as well. Pinned from both rows: neither the label nor the value of a denied or hidden field appears anywhere in the panel.
Rail order approval-decision-rail children are exactly [progress, submitted-attachments, activity] (pinned), activity last, as the maintainer asked. The activity reads sys_approval_action only when perms.can(..., 'read') allows it. Attachment fields leave the field grid for the rail card. The decision band sits above both columns (pinned by document position).
Nothing editable Child tables are the plugin's RelatedList with no create/edit/delete/row handlers passed (pinned: no New / Add buttons). Snapshot storage is untouched: no service or schema change.
Delta line (the merge 55398967) The merge resolves one conflict in ApprovalDecisionPanel.tsx: against the pre-merge parent 55785f05 it adds only #34641's two-line comment and foldDecisions on the DeclaredActionsBar call site (now about line 441). The props match main's call site exactly (objectName, record, location, onDone, foldDecisions). This is the delta read the seat asked the second lander to owe.
Shared timeline RecordApprovalsPanel now renders ApprovalActionTimeline with its own rows and step resolver; the request page passes its thread newest first. There is one markup for both, which keeps the earlier timeline behaviour: kinds, override rows, reassignment from/to, signed-URL attachments, display-locale dates.
Rewritten pins Each removed assertion pins the retired surface: the six-row cut, the amount lead, the Details/Timeline tabs, the related list's step_label column. The PR body pairs each with its replacement and the card line that retires it. No pin of a kept behaviour was dropped without a successor: FLS, step text, the decision band and the snapshot heading "As submitted" are all re-pinned in the new suites.
Clause-② / Metadata-protocol yes (widening — new @object-ui/i18n locale keys only) / none, the same in claim, body and changeset. Seven add-only approvalsInbox.* keys, present in all 11 packs (7 lines each; zh-Hant regenerated by gen:zh-hant). zh-Hans: 已改动 / 当前值 / 打开记录 / 无法读取当前记录,提交后的改动无法标出。/ 当前值:提交时未保存子表数据。/ 审批进度 / 附件. @object-ui/app-shell is private, and SubmittedRecord and submittedRecordPlan are module-internal. @objectstack/plugin-approvals changes a page's node list, which is product metadata, not an accept set. The liveness edit repoints evidence only (status and verifiedAt are unchanged). This is locale-keys-only, so per the seat's routing L1-a reads it at TIER_DEFAULT, and no further L2 is owed.
Changeset patch for @objectstack/plugin-approvals, @object-ui/app-shell and @object-ui/i18n, the three packages whose src moved (console and spec change no src). Every sentence matches the readings above, including "reads the target record once (findOne, no params)", "the activity is read only when the reader's verdict allows reading that object", and the seven key names.
Docs content/docs/automation/approvals.mdx:1055 ("both approval step lines … the record's approvals panel and the request page") stays true. No docs page describes the request page's tabs or the six-field summary. The app-shell README section was rewritten to the shipped layout (amendment 6937866666).
Tests Real commands with output: post-merge vitest over i18n, approval-decision, the #34361/#25877 fold suites, RecordDetailView.approval*, the reader census and the console data-source suites, 134 files / 2171 passed, exit 0. eslint on the panel exit 0. 78 derived gates: 76 exit 0, and 2 NOT-MEASURED (check:dual-build-cjs-loads and check:published-readme-exports need a full build, which CI's Build Core runs).

CI

67 check-runs on this exact head (the merge 55398967): all success or skipped, none pending. Test Core 8/8 shards plus the aggregate, Test UI 16/16 plus the aggregate, Build Core (which covers the two NOT-MEASURED build gates), Build & E2E UI, Live E2E UI, Type Check UI, Lint UI, TypeScript Type Check, Lint & Repo Gates, Spec property liveness, Check Changeset, PR-body guards and Governed Surface Queue Guard are all success. The pre-merge head 55785f05 was also all green (66 runs, per the report).

Notes

  1. Tier H routing. I am handing this to the seat as Tier H. It is not readied from here.
  2. A field that the current row serves but the snapshot does not (for example, one added to the object after submission) is drawn empty and marked Changed with its current value. That reads correctly as "not part of the submission, has a value now", but it is the one case where "Changed" means "added".
  3. The child-table read gate uses perms.can(child, 'read') only once permissions have loaded; before that, the server's own refusal is the gate. That is the same as deriveRelatedLists elsewhere.
  4. Not driven in a browser here. If the maintainer wants a look before approving, a request on a 10+ field object with a child table in showcase covers all three acceptance lines on one page.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

席位记录 · 2026-11-17T06:01Z

Head-sha: 5539896777e2a43bb628746738ebd2b96707c9d3

维护者速读(终稿)

  • 改了什么:审批请求页去掉「详情 / 时间线」两个标签页。审批按钮下面直接显示提交时的整条业务记录(分组与对象默认记录页一致),提交后被改过的字段标「已改动」并给出当前值;下面是只读子表;右栏依次是审批进度、附件、动态,动态在最后。
  • 为什么改:以前只显示金额加 6 个字段,审批人要跳到业务记录才能看全(维护者 2026-11-17:「审批页应该直接显示完整的记录;「动态」在最后」)。
  • 风险与回滚:只改前端展示和请求页的页面元数据,不改快照存储和字段权限(服务端按读者脱敏,前端再过一次 withoutDeniedFields),审批页上不能编辑。回滚即 revert。
  • 先看:ui/packages/app-shell/src/views/approval-decision/SubmittedRecord.tsx 文件头的规则,再看 ApprovalDecisionPanel.tsx 的布局;与 [Decision] Record page under approval shows two stacked action bars (approval decisions on top, the record's own actions in the header): fold, merge, or move the approval actions? #34361(审批条折叠,已合并)的一处调用点已在合 main 时保留。
  • 两分钟验证:打开一条待审批请求,整条记录都在;到业务记录上改一个字段再刷新,该字段显示「已改动」和当前值;右栏顺序是审批进度、附件、动态。
  • 需要你做的:Tier H(改动 3473 行,超过 3000 行人工合并线;不触受管路径),请 os-zhuang 或 hotlong 审批。L1 ACCEPT 评论 6940135647 在 Head-sha 55398967 上;只增 i18n 文案键,无契约面,不欠 L2。批准后由 3 号座位交 o3-A 落地。

席位意见:建议批准。行数大主要是删掉旧的六行摘要及其测试(−1516 行)。

席位核对

  • 形态:Fixes #34588;app-shell 审批决策视图 + plugin-approvals 请求页元数据 + i18n 11 个语言文件 + app-shell README 一节 + packages/spec/liveness/field.json 一条证据改指 + 一条 census 测试行;Clause-②: yes(仅 i18n 文案键)、Metadata-protocol: none、patch changeset。
  • 前提实测:控制台审批套件、app-shell 审批测试、tsc 均由卡线程跑过;L1-a 全量读码并核对合 main 后的 foldDecisions 一行与主干一致。
  • 门禁 check-runs:本 head 57 success / 10 skipped,无红。
  • 接受的偏差:无。
  • 范围外去向:认领面三次修订(README、liveness 证据、census 测试行)均已记在 审批请求页:直接显示完整的业务记录,不止「提交时的内容」里的 6 个字段 #34588。Skills-docs: none。
  • 落地条款:Tier H,批准前 ⛔ 不 ready、不入队、不开自动合并;批准后 o3-A 过落地前检再落。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 17, 2026 06:05
@os-zhuang
os-zhuang enabled auto-merge November 17, 2026 06:05
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 17, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 44028768870 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (1/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/lookup-title-exposure.dogfood.test.ts > [#22738] a lookup title is served only for a target whose declared exposure serves `get` > activity (admin): t
      ↳ 失败原因: (这条 FAIL 之后 12 行内没有可识别的原因行 —— 点进 job 看)
    @objectstack/dogfood:test:  FAIL   isolated  test/lookup-title-exposure.dogfood.test.ts > [#22738] a lookup title is served only for a target whose declared exposure serves `get` > activity (member): 
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: expected '' to contain 'LTEOPEN84'
    
  • Test Core (3/8) — 失败步骤: Run this shard's tests

    @objectstack/mcp:test:  FAIL  src/mcp-file-tools.test.ts > read_file extracts PDF and Word text on a worker pool, off the request thread > out of CPU budget on the worker: the pages read so far, trunc
      ↳ 失败原因: @objectstack/mcp:test: AssertionError: expected { fileId: 'f1', …(8) } to match object { content: 'text', …(2) }
    @objectstack/lint:test:  FAIL  src/validate-expressions.flow-null-guards.test.ts > a flow or hook condition over an injected system column is judged by what a stored row holds, at the publish door and
      ↳ 失败原因: @objectstack/lint:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 16 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

审批请求页:直接显示完整的业务记录,不止「提交时的内容」里的 6 个字段

3 participants