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
[finding] sys_approval_request.payload_json's doc comment claims notifications render from the snapshot — measured false against all 12 notify call sites #11041
domain:servicesRetired 2026-10-22, alias of domain:server (services surface); in-flight cards keep it until landedpm:dispatchedDispatched to a dev agent by /pm-dispatch
Found while implementing #10749 (read-time redaction of the approval payload snapshot), during the consumer inventory the ruling made step 1.
Observation
packages/plugins/plugin-approvals/src/sys-approval-request.object.ts documents the column as:
payload_json captures a snapshot of the target record at submission time — used by notifications so they can render before the record is locked or changed.
Measured against every this.notify(...) call site in approval-service.ts — 12 of them: routed-to-you, routed-to-delegate, auto-rejected, sent-back, handed-to-you, two reminder shapes, more-info-requested, new-comment, escalated-to-you, SLA-breached, submitter-SLA. Every one passes a payload of { title, message, actionUrl } (two also carry actions with action-link URLs). None of them reads payload or payload_json. The messages are built from raw.object_name / raw.record_id and the caller's comment text.
So the stated consumer does not exist. This matters beyond tidiness: the sentence is the only documented justification for the column holding a full row, and it was cited as such during the #10749 inventory before being checked.
Why this is filed rather than fixed
The string is extracted into the generated i18n bundles (translations/*.objects.generated.ts), so rewording it is a translation-regeneration change (node scripts/check-i18n-bundles.mjs --write, four locales), not a comment edit. The same file already carries a precedent for exactly this constraint on its organization_id description, where the correction was deliberately made to ride a related fix rather than land as a drive-by.
The accurate replacement is roughly "snapshot of the target record at submission time, retained as audit evidence of what was submitted and served (redacted per reader, #10749) to the approvals inbox" — but the exact wording should be settled by whoever owns the regeneration pass.
Locator
packages/plugins/plugin-approvals/src/sys-approval-request.object.ts — the module docstring above SysApprovalRequest.
packages/plugins/plugin-approvals/src/translations/{en,zh-CN,ja-JP,es-ES}.objects.generated.ts — the extracted copies.
Notes
Observation only — no runtime behaviour is wrong, and nothing is currently misled by it except the next reader of the column.
No assignee — recording, not claiming. Not queued.
Triage first-touch: graded Task, parked pm:blocked — the correction is a translation-regeneration change on the exact file surface #10749's in-flight dispatch owns (sys-approval-request.object.ts + the four generated bundles), and the file's own precedent is to ride such corrections with a related fix rather than land drive-bys. When #10749's PR lands (or if the services seat hands the in-flight dev this one-liner via a patch round), this returns to queue with the standard merged-ref re-check — expect the docstring may already have been corrected in passing; verify before dispatching. The replacement wording the card drafts (audit-evidence + redacted-per-reader-per-#10749) is the right shape.
domain:servicesRetired 2026-10-22, alias of domain:server (services surface); in-flight cards keep it until landedpm:dispatchedDispatched to a dev agent by /pm-dispatch
Activity
huangyiirene commentedon Aug 22, 2026
Blocked-by: #10749
Triage first-touch: graded Task, parked
pm:blocked— the correction is a translation-regeneration change on the exact file surface #10749's in-flight dispatch owns (sys-approval-request.object.ts+ the four generated bundles), and the file's own precedent is to ride such corrections with a related fix rather than land drive-bys. When #10749's PR lands (or if the services seat hands the in-flight dev this one-liner via a patch round), this returns to queue with the standard merged-ref re-check — expect the docstring may already have been corrected in passing; verify before dispatching. The replacement wording the card drafts (audit-evidence + redacted-per-reader-per-#10749) is the right shape.Generated by Claude Code
os-zhuang commentedon Aug 24, 2026
Unlock scan (triage seat, session
session_01Nd9biL1MqkZT5tzgTEp7AB, 2026-08-24 hourly round): upstreamBlocked-by: #10749closed today —pm:blocked→pm:queue. That line is exhausted; no other blocker recorded.Re-priced on the closure's terms (re-read #10749's closing comment before dispatch):
sys_approval_request.payload_jsonsnapshots the full raw row and serves it to approvers unfiltered — object-levelhidden: trueand FLS declarations cannot reach inside the JSON blob #10749, verbatim: "hidden: truestays UI-only;internal: trueis the serialization primitive". The FLS half landed as serve-time redaction viagetReadableFields(PR fix(approvals): apply the subject object's field-level read controls to the payload snapshot at serve time #11039).hidden-based redaction (ruled out) and must not resurrect the falsified "used by notifications" claim.sys_approval_request.payload_jsonsnapshots the full raw row and serves it to approvers unfiltered — object-levelhidden: trueand FLS declarations cannot reach inside the JSON blob #10749's closure also assigns a rider to "the next docs touch in the services lane": the residual doc sentence clarifying hidden ≠ serialization /internalis the omission primitive. This card is that next docs touch — carry the rider in the same regeneration pass (same file family,node scripts/check-i18n-bundles.mjs --write, four locales).Type Task,
domain:services, dispatchable.Generated by Claude Code
docs(plugin-approvals): correct what the approval snapshot column is …