Skip to content

Commit 1d06466

Browse files
committed
test(plugin-security): the organization-removal pin's header quotes step 3.7 as it now reads
Step 3.7 no longer calls an update's organization_id effectively immutable: a re-point the Layer 0 wall admits is stored. The header's citation and its note on the injected column follow it. Comment only. Claude-Session: https://claude.ai/code/session_01UmqzD97e14iws6hmVhgZ5y Co-authored-by: Claude <noreply@anthropic.com>
1 parent 47cde9b commit 1d06466

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

‎packages/plugins/plugin-security/src/tenant-wall-organization-removal.test.ts‎

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
* ## The guarantee
99
*
1010
* Step 3.7 of the security middleware (ADR-0095 D1) states that, outside a
11-
* system context and a platform administrator's posture exemption,
12-
* `organization_id` is effectively immutable on update: the stored row must
13-
* keep satisfying the same Layer 0 filter the read side uses. It judged only
11+
* system context and a platform administrator's posture exemption, an
12+
* update's `organization_id` stays inside the Layer 0 wall: the stored row must
13+
* keep satisfying the same Layer 0 filter the read side uses ([#24822] a
14+
* re-point the wall admits is stored, one it refuses is refused). It judged only
1415
* an organization a row NAMES, so an update that EMPTIED the column was never
1516
* judged at all — neither as the payload was sent nor on the stored row. On an
1617
* ordinary tenant object such a row drops out of every reader's scope; on the
@@ -43,8 +44,9 @@
4344
* The controls read each store as the engine writes it: on an ordinary tenant
4445
* object `organization_id` is the registry's injected `readonly` column, whose
4546
* caller-sent value the engine's static-readonly strip drops for a non-system
46-
* writer (a hook's value it keeps); the grant tables declare the column
47-
* writable, so a sent value is stored as sent.
47+
* writer where no wall judges it, and leaves for the wall's verdict where one
48+
* does ([#24822]; a hook's value it keeps either way); the grant tables declare
49+
* the column writable, so a sent value is stored as sent.
4850
*/
4951

5052
import { describe, it, expect, afterEach, vi } from 'vitest';

0 commit comments

Comments
 (0)