Skip to content

Commit 48abef7

Browse files
committed
test(dogfood): showcase D3/D4 contrast reads the public-OWD refusal #25549 words
#25591 (#25549) made a public object's share row reachable by an external member of the record's organization, so SharingService.grant's refusal on a public object now names the recipient's standing. The showcase D3/D4 proof still pinned the pre-#25549 sentence and failed the Dogfood Regression Gate on main from a57643d, which refused the 18.1.0 release at its version commit. Claude-Session: https://claude.ai/code/session_014C7q5Hm34g4EPdirar9SzN Co-authored-by: Claude <noreply@anthropic.com>
1 parent 74fa3cb commit 48abef7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎packages/qa/dogfood/test/showcase-d3-d4-capabilities.dogfood.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,21 @@ describe('showcase: D3 compound sharing (#1887) + D4 RLS check', () => {
122122
expect(granted, 'a share row on a private-OWD object is accepted').toBeTruthy();
123123

124124
// The contrast that names the retired rules' defect, on the object they
125-
// used to sit on: same call, same caller, refused for the OWD alone. The
125+
// used to sit on: same call, same caller, refused for the OWD. The
126126
// record id deliberately names no row — the D7 verdict is computed from
127127
// the OBJECT before any record is read, which is precisely why it is
128128
// caller- and record-independent. Both the code and the object are
129129
// asserted, so a refusal arriving for some other reason cannot pass.
130+
// [#25549] A public object's share row is now consulted for an EXTERNAL
131+
// member of the record's organization, so the public-OWD refusal names the
132+
// recipient's standing: `u_d34_probe` resolves to no organization, and the
133+
// row would still never be consulted for it.
130134
await expect(
131135
sharing.grant(
132136
{ object: 'showcase_project', recordId: 'pj_absent', recipientType: 'user', recipientId: 'u_d34_probe', accessLevel: 'read' },
133137
{ isSystem: true },
134138
),
135-
).rejects.toThrow(/SHARING_NOT_ENABLED: 'showcase_project' is not under record-sharing enforcement/);
139+
).rejects.toThrow(/SHARING_NOT_ENABLED: 'showcase_project' has a public sharing model, so a share row on it is consulted only for an external member/);
136140
});
137141

138142
// ── ADR-0058 D4 ────────────────────────────────────────────────────────────

0 commit comments

Comments
 (0)