Skip to content

feat(plugin-approvals): approval steps reach the record activity stream as approval feed items - #37188

Merged
objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-35723-approval-feed-items
Nov 25, 2026
Merged

objectstack-fleet[bot] merged 16 commits into
mainfrom
claude/issue-35723-approval-feed-items

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #35723

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

Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:在走审批的记录详情页「动态」里,每个审批步骤(提交、通过、驳回、退回修改、重新提交、撤回、取消)都显示为一行,按读者的语言显示(中文读者看到「已批准 · 经理审批」),点「看审批」直接打开该记录的「审批」页签;以前这里看不到任何审批。
  • 为什么做:记录详情页专题里「动态流审批一行」那一半——上一张卡只画了这一行的样子,但没有任何地方产出审批条目,这张卡补上产出方。
  • 出错会怎样:最坏情况是动态里少了或多了审批行,或某行显示成英文;审批本身、审批页签和锁定都不受影响。撤回本 PR 后,已写入的审批行仍在动态表里保留最多 14 天,且失去本 PR 的可见性限制,会以普通系统行的样子展示给所有能看该记录的人。
  • 要你做什么:无

What changes

  • Producer (plugin-approvals, new module approval-activity-feed.ts). An afterInsert hook on the decision log sys_approval_action appends one sys_activity row per step of kind submit, approve, reject, revise (sent back for revision), resubmit, recall and cancel, about the record the request governs. Other kinds (reminder, reassign, thread comment, ...) write none, and no decision comment rides on the row. An object with enable.activities: false gets no entry, as the CRUD mirror writes none for it. Shape follows ADR-0052 section 5, so no published vocabulary moves: type: 'system' (platform-only; the app activity door refuses it), metadata.kind: 'approval' plus the step's action, its stored label and the two machine names its label is translated by (flow_name, step_name), source_object: 'sys_approval_request' / source_id naming the request.
  • In the reader's language (route b, round 2). summary stores the English sentence from plugin-approvals' own catalog (approvalActivity* in translations/messages.ts, ten ids added to all eleven shipped packs); a new sys_activity middleware (bindApprovalActivityLocale) re-composes it on find / findOne for a non-system read that carries a locale, with the approvals door's own lookup (readerLabelsFor): the sentence is messages.approvalActivity* in the reader's locale, and the step label is flows.FLOW.approvals.NODE.label read the way the approvals tab reads it, else the stored label. A list that projects summary alone borrows the recognition columns and hands back only what it asked for. A system read, a read with no locale or no i18n service, or a key the pack misses serves the stored line. No sys_activity on the deployment (no plugin-audit) means no write; a failed append never fails the step and is logged once at error with consequence and fix. approval-service.ts is untouched (overlap with PR fix(plugin-approvals): the batch lock read answers a line of a held master as locked #37145 and branch claude/project-thread-x90m5y avoided).
  • Read gate (same module). A sys_activity middleware narrows find / findOne / count / aggregate so an approval row is served only when the approvals service would serve the caller its request (RequestVisibilitySource, the same source the request-table gates read). A read pinning object_name + record_id asks with that record, so an object that opts into enable.approvalsVisibleToReaders serves its readers too. Every non-approval row passes untouched; plugin-audit's parent-record gate still applies on top; failure to resolve fails closed for approval rows only. Count and rows agree.
  • Console (plugin-detail). activityRowToFeedItem reads the triple type: 'system' + metadata.kind: 'approval' + source_object: 'sys_approval_request' as the approval feed kind (APPROVAL_ACTIVITY_FEED_TYPE), so PRODUCED_FEED_TYPES now contains approval and the unproduced-kind diagnostic no longer names it. New RecordViewApprovalsContext carries the stream's 「看审批」 callback into RecordActivityRenderer and RecordChatterPanel.
  • Host (app-shell RecordDetailView). The approval tag's opener is extracted as openRecordApprovals (approvals panel if drawn, else the 审批 tab) and supplied through RecordViewApprovalsContext only when the reader is served approvals; otherwise the line has no link.
  • Docs. content/docs/frontend/plugins/plugin-detail.mdx: approval joins the produced-kinds table (six produced, seven not); the unproduced example becomes call.
  • Ledgers. approver-address-readers.test.ts classifies the two new actor_id reads as display; the tenant-audit write census for plugin-approvals is regenerated (one new elevated sys_activity insert); content/docs/permissions/system-context.mdx row 17 owns the new middleware's isSystem read (its register regenerated with --write).

Round 2 (L1 REWORK on dc76347)

  • S1, route (b): the server re-composes on read. It is the plugin-audit: an activity summary is rendered once, at write time, in the workspace locale — store it as a key and render it in the reader's language #26167 precedent's own shape: plugin-audit's activity-summary-message.ts stores the sentence plus its code and re-composes it per reader in a sys_activity middleware, and this row's code is already on it (metadata.action, now with flow_name / step_name). The step label must be translated through the app's flows pack, which lives in the server's i18n service and is read by the approvals door's reader-locale-labels lookup; the console holds no such pack. Server-side, every reader of the column (the record page, the API, an export) gets the same line, and no console locale pack moves. Pinned for a zh-CN reader: 已批准 · 经理审批 and 已提交审批, with the step label from an app flows pack.
  • S2: handled by the zone (claim amended).
  • N1: done in the same code path: revise, resubmit and cancel write entries (Sent back for revision · STEP, Resubmitted for approval, Approval request cancelled, the last attributed to no one), each pinned.
  • N2: the flag is honored, as the CRUD mirror honors it (audit-writers.ts writes no activity row for an object with enable.activities: false); pinned.
  • N3: the step half is pinned exactly (Approved · Manager review, Rejected · Manager review), plus the stored metadata.
  • N4: the 维护者速读 revert sentence now says rows already written stay up to 14 days and, without the read gate, are served to every record reader as generic system lines.

Tests

Readings, round 2 (head 06a3c76)

All local runs went through scripts/pm/os-verify-lock.sh; verdict lines quoted. Round-2 head 06a3c7640b (after merging origin/main at 93bd45957b).

  • pnpm --filter @objectstack/plugin-approvals exec vitest run + typecheck (head 06a3c764 minus the cancel pin): Test Files 129 passed (129), Tests 1929 passed (1929), check:test-typecheck: OK, VERDICT command-exit 0.
  • src/approval-activity-feed-35723.integration.test.ts at 06a3c7640b: Tests 7 passed (7) (approve/reject/recall, send back + resubmit, cancel on record delete, muted timeline, zh-CN reader, reader without approval access, record-reader opt-in).
  • Ablation (S1): node scripts/ablation-replace.mjs replaced the bindApprovalActivityLocale(...) call in approvals-plugin.ts with a no-op (anchor 1 to 0, blob changed); the zh-CN pin went red (Tests 1 failed | 6 passed (7), the six others green), restore verified (blob == HEAD, git diff HEAD empty).
  • Local gate subset: dispatch-gates --ran reconciles 106 derived, 104 run, 2 UNRUN; 101 exit 0. check:i18n first exit 3 (PREREQUISITE NOT MET), then its own one-command prerequisite build and re-run: check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys), VERDICT command-exit 0. check:system-context-census (red in CI on 05d82f29) fixed in f0b51c92: OK — 202 elevation read sites ... the generated register (178 symbol(s)) matches the tree, self-test all cases passed. NOT MEASURED locally, CI runs them: check:dual-build-cjs-loads, spec check:skill-examples (exit 3, unbuilt dist outside the closure); pnpm --dir ui exec vitest run scripts/ and check:type-check-debt (declared narrowing: the first was OOM-killed in round 1, the second needs a whole-workspace build; no ui/ file and no package's type-check set changed this round).
  • overlap-check --branch=claude/issue-35723-approval-feed-items: VERDICT clean exit 0.
  • Round 1 readings (UI suites, record-page ablation) stand for the unchanged ui/ files: RecordDetailView.* 100 files / 858 tests, plugin-detail 417 files, both type-check exit 0.
  • Full dogfood: not owed (no ! in the title, no (narrowing) arm).

Acceptance notes

  • sys_activity keeps its own lifecycle (rows reaped after 14 days); the 审批 tab keeps the full history. Steps taken before this lands write no backfilled rows.
  • The console restates the three writer values (recordActivityFeed.ts) because plugin-detail cannot depend on the server plugin; both sides are pinned by tests.
  • The producer reads the decision log rather than calling in from each decision method, so a step the service learns to record elsewhere reaches the stream with no second call site.
  • New UI pin for the mapper and stream lives in a card-named file recordActivityFeed.approvalStep-35723.test.tsx (it renders React; the shared recordActivityFeed.test.ts is a non-JSX file). The record-page pin joined the shared RecordDetailView.harness.test.tsx as its own top-level block.

Verification

First read (by risk):

  1. packages/plugins/plugin-approvals/src/approval-activity-feed.ts — bindApprovalActivityReadGate (who sees an approval row), bindApprovalActivityLocale (the system-read pass-through and the borrowed columns), and the producer hook's transaction and tenant context.
  2. ui/packages/plugin-detail/src/renderers/recordActivityFeed.ts — isApprovalStepRow, the mapping branch.
  3. ui/packages/app-shell/src/views/RecordDetailView.tsx — openRecordApprovals / viewApprovals, a plain function below the page's early returns (a hook there breaks hook order).

Two-minute check: pnpm --filter @objectstack/plugin-approvals exec vitest run --maxWorkers=2 src/approval-activity-feed-35723.integration.test.ts — expect 7 passed: one entry per step (approve / reject / recall, send back and resubmit, cancel on record delete), none on a muted timeline, a zh-CN reader served 已批准 · 经理审批, none served to a reader without approval access while other entries stay, and served under the record-reader opt-in.


Generated by Claude Code

https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7

…d-gated by request visibility

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…pens the record's approvals

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
… through the kernel logger's error signature

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…ecord page's early returns

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…for the activity entry insert

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…warn; the test reads entries with typed options

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…hared harness, on the 动态 tab

The declared-actions file stubs SchemaRenderer, so the page body (and its
stream) never drew there; the pin moves to RecordDetailView.harness.test.tsx.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…d-kind examples name call

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
@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 25, 2026
@github-actions

github-actions Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/plugin-approvals, touching 57 documentable anchor(s).

42 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f.

⛔ 9 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 anchor(s) matched too much of the corpus to be a work list: organization_id (literal, 41 pages), sys_user (literal, 56 pages)
  • 15 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • 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 — 6 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 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f → packageMentionDocs.

Which tree this was computed on

This run read content/docs from f78bd2362da8903b27ee8f09c04776c7d15170a2 — the merge of head 06a3c7640b5de8e8d3c0d665d426137e8d42077b into base 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f, 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 f78bd2362da8903b27ee8f09c04776c7d15170a2 && git checkout f78bd2362da8903b27ee8f09c04776c7d15170a2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f 06a3c7640b5de8e8d3c0d665d426137e8d42077b && git checkout -B drift-repro 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f && git merge --no-ff 06a3c7640b5de8e8d3c0d665d426137e8d42077b

node scripts/docs-audit/affected-docs.mjs --json 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f

⚠️ 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 93bd45957bc4a43eb54d8fec2b36f1cbef41dc5f → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — REWORK · repo:objectstack#3 · head dc76347 · 2026-11-25T03:11Z

L1: REWORK (L1-w, zone wf-A)
Head-sha: dc763477535b0b6aa3397c14bc827154979afcc9

There is no must-fix. Two should-fix findings are open, so under the merge standard this head is REWORK. No L2 is owed: nothing under packages/spec/src/** moves, the declaration is Clause-②: no, there is no narrowing arm, and approval was already a FeedItemType. This is Tier S: no governed path, and 1,072 changed lines on this card's only PR. wf-A lands it after ACCEPT.

Should-fix

  • S1. Every reader sees the approval line in English, whatever their language. The producer stores summary as fixed English text: Submitted for approval, Approved · <step>, Rejected · <step> and Recalled the approval request (APPROVAL_ACTIVITY_STEPS). The console draws that text as it is: renderApprovalLine shows item.body, which is row.summary (activityRowToFeedItem).

  • S2. The claim's file surface was not amended for the files outside it. Claim 7147655087 names plugin-approvals/src/**, plugin-detail/src/renderers/**, app-shell/** and the changesets. The diff also moves these files:

    • ui/packages/plugin-detail/src/RecordChatterPanel.tsx
    • ui/packages/plugin-detail/src/index.tsx
    • ui/packages/plugin-detail/src/recordTimelineStream.ts
    • content/docs/frontend/plugins/plugin-detail.mdx
    • the tenant-audit write census docs/audits/2026-08-tenant-audit-write-call-sites.counts/plugins/plugin-approvals.md

    The PR body already describes each of them. The zone amends the claim in the same round. This is the same gap as L1 S1 on feat(service-automation)!: a sync-in pull marks the rows the source deleted (ADR-0153 D3, #32062 slice 6) #37179.

Nits (fix any that ride the same push; each one left needs a follow-up card under the nit rule)

  • N1. revise (sent back for changes), resubmit and cancel write no entry. A record sent back and then resubmitted shows Approved · Step 1 and then nothing, while the request is pending again. The card's four kinds are delivered, so Fixes holds. The rest is a follow-up card.
  • N2. The producer writes for an object with enable.activities: false, whose timeline is hidden (object.zod.ts: "explicit false stops mirroring and hides the timeline"). Those rows are never read. Either honor the flag, or say in the module header why the flag does not apply.
  • N3. The integration test pins the approved entry only as /^Approved/. The · <step> half, which the changeset names, is unpinned.
  • N4. The PR body's 维护者速读 says 「撤回本 PR 即恢复原样」. Rows already written stay in sys_activity for up to 14 days after a revert. Without this PR's read gate, they are served to every record reader, and they draw as generic system lines. The sentence should say so.

Read and found right (head dc76347)

  • l1-face --pr 37188: 13 items clean. Draft, base main. Fixes #35723 binds only this card. The declarations are Clause-②: no · Metadata-protocol: none. The changeset names plugin-approvals and plugin-detail, both published, and app-shell, which is private and harmless. patch is right for kind none. Floors and all checks are green: 58 success, 9 expected skips, 0 failed. mergeable_state clean.
  • Fixes is right, once the findings close. Every Done-when line is in the tree:
  • Producer. It is an afterInsert on sys_approval_action.
    • actionRow is called with the pre-decision request, because the decision is audited before the tally, so step_label is the step decided.
    • The hook is code-registered (no meta), so it opens no after-abort unit (opensAfterAbortUnit: "Code-registered hooks (no meta) open no unit"). approval-service.ts threads no transaction, so a failed append is caught and cannot roll the decision log back.
    • It writes nothing without plugin-audit (the has(ACTIVITY_OBJECT, 'type') probe). The tenant is threaded and the census was regenerated. Both new actor_id reads are classified display.
  • Read gate. It adds a conjunct on find / findOne / count / aggregate, so the record page's count and rows agree.
    • Rows with a null or other source_object pass, and approval rows are kept by source_id ∈ visibleRequestIdsFor(context, target). That is the same source and the same unbounded-$in pattern as the request-table gate.
    • A read with object_name and record_id pinned asks with the record, so approvalsVisibleToReaders serves readers.
    • It fails closed for approval rows only. It is bound beside the producer inside the middleware branch, so no entry is written where reads cannot be narrowed.
  • Console. It reads the full triple (system + metadata.kind: 'approval' + sys_approval_request). system is platform-only, so an app's own row cannot draw as an approval. viewApprovals is null when the reader is served no requests. openRecordApprovals is a plain function below the early returns (no hook-order change), and the tag and the stream share it. The ablation reported in the body turns the harness pin red.
  • Changeset and plugin-detail.mdx, sentence by sentence.
    • The four kinds, "no decision comment", the ADR-0052 §5 shape, the no-plugin-audit case, "logged once at error", the visibility tiers, count/rows agreement, the triple, APPROVAL_ACTIVITY_FEED_TYPE and the 14-day reap all hold. The reap is retention: { maxAge: '14d' } in sys-activity.object.ts.
    • In the docs: "six produced", the seven unproduced kinds listed (13 − 6) and types: ['call'] as the unproduced example all hold.
    • After S1, the changeset's Approved · <step> wording needs one more read against the fix.

Path to ACCEPT

  1. Card thread: one push for S1 with its pin, plus any nits it takes.
  2. Zone: amend the claim (S2), and file a card for each nit left.
  3. L1-w: I read the delta on that head.

…e reader's language, step label included

The stored summary is the English catalog sentence (approvalActivity* in every
shipped pack); a non-system read with a locale is served it re-composed by the
approvals door's own lookup, the step label read from the flows pack. Entries
for revise, resubmit and cancel; none for an object with enable.activities false.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…he step half, send-back/resubmit and the muted timeline

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
…new kinds, the muted timeline and the reader's language

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzg3KqwSpt61Y8ovKK7
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

席位核对 — ACCEPT · repo:objectstack#3 · head 06a3c76 · 2026-11-25T05:24Z

L1: ACCEPT (L1-w, delta read, zone wf-A)
Head-sha: 06a3c7640b5de8e8d3c0d665d426137e8d42077b

No must-fix, no should-fix. No L2 is owed: nothing under packages/spec/src/** moves, Clause-②: no, and no narrowing arm. Tier S: no governed path; the PR's own net diff is 19 files, +1409/−52, on this card's only PR. wf-A lands it after green.

Round 1 (7151680146), closed

  • S1 closed (route b, the plugin-audit: an activity summary is rendered once, at write time, in the workspace locale — store it as a key and render it in the reader's language #26167 shape). The stored summary is the English sentence from plugin-approvals' own catalog (approvalActivity*, translations/messages.ts, in all eleven packs), composed through approvalActivityMessage + interpolate(enMessages…).
    • The row now also carries flow_name / step_name in metadata.
    • bindApprovalActivityLocale (a sys_activity middleware on find / findOne, non-system reads with a locale only) re-composes the line through readerLabelsFor, the approvals door's own lookup. The step label comes from flows.<flow>.approvals.<node>.label, else the stored label.
    • It recognises an entry by the full triple. A read projecting summary alone borrows type / source_object / metadata and strips them again before the rows return.
    • A missing key, no locale, no i18n service or a throw all leave the stored line.
    • The pins cover a zh-CN reader (已批准 · 经理审批, with an app-pack step label), a summary-only projection, a reader with no locale and a system read. The reported ablation turns the zh-CN pin red.
  • S2 closed. The claim is amended; the latest amendment, 7153690278, also adds content/docs/permissions/system-context.mdx. Row 17 of that census now names bindApprovalActivityLocale and the isSystem read that skips it, and the per-file count row is added.
  • N1 closed. revise, resubmit and cancel write entries (APPROVAL_ACTIVITY_STEPS), each pinned. cancel is written only when the governed record is deleted (approval-service.ts, the deleted-record path), which matches the changeset's "cancelled (the record was deleted)".
  • N2 closed. objectMutesActivities honours enable.activities: false at write, as audit-writers.ts does.
  • N3 closed. The approved and rejected lines are pinned exactly.
  • N4 closed. The 维护者速读 now says rows already written stay up to 14 days after a revert and are then served to every record reader as generic system lines.

Read and found right (head 06a3c76)

  • l1-face --pr 37188: 13 items clean. 60 success, 11 expected skips, 0 failed, 0 pending. mergeable_state was not yet computed at my read; wf-A reports it clean. The head carries a merge of main.

  • Changeset, sentence by sentence, against approval-activity-feed.ts at this head:

    • the seven kinds and their lines;
    • the enable.activities: false sentence;
    • the metadata it carries;
    • "the stored summary is the English line from plugin-approvals' own catalog";
    • the reader-locale re-composition and its step-label source;
    • "A system read, or a read with no locale, gets the stored English line";
    • the unchanged failed-append sentence.

    The system-context.mdx row reads the same as the middleware's context.isSystem skip.

  • Round 1's reads still stand on the parts that did not move: the producer, the read gate, the console mapping and the RecordViewApprovalsContext wiring.

Landing to-do

Fixes #35723 closes the card on merge.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

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

Landing · zone wf-A · 2026-11-25T05:25Z · head 06a3c7640b5de8e8d3c0d665d426137e8d42077b

Probe Reading
check-governed-merges.mjs --pr 37188 NOT governed; 1461 changed lines (+1409 / −52) ≤ 3000
landing-k.mjs --pr 37188 OK — K = 7 < 15, no new locale pack under a label PR, no shared book moved

L1 ACCEPT 7153741928 on this head, no L2 owed (Tier S). Checks 60 success / 11 skipped / 0 failed, mergeable_state clean. State change: ready for review + auto-merge; Fixes #35723 closes the card on merge.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 25, 2026 05:25
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.

Record activity shows no approvals: emit approval feed items from plugin-approvals so the one-line approval row appears (follow-up to #35602)

2 participants