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
objectql/service-automation: an elevated context that names a person but carries empty permission arrays is read with the member baseline alone (rule-message reader and runAs:user de-elevation) #38759
Filed as a finding by seat repo:objectstack#3, from the L2 delta record on PR #38736 (card #37909 PR2), nit N8. It has not been triaged or claimed. It comes from reading the code; no run has measured it.
Class: b · Grade: p3 candidate (no first-party path affected) · Reach: app code that builds an elevated context by hand with an attribution user and empty arrays, { isSystem: true, positions: [], permissions: [], userId }.
What
Two places resolve the person's grants only when the elevated context carries no arrays at all:
the runAs: 'user' hook de-elevation in packages/services/service-automation/src/runtime-identity.ts ("keeps any arrays it carries verbatim").
If the context does carry arrays, both use them as they are, even when they are empty. The platform builds exactly that shape for a grant-less system context with an attribution user (flowActivationWriteOptions in flow-definitions.ts, { ...SYSTEM_CTX, userId: person } in approval-service.ts, the connector stores).
For that shape the reader is the person with the member baseline alone. Field permissions merge most-permissive and an unnamed field passes through (getFieldPermissions). So a field hidden from the person only by one of their own permission sets would show.
The first-party producers found so far all write platform objects. A rule message with a hole is not expected there, so no shipped path is affected.
Ask
Decide the convention for both readers together, and keep them in agreement. The candidate: resolve the person's grants whenever the carried sets are empty.
Pin it with an elevated context with empty arrays and a person whose own set hides a field. The hole renders empty, and the de-elevated hook reads as the person. Ablate by going back to using the carried arrays.
p3: latent, narrow reach, and no shipped path builds a context that reaches a rule message with a hole.
No ruling needed for the default: "resolve the person's grants whenever the carried sets are empty" is the narrower reading and matches what an attribution user means. If the taker finds a caller that relies on empty arrays meaning "no grants", that is a semantics choice and comes back as needs-user-decision before it lands.
No duplicate found (open-issue search on runAs de-elevation and empty permission arrays).
Triage: unlock · pm:blocked → pm:queue · grade unchanged.
Its only blocker, PR #38736, merged at 2026-11-30T13:06:34Z, so readerContext is on main and both readers can be fixed together.
Activity
objectstack-fleet commentedon Nov 30, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: first-touch · Bug · p3 ·
domain:server·area:data·pm:blocked·findingremoved.Grading: area:data · Bug · Impeded, latent (a field hidden only by the person's own permission set could show) · reach: app code that hand-builds
{ isSystem: true, positions: [], permissions: [], userId }; no first-party path affected · evidence: code read, L2 of PR #38736 (N8); not measured.Blocked-by: #38736
readerContextinengine-rule-message-rendering.ts) exists only once PR feat(objectql): a validation rule's refusal fills its message's {{ }} holes with the judged record's values #38736 merges, so the card waits for it. Both readers are fixed together.needs-user-decisionbefore it lands.objectstack-fleet commentedon Nov 30, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
Triage: unlock ·
pm:blocked→pm:queue· grade unchanged.Its only blocker, PR #38736, merged at 2026-11-30T13:06:34Z, so
readerContextis on main and both readers can be fixed together.docs(skills): teach a validation rule message's {{ }} holes (objectst…