Skip to content

Commit 6bb4831

Browse files
committed
test(plugin-sharing): pin the field-recipient doubles in the ledger; re-anchor the shifted system-context citations
The new suite's fake engine is recorded in scripts/engine-double-contract.pinned.json (the gate's own --write), and the two elevation-read anchors the system-context page carries into sharing-rule-service.ts moved with the inserted module helpers (the census gate's own --fix; a shift, not a population change). Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XpTx2tbq3pZRYAdoGt6E6Y
1 parent 89daeb0 commit 6bb4831

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

content/docs/permissions/system-context.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ The largest single consumer — **17 of the 106 sites**.
137137
| 36 | `sys_record_share` reads are **not** self-scoped | Get: tenant-wide share listing without `manage_sharing` | `sharing-plugin.ts:1088` |
138138
| 37 | Share-link policy `enabled` check bypassed; system callers re-enter under a system context | Get: link **creation** while the policy is off — resolution is **not** bypassed since #14033 (`publicSharing.enabled` is a standing policy held at every redemption): a link minted this way does not resolve until the block is enabled | `plugin-sharing/src/share-link-service.ts:469`, `:523`, `:527`, `:600`, `:630` |
139139
| 38 | Sharing-rule provenance stamp skipped | Lose: the row is not marked as an admin customization — seeder / `defineRule` / boot reconcilers are "the package door" | `sharing-rule-provenance.ts:47` |
140-
| 39 | Sharing-rule service write + delete paths return early | Lose: the manage-rules gate on the service surface, and the platform-global-rule delete guard | `sharing-rule-service.ts:165`, `:390` |
140+
| 39 | Sharing-rule service write + delete paths return early | Lose: the manage-rules gate on the service surface, and the platform-global-rule delete guard | `sharing-rule-service.ts:241`, `:466` |
141141

142142
### 4. Approvals, reports, attachments, comments, knowledge
143143

packages/plugins/plugin-sharing/src/field-recipient.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,6 @@ function makeEngine() {
182182
return engine;
183183
}
184184

185-
type Engine = ReturnType<typeof makeEngine>;
186-
187185
const OBJECT = 'request';
188186
const RULE = 'approved_to_assignees';
189187

scripts/engine-double-contract.pinned.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2781,6 +2781,16 @@
27812781
"verb": "update",
27822782
"pinned": 1
27832783
},
2784+
{
2785+
"file": "packages/plugins/plugin-sharing/src/field-recipient.test.ts",
2786+
"verb": "delete",
2787+
"pinned": 1
2788+
},
2789+
{
2790+
"file": "packages/plugins/plugin-sharing/src/field-recipient.test.ts",
2791+
"verb": "update",
2792+
"pinned": 1
2793+
},
27842794
{
27852795
"file": "packages/plugins/plugin-sharing/src/recipient-width.test.ts",
27862796
"verb": "delete",

0 commit comments

Comments
 (0)