|
8 | 8 | * ## The guarantee |
9 | 9 | * |
10 | 10 | * 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 |
14 | 15 | * an organization a row NAMES, so an update that EMPTIED the column was never |
15 | 16 | * judged at all — neither as the payload was sent nor on the stored row. On an |
16 | 17 | * ordinary tenant object such a row drops out of every reader's scope; on the |
|
43 | 44 | * The controls read each store as the engine writes it: on an ordinary tenant |
44 | 45 | * object `organization_id` is the registry's injected `readonly` column, whose |
45 | 46 | * 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. |
48 | 50 | */ |
49 | 51 |
|
50 | 52 | import { describe, it, expect, afterEach, vi } from 'vitest'; |
|
0 commit comments