|
1 | 1 | // Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license. |
2 | 2 |
|
3 | 3 | /** |
4 | | - * [#14907] `getMetaItemLayered` — the THIRD `/meta` read verb — applies the |
| 4 | + * [commit e1d4f9e3f] `getMetaItemLayered` — the THIRD `/meta` read verb — applies the |
5 | 5 | * registry read gate ITSELF, so a caller cannot spend a raw active |
6 | 6 | * organization on a type that has no per-org read channel. |
7 | 7 | * |
8 | 8 | * ── The defect, and why this verb was graded on its own harm ────────────── |
9 | 9 | * |
10 | | - * The series is #9454 → #14683 (plural `getMetaItems`) → #14770 (singular |
| 10 | + * The series is #9454 → commit 96326040f (plural `getMetaItems`) → commit d5cbb44f3 (singular |
11 | 11 | * `getMetaItem`) → this one. On the plural verb an ungated organization can |
12 | 12 | * only ADD a row; on the singular verb it SUBSTITUTES the served document. |
13 | 13 | * Here the affected value is the `overlay` LAYER of a three-layer diagnostic |
|
28 | 28 | * and it is correct there because the binding already sat AFTER |
29 | 29 | * `canonicalizeMetaRequestType`. Here the binding sat BEFORE the fold, so the |
30 | 30 | * one-liner does NOT port: dropping the same expression in place would gate on |
31 | | - * the RAW type. #10340 measured what that costs — `declaresOrgOverride` |
| 31 | + * the RAW type. Commit 26f3588fb measured what that costs — `declaresOrgOverride` |
32 | 32 | * tolerates the MANIFEST plurals but not the URL-only ones (`translations` / |
33 | 33 | * `email_templates` have no manifest key), so a raw segment splits one item |
34 | 34 | * across two partitions. The fix is therefore a REORDER, and §3 is what fails |
35 | 35 | * if a later author moves the binding back above the fold: it asserts that a |
36 | 36 | * URL-only spelling of an OVERRIDABLE type still reaches its org partition. |
37 | 37 | * |
38 | | - * ── §4–§5 are the idempotence proof the #14683 ruling made this conditional |
| 38 | + * ── §4–§5 are the idempotence proof the ruling behind commit 96326040f made this conditional |
39 | 39 | * on, discharged over THIS door's caller population ────────────────────── |
40 | 40 | * |
41 | 41 | * That ruling makes a callee-side gate conditional on proving no already-gating |
42 | 42 | * caller is double-scoped or wrongly denied, discharged PER DOOR over that |
43 | | - * door's own callers. #14770's proof covers none of this verb's population, so |
| 43 | + * door's own callers. Commit d5cbb44f3's proof covers none of this verb's population, so |
44 | 44 | * it is re-discharged here: §4 covers `f(t, undefined) === undefined` (the four |
45 | 45 | * `plugin-security` invocations that name no organization) and §5 covers |
46 | 46 | * `f(t, f(t, o)) === f(t, o)` over the COMPLETE accepted-spelling population |
@@ -359,13 +359,13 @@ describe('§3 the gate resolves AFTER canonicalizeMetaRequestType', () => { |
359 | 359 | expect(res.overlayScope, spelling).toBe('org'); |
360 | 360 | // ONLY the org partition: the org row wins, so the `overlay === |
361 | 361 | // null` env fallback never runs. Gated on the raw segment this |
362 | | - // list is `[null]` instead — the partition split #10340 measured. |
| 362 | + // list is `[null]` instead — the partition split commit 26f3588fb measured. |
363 | 363 | expect(partitions(findOnes), spelling).toEqual([ORG]); |
364 | 364 | } |
365 | 365 | }); |
366 | 366 |
|
367 | 367 | it('answers the URL spelling and the canonical spelling identically', async () => { |
368 | | - // The #10340 statement restated as an equality: one item, ONE |
| 368 | + // The statement of commit 26f3588fb restated as an equality: one item, ONE |
369 | 369 | // partition, whichever accepted spelling addresses it. |
370 | 370 | for (const spelling of URL_ONLY_OVERRIDABLE) { |
371 | 371 | const canonical = canonicalMetaUrlType(spelling); |
|
0 commit comments