@wildo-ai/platform-core-shared 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/esm/index.d.ts +2 -0
  2. package/dist/esm/index.d.ts.map +1 -1
  3. package/dist/esm/index.js +2 -0
  4. package/dist/esm/index.js.map +1 -1
  5. package/dist/esm/runtime/application-backend-env.contracts.d.ts +21 -2
  6. package/dist/esm/runtime/application-backend-env.contracts.d.ts.map +1 -1
  7. package/dist/esm/runtime/application-backend-env.contracts.js +21 -0
  8. package/dist/esm/runtime/application-backend-env.contracts.js.map +1 -1
  9. package/dist/esm/runtime/http-server-env.contracts.d.ts +46 -0
  10. package/dist/esm/runtime/http-server-env.contracts.d.ts.map +1 -0
  11. package/dist/esm/runtime/http-server-env.contracts.js +55 -0
  12. package/dist/esm/runtime/http-server-env.contracts.js.map +1 -0
  13. package/dist/esm/runtime/runtime-topology.contracts.d.ts +0 -4
  14. package/dist/esm/runtime/runtime-topology.contracts.d.ts.map +1 -1
  15. package/dist/esm/runtime/runtime-topology.contracts.js +0 -12
  16. package/dist/esm/runtime/runtime-topology.contracts.js.map +1 -1
  17. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts +106 -4
  18. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.resources-config.schemas.d.ts.map +1 -1
  19. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts +106 -4
  20. package/dist/esm/wildo-application-executions/wildo-application-executions.custom.shared.schemas.d.ts.map +1 -1
  21. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts +15 -0
  22. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.resources-config.schemas.d.ts.map +1 -1
  23. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts +15 -0
  24. package/dist/esm/wildo-application-tasks/wildo-application-tasks.custom.shared.schemas.d.ts.map +1 -1
  25. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts +7 -5
  26. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.d.ts.map +1 -1
  27. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js +7 -5
  28. package/dist/esm/wildo-applications/wildo-applications.custom.shared.schemas.js.map +1 -1
  29. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.d.ts.map +1 -1
  30. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js +23 -0
  31. package/dist/esm/workbench/workbench-aspect-resources.custom.shared.schemas.js.map +1 -1
  32. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts +279 -0
  33. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.d.ts.map +1 -0
  34. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js +303 -0
  35. package/dist/esm/workbench/workbench-creation-console.custom.shared.schemas.js.map +1 -0
  36. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts +97 -1
  37. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.d.ts.map +1 -1
  38. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js +86 -0
  39. package/dist/esm/workbench/workbench-creation-conversation.custom.shared.schemas.js.map +1 -1
  40. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts +88 -5
  41. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.d.ts.map +1 -1
  42. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js +89 -7
  43. package/dist/esm/workbench/workbench-creation-plane.custom.shared.resources-config.schemas.js.map +1 -1
  44. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts +230 -13
  45. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.d.ts.map +1 -1
  46. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js +377 -16
  47. package/dist/esm/workbench/workbench-creation-plane.custom.shared.schemas.js.map +1 -1
  48. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts +6 -0
  49. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.d.ts.map +1 -1
  50. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js +8 -0
  51. package/dist/esm/workbench/workbench-resources-types.custom.shared.schemas.js.map +1 -1
  52. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts +45 -2
  53. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.d.ts.map +1 -1
  54. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js +1 -1
  55. package/dist/esm/workbench/workbench-resources.custom.shared.resources-config.schemas.js.map +1 -1
  56. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts +16 -2
  57. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.d.ts.map +1 -1
  58. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js +25 -2
  59. package/dist/esm/workbench/workbench-resources.custom.shared.schemas.js.map +1 -1
  60. package/dist/tsconfig.build.tsbuildinfo +1 -1
  61. package/package.json +4 -4
  62. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts +0 -0
  63. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.d.ts.map +0 -0
  64. package/dist/esm/workbench/workbench-creation-board.custom.shared.schemas.js.map +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"wildo-applications.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAEpE,4EAA4E;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,iBA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;OAUG;IACH,cAAc,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE;IAEnG,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;IACpH,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;CACpG,CAAC,CAAC","sourcesContent":["/**\n * Wildo Application Schema\n * \n * Represents an application being built in the app-factory (wildo-ai).\n * Each WildoApplication is a custom SaaS application being designed\n * through the WAML metalanguage and UI.\n * \n * APP-FACTORY-SPECIFIC: Fields like `appSlug`, `gitRepositoryPath` are\n * specific to the app-factory paradigm. This is NOT a runtime concept —\n * regular apps don't have a parent \"WildoApplication\" resource.\n * All WAML resources reference wildoApplicationId as their parent.\n */\n\nimport { z } from 'zod';\nimport { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\n\n// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators(z);\n\n/**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * TWO members, and the pair is the whole point: an application is either live, or it has been\n * WITHDRAWN without anything of its being destroyed. There is deliberately no member meaning\n * \"destroyed\" — destruction is #1562 and is parked, so nothing in this vocabulary may be read as\n * authorising it.\n *\n * The shape is the one `Organization` already uses for a marked tenant — *authorization-dead and\n * data-alive* — one level up. That is not a coincidence to be tidied away later: a tenant and an\n * application are both things an operator must be able to take out of service without losing what\n * they contain, and the two should keep answering that question the same way.\n */\nexport enum WildoApplicationStatus {\n /** Scheduled, served, and re-registerable. The default and the state every application is created in. */\n ACTIVE = 'ACTIVE',\n\n /**\n * Withdrawn: the platform no longer schedules it, and its slug is refused for re-registration\n * until it is restored. **Nothing of its data is touched** — its database, broker vhost, cache\n * namespace, blobs and credentials are exactly as they were. `restore` returns it to\n * {@link WildoApplicationStatus.ACTIVE} and the next boot re-establishes its cron schedule from\n * its own code, because that schedule is DERIVED rather than stored authority.\n */\n DEREGISTERED = 'DEREGISTERED',\n}\n\nexport const Wildo_Application_Schema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n appId: z.string().optional().isDBIndexed().excludeFromUpdate(),\n /**\n * The application's URL-safe identity — UNIQUE ACROSS THE PLATFORM.\n *\n * Uniqueness is global and deliberately NOT compounded with `organizationId`, even though this\n * resource is organization-scoped. The slug is the sole input, alongside the environment id, from\n * which every provisioned backing resource takes its name:\n * `buildApplicationNamespace(appSlug, environmentId)` carries NO organization component, and the\n * application database, the database username and the RabbitMQ vhost are all derived from it. Two\n * applications sharing a slug in different organizations would be handed the same database and the\n * same vhost, so a per-organization constraint would permit precisely the collision that matters.\n *\n * ## Why this was added (2026-08-19)\n *\n * `appSlug` was indexed but not unique, so two live `wonder-todos` rows coexisted here — one from\n * 2026-08-11 and one minted during a boot on 2026-08-19. `initializeWildoApplication` upserts with\n * lookup `{ appSlug }`, but the repository applies this resource's contextual PRIMARY-SCOPE filter;\n * once the platform organization was re-minted, that org-scoped lookup could no longer see the\n * existing row and INSERTED a second one instead of resolving the first.\n *\n * Nothing reported a duplicate. The orphaned lineage kept its 16 cron jobs, which went on\n * publishing into the queues of an application that was no longer live, and the only symptom was a\n * RabbitMQ `403 ACCESS_REFUSED` naming a queue nobody could explain. A unique index turns that\n * silent divergence into a refusal at the moment of insertion.\n *\n * `.excludeFromUpdate()` makes this creation-time identity rather than an editable label, which is\n * also why the collision must be refused rather than reconciled afterwards: a duplicate that got\n * written could not be resolved through the API at all.\n */\n appSlug: z.string()\n .isDBIndexed()\n .isUnique({ conflictMessageReference: ErrorCustomMessageReference.APPLICATION_SLUG_EXISTS })\n .isSummaryField()\n .excludeFromUpdate(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n lastVersion: z.string().optional().excludeFromCreate().excludeFromUpdate(),\n gitRepositoryPath: z.string(),\n\n /**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * Server-owned: written only by the deregister/restore lifecycle operations, never by a client\n * patch — the same posture `Organization.status` takes, and for the same reason. A field that any\n * UPDATE could set would let the withdrawal be performed by something that does not also withdraw\n * the cron schedule, which is the only part of a withdrawal that actually stops work happening.\n *\n * Defaulted rather than required so that every row written before this field existed reads as\n * {@link WildoApplicationStatus.ACTIVE}, which is what they are.\n */\n status: z.enum(WildoApplicationStatus)\n .systemEnum('WildoApplicationStatus')\n .default(WildoApplicationStatus.ACTIVE)\n .isDBIndexed()\n .isSummaryField()\n .excludeFromCreate()\n .excludeFromUpdate(),\n\n /**\n * When the application was withdrawn, or `null` while it is live.\n *\n * `.nullish()` because `restore` CLEARS it: a restored application is not \"deregistered a while\n * ago\", it is live, and a lingering timestamp would make every later reader decide for itself\n * which field wins. Existing rows legitimately have none.\n *\n * It is a record, not a deadline. There is no window here and nothing consumes it — an application\n * stays withdrawn until somebody restores it. The field that WOULD be a deadline\n * (`purgeScheduledAt`) belongs to #1562 and is deliberately absent.\n */\n deregisteredAt: z.date().nullish().isDBIndexed().excludeFromCreate().excludeFromUpdate().isHidden(),\n\n createdAt: z.date().default(() => new Date()).isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type Wildo_Application = z.infer<typeof Wildo_Application_Schema>;\n\n"]}
1
+ {"version":3,"file":"wildo-applications.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/wildo-applications/wildo-applications.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;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AI,CAAC,sBAAsB,CAAC;SACnC,UAAU,CAAC,wBAAwB,CAAC;SACpC,OAAO,CAAC,sBAAsB,CAAC,MAAM,CAAC;SACtC,WAAW,EAAE;SACb,cAAc,EAAE;SAChB,iBAAiB,EAAE;SACnB,iBAAiB,EAAE;IAEtB;;;;;;;;;;OAUG;IACH,cAAc,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE,CAAC,QAAQ,EAAE;IAEnG,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,cAAc,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;IACpH,SAAS,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,iBAAiB,EAAE,CAAC,iBAAiB,EAAE;CACpG,CAAC,CAAC","sourcesContent":["/**\n * Wildo Application Schema\n * \n * Represents an application being built in the app-factory (wildo-ai).\n * Each WildoApplication is a custom SaaS application being designed\n * through the WAML metalanguage and UI.\n * \n * APP-FACTORY-SPECIFIC: Fields like `appSlug`, `gitRepositoryPath` are\n * specific to the app-factory paradigm. This is NOT a runtime concept —\n * regular apps don't have a parent \"WildoApplication\" resource.\n * All WAML resources reference wildoApplicationId as their parent.\n */\n\nimport { z } from 'zod';\nimport { ErrorCustomMessageReference } from '@wildo-ai/saas-models';\n\n// Initialize Zod decorators early (lazy init will also happen on first use)\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\ninitZodDecorators(z);\n\n/**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * TWO members, and the pair is the whole point: an application is either live, or it has been\n * WITHDRAWN without anything of its being destroyed. There is deliberately no member meaning\n * \"destroyed\" — destruction is #1562 and is parked, so nothing in this vocabulary may be read as\n * authorising it.\n *\n * The shape is the one `Organization` already uses for a marked tenant — *authorization-dead and\n * data-alive* — one level up. That is not a coincidence to be tidied away later: a tenant and an\n * application are both things an operator must be able to take out of service without losing what\n * they contain, and the two should keep answering that question the same way.\n */\nexport enum WildoApplicationStatus {\n /** Scheduled, served, and re-registerable. The default and the state every application is created in. */\n ACTIVE = 'ACTIVE',\n\n /**\n * Withdrawn: the platform no longer schedules it, its slug is refused for re-registration until it\n * is restored, and every credential minted for it is REVOKED (#1307) — no routine sync re-mints one\n * while this status holds. **Nothing of its data is touched** — its database, broker vhost, cache\n * namespace and blobs are exactly as they were. `restore` returns it to\n * {@link WildoApplicationStatus.ACTIVE}, re-mints its credentials with their recorded values, and the\n * next boot re-establishes its cron schedule from its own code, because that schedule is DERIVED\n * rather than stored authority.\n */\n DEREGISTERED = 'DEREGISTERED',\n}\n\nexport const Wildo_Application_Schema = z.object({\n _id: z.string().min(1).isPrimaryKey().isSummaryField(),\n appId: z.string().optional().isDBIndexed().excludeFromUpdate(),\n /**\n * The application's URL-safe identity — UNIQUE ACROSS THE PLATFORM.\n *\n * Uniqueness is global and deliberately NOT compounded with `organizationId`, even though this\n * resource is organization-scoped. The slug is the sole input, alongside the environment id, from\n * which every provisioned backing resource takes its name:\n * `buildApplicationNamespace(appSlug, environmentId)` carries NO organization component, and the\n * application database, the database username and the RabbitMQ vhost are all derived from it. Two\n * applications sharing a slug in different organizations would be handed the same database and the\n * same vhost, so a per-organization constraint would permit precisely the collision that matters.\n *\n * ## Why this was added (2026-08-19)\n *\n * `appSlug` was indexed but not unique, so two live `wonder-todos` rows coexisted here — one from\n * 2026-08-11 and one minted during a boot on 2026-08-19. `initializeWildoApplication` upserts with\n * lookup `{ appSlug }`, but the repository applies this resource's contextual PRIMARY-SCOPE filter;\n * once the platform organization was re-minted, that org-scoped lookup could no longer see the\n * existing row and INSERTED a second one instead of resolving the first.\n *\n * Nothing reported a duplicate. The orphaned lineage kept its 16 cron jobs, which went on\n * publishing into the queues of an application that was no longer live, and the only symptom was a\n * RabbitMQ `403 ACCESS_REFUSED` naming a queue nobody could explain. A unique index turns that\n * silent divergence into a refusal at the moment of insertion.\n *\n * `.excludeFromUpdate()` makes this creation-time identity rather than an editable label, which is\n * also why the collision must be refused rather than reconciled afterwards: a duplicate that got\n * written could not be resolved through the API at all.\n */\n appSlug: z.string()\n .isDBIndexed()\n .isUnique({ conflictMessageReference: ErrorCustomMessageReference.APPLICATION_SLUG_EXISTS })\n .isSummaryField()\n .excludeFromUpdate(),\n organizationId: z.string().isDBIndexed().isForeignKey().isSummaryField().excludeFromUpdate(),\n lastVersion: z.string().optional().excludeFromCreate().excludeFromUpdate(),\n gitRepositoryPath: z.string(),\n\n /**\n * Whether the platform still schedules and serves this application (#1556).\n *\n * Server-owned: written only by the deregister/restore lifecycle operations, never by a client\n * patch — the same posture `Organization.status` takes, and for the same reason. A field that any\n * UPDATE could set would let the withdrawal be performed by something that does not also withdraw\n * the cron schedule, which is the only part of a withdrawal that actually stops work happening.\n *\n * Defaulted rather than required so that every row written before this field existed reads as\n * {@link WildoApplicationStatus.ACTIVE}, which is what they are.\n */\n status: z.enum(WildoApplicationStatus)\n .systemEnum('WildoApplicationStatus')\n .default(WildoApplicationStatus.ACTIVE)\n .isDBIndexed()\n .isSummaryField()\n .excludeFromCreate()\n .excludeFromUpdate(),\n\n /**\n * When the application was withdrawn, or `null` while it is live.\n *\n * `.nullish()` because `restore` CLEARS it: a restored application is not \"deregistered a while\n * ago\", it is live, and a lingering timestamp would make every later reader decide for itself\n * which field wins. Existing rows legitimately have none.\n *\n * It is a record, not a deadline. There is no window here and nothing consumes it — an application\n * stays withdrawn until somebody restores it. The field that WOULD be a deadline\n * (`purgeScheduledAt`) belongs to #1562 and is deliberately absent.\n */\n deregisteredAt: z.date().nullish().isDBIndexed().excludeFromCreate().excludeFromUpdate().isHidden(),\n\n createdAt: z.date().default(() => new Date()).isDBIndexed().isSummaryField().excludeFromCreate().excludeFromUpdate(),\n updatedAt: z.date().default(() => new Date()).isDBIndexed().excludeFromCreate().excludeFromUpdate(),\n});\nexport type Wildo_Application = z.infer<typeof Wildo_Application_Schema>;\n\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAMrB,oBAAoB,EAKrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mDAAmD,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,oBAAY,2BAA2B;IACrC,mFAAmF;IACnF,YAAY,iBAAiB;IAC7B,8DAA8D;IAC9D,SAAS,cAAc;IACvB,gGAAgG;IAChG,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAAC;IACpD,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,SAAS,6BAA6B,EAAE,CAAC;CAC1D;AAED,eAAO,MAAM,4BAA4B,EAAE,SAAS,yBAAyB,EAwxB5E,CAAC;AAMF,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAErG;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,yBAAyB,GACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAuC5B;AAED,KAAK,8BAA8B,GAAG,qBAAqB,CAAC,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC;AAE9F;;;;;GAKG;AACH,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,yBAAyB,IAEpF,wBAAwB,oBAAoB,EAAE;;oBA6BvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,IAAI,oBAAoB,EAAE,CA8D1E;AAED,mGAAmG;AACnG,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,MAAM,EACN,UAAU,CAAC,OAAO,wCAAwC,CAAC,CAM5D,CAAC"}
1
+ {"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.d.ts","sourceRoot":"","sources":["../../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EAMrB,oBAAoB,EAKrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,OAAO,EAEL,4BAA4B,EAC7B,MAAM,mDAAmD,CAAC;AAM3D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,oBAAY,2BAA2B;IACrC,mFAAmF;IACnF,YAAY,iBAAiB;IAC7B,8DAA8D;IAC9D,SAAS,cAAc;IACvB,gGAAgG;IAChG,OAAO,YAAY;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC5C,+EAA+E;IAC/E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,gDAAgD;IAChD,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IACvB;;;;;;;;;;;OAWG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,yBAAyB;IACxC,8EAA8E;IAC9E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,4BAA4B,CAAC;IACpD,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAC/C,QAAQ,CAAC,KAAK,EAAE,SAAS,6BAA6B,EAAE,CAAC;CAC1D;AAED,eAAO,MAAM,4BAA4B,EAAE,SAAS,yBAAyB,EA+yB5E,CAAC;AAMF,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,yBAAyB,GAAG,SAAS,CAErG;AAED;;;;;;GAMG;AACH,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,yBAAyB,GACpC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAuC5B;AAED,KAAK,8BAA8B,GAAG,qBAAqB,CAAC,IAAI,GAAG,qBAAqB,CAAC,IAAI,CAAC;AAE9F;;;;;GAKG;AACH,wBAAgB,wCAAwC,CAAC,UAAU,EAAE,yBAAyB,IAEpF,wBAAwB,oBAAoB,EAAE;;oBA6BvD;AAED;;;;;;;;GAQG;AACH,wBAAgB,iCAAiC,IAAI,oBAAoB,EAAE,CA8D1E;AAED,mGAAmG;AACnG,eAAO,MAAM,iDAAiD,EAAE,MAAM,CACpE,MAAM,EACN,UAAU,CAAC,OAAO,wCAAwC,CAAC,CAM5D,CAAC"}
@@ -524,6 +524,15 @@ export const WORKBENCH_ASPECT_DESCRIPTORS = [
524
524
  /* The vision edges (#629) — see the registry for why a build task may serve these. */
525
525
  { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },
526
526
  { field: 'servesConstraintIds', targetAspectKey: 'vision.constraint', many: true },
527
+ /*
528
+ * The experience plan's entries on the PRODUCT side (#1660): a view, milestone or guidance task
529
+ * names the entry it builds by the plan's own ref, so the task links to the decision.
530
+ */
531
+ { field: 'producesViewIds', targetAspectKey: 'experience-plan.view', many: true },
532
+ { field: 'producesMilestoneIds', targetAspectKey: 'experience-plan.milestone', many: true },
533
+ { field: 'producesGuidanceIds', targetAspectKey: 'experience-plan.guidance', many: true },
534
+ /* A billing-catalogue task names the pricing plan it realises in `servesRefs` (#1835). */
535
+ { field: 'servesPricingPlanIds', targetAspectKey: 'business-model.plan', many: true },
527
536
  ],
528
537
  },
529
538
  {
@@ -655,6 +664,20 @@ export const WORKBENCH_ASPECT_DESCRIPTORS = [
655
664
  identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,
656
665
  edges: [],
657
666
  },
667
+ {
668
+ /* One channel work arrives on (#1630). Its only edges are what asked for it, like a worker's. */
669
+ aspectKey: 'integration-plan.inbound-channel',
670
+ resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_INBOUND_CHANNEL,
671
+ rowsPath: 'integrationInboundChannels',
672
+ identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,
673
+ edges: [
674
+ { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },
675
+ { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },
676
+ { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },
677
+ { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },
678
+ { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },
679
+ ],
680
+ },
658
681
  {
659
682
  /*
660
683
  * One requirement's standing (#1496), and the aspect that carries BOTH multi-edge shapes at
@@ -1 +1 @@
1
- {"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.js","sourceRoot":"","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D,GAG1D,MAAM,CAAC,WAAW,CACpB,4BAA4B,CAAC,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC;IAC/C,UAAU,CAAC,YAAY;IACvB,wCAAwC,CAAC,UAAU,CAAC;CACrD,CAAC,CACH,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n CoreResourceType,\n IntrospectionTenancyStance,\n PersistenceAdapter,\n RelationshipNature,\n ResourceParentResourceRequirement,\n ResourceRelationship,\n ResourceRelationshipAccessScopeStrategy,\n ResourceRelationshipCardinality,\n createResourceConfiguration_Initialization,\n createResourcesRelationship,\n} from '@wildo-ai/saas-models';\nimport { z } from 'zod';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\n// Decorator methods must exist before the module-load-time envelope builds below.\ninitZodDecorators();\n\nimport {\n WorkbenchShared_ResourceFieldIdentifier,\n WorkbenchShared_ResourceType,\n} from './workbench-resources-types.custom.shared.schemas';\nimport {\n createReadOnlyApiVariant,\n createReadOnlyListApiVariant,\n} from './workbench-resources.custom.shared.resources-config.schemas';\n\n/**\n * FAMILY ASPECT RESOURCES — the spine's schema-agnostic transcription of\n * `FAMILY_ASPECTS_REGISTRY` (`@wildo-ai/saas-specifications`, `_core/family-aspects.*`).\n *\n * ## The split, restated where it is enforced\n *\n * The registry is AUTHORITATIVE: item schemas, business keys, edges, all declared beside the\n * `_core` family schemas (decided 2026-09-01). The spine cannot import it — platform-core-shared\n * deliberately never depends on saas-specifications — so this module carries plain DATA: which\n * aspects exist, which envelope fields carry references, and which resource each reference\n * resolves to. A companion-side parity test holds this table to the registry; drift between the\n * two is a failing test, never a silent divergence.\n *\n * ## The envelope\n *\n * Aspect rows share ONE envelope shape (identity, family backlink, headline, the full item as a\n * raw record) plus the aspect's own FLATTENED reference fields. Flattening is the projection's\n * job and is what makes every edge a PLAIN foreign key the engine already resolves:\n *\n * - weighted edge objects flatten to key arrays (`jobs[].jobRef` → `jobIds`),\n * - multi-target fields split per target (`deliversRequirementRefs` →\n * `deliversFunctionalRequirementIds` + `deliversNonFunctionalRequirementIds`), because the\n * frontend resolves an FK field name to ONE resource — a mixed-kind array has no honest single\n * answer, and split fields read better anyway,\n * - every field name below maps to exactly one target across ALL aspects (collision-audited at\n * generation; the parity test re-checks it).\n *\n * The `family` field is the artifact BACKLINK for free: it is the specification-artifacts\n * resource's own field identifier, so the global field-identifier map already resolves it.\n */\n\n/**\n * How an aspect row gets its identity — mirrors the registry's `businessKey` contract.\n *\n * The three are not interchangeable and the fallback order between them is the point: a collection\n * whose schema declares a single-field key is addressed by it, a singleton has one row per family so\n * the aspect key IS the identity, and a keyless collection falls back to a positional address that is\n * stable per landed snapshot and honest about carrying no business meaning.\n */\nexport enum WorkbenchAspectIdentityKind {\n /** The item's own business key (`ref`, `taskRef`, …), unique within the aspect. */\n BUSINESS_KEY = 'business-key',\n /** One row per family — identity is the aspect key itself. */\n SINGLETON = 'singleton',\n /** Keyless collection (locale × jurisdictions): `<aspectKey>[<index>]`, stable per snapshot. */\n INDEXED = 'indexed',\n}\n\nexport interface WorkbenchAspectEdgeDescriptor {\n /** Envelope field carrying the reference key(s) — post-flatten, post-split. */\n readonly field: string;\n /** The registry aspect key the reference resolves to. */\n readonly targetAspectKey: string;\n /** `true` = key array; `false` = single key. */\n readonly many: boolean;\n /**\n * The REGISTRY field this edge transcribes, when the target alone does not identify it.\n *\n * The projection joins a routed reference to a spine edge by target, which is unique for every\n * aspect but one: a minion declares `readsResourceRefs` AND `writesResourceRefs`, both reaching\n * `domain-plan.resource`, because its containment whitelist is two lists and the direction is the\n * decision (#1495). Without this field the second reference would overwrite the first under one\n * envelope name — silently, and with the wrong half winning.\n *\n * Omitted everywhere the target is unique, which is everywhere else; when present it is matched\n * FIRST, so adding one can never change an existing aspect's join.\n */\n readonly sourceField?: string;\n}\n\nexport interface WorkbenchAspectDescriptor {\n /** The registry aspect key (`market.icp`) — the parity test's join column. */\n readonly aspectKey: string;\n readonly resourceType: WorkbenchShared_ResourceType;\n /** The introspection payload member this resource reads its rows from. */\n readonly rowsPath: string;\n readonly identity: WorkbenchAspectIdentityKind;\n readonly edges: readonly WorkbenchAspectEdgeDescriptor[];\n}\n\nexport const WORKBENCH_ASPECT_DESCRIPTORS: readonly WorkbenchAspectDescriptor[] = [\n {\n aspectKey: 'vision.idea',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_IDEA,\n rowsPath: 'visionIdeas',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.problem',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_PROBLEM,\n rowsPath: 'visionProblems',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.mission',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_MISSION,\n rowsPath: 'visionMissions',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.success-criterion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_SUCCESS_CRITERION,\n rowsPath: 'visionSuccessCriteria',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'vision.constraint',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_CONSTRAINT,\n rowsPath: 'visionConstraints',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.category',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CATEGORY,\n rowsPath: 'marketCategories',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'market.icp',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ICP,\n rowsPath: 'marketIcps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * The SELF-edge (#1427): an ICP's `influences` name OTHER ICPs, carried inside objects and\n * invisible to the registry until it walked one level down. It is what makes a buying group\n * legible — the economic buyer an end user influences is why both are on record.\n */\n { field: 'influencesIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'personaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'triggerIds', targetAspectKey: 'market.trigger', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'objectionIds', targetAspectKey: 'market.objection', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.persona',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PERSONA,\n rowsPath: 'marketPersonas',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'belongsToIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.job',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_JOB,\n rowsPath: 'marketJobs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.pain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PAIN,\n rowsPath: 'marketPains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.gain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_GAIN,\n rowsPath: 'marketGains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.tone-of-voice',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TONE_OF_VOICE,\n rowsPath: 'marketTonesOfVoice',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.benefit',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BENEFIT,\n rowsPath: 'marketBenefits',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliveredByFeatureIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'addressesObjectionIds', targetAspectKey: 'market.objection', many: true },\n ],\n },\n {\n aspectKey: 'market.positioning',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_POSITIONING,\n rowsPath: 'marketPositionings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n { field: 'benefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n ],\n },\n {\n aspectKey: 'market.channel',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CHANNEL,\n rowsPath: 'marketChannels',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.alternative',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ALTERNATIVE,\n rowsPath: 'marketAlternatives',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.trigger',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TRIGGER,\n rowsPath: 'marketTriggers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'affectedIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'recommendedChannelIds', targetAspectKey: 'market.channel', many: true },\n ],\n },\n {\n aspectKey: 'market.buying-journey',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BUYING_JOURNEY,\n rowsPath: 'marketBuyingJourneys',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n ],\n },\n {\n aspectKey: 'market.proof',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PROOF,\n rowsPath: 'marketProofs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'supportsBenefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'supportsIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'market.objection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_OBJECTION,\n rowsPath: 'marketObjections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'raisedByIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'raisedByPersonaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'relatedBenefitIds', targetAspectKey: 'market.benefit', many: true },\n ],\n },\n {\n aspectKey: 'market.message-template',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_MESSAGE_TEMPLATE,\n rowsPath: 'marketMessageTemplates',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'requirements.functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_FUNCTIONAL,\n rowsPath: 'functionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'requirements.non-functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_NON_FUNCTIONAL,\n rowsPath: 'nonFunctionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'feature-drafts.draft',\n resourceType: WorkbenchShared_ResourceType.ASPECT_FEATURE_DRAFT,\n rowsPath: 'featureDrafts',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'roadmap.phase',\n resourceType: WorkbenchShared_ResourceType.ASPECT_ROADMAP_PHASE,\n rowsPath: 'roadmapPhases',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliversFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'deliversNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'deliversSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n aspectKey: 'business-model.plan',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PRICING_PLAN,\n rowsPath: 'pricingPlans',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'includesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'includesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n ],\n },\n {\n aspectKey: 'brand.name',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_NAME,\n rowsPath: 'brandNames',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.logo-direction',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_LOGO_DIRECTION,\n rowsPath: 'brandLogoDirections',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.visual-tone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_VISUAL_TONE,\n rowsPath: 'brandVisualTones',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.audience',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_AUDIENCE,\n rowsPath: 'brandAudiences',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'brand.asset',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_ASSET,\n rowsPath: 'brandAssets',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'derivedFromId', targetAspectKey: 'brand.asset', many: false },\n ],\n },\n /*\n * THE COMPLIANCE PROGRAMME (#1431, surfaced #1512). Ten aspects, and the edge set is the point:\n * an obligation reaches the decision that made it applicable, the assignment that owns it, the\n * gap that blocks it and the coverage decision that reviewed it — the whole reason this family is\n * addressable at all.\n *\n * SEVERAL registry fields collapse into ONE spine field wherever they share a target, because the\n * projection joins a reference to the descriptor edge whose target matches. A responsibility\n * assignment names five distinct ROLE fields and they become one `roleIds` link; the distinction\n * is not lost, it is on the row, where each field renders under its own word. What the edge\n * carries is the click-through, which is the same for all five.\n */\n {\n aspectKey: 'compliance-program.scope-selector',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_SCOPE_SELECTOR,\n rowsPath: 'complianceScopeSelectors',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-program.applicability-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_APPLICABILITY_DECISION,\n rowsPath: 'complianceApplicabilityDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.obligation',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_OBLIGATION,\n rowsPath: 'complianceObligations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n { field: 'responsibilityAssignmentIds', targetAspectKey: 'compliance-program.responsibility-assignment', many: true },\n { field: 'reviewOwnerRoleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n { field: 'gapIds', targetAspectKey: 'compliance-program.gap', many: true },\n { field: 'coverageDecisionId', targetAspectKey: 'compliance-program.obligation-coverage-decision', many: false },\n { field: 'sourceApplicabilityDecisionIds', targetAspectKey: 'compliance-program.applicability-decision', many: true },\n // A SELF-edge: an obligation may depend on another obligation being met first.\n { field: 'dependencyObligationIds', targetAspectKey: 'compliance-program.obligation', many: true },\n { field: 'sharedResponsibilityRuleId', targetAspectKey: 'compliance-program.shared-responsibility-rule', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.obligation-coverage-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_COVERAGE_DECISION,\n rowsPath: 'complianceCoverageDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'obligationId', targetAspectKey: 'compliance-program.obligation', many: false },\n { field: 'reviewedByRoleId', targetAspectKey: 'compliance-program.role-authority', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.implementation-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_IMPLEMENTATION_DECISION,\n rowsPath: 'complianceImplementationDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n { field: 'gapIds', targetAspectKey: 'compliance-program.gap', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.responsibility-assignment',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_RESPONSIBILITY_ASSIGNMENT,\n rowsPath: 'complianceResponsibilityAssignments',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n // FIVE registry fields — responsible, operating, evidence-provider, approving, escalation —\n // one target, so one link. Each renders under its own word on the row.\n { field: 'roleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.gap',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_GAP,\n rowsPath: 'complianceGaps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n { field: 'ownerRoleId', targetAspectKey: 'compliance-program.role-authority', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.documentation-requirement',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_DOCUMENTATION_REQUIREMENT,\n rowsPath: 'complianceDocumentationRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'approvingRoleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.role-authority',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_ROLE_AUTHORITY,\n rowsPath: 'complianceRoleAuthorities',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-program.shared-responsibility-rule',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_SHARED_RESPONSIBILITY_RULE,\n rowsPath: 'complianceSharedResponsibilityRules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n // Five role fields again — accountable, operating, evidence-provider, approving, conflict.\n { field: 'roleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'domain-plan.module',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_MODULE,\n rowsPath: 'domainPlanModules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The DERIVED resource (#1482, surfaced #1512). Its rows are a projection of\n * `modules[].mainResources` rather than a member of the snapshot — a domain plan lists resources\n * as plain strings — and it is the single most-travelled link in the build lane: a build task's\n * `target.resourceRef` and `produces.resourceRef`, a placement decision's `subject.resourceRef`\n * and an experience view's `resourceId` all land here. Without this row every one of those was an\n * edge the graph could declare and not follow.\n */\n {\n aspectKey: 'domain-plan.resource',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RESOURCE,\n rowsPath: 'domainPlanResources',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n // Back to the module that lists it — the one edge a projected row carries.\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n ],\n },\n {\n aspectKey: 'domain-plan.relationship',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RELATIONSHIP,\n rowsPath: 'domainPlanRelationships',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * The two ENDS, as ONE spine field. The registry declares `sourceResourceRef` and\n * `targetResourceRef` separately and both land on the same aspect, and the projection joins a\n * reference to the descriptor edge whose target matches — so one target is one field, by\n * construction. The DIRECTION is not lost: it is on the row itself, where `sourceResourceRef`\n * and `targetResourceRef` render as \"From\" and \"To\"; what this field carries is the\n * click-through, which is the same for both ends.\n */\n { field: 'relatesResourceIds', targetAspectKey: 'domain-plan.resource', many: true },\n ],\n },\n {\n aspectKey: 'build-plan.task',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BUILD_TASK,\n rowsPath: 'buildTasks',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'prerequisiteTaskIds', targetAspectKey: 'build-plan.task', many: true },\n /*\n * THE LINK BACK TO THE DECISION (#1427): a task's `target` names the domain-plan module or\n * relationship it builds. Carried inside an object, so the registry could not see it until its\n * drift pin walked one level down — and the spine could not link it until the registry did.\n */\n { field: 'targetModuleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'targetRelationshipId', targetAspectKey: 'domain-plan.relationship', many: false },\n /*\n * The most-travelled link in the build lane (#1482): a task's `target.resourceRef` and its\n * `produces.resourceRef` both name the resource it builds. Two registry fields, one target,\n * so one spine field — what is built and what it produces are the same resource.\n */\n { field: 'resourceIds', targetAspectKey: 'domain-plan.resource', many: true },\n /* A task may serve a DRAFTED FEATURE (#1433 row 4) — declared once the data was measured. */\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n /* The vision edges (#629) — see the registry for why a build task may serve these. */\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n { field: 'servesConstraintIds', targetAspectKey: 'vision.constraint', many: true },\n ],\n },\n {\n /*\n * One composition decision per framework scenario (#1491) — NO edges: a decision names a\n * SCENARIO (a framework template) and a basis (a closed vocabulary), neither of which is a\n * decided element another aspect addresses.\n */\n aspectKey: 'capability-composition.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_CAPABILITY_COMPOSITION_DECISION,\n rowsPath: 'compositionDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * One planned website page (#1492). Its two edges reach the MARKET — a page is written for an\n * ICP, in a tone of voice — which is what makes the plan checkable from the snapshot's side.\n */\n aspectKey: 'website-plan.page',\n resourceType: WorkbenchShared_ResourceType.ASPECT_WEBSITE_PAGE,\n rowsPath: 'websitePages',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'audienceIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'toneOfVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n /* One planned surface of the application's experience (#1493) — where it lives, and what asked for it. */\n aspectKey: 'experience-plan.view',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_VIEW,\n rowsPath: 'experienceViews',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'resourceId', targetAspectKey: 'domain-plan.resource', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One configuration surface the application composes — no edge: it names files and tokens, not elements. */\n aspectKey: 'experience-plan.configuration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_CONFIGURATION,\n rowsPath: 'experienceConfigurations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /* One moment the application recognises — the module declaring it and the resource that earns it. */\n aspectKey: 'experience-plan.milestone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_MILESTONE,\n rowsPath: 'experienceMilestones',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'triggerResourceId', targetAspectKey: 'domain-plan.resource', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One piece of guidance, linked to the milestones a person must hold first — the journey as one path. */\n aspectKey: 'experience-plan.guidance',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_GUIDANCE,\n rowsPath: 'experienceGuidance',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'gatedByMilestoneIds', targetAspectKey: 'experience-plan.milestone', many: true },\n { field: 'hostViewId', targetAspectKey: 'experience-plan.view', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One worker the backend delegates to (#1495). Its only edges are what asked for it: a worker's\n * routes are the BUILT package's units of work, not decided elements.\n */\n aspectKey: 'integration-plan.worker',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_WORKER,\n rowsPath: 'integrationWorkers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One cron minion (#1495) — and the ONE aspect whose edges are not unique by target: its\n * containment whitelist reaches `domain-plan.resource` TWICE, once per direction, so both\n * carry `sourceField`. The direction is the decision, and collapsing the two would report a\n * minion as reading what it only writes.\n */\n aspectKey: 'integration-plan.minion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_MINION,\n rowsPath: 'integrationMinions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'readsResourceIds', sourceField: 'readsResourceRefs', targetAspectKey: 'domain-plan.resource', many: true },\n { field: 'writesResourceIds', sourceField: 'writesResourceRefs', targetAspectKey: 'domain-plan.resource', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One provider bound into one scope — no edge: a provider ref is the ENGINE's catalogue, not a decided element. */\n aspectKey: 'integration-plan.provider-binding',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_PROVIDER_BINDING,\n rowsPath: 'integrationProviderBindings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * One requirement's standing (#1496), and the aspect that carries BOTH multi-edge shapes at\n * once — which is why every edge here names its source field.\n *\n * Its business key IS its edge: the row exists to say something about ONE requirement, and\n * `requirementRef` reaches both halves of the family — one field, two targets — routed by\n * MEMBERSHIP rather than by the row's own `half` field, which it does carry. An aspect edge\n * declares its targets ONCE and has no per-row selection, and membership MEASURES where a ref\n * lives instead of trusting a landed file's claim about it. `landedTaskIds` and\n * `provenTaskIds` are the other shape, two fields to ONE target, and they must stay apart\n * because proven is a subset of landed and collapsing them would report work as verified that\n * only exists.\n *\n * The projection therefore joins on the PAIR. Naming the source field on all four is what makes\n * that join load-bearing rather than incidental: with them omitted the target-only fallback\n * happens to resolve the same rows, and a regression in the join would go unnoticed.\n */\n aspectKey: 'application-maturity.requirement',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_MATURITY,\n rowsPath: 'requirementMaturities',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'functionalRequirementId', sourceField: 'requirementRef', targetAspectKey: 'requirements.functional', many: false },\n { field: 'nonFunctionalRequirementId', sourceField: 'requirementRef', targetAspectKey: 'requirements.non-functional', many: false },\n { field: 'landedTaskIds', sourceField: 'landedTaskRefs', targetAspectKey: 'build-plan.task', many: true },\n { field: 'provenTaskIds', sourceField: 'provenTaskRefs', targetAspectKey: 'build-plan.task', many: true },\n ],\n },\n {\n /* One planned documentation chapter (#1494) — no edge: it cites the BUILT product's own specifications. */\n aspectKey: 'documentation-plan.chapter',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENTATION_CHAPTER,\n rowsPath: 'documentationChapters',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.group',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_GROUP,\n rowsPath: 'placementGroups',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_DECISION,\n rowsPath: 'placementDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'groupId', targetAspectKey: 'placement.group', many: false },\n /*\n * A placement decision's SUBJECT is a domain-plan module or a RESOURCE (#1427/#1482), both\n * carried inside an object. The resource half was the one the graph could not follow until\n * the projected resource got a row of its own.\n */\n { field: 'subjectModuleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'subjectResourceId', targetAspectKey: 'domain-plan.resource', many: false },\n ],\n },\n {\n aspectKey: 'compliance-candidate.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SECTION,\n rowsPath: 'complianceCandidateSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n /*\n * No edges since #1465: the producer family lands into the SET and is never indexed, so its\n * clause → fact link moved to `compliance-candidate-set.section`, the aspect that is read.\n */\n edges: [],\n },\n {\n aspectKey: 'compliance-candidate.variant-selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_VARIANT_SELECTION,\n rowsPath: 'complianceCandidateVariantSelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-facts.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'documentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The same row shape as the descriptor above and a SEPARATE resource, because the two families it\n * transcribes are separate (#192): one is regenerated by a producer, the other is only ever written\n * by a person. Merging them into one browsable list would erase exactly the provenance the split\n * exists to keep, and a reader could no longer tell which declarations survive the next producer run.\n */\n {\n aspectKey: 'document-facts-authored.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_AUTHORED_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'authoredDocumentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * INDEXED, not BUSINESS_KEY, and that is the registry's own answer rather than a simplification\n * here: the row is a union whose two arms key on different fields (`providerRef` vs\n * `subprocessorRef`), so no single field identifies a row across it.\n */\n aspectKey: 'processor-register.processor',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PROCESSOR_REGISTER_ENTRY,\n rowsPath: 'processorRegisterEntries',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n {\n /*\n * BUSINESS_KEY, unlike the processor entry above: a risk entry carries `entryRef`, which the\n * family validator holds unique and which `reviewOrder` addresses rows by. An indexed identity\n * here would make the register's own reading order unable to name the rows it orders.\n */\n aspectKey: 'risk-register.entry',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RISK_REGISTER_ENTRY,\n rowsPath: 'riskRegisterEntries',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'release-policy.selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RELEASE_POLICY_SELECTION,\n rowsPath: 'releasePolicySelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-publication.variant',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_PUBLICATION_VARIANT,\n rowsPath: 'documentPublicationVariants',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n /*\n * The two landed SET families of the governed-document lane (#1105). A drafting run EMITS one\n * candidate (the singular family the two `compliance-candidate.*` descriptors above transcribe) and\n * LANDS into the set; a composed release lands into the release set. Without these two, the set that\n * actually landed had no popup and no graph row — a journey that drafted the privacy notice showed the\n * draft's sections only through the producer's contract.\n */\n {\n aspectKey: 'compliance-candidate-set.candidate',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE,\n rowsPath: 'complianceCandidates',\n // Keyed on `documentRef`: the identity decision the set schema records (locale and jurisdictions\n // are publication-variant concerns and would make a draft's identity change as it matured).\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * These rows CITE facts, and a fact is either DERIVED from the application or DECIDED by a\n * person — one registry edge with two targets, which the projection routes by membership, so\n * the spine needs one field per target (#1427).\n */\n { field: 'citesFactIds', targetAspectKey: 'document-facts.declaration', many: true },\n { field: 'citesDecidedFactIds', targetAspectKey: 'document-facts-authored.declaration', many: true },\n ],\n },\n {\n /*\n * One SECTION of a landed candidate (#1465), derived from the set's `candidates` and addressed by\n * the composed `<documentRef>/<sectionRef>` — a section ref alone repeats across documents.\n */\n aspectKey: 'compliance-candidate-set.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SET_SECTION,\n rowsPath: 'complianceCandidateSetSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n // Back to the candidate the section belongs to.\n { field: 'complianceCandidateId', targetAspectKey: 'compliance-candidate-set.candidate', many: false },\n /*\n * The section's CLAUSES cite the facts they rest on — derived or decided — one registry edge with\n * two targets, routed by membership, so one spine field per target (#1427).\n */\n { field: 'citesFactIds', targetAspectKey: 'document-facts.declaration', many: true },\n { field: 'citesDecidedFactIds', targetAspectKey: 'document-facts-authored.declaration', many: true },\n ],\n },\n {\n aspectKey: 'document-release-set.release',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_RELEASE,\n rowsPath: 'documentReleases',\n // A release is keyed by document × locale × jurisdictions — no single-field business key, so the\n // registry falls back to the indexed identity, as the publication variant beside it does.\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n];\n\nconst DESCRIPTOR_BY_ASPECT_KEY: ReadonlyMap<string, WorkbenchAspectDescriptor> = new Map(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]),\n);\n\nexport function getWorkbenchAspectDescriptor(aspectKey: string): WorkbenchAspectDescriptor | undefined {\n return DESCRIPTOR_BY_ASPECT_KEY.get(aspectKey);\n}\n\n/**\n * The shared envelope, instantiated per aspect with its identity field and reference fields.\n *\n * `content` stays a RAW record for the same reason the artifact resource's does: the spine never\n * sees the item schemas; the workbench frontend renders `content` through the REAL `_core` schema\n * from the registry, so typed rendering happens where the type authority is a dependency.\n */\nexport function buildWorkbenchAspectEnvelopeSchema(\n descriptor: WorkbenchAspectDescriptor,\n): z.ZodObject<z.ZodRawShape> {\n const identityField = WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType];\n const shape: Record<string, z.ZodTypeAny> = {\n /**\n * The composed address the projection emits, and the ONLY field a row click can resolve by.\n *\n * `.isSummaryField()` is not decoration here. A list renders SUMMARIES, and the frontend resolves\n * a clicked row's target by reading this field off the item — so an id that does not survive the\n * projection makes every row in every aspect list silently stop responding to a click, while READ\n * still answers 200 (the adapter filters by `identityFields`, not by this name). The only symptom\n * is one console line. Pinned for the whole population by the addressing-field contract test.\n */\n [identityField]: z.string().min(1).isPrimaryKey().isSummaryField(),\n /**\n * The owning artifact family id — a LIVE reference: `family` is the artifacts resource's own\n * field identifier, so the global map resolves it, and the artifacts READ is addressable —\n * the one link out of any popup back to the document the aspect lives in.\n */\n family: z.string().isForeignKey().isSummaryField(),\n /** The registry aspect key (`market.icp`) — which KIND of aspect this row is. */\n aspectKey: z.string().isSummaryField(),\n /** The item's headline value (the registry's `headlineField`), projected for lists/summaries. */\n title: z.string().isSummaryField(),\n /**\n * The full item as landed — rendered frontend-side through the family's own `_core` schema.\n *\n * Deliberately NOT a summary field: it is the whole item, and carrying it in every list row is\n * what the summary projection exists to avoid.\n */\n content: z.record(z.string(), z.unknown()),\n };\n for (const edge of descriptor.edges) {\n // FK marking rides the ELEMENT for arrays (the decorator's home is the string type); the\n // display pipeline accepts `string | string[]` values on a reference field either way.\n shape[edge.field] = edge.many\n ? z.array(z.string().isForeignKey())\n : z.string().isForeignKey().optional();\n }\n return z.object(shape);\n}\n\ntype WorkbenchAspect_CoreOperations = CoreResourceOperation.READ | CoreResourceOperation.LIST;\n\n/**\n * One introspection resource-configuration factory per aspect, all from the same mold as their\n * two siblings: READ/LIST only, `APPLICATION_STRUCTURE` tenancy, rows served by the companion's\n * family-aspects behavior at this aspect's `rowsPath`. Identity is always the COMPOSED field the\n * projection emits (see the identifier-map note in the types module).\n */\nexport function buildWorkbenchAspectConfigurationFactory(descriptor: WorkbenchAspectDescriptor) {\n const envelopeSchema = buildWorkbenchAspectEnvelopeSchema(descriptor);\n return (resourcesRelationships: ResourceRelationship[]) =>\n createResourceConfiguration_Initialization<undefined, WorkbenchAspect_CoreOperations, typeof envelopeSchema>({\n mainSchema: envelopeSchema,\n resourceIdentifier: descriptor.resourceType,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: 'family-aspects',\n rowsPath: descriptor.rowsPath,\n tenancy: IntrospectionTenancyStance.APPLICATION_STRUCTURE,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: undefined,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createReadOnlyApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createReadOnlyListApiVariant(),\n /* The two slices every aspect list needs: which family, which kind. */\n filterFields: {\n family: z.string(),\n aspectKey: z.string(),\n },\n }],\n },\n },\n });\n}\n\n/**\n * Every aspect's relationships:\n *\n * - the STANDALONE application anchor each INTROSPECTION resource needs (primary scope derives\n * from it; STANDALONE keeps the route flat — the established pattern of its two siblings), and\n * - one REFERENCE relationship per edge, carrying `foreignKeyField`: that is what teaches the\n * frontend's field-identifier map to resolve the envelope field to its target resource, which\n * is the entire navigation story (labels, popups, links) with no bespoke lookup anywhere.\n */\nexport function buildWorkbenchAspectRelationships(): ResourceRelationship[] {\n const relationships: ResourceRelationship[] = [];\n for (const descriptor of WORKBENCH_ASPECT_DESCRIPTORS) {\n relationships.push(\n createResourcesRelationship(\n CoreResourceType.APPLICATION,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n contextPolicy: {},\n },\n ),\n );\n for (const edge of descriptor.edges) {\n const target = DESCRIPTOR_BY_ASPECT_KEY.get(edge.targetAspectKey);\n if (!target) {\n throw new Error(\n `workbench aspect ${descriptor.aspectKey}: edge ${edge.field} targets unknown aspect ${edge.targetAspectKey}`,\n );\n }\n relationships.push(\n createResourcesRelationship(\n target.resourceType,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n edge.many ? ResourceRelationshipCardinality.MANY : ResourceRelationshipCardinality.ONE,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: edge.field,\n contextPolicy: {},\n /*\n * STANDALONE here too, not only on the application anchor: a relationship without it\n * makes the router mount the holder NESTED under its target and drop the flat route —\n * measured on this very sweep (every edge-carrying aspect 404'd flat while its\n * edge-free siblings answered 200). A reference edge is navigation metadata, never a\n * URL parent.\n */\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n /*\n * The aspect graph is CYCLIC by nature — an ICP names its triggers and a trigger names\n * the ICPs it affects; a task prerequisites tasks; an asset derives from an asset. These\n * are REFERENCES in a knowledge graph, not a containment tree, so every edge declares\n * the cycle admissible rather than pretending the graph is a DAG.\n */\n allowCycle: true,\n /*\n * The two self-edges (a task's prerequisites, an asset's derivation source) are graphs\n * with roots — a MASTER asset derives from nothing — and the factory refuses a\n * self-reference whose parent is mandatory for exactly that reason. Harmless on the\n * non-self edges: every aspect reference is optional by nature (dangling-tolerant).\n */\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n },\n ),\n );\n }\n }\n return relationships;\n}\n\n/** The factory-map slice for all aspect resources — merged into the workbench map by its owner. */\nexport const workbenchAspectResources_ConfigurationsFactoryMap: Record<\n string,\n ReturnType<typeof buildWorkbenchAspectConfigurationFactory>\n> = Object.fromEntries(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [\n descriptor.resourceType,\n buildWorkbenchAspectConfigurationFactory(descriptor),\n ]),\n);\n"]}
1
+ {"version":3,"file":"workbench-aspect-resources.custom.shared.schemas.js","sourceRoot":"","sources":["../../../../src/workbench/workbench-aspect-resources.custom.shared.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,gBAAgB,EAChB,0BAA0B,EAC1B,kBAAkB,EAClB,kBAAkB,EAClB,iCAAiC,EAEjC,uCAAuC,EACvC,+BAA+B,EAC/B,0CAA0C,EAC1C,2BAA2B,GAC5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D,kFAAkF;AAClF,iBAAiB,EAAE,CAAC;AAEpB,OAAO,EACL,uCAAuC,EACvC,4BAA4B,GAC7B,MAAM,mDAAmD,CAAC;AAC3D,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,8DAA8D,CAAC;AAEtE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,2BAOX;AAPD,WAAY,2BAA2B;IACrC,mFAAmF;IACnF,4DAA6B,CAAA;IAC7B,8DAA8D;IAC9D,sDAAuB,CAAA;IACvB,gGAAgG;IAChG,kDAAmB,CAAA;AACrB,CAAC,EAPW,2BAA2B,KAA3B,2BAA2B,QAOtC;AAkCD,MAAM,CAAC,MAAM,4BAA4B,GAAyC;IAChF;QACE,SAAS,EAAE,aAAa;QACxB,YAAY,EAAE,4BAA4B,CAAC,kBAAkB;QAC7D,QAAQ,EAAE,aAAa;QACvB,QAAQ,EAAE,2BAA2B,CAAC,SAAS;QAC/C,KAAK,EAAE,EAAE;KACV;IACD;QACE,SAAS,EAAE,gBAAgB;QAC3B,YAAY,EAAE,4BAA4B,CAAC,qBAAqB;QAChE,QAAQ,EAAE,gBAAgB;QAC1B,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AAC,YAAY;IACvB,wCAAwC,CAAC,UAAU,CAAC;CACrD,CAAC,CACH,CAAC","sourcesContent":["import {\n CoreResourceOperation,\n CoreResourceType,\n IntrospectionTenancyStance,\n PersistenceAdapter,\n RelationshipNature,\n ResourceParentResourceRequirement,\n ResourceRelationship,\n ResourceRelationshipAccessScopeStrategy,\n ResourceRelationshipCardinality,\n createResourceConfiguration_Initialization,\n createResourcesRelationship,\n} from '@wildo-ai/saas-models';\nimport { z } from 'zod';\nimport { initZodDecorators } from '@wildo-ai/zod-decorators';\n\n// Decorator methods must exist before the module-load-time envelope builds below.\ninitZodDecorators();\n\nimport {\n WorkbenchShared_ResourceFieldIdentifier,\n WorkbenchShared_ResourceType,\n} from './workbench-resources-types.custom.shared.schemas';\nimport {\n createReadOnlyApiVariant,\n createReadOnlyListApiVariant,\n} from './workbench-resources.custom.shared.resources-config.schemas';\n\n/**\n * FAMILY ASPECT RESOURCES — the spine's schema-agnostic transcription of\n * `FAMILY_ASPECTS_REGISTRY` (`@wildo-ai/saas-specifications`, `_core/family-aspects.*`).\n *\n * ## The split, restated where it is enforced\n *\n * The registry is AUTHORITATIVE: item schemas, business keys, edges, all declared beside the\n * `_core` family schemas (decided 2026-09-01). The spine cannot import it — platform-core-shared\n * deliberately never depends on saas-specifications — so this module carries plain DATA: which\n * aspects exist, which envelope fields carry references, and which resource each reference\n * resolves to. A companion-side parity test holds this table to the registry; drift between the\n * two is a failing test, never a silent divergence.\n *\n * ## The envelope\n *\n * Aspect rows share ONE envelope shape (identity, family backlink, headline, the full item as a\n * raw record) plus the aspect's own FLATTENED reference fields. Flattening is the projection's\n * job and is what makes every edge a PLAIN foreign key the engine already resolves:\n *\n * - weighted edge objects flatten to key arrays (`jobs[].jobRef` → `jobIds`),\n * - multi-target fields split per target (`deliversRequirementRefs` →\n * `deliversFunctionalRequirementIds` + `deliversNonFunctionalRequirementIds`), because the\n * frontend resolves an FK field name to ONE resource — a mixed-kind array has no honest single\n * answer, and split fields read better anyway,\n * - every field name below maps to exactly one target across ALL aspects (collision-audited at\n * generation; the parity test re-checks it).\n *\n * The `family` field is the artifact BACKLINK for free: it is the specification-artifacts\n * resource's own field identifier, so the global field-identifier map already resolves it.\n */\n\n/**\n * How an aspect row gets its identity — mirrors the registry's `businessKey` contract.\n *\n * The three are not interchangeable and the fallback order between them is the point: a collection\n * whose schema declares a single-field key is addressed by it, a singleton has one row per family so\n * the aspect key IS the identity, and a keyless collection falls back to a positional address that is\n * stable per landed snapshot and honest about carrying no business meaning.\n */\nexport enum WorkbenchAspectIdentityKind {\n /** The item's own business key (`ref`, `taskRef`, …), unique within the aspect. */\n BUSINESS_KEY = 'business-key',\n /** One row per family — identity is the aspect key itself. */\n SINGLETON = 'singleton',\n /** Keyless collection (locale × jurisdictions): `<aspectKey>[<index>]`, stable per snapshot. */\n INDEXED = 'indexed',\n}\n\nexport interface WorkbenchAspectEdgeDescriptor {\n /** Envelope field carrying the reference key(s) — post-flatten, post-split. */\n readonly field: string;\n /** The registry aspect key the reference resolves to. */\n readonly targetAspectKey: string;\n /** `true` = key array; `false` = single key. */\n readonly many: boolean;\n /**\n * The REGISTRY field this edge transcribes, when the target alone does not identify it.\n *\n * The projection joins a routed reference to a spine edge by target, which is unique for every\n * aspect but one: a minion declares `readsResourceRefs` AND `writesResourceRefs`, both reaching\n * `domain-plan.resource`, because its containment whitelist is two lists and the direction is the\n * decision (#1495). Without this field the second reference would overwrite the first under one\n * envelope name — silently, and with the wrong half winning.\n *\n * Omitted everywhere the target is unique, which is everywhere else; when present it is matched\n * FIRST, so adding one can never change an existing aspect's join.\n */\n readonly sourceField?: string;\n}\n\nexport interface WorkbenchAspectDescriptor {\n /** The registry aspect key (`market.icp`) — the parity test's join column. */\n readonly aspectKey: string;\n readonly resourceType: WorkbenchShared_ResourceType;\n /** The introspection payload member this resource reads its rows from. */\n readonly rowsPath: string;\n readonly identity: WorkbenchAspectIdentityKind;\n readonly edges: readonly WorkbenchAspectEdgeDescriptor[];\n}\n\nexport const WORKBENCH_ASPECT_DESCRIPTORS: readonly WorkbenchAspectDescriptor[] = [\n {\n aspectKey: 'vision.idea',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_IDEA,\n rowsPath: 'visionIdeas',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.problem',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_PROBLEM,\n rowsPath: 'visionProblems',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.mission',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_MISSION,\n rowsPath: 'visionMissions',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'vision.success-criterion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_SUCCESS_CRITERION,\n rowsPath: 'visionSuccessCriteria',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'vision.constraint',\n resourceType: WorkbenchShared_ResourceType.ASPECT_VISION_CONSTRAINT,\n rowsPath: 'visionConstraints',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.category',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CATEGORY,\n rowsPath: 'marketCategories',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'market.icp',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ICP,\n rowsPath: 'marketIcps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * The SELF-edge (#1427): an ICP's `influences` name OTHER ICPs, carried inside objects and\n * invisible to the registry until it walked one level down. It is what makes a buying group\n * legible — the economic buyer an end user influences is why both are on record.\n */\n { field: 'influencesIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'personaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'triggerIds', targetAspectKey: 'market.trigger', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'objectionIds', targetAspectKey: 'market.objection', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.persona',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PERSONA,\n rowsPath: 'marketPersonas',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'belongsToIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'channelIds', targetAspectKey: 'market.channel', many: true },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'market.job',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_JOB,\n rowsPath: 'marketJobs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.pain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PAIN,\n rowsPath: 'marketPains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.gain',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_GAIN,\n rowsPath: 'marketGains',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.tone-of-voice',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TONE_OF_VOICE,\n rowsPath: 'marketTonesOfVoice',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.benefit',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BENEFIT,\n rowsPath: 'marketBenefits',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliveredByFeatureIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'painIds', targetAspectKey: 'market.pain', many: true },\n { field: 'gainIds', targetAspectKey: 'market.gain', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'addressesObjectionIds', targetAspectKey: 'market.objection', many: true },\n ],\n },\n {\n aspectKey: 'market.positioning',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_POSITIONING,\n rowsPath: 'marketPositionings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n { field: 'benefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'alternativeIds', targetAspectKey: 'market.alternative', many: true },\n ],\n },\n {\n aspectKey: 'market.channel',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_CHANNEL,\n rowsPath: 'marketChannels',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.alternative',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_ALTERNATIVE,\n rowsPath: 'marketAlternatives',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'market.trigger',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_TRIGGER,\n rowsPath: 'marketTriggers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'affectedIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'recommendedChannelIds', targetAspectKey: 'market.channel', many: true },\n ],\n },\n {\n aspectKey: 'market.buying-journey',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_BUYING_JOURNEY,\n rowsPath: 'marketBuyingJourneys',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpId', targetAspectKey: 'market.icp', many: false },\n ],\n },\n {\n aspectKey: 'market.proof',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_PROOF,\n rowsPath: 'marketProofs',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'supportsBenefitIds', targetAspectKey: 'market.benefit', many: true },\n { field: 'supportsIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'market.objection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_OBJECTION,\n rowsPath: 'marketObjections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'raisedByIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'raisedByPersonaIds', targetAspectKey: 'market.persona', many: true },\n { field: 'proofIds', targetAspectKey: 'market.proof', many: true },\n { field: 'relatedBenefitIds', targetAspectKey: 'market.benefit', many: true },\n ],\n },\n {\n aspectKey: 'market.message-template',\n resourceType: WorkbenchShared_ResourceType.ASPECT_MARKET_MESSAGE_TEMPLATE,\n rowsPath: 'marketMessageTemplates',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'preferredVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n aspectKey: 'requirements.functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_FUNCTIONAL,\n rowsPath: 'functionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'requirements.non-functional',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_NON_FUNCTIONAL,\n rowsPath: 'nonFunctionalRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'icpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'jobIds', targetAspectKey: 'market.job', many: true },\n ],\n },\n {\n aspectKey: 'feature-drafts.draft',\n resourceType: WorkbenchShared_ResourceType.ASPECT_FEATURE_DRAFT,\n rowsPath: 'featureDrafts',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'roadmap.phase',\n resourceType: WorkbenchShared_ResourceType.ASPECT_ROADMAP_PHASE,\n rowsPath: 'roadmapPhases',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'deliversFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'deliversNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'deliversSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n aspectKey: 'business-model.plan',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PRICING_PLAN,\n rowsPath: 'pricingPlans',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'includesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'includesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n ],\n },\n {\n aspectKey: 'brand.name',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_NAME,\n rowsPath: 'brandNames',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.logo-direction',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_LOGO_DIRECTION,\n rowsPath: 'brandLogoDirections',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.visual-tone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_VISUAL_TONE,\n rowsPath: 'brandVisualTones',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [],\n },\n {\n aspectKey: 'brand.audience',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_AUDIENCE,\n rowsPath: 'brandAudiences',\n identity: WorkbenchAspectIdentityKind.SINGLETON,\n edges: [\n { field: 'targetIcpIds', targetAspectKey: 'market.icp', many: true },\n ],\n },\n {\n aspectKey: 'brand.asset',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BRAND_ASSET,\n rowsPath: 'brandAssets',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'derivedFromId', targetAspectKey: 'brand.asset', many: false },\n ],\n },\n /*\n * THE COMPLIANCE PROGRAMME (#1431, surfaced #1512). Ten aspects, and the edge set is the point:\n * an obligation reaches the decision that made it applicable, the assignment that owns it, the\n * gap that blocks it and the coverage decision that reviewed it — the whole reason this family is\n * addressable at all.\n *\n * SEVERAL registry fields collapse into ONE spine field wherever they share a target, because the\n * projection joins a reference to the descriptor edge whose target matches. A responsibility\n * assignment names five distinct ROLE fields and they become one `roleIds` link; the distinction\n * is not lost, it is on the row, where each field renders under its own word. What the edge\n * carries is the click-through, which is the same for all five.\n */\n {\n aspectKey: 'compliance-program.scope-selector',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_SCOPE_SELECTOR,\n rowsPath: 'complianceScopeSelectors',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-program.applicability-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_APPLICABILITY_DECISION,\n rowsPath: 'complianceApplicabilityDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.obligation',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_OBLIGATION,\n rowsPath: 'complianceObligations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n { field: 'responsibilityAssignmentIds', targetAspectKey: 'compliance-program.responsibility-assignment', many: true },\n { field: 'reviewOwnerRoleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n { field: 'gapIds', targetAspectKey: 'compliance-program.gap', many: true },\n { field: 'coverageDecisionId', targetAspectKey: 'compliance-program.obligation-coverage-decision', many: false },\n { field: 'sourceApplicabilityDecisionIds', targetAspectKey: 'compliance-program.applicability-decision', many: true },\n // A SELF-edge: an obligation may depend on another obligation being met first.\n { field: 'dependencyObligationIds', targetAspectKey: 'compliance-program.obligation', many: true },\n { field: 'sharedResponsibilityRuleId', targetAspectKey: 'compliance-program.shared-responsibility-rule', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.obligation-coverage-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_COVERAGE_DECISION,\n rowsPath: 'complianceCoverageDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'obligationId', targetAspectKey: 'compliance-program.obligation', many: false },\n { field: 'reviewedByRoleId', targetAspectKey: 'compliance-program.role-authority', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.implementation-decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_IMPLEMENTATION_DECISION,\n rowsPath: 'complianceImplementationDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n { field: 'gapIds', targetAspectKey: 'compliance-program.gap', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.responsibility-assignment',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_RESPONSIBILITY_ASSIGNMENT,\n rowsPath: 'complianceResponsibilityAssignments',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n // FIVE registry fields — responsible, operating, evidence-provider, approving, escalation —\n // one target, so one link. Each renders under its own word on the row.\n { field: 'roleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.gap',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_GAP,\n rowsPath: 'complianceGaps',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorId', targetAspectKey: 'compliance-program.scope-selector', many: false },\n { field: 'ownerRoleId', targetAspectKey: 'compliance-program.role-authority', many: false },\n ],\n },\n {\n aspectKey: 'compliance-program.documentation-requirement',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_DOCUMENTATION_REQUIREMENT,\n rowsPath: 'complianceDocumentationRequirements',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'approvingRoleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'compliance-program.role-authority',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_ROLE_AUTHORITY,\n rowsPath: 'complianceRoleAuthorities',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'compliance-program.shared-responsibility-rule',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_SHARED_RESPONSIBILITY_RULE,\n rowsPath: 'complianceSharedResponsibilityRules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'scopeSelectorIds', targetAspectKey: 'compliance-program.scope-selector', many: true },\n // Five role fields again — accountable, operating, evidence-provider, approving, conflict.\n { field: 'roleIds', targetAspectKey: 'compliance-program.role-authority', many: true },\n ],\n },\n {\n aspectKey: 'domain-plan.module',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_MODULE,\n rowsPath: 'domainPlanModules',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The DERIVED resource (#1482, surfaced #1512). Its rows are a projection of\n * `modules[].mainResources` rather than a member of the snapshot — a domain plan lists resources\n * as plain strings — and it is the single most-travelled link in the build lane: a build task's\n * `target.resourceRef` and `produces.resourceRef`, a placement decision's `subject.resourceRef`\n * and an experience view's `resourceId` all land here. Without this row every one of those was an\n * edge the graph could declare and not follow.\n */\n {\n aspectKey: 'domain-plan.resource',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RESOURCE,\n rowsPath: 'domainPlanResources',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n // Back to the module that lists it — the one edge a projected row carries.\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n ],\n },\n {\n aspectKey: 'domain-plan.relationship',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOMAIN_PLAN_RELATIONSHIP,\n rowsPath: 'domainPlanRelationships',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * The two ENDS, as ONE spine field. The registry declares `sourceResourceRef` and\n * `targetResourceRef` separately and both land on the same aspect, and the projection joins a\n * reference to the descriptor edge whose target matches — so one target is one field, by\n * construction. The DIRECTION is not lost: it is on the row itself, where `sourceResourceRef`\n * and `targetResourceRef` render as \"From\" and \"To\"; what this field carries is the\n * click-through, which is the same for both ends.\n */\n { field: 'relatesResourceIds', targetAspectKey: 'domain-plan.resource', many: true },\n ],\n },\n {\n aspectKey: 'build-plan.task',\n resourceType: WorkbenchShared_ResourceType.ASPECT_BUILD_TASK,\n rowsPath: 'buildTasks',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'prerequisiteTaskIds', targetAspectKey: 'build-plan.task', many: true },\n /*\n * THE LINK BACK TO THE DECISION (#1427): a task's `target` names the domain-plan module or\n * relationship it builds. Carried inside an object, so the registry could not see it until its\n * drift pin walked one level down — and the spine could not link it until the registry did.\n */\n { field: 'targetModuleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'targetRelationshipId', targetAspectKey: 'domain-plan.relationship', many: false },\n /*\n * The most-travelled link in the build lane (#1482): a task's `target.resourceRef` and its\n * `produces.resourceRef` both name the resource it builds. Two registry fields, one target,\n * so one spine field — what is built and what it produces are the same resource.\n */\n { field: 'resourceIds', targetAspectKey: 'domain-plan.resource', many: true },\n /* A task may serve a DRAFTED FEATURE (#1433 row 4) — declared once the data was measured. */\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n /* The vision edges (#629) — see the registry for why a build task may serve these. */\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n { field: 'servesConstraintIds', targetAspectKey: 'vision.constraint', many: true },\n /*\n * The experience plan's entries on the PRODUCT side (#1660): a view, milestone or guidance task\n * names the entry it builds by the plan's own ref, so the task links to the decision.\n */\n { field: 'producesViewIds', targetAspectKey: 'experience-plan.view', many: true },\n { field: 'producesMilestoneIds', targetAspectKey: 'experience-plan.milestone', many: true },\n { field: 'producesGuidanceIds', targetAspectKey: 'experience-plan.guidance', many: true },\n /* A billing-catalogue task names the pricing plan it realises in `servesRefs` (#1835). */\n { field: 'servesPricingPlanIds', targetAspectKey: 'business-model.plan', many: true },\n ],\n },\n {\n /*\n * One composition decision per framework scenario (#1491) — NO edges: a decision names a\n * SCENARIO (a framework template) and a basis (a closed vocabulary), neither of which is a\n * decided element another aspect addresses.\n */\n aspectKey: 'capability-composition.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_CAPABILITY_COMPOSITION_DECISION,\n rowsPath: 'compositionDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * One planned website page (#1492). Its two edges reach the MARKET — a page is written for an\n * ICP, in a tone of voice — which is what makes the plan checkable from the snapshot's side.\n */\n aspectKey: 'website-plan.page',\n resourceType: WorkbenchShared_ResourceType.ASPECT_WEBSITE_PAGE,\n rowsPath: 'websitePages',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'audienceIcpIds', targetAspectKey: 'market.icp', many: true },\n { field: 'toneOfVoiceId', targetAspectKey: 'market.tone-of-voice', many: false },\n ],\n },\n {\n /* One planned surface of the application's experience (#1493) — where it lives, and what asked for it. */\n aspectKey: 'experience-plan.view',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_VIEW,\n rowsPath: 'experienceViews',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'resourceId', targetAspectKey: 'domain-plan.resource', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One configuration surface the application composes — no edge: it names files and tokens, not elements. */\n aspectKey: 'experience-plan.configuration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_CONFIGURATION,\n rowsPath: 'experienceConfigurations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /* One moment the application recognises — the module declaring it and the resource that earns it. */\n aspectKey: 'experience-plan.milestone',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_MILESTONE,\n rowsPath: 'experienceMilestones',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'triggerResourceId', targetAspectKey: 'domain-plan.resource', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One piece of guidance, linked to the milestones a person must hold first — the journey as one path. */\n aspectKey: 'experience-plan.guidance',\n resourceType: WorkbenchShared_ResourceType.ASPECT_EXPERIENCE_GUIDANCE,\n rowsPath: 'experienceGuidance',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'moduleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'gatedByMilestoneIds', targetAspectKey: 'experience-plan.milestone', many: true },\n { field: 'hostViewId', targetAspectKey: 'experience-plan.view', many: false },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One worker the backend delegates to (#1495). Its only edges are what asked for it: a worker's\n * routes are the BUILT package's units of work, not decided elements.\n */\n aspectKey: 'integration-plan.worker',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_WORKER,\n rowsPath: 'integrationWorkers',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One cron minion (#1495) — and the ONE aspect whose edges are not unique by target: its\n * containment whitelist reaches `domain-plan.resource` TWICE, once per direction, so both\n * carry `sourceField`. The direction is the decision, and collapsing the two would report a\n * minion as reading what it only writes.\n */\n aspectKey: 'integration-plan.minion',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_MINION,\n rowsPath: 'integrationMinions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'readsResourceIds', sourceField: 'readsResourceRefs', targetAspectKey: 'domain-plan.resource', many: true },\n { field: 'writesResourceIds', sourceField: 'writesResourceRefs', targetAspectKey: 'domain-plan.resource', many: true },\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /* One provider bound into one scope — no edge: a provider ref is the ENGINE's catalogue, not a decided element. */\n aspectKey: 'integration-plan.provider-binding',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_PROVIDER_BINDING,\n rowsPath: 'integrationProviderBindings',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /* One channel work arrives on (#1630). Its only edges are what asked for it, like a worker's. */\n aspectKey: 'integration-plan.inbound-channel',\n resourceType: WorkbenchShared_ResourceType.ASPECT_INTEGRATION_INBOUND_CHANNEL,\n rowsPath: 'integrationInboundChannels',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'servesFunctionalRequirementIds', targetAspectKey: 'requirements.functional', many: true },\n { field: 'servesNonFunctionalRequirementIds', targetAspectKey: 'requirements.non-functional', many: true },\n { field: 'servesRoadmapPhaseIds', targetAspectKey: 'roadmap.phase', many: true },\n { field: 'servesFeatureDraftIds', targetAspectKey: 'feature-drafts.draft', many: true },\n { field: 'servesSuccessCriterionIds', targetAspectKey: 'vision.success-criterion', many: true },\n ],\n },\n {\n /*\n * One requirement's standing (#1496), and the aspect that carries BOTH multi-edge shapes at\n * once — which is why every edge here names its source field.\n *\n * Its business key IS its edge: the row exists to say something about ONE requirement, and\n * `requirementRef` reaches both halves of the family — one field, two targets — routed by\n * MEMBERSHIP rather than by the row's own `half` field, which it does carry. An aspect edge\n * declares its targets ONCE and has no per-row selection, and membership MEASURES where a ref\n * lives instead of trusting a landed file's claim about it. `landedTaskIds` and\n * `provenTaskIds` are the other shape, two fields to ONE target, and they must stay apart\n * because proven is a subset of landed and collapsing them would report work as verified that\n * only exists.\n *\n * The projection therefore joins on the PAIR. Naming the source field on all four is what makes\n * that join load-bearing rather than incidental: with them omitted the target-only fallback\n * happens to resolve the same rows, and a regression in the join would go unnoticed.\n */\n aspectKey: 'application-maturity.requirement',\n resourceType: WorkbenchShared_ResourceType.ASPECT_REQUIREMENT_MATURITY,\n rowsPath: 'requirementMaturities',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'functionalRequirementId', sourceField: 'requirementRef', targetAspectKey: 'requirements.functional', many: false },\n { field: 'nonFunctionalRequirementId', sourceField: 'requirementRef', targetAspectKey: 'requirements.non-functional', many: false },\n { field: 'landedTaskIds', sourceField: 'landedTaskRefs', targetAspectKey: 'build-plan.task', many: true },\n { field: 'provenTaskIds', sourceField: 'provenTaskRefs', targetAspectKey: 'build-plan.task', many: true },\n ],\n },\n {\n /* One planned documentation chapter (#1494) — no edge: it cites the BUILT product's own specifications. */\n aspectKey: 'documentation-plan.chapter',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENTATION_CHAPTER,\n rowsPath: 'documentationChapters',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.group',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_GROUP,\n rowsPath: 'placementGroups',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'placement.decision',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PLACEMENT_DECISION,\n rowsPath: 'placementDecisions',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n { field: 'groupId', targetAspectKey: 'placement.group', many: false },\n /*\n * A placement decision's SUBJECT is a domain-plan module or a RESOURCE (#1427/#1482), both\n * carried inside an object. The resource half was the one the graph could not follow until\n * the projected resource got a row of its own.\n */\n { field: 'subjectModuleId', targetAspectKey: 'domain-plan.module', many: false },\n { field: 'subjectResourceId', targetAspectKey: 'domain-plan.resource', many: false },\n ],\n },\n {\n aspectKey: 'compliance-candidate.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SECTION,\n rowsPath: 'complianceCandidateSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n /*\n * No edges since #1465: the producer family lands into the SET and is never indexed, so its\n * clause → fact link moved to `compliance-candidate-set.section`, the aspect that is read.\n */\n edges: [],\n },\n {\n aspectKey: 'compliance-candidate.variant-selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_VARIANT_SELECTION,\n rowsPath: 'complianceCandidateVariantSelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-facts.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'documentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n /*\n * The same row shape as the descriptor above and a SEPARATE resource, because the two families it\n * transcribes are separate (#192): one is regenerated by a producer, the other is only ever written\n * by a person. Merging them into one browsable list would erase exactly the provenance the split\n * exists to keep, and a reader could no longer tell which declarations survive the next producer run.\n */\n {\n aspectKey: 'document-facts-authored.declaration',\n resourceType: WorkbenchShared_ResourceType.ASPECT_AUTHORED_DOCUMENT_FACT_DECLARATION,\n rowsPath: 'authoredDocumentFactDeclarations',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n /*\n * INDEXED, not BUSINESS_KEY, and that is the registry's own answer rather than a simplification\n * here: the row is a union whose two arms key on different fields (`providerRef` vs\n * `subprocessorRef`), so no single field identifies a row across it.\n */\n aspectKey: 'processor-register.processor',\n resourceType: WorkbenchShared_ResourceType.ASPECT_PROCESSOR_REGISTER_ENTRY,\n rowsPath: 'processorRegisterEntries',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n {\n /*\n * BUSINESS_KEY, unlike the processor entry above: a risk entry carries `entryRef`, which the\n * family validator holds unique and which `reviewOrder` addresses rows by. An indexed identity\n * here would make the register's own reading order unable to name the rows it orders.\n */\n aspectKey: 'risk-register.entry',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RISK_REGISTER_ENTRY,\n rowsPath: 'riskRegisterEntries',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'release-policy.selection',\n resourceType: WorkbenchShared_ResourceType.ASPECT_RELEASE_POLICY_SELECTION,\n rowsPath: 'releasePolicySelections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [],\n },\n {\n aspectKey: 'document-publication.variant',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_PUBLICATION_VARIANT,\n rowsPath: 'documentPublicationVariants',\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n /*\n * The two landed SET families of the governed-document lane (#1105). A drafting run EMITS one\n * candidate (the singular family the two `compliance-candidate.*` descriptors above transcribe) and\n * LANDS into the set; a composed release lands into the release set. Without these two, the set that\n * actually landed had no popup and no graph row — a journey that drafted the privacy notice showed the\n * draft's sections only through the producer's contract.\n */\n {\n aspectKey: 'compliance-candidate-set.candidate',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE,\n rowsPath: 'complianceCandidates',\n // Keyed on `documentRef`: the identity decision the set schema records (locale and jurisdictions\n // are publication-variant concerns and would make a draft's identity change as it matured).\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n /*\n * These rows CITE facts, and a fact is either DERIVED from the application or DECIDED by a\n * person — one registry edge with two targets, which the projection routes by membership, so\n * the spine needs one field per target (#1427).\n */\n { field: 'citesFactIds', targetAspectKey: 'document-facts.declaration', many: true },\n { field: 'citesDecidedFactIds', targetAspectKey: 'document-facts-authored.declaration', many: true },\n ],\n },\n {\n /*\n * One SECTION of a landed candidate (#1465), derived from the set's `candidates` and addressed by\n * the composed `<documentRef>/<sectionRef>` — a section ref alone repeats across documents.\n */\n aspectKey: 'compliance-candidate-set.section',\n resourceType: WorkbenchShared_ResourceType.ASPECT_COMPLIANCE_CANDIDATE_SET_SECTION,\n rowsPath: 'complianceCandidateSetSections',\n identity: WorkbenchAspectIdentityKind.BUSINESS_KEY,\n edges: [\n // Back to the candidate the section belongs to.\n { field: 'complianceCandidateId', targetAspectKey: 'compliance-candidate-set.candidate', many: false },\n /*\n * The section's CLAUSES cite the facts they rest on — derived or decided — one registry edge with\n * two targets, routed by membership, so one spine field per target (#1427).\n */\n { field: 'citesFactIds', targetAspectKey: 'document-facts.declaration', many: true },\n { field: 'citesDecidedFactIds', targetAspectKey: 'document-facts-authored.declaration', many: true },\n ],\n },\n {\n aspectKey: 'document-release-set.release',\n resourceType: WorkbenchShared_ResourceType.ASPECT_DOCUMENT_RELEASE,\n rowsPath: 'documentReleases',\n // A release is keyed by document × locale × jurisdictions — no single-field business key, so the\n // registry falls back to the indexed identity, as the publication variant beside it does.\n identity: WorkbenchAspectIdentityKind.INDEXED,\n edges: [],\n },\n];\n\nconst DESCRIPTOR_BY_ASPECT_KEY: ReadonlyMap<string, WorkbenchAspectDescriptor> = new Map(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [descriptor.aspectKey, descriptor]),\n);\n\nexport function getWorkbenchAspectDescriptor(aspectKey: string): WorkbenchAspectDescriptor | undefined {\n return DESCRIPTOR_BY_ASPECT_KEY.get(aspectKey);\n}\n\n/**\n * The shared envelope, instantiated per aspect with its identity field and reference fields.\n *\n * `content` stays a RAW record for the same reason the artifact resource's does: the spine never\n * sees the item schemas; the workbench frontend renders `content` through the REAL `_core` schema\n * from the registry, so typed rendering happens where the type authority is a dependency.\n */\nexport function buildWorkbenchAspectEnvelopeSchema(\n descriptor: WorkbenchAspectDescriptor,\n): z.ZodObject<z.ZodRawShape> {\n const identityField = WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType];\n const shape: Record<string, z.ZodTypeAny> = {\n /**\n * The composed address the projection emits, and the ONLY field a row click can resolve by.\n *\n * `.isSummaryField()` is not decoration here. A list renders SUMMARIES, and the frontend resolves\n * a clicked row's target by reading this field off the item — so an id that does not survive the\n * projection makes every row in every aspect list silently stop responding to a click, while READ\n * still answers 200 (the adapter filters by `identityFields`, not by this name). The only symptom\n * is one console line. Pinned for the whole population by the addressing-field contract test.\n */\n [identityField]: z.string().min(1).isPrimaryKey().isSummaryField(),\n /**\n * The owning artifact family id — a LIVE reference: `family` is the artifacts resource's own\n * field identifier, so the global map resolves it, and the artifacts READ is addressable —\n * the one link out of any popup back to the document the aspect lives in.\n */\n family: z.string().isForeignKey().isSummaryField(),\n /** The registry aspect key (`market.icp`) — which KIND of aspect this row is. */\n aspectKey: z.string().isSummaryField(),\n /** The item's headline value (the registry's `headlineField`), projected for lists/summaries. */\n title: z.string().isSummaryField(),\n /**\n * The full item as landed — rendered frontend-side through the family's own `_core` schema.\n *\n * Deliberately NOT a summary field: it is the whole item, and carrying it in every list row is\n * what the summary projection exists to avoid.\n */\n content: z.record(z.string(), z.unknown()),\n };\n for (const edge of descriptor.edges) {\n // FK marking rides the ELEMENT for arrays (the decorator's home is the string type); the\n // display pipeline accepts `string | string[]` values on a reference field either way.\n shape[edge.field] = edge.many\n ? z.array(z.string().isForeignKey())\n : z.string().isForeignKey().optional();\n }\n return z.object(shape);\n}\n\ntype WorkbenchAspect_CoreOperations = CoreResourceOperation.READ | CoreResourceOperation.LIST;\n\n/**\n * One introspection resource-configuration factory per aspect, all from the same mold as their\n * two siblings: READ/LIST only, `APPLICATION_STRUCTURE` tenancy, rows served by the companion's\n * family-aspects behavior at this aspect's `rowsPath`. Identity is always the COMPOSED field the\n * projection emits (see the identifier-map note in the types module).\n */\nexport function buildWorkbenchAspectConfigurationFactory(descriptor: WorkbenchAspectDescriptor) {\n const envelopeSchema = buildWorkbenchAspectEnvelopeSchema(descriptor);\n return (resourcesRelationships: ResourceRelationship[]) =>\n createResourceConfiguration_Initialization<undefined, WorkbenchAspect_CoreOperations, typeof envelopeSchema>({\n mainSchema: envelopeSchema,\n resourceIdentifier: descriptor.resourceType,\n resourceFieldIdentifier: WorkbenchShared_ResourceFieldIdentifier[descriptor.resourceType],\n resourceRelationships: resourcesRelationships,\n isSystemResource: false,\n persistenceAdapter: PersistenceAdapter.INTROSPECTION,\n introspectionBinding: {\n behavior: 'family-aspects',\n rowsPath: descriptor.rowsPath,\n tenancy: IntrospectionTenancyStance.APPLICATION_STRUCTURE,\n },\n coreOperations: [CoreResourceOperation.READ, CoreResourceOperation.LIST],\n customOperation: undefined,\n operationsConfiguration: {\n [CoreResourceOperation.READ]: { variants: [createReadOnlyApiVariant()] },\n [CoreResourceOperation.LIST]: {\n variants: [{\n ...createReadOnlyListApiVariant(),\n /* The two slices every aspect list needs: which family, which kind. */\n filterFields: {\n family: z.string(),\n aspectKey: z.string(),\n },\n }],\n },\n },\n });\n}\n\n/**\n * Every aspect's relationships:\n *\n * - the STANDALONE application anchor each INTROSPECTION resource needs (primary scope derives\n * from it; STANDALONE keeps the route flat — the established pattern of its two siblings), and\n * - one REFERENCE relationship per edge, carrying `foreignKeyField`: that is what teaches the\n * frontend's field-identifier map to resolve the envelope field to its target resource, which\n * is the entire navigation story (labels, popups, links) with no bespoke lookup anywhere.\n */\nexport function buildWorkbenchAspectRelationships(): ResourceRelationship[] {\n const relationships: ResourceRelationship[] = [];\n for (const descriptor of WORKBENCH_ASPECT_DESCRIPTORS) {\n relationships.push(\n createResourcesRelationship(\n CoreResourceType.APPLICATION,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n ResourceRelationshipCardinality.MANY,\n {\n nature: RelationshipNature.COMPOSITION,\n isPrimaryScope: true,\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n contextPolicy: {},\n },\n ),\n );\n for (const edge of descriptor.edges) {\n const target = DESCRIPTOR_BY_ASPECT_KEY.get(edge.targetAspectKey);\n if (!target) {\n throw new Error(\n `workbench aspect ${descriptor.aspectKey}: edge ${edge.field} targets unknown aspect ${edge.targetAspectKey}`,\n );\n }\n relationships.push(\n createResourcesRelationship(\n target.resourceType,\n descriptor.resourceType,\n ResourceRelationshipCardinality.ONE,\n edge.many ? ResourceRelationshipCardinality.MANY : ResourceRelationshipCardinality.ONE,\n {\n nature: RelationshipNature.REFERENCE,\n foreignKeyField: edge.field,\n contextPolicy: {},\n /*\n * STANDALONE here too, not only on the application anchor: a relationship without it\n * makes the router mount the holder NESTED under its target and drop the flat route —\n * measured on this very sweep (every edge-carrying aspect 404'd flat while its\n * edge-free siblings answered 200). A reference edge is navigation metadata, never a\n * URL parent.\n */\n accessScopeStrategy: ResourceRelationshipAccessScopeStrategy.STANDALONE,\n /*\n * The aspect graph is CYCLIC by nature — an ICP names its triggers and a trigger names\n * the ICPs it affects; a task prerequisites tasks; an asset derives from an asset. These\n * are REFERENCES in a knowledge graph, not a containment tree, so every edge declares\n * the cycle admissible rather than pretending the graph is a DAG.\n */\n allowCycle: true,\n /*\n * The two self-edges (a task's prerequisites, an asset's derivation source) are graphs\n * with roots — a MASTER asset derives from nothing — and the factory refuses a\n * self-reference whose parent is mandatory for exactly that reason. Harmless on the\n * non-self edges: every aspect reference is optional by nature (dangling-tolerant).\n */\n parentResourceRequirement: ResourceParentResourceRequirement.OPTIONAL,\n },\n ),\n );\n }\n }\n return relationships;\n}\n\n/** The factory-map slice for all aspect resources — merged into the workbench map by its owner. */\nexport const workbenchAspectResources_ConfigurationsFactoryMap: Record<\n string,\n ReturnType<typeof buildWorkbenchAspectConfigurationFactory>\n> = Object.fromEntries(\n WORKBENCH_ASPECT_DESCRIPTORS.map((descriptor) => [\n descriptor.resourceType,\n buildWorkbenchAspectConfigurationFactory(descriptor),\n ]),\n);\n"]}