From d7144693b8a231a3aade25a9e526a3a74b6c76da Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 22 Oct 2026 00:10:02 +0000 Subject: [PATCH] test(metadata-protocol): the live-MySQL sys_setting probe expects the plain organization_id column Since 7b-2 the sys_setting row-identity duplicate probe keys the plain organization_id (COALESCE(user_id, '') stays); the unit test already pins that statement. The live-MySQL cell, which runs only in the full battery, still expected the old organization_id_key alias. The preflight's key docblock named the same retired alias as its sentinel example. Claude-Session: https://claude.ai/code/session_018gewcgUaNUX9hMkxeP2HE2 Co-authored-by: Claude --- .../src/migrations/runtime-index-preflight.ts | 4 ++-- .../migrations/sys-setting-identity-index.live-mysql.test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/metadata-protocol/src/migrations/runtime-index-preflight.ts b/packages/metadata-protocol/src/migrations/runtime-index-preflight.ts index fa5c4bd95c3..43be5f56236 100644 --- a/packages/metadata-protocol/src/migrations/runtime-index-preflight.ts +++ b/packages/metadata-protocol/src/migrations/runtime-index-preflight.ts @@ -148,8 +148,8 @@ export interface RuntimeIndexDuplicateGroup { /** * The key, exactly as the migration's query projects it: a bare column * name, or `_key` for a column whose NULLs the index folds into a - * sentinel bucket. Neither sentinel can occur in real data, so - * `organization_id_key = '__global__'` reads as "organization_id IS NULL". + * sentinel bucket. No sentinel can occur in real data, so + * `user_id_key = ''` reads as "user_id IS NULL". */ key: Record; /** How many rows hold it. */ diff --git a/packages/metadata-protocol/src/migrations/sys-setting-identity-index.live-mysql.test.ts b/packages/metadata-protocol/src/migrations/sys-setting-identity-index.live-mysql.test.ts index fc224770286..26a73c2930e 100644 --- a/packages/metadata-protocol/src/migrations/sys-setting-identity-index.live-mysql.test.ts +++ b/packages/metadata-protocol/src/migrations/sys-setting-identity-index.live-mysql.test.ts @@ -175,7 +175,7 @@ describe.skipIf(!MYSQL_URL)('#9434 the sys_setting duplicate probe on a LIVE MyS const [rows] = await conn.query(buildSysSettingDuplicateProbeSqlMysql()); expect(rows).toEqual([ { - organization_id_key: 'org_jia', + organization_id: 'org_jia', namespace: 'lifecycle', key: 'retention_overrides', scope: 'tenant',