@@ -1147,15 +1147,15 @@ export async function recordSeedTenancyReceipt(
11471147) : Promise < void > {
11481148 const ledger = seam ?. ledger ;
11491149 const notRecorded =
1150- `[metadata-protocol] the seed/API tenancy repair (#8686) ran and rewrote stored rows, but this ` +
1150+ `[metadata-protocol] the seed/API tenancy repair ran and rewrote stored rows, but this ` +
11511151 `deployment has NO durable record that it did` ;
11521152 if ( ! ledger ) {
11531153 // Functional absence, not a durability failure: this host is not an engine
11541154 // (a raw seam built by hand, a test double), so there is no ledger to miss.
11551155 // `warn` per AGENTS.md — the system is visibly smaller, not silently lying.
11561156 logger ?. warn ?.(
11571157 `${ notRecorded } — no engine was resolved beside the raw-SQL seam, so ${ DATA_MIGRATION_FLAG_OBJECT } ` +
1158- `could not be written. Capture this boot's log before restarting (#9451) .` ,
1158+ `could not be written. Capture this boot's log before restarting.` ,
11591159 ) ;
11601160 return ;
11611161 }
@@ -1164,15 +1164,15 @@ export async function recordSeedTenancyReceipt(
11641164 logger ?. warn ?.(
11651165 `${ notRecorded } — ${ DATA_MIGRATION_FLAG_OBJECT } is not registered on this kernel, so the ` +
11661166 `deployment ledger does not exist here. Compose PlatformObjectsPlugin (it carries the ledger ` +
1167- `every served kernel gets) or capture this boot's log before restarting (#9451) .` ,
1167+ `every served kernel gets) or capture this boot's log before restarting.` ,
11681168 ) ;
11691169 return ;
11701170 }
11711171 const flag = buildSeedTenancyReceipt ( result , new Date ( ) . toISOString ( ) ) ;
11721172 const outcome = await persistSeedTenancyReceiptRow ( ledger , flag ) ;
11731173 logger ?. info ?.(
11741174 `[metadata-protocol] seed/API tenancy repair recorded in ${ DATA_MIGRATION_FLAG_OBJECT } ` +
1175- `(id '${ SEED_TENANCY_MIGRATION_ID } ', ${ outcome } ) — the run survives this process (#9451) .` ,
1175+ `(id '${ SEED_TENANCY_MIGRATION_ID } ', ${ outcome } ) — the run survives this process.` ,
11761176 { id : SEED_TENANCY_MIGRATION_ID , outcome, details : flag . details } ,
11771177 ) ;
11781178 } catch ( e : unknown ) {
@@ -1184,7 +1184,7 @@ export async function recordSeedTenancyReceipt(
11841184 `Nothing else reports it: capture this boot's log NOW, before the container is replaced. Fix: make ` +
11851185 `${ DATA_MIGRATION_FLAG_OBJECT } writable on this deployment (it is provisioned by ` +
11861186 `PlatformObjectsPlugin) and verify with ` +
1187- `SELECT * FROM ${ DATA_MIGRATION_FLAG_OBJECT } WHERE id = '${ SEED_TENANCY_MIGRATION_ID } ' (#9451) .` ;
1187+ `SELECT * FROM ${ DATA_MIGRATION_FLAG_OBJECT } WHERE id = '${ SEED_TENANCY_MIGRATION_ID } '.` ;
11881188 if ( logger ?. error ) logger . error ( message , e instanceof Error ? e : new Error ( detail ) ) ;
11891189 else logger ?. warn ?.( message , { error : detail } ) ;
11901190 }
@@ -1291,7 +1291,7 @@ export async function backfillSeedTenancy(
12911291 if ( postureEnforcesWall ( resolveTenancyPosture ( ) ) ) {
12921292 logger ?. warn ?.(
12931293 `[metadata-protocol] seed/API tenancy split detected on a MULTI-ORGANIZATION install — ` +
1294- `backfill skipped (#8686) . Affected: ${ affected } . ` +
1294+ `backfill skipped. Affected: ${ affected } . ` +
12951295 `Seed rows carry ${ ORGANIZATION_FIELD } = NULL while API rows carry a real organization, so each ` +
12961296 `object runs two autonumber counters and can mint the same "unique" identifier twice — the ` +
12971297 `partitioned unique index (COALESCE(${ ORGANIZATION_FIELD } , '${ GLOBAL_TENANT } '), <field>) does not ` +
@@ -1369,7 +1369,7 @@ export async function backfillSeedTenancy(
13691369 if ( organizationIds . length === 0 && organizationProbeError === undefined ) {
13701370 logger ?. info ?.(
13711371 `[metadata-protocol] seed/API tenancy split detected on an install with no organization yet — ` +
1372- `nothing to adopt, and nothing at risk (#8686) . Affected: ${ affected } . ` +
1372+ `nothing to adopt, and nothing at risk. Affected: ${ affected } . ` +
13731373 `${ ORGANIZATION_TABLE } is empty, so each of these objects runs exactly ONE counter (its ` +
13741374 `'${ GLOBAL_TENANT } ' row) and no "unique" identifier can be minted twice while there is only ` +
13751375 `one partition. No operator action: this self-heals at the first sign-up, when the ` +
@@ -1384,7 +1384,7 @@ export async function backfillSeedTenancy(
13841384 if ( organizationIds . length !== 1 ) {
13851385 logger ?. warn ?.(
13861386 `[metadata-protocol] seed/API tenancy split detected but the target organization is not ` +
1387- `derivable — backfill skipped (#8686) . Affected: ${ affected } . ` +
1387+ `derivable — backfill skipped. Affected: ${ affected } . ` +
13881388 `The install reports tenancy posture 'single' but holds ${ organizationIds . length } rows in ` +
13891389 `${ ORGANIZATION_TABLE } (exactly 1 is required to adopt one without guessing). Until this is ` +
13901390 `resolved these objects run two autonumber counters and can mint the same "unique" identifier ` +
@@ -1399,7 +1399,7 @@ export async function backfillSeedTenancy(
13991399 `NOTE: the ${ ORGANIZATION_TABLE } probe FAILED` +
14001400 ( organizationProbeError === '' ? '' : ` (${ organizationProbeError } )` ) +
14011401 `, so the count above is "unknown", not a measured zero — an unreadable probe is ` +
1402- `reported here rather than through the benign no-organization-yet path (#9261) . ` ) +
1402+ `reported here rather than through the benign no-organization-yet path. ` ) +
14031403 SNAPSHOT_CAVEAT ,
14041404 // `organizationProbeError` is `undefined` — and so serializes AWAY — when
14051405 // the probe answered; a probe that failed carries its text, `''` and all.
@@ -1431,7 +1431,7 @@ export async function backfillSeedTenancy(
14311431 } catch ( e ) {
14321432 logger ?. warn ?.(
14331433 `[metadata-protocol] could not list already-minted duplicates for ${ split . object } .${ split . field } ` +
1434- `(#8686) — the backfill continues; verify manually with: ` +
1434+ `— the backfill continues; verify manually with: ` +
14351435 `${ buildCollisionProbeSql ( split . object , split . field , client ) } ` ,
14361436 { error : operatorFacingErrorText ( e ) } ,
14371437 ) ;
@@ -1456,7 +1456,7 @@ export async function backfillSeedTenancy(
14561456 } catch ( e ) {
14571457 stampFailures . push ( object ) ;
14581458 logger ?. warn ?.(
1459- `[metadata-protocol] seed tenancy backfill could not stamp ${ object } (#8686) — its rows keep ` +
1459+ `[metadata-protocol] seed tenancy backfill could not stamp ${ object } — its rows keep ` +
14601460 `${ ORGANIZATION_FIELD } = NULL and the counter merge below is SKIPPED for it, so the split ` +
14611461 `survives and the next boot retries. Nothing was lost; nothing was repaired for this object.` ,
14621462 { error : operatorFacingErrorText ( e ) } ,
@@ -1490,7 +1490,7 @@ export async function backfillSeedTenancy(
14901490 } catch ( e ) {
14911491 logger ?. warn ?.(
14921492 `[metadata-protocol] seed tenancy backfill could not merge the counter for ` +
1493- `${ split . object } .${ split . field } (#8686) — the '${ GLOBAL_TENANT } ' counter is left in ` +
1493+ `${ split . object } .${ split . field } — the '${ GLOBAL_TENANT } ' counter is left in ` +
14941494 `place, so the high-water mark is intact and the next boot retries the repair` ,
14951495 { error : operatorFacingErrorText ( e ) } ,
14961496 ) ;
@@ -1499,8 +1499,8 @@ export async function backfillSeedTenancy(
14991499
15001500 if ( objectsStamped > 0 ) {
15011501 logger ?. info ?.(
1502- `[metadata-protocol] seed/API tenancy split repaired for ${ objectsStamped } object(s) ` +
1503- `(#8686): untenanted seed rows adopted organization ${ organizationId } and the ` +
1502+ `[metadata-protocol] seed/API tenancy split repaired for ${ objectsStamped } object(s): ` +
1503+ `untenanted seed rows adopted organization ${ organizationId } and the ` +
15041504 `'${ GLOBAL_TENANT } ' counter was merged into the organization-scoped one` +
15051505 ( collisions . length > 0
15061506 ? `. ${ collisions . length } row(s) could NOT be adopted because their identifier is already ` +
@@ -1517,7 +1517,7 @@ export async function backfillSeedTenancy(
15171517 // will NOT rewrite, so an operator has to decide what happens to them.
15181518 logger ?. warn ?.(
15191519 `[metadata-protocol] ${ collisions . length } business identifier(s) were already minted TWICE before ` +
1520- `this repair (#8686) — reported, NOT renumbered. These values each exist on both a seeded row and ` +
1520+ `this repair — reported, NOT renumbered. These values each exist on both a seeded row and ` +
15211521 `an API-created row: ` +
15221522 collisions . map ( ( c ) => `${ c . object } .${ c . field } =${ c . value } (${ c . rows } rows)` ) . join ( ', ' ) +
15231523 `. The platform does not renumber them: a record number that has already appeared on a document, ` +
0 commit comments