Skip to content

Commit 3c18783

Browse files
refactor(core, plugin-security): the external organization-scope reading moves to core's security module, so service-automation no longer loads plugin-security at run time (#32381)
Fixes #32358 Clause-②: yes (widening) Metadata-protocol: none ## 维护者速读 - 改了什么:把"外部对象声明了哪种组织范围"这一判断(`externalOrganizationScopeOf`、它的 Layer 0 投影、它依赖的幻影锚点判断,以及统一的补救文案 `EXTERNAL_SCOPE_REMEDY`)从 `plugin-security` 原样搬到 `@objectstack/core` 的 security 模块;`plugin-security` 在原模块路径和包入口继续导出同名绑定(转出口),同步拉取改从 core 引入。 - 为什么改:sync-in 拉取只为调用一个纯函数、读一句文案,就让 `@objectstack/service-automation` 在运行时依赖整个安全插件包;这个判断用到的东西本来都在插件之下(契约评审 N1)。 - 风险与回滚:代码逐字节搬运,行为不变,只有一份实现;风险在于 core 的公开导出面多了六个名字(因此声明 `Clause-②: yes (widening)`)。回滚即还原本 PR。 - 先看:`packages/core/src/security/external-organization-scope.ts`(搬过来的实现)、`packages/plugins/plugin-security/src/external-organization-scope.ts`(改为转出口)、`packages/services/service-automation/package.json`(`plugin-security` 回到 devDependencies)。 - 两分钟验证:`pnpm --filter @objectstack/core exec vitest run --maxWorkers=2 src/security/external-organization-scope.test.ts`,预期 13 个用例全绿(与原插件里的同一组用例逐字一致)。 - 需要你做的:无,席位落地。 ## What changes - **`@objectstack/core`** gains `packages/core/src/security/external-organization-scope.ts`, exported from the security module (so from the package entry): `externalOrganizationScopeOf`, `externalOrganizationScopeIsUndeclared`, `declaredForeignTenantField`, `hasPhantomTenantAnchor`, the `ExternalOrganizationScope` type and `EXTERNAL_SCOPE_REMEDY`. Every definition is the plugin's text, byte for byte (compared function by function against the merge base `326453eb9`). It composes only what core already depends on: `isFederatedObject` (core), `isTenancyDisabled` (`@objectstack/spec/data`) and `TENANT_SCOPE_FIELD_DEF` (`@objectstack/metadata-core`, already a run-time dependency of core; metadata-core depends on spec and zod only, so no cycle). - **`@objectstack/plugin-security`**: `external-organization-scope.ts` re-exports those bindings from core and keeps everything that is the plugin's own (the boot refusal, its error class, the write-wall refusal, the post-boot warning). `federated-phantom-anchors.ts` keeps its module docblock and re-exports `hasPhantomTenantAnchor` and `isFederatedObject` from core. `security-plugin.ts` imports the two bindings it reads for the Layer 0 input from core. The package entry exports the same names as before. - **`@objectstack/service-automation`**: `datasource-pull.ts` imports the reading from `@objectstack/core` (the import line only, so it merges cleanly with the in-flight sync-in slice 3 branch, which edits the docblock and code around it). `@objectstack/plugin-security` moves back to `devDependencies`, where it sat before the sync-in slice 2 PR (the test suites still boot `SecurityPlugin`); the manifest blob is the pre-slice-2 one again. Lockfile updated to match. - Why `hasPhantomTenantAnchor` moved too: the reading calls it (an external object's own `organization_id` is `walled` only when it is not the platform's injected anchor), and it is the only path by which the reading reads `TENANT_SCOPE_FIELD_DEF`. Leaving it in the plugin would have meant a second copy in core. ## Tests - The reading's thirteen cases moved verbatim to `packages/core/src/security/external-organization-scope.test.ts` (the `describe` block is byte-identical to the one removed from the plugin). - The plugin's `external-organization-scope.test.ts` gains a re-export pin: the module path, `federated-phantom-anchors.ts` and the package entry serve core's bindings by identity, plus one case reading an undeclared external object through the plugin's module path. The boot door, Layer 0 door and write-wall cases are unchanged. - No ablation: a pure move changes no tested behaviour. ## Acceptance notes - `datasource-pull.ts` still says, in its module docblock, that the scope "is read by plugin-security's `externalOrganizationScopeOf`". Left untouched on purpose: the sync-in slice 3 branch rewrites the neighbouring docblock lines, and the dispatch held this edit to the import line. The sentence's carrier is that slice. - No ADR anchor was added for the new core file; the existing anchor on the plugin file (ADR-0015, ADR-0095) still holds, and the core file names both ADRs in its header. - The branch is 13 commits behind `main`; `git merge-tree` against `main` at `d7c3d44ecd` is clean. The only overlap is `packages/core/src/security/index.ts`, where `main` added one export in a different block. ## Verification All readings on head `11d3bf57a5`. <details><summary>Tests and typecheck</summary> - `pnpm --filter @objectstack/core test`: Test Files 145 passed (145), Tests 3311 passed (3311), exit 0. - `pnpm --filter @objectstack/plugin-security test`: Test Files 259 passed (259), Tests 6249 passed, 45 skipped (6294), exit 0. - `pnpm --filter @objectstack/service-automation test`: Test Files 275 passed (275), Tests 3699 passed (3699), exit 0. - `pnpm --filter @objectstack/core --filter @objectstack/plugin-security --filter @objectstack/service-automation run typecheck`: lock VERDICT command-exit 0; each package's `check:test-typecheck` OK. </details> <details><summary>Gates</summary> - `pnpm lint`: lock VERDICT command-exit 0, no output from eslint. - `node scripts/pm/dispatch-gates.mjs --commands`: 89 commands derived; all 89 run, each exit recorded; `--ran` reconciliation: "89 derived famil(ies) accounted for — 89 run, 0 NOT-MEASURED (a DERIVED zero)". Three of them (`check:dual-build-cjs-loads`, `check:i18n`, `check:published-readme-exports`) first answered exit 3 (no full build in the tree) and were re-run after `check:type-check-debt` built the closure: all three exit 0. - `node scripts/check-platform-checklist.mjs --changed-from origin/main`: exit 0, "4 anchor(s) judged, 0 lost". </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01QSeKYm8sWjp2Pk76warN7w)_ --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 7ac0479 commit 3c18783

11 files changed

Lines changed: 375 additions & 220 deletions
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
'@objectstack/core': patch
3+
'@objectstack/plugin-security': patch
4+
'@objectstack/service-automation': patch
5+
---
6+
7+
refactor(core, plugin-security): the external organization-scope reading lives in `@objectstack/core`, so `@objectstack/service-automation` no longer loads `@objectstack/plugin-security` at run time
8+
9+
Clause-②: yes (widening)
10+
Metadata-protocol: none
11+
12+
`@objectstack/core` now exports the one reading of the organization scope an external object states (ADR-0015 §10): `externalOrganizationScopeOf`, its Layer 0 projection `externalOrganizationScopeIsUndeclared`, `declaredForeignTenantField`, the provenance test it composes `hasPhantomTenantAnchor`, the `ExternalOrganizationScope` type, and the three-ways-out sentence `EXTERNAL_SCOPE_REMEDY`. The code moved unchanged; every answer and every sentence is the same.
13+
14+
`@objectstack/plugin-security` keeps exporting the same names from its package entry and from the same module paths. They are now re-exports of the core bindings, so an importer of either package gets the same function. Nothing to change in your code.
15+
16+
`@objectstack/service-automation`'s sync-in pull imports the reading from `@objectstack/core`, and `@objectstack/plugin-security` moves back to its dev dependencies. Installing the automation service no longer installs the security plugin package.
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* Under a walled tenancy posture every external object states its organization
5+
* scope (ADR-0015 §10) — the one reading of the declaration. The boot refusal,
6+
* the Layer 0 door and the write wall that read it are pinned in
7+
* `@objectstack/plugin-security`'s `external-organization-scope.test.ts`, which
8+
* also pins that the plugin re-exports these bindings rather than restating them.
9+
*/
10+
11+
import { describe, it, expect } from 'vitest';
12+
import { TENANT_SCOPE_FIELD_DEF } from '@objectstack/metadata-core';
13+
import {
14+
externalOrganizationScopeOf,
15+
externalOrganizationScopeIsUndeclared,
16+
} from './external-organization-scope.js';
17+
18+
const REMOTE_COLUMNS = { name: { type: 'text', label: 'Name' }, email: { type: 'text', label: 'Email' } };
19+
20+
/** The registry's view of an external object the author left silent: the remote columns plus the injected anchor. */
21+
const undeclared = (extra: Record<string, unknown> = {}) => ({
22+
name: 'ext_customer',
23+
external: { remoteName: 'customers' },
24+
fields: { organization_id: { ...TENANT_SCOPE_FIELD_DEF }, ...REMOTE_COLUMNS },
25+
...extra,
26+
});
27+
28+
describe('externalOrganizationScopeOf — the one reading of the declaration', () => {
29+
it('a local object is not asked: `null`', () => {
30+
expect(externalOrganizationScopeOf({ name: 'task', fields: { organization_id: { ...TENANT_SCOPE_FIELD_DEF } } })).toBeNull();
31+
});
32+
33+
it('an external object carrying only the injected anchor states nothing', () => {
34+
expect(externalOrganizationScopeOf(undeclared())).toBe('undeclared');
35+
expect(externalOrganizationScopeIsUndeclared(undeclared())).toBe(true);
36+
});
37+
38+
it('an external object with no `organization_id` at all states nothing either', () => {
39+
expect(externalOrganizationScopeOf({ name: 'ext', external: { remoteName: 'x' }, fields: REMOTE_COLUMNS })).toBe('undeclared');
40+
});
41+
42+
it("the author's own `organization_id` field walls the object", () => {
43+
const schema = { name: 'ext', external: { remoteName: 'x' }, fields: { organization_id: { type: 'text', label: 'Org' }, ...REMOTE_COLUMNS } };
44+
expect(externalOrganizationScopeOf(schema)).toBe('walled');
45+
expect(externalOrganizationScopeIsUndeclared(schema)).toBe(false);
46+
});
47+
48+
it('the array `fields` shape reaches the same verdicts', () => {
49+
expect(externalOrganizationScopeOf({
50+
name: 'ext', external: { remoteName: 'x' },
51+
fields: [{ name: 'organization_id', ...TENANT_SCOPE_FIELD_DEF }, { name: 'name', type: 'text' }],
52+
})).toBe('undeclared');
53+
expect(externalOrganizationScopeOf({
54+
name: 'ext', external: { remoteName: 'x' },
55+
fields: [{ name: 'organization_id', type: 'text', label: 'Org' }, { name: 'name', type: 'text' }],
56+
})).toBe('walled');
57+
});
58+
59+
it('`tenancy: { enabled: false }` declares the object shared', () => {
60+
expect(externalOrganizationScopeOf({ name: 'ext', external: { remoteName: 'x' }, tenancy: { enabled: false }, fields: REMOTE_COLUMNS })).toBe('shared');
61+
});
62+
63+
it('`systemFields.tenant: false` declares the object shared', () => {
64+
expect(externalOrganizationScopeOf({ name: 'ext', external: { remoteName: 'x' }, systemFields: { tenant: false }, fields: REMOTE_COLUMNS })).toBe('shared');
65+
});
66+
67+
it("the whole-block `systemFields: false` is not one of the wall's opt-out clauses: alone it states nothing", () => {
68+
// The registry's recorded reading: the wall's `tenancyDisabled` has exactly
69+
// two clauses, and `systemFields: false` is in neither.
70+
const schema = { name: 'ext', external: { remoteName: 'x' }, systemFields: false, fields: REMOTE_COLUMNS };
71+
expect(externalOrganizationScopeOf(schema)).toBe('undeclared');
72+
expect(externalOrganizationScopeIsUndeclared(schema)).toBe(true);
73+
});
74+
75+
it('an object with its own `organization_id` beside `systemFields: false` is walled — never answered shared', () => {
76+
expect(externalOrganizationScopeOf({
77+
name: 'ext', external: { remoteName: 'x' }, systemFields: false,
78+
fields: { organization_id: { type: 'text', label: 'Org' }, ...REMOTE_COLUMNS },
79+
})).toBe('walled');
80+
});
81+
82+
it("an opt-out clause beside an own `organization_id` is shared, as the wall reads it (it composes nothing on an opted-out object)", () => {
83+
expect(externalOrganizationScopeOf({
84+
name: 'ext', external: { remoteName: 'x' }, tenancy: { enabled: false },
85+
fields: { organization_id: { type: 'text', label: 'Org' }, ...REMOTE_COLUMNS },
86+
})).toBe('shared');
87+
});
88+
89+
it('`tenancy.tenantField` naming another column is a declaration the wall cannot enforce', () => {
90+
const schema = {
91+
name: 'ext', external: { remoteName: 'x' }, tenancy: { enabled: true, tenantField: 'remote_org' },
92+
fields: { remote_org: { type: 'text', label: 'Remote org' }, organization_id: { ...TENANT_SCOPE_FIELD_DEF }, ...REMOTE_COLUMNS },
93+
};
94+
expect(externalOrganizationScopeOf(schema)).toBe('tenant-field-unenforceable');
95+
expect(externalOrganizationScopeIsUndeclared(schema)).toBe(true);
96+
});
97+
98+
it("`tenancy.tenantField: 'organization_id'` beside a declared `organization_id` is the walled declaration", () => {
99+
expect(externalOrganizationScopeOf({
100+
name: 'ext', external: { remoteName: 'x' }, tenancy: { enabled: true, tenantField: 'organization_id' },
101+
fields: { organization_id: { type: 'text', label: 'Org' }, ...REMOTE_COLUMNS },
102+
})).toBe('walled');
103+
});
104+
105+
it('`tenancy: { enabled: true }` alone declares nothing', () => {
106+
expect(externalOrganizationScopeOf(undeclared({ tenancy: { enabled: true } }))).toBe('undeclared');
107+
});
108+
});
Lines changed: 172 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,172 @@
1+
// Copyright (c) 2026 ObjectStack. Licensed under the Apache-2.0 license.
2+
3+
/**
4+
* [ADR-0015 §10, ADR-0095 D1] The one reading of the organization scope an
5+
* external object states, and the three ways out every door spells.
6+
*
7+
* Under a walled tenancy posture (`isolated` or `group`) every external object
8+
* (ADR-0015 `external`: an object bound to a datasource whose schema the
9+
* platform does not own) states its organization scope, in one of three ways:
10+
* its own `organization_id` field, `tenancy: { enabled: false }`, or
11+
* `systemFields: { tenant: false }`. The rule, the boot refusal of an object
12+
* stating none, the Layer 0 denial of one registered after the boot and the
13+
* write wall's refusal live in `@objectstack/plugin-security`'s
14+
* `external-organization-scope.ts`, whose module docblock is the full account.
15+
*
16+
* ## One predicate, every door
17+
*
18+
* {@link externalOrganizationScopeOf} is the one reading of the declaration.
19+
* The plugin's boot refusal enumerates the registry with it, its
20+
* `getObjectSecurityMeta` reads it for the Layer 0 input
21+
* (`externalOrganizationScopeUndeclared`, through
22+
* {@link externalOrganizationScopeIsUndeclared}), and the sync-in pull in
23+
* `@objectstack/service-automation` reads it to decide whose rows it may copy.
24+
* They cannot disagree, because none re-derives the question.
25+
*
26+
* ## Why it lives here, in `@objectstack/core`
27+
*
28+
* The reading is pure and everything it composes already sits at this layer:
29+
* {@link isFederatedObject} (`./tenant-field.ts`), the spec's
30+
* `isTenancyDisabled`, and `@objectstack/metadata-core`'s
31+
* {@link TENANT_SCOPE_FIELD_DEF} through {@link hasPhantomTenantAnchor}. A
32+
* service that needs the answer then depends on the kernel, which it already
33+
* does, rather than on the security plugin's package; the plugin re-exports
34+
* these bindings under its own module paths, so its public surface is
35+
* unchanged and every importer resolves to the same functions.
36+
*/
37+
38+
import { isTenancyDisabled } from '@objectstack/spec/data';
39+
40+
// [#6562] The injected-column DEFINITION table lives in `@objectstack/metadata-core`
41+
// (the registry that provisions the columns re-exports it from there, and the `/meta`
42+
// read path consumes the same one). Importing the constant — rather than restating
43+
// its shape here — is what makes the provenance test track the producer instead of a
44+
// copy that can drift silently.
45+
import { TENANT_SCOPE_FIELD_DEF } from '@objectstack/metadata-core';
46+
47+
import { isFederatedObject } from './tenant-field.js';
48+
49+
/** The one column the Layer 0 wall keys on. */
50+
const TENANT_SCOPE_COLUMN = 'organization_id';
51+
52+
/** Pick a field definition out of either registered `fields` shape. */
53+
function readFieldDef(schema: unknown, name: string): unknown {
54+
const fields = (schema as { fields?: unknown } | null | undefined)?.fields;
55+
if (Array.isArray(fields)) return fields.find((f) => (f as { name?: unknown } | null)?.name === name);
56+
if (fields && typeof fields === 'object') return (fields as Record<string, unknown>)[name];
57+
return undefined;
58+
}
59+
60+
// ── Provenance of a federated object's `organization_id` (#7835) ────────────
61+
62+
/**
63+
* Structural identity against the shipped constant. Flat by construction —
64+
* every value in {@link TENANT_SCOPE_FIELD_DEF} is a primitive — so a flat
65+
* comparison is exact rather than a shortcut, and an extra or missing key is a
66+
* mismatch: any mismatch answers "not the platform's anchor", which leaves the
67+
* Layer 0 wall enforcing. The fail direction is toward isolation, never toward
68+
* exposure.
69+
*
70+
* The array shape carries an additional `name` key that the object shape
71+
* expresses as the map key; it is excluded so both shapes reach the same
72+
* verdict about the same column.
73+
*/
74+
function equalsShippedDef(def: unknown, shipped: Readonly<Record<string, unknown>>): boolean {
75+
if (!def || typeof def !== 'object' || Array.isArray(def)) return false;
76+
const actual = { ...(def as Record<string, unknown>) };
77+
delete actual.name;
78+
const shippedKeys = Object.keys(shipped);
79+
if (Object.keys(actual).length !== shippedKeys.length) return false;
80+
return shippedKeys.every((k) => actual[k] === shipped[k]);
81+
}
82+
83+
/**
84+
* Does this object's `organization_id` exist only in the registry — i.e. is it
85+
* the platform's injected anchor on an object whose storage the platform never
86+
* provisioned?
87+
*
88+
* `applySystemFields` injects `organization_id` into every object that has not
89+
* opted out, federated ones included, but the platform provisions no storage
90+
* for a federated object. The question is provenance, answered by identity
91+
* against the shipped declaration: `applySystemFields` spreads
92+
* {@link TENANT_SCOPE_FIELD_DEF} verbatim and an authored field of the same
93+
* name suppresses the injection, so a registered def equal to the constant can
94+
* only have come from the platform (`@objectstack/plugin-security`'s
95+
* `federated-phantom-anchors.ts`, which re-exports this binding, carries the
96+
* full account).
97+
*
98+
* `true` ⇒ Layer 0 must treat the object as carrying NO tenant column, because
99+
* it does not. `false` for every local object (the platform DID provision the
100+
* column there) and for a federated object whose author declared a real remote
101+
* `organization_id`.
102+
*/
103+
export function hasPhantomTenantAnchor(schema: unknown): boolean {
104+
if (!isFederatedObject(schema)) return false;
105+
return equalsShippedDef(readFieldDef(schema, TENANT_SCOPE_COLUMN), TENANT_SCOPE_FIELD_DEF);
106+
}
107+
108+
// ── The declaration an external object makes ──────────────────────────────
109+
110+
/**
111+
* What an external object states about its organization scope.
112+
*
113+
* - `tenant-field-unenforceable` — `tenancy.tenantField` names a column other
114+
* than `organization_id`, which the wall does not read on an external object
115+
* (judged first: a tenant field the wall cannot read is refused whatever
116+
* else the object declares, unless it opted out of tenancy altogether).
117+
* - `shared` — the wall's own two opt-out clauses, `tenancy.enabled: false` or
118+
* `systemFields.tenant: false`; the whole-block `systemFields: false` is in
119+
* neither and states nothing.
120+
* - `walled` — it declares its own `organization_id` (any definition other
121+
* than the platform's injected one; a parsed copy of the shipped definition
122+
* carries the parser's defaults and so counts as the author's). An object
123+
* with its own column is never answered `shared` unless it also opted out,
124+
* because the wall walls it.
125+
* - `undeclared` — none of the above.
126+
*/
127+
export type ExternalOrganizationScope = 'walled' | 'shared' | 'undeclared' | 'tenant-field-unenforceable';
128+
129+
/** The declared `tenancy.tenantField`, when it names a column other than the wall's. */
130+
export function declaredForeignTenantField(schema: unknown): string | null {
131+
const declared = (schema as { tenancy?: { tenantField?: unknown } } | null | undefined)?.tenancy?.tenantField;
132+
if (typeof declared !== 'string' || declared === '' || declared === TENANT_SCOPE_COLUMN) return null;
133+
return declared;
134+
}
135+
136+
/**
137+
* The declaration an external object makes, or `null` for an object that is
138+
* not external (the question does not arise: the platform provisions its
139+
* columns, so its `organization_id` is real wherever it is registered).
140+
*/
141+
export function externalOrganizationScopeOf(schema: unknown): ExternalOrganizationScope | null {
142+
if (!isFederatedObject(schema)) return null;
143+
// The wall's two opt-out clauses, exactly as `getObjectSecurityMeta` reads
144+
// `tenancyDisabled`: an object that opted out is shared whatever column it
145+
// carries, because the wall composes nothing on it.
146+
const systemFields = (schema as { systemFields?: unknown }).systemFields;
147+
const optedOut =
148+
isTenancyDisabled(schema) ||
149+
(!!systemFields && typeof systemFields === 'object' && (systemFields as { tenant?: unknown }).tenant === false);
150+
if (!optedOut && declaredForeignTenantField(schema) !== null) return 'tenant-field-unenforceable';
151+
if (optedOut) return 'shared';
152+
if (readFieldDef(schema, TENANT_SCOPE_COLUMN) !== undefined && !hasPhantomTenantAnchor(schema)) return 'walled';
153+
return 'undeclared';
154+
}
155+
156+
/**
157+
* Does Layer 0 deny this object under a walled posture because it is external
158+
* and states no enforceable organization scope? `false` for every local
159+
* object and for an external object that declared `walled` or `shared`.
160+
*/
161+
export function externalOrganizationScopeIsUndeclared(schema: unknown): boolean {
162+
const scope = externalOrganizationScopeOf(schema);
163+
return scope === 'undeclared' || scope === 'tenant-field-unenforceable';
164+
}
165+
166+
/** The three ways out, as every refusal and warning spells them. */
167+
export const EXTERNAL_SCOPE_REMEDY =
168+
'Declare one of three on each: an `organization_id` field of its own, when the remote rows carry the ' +
169+
'organization column and the driver returns it (a remote column of another name is mapped onto it with ' +
170+
"`external.columnMap: { <remote column>: 'organization_id' }`) — the rows are then walled by organization; " +
171+
'`tenancy: { enabled: false }` — the object is shared by every organization; or ' +
172+
'`systemFields: { tenant: false }` — the same opt-out, spelled on the system fields.';

‎packages/core/src/security/index.ts‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,21 @@ export {
353353
// same bindings) and the import runner's match lookup.
354354
export { DEFAULT_TENANT_FIELD, isFederatedObject, resolveTenantFieldName } from './tenant-field.js';
355355

356+
// [ADR-0015 §10, ADR-0095 D1] The one reading of the organization scope an
357+
// external object states, its Layer 0 projection, the provenance test of a
358+
// federated object's `organization_id` it composes, and the three ways out.
359+
// Askers: `@objectstack/plugin-security` (boot refusal, Layer 0 input and write
360+
// wall; it re-exports these same bindings) and the sync-in pull in
361+
// `@objectstack/service-automation`.
362+
export {
363+
declaredForeignTenantField,
364+
EXTERNAL_SCOPE_REMEDY,
365+
externalOrganizationScopeIsUndeclared,
366+
externalOrganizationScopeOf,
367+
hasPhantomTenantAnchor,
368+
type ExternalOrganizationScope,
369+
} from './external-organization-scope.js';
370+
356371
// [ADR-0138 D4] The located refusal an anonymous request meets where it needs
357372
// an organization the deployment cannot resolve for it — a standard-catalog
358373
// code (`NOT_IMPLEMENTED`), naming the missing site binding (D5).

0 commit comments

Comments
 (0)