@@ -4409,11 +4409,11 @@ describe('audience-anchor bindings read the stack\'s declared capabilities (#185
44094409
44104410 /**
44114411 * Boot the plugin far enough to run `runBootstrap` to completion, with the
4412- * declarations served off the METADATA SERVICE — the seeder's own fallback
4413- * source, and the one that answers at this moment in the boot: the anchor
4414- * binding runs BEFORE `bootstrapDeclaredCapabilities` writes any
4415- * `sys_capability` row. (The registry door is pinned on the other consumer,
4416- * `suggested-audience-bindings.test.ts`.)
4412+ * stack's declarations held where a real boot holds them: in the engine
4413+ * registry, under the declaring package (`registerApp` stamps `_packageId`),
4414+ * beside the platform's own curated declarations. That registry is a declared
4415+ * capability's one home (ADR-0131 D3), and no `sys_capability` row is written
4416+ * for it.
44174417 */
44184418 async function boot ( token : string , declaredCapabilities : any [ ] ) {
44194419 const tables : Record < string , any [ ] > = {
@@ -4435,6 +4435,9 @@ describe('audience-anchor bindings read the stack\'s declared capabilities (#185
44354435 listItems : ( type : string ) => [ ...items . entries ( ) ] . filter ( ( [ k ] ) => k . startsWith ( `${ type } :` ) ) . map ( ( [ , v ] ) => v ) ,
44364436 isPackageDisabled : ( ) => false ,
44374437 } ;
4438+ for ( const capability of declaredCapabilities ) {
4439+ registry . registerItem ( 'capability' , capability , 'name' , 'com.example.app' ) ;
4440+ }
44384441 const ql : any = {
44394442 registry,
44404443 registerMiddleware : ( ) => { } ,
@@ -4476,7 +4479,7 @@ describe('audience-anchor bindings read the stack\'s declared capabilities (#185
44764479 } ;
44774480 const metadata = {
44784481 get : async ( ) => null ,
4479- list : async ( type : string ) => ( type === 'capability' ? declaredCapabilities : [ ] ) ,
4482+ list : async ( ) => [ ] ,
44804483 } ;
44814484 const services : Record < string , any > = {
44824485 manifest : { register : vi . fn ( ) } ,
0 commit comments