Skip to content

Commit 0b45314

Browse files
committed
fix(security): re-pin the assertions on the rewritten strings; locale help carries the shared-vocabulary decision (stage 5, wip)
Claude-Session: https://claude.ai/code/session_01DiCSbmJrkzNhuEAier4VoJ Co-authored-by: Claude <noreply@anthropic.com>
1 parent 4167a68 commit 0b45314

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎packages/plugins/plugin-security/src/default-report-sink.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe('[#10556 (a)] SecurityPlugin default report sink', () => {
7777
expect(filter).toBeDefined();
7878

7979
expect(seen).toHaveLength(1);
80-
expect(String(seen[0]?.[0])).toContain('denying (fail-closed, #2852)');
80+
expect(String(seen[0]?.[0])).toContain("denying (fail-closed: a delegated read is never scoped wider than its delegator's own)");
8181
});
8282

8383
it('guarantees a `warn` channel on the default sink, and routes it to the console', () => {

‎packages/plugins/plugin-security/src/deployment-platform-global-exemption.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe('[#12699] platformGlobalObjects — the deployment carve-out', () => {
160160
});
161161
// And nothing to refuse means nothing to warn about.
162162
const warned = logger.warn.mock.calls.map((c) => String(c[0]));
163-
expect(warned.filter((m) => m.includes('#12699'))).toEqual([]);
163+
expect(warned.filter((m) => m.includes('org-scoping entitlement key'))).toEqual([]);
164164
});
165165

166166
it('composes with, never replaces, the object-level channel: `tenancy.enabled:false` stays exempt with no deployment declaration', async () => {

‎packages/plugins/plugin-security/src/metadata-outage-unresolved-cause.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ describe('[#10424] the wording module states three distinct things', () => {
347347
expect(remedy).toContain('Do NOT change the declaration');
348348
expect(remedy).toContain('NOT a permissions problem');
349349
expect(unresolvedPostureExplainDetail('task', 'metadata_unavailable')).toContain('OUTAGE');
350-
expect(unresolvedPostureExplainDetail('task', 'metadata_unavailable')).toContain('#3545');
350+
expect(unresolvedPostureExplainDetail('task', 'metadata_unavailable')).toContain('rather than defaulting to public/uncontracted');
351351
});
352352

353353
it('the outage denial keeps the pinned opening clause verbatim', () => {
@@ -362,7 +362,7 @@ describe('[#10424] the wording module states three distinct things', () => {
362362
for (const c of causes) {
363363
expect(unresolvedPostureDenialMessage('task', 'find', c)).toContain('[Security] Access denied:');
364364
expect(unresolvedPostureExplainDetail('task', c)).toContain('fails CLOSED');
365-
expect(unresolvedPostureLogLine('task', 'find', 'u1', c)).toContain('fail-closed, #3545');
365+
expect(unresolvedPostureLogLine('task', 'find', 'u1', c)).toContain('fail-closed: an unreadable posture never defaults to public');
366366
}
367367
});
368368
});

‎packages/plugins/plugin-security/src/translations/es-ES.objects.generated.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
4343
},
4444
managed_by: {
4545
label: "Gestionado por",
46-
help: "Procedencia del registro: platform (integrado) / package (declarado) / admin (creado por el inquilino).",
46+
help: "Procedencia del registro, en el único vocabulario platform / package / admin que comparten capacidades, conjuntos de permisos y puestos: platform (integrado) / package (declarado) / admin (creado por el inquilino).",
4747
options: {
4848
platform: "Plataforma",
4949
package: "Paquete",
@@ -230,7 +230,7 @@ export const esESObjects: NonNullable<TranslationData['objects']> = {
230230
},
231231
managed_by: {
232232
label: "Gestionado por",
233-
help: "Procedencia del registro: platform (distribuido) / package (empaquetado) / admin (creado en el entorno).",
233+
help: "Procedencia del registro, en el único vocabulario platform / package / admin que comparten capacidades, conjuntos de permisos y puestos: platform (distribuido) / package (empaquetado) / admin (creado en el entorno).",
234234
options: {
235235
platform: "Plataforma",
236236
package: "Paquete",

‎packages/plugins/plugin-security/src/translations/ja-JP.objects.generated.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
4343
},
4444
managed_by: {
4545
label: "管理元",
46-
help: "レコードの出所:platform(組み込み)/ package(宣言済み)/ admin(テナント作成)。",
46+
help: "レコードの出所(ケイパビリティ・権限セット・ポジションで共通の platform / package / admin の語彙):platform(組み込み)/ package(宣言済み)/ admin(テナント作成)。",
4747
options: {
4848
platform: "プラットフォーム",
4949
package: "パッケージ",
@@ -230,7 +230,7 @@ export const jaJPObjects: NonNullable<TranslationData['objects']> = {
230230
},
231231
managed_by: {
232232
label: "管理元",
233-
help: "レコードの出所:platform(配布)/ package(パッケージ)/ admin(環境作成)。",
233+
help: "レコードの出所(ケイパビリティ・権限セット・ポジションで共通の platform / package / admin の語彙):platform(配布)/ package(パッケージ)/ admin(環境作成)。",
234234
options: {
235235
platform: "プラットフォーム",
236236
package: "パッケージ",

‎packages/plugins/plugin-security/src/translations/zh-CN.objects.generated.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
4343
},
4444
managed_by: {
4545
label: "管理来源",
46-
help: "记录来源:platform(平台内置)/ package(应用包声明)/ admin(租户创建)。",
46+
help: "记录来源(能力、权限集与岗位共用同一套 platform / package / admin 取值):platform(平台内置)/ package(应用包声明)/ admin(租户创建)。",
4747
options: {
4848
platform: "平台",
4949
package: "应用包",
@@ -230,7 +230,7 @@ export const zhCNObjects: NonNullable<TranslationData['objects']> = {
230230
},
231231
managed_by: {
232232
label: "管理来源",
233-
help: "记录来源:platform(平台发布)/ package(应用包发布)/ admin(环境自建)。",
233+
help: "记录来源(能力、权限集与岗位共用同一套 platform / package / admin 取值):platform(平台发布)/ package(应用包发布)/ admin(环境自建)。",
234234
options: {
235235
platform: "平台",
236236
package: "应用包",

0 commit comments

Comments
 (0)