@wildo-ai/saas-specifications 1.1.13 → 1.1.15

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 (117) hide show
  1. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +2 -2
  2. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  3. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +13 -8
  4. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  5. package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
  6. package/dist/esm/_core/build-plan/build-plan.family-aspects.js +13 -7
  7. package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
  8. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  9. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +28 -5
  10. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  11. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +4 -1
  12. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  13. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -0
  14. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  15. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -0
  16. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  17. package/dist/esm/_core/integration-plan/integration-execution-surface-refs.schemas.d.ts +32 -0
  18. package/dist/esm/_core/integration-plan/integration-execution-surface-refs.schemas.d.ts.map +1 -0
  19. package/dist/esm/_core/integration-plan/integration-execution-surface-refs.schemas.js +47 -0
  20. package/dist/esm/_core/integration-plan/integration-execution-surface-refs.schemas.js.map +1 -0
  21. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts +7 -0
  22. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.d.ts.map +1 -1
  23. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js +4 -1
  24. package/dist/esm/_core/integration-plan/integration-plan-generation.schemas.js.map +1 -1
  25. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts +114 -1
  26. package/dist/esm/_core/integration-plan/integration-plan-validation.d.ts.map +1 -1
  27. package/dist/esm/_core/integration-plan/integration-plan-validation.js +176 -0
  28. package/dist/esm/_core/integration-plan/integration-plan-validation.js.map +1 -1
  29. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
  30. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +17 -1
  31. package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
  32. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts +43 -5
  33. package/dist/esm/_core/integration-plan/integration-plan.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/integration-plan/integration-plan.schemas.js +75 -7
  35. package/dist/esm/_core/integration-plan/integration-plan.schemas.js.map +1 -1
  36. package/dist/esm/_core/provider-specification.schemas.d.ts +16 -1
  37. package/dist/esm/_core/provider-specification.schemas.d.ts.map +1 -1
  38. package/dist/esm/_core/provider-specification.schemas.js +21 -0
  39. package/dist/esm/_core/provider-specification.schemas.js.map +1 -1
  40. package/dist/esm/application-creation.exports.d.ts +1 -0
  41. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  42. package/dist/esm/application-creation.exports.js +1 -0
  43. package/dist/esm/application-creation.exports.js.map +1 -1
  44. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  45. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +5 -3
  46. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  47. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  48. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +2 -1
  49. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  50. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -1
  51. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +6 -2
  52. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -1
  53. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  54. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js +6 -5
  55. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  56. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts +2 -2
  57. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -1
  58. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +22 -2
  59. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -1
  60. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  61. package/dist/esm/engine/engine-resource-specifications.registry.js +2 -0
  62. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  63. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js +3 -3
  64. package/dist/esm/engine/flows-actors/resources/flow-actor-tasks.resource.specification.js.map +1 -1
  65. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js +1 -1
  66. package/dist/esm/engine/flows-actors/resources/organization-chat-settings.resource.specification.js.map +1 -1
  67. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js +2 -2
  68. package/dist/esm/engine/infrastructure/resources/external-data-pipeline-states.resource.specification.js.map +1 -1
  69. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.d.ts +9 -0
  70. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.d.ts.map +1 -0
  71. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.js +136 -0
  72. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.js.map +1 -0
  73. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  74. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +4 -2
  75. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  76. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  77. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +6 -5
  78. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  79. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -1
  80. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +2 -1
  81. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -1
  82. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  83. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +10 -7
  84. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  85. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js +1 -1
  86. package/dist/esm/engine/organizations/resources/organization-units.resource.specification.js.map +1 -1
  87. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -0
  88. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  89. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
  90. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  91. package/dist/esm/engine/providers/_engine-provider-shared.d.ts +5 -0
  92. package/dist/esm/engine/providers/_engine-provider-shared.d.ts.map +1 -1
  93. package/dist/esm/engine/providers/_engine-provider-shared.js +5 -0
  94. package/dist/esm/engine/providers/_engine-provider-shared.js.map +1 -1
  95. package/dist/esm/engine/providers/dropbox.provider.specification.d.ts +14 -0
  96. package/dist/esm/engine/providers/dropbox.provider.specification.d.ts.map +1 -0
  97. package/dist/esm/engine/providers/dropbox.provider.specification.js +76 -0
  98. package/dist/esm/engine/providers/dropbox.provider.specification.js.map +1 -0
  99. package/dist/esm/engine/providers/index.d.ts +3 -1
  100. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  101. package/dist/esm/engine/providers/index.js +5 -2
  102. package/dist/esm/engine/providers/index.js.map +1 -1
  103. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -2
  104. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts +1 -0
  105. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.d.ts.map +1 -1
  106. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js +2 -0
  107. package/dist/esm/engine/users/resources/user-preferences-api-reference.examples.js.map +1 -1
  108. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts +1 -0
  109. package/dist/esm/engine/users/resources/user-preferences.resource.specification.d.ts.map +1 -1
  110. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts +1 -0
  111. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.d.ts.map +1 -1
  112. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js +1 -1
  113. package/dist/esm/engine/users/resources/user-self-preferences.resource.specification.js.map +1 -1
  114. package/dist/esm/engine/users/resources/users.resource.specification.js +1 -1
  115. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  116. package/dist/tsconfig.build.tsbuildinfo +1 -1
  117. package/package.json +9 -9
@@ -1 +1 @@
1
- {"version":3,"file":"integration-plan.schemas.js","sourceRoot":"","sources":["../../../../src/_core/integration-plan/integration-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AAExI;;;;;;;;;;;;;;;;;;;;;;GAsB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Q,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,qDAAqD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { InboundChannelKind } from '@wildo-ai/saas-models';\n\nimport { BuildPlanWorkerRuntime, PlannableInboundChannelKind, ProviderBindingScope } from '../build-plan/build-plan-task-graph.schemas';\n\n/**\n * @wildo_source:part:start integration-plan.config facet:layer:specification facet:family:integration-plan\n *\n * WHAT RUNS BESIDE THE BACKEND, and what the application reaches out to (#1495) — its workers, its\n * minions, the providers it binds, and the channels work arrives on (#1630).\n *\n * ## Why this family exists\n *\n * `add-minion`, `add-worker-node`, `add-worker-rust`, `add-provider` and `add-file-picker-provider`\n * all shipped as scenarios, and the decomposer was told to plan \"workers / minions and other\n * auxiliary execution surfaces\" and \"providers, external connectors, billing wiring\" — with no\n * product kind for any of them and, measured 2026-09-22, **zero worker or minion skills in the\n * catalog**. Nothing in the journey could give an application a background worker, a minion or a\n * provider binding. The skills now exist (`worker-authoring`, `minion-authoring`); this family is\n * the decision that reaches them.\n *\n * ## The one distinction that decides everything here\n *\n * A WORKER answers a call: the backend reaches it over its declared HTTP surface, so it exists\n * because something asks. A MINION wakes on its own schedule and answers to nobody, which is why it\n * carries a containment whitelist rather than a caller's authority. Planning one as the other\n * produces a package that never runs, or one that runs with nothing to contain it.\n */\nexport enum IntegrationPlanVersion {\n V1 = 'v1',\n}\n\n/**\n * The skill that authors a WORKER, total over {@link BuildPlanWorkerRuntime}.\n *\n * Both runtimes share one skill deliberately: `worker-authoring` covers the Node and the Rust\n * package, because the decision a builder makes — the routes it registers, the `wildo-jwt` surface\n * the backend calls, the provider runtime it may load — is the same in both, and only the scenario\n * that composes the package differs. Inventing a second skill for the same knowledge would be the\n * drift these maps exist to prevent.\n *\n * Total rather than hand-kept for the sibling reason: a runtime added tomorrow must name the skill\n * that builds it or fail to compile. Held to the authored catalog by a test in the\n * framework-knowledge package — this layer cannot import the skills, and a ref naming no folder is\n * a task the router cannot answer.\n */\nexport const INTEGRATION_WORKER_SKILL_REF: Readonly<Record<BuildPlanWorkerRuntime, string>> = {\n [BuildPlanWorkerRuntime.NODE]: 'worker-authoring',\n [BuildPlanWorkerRuntime.RUST]: 'worker-authoring',\n};\n\n/**\n * The skill that authors a MINION — a constant rather than a map, because a minion has no\n * vocabulary to branch on: there is one cron unit shape, and `add-minion` composes it.\n */\nexport const INTEGRATION_MINION_SKILL_REF = 'minion-authoring';\n\n/**\n * The skill that declares a PROVIDER BINDING, total over {@link ProviderBindingScope}.\n *\n * The scope decides the SIDE, and the side decides the act. A backend-side binding installs a\n * package in a runtime owner and scopes it — `provider-backend-package` names the companion in its\n * own description, so both members share it honestly. A frontend-side binding authors a provider\n * MODULE, exports it through the providers barrel, appends the companion contribution and declares\n * the scope entry; `provider-frontend-file-picker` is where that mechanism is written down, with\n * the file picker as its worked instance because it is the only frontend provider module this\n * framework ships today. A general frontend-provider skill would take those two rows; until one\n * exists, pointing at the skill that carries the mechanism beats pointing at nothing.\n */\nexport const INTEGRATION_PROVIDER_BINDING_SKILL_REF: Readonly<Record<ProviderBindingScope, string>> = {\n [ProviderBindingScope.BACKEND]: 'provider-backend-package',\n [ProviderBindingScope.COMPANION]: 'provider-backend-package',\n [ProviderBindingScope.FRONTEND_APP]: 'provider-frontend-file-picker',\n [ProviderBindingScope.WEBSITE]: 'provider-frontend-file-picker',\n};\n\n/**\n * The skill that authors an inbound CHANNEL handler — what a message arriving on the channel causes,\n * the sender assurance it requires, and whether it answers (#1630).\n */\nexport const INTEGRATION_INBOUND_CHANNEL_SKILL_REF = 'inbound-channels';\n\n/** Stable prefixes the trusted runtime stamps; a provider supplies only the slug. */\nexport const INTEGRATION_WORKER_REF_PREFIX = 'worker-';\nexport const INTEGRATION_MINION_REF_PREFIX = 'minion-';\n\nconst SlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** One worker: an HTTP-only subprocess the backend delegates to. */\nexport const IntegrationWorkerPlanSchema = z.strictObject({\n workerRef: z.string().regex(new RegExp(`^${INTEGRATION_WORKER_REF_PREFIX}[a-z0-9]+(?:-[a-z0-9]+)*$`)),\n runtime: z.enum(BuildPlanWorkerRuntime).systemEnum('BuildPlanWorkerRuntime'),\n /** What the backend delegates to it, and why that cannot happen inside a request. */\n purpose: NonEmptyStringSchema,\n /**\n * The units of work it exposes — the ROUTES its entry registers, which is what the backend calls.\n * At least one: a worker exposing nothing is a process nothing can reach.\n */\n jobRefs: z.array(SlugSchema).min(1),\n /** What this worker is accountable to — requirement, feature-draft or roadmap refs. Traceability, never scope. */\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationWorkerPlan = z.infer<typeof IntegrationWorkerPlanSchema>;\n\n/** One minion: a cron unit that wakes itself. */\nexport const IntegrationMinionPlanSchema = z.strictObject({\n minionRef: z.string().regex(new RegExp(`^${INTEGRATION_MINION_REF_PREFIX}[a-z0-9]+(?:-[a-z0-9]+)*$`)),\n /** What happens because time passed, and why it is not a request. */\n purpose: NonEmptyStringSchema,\n /** The named behaviours its tick performs. At least one: a minion that does nothing is a schedule with no work. */\n behaviorRefs: z.array(SlugSchema).min(1),\n /**\n * The resources its tick reads and writes, by their domain-plan refs.\n *\n * Planned rather than left to the coding agent because they are the CONTAINMENT decision: a\n * minion's `resourceAccess` whitelist is DENY-ALL until somebody widens it, and each named\n * resource must separately opt in with `systemAccessPolicy`. A minion planned without saying what\n * it touches is one whose whitelist an agent has to guess — and the failure is silent, because an\n * empty whitelist logs a soft warning and keeps running.\n */\n readsResourceRefs: z.array(SlugSchema).default([]),\n writesResourceRefs: z.array(SlugSchema).default([]),\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationMinionPlan = z.infer<typeof IntegrationMinionPlanSchema>;\n\n/** One provider bound into one runtime owner's scope. */\nexport const IntegrationProviderBindingPlanSchema = z.strictObject({\n /**\n * The provider's own ref: an engine provider's, or a registry provider module's (#2012). For a module that ADDS\n * operations to another provider (an augmentation, #1672), it is still the module's own ref (`microsoft-teams`), and\n * {@link augments} names the provider it adds them to.\n */\n providerRef: SlugSchema,\n scope: z.enum(ProviderBindingScope).systemEnum('ProviderBindingScope'),\n /**\n * The provider this module adds operations to, when it is an augmentation (#1672, #2025): `microsoft` for\n * `microsoft-teams`. What lands such a binding is not a scope entry (an augmentation owns no ref and writes none) but\n * the application's opt-in, `providers.augmentations.<augments>` listing the module's package, which configuration\n * sync refuses unless a scope declares `<augments>`. Absent for every other provider. Only on a backend-side scope\n * (BACKEND, COMPANION): an augmentation is backend code.\n */\n augments: SlugSchema.optional(),\n /** Why this application reaches this provider from this scope. */\n rationale: NonEmptyStringSchema,\n});\nexport type IntegrationProviderBindingPlan = z.infer<typeof IntegrationProviderBindingPlanSchema>;\n\n/**\n * One channel work ARRIVES on (#1630, #3394): the application declares that messages on this channel are\n * work it acts on, which is what makes the foundation enable the channel's engine capability\n * (`EMAIL_INBOUND` for email, `SMS` for texts) rather than ask anyone.\n *\n * `EMAIL` and `SMS` are declarable ({@link PlannableInboundChannelKind}). `WEBHOOK` is the channel every\n * signed delivery from another system arrives on, derived for those deliveries and never declared; chat joins\n * when a person's chat message can reach a channel handler.\n */\nexport const IntegrationInboundChannelPlanSchema = z.strictObject({\n channel: z.enum(PlannableInboundChannelKind).systemEnum('InboundChannelKind'),\n /** What arrives on it, and what the application does with it — \"clients send case documents to their matter\", \"patients text to move an appointment\". */\n purpose: NonEmptyStringSchema,\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationInboundChannelPlan = z.infer<typeof IntegrationInboundChannelPlanSchema>;\n\n/**\n * THE integration-plan payload.\n *\n * **Artifact-family id: `integration-plan`.** Produced by `bottom_up.integration-plan`, consumed by\n * `bottom_up.build-decompose`, which emits one task per worker, minion, provider binding and inbound channel.\n *\n * Every collection may be EMPTY and the whole plan is still meaningful: most applications need no\n * worker and no minion, and saying so is an answer. There is no `min(1)` anywhere here, and that is\n * the difference between this family and the website or documentation plans — those carry a\n * disposition because a website either exists or does not, while \"no worker, one minion, no extra\n * provider\" is an ordinary shape rather than a declined capability.\n */\nexport const IntegrationPlanSchema = z.object({\n version: z.enum(IntegrationPlanVersion).default(IntegrationPlanVersion.V1),\n /** Why this application runs what it runs beside the backend — including \"nothing\", said once. */\n rationale: NonEmptyStringSchema,\n workers: z.array(IntegrationWorkerPlanSchema).default([]),\n minions: z.array(IntegrationMinionPlanSchema).default([]),\n providerBindings: z.array(IntegrationProviderBindingPlanSchema).default([]),\n /** Channels work arrives on. Empty for an application no message ever reaches, which is most of them. */\n inboundChannels: z.array(IntegrationInboundChannelPlanSchema).default([]),\n}).superRefine((plan, context) => {\n const workerRefs = new Set<string>();\n plan.workers.forEach((worker, index) => {\n if (workerRefs.has(worker.workerRef)) {\n context.addIssue({ code: 'custom', message: `duplicate worker ref ${worker.workerRef}`, path: ['workers', index, 'workerRef'] });\n }\n workerRefs.add(worker.workerRef);\n });\n const minionRefs = new Set<string>();\n plan.minions.forEach((minion, index) => {\n if (minionRefs.has(minion.minionRef)) {\n context.addIssue({ code: 'custom', message: `duplicate minion ref ${minion.minionRef}`, path: ['minions', index, 'minionRef'] });\n }\n minionRefs.add(minion.minionRef);\n });\n /*\n * One provider bound TWICE on one scope is one declaration written twice — the config carries a\n * single entry per ref per scope, so the second is either a duplicate or a disagreement, and\n * neither can be applied. The same provider on two DIFFERENT scopes is legitimate and common.\n */\n const bindings = new Set<string>();\n plan.providerBindings.forEach((binding, index) => {\n if (binding.augments !== undefined) {\n if (binding.augments === binding.providerRef) {\n context.addIssue({ code: 'custom', message: `provider ${binding.providerRef} cannot augment itself`, path: ['providerBindings', index, 'augments'] });\n }\n if (binding.scope !== ProviderBindingScope.BACKEND && binding.scope !== ProviderBindingScope.COMPANION) {\n context.addIssue({ code: 'custom', message: `an augmentation is backend code, so ${binding.providerRef} is bound on BACKEND or COMPANION, not ${binding.scope}`, path: ['providerBindings', index, 'scope'] });\n }\n }\n const identity = `${binding.scope}:${binding.providerRef}`;\n if (bindings.has(identity)) {\n context.addIssue({ code: 'custom', message: `provider ${binding.providerRef} is bound twice on the ${binding.scope} scope`, path: ['providerBindings', index, 'providerRef'] });\n }\n bindings.add(identity);\n });\n const channels = new Set<InboundChannelKind>();\n plan.inboundChannels.forEach((declared, index) => {\n if (channels.has(declared.channel)) {\n context.addIssue({ code: 'custom', message: `the ${declared.channel} channel is declared twice; one declaration says what arrives on it`, path: ['inboundChannels', index, 'channel'] });\n }\n channels.add(declared.channel);\n });\n});\nexport type IntegrationPlan = z.infer<typeof IntegrationPlanSchema>;\n/** @wildo_source:part:end integration-plan.config */\n"]}
1
+ {"version":3,"file":"integration-plan.schemas.js","sourceRoot":"","sources":["../../../../src/_core/integration-plan/integration-plan.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAIlC,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;AACxI,OAAO,EACL,6BAA6B,EAC7B,6BAA6B,EAC7B,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,8CAA8C,CAAC;AAEtD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAM,CAAN,IAAY,sBAEX;AAFD,WAAY,sBAAsB;IAChC,mCAAS,CAAA;AACX,CAAC,EAFW,sBAAsB,KAAtB,sBAAsB,QAEjC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,4BAA4B,GAAqD;IAC5F,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAAE,kBAAkB;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AAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,qDAAqD","sourcesContent":["import { z } from 'zod';\n// Side-effect import: this module calls `.systemEnum()` at load, so the decorators must be installed first —\n// never by the importer's luck (#966). A named import used only as a type would be elided and install nothing.\nimport '@wildo-ai/zod-decorators';\n\nimport { InboundChannelKind } from '@wildo-ai/saas-models';\n\nimport { BuildPlanWorkerRuntime, PlannableInboundChannelKind, ProviderBindingScope } from '../build-plan/build-plan-task-graph.schemas';\nimport {\n INTEGRATION_MINION_REF_PREFIX,\n INTEGRATION_WORKER_REF_PREFIX,\n IntegrationMinionRefSchema,\n IntegrationWorkerRefSchema,\n} from './integration-execution-surface-refs.schemas';\n\n/**\n * @wildo_source:part:start integration-plan.config facet:layer:specification facet:family:integration-plan\n *\n * WHAT RUNS BESIDE THE BACKEND, and what the application reaches out to (#1495) — its workers, its\n * minions, the providers it binds, the channels work arrives on (#1630), and the needs no existing\n * provider fills, each with why (#3992): the only door to authoring a new provider.\n *\n * ## Why this family exists\n *\n * `add-minion`, `add-worker-node`, `add-worker-rust`, `add-provider` and `add-file-picker-provider`\n * all shipped as scenarios, and the decomposer was told to plan \"workers / minions and other\n * auxiliary execution surfaces\" and \"providers, external connectors, billing wiring\" — with no\n * product kind for any of them and, measured 2026-09-22, **zero worker or minion skills in the\n * catalog**. Nothing in the journey could give an application a background worker, a minion or a\n * provider binding. The skills now exist (`worker-authoring`, `minion-authoring`); this family is\n * the decision that reaches them.\n *\n * ## The one distinction that decides everything here\n *\n * A WORKER answers a call: the backend reaches it over its declared HTTP surface, so it exists\n * because something asks. A MINION wakes on its own schedule and answers to nobody, which is why it\n * carries a containment whitelist rather than a caller's authority. Planning one as the other\n * produces a package that never runs, or one that runs with nothing to contain it.\n */\nexport enum IntegrationPlanVersion {\n V1 = 'v1',\n}\n\n/**\n * The skill that authors a WORKER, total over {@link BuildPlanWorkerRuntime}.\n *\n * Both runtimes share one skill deliberately: `worker-authoring` covers the Node and the Rust\n * package, because the decision a builder makes — the routes it registers, the `wildo-jwt` surface\n * the backend calls, the provider runtime it may load — is the same in both, and only the scenario\n * that composes the package differs. Inventing a second skill for the same knowledge would be the\n * drift these maps exist to prevent.\n *\n * Total rather than hand-kept for the sibling reason: a runtime added tomorrow must name the skill\n * that builds it or fail to compile. Held to the authored catalog by a test in the\n * framework-knowledge package — this layer cannot import the skills, and a ref naming no folder is\n * a task the router cannot answer.\n */\nexport const INTEGRATION_WORKER_SKILL_REF: Readonly<Record<BuildPlanWorkerRuntime, string>> = {\n [BuildPlanWorkerRuntime.NODE]: 'worker-authoring',\n [BuildPlanWorkerRuntime.RUST]: 'worker-authoring',\n};\n\n/**\n * The skill that authors a MINION — a constant rather than a map, because a minion has no\n * vocabulary to branch on: there is one cron unit shape, and `add-minion` composes it.\n */\nexport const INTEGRATION_MINION_SKILL_REF = 'minion-authoring';\n\n/**\n * The skill that declares a PROVIDER BINDING, total over {@link ProviderBindingScope}.\n *\n * The scope decides the SIDE, and the side decides the act. A backend-side binding installs a\n * package in a runtime owner and scopes it — `provider-backend-package` names the companion in its\n * own description, so both members share it honestly. A frontend-side binding authors a provider\n * MODULE, exports it through the providers barrel, appends the companion contribution and declares\n * the scope entry; `provider-frontend-file-picker` is where that mechanism is written down, with\n * the file picker as its worked instance because it is the only frontend provider module this\n * framework ships today. A general frontend-provider skill would take those two rows; until one\n * exists, pointing at the skill that carries the mechanism beats pointing at nothing.\n */\nexport const INTEGRATION_PROVIDER_BINDING_SKILL_REF: Readonly<Record<ProviderBindingScope, string>> = {\n [ProviderBindingScope.BACKEND]: 'provider-backend-package',\n [ProviderBindingScope.COMPANION]: 'provider-backend-package',\n [ProviderBindingScope.FRONTEND_APP]: 'provider-frontend-file-picker',\n [ProviderBindingScope.WEBSITE]: 'provider-frontend-file-picker',\n};\n\n/**\n * The skill that authors an inbound CHANNEL handler — what a message arriving on the channel causes,\n * the sender assurance it requires, and whether it answers (#1630).\n */\nexport const INTEGRATION_INBOUND_CHANNEL_SKILL_REF = 'inbound-channels';\n\nconst SlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/** One worker: an HTTP-only subprocess the backend delegates to. */\nexport const IntegrationWorkerPlanSchema = z.strictObject({\n workerRef: IntegrationWorkerRefSchema,\n runtime: z.enum(BuildPlanWorkerRuntime).systemEnum('BuildPlanWorkerRuntime'),\n /** What the backend delegates to it, and why that cannot happen inside a request. */\n purpose: NonEmptyStringSchema,\n /**\n * The units of work it exposes — the ROUTES its entry registers, which is what the backend calls.\n * At least one: a worker exposing nothing is a process nothing can reach.\n */\n jobRefs: z.array(SlugSchema).min(1),\n /** What this worker is accountable to — requirement, feature-draft or roadmap refs. Traceability, never scope. */\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationWorkerPlan = z.infer<typeof IntegrationWorkerPlanSchema>;\n\n/** One minion: a cron unit that wakes itself. */\nexport const IntegrationMinionPlanSchema = z.strictObject({\n minionRef: IntegrationMinionRefSchema,\n /** What happens because time passed, and why it is not a request. */\n purpose: NonEmptyStringSchema,\n /** The named behaviours its tick performs. At least one: a minion that does nothing is a schedule with no work. */\n behaviorRefs: z.array(SlugSchema).min(1),\n /**\n * The resources its tick reads and writes, by their domain-plan refs.\n *\n * Planned rather than left to the coding agent because they are the CONTAINMENT decision: a\n * minion's `resourceAccess` whitelist is DENY-ALL until somebody widens it, and each named\n * resource must separately opt in with `systemAccessPolicy`. A minion planned without saying what\n * it touches is one whose whitelist an agent has to guess — and the failure is silent, because an\n * empty whitelist logs a soft warning and keeps running.\n */\n readsResourceRefs: z.array(SlugSchema).default([]),\n writesResourceRefs: z.array(SlugSchema).default([]),\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationMinionPlan = z.infer<typeof IntegrationMinionPlanSchema>;\n\n/** One provider bound into one runtime owner's scope. */\nexport const IntegrationProviderBindingPlanSchema = z.strictObject({\n /**\n * The provider's own ref: an engine provider's, or a registry provider module's (#2012). For a module that ADDS\n * operations to another provider (an augmentation, #1672), it is still the module's own ref (`microsoft-teams`), and\n * {@link augments} names the provider it adds them to.\n */\n providerRef: SlugSchema,\n scope: z.enum(ProviderBindingScope).systemEnum('ProviderBindingScope'),\n /**\n * The provider this module adds operations to, when it is an augmentation (#1672, #2025): `microsoft` for\n * `microsoft-teams`. What lands such a binding is not a scope entry (an augmentation owns no ref and writes none) but\n * the application's opt-in, `providers.augmentations.<augments>` listing the module's package, which configuration\n * sync refuses unless a scope declares `<augments>`. Absent for every other provider. Only on a backend-side scope\n * (BACKEND, COMPANION): an augmentation is backend code.\n */\n augments: SlugSchema.optional(),\n /** Why this application reaches this provider from this scope. */\n rationale: NonEmptyStringSchema,\n});\nexport type IntegrationProviderBindingPlan = z.infer<typeof IntegrationProviderBindingPlanSchema>;\n\n/**\n * The ref of a planned WORKER or MINION (`worker-<slug>`, `minion-<slug>`): the surface that wires an unprovided need for\n * itself (#3995 item 6). The prefix says which collection it names, so a worker and a minion sharing a slug stay distinct.\n */\nconst IntegrationExecutionSurfaceRefSchema = z.string().regex(\n new RegExp(`^(?:${INTEGRATION_WORKER_REF_PREFIX}|${INTEGRATION_MINION_REF_PREFIX})[a-z0-9]+(?:-[a-z0-9]+)*$`),\n);\n\n/**\n * A need NO provider the framework already has fills (#3992), recorded so that a provider is authored only for a reason\n * someone wrote down. App creation USES the engine's providers and the registry's modules; authoring a new one is the last\n * resort (Paul, 2026-11-16), and only an entry here may become a build task that authors a provider package. A binding may\n * name a provider that does not exist yet only when an entry here names it.\n *\n * ## Who wires it: a provider binding, or the worker or minion named by `wiredByRef` (#3995 item 6)\n *\n * A need reaches the build in one of two ways. Either a {@link IntegrationProviderBindingPlanSchema binding} names its\n * `providerRef` on the runtime owner that needs it (backend, companion, application frontend, website), and that binding's\n * task authors the provider; or {@link wiredByRef} names the planned worker or minion that alone uses it, and THAT\n * surface's task authors the provider and declares it in the surface's own scope\n * (`providers.scopes.workers.<key>` / `providers.scopes.minions.<key>`, which the worker and minion tasks already write).\n *\n * Decided by what the framework already does: a worker's or minion's provider is declared on that surface's own\n * `providers` block and belongs to the task that builds it (see {@link ProviderBindingScope}), so the plan names the\n * surface rather than inventing a scope for it. Rejected: adding `WORKER` and `MINION` members to `ProviderBindingScope`.\n * The scope is a closed set of SINGLE owners, each with one declaration file a landing probe reads and one skill; a\n * worker or minion scope is keyed per surface (`scopes.workers.<key>`), so a bare `WORKER` member would name no file and\n * no surface, and carrying the key would turn every binding into a second worker-or-minion reference beside the one\n * this field already is. It would also give a minion's provider a task of its own, apart from the minion that holds its\n * whitelist and its schedule, which the scope's own contract forbids.\n */\nexport const IntegrationUnprovidedNeedSchema = z.strictObject({\n /**\n * The ref the provider to author will have: what the binding that wires it names as its `providerRef`. The entry's\n * business key, on its OWN schema instance: the workbench takes an entry's own key out of its reading, and a key sharing\n * an instance with another aspect's headline (a binding is headed by its `providerRef`) would either stay printed or\n * blank that headline.\n */\n providerRef: z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),\n /** What the application needs from outside, in its own words — \"send invoices through the client's Fortnox ledger\". */\n need: NonEmptyStringSchema,\n /**\n * Why no engine provider and no registry module fills it: a vendor none of them offers, a behaviour they lack, or a\n * business obligation that names a vendor. Checked against the lists the planner was shown; \"it seemed simpler\" is not one.\n */\n whyNoExistingProvider: NonEmptyStringSchema,\n /**\n * The planned worker or minion that wires this provider for itself (`worker-<slug>`, `minion-<slug>`), when no other\n * runtime owner uses it. Its build task then authors the provider and declares it in that surface's own scope. Absent\n * when a provider binding wires it; both may be present when the surface and a runtime owner both use it.\n */\n wiredByRef: IntegrationExecutionSurfaceRefSchema.optional(),\n /** The requirements it is accountable to. */\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationUnprovidedNeed = z.infer<typeof IntegrationUnprovidedNeedSchema>;\n\n/**\n * One channel work ARRIVES on (#1630, #3394): the application declares that messages on this channel are\n * work it acts on, which is what makes the foundation enable the channel's engine capability\n * (`EMAIL_INBOUND` for email, `SMS` for texts) rather than ask anyone.\n *\n * `EMAIL` and `SMS` are declarable ({@link PlannableInboundChannelKind}). `WEBHOOK` is the channel every\n * signed delivery from another system arrives on, derived for those deliveries and never declared; chat joins\n * when a person's chat message can reach a channel handler.\n */\nexport const IntegrationInboundChannelPlanSchema = z.strictObject({\n channel: z.enum(PlannableInboundChannelKind).systemEnum('InboundChannelKind'),\n /** What arrives on it, and what the application does with it — \"clients send case documents to their matter\", \"patients text to move an appointment\". */\n purpose: NonEmptyStringSchema,\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n});\nexport type IntegrationInboundChannelPlan = z.infer<typeof IntegrationInboundChannelPlanSchema>;\n\n/**\n * THE integration-plan payload.\n *\n * **Artifact-family id: `integration-plan`.** Produced by `bottom_up.integration-plan`, consumed by\n * `bottom_up.build-decompose`, which emits one task per worker, minion, provider binding and inbound channel. A binding\n * whose provider is an {@link IntegrationUnprovidedNeedSchema unprovided need}, or the worker or minion such a need names\n * as `wiredByRef`, is the one task that AUTHORS the provider; every other binding wires a provider that exists.\n *\n * Every collection may be EMPTY and the whole plan is still meaningful: most applications need no\n * worker and no minion, and saying so is an answer. There is no `min(1)` anywhere here, and that is\n * the difference between this family and the website or documentation plans — those carry a\n * disposition because a website either exists or does not, while \"no worker, one minion, no extra\n * provider\" is an ordinary shape rather than a declined capability.\n */\nexport const IntegrationPlanSchema = z.object({\n version: z.enum(IntegrationPlanVersion).default(IntegrationPlanVersion.V1),\n /** Why this application runs what it runs beside the backend — including \"nothing\", said once. */\n rationale: NonEmptyStringSchema,\n workers: z.array(IntegrationWorkerPlanSchema).default([]),\n minions: z.array(IntegrationMinionPlanSchema).default([]),\n providerBindings: z.array(IntegrationProviderBindingPlanSchema).default([]),\n /** Channels work arrives on. Empty for an application no message ever reaches, which is most of them. */\n inboundChannels: z.array(IntegrationInboundChannelPlanSchema).default([]),\n /** Needs no existing provider fills, each with why (#3992). Empty for nearly every application, and that is the point. */\n unprovidedNeeds: z.array(IntegrationUnprovidedNeedSchema).default([]),\n}).superRefine((plan, context) => {\n const unprovided = new Set<string>();\n plan.unprovidedNeeds.forEach((need, index) => {\n if (unprovided.has(need.providerRef)) {\n context.addIssue({ code: 'custom', message: `the unprovided need ${need.providerRef} is recorded twice; one entry says why it is authored`, path: ['unprovidedNeeds', index, 'providerRef'] });\n }\n unprovided.add(need.providerRef);\n });\n const workerRefs = new Set<string>();\n plan.workers.forEach((worker, index) => {\n if (workerRefs.has(worker.workerRef)) {\n context.addIssue({ code: 'custom', message: `duplicate worker ref ${worker.workerRef}`, path: ['workers', index, 'workerRef'] });\n }\n workerRefs.add(worker.workerRef);\n });\n const minionRefs = new Set<string>();\n plan.minions.forEach((minion, index) => {\n if (minionRefs.has(minion.minionRef)) {\n context.addIssue({ code: 'custom', message: `duplicate minion ref ${minion.minionRef}`, path: ['minions', index, 'minionRef'] });\n }\n minionRefs.add(minion.minionRef);\n });\n // A need wired by a surface the plan does not run would be authored for nothing (#3995 item 6).\n plan.unprovidedNeeds.forEach((need, index) => {\n if (need.wiredByRef === undefined || workerRefs.has(need.wiredByRef) || minionRefs.has(need.wiredByRef)) return;\n context.addIssue({ code: 'custom', message: `the unprovided need ${need.providerRef} is wired by ${need.wiredByRef}, which this plan neither runs as a worker nor as a minion`, path: ['unprovidedNeeds', index, 'wiredByRef'] });\n });\n /*\n * One provider bound TWICE on one scope is one declaration written twice — the config carries a\n * single entry per ref per scope, so the second is either a duplicate or a disagreement, and\n * neither can be applied. The same provider on two DIFFERENT scopes is legitimate and common.\n */\n const bindings = new Set<string>();\n plan.providerBindings.forEach((binding, index) => {\n if (binding.augments !== undefined) {\n if (binding.augments === binding.providerRef) {\n context.addIssue({ code: 'custom', message: `provider ${binding.providerRef} cannot augment itself`, path: ['providerBindings', index, 'augments'] });\n }\n if (binding.scope !== ProviderBindingScope.BACKEND && binding.scope !== ProviderBindingScope.COMPANION) {\n context.addIssue({ code: 'custom', message: `an augmentation is backend code, so ${binding.providerRef} is bound on BACKEND or COMPANION, not ${binding.scope}`, path: ['providerBindings', index, 'scope'] });\n }\n }\n const identity = `${binding.scope}:${binding.providerRef}`;\n if (bindings.has(identity)) {\n context.addIssue({ code: 'custom', message: `provider ${binding.providerRef} is bound twice on the ${binding.scope} scope`, path: ['providerBindings', index, 'providerRef'] });\n }\n bindings.add(identity);\n });\n const channels = new Set<InboundChannelKind>();\n plan.inboundChannels.forEach((declared, index) => {\n if (channels.has(declared.channel)) {\n context.addIssue({ code: 'custom', message: `the ${declared.channel} channel is declared twice; one declaration says what arrives on it`, path: ['inboundChannels', index, 'channel'] });\n }\n channels.add(declared.channel);\n });\n});\nexport type IntegrationPlan = z.infer<typeof IntegrationPlanSchema>;\n/** @wildo_source:part:end integration-plan.config */\n"]}
@@ -23,6 +23,21 @@ import type { ProviderComplianceProfile } from '@wildo-ai/saas-models';
23
23
  import type { CodeSymbolRef } from '@wildo-ai/zod-decorators';
24
24
  import { ProviderTier, type EngineCapability, type ProviderOrigin } from '@wildo-ai/saas-models';
25
25
  import type { DefinitionSpecificationBaseConfig, DefinitionSpecificationCodeHandling } from './definition-specification.schemas';
26
+ /**
27
+ * The facets a provider ships a module for: which runtime owner can load it. One named source for the strings a
28
+ * specification's `facets` holds, read by the integration plan's scope check (#3995) and refused here when a
29
+ * specification names anything else.
30
+ */
31
+ export declare enum ProviderSpecificationFacet {
32
+ /** A backend provider module: loaded by the backend, the companion, a worker or a minion. */
33
+ BACKEND = "backend",
34
+ /** A browser module of the application frontend (`@wildo-ai/external-connectors-public/app`). */
35
+ FRONTEND_APP = "frontend-app",
36
+ /** A browser module of the marketing website (`…/website`). */
37
+ FRONTEND_WEBSITE = "frontend-website",
38
+ /** A browser module of the documentation site (`…/techdoc`). */
39
+ FRONTEND_TECHDOC = "frontend-techdoc"
40
+ }
26
41
  /** One secret the operator supplies, mirrored from the module's `secretsContract`. */
27
42
  export interface ProviderSpecificationSecret {
28
43
  /** The contract slug (`apiKey`, `webhookSecret`, …). */
@@ -43,7 +58,7 @@ export interface ProviderSpecificationConfig extends DefinitionSpecificationBase
43
58
  vendor: string;
44
59
  /** Where the provider's code comes from, with catalogue provenance when generated. */
45
60
  origin: ProviderOrigin;
46
- /** Facets the provider ships a module for (`backend`, `frontend-app`, `frontend-website`, `frontend-techdoc`). */
61
+ /** Facets the provider ships a module for: {@link ProviderSpecificationFacet} members, refused otherwise. */
47
62
  facets: string[];
48
63
  /** Authoring keys of the protocols the backend module binds (`BUILTIN_PROVIDER_PROTOCOL` members). */
49
64
  protocols: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"provider-specification.schemas.d.ts","sourceRoot":"","sources":["../../../src/_core/provider-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAEL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,iCAAiC,EACjC,mCAAmC,EACpC,MAAM,oCAAoC,CAAC;AAS5C,sFAAsF;AACtF,MAAM,WAAW,2BAA2B;IAC1C,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA4B,SAAQ,iCAAiC;IACpF,gFAAgF;IAChF,WAAW,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,IAAI,EAAE,YAAY,CAAC;IACnB,iEAAiE;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,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8BAA8B,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAa/E;AAED,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,2BAA2B,GAAG,SAAS,CAExG;AAED,wBAAgB,mCAAmC,IAAI,OAAO,CAE7D;AAED,wBAAgB,oCAAoC,IAAI,2BAA2B,EAAE,CAEpF;AAED,sBAAsB;AACtB,wBAAgB,qCAAqC,IAAI,IAAI,CAE5D"}
1
+ {"version":3,"file":"provider-specification.schemas.d.ts","sourceRoot":"","sources":["../../../src/_core/provider-specification.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAC5F,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,uBAAuB,CAAC;AACvE;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EAEL,YAAY,EACZ,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACpB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EACV,iCAAiC,EACjC,mCAAmC,EACpC,MAAM,oCAAoC,CAAC;AAS5C;;;;GAIG;AACH,oBAAY,0BAA0B;IACpC,6FAA6F;IAC7F,OAAO,YAAY;IACnB,iGAAiG;IACjG,YAAY,iBAAiB;IAC7B,+DAA+D;IAC/D,gBAAgB,qBAAqB;IACrC,gEAAgE;IAChE,gBAAgB,qBAAqB;CACtC;AAID,sFAAsF;AACtF,MAAM,WAAW,2BAA2B;IAC1C,wDAAwD;IACxD,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,UAAU,EAAE,MAAM,CAAC;IACnB,oDAAoD;IACpD,QAAQ,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,2BAA4B,SAAQ,iCAAiC;IACpF,gFAAgF;IAChF,WAAW,EAAE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B,CAO7B;AAID,wBAAgB,6BAA6B,CAC3C,GAAG,cAAc,EAAE,2BAA2B,EAAE,GAC/C,qBAAqB,CAUvB;AAMD,wBAAgB,8BAA8B,CAAC,GAAG,EAAE,qBAAqB,GAAG,IAAI,CAa/E;AAED,wBAAgB,2BAA2B,CAAC,WAAW,EAAE,MAAM,GAAG,2BAA2B,GAAG,SAAS,CAExG;AAED,wBAAgB,mCAAmC,IAAI,OAAO,CAE7D;AAED,wBAAgB,oCAAoC,IAAI,2BAA2B,EAAE,CAEpF;AAED,sBAAsB;AACtB,wBAAgB,qCAAqC,IAAI,IAAI,CAE5D"}
@@ -1,5 +1,22 @@
1
1
  import { ProviderOriginKind, ProviderTier, } from '@wildo-ai/saas-models';
2
2
  import { assertDefinitionSpecificationBaseConfig, assertNonEmptyTrimmedString, assertOptionalCodeSymbolRef, assertOptionalDefinitionSpecificationCodeHandling, assertOptionalNonEmptyProseSlot, } from './definition-specification-validators.js';
3
+ /**
4
+ * The facets a provider ships a module for: which runtime owner can load it. One named source for the strings a
5
+ * specification's `facets` holds, read by the integration plan's scope check (#3995) and refused here when a
6
+ * specification names anything else.
7
+ */
8
+ export var ProviderSpecificationFacet;
9
+ (function (ProviderSpecificationFacet) {
10
+ /** A backend provider module: loaded by the backend, the companion, a worker or a minion. */
11
+ ProviderSpecificationFacet["BACKEND"] = "backend";
12
+ /** A browser module of the application frontend (`@wildo-ai/external-connectors-public/app`). */
13
+ ProviderSpecificationFacet["FRONTEND_APP"] = "frontend-app";
14
+ /** A browser module of the marketing website (`…/website`). */
15
+ ProviderSpecificationFacet["FRONTEND_WEBSITE"] = "frontend-website";
16
+ /** A browser module of the documentation site (`…/techdoc`). */
17
+ ProviderSpecificationFacet["FRONTEND_TECHDOC"] = "frontend-techdoc";
18
+ })(ProviderSpecificationFacet || (ProviderSpecificationFacet = {}));
19
+ const PROVIDER_SPECIFICATION_FACETS = new Set(Object.values(ProviderSpecificationFacet));
3
20
  // ── Keys ───────────────────────────────────────────────────────────────────
4
21
  export const PROVIDER_SPECIFICATION_KEY_PREFIX = 'providers';
5
22
  export function providerSpecificationKeyFor(providerRef) {
@@ -44,6 +61,10 @@ export function validateProviderSpecification(specificationKey, specification) {
44
61
  if (specification.facets.length === 0) {
45
62
  throw new Error(`${errorPrefix} "facets" must name at least one facet the provider ships a module for.`);
46
63
  }
64
+ const unknownFacets = specification.facets.filter((facet) => !PROVIDER_SPECIFICATION_FACETS.has(facet));
65
+ if (unknownFacets.length > 0) {
66
+ throw new Error(`${errorPrefix} "facets" names [${unknownFacets.join(', ')}], which are no ProviderSpecificationFacet members.`);
67
+ }
47
68
  assertNonEmptyStringList(errorPrefix, 'protocols', specification.protocols);
48
69
  assertNonEmptyStringList(errorPrefix, 'providerCapabilities', specification.providerCapabilities);
49
70
  assertNonEmptyStringList(errorPrefix, 'engineCapabilities', specification.engineCapabilities);
@@ -1 +1 @@
1
- {"version":3,"file":"provider-specification.schemas.js","sourceRoot":"","sources":["../../../src/_core/provider-specification.schemas.ts"],"names":[],"mappings":"AAwBA,OAAO,EACL,kBAAkB,EAClB,YAAY,GAGb,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,uCAAuC,EACvC,2BAA2B,EAC3B,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,GAChC,MAAM,uCAAuC,CAAC;AAuE/C,8EAA8E;AAE9E,MAAM,CAAC,MAAM,iCAAiC,GAAG,WAAW,CAAC;AAE7D,MAAM,UAAU,2BAA2B,CAAC,WAAmB;IAC7D,OAAO,GAAG,iCAAiC,IAAI,WAAW,EAAE,CAAC;AAC/D,CAAC;AAED,8EAA8E;AAE9E,SAAS,wBAAwB,CAAC,WAAmB,EAAE,IAAY,EAAE,KAAc;IACjF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC1B,MAAM,IAAI,KAAK,CAAC,GAAG,WAAW,KAAK,IAAI,qBAAqB,CAAC,CAAC;IAChE,CAAC;IACD,KAAK,C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C,qFAAqF,CAAC,CAAC;QACzG,CAAC;QACD,MAAM,QAAQ,GAAG,gCAAgC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC3D,IAAI,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,CAAC;YAC3E,MAAM,IAAI,KAAK,CACb,6DAA6D,GAAG,+CAA+C,CAChH,CAAC;QACJ,CAAC;QACD,gCAAgC,CAAC,GAAG,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,WAAmB;IAC7D,OAAO,gCAAgC,CAAC,GAAG,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,UAAU,mCAAmC;IACjD,OAAO,gCAAgC,CAAC,IAAI,GAAG,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,oCAAoC;IAClD,OAAO,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC/D,CAAC;AAED,sBAAsB;AACtB,MAAM,UAAU,qCAAqC;IACnD,gCAAgC,CAAC,KAAK,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["import type { ProviderAuthenticationAssurance } from '@wildo-ai/external-connectors-models';\nimport type { ProviderComplianceProfile } from '@wildo-ai/saas-models';\n/**\n * Provider specification family (#328).\n *\n * The semantic overlay for an external PROVIDER — the business meaning of a\n * `BackendProviderModule` / frontend provider module: why it exists, which\n * tier it holds, which vendor groups it, where it came from, what it binds,\n * and which secrets an operator must supply. Until this family existed the\n * engine shipped 15 specification families and none for providers, so a\n * generated provider would have shipped zero specification coverage while\n * `framework-specification-maintenance.md` was vacuously satisfied.\n *\n * Shape follows the feature family: a config extending\n * {@link DefinitionSpecificationBaseConfig}, a factory that validates at\n * module load, a map builder that fails closed on duplicates, and a\n * module-level registry consumers can look refs up in.\n *\n * Deliberately NO digest of the operation catalogue (`one-source-of-truth.md`\n * Rule 0 — nothing that is not branchable on git): the catalogue is named by\n * the symbol that declares it, and git carries which bytes that symbol had.\n */\n\nimport type { CodeSymbolRef } from '@wildo-ai/zod-decorators';\nimport {\n ProviderOriginKind,\n ProviderTier,\n type EngineCapability,\n type ProviderOrigin,\n} from '@wildo-ai/saas-models';\n\nimport type {\n DefinitionSpecificationBaseConfig,\n DefinitionSpecificationCodeHandling,\n} from './definition-specification.schemas';\nimport {\n assertDefinitionSpecificationBaseConfig,\n assertNonEmptyTrimmedString,\n assertOptionalCodeSymbolRef,\n assertOptionalDefinitionSpecificationCodeHandling,\n assertOptionalNonEmptyProseSlot,\n} from './definition-specification-validators';\n\n/** One secret the operator supplies, mirrored from the module's `secretsContract`. */\nexport interface ProviderSpecificationSecret {\n /** The contract slug (`apiKey`, `webhookSecret`, …). */\n slug: string;\n /** The environment variable the secret is delivered as. */\n envVarName: string;\n /** Whether the provider cannot start without it. */\n required: boolean;\n /** What the secret is, for the operator who has to obtain it. */\n description: string;\n}\n\nexport interface ProviderSpecificationConfig extends DefinitionSpecificationBaseConfig {\n /** npm package that ships the provider — one package, several facet barrels. */\n packageName: string;\n /** The recorded tier decision; must agree with the module metadata. */\n tier: ProviderTier;\n /** Vendor grouping; equals `ref` for a single-package vendor. */\n vendor: string;\n /** Where the provider's code comes from, with catalogue provenance when generated. */\n origin: ProviderOrigin;\n /** Facets the provider ships a module for (`backend`, `frontend-app`, `frontend-website`, `frontend-techdoc`). */\n facets: string[];\n /** Authoring keys of the protocols the backend module binds (`BUILTIN_PROVIDER_PROTOCOL` members). */\n protocols: string[];\n /** `ProviderCapability` tokens the module claims. */\n providerCapabilities: string[];\n /** Engine slots those tokens bind through `PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY`. */\n engineCapabilities: EngineCapability[];\n /** The module's secrets contract, sorted by slug. Empty for a provider that needs none. */\n secretsContract: ProviderSpecificationSecret[];\n /**\n * WHO runs this provider and WHERE it processes — restated from the module, and REQUIRED.\n *\n * The module already declares it, so this is the same kind of mirrored fact as `protocols` or\n * `secretsContract` and is reconciled the same way. What it adds is REACHABILITY: the compliance\n * lane that renders an application's processor register reads specifications, not backend provider\n * modules, so before this the framework could not compare an operator's declared processing region\n * against what the vendor actually offers. `appAssertedProcessingRegions` has existed for exactly\n * that comparison and had no caller, because the data it needs did not reach the caller's side.\n *\n * Required rather than optional, deliberately: every provider module declares one, and an optional\n * field here would let a specification omit a fact the module owns — reintroducing, one layer up,\n * the silent omission that making `complianceProfile` mandatory for coding providers closed.\n */\n complianceProfile: ProviderComplianceProfile;\n /** Provider login-assurance contract; independent of geographic/legal deployment facts. */\n authenticationAssurance?: ProviderAuthenticationAssurance;\n /**\n * The symbol declaring the provider's OPERATION CATALOGUE, when it has one\n * (the `rest` arm's derived catalogue, S3a). Absent for a provider that\n * exposes engine capabilities only.\n */\n operationCatalogueSymbol?: CodeSymbolRef;\n /** What an operator must obtain or configure before the provider serves. */\n operatorPrerequisites?: string[];\n /** Where the provider is declared in code — owner, the module symbol, supporting symbols. */\n codeHandling?: DefinitionSpecificationCodeHandling;\n}\n\nexport type ProviderSpecification = Record<string, ProviderSpecificationConfig>;\n\nexport type ProviderSpecificationDraft = Omit<ProviderSpecificationConfig, 'ref'>;\n\nexport interface ProviderDefinitionRef {\n /** The provider `ref` — the metadata join key. */\n ref: string;\n}\n\n// ── Keys ───────────────────────────────────────────────────────────────────\n\nexport const PROVIDER_SPECIFICATION_KEY_PREFIX = 'providers';\n\nexport function providerSpecificationKeyFor(providerRef: string): string {\n return `${PROVIDER_SPECIFICATION_KEY_PREFIX}/${providerRef}`;\n}\n\n// ── Validation ─────────────────────────────────────────────────────────────\n\nfunction assertNonEmptyStringList(errorPrefix: string, slot: string, value: unknown): asserts value is string[] {\n if (!Array.isArray(value)) {\n throw new Error(`${errorPrefix} \"${slot}\" must be an array.`);\n }\n value.forEach((entry, index) => {\n assertNonEmptyTrimmedString(errorPrefix, `${slot}[${index}]`, entry);\n });\n}\n\nexport function validateProviderSpecification(\n specificationKey: string,\n specification: ProviderSpecificationConfig,\n): void {\n const errorPrefix = `provider specification \"${specificationKey}\":`;\n\n assertDefinitionSpecificationBaseConfig(errorPrefix, specification);\n assertNonEmptyTrimmedString(errorPrefix, 'packageName', specification.packageName);\n assertNonEmptyTrimmedString(errorPrefix, 'vendor', specification.vendor);\n if (!Object.values(ProviderTier).includes(specification.tier)) {\n throw new Error(`${errorPrefix} \"tier\" must be a ProviderTier member, got \"${String(specification.tier)}\".`);\n }\n if (!specification.origin || !Object.values(ProviderOriginKind).includes(specification.origin.kind)) {\n throw new Error(`${errorPrefix} \"origin.kind\" must be a ProviderOriginKind member.`);\n }\n if (specification.origin.kind === ProviderOriginKind.GENERATED) {\n const { catalogue } = specification.origin;\n if (!catalogue) {\n throw new Error(`${errorPrefix} a GENERATED origin must carry its catalogue provenance.`);\n }\n assertNonEmptyTrimmedString(errorPrefix, 'origin.catalogue.sourceRef', catalogue.sourceRef);\n assertNonEmptyTrimmedString(errorPrefix, 'origin.catalogue.sourceVersion', catalogue.sourceVersion);\n }\n // The tier rule, restated on the specification so a spec cannot describe what composition refuses.\n if (specification.tier === ProviderTier.MAIN && specification.origin.kind !== ProviderOriginKind.ENGINE) {\n throw new Error(`${errorPrefix} tier MAIN is the engine's own set; origin is ${specification.origin.kind}.`);\n }\n if (specification.tier === ProviderTier.CATALOGUE && specification.engineCapabilities.length > 0) {\n throw new Error(\n `${errorPrefix} tier CATALOGUE binds no engine slot, but engineCapabilities lists [${specification.engineCapabilities.join(', ')}].`,\n );\n }\n assertNonEmptyStringList(errorPrefix, 'facets', specification.facets);\n if (specification.facets.length === 0) {\n throw new Error(`${errorPrefix} \"facets\" must name at least one facet the provider ships a module for.`);\n }\n assertNonEmptyStringList(errorPrefix, 'protocols', specification.protocols);\n assertNonEmptyStringList(errorPrefix, 'providerCapabilities', specification.providerCapabilities);\n assertNonEmptyStringList(errorPrefix, 'engineCapabilities', specification.engineCapabilities);\n if (!Array.isArray(specification.secretsContract)) {\n throw new Error(`${errorPrefix} \"secretsContract\" must be an array (empty when the provider needs no secret).`);\n }\n const seenEnvVarNames = new Set<string>();\n specification.secretsContract.forEach((entry, index) => {\n assertNonEmptyTrimmedString(errorPrefix, `secretsContract[${index}].slug`, entry.slug);\n assertNonEmptyTrimmedString(errorPrefix, `secretsContract[${index}].envVarName`, entry.envVarName);\n assertNonEmptyTrimmedString(errorPrefix, `secretsContract[${index}].description`, entry.description);\n if (typeof entry.required !== 'boolean') {\n throw new Error(`${errorPrefix} \"secretsContract[${index}].required\" must be a boolean.`);\n }\n if (seenEnvVarNames.has(entry.envVarName)) {\n throw new Error(`${errorPrefix} duplicate secretsContract envVarName \"${entry.envVarName}\".`);\n }\n seenEnvVarNames.add(entry.envVarName);\n if (index > 0 && specification.secretsContract[index - 1].slug.localeCompare(entry.slug) >= 0) {\n throw new Error(`${errorPrefix} secretsContract entries must be sorted by slug.`);\n }\n });\n assertOptionalCodeSymbolRef(errorPrefix, 'operationCatalogueSymbol', specification.operationCatalogueSymbol);\n if (specification.operatorPrerequisites !== undefined) {\n assertNonEmptyStringList(errorPrefix, 'operatorPrerequisites', specification.operatorPrerequisites);\n }\n assertOptionalNonEmptyProseSlot(errorPrefix, 'lifecycleRole', specification.lifecycleRole);\n assertOptionalDefinitionSpecificationCodeHandling(errorPrefix, specification.codeHandling);\n}\n\n// ── Factory ────────────────────────────────────────────────────────────────\n\nexport function providerSpecificationFromDefinition(\n providerDefinition: ProviderDefinitionRef,\n draftFactory: () => ProviderSpecificationDraft,\n): ProviderSpecificationConfig {\n const specification: ProviderSpecificationConfig = {\n ...draftFactory(),\n ref: providerDefinition.ref,\n };\n validateProviderSpecification(providerSpecificationKeyFor(specification.ref), specification);\n return specification;\n}\n\n// ── Map builder ────────────────────────────────────────────────────────────\n\nexport function buildProviderSpecificationMap(\n ...specifications: ProviderSpecificationConfig[]\n): ProviderSpecification {\n const result: ProviderSpecification = {};\n for (const specification of specifications) {\n const key = providerSpecificationKeyFor(specification.ref);\n if (result[key]) {\n throw new Error(`buildProviderSpecificationMap(): duplicate provider specification key \"${key}\".`);\n }\n result[key] = specification;\n }\n return result;\n}\n\n// ── Module-level registry (mirrors the feature family) ─────────────────────\n\nconst registeredProviderSpecifications = new Map<string, ProviderSpecificationConfig>();\n\nexport function registerProviderSpecifications(map: ProviderSpecification): void {\n for (const [key, specification] of Object.entries(map)) {\n if (typeof key !== 'string' || !key.trim()) {\n throw new Error('registerProviderSpecifications(): every map key must be a non-empty trimmed string.');\n }\n const existing = registeredProviderSpecifications.get(key);\n if (existing && JSON.stringify(existing) !== JSON.stringify(specification)) {\n throw new Error(\n `registerProviderSpecifications(): provider specification \"${key}\" was registered twice with divergent shapes.`,\n );\n }\n registeredProviderSpecifications.set(key, specification);\n }\n}\n\nexport function lookupProviderSpecification(providerRef: string): ProviderSpecificationConfig | undefined {\n return registeredProviderSpecifications.get(providerSpecificationKeyFor(providerRef));\n}\n\nexport function hasRegisteredProviderSpecifications(): boolean {\n return registeredProviderSpecifications.size > 0;\n}\n\nexport function listRegisteredProviderSpecifications(): ProviderSpecificationConfig[] {\n return Array.from(registeredProviderSpecifications.values());\n}\n\n/** Test seam only. */\nexport function resetProviderSpecificationsForTesting(): void {\n registeredProviderSpecifications.clear();\n}\n"]}
1
+ {"version":3,"file":"provider-specification.schemas.js","sourceRoot":"","sources":["../../../src/_core/provider-specification.schemas.ts"],"names":[],"mappings":"AAwBA,OAAO,EACL,kBAAkB,EAClB,YAAY,GAGb,MAAM,uBAAuB,CAAC;AAM/B,OAAO,EACL,uCAAuC,EACvC,2BAA2B,EAC3B,2BAA2B,EAC3B,iDAAiD,EACjD,+BAA+B,GAChC,MAAM,uCAAuC,CAAC;AAE/C;;;;GAIG;AACH,MAAM,CAAN,IAAY,0BASX;AATD,WAAY,0BAA0B;IACpC,6FAA6F;IAC7F,iDAAmB,CAAA;IACnB,iGAAiG;IACjG,2DAA6B,C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CAAC;QACJ,CAAC;QACD,gCAAgC,CAAC,GAAG,CAAC,GAAG,EAAE,aAAa,CAAC,CAAC;IAC3D,CAAC;AACH,CAAC;AAED,MAAM,UAAU,2BAA2B,CAAC,WAAmB;IAC7D,OAAO,gCAAgC,CAAC,GAAG,CAAC,2BAA2B,CAAC,WAAW,CAAC,CAAC,CAAC;AACxF,CAAC;AAED,MAAM,UAAU,mCAAmC;IACjD,OAAO,gCAAgC,CAAC,IAAI,GAAG,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,UAAU,oCAAoC;IAClD,OAAO,KAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC/D,CAAC;AAED,sBAAsB;AACtB,MAAM,UAAU,qCAAqC;IACnD,gCAAgC,CAAC,KAAK,EAAE,CAAC;AAC3C,CAAC","sourcesContent":["import type { ProviderAuthenticationAssurance } from '@wildo-ai/external-connectors-models';\nimport type { ProviderComplianceProfile } from '@wildo-ai/saas-models';\n/**\n * Provider specification family (#328).\n *\n * The semantic overlay for an external PROVIDER — the business meaning of a\n * `BackendProviderModule` / frontend provider module: why it exists, which\n * tier it holds, which vendor groups it, where it came from, what it binds,\n * and which secrets an operator must supply. Until this family existed the\n * engine shipped 15 specification families and none for providers, so a\n * generated provider would have shipped zero specification coverage while\n * `framework-specification-maintenance.md` was vacuously satisfied.\n *\n * Shape follows the feature family: a config extending\n * {@link DefinitionSpecificationBaseConfig}, a factory that validates at\n * module load, a map builder that fails closed on duplicates, and a\n * module-level registry consumers can look refs up in.\n *\n * Deliberately NO digest of the operation catalogue (`one-source-of-truth.md`\n * Rule 0 — nothing that is not branchable on git): the catalogue is named by\n * the symbol that declares it, and git carries which bytes that symbol had.\n */\n\nimport type { CodeSymbolRef } from '@wildo-ai/zod-decorators';\nimport {\n ProviderOriginKind,\n ProviderTier,\n type EngineCapability,\n type ProviderOrigin,\n} from '@wildo-ai/saas-models';\n\nimport type {\n DefinitionSpecificationBaseConfig,\n DefinitionSpecificationCodeHandling,\n} from './definition-specification.schemas';\nimport {\n assertDefinitionSpecificationBaseConfig,\n assertNonEmptyTrimmedString,\n assertOptionalCodeSymbolRef,\n assertOptionalDefinitionSpecificationCodeHandling,\n assertOptionalNonEmptyProseSlot,\n} from './definition-specification-validators';\n\n/**\n * The facets a provider ships a module for: which runtime owner can load it. One named source for the strings a\n * specification's `facets` holds, read by the integration plan's scope check (#3995) and refused here when a\n * specification names anything else.\n */\nexport enum ProviderSpecificationFacet {\n /** A backend provider module: loaded by the backend, the companion, a worker or a minion. */\n BACKEND = 'backend',\n /** A browser module of the application frontend (`@wildo-ai/external-connectors-public/app`). */\n FRONTEND_APP = 'frontend-app',\n /** A browser module of the marketing website (`…/website`). */\n FRONTEND_WEBSITE = 'frontend-website',\n /** A browser module of the documentation site (`…/techdoc`). */\n FRONTEND_TECHDOC = 'frontend-techdoc',\n}\n\nconst PROVIDER_SPECIFICATION_FACETS: ReadonlySet<string> = new Set(Object.values(ProviderSpecificationFacet));\n\n/** One secret the operator supplies, mirrored from the module's `secretsContract`. */\nexport interface ProviderSpecificationSecret {\n /** The contract slug (`apiKey`, `webhookSecret`, …). */\n slug: string;\n /** The environment variable the secret is delivered as. */\n envVarName: string;\n /** Whether the provider cannot start without it. */\n required: boolean;\n /** What the secret is, for the operator who has to obtain it. */\n description: string;\n}\n\nexport interface ProviderSpecificationConfig extends DefinitionSpecificationBaseConfig {\n /** npm package that ships the provider — one package, several facet barrels. */\n packageName: string;\n /** The recorded tier decision; must agree with the module metadata. */\n tier: ProviderTier;\n /** Vendor grouping; equals `ref` for a single-package vendor. */\n vendor: string;\n /** Where the provider's code comes from, with catalogue provenance when generated. */\n origin: ProviderOrigin;\n /** Facets the provider ships a module for: {@link ProviderSpecificationFacet} members, refused otherwise. */\n facets: string[];\n /** Authoring keys of the protocols the backend module binds (`BUILTIN_PROVIDER_PROTOCOL` members). */\n protocols: string[];\n /** `ProviderCapability` tokens the module claims. */\n providerCapabilities: string[];\n /** Engine slots those tokens bind through `PROVIDER_CAPABILITY_TO_ENGINE_CAPABILITY`. */\n engineCapabilities: EngineCapability[];\n /** The module's secrets contract, sorted by slug. Empty for a provider that needs none. */\n secretsContract: ProviderSpecificationSecret[];\n /**\n * WHO runs this provider and WHERE it processes — restated from the module, and REQUIRED.\n *\n * The module already declares it, so this is the same kind of mirrored fact as `protocols` or\n * `secretsContract` and is reconciled the same way. What it adds is REACHABILITY: the compliance\n * lane that renders an application's processor register reads specifications, not backend provider\n * modules, so before this the framework could not compare an operator's declared processing region\n * against what the vendor actually offers. `appAssertedProcessingRegions` has existed for exactly\n * that comparison and had no caller, because the data it needs did not reach the caller's side.\n *\n * Required rather than optional, deliberately: every provider module declares one, and an optional\n * field here would let a specification omit a fact the module owns — reintroducing, one layer up,\n * the silent omission that making `complianceProfile` mandatory for coding providers closed.\n */\n complianceProfile: ProviderComplianceProfile;\n /** Provider login-assurance contract; independent of geographic/legal deployment facts. */\n authenticationAssurance?: ProviderAuthenticationAssurance;\n /**\n * The symbol declaring the provider's OPERATION CATALOGUE, when it has one\n * (the `rest` arm's derived catalogue, S3a). Absent for a provider that\n * exposes engine capabilities only.\n */\n operationCatalogueSymbol?: CodeSymbolRef;\n /** What an operator must obtain or configure before the provider serves. */\n operatorPrerequisites?: string[];\n /** Where the provider is declared in code — owner, the module symbol, supporting symbols. */\n codeHandling?: DefinitionSpecificationCodeHandling;\n}\n\nexport type ProviderSpecification = Record<string, ProviderSpecificationConfig>;\n\nexport type ProviderSpecificationDraft = Omit<ProviderSpecificationConfig, 'ref'>;\n\nexport interface ProviderDefinitionRef {\n /** The provider `ref` — the metadata join key. */\n ref: string;\n}\n\n// ── Keys ───────────────────────────────────────────────────────────────────\n\nexport const PROVIDER_SPECIFICATION_KEY_PREFIX = 'providers';\n\nexport function providerSpecificationKeyFor(providerRef: string): string {\n return `${PROVIDER_SPECIFICATION_KEY_PREFIX}/${providerRef}`;\n}\n\n// ── Validation ─────────────────────────────────────────────────────────────\n\nfunction assertNonEmptyStringList(errorPrefix: string, slot: string, value: unknown): asserts value is string[] {\n if (!Array.isArray(value)) {\n throw new Error(`${errorPrefix} \"${slot}\" must be an array.`);\n }\n value.forEach((entry, index) => {\n assertNonEmptyTrimmedString(errorPrefix, `${slot}[${index}]`, entry);\n });\n}\n\nexport function validateProviderSpecification(\n specificationKey: string,\n specification: ProviderSpecificationConfig,\n): void {\n const errorPrefix = `provider specification \"${specificationKey}\":`;\n\n assertDefinitionSpecificationBaseConfig(errorPrefix, specification);\n assertNonEmptyTrimmedString(errorPrefix, 'packageName', specification.packageName);\n assertNonEmptyTrimmedString(errorPrefix, 'vendor', specification.vendor);\n if (!Object.values(ProviderTier).includes(specification.tier)) {\n throw new Error(`${errorPrefix} \"tier\" must be a ProviderTier member, got \"${String(specification.tier)}\".`);\n }\n if (!specification.origin || !Object.values(ProviderOriginKind).includes(specification.origin.kind)) {\n throw new Error(`${errorPrefix} \"origin.kind\" must be a ProviderOriginKind member.`);\n }\n if (specification.origin.kind === ProviderOriginKind.GENERATED) {\n const { catalogue } = specification.origin;\n if (!catalogue) {\n throw new Error(`${errorPrefix} a GENERATED origin must carry its catalogue provenance.`);\n }\n assertNonEmptyTrimmedString(errorPrefix, 'origin.catalogue.sourceRef', catalogue.sourceRef);\n assertNonEmptyTrimmedString(errorPrefix, 'origin.catalogue.sourceVersion', catalogue.sourceVersion);\n }\n // The tier rule, restated on the specification so a spec cannot describe what composition refuses.\n if (specification.tier === ProviderTier.MAIN && specification.origin.kind !== ProviderOriginKind.ENGINE) {\n throw new Error(`${errorPrefix} tier MAIN is the engine's own set; origin is ${specification.origin.kind}.`);\n }\n if (specification.tier === ProviderTier.CATALOGUE && specification.engineCapabilities.length > 0) {\n throw new Error(\n `${errorPrefix} tier CATALOGUE binds no engine slot, but engineCapabilities lists [${specification.engineCapabilities.join(', ')}].`,\n );\n }\n assertNonEmptyStringList(errorPrefix, 'facets', specification.facets);\n if (specification.facets.length === 0) {\n throw new Error(`${errorPrefix} \"facets\" must name at least one facet the provider ships a module for.`);\n }\n const unknownFacets = specification.facets.filter((facet) => !PROVIDER_SPECIFICATION_FACETS.has(facet));\n if (unknownFacets.length > 0) {\n throw new Error(`${errorPrefix} \"facets\" names [${unknownFacets.join(', ')}], which are no ProviderSpecificationFacet members.`);\n }\n assertNonEmptyStringList(errorPrefix, 'protocols', specification.protocols);\n assertNonEmptyStringList(errorPrefix, 'providerCapabilities', specification.providerCapabilities);\n assertNonEmptyStringList(errorPrefix, 'engineCapabilities', specification.engineCapabilities);\n if (!Array.isArray(specification.secretsContract)) {\n throw new Error(`${errorPrefix} \"secretsContract\" must be an array (empty when the provider needs no secret).`);\n }\n const seenEnvVarNames = new Set<string>();\n specification.secretsContract.forEach((entry, index) => {\n assertNonEmptyTrimmedString(errorPrefix, `secretsContract[${index}].slug`, entry.slug);\n assertNonEmptyTrimmedString(errorPrefix, `secretsContract[${index}].envVarName`, entry.envVarName);\n assertNonEmptyTrimmedString(errorPrefix, `secretsContract[${index}].description`, entry.description);\n if (typeof entry.required !== 'boolean') {\n throw new Error(`${errorPrefix} \"secretsContract[${index}].required\" must be a boolean.`);\n }\n if (seenEnvVarNames.has(entry.envVarName)) {\n throw new Error(`${errorPrefix} duplicate secretsContract envVarName \"${entry.envVarName}\".`);\n }\n seenEnvVarNames.add(entry.envVarName);\n if (index > 0 && specification.secretsContract[index - 1].slug.localeCompare(entry.slug) >= 0) {\n throw new Error(`${errorPrefix} secretsContract entries must be sorted by slug.`);\n }\n });\n assertOptionalCodeSymbolRef(errorPrefix, 'operationCatalogueSymbol', specification.operationCatalogueSymbol);\n if (specification.operatorPrerequisites !== undefined) {\n assertNonEmptyStringList(errorPrefix, 'operatorPrerequisites', specification.operatorPrerequisites);\n }\n assertOptionalNonEmptyProseSlot(errorPrefix, 'lifecycleRole', specification.lifecycleRole);\n assertOptionalDefinitionSpecificationCodeHandling(errorPrefix, specification.codeHandling);\n}\n\n// ── Factory ────────────────────────────────────────────────────────────────\n\nexport function providerSpecificationFromDefinition(\n providerDefinition: ProviderDefinitionRef,\n draftFactory: () => ProviderSpecificationDraft,\n): ProviderSpecificationConfig {\n const specification: ProviderSpecificationConfig = {\n ...draftFactory(),\n ref: providerDefinition.ref,\n };\n validateProviderSpecification(providerSpecificationKeyFor(specification.ref), specification);\n return specification;\n}\n\n// ── Map builder ────────────────────────────────────────────────────────────\n\nexport function buildProviderSpecificationMap(\n ...specifications: ProviderSpecificationConfig[]\n): ProviderSpecification {\n const result: ProviderSpecification = {};\n for (const specification of specifications) {\n const key = providerSpecificationKeyFor(specification.ref);\n if (result[key]) {\n throw new Error(`buildProviderSpecificationMap(): duplicate provider specification key \"${key}\".`);\n }\n result[key] = specification;\n }\n return result;\n}\n\n// ── Module-level registry (mirrors the feature family) ─────────────────────\n\nconst registeredProviderSpecifications = new Map<string, ProviderSpecificationConfig>();\n\nexport function registerProviderSpecifications(map: ProviderSpecification): void {\n for (const [key, specification] of Object.entries(map)) {\n if (typeof key !== 'string' || !key.trim()) {\n throw new Error('registerProviderSpecifications(): every map key must be a non-empty trimmed string.');\n }\n const existing = registeredProviderSpecifications.get(key);\n if (existing && JSON.stringify(existing) !== JSON.stringify(specification)) {\n throw new Error(\n `registerProviderSpecifications(): provider specification \"${key}\" was registered twice with divergent shapes.`,\n );\n }\n registeredProviderSpecifications.set(key, specification);\n }\n}\n\nexport function lookupProviderSpecification(providerRef: string): ProviderSpecificationConfig | undefined {\n return registeredProviderSpecifications.get(providerSpecificationKeyFor(providerRef));\n}\n\nexport function hasRegisteredProviderSpecifications(): boolean {\n return registeredProviderSpecifications.size > 0;\n}\n\nexport function listRegisteredProviderSpecifications(): ProviderSpecificationConfig[] {\n return Array.from(registeredProviderSpecifications.values());\n}\n\n/** Test seam only. */\nexport function resetProviderSpecificationsForTesting(): void {\n registeredProviderSpecifications.clear();\n}\n"]}
@@ -150,6 +150,7 @@ export * from "./_core/website-plan/website-plan-validation";
150
150
  export * from "./_core/experience-plan/experience-plan.schemas";
151
151
  export * from "./_core/experience-plan/experience-plan-generation.schemas";
152
152
  export * from "./_core/experience-plan/experience-plan-validation";
153
+ export * from "./_core/integration-plan/integration-execution-surface-refs.schemas";
153
154
  export * from "./_core/integration-plan/integration-plan.schemas";
154
155
  export * from "./_core/integration-plan/integration-plan-generation.schemas";
155
156
  export * from "./_core/integration-plan/integration-plan-validation";
@@ -1 +1 @@
1
- {"version":3,"file":"application-creation.exports.d.ts","sourceRoot":"","sources":["../../src/application-creation.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,cAAc,6FAA6F,CAAC;AAC5G,cAAc,gFAAgF,CAAC;AAC/F,cAAc,iFAAiF,CAAC;AAChG,cAAc,kFAAkF,CAAC;AACjG,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,gGAAgG,CAAC;AAC/G,cAAc,4FAA4F,CAAC;AAC3G,cAAc,uGAAuG,CAAC;AAWtH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iDAAiD,CAAC;AAQhE,cAAc,sDAAsD,CAAC;AAMrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC;AAMlE,cAAc,oEAAoE,CAAC;AACnF,cAAc,wEAAwE,CAAC;AACvF,cAAc,+EAA+E,CAAC;AAC9F,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,wEAAwE,CAAC;AACvF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,8DAA8D,CAAC;AAC7E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wDAAwD,CAAC;AACvE,cAAc,sDAAsD,CAAC;AACrE,cAAc,iFAAiF,CAAC;AAChG,cAAc,6DAA6D,CAAC;AAC5E,cAAc,+DAA+D,CAAC;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AqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iFAAiF,CAAC"}
1
+ {"version":3,"file":"application-creation.exports.d.ts","sourceRoot":"","sources":["../../src/application-creation.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,cAAc,6FAA6F,CAAC;AAC5G,cAAc,gFAAgF,CAAC;AAC/F,cAAc,iFAAiF,CAAC;AAChG,cAAc,kFAAkF,CAAC;AACjG,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,gGAAgG,CAAC;AAC/G,cAAc,4FAA4F,CAAC;AAC3G,cAAc,uGAAuG,CAAC;AAWtH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iDAAiD,CAAC;AAQhE,cAAc,sDAAsD,CAAC;AAMrE,cAAc,wDAAwD,CAAC;AACvE,cAAc,mDAAmD,CAAC;AAMlE,cAAc,oEAAoE,CAAC;AACnF,cAAc,wEAAwE,CAAC;AACvF,cAAc,+EAA+E,CAAC;AAC9F,cAAc,4DAA4D,CAAC;AAC3E,cAAc,yDAAyD,CAAC;AACxE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,4DAA4D,CAAC;AAC3E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,wEAAwE,CAAC;AACvF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,8DAA8D,CAAC;AAC7E,cAAc,kEAAkE,CAAC;AACjF,cAAc,wDAAwD,CAAC;AACvE,cAA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;AAC9E,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iFAAiF,CAAC"}
@@ -213,6 +213,7 @@ export * from "./_core/website-plan/website-plan-validation.js";
213
213
  export * from "./_core/experience-plan/experience-plan.schemas.js";
214
214
  export * from "./_core/experience-plan/experience-plan-generation.schemas.js";
215
215
  export * from "./_core/experience-plan/experience-plan-validation.js";
216
+ export * from "./_core/integration-plan/integration-execution-surface-refs.schemas.js";
216
217
  export * from "./_core/integration-plan/integration-plan.schemas.js";
217
218
  export * from "./_core/integration-plan/integration-plan-generation.schemas.js";
218
219
  export * from "./_core/integration-plan/integration-plan-validation.js";
@@ -1 +1 @@
1
- {"version":3,"file":"application-creation.exports.js","sourceRoot":"","sources":["../../src/application-creation.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,cAAc,6FAA6F,CAAC;AAC5G,cAAc,gFAAgF,CAAC;AAC/F,cAAc,iFAAiF,CAAC;AAChG,cAAc,kFAAkF,CAAC;AACjG,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,gGAAgG,CAAC;AAC/G,cAAc,4FAA4F,CAAC;AAC3G,cAAc,uGAAuG,CAAC;AACtH,2GAA2G;AAC3G;;;;;;;;GAQG;AAC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;AACrE,cAAc,8CAA8C,CAAC;AAC7D,cAAc,iDAAiD,CAAC;AAChE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,oDAAoD,CAAC;AACnE,cAAc,mDAAmD,CAAC;AAClE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,kEAAkE,CAAC;AACjF,cAAc,0DAA0D,CAAC;AACzE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,yDAAyD,CAAC;AACxE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iFAAiF,CAAC","sourcesContent":["/**\n * Public application-creation specification surface.\n *\n * This entrypoint is intentionally broader than any individual schema family and narrower than the\n * complete specifications package. Consumers involved in application creation depend on this stable\n * semantic boundary rather than on source-file-shaped package subpaths.\n *\n * ## Most of what this door publishes is re-exported from `_core`, and that is DELIBERATE\n *\n * Measured 2026-09-20: 78 of its 85 re-exports are `_core` content-family modules the package root\n * also publishes (through `./_core`), and only 7 are this domain's own. Counted alone that reads as\n * `root-barrel-overlap` — rule 1, \"a second door onto the same room\" — and #1352 proposed shrinking\n * this door to the 7. **Do not.** Three independent measurements say this door is load-bearing, and\n * each was paid for once already:\n *\n * 1. **It is a CLOSURE FIREWALL.** Fifteen files under `src/` import `@wildo-ai/saas-backend-lib`,\n * and every one of them is reachable from the ROOT and from no path on this door — the whole of\n * `engine/**`, plus `_core/resource-specification.schemas` and `_core/data-seed-specification.schemas`.\n * A consumer whose runner resolves engine packages with `conditions: [\"source\"]` therefore drags\n * that package's INTERNAL `~wildo-backend-lib/*` aliases into a program that cannot resolve them,\n * and every suite importing such a file fails to COLLECT — which reads as zero tests rather than as\n * a bad import. That is recorded at the site where it was measured,\n * `application-creation-workbench/src/artifact-presentation/families/processor-register.presentation.tsx`.\n * This is criterion (c) of `package-public-entrypoints.md` — *\"consumers should not load or become\n * coupled to the package's broader graph\"* — satisfied for a concrete reason, not a stylistic one.\n *\n * 2. **It preserves MODULE IDENTITY.** A symbol reached through two different specifiers is two module\n * instances. The authored-metadata note below records that exact failure: the structured-artifact\n * renderer resolved a different instance of an enum and could not recognise it as the one its own\n * schema referenced. Splitting any consumer's imports between this door and the root — which is what\n * shrinking this door would force on 100 files, 29 of them taking BOTH content and mechanism — would\n * reintroduce it wholesale.\n *\n * 3. **It keeps the Node-only creation runtime off the frontend graph**, which the section further down\n * states at its own call site.\n *\n * ## The alternative was measured too, and it is worse\n *\n * Moving the content families OUT of `_core` and behind this door (so the root stops publishing them and\n * the duplication disappears at the source) is refused by `_core/family-aspects.registry.ts`: it is\n * ROOT-reachable and aggregates families from all three domains — `_core`, `application-creation` AND\n * `assurance`. It already reaches across two of those boundaries; moving the families would take it from\n * 2 crossings to 15, trading a duplication no checker can see for a rule-7 violation that is real.\n *\n * ## Why no checker reports any of this\n *\n * `check:package-entrypoints` rule 1 compares the ONE-LEVEL `export *` target sets of the root barrel and\n * the subpath barrel. The root's targets are `./application-creation.exports`, `./_core`, `./_catalogs`\n * and `./engine`; this door's are `./_core/market/…`-shaped. The sets do not intersect, so the overlap is\n * structurally invisible to it and there is NO baseline row for this specifier — both #1352 and this\n * package's own root barrel asserted there was one. Widening rule 1 to resolve barrels transitively would\n * make it fire HERE, on a door that is correct, so the blind spot is not a defect to fix by widening: a\n * transitive rule 1 would first need to compare CLOSURES rather than path sets.\n */\nexport * from \"./application-creation/application-document-fact-specification.application-creation.schemas\";\nexport * from \"./application-creation/application-creator-inputs.application-creation.schemas\";\nexport * from \"./application-creation/application-declared-answer.application-creation.schemas\";\nexport * from \"./application-creation/application-declared-answers.application-creation.schemas\";\nexport * from \"./application-creation/application-line.application-creation.schemas\";\nexport * from \"./application-creation/playbook-instance.application-creation.schemas\";\nexport * from \"./application-creation/application-specification-family-decisions.application-creation.schemas\";\nexport * from \"./application-creation/specification-content-validation-state.application-creation.schemas\";\nexport * from \"./application-creation/application-document-release-policy-specification.application-creation.schemas\";\n// Reviewer custody and private authority lifecycle contracts intentionally share this semantic entrypoint.\n/*\n * The authored-metadata vocabularies (`AuthoredConfidence`, `ReviewCadence`).\n *\n * Every `_core` content family carries an optional `authored` block typed by these two enums, so any\n * consumer that reasons about a family's closed vocabularies needs them from the SAME entrypoint it gets\n * the schemas from. They were reachable only through the package root, which meant the structured-artifact\n * renderer — importing schemas here — resolved a different module instance of the enum and could not\n * recognise it as the one its own schema referenced.\n */\nexport * from \"./_core/application-specification-family-identity.schemas\";\nexport * from \"./_core/market/market-authored-metadata.schemas\";\n/*\n * The EXPERT ROLE vocabulary — the shaping-input kinds a seat declares, and the family/aspect each one\n * names. Exported through this door rather than only through the package root for the reason recorded\n * above the family-identity line: a runtime that composes a seat's context resolves its FAMILIES here,\n * so the binding table that joins a shaping kind to a family has to arrive from the same entrypoint or\n * the two sides compare values from different module instances.\n */\nexport * from \"./_core/expert-personas/expert-role-template.schemas\";\n/*\n * The charter CONTENT and its set validator, beside the role templates for the same reason: the semantic\n * authority binds the `expert-personas` family (#572) through THIS entrypoint, and the application-creation\n * runtime may not import the package root (`check:application-creation-boundaries`).\n */\nexport * from \"./_core/expert-personas/expert-persona-charter.schemas\";\nexport * from \"./_core/expert-personas/expert-persona-validation\";\n/*\n * The governed-document CANDIDATE content family. Exported here because the structured-artifact renderer and\n * the semantic authority both resolve schemas through this entrypoint, and identity across them requires one\n * module instance — the same reason the authored-metadata enums above are published from here.\n */\nexport * from \"./_core/compliance-documents/compliance-document-candidate.schemas\";\nexport * from \"./_core/compliance-documents/compliance-document-candidate-set.schemas\";\nexport * from \"./_core/compliance-documents/compliance-document-candidate-generation.schemas\";\nexport * from \"./_core/compliance-documents/required-document-set.schemas\";\nexport * from \"./_core/compliance-documents/processor-register.schemas\";\nexport * from \"./_core/compliance-documents/recipient-population.schemas\";\nexport * from \"./_core/compliance-documents/recipient-disclosures.schemas\";\nexport * from \"./_core/compliance-documents/subject-data-recipients.schemas\";\nexport * from \"./_core/compliance-documents/compliance-completeness-statement.schemas\";\nexport * from \"./_core/compliance-documents/document-fact-specification-generation.schemas\";\nexport * from \"./_core/compliance-documents/computed-document-facts.schemas\";\nexport * from \"./_core/compliance-documents/retention-enforcement-facts.schemas\";\nexport * from \"./_core/compliance-documents/ai-document-facts.schemas\";\nexport * from \"./_core/compliance-documents/launch-blockers.schemas\";\nexport * from \"./application-creation/accepted-change-attribution.application-creation.schemas\";\nexport * from \"./application-creation/journey.application-creation.schemas\";\nexport * from \"./application-creation/playbooks.application-creation.schemas\";\nexport * from \"./application-creation/domain-plan-evaluation-identities.application-creation.definitions\";\n\n// Executable semantic authorities consumed by the Node-only application-\n// creation runtime. Keeping them on this deliberate entrypoint prevents that\n// runtime from loading the broad specifications root and its frontend graph.\nexport * from \"./_core/family-aspects.schemas\";\n// The unavailable-specification vocabulary (#3258): the runtime's atomic specification write refuses to persist a\n// value carrying UNAVAILABLE_SPECIFICATION_MARKER, so it needs this module without the root. The module imports nothing.\nexport * from \"./_core/specification-module-faults\";\nexport * from \"./_core/family-aspects.registry\";\n/*\n * The expert-shaping input vocabulary and its family bindings.\n *\n * `application-specification-context-prose` reads `EXPERT_SHAPING_INPUT_FAMILY_BINDINGS` to turn a\n * shaping input KIND into the specification family that answers it, which is exactly the\n * \"executable semantic authority consumed by the runtime\" this section exists for.\n *\n * Only this module of `_core/expert-personas/` is published, deliberately. Its three siblings\n * (`expert-persona-charter`, `expert-persona-authored-metadata`, `expert-persona-validation`) have\n * no import site outside this package — measured, not assumed — so publishing them would widen the\n * entrypoint for nobody.\n */\nexport * from \"./_core/expert-personas/expert-role-template.schemas\";\nexport * from \"./_core/brand/brand-name.schemas\";\nexport * from \"./_core/brand/brand-snapshot.schemas\";\nexport * from \"./_core/brand/brand-visual-tone.schemas\";\nexport * from \"./_core/brand/brand-audience.schemas\";\nexport * from \"./_core/brand/brand-snapshot-validation\";\nexport * from \"./_core/brand/brand-name-screening.schemas\";\nexport * from \"./_core/brand/brand-name-screening-generation.schemas\";\nexport * from \"./_core/brand/brand-name-screening-validation\";\nexport * from \"./_core/brand/brand-name-choice\";\nexport * from \"./_core/brand/brand-name-screening-view\";\n/*\n * The brand and pricing VOCABULARIES the two snapshots above are built from.\n *\n * Same reason as the authored-metadata enums at the top of this file, and the same defect one layer\n * further out: `BrandLogoMarkType`, `BrandLogoBackgroundTreatment`, `BrandAsset*` and `PricingModelAxis`\n * were reachable only through the package ROOT, so the structured-artifact renderer — which resolves\n * schemas through THIS entrypoint — could not name the enum objects hanging off the very schemas it had\n * just imported. Measured 2026-08-29: `BrandSnapshot` and `BusinessModelLiteSnapshot` could not derive\n * their enum bindings at all, so neither family could ever land a produced artifact.\n *\n * A schema and the vocabularies it is made of must be published from the same entrypoint. Splitting them\n * is not a smaller surface, it is a surface that cannot be used.\n */\nexport * from \"./_core/brand/brand-logo-direction.schemas\";\nexport * from \"./_core/brand/brand-asset.schemas\";\nexport * from \"./_core/business-model-lite/pricing-plan.schemas\";\nexport * from \"./_core/business-model-lite/business-model-lite-snapshot.schemas\";\nexport * from \"./_core/business-model-lite/business-model-lite-snapshot-generation.schemas\";\nexport * from \"./_core/business-model-lite/business-model-lite-snapshot-validation\";\nexport * from \"./_core/definition-specification.schemas\";\nexport * from \"./_core/domain-plan/domain-plan-output-set-generation.schemas\";\nexport * from \"./_core/domain-plan/domain-plan-output-set-validation\";\nexport * from \"./_core/business-semantics.specifications.schemas\";\nexport * from \"./_core/domain-plan/domain-plan-output-set.schemas\";\nexport * from \"./_core/feature-drafts/capability-map-output-set-generation.schemas\";\nexport * from \"./_core/feature-drafts/capability-map-output-set-validation\";\nexport * from \"./_core/feature-drafts/capability-map-output-set.schemas\";\nexport * from \"./_core/feature-drafts/feature-specification-drafts-generation.schemas\";\nexport * from \"./_core/feature-drafts/feature-specification-drafts-validation\";\nexport * from \"./_core/feature-drafts/feature-specification-drafts.schemas\";\nexport * from \"./_core/feature-specification.schemas\";\nexport * from \"./_core/market/market-category.schemas\";\nexport * from \"./_core/market/market-icp.schemas\";\nexport * from \"./_core/market/market-language-coverage\";\nexport * from \"./_core/market/feature-benefit.schemas\";\nexport * from \"./_core/market/market-alternative.schemas\";\nexport * from \"./_core/market/market-buying-journey.schemas\";\nexport * from \"./_core/market/market-channel.schemas\";\nexport * from \"./_core/market/market-gain.schemas\";\nexport * from \"./_core/market/market-job.schemas\";\nexport * from \"./_core/market/market-message-template.schemas\";\nexport * from \"./_core/market/market-objection.schemas\";\nexport * from \"./_core/market/market-pain.schemas\";\nexport * from \"./_core/market/market-persona.schemas\";\nexport * from \"./_core/market/market-positioning.schemas\";\nexport * from \"./_core/market/market-references.schemas\";\nexport * from \"./_core/market/market-proof.schemas\";\nexport * from \"./_core/market/market-snapshot-generation.schemas\";\nexport * from \"./_core/market/market-snapshot.schemas\";\n/*\n * The deterministic FIT scorer. Exported through this door because the creation runtime COMPUTES the\n * per-ICP FIT matrix into a playbook brief (#1435): three methods tell their model to \"feed the\n * scorer and read back the scores\", and a structured generation has no tools, so the arithmetic has\n * to be done for it — the same trade `COHERENCE_REPORT` makes.\n */\nexport * from \"./_core/market/market-scoring\";\nexport * from \"./_core/market/market-snapshot-validation\";\nexport * from \"./_core/market/market-tone-of-voice.schemas\";\nexport * from \"./_core/market/market-trigger.schemas\";\nexport * from \"./_core/build-plan/build-plan-task-graph.schemas\";\nexport * from \"./_core/build-plan/build-plan-task-graph-generation.schemas\";\nexport * from \"./_core/build-plan/build-plan-task-graph-validation\";\nexport * from \"./_core/build-plan/build-plan-relationship-grouping\";\nexport * from \"./_core/capability-composition/capability-composition.schemas\";\nexport * from \"./_core/capability-composition/capability-composition-validation\";\nexport * from \"./_core/website-plan/website-plan.schemas\";\nexport * from \"./_core/website-plan/website-plan-generation.schemas\";\nexport * from \"./_core/website-plan/website-plan-validation\";\nexport * from \"./_core/experience-plan/experience-plan.schemas\";\nexport * from \"./_core/experience-plan/experience-plan-generation.schemas\";\nexport * from \"./_core/experience-plan/experience-plan-validation\";\nexport * from \"./_core/integration-plan/integration-plan.schemas\";\nexport * from \"./_core/integration-plan/integration-plan-generation.schemas\";\nexport * from \"./_core/integration-plan/integration-plan-validation\";\nexport * from \"./_core/compliance-posture/compliance-posture.schemas\";\nexport * from \"./_core/compliance-posture/compliance-posture-generation.schemas\";\nexport * from \"./_core/compliance-posture/compliance-posture-validation\";\nexport * from \"./_core/service-method/service-method.schemas\";\nexport * from \"./_core/service-method/service-method-generation.schemas\";\nexport * from \"./_core/service-method/service-method-validation\";\nexport * from \"./_core/service-method/service-method-derivation\";\nexport * from \"./_core/application-maturity/application-maturity.schemas\";\nexport * from \"./_core/application-maturity/application-maturity-validation\";\nexport * from \"./_core/application-maturity/application-maturity-open-items\";\nexport * from \"./_core/placement-plan/placement-plan.schemas\";\nexport * from \"./_core/placement-plan/placement-plan-generation.schemas\";\nexport * from \"./_core/placement-plan/placement-plan-validation\";\nexport * from \"./_core/requirements/functional-requirement.schemas\";\nexport * from \"./_core/requirements/non-functional-requirement.schemas\";\nexport * from \"./_core/requirements/requirement-engine-substance.schemas\";\nexport * from \"./_core/requirements/requirements-snapshot-generation.schemas\";\nexport * from \"./_core/requirements/requirements-snapshot.schemas\";\nexport * from \"./_core/requirements/requirements-snapshot-validation\";\nexport * from \"./_core/requirements/requirements-pain-coverage\";\nexport * from \"./_core/roadmap/roadmap-phase.schemas\";\nexport * from \"./_core/roadmap/roadmap-snapshot-generation.schemas\";\nexport * from \"./_core/roadmap/roadmap-snapshot.schemas\";\nexport * from \"./_core/roadmap/roadmap-snapshot-validation\";\nexport * from \"./_core/vision/vision-authored-metadata.schemas\";\nexport * from \"./_core/vision/vision-constraint.schemas\";\nexport * from \"./_core/vision/vision-idea.schemas\";\nexport * from \"./_core/vision/vision-mission.schemas\";\nexport * from \"./_core/vision/vision-problem.schemas\";\nexport * from \"./_core/vision/vision-success-criterion.schemas\";\nexport * from \"./_core/vision/vision-snapshot-generation.schemas\";\nexport * from \"./_core/vision/vision-snapshot.schemas\";\nexport * from \"./_core/vision/vision-snapshot-validation\";\nexport * from \"./application-creation/structured-artifact-landing.application-creation.schemas\";\n"]}
1
+ {"version":3,"file":"application-creation.exports.js","sourceRoot":"","sources":["../../src/application-creation.exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AACH,cAAc,6FAA6F,CAAC;AAC5G,cAAc,gFAAgF,CAAC;AAC/F,cAAc,iFAAiF,CAAC;AAChG,cAAc,kFAAkF,CAAC;AACjG,cAAc,sEAAsE,CAAC;AACrF,cAAc,uEAAuE,CAAC;AACtF,cAAc,gGAAgG,CAAC;AAC/G,cAAc,4FAA4F,CAAC;AAC3G,cAAc,uGAAuG,CAAC;AACtH,2GAA2G;AAC3G;;;;;;;;GAQG;AACH,cAAc,2DAA2D,CAAC;AAC1E,cAAc,iDAAiD,CAAC;AAChE;;;;;;GA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c,4DAA4D,CAAC;AAC3E,cAAc,oDAAoD,CAAC;AACnE,cAAc,qEAAqE,CAAC;AACpF,cAAc,mDAAmD,CAAC;AAClE,cAAc,8DAA8D,CAAC;AAC7E,cAAc,sDAAsD,CAAC;AACrE,cAAc,uDAAuD,CAAC;AACtE,cAAc,kEAAkE,CAAC;AACjF,cAAc,0DAA0D,CAAC;AACzE,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,8DAA8D,CAAC;AAC7E,cAAc,+CAA+C,CAAC;AAC9D,cAAc,0DAA0D,CAAC;AACzE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,yDAAyD,CAAC;AACxE,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,iDAAiD,CAAC;AAChE,cAAc,uCAAuC,CAAC;AACtD,cAAc,qDAAqD,CAAC;AACpE,cAAc,0CAA0C,CAAC;AACzD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,wCAAwC,CAAC;AACvD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,iFAAiF,CAAC","sourcesContent":["/**\n * Public application-creation specification surface.\n *\n * This entrypoint is intentionally broader than any individual schema family and narrower than the\n * complete specifications package. Consumers involved in application creation depend on this stable\n * semantic boundary rather than on source-file-shaped package subpaths.\n *\n * ## Most of what this door publishes is re-exported from `_core`, and that is DELIBERATE\n *\n * Measured 2026-09-20: 78 of its 85 re-exports are `_core` content-family modules the package root\n * also publishes (through `./_core`), and only 7 are this domain's own. Counted alone that reads as\n * `root-barrel-overlap` — rule 1, \"a second door onto the same room\" — and #1352 proposed shrinking\n * this door to the 7. **Do not.** Three independent measurements say this door is load-bearing, and\n * each was paid for once already:\n *\n * 1. **It is a CLOSURE FIREWALL.** Fifteen files under `src/` import `@wildo-ai/saas-backend-lib`,\n * and every one of them is reachable from the ROOT and from no path on this door — the whole of\n * `engine/**`, plus `_core/resource-specification.schemas` and `_core/data-seed-specification.schemas`.\n * A consumer whose runner resolves engine packages with `conditions: [\"source\"]` therefore drags\n * that package's INTERNAL `~wildo-backend-lib/*` aliases into a program that cannot resolve them,\n * and every suite importing such a file fails to COLLECT — which reads as zero tests rather than as\n * a bad import. That is recorded at the site where it was measured,\n * `application-creation-workbench/src/artifact-presentation/families/processor-register.presentation.tsx`.\n * This is criterion (c) of `package-public-entrypoints.md` — *\"consumers should not load or become\n * coupled to the package's broader graph\"* — satisfied for a concrete reason, not a stylistic one.\n *\n * 2. **It preserves MODULE IDENTITY.** A symbol reached through two different specifiers is two module\n * instances. The authored-metadata note below records that exact failure: the structured-artifact\n * renderer resolved a different instance of an enum and could not recognise it as the one its own\n * schema referenced. Splitting any consumer's imports between this door and the root — which is what\n * shrinking this door would force on 100 files, 29 of them taking BOTH content and mechanism — would\n * reintroduce it wholesale.\n *\n * 3. **It keeps the Node-only creation runtime off the frontend graph**, which the section further down\n * states at its own call site.\n *\n * ## The alternative was measured too, and it is worse\n *\n * Moving the content families OUT of `_core` and behind this door (so the root stops publishing them and\n * the duplication disappears at the source) is refused by `_core/family-aspects.registry.ts`: it is\n * ROOT-reachable and aggregates families from all three domains — `_core`, `application-creation` AND\n * `assurance`. It already reaches across two of those boundaries; moving the families would take it from\n * 2 crossings to 15, trading a duplication no checker can see for a rule-7 violation that is real.\n *\n * ## Why no checker reports any of this\n *\n * `check:package-entrypoints` rule 1 compares the ONE-LEVEL `export *` target sets of the root barrel and\n * the subpath barrel. The root's targets are `./application-creation.exports`, `./_core`, `./_catalogs`\n * and `./engine`; this door's are `./_core/market/…`-shaped. The sets do not intersect, so the overlap is\n * structurally invisible to it and there is NO baseline row for this specifier — both #1352 and this\n * package's own root barrel asserted there was one. Widening rule 1 to resolve barrels transitively would\n * make it fire HERE, on a door that is correct, so the blind spot is not a defect to fix by widening: a\n * transitive rule 1 would first need to compare CLOSURES rather than path sets.\n */\nexport * from \"./application-creation/application-document-fact-specification.application-creation.schemas\";\nexport * from \"./application-creation/application-creator-inputs.application-creation.schemas\";\nexport * from \"./application-creation/application-declared-answer.application-creation.schemas\";\nexport * from \"./application-creation/application-declared-answers.application-creation.schemas\";\nexport * from \"./application-creation/application-line.application-creation.schemas\";\nexport * from \"./application-creation/playbook-instance.application-creation.schemas\";\nexport * from \"./application-creation/application-specification-family-decisions.application-creation.schemas\";\nexport * from \"./application-creation/specification-content-validation-state.application-creation.schemas\";\nexport * from \"./application-creation/application-document-release-policy-specification.application-creation.schemas\";\n// Reviewer custody and private authority lifecycle contracts intentionally share this semantic entrypoint.\n/*\n * The authored-metadata vocabularies (`AuthoredConfidence`, `ReviewCadence`).\n *\n * Every `_core` content family carries an optional `authored` block typed by these two enums, so any\n * consumer that reasons about a family's closed vocabularies needs them from the SAME entrypoint it gets\n * the schemas from. They were reachable only through the package root, which meant the structured-artifact\n * renderer — importing schemas here — resolved a different module instance of the enum and could not\n * recognise it as the one its own schema referenced.\n */\nexport * from \"./_core/application-specification-family-identity.schemas\";\nexport * from \"./_core/market/market-authored-metadata.schemas\";\n/*\n * The EXPERT ROLE vocabulary — the shaping-input kinds a seat declares, and the family/aspect each one\n * names. Exported through this door rather than only through the package root for the reason recorded\n * above the family-identity line: a runtime that composes a seat's context resolves its FAMILIES here,\n * so the binding table that joins a shaping kind to a family has to arrive from the same entrypoint or\n * the two sides compare values from different module instances.\n */\nexport * from \"./_core/expert-personas/expert-role-template.schemas\";\n/*\n * The charter CONTENT and its set validator, beside the role templates for the same reason: the semantic\n * authority binds the `expert-personas` family (#572) through THIS entrypoint, and the application-creation\n * runtime may not import the package root (`check:application-creation-boundaries`).\n */\nexport * from \"./_core/expert-personas/expert-persona-charter.schemas\";\nexport * from \"./_core/expert-personas/expert-persona-validation\";\n/*\n * The governed-document CANDIDATE content family. Exported here because the structured-artifact renderer and\n * the semantic authority both resolve schemas through this entrypoint, and identity across them requires one\n * module instance — the same reason the authored-metadata enums above are published from here.\n */\nexport * from \"./_core/compliance-documents/compliance-document-candidate.schemas\";\nexport * from \"./_core/compliance-documents/compliance-document-candidate-set.schemas\";\nexport * from \"./_core/compliance-documents/compliance-document-candidate-generation.schemas\";\nexport * from \"./_core/compliance-documents/required-document-set.schemas\";\nexport * from \"./_core/compliance-documents/processor-register.schemas\";\nexport * from \"./_core/compliance-documents/recipient-population.schemas\";\nexport * from \"./_core/compliance-documents/recipient-disclosures.schemas\";\nexport * from \"./_core/compliance-documents/subject-data-recipients.schemas\";\nexport * from \"./_core/compliance-documents/compliance-completeness-statement.schemas\";\nexport * from \"./_core/compliance-documents/document-fact-specification-generation.schemas\";\nexport * from \"./_core/compliance-documents/computed-document-facts.schemas\";\nexport * from \"./_core/compliance-documents/retention-enforcement-facts.schemas\";\nexport * from \"./_core/compliance-documents/ai-document-facts.schemas\";\nexport * from \"./_core/compliance-documents/launch-blockers.schemas\";\nexport * from \"./application-creation/accepted-change-attribution.application-creation.schemas\";\nexport * from \"./application-creation/journey.application-creation.schemas\";\nexport * from \"./application-creation/playbooks.application-creation.schemas\";\nexport * from \"./application-creation/domain-plan-evaluation-identities.application-creation.definitions\";\n\n// Executable semantic authorities consumed by the Node-only application-\n// creation runtime. Keeping them on this deliberate entrypoint prevents that\n// runtime from loading the broad specifications root and its frontend graph.\nexport * from \"./_core/family-aspects.schemas\";\n// The unavailable-specification vocabulary (#3258): the runtime's atomic specification write refuses to persist a\n// value carrying UNAVAILABLE_SPECIFICATION_MARKER, so it needs this module without the root. The module imports nothing.\nexport * from \"./_core/specification-module-faults\";\nexport * from \"./_core/family-aspects.registry\";\n/*\n * The expert-shaping input vocabulary and its family bindings.\n *\n * `application-specification-context-prose` reads `EXPERT_SHAPING_INPUT_FAMILY_BINDINGS` to turn a\n * shaping input KIND into the specification family that answers it, which is exactly the\n * \"executable semantic authority consumed by the runtime\" this section exists for.\n *\n * Only this module of `_core/expert-personas/` is published, deliberately. Its three siblings\n * (`expert-persona-charter`, `expert-persona-authored-metadata`, `expert-persona-validation`) have\n * no import site outside this package — measured, not assumed — so publishing them would widen the\n * entrypoint for nobody.\n */\nexport * from \"./_core/expert-personas/expert-role-template.schemas\";\nexport * from \"./_core/brand/brand-name.schemas\";\nexport * from \"./_core/brand/brand-snapshot.schemas\";\nexport * from \"./_core/brand/brand-visual-tone.schemas\";\nexport * from \"./_core/brand/brand-audience.schemas\";\nexport * from \"./_core/brand/brand-snapshot-validation\";\nexport * from \"./_core/brand/brand-name-screening.schemas\";\nexport * from \"./_core/brand/brand-name-screening-generation.schemas\";\nexport * from \"./_core/brand/brand-name-screening-validation\";\nexport * from \"./_core/brand/brand-name-choice\";\nexport * from \"./_core/brand/brand-name-screening-view\";\n/*\n * The brand and pricing VOCABULARIES the two snapshots above are built from.\n *\n * Same reason as the authored-metadata enums at the top of this file, and the same defect one layer\n * further out: `BrandLogoMarkType`, `BrandLogoBackgroundTreatment`, `BrandAsset*` and `PricingModelAxis`\n * were reachable only through the package ROOT, so the structured-artifact renderer — which resolves\n * schemas through THIS entrypoint — could not name the enum objects hanging off the very schemas it had\n * just imported. Measured 2026-08-29: `BrandSnapshot` and `BusinessModelLiteSnapshot` could not derive\n * their enum bindings at all, so neither family could ever land a produced artifact.\n *\n * A schema and the vocabularies it is made of must be published from the same entrypoint. Splitting them\n * is not a smaller surface, it is a surface that cannot be used.\n */\nexport * from \"./_core/brand/brand-logo-direction.schemas\";\nexport * from \"./_core/brand/brand-asset.schemas\";\nexport * from \"./_core/business-model-lite/pricing-plan.schemas\";\nexport * from \"./_core/business-model-lite/business-model-lite-snapshot.schemas\";\nexport * from \"./_core/business-model-lite/business-model-lite-snapshot-generation.schemas\";\nexport * from \"./_core/business-model-lite/business-model-lite-snapshot-validation\";\nexport * from \"./_core/definition-specification.schemas\";\nexport * from \"./_core/domain-plan/domain-plan-output-set-generation.schemas\";\nexport * from \"./_core/domain-plan/domain-plan-output-set-validation\";\nexport * from \"./_core/business-semantics.specifications.schemas\";\nexport * from \"./_core/domain-plan/domain-plan-output-set.schemas\";\nexport * from \"./_core/feature-drafts/capability-map-output-set-generation.schemas\";\nexport * from \"./_core/feature-drafts/capability-map-output-set-validation\";\nexport * from \"./_core/feature-drafts/capability-map-output-set.schemas\";\nexport * from \"./_core/feature-drafts/feature-specification-drafts-generation.schemas\";\nexport * from \"./_core/feature-drafts/feature-specification-drafts-validation\";\nexport * from \"./_core/feature-drafts/feature-specification-drafts.schemas\";\nexport * from \"./_core/feature-specification.schemas\";\nexport * from \"./_core/market/market-category.schemas\";\nexport * from \"./_core/market/market-icp.schemas\";\nexport * from \"./_core/market/market-language-coverage\";\nexport * from \"./_core/market/feature-benefit.schemas\";\nexport * from \"./_core/market/market-alternative.schemas\";\nexport * from \"./_core/market/market-buying-journey.schemas\";\nexport * from \"./_core/market/market-channel.schemas\";\nexport * from \"./_core/market/market-gain.schemas\";\nexport * from \"./_core/market/market-job.schemas\";\nexport * from \"./_core/market/market-message-template.schemas\";\nexport * from \"./_core/market/market-objection.schemas\";\nexport * from \"./_core/market/market-pain.schemas\";\nexport * from \"./_core/market/market-persona.schemas\";\nexport * from \"./_core/market/market-positioning.schemas\";\nexport * from \"./_core/market/market-references.schemas\";\nexport * from \"./_core/market/market-proof.schemas\";\nexport * from \"./_core/market/market-snapshot-generation.schemas\";\nexport * from \"./_core/market/market-snapshot.schemas\";\n/*\n * The deterministic FIT scorer. Exported through this door because the creation runtime COMPUTES the\n * per-ICP FIT matrix into a playbook brief (#1435): three methods tell their model to \"feed the\n * scorer and read back the scores\", and a structured generation has no tools, so the arithmetic has\n * to be done for it — the same trade `COHERENCE_REPORT` makes.\n */\nexport * from \"./_core/market/market-scoring\";\nexport * from \"./_core/market/market-snapshot-validation\";\nexport * from \"./_core/market/market-tone-of-voice.schemas\";\nexport * from \"./_core/market/market-trigger.schemas\";\nexport * from \"./_core/build-plan/build-plan-task-graph.schemas\";\nexport * from \"./_core/build-plan/build-plan-task-graph-generation.schemas\";\nexport * from \"./_core/build-plan/build-plan-task-graph-validation\";\nexport * from \"./_core/build-plan/build-plan-relationship-grouping\";\nexport * from \"./_core/capability-composition/capability-composition.schemas\";\nexport * from \"./_core/capability-composition/capability-composition-validation\";\nexport * from \"./_core/website-plan/website-plan.schemas\";\nexport * from \"./_core/website-plan/website-plan-generation.schemas\";\nexport * from \"./_core/website-plan/website-plan-validation\";\nexport * from \"./_core/experience-plan/experience-plan.schemas\";\nexport * from \"./_core/experience-plan/experience-plan-generation.schemas\";\nexport * from \"./_core/experience-plan/experience-plan-validation\";\nexport * from \"./_core/integration-plan/integration-execution-surface-refs.schemas\";\nexport * from \"./_core/integration-plan/integration-plan.schemas\";\nexport * from \"./_core/integration-plan/integration-plan-generation.schemas\";\nexport * from \"./_core/integration-plan/integration-plan-validation\";\nexport * from \"./_core/compliance-posture/compliance-posture.schemas\";\nexport * from \"./_core/compliance-posture/compliance-posture-generation.schemas\";\nexport * from \"./_core/compliance-posture/compliance-posture-validation\";\nexport * from \"./_core/service-method/service-method.schemas\";\nexport * from \"./_core/service-method/service-method-generation.schemas\";\nexport * from \"./_core/service-method/service-method-validation\";\nexport * from \"./_core/service-method/service-method-derivation\";\nexport * from \"./_core/application-maturity/application-maturity.schemas\";\nexport * from \"./_core/application-maturity/application-maturity-validation\";\nexport * from \"./_core/application-maturity/application-maturity-open-items\";\nexport * from \"./_core/placement-plan/placement-plan.schemas\";\nexport * from \"./_core/placement-plan/placement-plan-generation.schemas\";\nexport * from \"./_core/placement-plan/placement-plan-validation\";\nexport * from \"./_core/requirements/functional-requirement.schemas\";\nexport * from \"./_core/requirements/non-functional-requirement.schemas\";\nexport * from \"./_core/requirements/requirement-engine-substance.schemas\";\nexport * from \"./_core/requirements/requirements-snapshot-generation.schemas\";\nexport * from \"./_core/requirements/requirements-snapshot.schemas\";\nexport * from \"./_core/requirements/requirements-snapshot-validation\";\nexport * from \"./_core/requirements/requirements-pain-coverage\";\nexport * from \"./_core/roadmap/roadmap-phase.schemas\";\nexport * from \"./_core/roadmap/roadmap-snapshot-generation.schemas\";\nexport * from \"./_core/roadmap/roadmap-snapshot.schemas\";\nexport * from \"./_core/roadmap/roadmap-snapshot-validation\";\nexport * from \"./_core/vision/vision-authored-metadata.schemas\";\nexport * from \"./_core/vision/vision-constraint.schemas\";\nexport * from \"./_core/vision/vision-idea.schemas\";\nexport * from \"./_core/vision/vision-mission.schemas\";\nexport * from \"./_core/vision/vision-problem.schemas\";\nexport * from \"./_core/vision/vision-success-criterion.schemas\";\nexport * from \"./_core/vision/vision-snapshot-generation.schemas\";\nexport * from \"./_core/vision/vision-snapshot.schemas\";\nexport * from \"./_core/vision/vision-snapshot-validation\";\nexport * from \"./application-creation/structured-artifact-landing.application-creation.schemas\";\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"assurance-evidence-requirement-bodies.definitions.d.ts","sourceRoot":"","sources":["../../../src/assurance/assurance-evidence-requirement-bodies.definitions.ts"],"names":[],"mappings":"AAUA,OAAO,EAGL,KAAK,gCAAgC,EACtC,MAAM,6BAA6B,CAAC;AAgIrC,eAAO,MAAM,qCAAqC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAy1M5G,CAAC"}
1
+ {"version":3,"file":"assurance-evidence-requirement-bodies.definitions.d.ts","sourceRoot":"","sources":["../../../src/assurance/assurance-evidence-requirement-bodies.definitions.ts"],"names":[],"mappings":"AAUA,OAAO,EAGL,KAAK,gCAAgC,EACtC,MAAM,6BAA6B,CAAC;AAgIrC,eAAO,MAAM,qCAAqC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,gCAAgC,CAAC,CA21M5G,CAAC"}
@@ -4820,17 +4820,19 @@ export const ASSURANCE_EVIDENCE_REQUIREMENT_BODIES = {
4820
4820
  plane: AssuranceEvidenceExecutionPlane.PRODUCTION,
4821
4821
  homeRationale: "A durable row class, and the clause exists because a service-principal binding authenticates every remote call as "
4822
4822
  + "one account — so without this field attribution dies at the boundary.\n\n"
4823
- + "**The three members do NOT share an emission unit, and this rationale asserted one for all of them until "
4823
+ + "**The members do NOT share an emission unit, and this rationale asserted one for all of them until "
4824
4824
  + "2026-09-10.** Only the read-through member is one row per read-family OPERATION execution, so that a paginated "
4825
4825
  + "list and the count totalling its envelope are ONE access. The provider-call member is one row per outbound "
4826
4826
  + "call, on success and failure; the agent-tool member is one row per tool call, and its declaration insists it is "
4827
- + "a sibling of the provider member rather than a case of it. Asserting the operation unit across all three "
4828
- + "reports a MAJOR against two working emitters.",
4827
+ + "a sibling of the provider member rather than a case of it; the agent-delegation member (#3930) is one row per "
4828
+ + "delegation to a remote A2A agent, however many requests the delegation took. Asserting the operation unit "
4829
+ + "across them all reports a MAJOR against working emitters.",
4829
4830
  emittedCountLimit: { unreached: "each row carries the REAL initiating user rather than the shared service principal that made the call" },
4830
4831
  requiredAuditEventMembers: [
4831
4832
  CoreAuditableEventType.HTTP_API_READ_THROUGH_ACCESS,
4832
4833
  CoreAuditableEventType.PROVIDER_OPERATION_CALL,
4833
4834
  CoreAuditableEventType.MCP_TOOL_CALL,
4835
+ CoreAuditableEventType.A2A_REMOTE_AGENT_CALL,
4834
4836
  ],
4835
4837
  },
4836
4838
  {