@wildo-ai/saas-specifications 1.1.15 → 1.1.17

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 (147) hide show
  1. package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts +2 -1
  2. package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts.map +1 -1
  3. package/dist/esm/_core/application-maturity/application-maturity-open-items.js +2 -1
  4. package/dist/esm/_core/application-maturity/application-maturity-open-items.js.map +1 -1
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.js +1 -1
  6. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
  7. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.d.ts.map +1 -1
  8. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js +5 -2
  9. package/dist/esm/_core/build-plan/build-plan-relationship-grouping.js.map +1 -1
  10. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +251 -0
  11. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
  12. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js +43 -0
  13. package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.js.map +1 -1
  14. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +43 -0
  15. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
  16. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +58 -0
  17. package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
  18. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts +1 -0
  19. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.d.ts.map +1 -1
  20. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js +5 -1
  21. package/dist/esm/_core/domain-plan/domain-plan-output-set-generation.schemas.js.map +1 -1
  22. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +2 -0
  23. package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
  24. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +3 -0
  25. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
  26. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +12 -1
  27. package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
  28. package/dist/esm/_core/execution-view-specification.schemas.d.ts +19 -3
  29. package/dist/esm/_core/execution-view-specification.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/execution-view-specification.schemas.js +11 -1
  31. package/dist/esm/_core/execution-view-specification.schemas.js.map +1 -1
  32. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts +15 -0
  33. package/dist/esm/_core/market/market-snapshot-generation.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/market/market-snapshot-generation.schemas.js +43 -0
  35. package/dist/esm/_core/market/market-snapshot-generation.schemas.js.map +1 -1
  36. package/dist/esm/_core/service-method/service-method-derivation.d.ts +17 -1
  37. package/dist/esm/_core/service-method/service-method-derivation.d.ts.map +1 -1
  38. package/dist/esm/_core/service-method/service-method-derivation.js +46 -0
  39. package/dist/esm/_core/service-method/service-method-derivation.js.map +1 -1
  40. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts +5 -0
  41. package/dist/esm/_core/service-method/service-method-generation.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/service-method/service-method.family-aspects.d.ts.map +1 -1
  43. package/dist/esm/_core/service-method/service-method.family-aspects.js +1 -0
  44. package/dist/esm/_core/service-method/service-method.family-aspects.js.map +1 -1
  45. package/dist/esm/_core/service-method/service-method.schemas.d.ts +36 -1
  46. package/dist/esm/_core/service-method/service-method.schemas.d.ts.map +1 -1
  47. package/dist/esm/_core/service-method/service-method.schemas.js +49 -1
  48. package/dist/esm/_core/service-method/service-method.schemas.js.map +1 -1
  49. package/dist/esm/_core/utils/extract-field-specs.d.ts +4 -3
  50. package/dist/esm/_core/utils/extract-field-specs.d.ts.map +1 -1
  51. package/dist/esm/_core/utils/extract-field-specs.js +4 -3
  52. package/dist/esm/_core/utils/extract-field-specs.js.map +1 -1
  53. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +5 -4
  54. package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
  55. package/dist/esm/application-creation/playbooks.application-creation.schemas.js +5 -4
  56. package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
  57. package/dist/esm/assurance/assurance-authority-basis.definitions.d.ts +1 -1
  58. package/dist/esm/assurance/assurance-authority-basis.definitions.js +1 -1
  59. package/dist/esm/assurance/assurance-authority-basis.definitions.js.map +1 -1
  60. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.d.ts.map +1 -1
  61. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js +13 -5
  62. package/dist/esm/assurance/assurance-evidence-requirement-bodies.definitions.js.map +1 -1
  63. package/dist/esm/assurance/assurance-objective-catalog.definitions.d.ts.map +1 -1
  64. package/dist/esm/assurance/assurance-objective-catalog.definitions.js +9 -2
  65. package/dist/esm/assurance/assurance-objective-catalog.definitions.js.map +1 -1
  66. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.d.ts.map +1 -1
  67. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js +8 -4
  68. package/dist/esm/assurance/assurance-verification-requirement-bodies.definitions.js.map +1 -1
  69. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.d.ts.map +1 -1
  70. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js +8 -5
  71. package/dist/esm/engine/compliance/resources/signature-requests.resource.specification.js.map +1 -1
  72. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  73. package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
  74. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  75. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.d.ts.map +1 -1
  76. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js +4 -1
  77. package/dist/esm/engine/flows-actors/resources/actor-system-executions.resource.specification.js.map +1 -1
  78. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.d.ts.map +1 -1
  79. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js +3 -0
  80. package/dist/esm/engine/flows-actors/resources/actor-tasks.resource.specification.js.map +1 -1
  81. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.d.ts +3 -0
  82. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.d.ts.map +1 -0
  83. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.js +98 -0
  84. package/dist/esm/engine/flows-actors/resources/remote-agent-task-updates.resource.specification.js.map +1 -0
  85. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.d.ts +3 -0
  86. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.d.ts.map +1 -0
  87. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.js +132 -0
  88. package/dist/esm/engine/flows-actors/resources/remote-agent-tasks.resource.specification.js.map +1 -0
  89. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js +1 -1
  90. package/dist/esm/engine/frontend-components/ai-elements/chat/ai-conversation-thread.frontend-component.specification.js.map +1 -1
  91. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.d.ts +5 -0
  92. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.d.ts.map +1 -0
  93. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.js +79 -0
  94. package/dist/esm/engine/frontend-components/app/app-layout-agent-activity-settings.frontend-component.specification.js.map +1 -0
  95. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.d.ts.map +1 -1
  96. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js +1 -0
  97. package/dist/esm/engine/frontend-components/app/app-layout-connected-accounts-settings.frontend-component.specification.js.map +1 -1
  98. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js +3 -3
  99. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js.map +1 -1
  100. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.d.ts +4 -0
  101. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.d.ts.map +1 -0
  102. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.js +29 -0
  103. package/dist/esm/engine/frontend-components/data-display/signature-requests.frontend-component.specification.js.map +1 -0
  104. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  105. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  106. package/dist/esm/engine/frontend-components/index.d.ts +2 -0
  107. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  108. package/dist/esm/engine/frontend-components/index.js +6 -0
  109. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  110. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.d.ts +8 -0
  111. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.d.ts.map +1 -0
  112. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.js +65 -0
  113. package/dist/esm/engine/notifications/system-emails/delegated-work.system-emails.specification.js.map +1 -0
  114. package/dist/esm/engine/notifications/system-emails/index.d.ts +1 -0
  115. package/dist/esm/engine/notifications/system-emails/index.d.ts.map +1 -1
  116. package/dist/esm/engine/notifications/system-emails/index.js +3 -1
  117. package/dist/esm/engine/notifications/system-emails/index.js.map +1 -1
  118. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts +9 -0
  119. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  120. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +50 -0
  121. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  122. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.d.ts.map +1 -1
  123. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js +25 -0
  124. package/dist/esm/engine/organizations/resources/organization-relationships.resource.specification.js.map +1 -1
  125. package/dist/esm/engine/providers/antigravity.provider.specification.d.ts +7 -0
  126. package/dist/esm/engine/providers/antigravity.provider.specification.d.ts.map +1 -0
  127. package/dist/esm/engine/providers/antigravity.provider.specification.js +54 -0
  128. package/dist/esm/engine/providers/antigravity.provider.specification.js.map +1 -0
  129. package/dist/esm/engine/providers/google-drive.provider.specification.d.ts.map +1 -1
  130. package/dist/esm/engine/providers/google-drive.provider.specification.js +8 -0
  131. package/dist/esm/engine/providers/google-drive.provider.specification.js.map +1 -1
  132. package/dist/esm/engine/providers/index.d.ts +2 -0
  133. package/dist/esm/engine/providers/index.d.ts.map +1 -1
  134. package/dist/esm/engine/providers/index.js +5 -1
  135. package/dist/esm/engine/providers/index.js.map +1 -1
  136. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.d.ts.map +1 -1
  137. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js +17 -0
  138. package/dist/esm/engine/providers/microsoft-onedrive.provider.specification.js.map +1 -1
  139. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.d.ts +7 -0
  140. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.d.ts.map +1 -0
  141. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.js +41 -0
  142. package/dist/esm/engine/providers/outbound-bearer-token.provider.specification.js.map +1 -0
  143. package/dist/esm/engine/providers/twilio.provider.specification.d.ts.map +1 -1
  144. package/dist/esm/engine/providers/twilio.provider.specification.js +3 -0
  145. package/dist/esm/engine/providers/twilio.provider.specification.js.map +1 -1
  146. package/dist/tsconfig.build.tsbuildinfo +1 -1
  147. package/package.json +8 -8
@@ -1 +1 @@
1
- {"version":3,"file":"build-plan-task-graph.schemas.js","sourceRoot":"","sources":["../../../../src/_core/build-plan/build-plan-task-graph.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EACL,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,4BAA4B,EAAE,MAAM,mEAAmE,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAExI;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,yBAEX;AAFD,WAAY,yBAAyB;IACnC,sCAAS,CAAA;AACX,CAAC,EAFW,yBAAyB,KAAzB,yBAAyB,QAEpC;AAED,yHAAyH;AACzH,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAoHX;AApHD,WAAY,uBAAuB;IACjC,8GAA8G;IAC9G,4CAAiB,CAAA;IACjB,6EAA6E;IAC7E,4DAAiC,CAAA;IACjC,6HAA6H;IAC7H,wDAA6B,CAAA;IAC7B,sKAAsK;IACtK,kFAAuD,CAAA;IACvD;;;;;;;;;;;;OAYG;IACH,8DAAmC,CAAA;IACnC;;;;;;;;;OASG;IACH;;;;;;;OAOG;IACH,8DAAmC,CAAA;IACnC;;;;;;OAMG;IACH,4DAAiC,CAAA;IACjC;;;;;;;;OAQG;IACH,sFAA2D,CAAA;IAC3D,i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AC,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QAClC,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,YAAY,EAAE,iBAAiB,EAAE,EAAE;YACpE,IAAI,YAAY,KAAK,IAAI,CAAC,OAAO,EAAE,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,IAAI,CAAC,OAAO,kCAAkC,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC;YAClL,CAAC;iBAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;gBACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,IAAI,CAAC,OAAO,oCAAoC,YAAY,GAAG,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC;YACnM,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,0DAA0D","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 {\n CORE_APP_ROLES,\n CORE_ORG_ROLES,\n DataRetentionClass,\n HumanDecision_RouteKind,\n INBOUND_HANDLER_REF_PATTERN,\n InboundChannelKind,\n LABEL_KEY_SEGMENT_PATTERN,\n OrganizationRowConfinementMode,\n SYSTEM_OF_RECORD_NAME_PATTERN,\n SystemOfRecordAccess,\n} from '@wildo-ai/saas-models';\n\nimport { MetaWorkflow_FunctionalTopic } from '../../application-creation/playbooks.application-creation.schemas';\nimport { PlacementSurface } from '../placement-plan/placement-plan.schemas';\nimport { IntegrationMinionRefSchema, IntegrationWorkerRefSchema } from '../integration-plan/integration-execution-surface-refs.schemas';\n\n/**\n * @wildo_source:part:start build-plan.task-graph.config facet:layer:specification facet:family:build-plan\n *\n * Versioning for the build-plan task-graph payload format itself. `V1` —\n * initial shape (one ordered `tasks` collection with typed targets and\n * declared prerequisites). The shape grows additively across versions; the\n * `version` field is the explicit marker for consumers that branch on era.\n */\nexport enum BuildPlanTaskGraphVersion {\n V1 = 'v1',\n}\n\n/** Stable prefix every build-plan task ref carries; the trusted runtime stamps it, a provider supplies only the slug. */\nexport const BUILD_PLAN_TASK_REF_PREFIX = 'build-task-';\n\n/**\n * WHAT a build task builds — a closed vocabulary, because the host derives\n * the physical mutation scope and verification policy from the target kind\n * and the model must never author those powers through free text.\n */\nexport enum BuildPlanTaskTargetKind {\n /** A whole application module (its shared-lib registration, backend module and frontend module skeletons). */\n MODULE = 'MODULE',\n /** One build stage of one resource: schema → config → ui-behavior → spec. */\n RESOURCE_STAGE = 'RESOURCE_STAGE',\n /** The relationships between resources wired in ONE module's relationships file (#3209): one task per file, not per edge. */\n RELATIONSHIP = 'RELATIONSHIP',\n /** A companion-owned deterministic generation step (labels, email templates, logo or database migrations) interleaved by the build loop, never a coding-agent run. */\n COMPANION_GENERATION_STEP = 'COMPANION_GENERATION_STEP',\n /**\n * Authoring one SHELL SURFACE's placement configuration from the accepted\n * placement plan — the settings rail, the sidebar, the user menu or the\n * command palette.\n *\n * Its own kind rather than a reuse of the neighbours, because none of them is\n * true of it: it is not a MODULE or a RESOURCE_STAGE (it is application-wide\n * and belongs to no resource), not a RELATIONSHIP, and emphatically not a\n * COMPANION_GENERATION_STEP — that kind is documented as \"never a coding-agent\n * run\" and writing `settings-hub.config.ts` is exactly a coding-agent run.\n * Borrowing one would hand the host the wrong mutation scope and the wrong\n * verification, which is what the closed vocabulary exists to prevent.\n */\n SHELL_PLACEMENT = 'SHELL_PLACEMENT',\n /*\n * THE NON-RESOURCE SURFACES (#1490). Until 2026-09-22 the five kinds above were the whole\n * vocabulary, and every one of them is about a resource or the shell placement of one. The\n * decompose method meanwhile told the planner to emit tasks for views, navigation, the design\n * system, custom components, PDF templates, workers, minions, providers, the website and the\n * documentation — surfaces the framework's own composition scenarios and 85 of its 111 skills\n * already build. A task for any of them had no kind to declare, so it either declared none\n * (landing as RAN-not-PROVEN forever) or borrowed `MODULE` with a product the module scope could\n * not prove. The members below are those surfaces, one per write scope the host can derive.\n */\n /**\n * The FRONTEND and SPECIFICATION layers of one module — its composite, custom and chart views,\n * its custom components and their specifications.\n *\n * Narrower than `MODULE` on purpose: a view task never touches `shared-lib` or `backend-api`, so\n * handing it the four-layer scope also hands it four typechecks and the FK sweep for a change\n * that can only break the frontend and the specifications package.\n */\n MODULE_FRONTEND = 'MODULE_FRONTEND',\n /**\n * The BACKEND layer of one module beside its shared-lib declarations — PDF templates and their\n * bindings, backend addons (services, controllers, flows-actors), email definitions.\n *\n * Shared-lib is in scope because a PDF template is bound to a resource FIELD the config declares\n * (`generatedSummaryPdf`), and a backend addon usually declares its contract there first.\n */\n MODULE_BACKEND = 'MODULE_BACKEND',\n /**\n * ONE application-wide frontend configuration surface — navigation, the design system, the app\n * shell's composition, the global views, the shell layout — named by {@link FrontendConfigSurface}.\n *\n * Distinct from {@link SHELL_PLACEMENT}, which authors the placement plan's decisions into the\n * shell files: a placement puts a decided subject in a decided group, while this kind COMPOSES\n * the surface itself (which sidebar sections exist, which transitions the primary zone uses,\n * which palette the product carries). Same file for `APP_SHELL`, different question.\n */\n APPLICATION_FRONTEND_CONFIG = 'APPLICATION_FRONTEND_CONFIG',\n /** The marketing website workspace (`website/`), composed by the `add-website` scenario. Pages and sections are its products. */\n WEBSITE = 'WEBSITE',\n /**\n * The technical-documentation workspace (`technical-doc/`) and the specification package's\n * `technical-documentation/` declarations that feed it. Its generated tree is never written by a\n * task: the companion publishes into it, and the coding policy prohibits it by prefix.\n */\n TECHNICAL_DOCUMENTATION = 'TECHNICAL_DOCUMENTATION',\n /** One worker package (`workers/<slug>/`, named by the integration plan's `worker-<slug>`), Node or Rust, plus its declaration in the SaaS config. */\n WORKER = 'WORKER',\n /** One cron minion package (`minions/<slug>/`, named by the integration plan's `minion-<slug>`) plus its declaration in the SaaS config. */\n MINION = 'MINION',\n /**\n * Declaring one provider in the application — the SaaS config's provider scopes, the backend\n * package dependency, the frontend provider module and its companion contribution.\n *\n * Application-wide by construction: a provider binding names no module, and the four files it\n * may touch are the same for every provider.\n */\n PROVIDER_BINDING = 'PROVIDER_BINDING',\n /**\n * The application's BILLING CATALOGUE — the `ProductDefinition[]` in `shared-lib/src/engine/product.ts`\n * (and the product specifications that document it), which the backend syncs to the billing\n * provider and the public website reads for its pricing page (#1835).\n *\n * Its own kind because none of the others is true of it: the catalogue is application-wide (a plan\n * belongs to no module), it lives in the shared library's ENGINE module that no `MODULE_*` scope\n * reaches, and before it existed a journey-built application reached its website with an EMPTY\n * catalogue, so the website re-typed the business model's prices by hand.\n */\n BILLING_CATALOG = 'BILLING_CATALOG',\n /**\n * The application's own ROLES — `CUSTOM_ROLES_CONFIGURATION` in `shared-lib/src/engine/roles.ts`, the\n * organization types that offer them (`availableOrgRoles` in `wildo.saas.config.ts`), their\n * specifications, and the `roles` of the operations they unlock (#2490).\n *\n * Its own kind because none of the others reaches it: the role table is application-wide and lives in\n * the shared library's ENGINE module. Before it existed a requirement naming user groups (\"office and\n * field users see different things\") had no task able to declare a role, so app-creation-test-005\n * modelled roles as an access-role RESOURCE that nothing reads.\n */\n APPLICATION_ROLES = 'APPLICATION_ROLES',\n /**\n * The application's ORGANIZATION MODEL (#3035, #3036): the organization types and the relationship kinds between them,\n * declared in `wildo.saas.config.ts` (`organizationTypes`, `organizationRelationships`), and the confinements of an\n * organization's rows to its units or to their owners, declared in the backend's startup configuration\n * (`backend-api/src/bootstrap-config.ts`: `organizationUnitNarrowing`, `organizationOwnRows`).\n *\n * Its own kind because none of the others is true of it. It is application-wide and names no module, like the role\n * table, but it is not the role table: an organization type is the shape a tenant takes (its user types, the roles it\n * offers, how it is joined), and a relationship kind is what one organization may do for another. Borrowing\n * `APPLICATION_ROLES` would have given a task deciding them the role table's scope and the roles skill. Before it\n * existed, creation could lay these down only from fixed blueprints, and a confinement the requirements stated\n * produced no work at all, so a generated internal tool showed every record to every member.\n */\n ORGANIZATION_MODEL = 'ORGANIZATION_MODEL',\n}\n\n/**\n * WHICH application-wide frontend configuration surface a task composes — one file each (in\n * `frontend/src/config/`, except the shell layout, whose one line lives in the engine registrations\n * file), and the coding policy resolves the member to that file exactly as `SHELL_PLACEMENT` resolves\n * a `PlacementSurface`.\n *\n * Its own vocabulary rather than a reuse of `PlacementSurface`: a placement surface is WHERE a\n * subject sits in the shell (settings hub, sidebar, user menu, command palette), and three of\n * those live in one file. A configuration surface is WHICH FILE a composition task authors, and\n * navigation and the design system are not places anything is placed.\n */\nexport enum FrontendConfigSurface {\n /** `frontend/src/config/navigation.config.ts` — zones, transitions, overlay appearance. */\n NAVIGATION = 'NAVIGATION',\n /** `frontend/src/config/design-system.config.ts` — palette, typography, shell appearance from the brand's visual tone. */\n DESIGN_SYSTEM = 'DESIGN_SYSTEM',\n /** `frontend/src/config/app-shell.config.ts` — top bar, sidebar sections, quick switcher: the shell's COMPOSITION, not a placement into it. */\n APP_SHELL = 'APP_SHELL',\n /** `frontend/src/config/global-views.config.ts` — the application-level launcher and view registrations. */\n GLOBAL_VIEWS = 'GLOBAL_VIEWS',\n /**\n * `frontend/src/engine/component-registrations.frontend.ts` — the ONE animated 2D shell layout the application moves\n * in (`register2DLayout(MORPH_LAYOUT_2D, { speed })`), decided beside the design system because both are the\n * brand's: the design system its palette and pace, the layout how the shell moves at that pace. Its single\n * declaration names the layout constant, written out. A 3D layout is never decided here: it is the operator's\n * opt-in, through the `add-3d-layout` composition scenario.\n */\n SHELL_LAYOUT = 'SHELL_LAYOUT',\n}\n\n/**\n * The two shapes of guidance an application gives a person, and the file each is declared in.\n *\n * They are distinct because they are found differently: an onboarding DOCUMENT is embedded in a\n * screen (`EmbedOnboarding`) and is there whenever that screen is, while a guidance FLOW is started\n * by an event and shows once. Both are listed on the owning frontend module — `onboardingViews` and\n * `guidanceFlows`. Each kind has a CONVENTIONAL definitions file, which the authoring skill teaches\n * and a landing probe reads for the declared ref (alongside the module's `index.ts`, where a small\n * module may declare inline). A convention for generated applications: a hand-authored application\n * may keep its declarations elsewhere, and then simply is not probed by a build plan.\n */\nexport enum ApplicationGuidanceKind {\n /** `frontend/src/modules/<m>/app-level-views/onboarding-views.definitions.ts` — an embedded onboarding document. */\n ONBOARDING_DOCUMENT = 'ONBOARDING_DOCUMENT',\n /** `frontend/src/modules/<m>/app-level-views/guidance-flows.definitions.ts` — a triggered guidance flow. */\n GUIDANCE_FLOW = 'GUIDANCE_FLOW',\n}\n\n/**\n * The two worker runtimes the framework composes (`add-worker-node`, `add-worker-rust`). The\n * runtime decides the entry file a landing probe reads and whether a typecheck exists to run: a\n * Node worker is verified by its package typecheck, a Rust worker has no TypeScript to check and\n * the policy says so rather than inventing a command.\n *\n * Not the SaaS config's `WorkerRuntime`, which is a free-form `{ type, language }` pair an\n * application authors for deployment; this is the closed set a creation run can COMPOSE.\n */\nexport enum BuildPlanWorkerRuntime {\n NODE = 'NODE',\n RUST = 'RUST',\n}\n\n/**\n * WHERE a provider is bound — which runtime owner's scope its declaration lands in. Each member\n * is a different file, so a probe and a write grant both derive from it.\n *\n * Named after the SaaS config's own scope keys (`providers.scopes.backend`, `.companion`,\n * `.frontendServices.app`, `.frontendServices.website`), which the `add-provider` and\n * `add-file-picker-provider` scenarios write. Minion and worker scopes are deliberately absent:\n * a provider reaching a minion is declared on that minion's own `providers` block and belongs to\n * the {@link BuildPlanTaskTargetKind.MINION} task that builds it.\n */\nexport enum ProviderBindingScope {\n BACKEND = 'BACKEND',\n COMPANION = 'COMPANION',\n FRONTEND_APP = 'FRONTEND_APP',\n WEBSITE = 'WEBSITE',\n}\n\n/**\n * The inbound channels a creation run can PLAN (#1630, #3394): the members of `InboundChannelKind` an application\n * declares as channels work arrives on, and that a channel handler can be built for. One list, read by the integration\n * plan's declaration and by the build task's product, so the two cannot disagree about what is plannable.\n *\n * `EMAIL` (received by the `EMAIL_INBOUND` provider, routed by the address) and `SMS` (received by the SMS provider's\n * notification endpoint, routed by the number the text was sent TO). `WEBHOOK` is absent on purpose: it is the channel\n * every signed delivery from another system arrives on, derived for that delivery and never declared.\n *\n * ## A NAMED const object, not a TypeScript enum and not an array (#3685)\n *\n * The schemas read it as `z.enum(PlannableInboundChannelKind)`, so the schema node keeps THIS object as its\n * vocabulary, and a landed build or integration plan can name it: `deriveLandingRenderEnumBindings` resolves an\n * enum node by the IDENTITY of that object against the package's exports. `z.enum([EMAIL, SMS])` built a fresh\n * anonymous object, which nothing exports, so every plan landing refused (\"Closed vocabularies with no exported\n * name … tasks.*.produces.*.channel (email, sms)\"), so no build plan could land at all.\n *\n * Not a TypeScript enum, because a subset of a vocabulary must keep the OWNER's members: an enum would make\n * `PlannableInboundChannelKind.SMS` a nominal type of its own, no longer an `InboundChannelKind`, and every reader\n * that maps a planned channel onto the inbound vocabulary would stop compiling. Each member here IS the\n * `InboundChannelKind` member, so a landed `PlannableInboundChannelKind.SMS` is assignable where the channel is read.\n */\nexport const PlannableInboundChannelKind = {\n EMAIL: InboundChannelKind.EMAIL,\n SMS: InboundChannelKind.SMS,\n} as const;\nexport type PlannableInboundChannelKind = (typeof PlannableInboundChannelKind)[keyof typeof PlannableInboundChannelKind];\n\n/**\n * The same vocabulary as a list, for code that iterates it. Derived from {@link PlannableInboundChannelKind}, never\n * written twice.\n */\nexport const PLANNABLE_INBOUND_CHANNEL_KINDS: readonly PlannableInboundChannelKind[] = Object.values(PlannableInboundChannelKind);\n\n/** The per-resource build stages, in their fixed order. */\nexport enum BuildPlanResourceStage {\n SCHEMA = 'SCHEMA',\n CONFIG = 'CONFIG',\n UI_BEHAVIOR = 'UI_BEHAVIOR',\n SPEC = 'SPEC',\n}\n\nconst SlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\n/**\n * The key of the domain-plan MODULE a task targets or produces (`deals`, `tasks-manager`). Same\n * slug grammar as the other keys, declared as its own schema because it names one thing — a\n * module — where the other slugs name resources, relationships, steps, workers and products.\n */\nconst ModuleRefSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\n/**\n * The governed document a task produces, named as a COMPLIANCE-DOCUMENT CANDIDATE names it:\n * `document:<namespace>.<id>`, e.g. `document:public.privacy-notice`.\n *\n * **This field was `SlugSchema`, and a slug cannot name a governed document — so until 2026-09-16 no\n * build plan in any application could declare a document the engine catalog defines.** A slug forbids\n * the colon and the dot, the catalog's definitions are `document-definition:public.privacy-notice`,\n * and `selectAssuranceDocumentBlueprintForDocumentRef` joins the two namespaces by exact suffix — so\n * every authored `documentRef` resolved to NO blueprint, and a blueprint is what says which sections,\n * facts and claim guards the document owes. The two vocabularies were disjoint by construction.\n *\n * The cost is measured rather than theoretical. Wonder CRM's plan declares two such products\n * (`gdpr-data-handling-governance`, `terminal-access-governance`), neither of which names anything;\n * the first was dispatched, and its agent spent a full turn establishing — with a positive control —\n * that the document does not exist and could only be invented, which the authoring skill forbids.\n *\n * The bare slug is STILL ACCEPTED, and that is deliberate rather than tidiness left undone: tightening\n * this to the namespaced form alone would make every already-accepted plan carrying one fail to parse,\n * and a build plan that cannot be READ stops the whole lane — the gate\n * `application-creation-directive.md` forbids, for a task nobody can fix by re-running anything. A slug\n * simply resolves to no blueprint, so the dispatcher skips that task with a message naming the ref,\n * and the rest of the plan proceeds.\n */\nconst DocumentProductRefSchema = z.union([\n z.string().regex(/^document:[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z0-9]+(?:-[a-z0-9]+)*$/),\n SlugSchema,\n]);\n/**\n * A skill ref is the skill's FOLDER id in the app-knowledge catalog, which is\n * also its `SKILL.md` frontmatter `name` — one id, kebab-case. The host refuses\n * any skill name outside `[a-z0-9-]+`, so a ref that does not match this shape\n * can never resolve to an installed skill.\n */\nconst SkillRefSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/**\n * WHAT a build task PRODUCES — the artifact whose presence in the application\n * proves the task is done.\n *\n * **This is not `target`, and the difference is the whole reason it exists.**\n * `target` is a WRITE SCOPE: the host turns it into the path prefixes a run may\n * mutate, and several tasks legitimately share one. `produces` is a PRODUCT\n * IDENTITY: it says which artifact this task, and no other, is accountable for.\n *\n * Measured 2026-09-10 on Wonder CRM (issue #597): `build-task-pipeline-view`\n * and `build-task-deal-follow-through-operation` carry BYTE-IDENTICAL targets\n * (`{ kind: MODULE, moduleRef: 'deals' }`), and 7 of that plan's 42 tasks share\n * 3 targets. Landing had been answered by narrowing the target to a module\n * DIRECTORY — which `wildo compose` commits on day one, and which cannot tell\n * two tasks apart even in principle. The loop reported 40 of 42 tasks landed\n * while no coding task had ever run, so `dispatch-next` skipped every one of\n * them and the phase-advance gate read a build that was all but complete.\n *\n * Like `target`, this stays SEMANTIC: a product names a resource, a field, a\n * relationship or a view — never a path, and never a command. The host owns the\n * translation from a product to the physical question it asks of the working\n * tree, exactly as it owns the translation from a target kind to path prefixes.\n * A model that could author the path could author its own mutation scope.\n */\nexport enum BuildPlanTaskProductKind {\n /**\n * Named fields on one resource's schema.\n *\n * The shape an ENRICHMENT task needs, and the reason a product cannot always\n * be \"a file\": every resource file already exists, written by the scaffold\n * with its self-described STARTER shape, so file presence answers nothing.\n * The FIELDS are what the task adds.\n */\n RESOURCE_SCHEMA_FIELDS = 'RESOURCE_SCHEMA_FIELDS',\n /**\n * One resource's declared operations — its registry presence, named by the verbs it gains.\n *\n * The VERBS, not the config file: `<r>.resources-config.ts` is written by the scaffold, so its\n * existence is satisfied before any task runs. That is the exact shape of the defect this\n * vocabulary replaces, and a kind that reproduced it would be worse than no kind at all.\n */\n RESOURCE_REGISTRATION = 'RESOURCE_REGISTRATION',\n /** One resource's frontend ui-behavior. */\n RESOURCE_UI_BEHAVIOR = 'RESOURCE_UI_BEHAVIOR',\n /**\n * One resource's specification, named by the fields it documents.\n *\n * The FIELDS, for the same reason as {@link RESOURCE_REGISTRATION}: every resource is scaffolded\n * with a `*.resource.specification.ts` documenting only the starter shape, so file existence\n * proves nothing about the task that was meant to enrich it.\n */\n RESOURCE_SPECIFICATION = 'RESOURCE_SPECIFICATION',\n /** One relationship edge between two resources, named by the domain plan's `relationshipRef`. */\n RESOURCE_RELATIONSHIP = 'RESOURCE_RELATIONSHIP',\n /** One named custom operation on one resource. */\n RESOURCE_OPERATION = 'RESOURCE_OPERATION',\n /** One named application-level view. */\n APPLICATION_VIEW = 'APPLICATION_VIEW',\n /** One named governed application document (a compliance notice, a governance statement). */\n APPLICATION_DOCUMENT = 'APPLICATION_DOCUMENT',\n /** One application module, registered across the layer registries under one module identity. */\n APPLICATION_MODULE = 'APPLICATION_MODULE',\n /*\n * THE NON-RESOURCE PRODUCTS (#1490). Each names an artifact of a surface the five target kinds\n * above `MODULE_FRONTEND` could not express, and each is probed by the host from committed bytes —\n * a declaration in the one file that registers it, never a directory a scenario already wrote.\n */\n /**\n * Named declarations in ONE application-wide frontend configuration file — a sidebar section\n * ref the app shell gains, a zone the navigation config declares, a token the design system sets.\n *\n * The DECLARATIONS, never the file: every `frontend/src/config/*.config.ts` is written by\n * `wildo init`, so its presence is true before any task runs. Same reasoning as\n * {@link RESOURCE_SCHEMA_FIELDS}, one level up.\n */\n APPLICATION_FRONTEND_CONFIG = 'APPLICATION_FRONTEND_CONFIG',\n /**\n * One composite view of one resource — the cross-resource surface a resource's ui-behavior\n * declares under `compositeViews`. Distinct from {@link APPLICATION_VIEW}, which is\n * application-level and owned by a module rather than a resource.\n */\n RESOURCE_COMPOSITE_VIEW = 'RESOURCE_COMPOSITE_VIEW',\n /** One custom operation or execution view of one resource, bound in its ui-behavior. */\n RESOURCE_CUSTOM_VIEW = 'RESOURCE_CUSTOM_VIEW',\n /** One chart view of one resource, declared under its ui-behavior's `chartViews`. */\n RESOURCE_CHART_VIEW = 'RESOURCE_CHART_VIEW',\n /** One custom frontend component, registered by `componentRef` in the module's or the engine's registrations. */\n CUSTOM_COMPONENT = 'CUSTOM_COMPONENT',\n /**\n * One milestone a module declares — the moment the application recognises and celebrates.\n *\n * Named by its identifier, which is what the module's `milestones.ts` declares\n * (`first-project-created` is spelled `FIRST_PROJECT_CREATED` there). The module FILE is not the\n * product: a module may carry milestones before this task runs, and only the identifier says this\n * one landed.\n */\n APPLICATION_MILESTONE = 'APPLICATION_MILESTONE',\n /** One onboarding document or guidance flow a module declares, named by its ref. */\n APPLICATION_GUIDANCE = 'APPLICATION_GUIDANCE',\n /** One PDF template bound to one resource's generated-file field. */\n PDF_TEMPLATE = 'PDF_TEMPLATE',\n /**\n * One worker's JOBS — the named handlers its entry file declares.\n *\n * The jobs, not the package: `add-worker-node` writes the package, so its directory proves\n * nothing. What a coding task adds is behaviour, and behaviour is a symbol in the entry file.\n */\n APPLICATION_WORKER = 'APPLICATION_WORKER',\n /** One minion's BEHAVIOURS — the named tick handlers its entry file declares. Same reasoning as the worker. */\n APPLICATION_MINION = 'APPLICATION_MINION',\n /** One provider declared in one runtime owner's scope. */\n PROVIDER_BINDING = 'PROVIDER_BINDING',\n /**\n * One product of the application's billing catalogue — a plan, add-on or purchase the application\n * sells — named by its catalogue `key`, which the catalogue file declares (`key: 'team'`).\n *\n * The KEY, not the file: `wildo init` writes `product.ts` with an empty catalogue, so the file proves\n * nothing. Written from the accepted business model's pricing plans, with the plan's price as typed\n * money and the pricing-surface facts (recommended, price disclosure, availability) the plan implies.\n */\n APPLICATION_BILLING_PRODUCT = 'APPLICATION_BILLING_PRODUCT',\n /**\n * One data seed a module declares — rows the application creates for itself, named by the seed's\n * `seedKey` (`crm:demo-customers`).\n *\n * The seed is its own file, `backend-api/src/modules/<module>/seeds/<seedKey with ':' as '.'>.seed.ts`,\n * and it lands only once the module registers it — a seed file nothing imports never runs. Its\n * {@link BuildPlanDataSeedContent} says whether it is REFERENCE data the application needs everywhere\n * or DEMONSTRATION data that must never reach production.\n */\n APPLICATION_DATA_SEED = 'APPLICATION_DATA_SEED',\n /** One website page, registered in the website root config by its manifest. */\n WEBSITE_PAGE = 'WEBSITE_PAGE',\n /** One section of one website page, declared in that page's sections file. */\n WEBSITE_SECTION = 'WEBSITE_SECTION',\n /**\n * One authored documentation chapter — a consumer guide the specifications package declares\n * for the documentation portal to publish (#874's publication input).\n */\n DOCUMENTATION_CHAPTER = 'DOCUMENTATION_CHAPTER',\n /**\n * One inbound CHANNEL handler — the code that decides what a message arriving on a channel causes\n * (#1832). Named by the handler's `ref` (`matters.mail-intake`), which the handler file spells and whose\n * file NAME is derived from it, so the module index's import of that file is what proves the handler is\n * registered. Produced once per channel the integration plan declares (`inboundChannels`).\n */\n INBOUND_CHANNEL_HANDLER = 'INBOUND_CHANNEL_HANDLER',\n /**\n * One role the application declares, named by its role name (`FIELD_TECHNICIAN`), which is its key in\n * `CUSTOM_ROLES_CONFIGURATION`. The NAME, not the file: `wildo init` writes `roles.ts` with an empty\n * table, so the file proves nothing (#2490).\n */\n APPLICATION_ROLE = 'APPLICATION_ROLE',\n /*\n * AGENT WORK (#2966). An agent, the approval gate on one of its tools, and the resource whose rows are the cases its\n * work is costed to. None of them is a name the tree spells in one file: an agent's ref and a gate's role are written\n * through constants in other files, and a gate is a property of a tool object. So each is proven from the REGISTRY the\n * application's backend registers at startup, read through introspection, never from text.\n */\n /**\n * One AI agent the application registers, named by its `ref` — a chat agent's (`agents`) or an autonomous agent's\n * (`autonomousAgents`), as its {@link BuildPlanAgentShape} says. Its shape also decides the skill it is built with.\n */\n APPLICATION_AGENT = 'APPLICATION_AGENT',\n /**\n * The approval gate on one function tool (`humanApproval`): its calls wait for the person the ROUTE names, holding the\n * role the gate requires. Proven when the registered tool's gate has that route and that role, so a gate routed to the\n * wrong role, or a tool left ungated, does not land.\n */\n AGENT_APPROVAL_GATE = 'AGENT_APPROVAL_GATE',\n /**\n * One resource declared as the application's unit of work (`workUnit: true`): its rows are the cases model spend is\n * attributed to, and cost per case is read by them.\n */\n WORK_UNIT_RESOURCE = 'WORK_UNIT_RESOURCE',\n /**\n * One operation of one resource that records usage of one METERED billing product when it succeeds (`recordsUsage`,\n * #2305 S5). How a price per case is billed: the operation that closes a case records one unit, once per case. Proven\n * from the registry like the agent work: the declaration is a property of one operation object in the resource's\n * configuration, which no text in the tree ties to that operation.\n */\n METERED_USAGE_RECORDING = 'METERED_USAGE_RECORDING',\n /**\n * One resource's rows bound to one of the application's retention classes (`retentionBinding`, #2305 S6): how long the\n * firm's case evidence is kept. Proven from the registry: the binding is a property of the resource's configuration.\n */\n RESOURCE_RETENTION_BINDING = 'RESOURCE_RETENTION_BINDING',\n /**\n * One role CONFERRED through one organization relationship kind (#2305 S6): the relationship's `confers.roles` holds it\n * and every organization type the relationship grants offers it (`availableOrgRoles`). How the firm's people come to\n * hold, for a client, the role a decision of its method requires. Proven from the application's configuration\n * (`wildo.saas.config.ts`), read fresh at landing: the role is spelled through constants, so no text can prove it.\n * \"Conferred\" is the kind's CEILING: each client still grants the role, or not, on its own relationship. And the fresh\n * read re-evaluates the configuration and the files it imports by relative path; a value imported from a package is\n * read from that package's build.\n */\n RELATIONSHIP_CONFERRED_ROLE = 'RELATIONSHIP_CONFERRED_ROLE',\n /*\n * THE ORGANIZATION MODEL (#3035, #3036, #3039). What the domain plan's `organizationModel` decides, each proven from what\n * the application DECLARES: its configuration, read fresh, for a type and a relationship kind; the registry its backend\n * assembles at startup for a confinement and a binding. None of them is a name the tree spells in one place (a\n * resource type is written through its constant, a binding's instance through a declaration helper), so no text probe\n * could prove them.\n */\n /**\n * One organization type the application declares in `wildo.saas.config.ts` `organizationTypes`: the shape a tenant\n * takes. Lands when the configuration, read fresh, declares the type carrying what the plan decided of it (the roles\n * it offers, the user types it grants, a required second factor).\n *\n * The type that OWNS the application is identified by `ownsApplication`, never by its key. By the time the build runs\n * the platform has already created the operator's organization under the scaffold's key (`workspace`), and the\n * application line may have set its joining posture, so a plan naming its owner `group` revises THAT type: adding a\n * second owner type is refused by the configuration at startup, and replacing it would lose the organization already\n * created. Its key and its people's user type are renamed to the plan's through a declared rename (`renamedFrom`,\n * #3044), which the foundation usually makes; the product lands only under the plan's key, granting exactly the plan's\n * user types.\n */\n ORGANIZATION_TYPE = 'ORGANIZATION_TYPE',\n /**\n * One kind of relationship between organizations, by its key in `organizationRelationships` (`partnership`): which\n * types represent and which grant, and what the relationship may confer. Never a module and never a resource\n * (#2617): the engine owns the relationship rows. Lands when the configuration, read fresh, declares the key.\n */\n ORGANIZATION_RELATIONSHIP_KIND = 'ORGANIZATION_RELATIONSHIP_KIND',\n /**\n * One resource's rows confined below the whole organization (#3036), in one {@link OrganizationRowConfinementMode}: to\n * the unit a member holds a role in (`organizationUnitNarrowing`), or to the rows a member owns (`organizationOwnRows`),\n * on the field the plan names. Lands when the backend's startup configuration declares the resource in that mode on\n * that field. One resource may be confined in both modes (a department head sees the department's requests, an\n * employee only their own), so the mode is part of the product's identity.\n */\n ORGANIZATION_UNIT_CONFINEMENT = 'ORGANIZATION_UNIT_CONFINEMENT',\n /**\n * One resource whose records live in a system of record (#3039), bound to the instance the application declares under\n * `systemsOfRecord` (`odoo`), of the vendor the domain plan named. Read through (`httpApiBinding`) or copied (an\n * inbound `externalDataPipeline`), as its {@link SystemOfRecordAccess} says. Lands when the resource's configuration\n * binds that instance through that lane and the configuration declares the instance with that vendor, partitioned\n * exactly when the plan splits the records by legal entity (#3045; a copy then stamps each row's partition).\n */\n SYSTEM_OF_RECORD_BINDING = 'SYSTEM_OF_RECORD_BINDING',\n}\n\n/**\n * How an agent is started and talked to (#2966), which decides the skill it is built with\n * ({@link BUILD_PLAN_AGENT_SHAPE_SKILL_REF}) and where its ref is registered.\n */\nexport enum BuildPlanAgentShape {\n /** A person converses with it in the application. Registered under the module's `agents`. */\n CHAT_ASSISTANT = 'CHAT_ASSISTANT',\n /** It runs with nobody signed in: on a schedule, or when a message arrives. Registered under `autonomousAgents`. */\n AUTONOMOUS = 'AUTONOMOUS',\n /** The application's own code calls it once and uses its answer. Registered under `agents`. */\n INVOKED = 'INVOKED',\n /** One step of a declared flow. Registered under `agents`. */\n FLOW_STEP = 'FLOW_STEP',\n}\n\n\n/**\n * What a data seed's rows ARE, which decides where they may exist.\n *\n * - `REFERENCE` — rows the application needs to work wherever it runs: a closed list, a default\n * record, a system template. Every environment, production included.\n * - `DEMONSTRATION` — sample rows that make a freshly created application look lived-in (customers,\n * projects, a few records per list). They must never sit beside real rows, so the seed declares\n * `allowedApplicationEnvironments` without `production`, and the task lands only once it does.\n */\nexport enum BuildPlanDataSeedContent {\n REFERENCE = 'REFERENCE',\n DEMONSTRATION = 'DEMONSTRATION',\n}\n\n/**\n * A data seed's key: kebab-case segments joined by `:` (`crm:demo-customers`), the convention a\n * `DataSeedDefinition` documents. Constrained here because the seed's FILE is derived from it.\n */\n/**\n * An application role's name, as `CUSTOM_ROLES_CONFIGURATION` keys it: upper snake case (`FIELD_TECHNICIAN`).\n * A core role (`ORG_MEMBER`, `APP_ADMIN_SUPER_ADMIN`) is not something an application declares, so the\n * product refuses one: a plan naming it would claim to create a role the engine already owns.\n */\nexport const APPLICATION_ROLE_NAME_PATTERN: RegExp = /^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$/;\n/** Every role the ENGINE defines: an application role may not take one of these names, and a qualification may name one without declaring it. */\nexport const CORE_ROLE_NAMES: ReadonlySet<string> = new Set<string>([...Object.values(CORE_APP_ROLES), ...Object.values(CORE_ORG_ROLES)]);\n\n/**\n * An agent's or a function tool's ref: segments of letters and digits joined by `.`, `-` or `_`\n * (`close-assistant.chat.agent`, `todos.overdue-triage`, `resource.adjustmentProposals.post`). Case is kept, because a\n * tool ref follows the framework's `resource.<resourceType>.<operation>` convention and a multi-word resource type is\n * camelCase. Constrained because the probe compares it EXACTLY with the registered ref: no space, no slash, no empty\n * segment.\n */\nexport const AGENT_WORK_REF_PATTERN: RegExp = /^[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*$/;\n\n/**\n * A step or a decision point of the firm's method (#2305), addressed as `<serviceRef>/<elementRef>`\n * (`month-end-close/approve-posting`). A step's and a decision's ref are unique only within their service, so the\n * service qualifies them; the `service-method` family declares both halves as kebab-case slugs.\n */\nexport const SERVICE_METHOD_ELEMENT_REF_PATTERN: RegExp = /^[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-z0-9]+(?:-[a-z0-9]+)*$/;\n\n/** The ref a build-plan product carries for one step or decision point of the method (#2305). */\nexport function serviceMethodElementRef(serviceRef: string, elementRef: string): string {\n return `${serviceRef}/${elementRef}`;\n}\n\nexport const DATA_SEED_KEY_PATTERN: RegExp = /^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*)*$/;\n\n/**\n * One artifact a task is accountable for. Closed by construction: a product the\n * host cannot ask a question about is a product that can never be shown to have\n * landed, so the vocabulary only grows alongside the resolver that answers it.\n */\nexport const BuildPlanTaskProductSchema = z.discriminatedUnion('kind', [\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RESOURCE_SCHEMA_FIELDS).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /**\n * At least one field, because a task that enriches a schema with nothing is\n * the vacuity this whole field exists to stop: it would land the moment the\n * scaffold existed, which is the defect being fixed.\n */\n fieldRefs: z.array(NonEmptyStringSchema).min(1),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_REGISTRATION).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, operationRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_UI_BEHAVIOR).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_SPECIFICATION).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, fieldRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RESOURCE_RELATIONSHIP).systemEnum('BuildPlanTaskProductKind'),\n relationshipRef: SlugSchema,\n /*\n * The two resources the edge relates, NAMED rather than parsed out of the ref.\n *\n * A ref is `<source>-<target>` by convention and that convention is not invertible:\n * `next-step-deal` splits as (`next`, `step-deal`) or (`next-step`, `deal`) and only the domain\n * plan knows which. The domain plan already carries both, so the plan passes them on instead of\n * making the host guess — a host that guesses wrong probes for a resource that does not exist\n * and reports the task permanently unlanded.\n */\n sourceResourceRef: SlugSchema,\n targetResourceRef: SlugSchema,\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_OPERATION).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, operationRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_VIEW).systemEnum('BuildPlanTaskProductKind'), viewRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_DOCUMENT).systemEnum('BuildPlanTaskProductKind'), documentRef: DocumentProductRefSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MODULE).systemEnum('BuildPlanTaskProductKind'), moduleRef: ModuleRefSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_FRONTEND_CONFIG).systemEnum('BuildPlanTaskProductKind'),\n configSurface: z.enum(FrontendConfigSurface).systemEnum('FrontendConfigSurface'),\n /** At least one, for the same vacuity reason as a schema's `fieldRefs`: the file exists on day one. */\n declarationRefs: z.array(NonEmptyStringSchema).min(1),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_COMPOSITE_VIEW).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, viewRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_CUSTOM_VIEW).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, viewRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_CHART_VIEW).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, chartRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.CUSTOM_COMPONENT).systemEnum('BuildPlanTaskProductKind'), componentRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MILESTONE).systemEnum('BuildPlanTaskProductKind'), milestoneRef: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_GUIDANCE).systemEnum('BuildPlanTaskProductKind'),\n /** Which definitions file carries it — a document and a flow live in different ones. */\n guidanceKind: z.enum(ApplicationGuidanceKind).systemEnum('ApplicationGuidanceKind'),\n guidanceRef: SlugSchema,\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.PDF_TEMPLATE).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /** The generated-file FIELD the template is bound to (`generatedSummaryPdf`) — a symbol, so any spelling. */\n templateRef: NonEmptyStringSchema,\n /**\n * #2305 S6: the deliverable of the firm's method this document is, as `<serviceRef>/<deliverableRef>`. Its resource\n * must be the one the deliverable is produced from; the derivation check compares them.\n */\n serviceMethodDeliverableRef: z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN).optional(),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_WORKER).systemEnum('BuildPlanTaskProductKind'), workerRef: IntegrationWorkerRefSchema, jobRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MINION).systemEnum('BuildPlanTaskProductKind'), minionRef: IntegrationMinionRefSchema, behaviorRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.PROVIDER_BINDING).systemEnum('BuildPlanTaskProductKind'),\n providerRef: SlugSchema,\n scope: z.enum(ProviderBindingScope).systemEnum('ProviderBindingScope'),\n /**\n * The provider this module adds operations to, copied from the integration plan's binding (#2025). Present, it\n * changes what landing means: the application's opt-in under `providers.augmentations.<augments>` lists the module's\n * package, rather than a scope naming `providerRef` (an augmentation writes no scope entry).\n */\n augments: SlugSchema.optional(),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT).systemEnum('BuildPlanTaskProductKind'), productKey: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_ROLE).systemEnum('BuildPlanTaskProductKind'),\n roleRef: z.string().regex(APPLICATION_ROLE_NAME_PATTERN).refine((roleRef) => !CORE_ROLE_NAMES.has(roleRef), {\n message: 'A core role is the engine\\'s; an application role needs a name of its own.',\n }),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_DATA_SEED).systemEnum('BuildPlanTaskProductKind'),\n seedKey: z.string().regex(DATA_SEED_KEY_PATTERN),\n /** The resource whose rows the seed writes — the `resourceType` it declares. */\n resourceRef: SlugSchema,\n content: z.enum(BuildPlanDataSeedContent).systemEnum('BuildPlanDataSeedContent'),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.WEBSITE_PAGE).systemEnum('BuildPlanTaskProductKind'), pageRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.WEBSITE_SECTION).systemEnum('BuildPlanTaskProductKind'), pageRef: SlugSchema, sectionRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER).systemEnum('BuildPlanTaskProductKind'), chapterRef: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_AGENT).systemEnum('BuildPlanTaskProductKind'),\n /** The agent's `ref` exactly as it is registered (`close-assistant.chat.agent`, `todos.overdue-triage`). */\n agentRef: z.string().regex(AGENT_WORK_REF_PATTERN),\n shape: z.enum(BuildPlanAgentShape).systemEnum('BuildPlanAgentShape'),\n /**\n * The firm's method steps this agent carries (#2305), as `<serviceRef>/<stepRef>`: set when the application has a\n * service method, so the derivation can be checked as total (every agent step has its agent). One agent may carry\n * several steps; each must be an AGENT step of the same `shape`.\n */\n serviceMethodStepRefs: z.array(z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN)).min(1).optional(),\n /**\n * The decision points of the firm's method this agent ASKS as a review question (an actor-system question routed\n * to people when its run suspends), as `<serviceRef>/<decisionRef>` (#2305). A decision is realized either so or by\n * a tool's approval gate (`serviceMethodDecisionRef`), never both: a review question IS the review, and its tool\n * carries no gate. Its route is built by the agent's code when it suspends, so only the realization is checked here.\n */\n serviceMethodAskedDecisionRefs: z.array(z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN)).min(1).optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.AGENT_APPROVAL_GATE).systemEnum('BuildPlanTaskProductKind'),\n /** The gated tool's `functionRef` exactly as it is registered (`resource.<resourceType>.<operation>` for a resource tool). */\n functionRef: z.string().regex(AGENT_WORK_REF_PATTERN),\n route: z.enum(HumanDecision_RouteKind).systemEnum('HumanDecision_RouteKind'),\n /**\n * The role every answerer must hold, as the role table keys it: required for a ROLE or ASSIGNEE route, refused for\n * an OWNER route (answered by the person whose turn it is) — the engine's own rule for a gate, so a plan cannot name a\n * gate the engine would refuse at startup.\n */\n eligibleRole: z.string().regex(APPLICATION_ROLE_NAME_PATTERN).optional(),\n /**\n * The professional qualifications the answerer must ALSO hold (#2967), as the application's\n * `professionalQualificationKinds` keys them: a ROLE or ASSIGNEE gate only, the engine's own rule. Landing compares\n * them with the gate's, so a gate built without the qualification the plan required does not land.\n */\n requiredQualificationKinds: z.array(z.string().regex(LABEL_KEY_SEGMENT_PATTERN)).min(1).optional(),\n /**\n * The decision point of the firm's method this gate realizes (#2305), as `<serviceRef>/<decisionRef>`: set when the\n * application has a service method. Its route must be the decision's, its role the decision's qualification's\n * role, and its qualifications that qualification's kind; the derivation check compares them.\n */\n serviceMethodDecisionRef: z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN).optional(),\n }).refine((gate) => (gate.route === HumanDecision_RouteKind.OWNER) === (gate.eligibleRole === undefined), {\n message: 'An OWNER gate names no role; a ROLE or ASSIGNEE gate names the role its answerer must hold.',\n path: ['eligibleRole'],\n }).refine((gate) => gate.route !== HumanDecision_RouteKind.OWNER || gate.requiredQualificationKinds === undefined, {\n message: 'An OWNER gate requires no qualification: its answerer is the person whose turn it is, whom nothing vets.',\n path: ['requiredQualificationKinds'],\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.WORK_UNIT_RESOURCE).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.METERED_USAGE_RECORDING).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /** The operation that records, as the resource's configuration keys it (`record-sign-off` for `record_sign_off`). */\n operationRef: SlugSchema,\n /** The METERED product it records against: an `APPLICATION_BILLING_PRODUCT` of this plan, by its catalogue key. */\n productKey: SlugSchema,\n /** Whether it records at most once per row (`oncePerRecord`). A price per case counts each case once, however often it closes. */\n oncePerRecord: z.boolean(),\n /**\n * #2305 S5: the service of the firm's method whose price PER CASE this records, by its `serviceRef`. Its resource must\n * be that service's case and it must count once per row; the derivation check compares them.\n */\n serviceMethodServiceRef: SlugSchema.optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n retentionClass: z.enum(DataRetentionClass).systemEnum('DataRetentionClass'),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RELATIONSHIP_CONFERRED_ROLE).systemEnum('BuildPlanTaskProductKind'),\n /** The relationship kind, by its key in `organizationRelationships` (`service`). */\n relationshipRef: SlugSchema,\n /** The role conferred, by its key in the role table (`ORG_QUALIFIED_ACCOUNTANT`), a core role or the application's. */\n roleRef: z.string().regex(APPLICATION_ROLE_NAME_PATTERN),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.ORGANIZATION_TYPE).systemEnum('BuildPlanTaskProductKind'),\n /**\n * The type's ref as the domain plan's organization model names it (`regulated-client`): its key in\n * `organizationTypes`, except for the owner type, which is found by `ownsApplication` whatever its key.\n */\n organizationTypeRef: SlugSchema,\n /** The type operates the application. Then the configuration's own owner type is the one the plan describes. */\n ownsApplication: z.literal(true).optional(),\n /** The roles the type must offer (`availableOrgRoles`, or the engine's default offer). */\n offeredRoles: z.array(z.string().regex(APPLICATION_ROLE_NAME_PATTERN)).min(1).optional(),\n /** The user types the type must grant its members (`userTypes`). */\n userTypes: z.array(SlugSchema).min(1).optional(),\n /** Whether the type's members must use a second factor (`authOverrides.mfaPolicy.requireMFA`). */\n requiresMfa: z.boolean().optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.ORGANIZATION_RELATIONSHIP_KIND).systemEnum('BuildPlanTaskProductKind'),\n /** The kind's key in `organizationRelationships` (`partnership`), the same key a `RELATIONSHIP_CONFERRED_ROLE` names. */\n relationshipRef: SlugSchema,\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.ORGANIZATION_UNIT_CONFINEMENT).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n mode: z.enum(OrganizationRowConfinementMode).systemEnum('OrganizationRowConfinementMode'),\n /**\n * The field the confinement reads, as the resource's schema names it: the unit field (`organizationUnitId`) for\n * `ORGANIZATION_UNIT`, the owning user's field (`createdByUserId`) for `OWN_ROWS`. Compared exactly, because a\n * confinement on another field confines by something else.\n */\n fieldName: z.string().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.SYSTEM_OF_RECORD_BINDING).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /** The instance's key in `systemsOfRecord` (`odoo`), the name a binding's `system` carries. */\n systemOfRecordRef: z.string().regex(SYSTEM_OF_RECORD_NAME_PATTERN),\n /**\n * The system's facet, as the domain plan names it (`odoo`, `sap-s4hana`): the `vendor` the declared instance must\n * carry, so a binding to an instance of another vendor does not land.\n */\n systemOfRecordKind: SlugSchema,\n /** The lane the domain plan decided: read through on every request, or copied by a pipeline. Required there, so here. */\n access: z.enum(SystemOfRecordAccess).systemEnum('SystemOfRecordAccess'),\n /**\n * Whether the instance's records are split by legal entity (#3045), as the domain plan's record location says\n * (`domainPlanRecordPartitionPartitionsInstance`): `true` declares `partition: true` on the instance, and a copied\n * resource then stamps each row's unit and entity key on its pipeline (`partitionUnitLocalField`,\n * `partitionKeyLocalField`); `false` declares neither. The landing probe compares it with the instance's flag. Absent\n * (a plan written before #3045): not compared.\n */\n partitioned: z.boolean().optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER).systemEnum('BuildPlanTaskProductKind'),\n /** The channel the handler serves — one the integration plan declared ({@link PlannableInboundChannelKind}). */\n channel: z.enum(PlannableInboundChannelKind).systemEnum('InboundChannelKind'),\n /** The handler's `ref`, exactly as `inboundHandlerRef()` will accept it. */\n handlerRef: z.string().regex(INBOUND_HANDLER_REF_PATTERN),\n }),\n]);\nexport type BuildPlanTaskProduct = z.infer<typeof BuildPlanTaskProductSchema>;\n\n/**\n * Every artifact identity a product claims — one string per artifact, not one\n * per product, because a product may claim several.\n *\n * `RESOURCE_SCHEMA_FIELDS` is why this returns a list. Two tasks may both enrich\n * one resource's schema (a domain shape and a billing concern, say), and that is\n * legitimate; what must never overlap is the FIELDS. Comparing whole products\n * would refuse the legitimate pair, and comparing only the resource would let two\n * tasks claim one field and make landing ambiguous again.\n *\n * Derived from the product's own members rather than stored, and total over the\n * vocabulary, so a kind added tomorrow must state its identity here or fail to\n * compile — it cannot be silently treated as equal to its siblings.\n */\nexport function buildPlanTaskProductIdentities(product: BuildPlanTaskProduct): readonly string[] {\n switch (product.kind) {\n case BuildPlanTaskProductKind.RESOURCE_SCHEMA_FIELDS:\n return product.fieldRefs.map((fieldRef) => `${product.kind}:${product.resourceRef}:${fieldRef}`);\n case BuildPlanTaskProductKind.RESOURCE_REGISTRATION:\n return product.operationRefs.map((operationRef) => `${product.kind}:${product.resourceRef}:${operationRef}`);\n case BuildPlanTaskProductKind.RESOURCE_SPECIFICATION:\n return product.fieldRefs.map((fieldRef) => `${product.kind}:${product.resourceRef}:${fieldRef}`);\n case BuildPlanTaskProductKind.RESOURCE_UI_BEHAVIOR:\n return [`${product.kind}:${product.resourceRef}`];\n case BuildPlanTaskProductKind.RESOURCE_RELATIONSHIP:\n return [`${product.kind}:${product.relationshipRef}`];\n case BuildPlanTaskProductKind.RESOURCE_OPERATION:\n return [`${product.kind}:${product.resourceRef}:${product.operationRef}`];\n case BuildPlanTaskProductKind.APPLICATION_VIEW:\n return [`${product.kind}:${product.viewRef}`];\n case BuildPlanTaskProductKind.APPLICATION_DOCUMENT:\n /*\n * The ref AS AUTHORED, so a slug and a namespaced ref are different artifact identities even\n * where they mean the same document — the duplicate-artifact refusal cannot see two tasks\n * claiming one document if they spell it differently. Not normalisable: a slug carries no\n * namespace, so nothing can recover `public.` from `privacy-notice`. It costs nothing today\n * because a slug names no catalogued document at all, and the dispatcher skips such a task.\n */\n return [`${product.kind}:${product.documentRef}`];\n case BuildPlanTaskProductKind.APPLICATION_MODULE:\n return [`${product.kind}:${product.moduleRef}`];\n // One identity per DECLARATION, like schema fields: two tasks may compose one config file as\n // long as they declare different things in it.\n case BuildPlanTaskProductKind.APPLICATION_FRONTEND_CONFIG:\n return product.declarationRefs.map((declarationRef) => `${product.kind}:${product.configSurface}:${declarationRef}`);\n case BuildPlanTaskProductKind.RESOURCE_COMPOSITE_VIEW:\n case BuildPlanTaskProductKind.RESOURCE_CUSTOM_VIEW:\n return [`${product.kind}:${product.resourceRef}:${product.viewRef}`];\n case BuildPlanTaskProductKind.RESOURCE_CHART_VIEW:\n return [`${product.kind}:${product.resourceRef}:${product.chartRef}`];\n case BuildPlanTaskProductKind.CUSTOM_COMPONENT:\n return [`${product.kind}:${product.componentRef}`];\n case BuildPlanTaskProductKind.APPLICATION_MILESTONE:\n return [`${product.kind}:${product.milestoneRef}`];\n // The ref alone: a document and a flow sharing one ref is still one guidance identity, and the\n // runtime keys a person's saved state by it — two artifacts claiming it would collide there too.\n case BuildPlanTaskProductKind.APPLICATION_GUIDANCE:\n return [`${product.kind}:${product.guidanceRef}`];\n case BuildPlanTaskProductKind.PDF_TEMPLATE:\n return [`${product.kind}:${product.resourceRef}:${product.templateRef}`];\n case BuildPlanTaskProductKind.APPLICATION_WORKER:\n return product.jobRefs.map((jobRef) => `${product.kind}:${product.workerRef}:${jobRef}`);\n case BuildPlanTaskProductKind.APPLICATION_MINION:\n return product.behaviorRefs.map((behaviorRef) => `${product.kind}:${product.minionRef}:${behaviorRef}`);\n // The SCOPE is part of the identity: one provider bound on the backend and on the website is two artifacts.\n case BuildPlanTaskProductKind.PROVIDER_BINDING:\n return [`${product.kind}:${product.scope}:${product.providerRef}`];\n case BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT:\n return [`${product.kind}:${product.productKey}`];\n case BuildPlanTaskProductKind.APPLICATION_ROLE:\n return [`${product.kind}:${product.roleRef}`];\n // The key alone: two seeds may write one resource, and the key is what the seed run ledger tracks.\n case BuildPlanTaskProductKind.APPLICATION_DATA_SEED:\n return [`${product.kind}:${product.seedKey}`];\n case BuildPlanTaskProductKind.WEBSITE_PAGE:\n return [`${product.kind}:${product.pageRef}`];\n case BuildPlanTaskProductKind.WEBSITE_SECTION:\n return [`${product.kind}:${product.pageRef}:${product.sectionRef}`];\n case BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER:\n return [`${product.kind}:${product.chapterRef}`];\n case BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER:\n return [`${product.kind}:${product.handlerRef}`];\n case BuildPlanTaskProductKind.APPLICATION_AGENT:\n return [`${product.kind}:${product.agentRef}`];\n // The TOOL alone: one tool has one gate, so two tasks gating it differently would make landing ambiguous.\n case BuildPlanTaskProductKind.AGENT_APPROVAL_GATE:\n return [`${product.kind}:${product.functionRef}`];\n case BuildPlanTaskProductKind.WORK_UNIT_RESOURCE:\n return [`${product.kind}:${product.resourceRef}`];\n // The operation and the product: one operation may record several products, and two tasks recording one product on\n // one operation would make landing ambiguous.\n case BuildPlanTaskProductKind.METERED_USAGE_RECORDING:\n return [`${product.kind}:${product.resourceRef}:${product.operationRef}:${product.productKey}`];\n // One resource has one binding, so two tasks binding it would make landing ambiguous.\n case BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING:\n return [`${product.kind}:${product.resourceRef}`];\n case BuildPlanTaskProductKind.RELATIONSHIP_CONFERRED_ROLE:\n return [`${product.kind}:${product.relationshipRef}:${product.roleRef}`];\n // The OWNER type is one per application whatever its key, so two products describing it would make landing ambiguous.\n case BuildPlanTaskProductKind.ORGANIZATION_TYPE:\n return [product.ownsApplication === true ? `${product.kind}:application-owner` : `${product.kind}:${product.organizationTypeRef}`];\n case BuildPlanTaskProductKind.ORGANIZATION_RELATIONSHIP_KIND:\n return [`${product.kind}:${product.relationshipRef}`];\n // The MODE is part of the identity: one resource may be confined to the unit AND to its owner's rows (#3036).\n case BuildPlanTaskProductKind.ORGANIZATION_UNIT_CONFINEMENT:\n return [`${product.kind}:${product.resourceRef}:${product.mode}`];\n // The resource alone: one resource's records live in one place, so two bindings of it would make landing ambiguous.\n case BuildPlanTaskProductKind.SYSTEM_OF_RECORD_BINDING:\n return [`${product.kind}:${product.resourceRef}`];\n default: {\n const unhandled: never = product;\n throw new Error(`Unhandled build-plan task product ${JSON.stringify(unhandled)}.`);\n }\n }\n}\n\n/**\n * The skill every billing-catalogue task is authored with (#1835): the product-catalogue contract, the\n * money encoding (minor units), and the pricing-surface facts. The dispatch derives it from an\n * `APPLICATION_BILLING_PRODUCT` product whatever the decomposer wrote, so an agent writing the catalogue\n * the backend sells from is never without it. A `METERED_USAGE_RECORDING` task carries it too (#2305 S5): the skill\n * says how an operation records usage of a metered product, and how a price per case counts each case once.\n */\nexport const BILLING_CATALOG_SKILL_REF = 'configure-billing';\n\n/**\n * The skill every application-roles task is authored with (#2490): the role table, the organization\n * types that offer a role, and the operation roles that make it matter. The dispatch derives it from an\n * `APPLICATION_ROLE` product whatever the decomposer wrote.\n */\nexport const APPLICATION_ROLES_SKILL_REF = 'application-roles-authoring';\n\n/**\n * The skill every data-seed task is authored with (#2234): levels, modes, business keys, and the\n * environment restriction that keeps demonstration rows out of production. The dispatch derives it from\n * an `APPLICATION_DATA_SEED` product whatever the decomposer wrote.\n */\nexport const DATA_SEED_SKILL_REF = 'seeding-authoring';\n\n/**\n * The skill every PDF-template task is authored with (#2495): the template contract, the file field it fills, and\n * where the generated file is stored. The dispatch derives it from a `PDF_TEMPLATE` product whatever the decomposer\n * wrote.\n */\nexport const PDF_TEMPLATE_SKILL_REF = 'pdf-template-authoring';\n\n/**\n * The skill a resource CONFIG task carries when the resource DECLARES personal data (#2495): its retention binding\n * lives in that configuration file, and storage limitation is a duty about personal data. The dispatch reads the\n * declaration from the resource's schema (the engine's personal-data markers), whatever the decomposer wrote.\n */\nexport const RESOURCE_RETENTION_SKILL_REF = 'resource-retention-binding';\n\n/**\n * The skill a task conferring a role through an organization relationship is authored with (#2305 S6): the relationship\n * kind's `confers`, the granting types that must offer the role, and the startup checks that refuse a mismatch. The\n * dispatch derives it from a `RELATIONSHIP_CONFERRED_ROLE` product whatever the decomposer wrote.\n */\nexport const ORGANIZATION_RELATIONSHIPS_SKILL_REF = 'organization-relationships';\n\n/**\n * The skill each agent shape is built with (#2966). The dispatch derives it from an `APPLICATION_AGENT` product whatever\n * the decomposer wrote. Total over {@link BuildPlanAgentShape}, so a shape added tomorrow must name its skill.\n */\nexport const BUILD_PLAN_AGENT_SHAPE_SKILL_REF: Readonly<Record<BuildPlanAgentShape, string>> = {\n [BuildPlanAgentShape.CHAT_ASSISTANT]: 'flows-actors-chat-assistant',\n [BuildPlanAgentShape.AUTONOMOUS]: 'flows-actors-autonomous-agents',\n [BuildPlanAgentShape.INVOKED]: 'flows-actors-llm-agent-invocation',\n [BuildPlanAgentShape.FLOW_STEP]: 'flows-actors-declared-flow',\n};\n\n/**\n * The skill every agent and every approval gate is ALSO built with (#2966): what the agent's use is for, whether it\n * decides anything about a person, and its gated writes. An agent built from its shape skill alone is the undeclared,\n * unguarded shape.\n */\nexport const AI_USE_DECLARATION_SKILL_REF = 'ai-use-declaration';\n\n/**\n * The skill an approval gate is built with (#2966): `flows-actors-chat-assistant` is where the `humanApproval` contract\n * is taught whole — the three routes, the eligible role, an assignee, escalation, deadlines and the review calendar —\n * whichever kind of agent calls the tool.\n */\nexport const AGENT_APPROVAL_GATE_SKILL_REF = 'flows-actors-chat-assistant';\n\n/**\n * The skill an organization-type task is built with (#3040): `organizationTypes` in the application's configuration, the\n * user types and roles a type offers, how it is joined, and the identity overrides it may carry. The dispatch derives it\n * from an `ORGANIZATION_TYPE` product whatever the decomposer wrote. A relationship kind is built with\n * {@link ORGANIZATION_RELATIONSHIPS_SKILL_REF}.\n */\nexport const ORGANIZATION_TYPE_SKILL_REF = 'config-saas-backend';\n\n/**\n * The skill a confinement task is built with (#3040): `organizationUnitNarrowing` and `organizationOwnRows` at startup,\n * and why a confined resource's reads are gated above the default member role. Derived from an\n * `ORGANIZATION_UNIT_CONFINEMENT` product whatever the decomposer wrote.\n */\nexport const ORGANIZATION_UNIT_CONFINEMENT_SKILL_REF = 'authorization-unit-narrowing';\n\n/**\n * The skills a system-of-record binding is built with (#3040): `resource-external-data` for the binding itself (the two\n * lanes, the field mapping, subject rights), and `config-saas` for the `systemsOfRecord` instance the binding names.\n * Derived from a `SYSTEM_OF_RECORD_BINDING` product whatever the decomposer wrote.\n */\nexport const SYSTEM_OF_RECORD_BINDING_SKILL_REFS: readonly string[] = ['resource-external-data', 'config-saas'];\n\n/** The skill a work-unit task is built with (#2966): the `workUnit` declaration, model prices and the case passed to agent turns. */\nexport const WORK_UNIT_SKILL_REF = 'model-cost-attribution';\n\nexport const BuildPlanTaskTargetSchema = z.discriminatedUnion('kind', [\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.MODULE), moduleRef: ModuleRefSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.RESOURCE_STAGE),\n moduleRef: ModuleRefSchema,\n resourceRef: SlugSchema,\n stage: z.enum(BuildPlanResourceStage),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.RELATIONSHIP),\n /** The module whose `<module>.relationships.ts` the edges are written into: the task's write scope. */\n moduleRef: ModuleRefSchema,\n /**\n * Every domain-plan relationship this task wires, by the domain plan's `relationshipRef` (#3209).\n *\n * A LIST, because the unit of work is the module's relationships FILE, not one edge. Each edge is a\n * `createResourcesRelationship(...)` call in that one file, plus the holder's ui-behavior and both\n * resources' specifications, so two tasks wiring two edges of one module edit the same file. Run\n * concurrently they overwrite each other, and the build wave re-runs each interfered task alone:\n * app-creation-test-007 split one module's 23 edges into 23 tasks, and the relationship phase ran one\n * task at a time for about seven hours with a parallelism of five. One task per file (see\n * {@link groupRelationshipTasksByModule}) pays the worker's start and the checks once, and lets\n * different modules' files go in parallel.\n *\n * Each ref here has its `RESOURCE_RELATIONSHIP` product on the same task, and that is checked\n * (`RELATIONSHIP_TARGET_DISAGREES_WITH_PRODUCTS`): the target says what the coverage check counts as\n * wired, and the products are what landing proves. A target naming an edge no product declares would\n * count as covered and never be probed.\n */\n relationshipRefs: z.array(SlugSchema).min(1),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP),\n /** The companion generation step this task runs (e.g. i18n-labels, email-templates); resolved by the companion, never by a coding agent. */\n generationStepRef: SlugSchema,\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.SHELL_PLACEMENT),\n /**\n * Which shell surface this task authors — the placement family's OWN\n * `PlacementSurface`, deliberately not a build-plan copy of it.\n *\n * A copy was written first and was a defect, caught by probing the landing\n * renderer rather than by any test: `PlacementAddress` discriminates on\n * `surface` with `z.literal(...)` per option, so only the VALUES survive into\n * the schema, and the renderer resolves a discriminator by matching that value\n * SET against the exported enums. Two enums with identical values made the\n * match ambiguous, the renderer correctly refused to guess an owner, and the\n * address discriminator became unnameable — a landed placement plan would have\n * emitted `surface: \"SETTINGS_HUB\"` as a bare string instead of\n * `PlacementSurface.SETTINGS_HUB`. One concept, one named source.\n */\n surface: z.enum(PlacementSurface).systemEnum('PlacementSurface'),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.MODULE_FRONTEND), moduleRef: ModuleRefSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.MODULE_BACKEND), moduleRef: ModuleRefSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.APPLICATION_FRONTEND_CONFIG),\n configSurface: z.enum(FrontendConfigSurface).systemEnum('FrontendConfigSurface'),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.WEBSITE) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.TECHNICAL_DOCUMENTATION) }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.WORKER),\n /**\n * The integration plan's `workerRef` (`worker-<slug>`), verbatim. The package directory is derived from it by\n * `integrationWorkerDirectoryName`, the same rule the foundation step composes the package with, so the plan never\n * has to guess where the package went.\n */\n workerRef: IntegrationWorkerRefSchema,\n runtime: z.enum(BuildPlanWorkerRuntime).systemEnum('BuildPlanWorkerRuntime'),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.MINION),\n /** The integration plan's `minionRef` (`minion-<slug>`), verbatim; the directory is `integrationMinionDirectoryName`'s. */\n minionRef: IntegrationMinionRefSchema,\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.PROVIDER_BINDING), providerRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.BILLING_CATALOG) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.APPLICATION_ROLES) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.ORGANIZATION_MODEL) }),\n]);\nexport type BuildPlanTaskTarget = z.infer<typeof BuildPlanTaskTargetSchema>;\n\n/**\n * One ordered build task. It names WHAT to build and WHY; it never carries\n * HOW (no paths, commands, prompts, cwd, model, profile). The host resolves\n * the physical allowed/prohibited paths and the fixed verification from the\n * target kind, and the installed skills from `skillRefs` against the app\n * knowledge catalog.\n *\n * Dependency readiness is DECLARED as prerequisite task refs and RESOLVED by\n * the host (a prerequisite is satisfied when its task has landed), never a\n * solved DAG the model must get right.\n */\nexport const BuildPlanTaskSchema = z.strictObject({\n /** `build-task-<slug>`, stamped by the trusted runtime. */\n taskRef: z.string().regex(new RegExp(`^${BUILD_PLAN_TASK_REF_PREFIX}[a-z0-9]+(?:-[a-z0-9]+)*$`)),\n /**\n * One sentence of intent: what this task delivers.\n *\n * Its OWN instance, not the file's shared leaf, which `templateRef` and the product ref lists also\n * hold. The workbench's reading decorations are keyed by INSTANCE, and it gives those refs a receding\n * identifier look, which the objective sentence took too while it shared their leaf.\n */\n objective: z.string().trim().min(1),\n target: BuildPlanTaskTargetSchema,\n /**\n * The artifacts this task is accountable for — what proves it done.\n *\n * Coding tasks should declare at least one product that composition did not already\n * write. A target is a shared mutation scope; its scaffolded file is not evidence\n * that this task's intended work exists. Products identify the output to probe.\n *\n * Empty declarations remain representable and produce the advisory\n * `TASK_DECLARES_NO_PRODUCT`. The host may advance after a COMPLETED durable run,\n * while naming the task in `unverifiableLandedTaskRefs`: it ran, but its output\n * cannot be proven from a product declaration. An unexecuted task is not landed.\n * This distinction avoids repeatedly dispatching the same unprovable task without\n * presenting execution history as evidence that the intended product is correct.\n *\n * The ONE hard exception is a `COMPANION_GENERATION_STEP`, which must declare NONE.\n * That kind already carries its own typed landed condition, owned by the\n * generation-step service — a set computed asynchronously (planner units x\n * enabled locales), and for the migration step a STATE rather than files. A\n * product declared beside it would be read by nothing, which is the inert\n * declaration this field exists to avoid. Enforced on the graph below, in both\n * directions.\n */\n produces: z.array(BuildPlanTaskProductSchema).default([]),\n /**\n * Exactly ONE functional topic this task belongs to.\n *\n * **It does NOT drive ordering** — this said \"drives cross-app ordering\" until 2026-08-30 and\n * nothing ever ordered by it. Sequencing is `prerequisiteTaskRefs`, resolved by the host, and it\n * is the only thing that decides what may run next.\n *\n * What it DOES: the dispatch host stamps it into the coding-agent's task payload beside\n * `skillRefs`, so the agent is told which phase of building the application this task belongs to.\n * That is context an LLM reads, not a value the runtime branches on — the distinction matters,\n * because a reader who believes it orders will look here for a scheduling bug that lives in the\n * prerequisite graph. See issue #124.\n */\n functionalTopic: z.enum(MetaWorkflow_FunctionalTopic).systemEnum('MetaWorkflow_FunctionalTopic'),\n /** Installed app-knowledge skill folders that carry the technical HOW; resolved via the skills router at dispatch. */\n skillRefs: z.array(SkillRefSchema).min(1),\n /** Task refs that must have landed first; resolved by the host, not solved by the model. */\n prerequisiteTaskRefs: z.array(z.string()).default([]),\n /**\n * What this task is accountable to — traceability only, NEVER scope authority.\n *\n * The vocabulary is the target aspects `BUILD_PLAN_FAMILY_ASPECTS` declares for this edge:\n * functional and non-functional requirements, roadmap phases, the vision's success criteria and\n * constraints, drafted features, pricing plans, and the brand's name, logo direction and visual\n * tone. Each target after the first three was added because a producer had already been writing\n * it (#629, #1433, #1835, #2221). A companion generation step serves what it consumes: the `logo`\n * step serves the brand's logo direction and name.\n *\n * This schema accepts any non-empty string. Generation does not: the edge is DECLARED, so a key\n * that resolves to no element of a target family (when that family has landed) is a dangling\n * reference. The model is told so on retry, and the landing refuses it. That is why widening the\n * vocabulary to what producers genuinely mean matters: a true link the vocabulary does not name\n * fails generation. The workbench renders a key outside the vocabulary as visibly unresolved.\n */\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * Who asked for this task DIRECTLY (#1608), rather than it being derived from the specifications: the\n * signed-in person who added it in conversation. STAMPED by the append, never authored: a value in\n * generated output is discarded. Absent on every task the decomposition derived.\n *\n * It is what keeps a requested task alive. Build decomposition refines the plan from the domain plan, and\n * a task nothing in the specifications justifies would read as unjustified and be dropped; a requested\n * task it leaves out is carried forward instead, keeping only the prerequisites the new plan still holds.\n */\n requestedBy: NonEmptyStringSchema.optional(),\n});\nexport type BuildPlanTask = z.infer<typeof BuildPlanTaskSchema>;\n\n/**\n * THE build-plan payload — a **single aggregate per product**: the ORDERED\n * task graph that turns the accepted domain plan into buildable units.\n *\n * **Artifact-family id: `build-plan`.** This schema is the shape of the\n * journey artifact selected by `MetaWorkflow_ArtifactSelector.family ===\n * 'build-plan'` (the `family` vocabulary stays an open string owned by the\n * selector surface; this note is the single place tying the SHAPE to the\n * NAME). Produced by the build-decompose playbook, consumed by\n * build-dispatch (and build-scale, which runs the same branch): ready tasks\n * are dispatched in parallel waves of up to the application's build\n * parallelism (`wildo workbench parallelism`, 5 by default; 1 = one at a\n * time).\n *\n * Invariants enforced here: unique task refs; every prerequisite names a task\n * in this graph; no self-prerequisite. Cycle detection and ordering\n * soundness are the deterministic validator's job (`validateBuildPlanTaskGraph`).\n */\nexport const BuildPlanTaskGraphSchema = z.object({\n version: z.enum(BuildPlanTaskGraphVersion).default(BuildPlanTaskGraphVersion.V1),\n /**\n * At least one task, at the SCHEMA — not merely as a validator warning. The first live playbook-loop\n * run (2026-08-24) proved why: build-decompose answered `tasks: []`, which was schema-valid, passed\n * `_core` validation as a mere warning, and LANDED — overwriting a completed 3-task plan with a\n * vacuous artifact. Decomposing to zero tasks is a refusal (\"nothing to decompose\"), never an\n * artifact: an empty plan carries no information a reader could act on, and the file it replaces\n * does. Same vacuity class already closed on the requirements family (`functional: min(1)`).\n */\n tasks: z.array(BuildPlanTaskSchema).min(1),\n}).superRefine((graph, context) => {\n const refs = new Set<string>();\n graph.tasks.forEach((task, index) => {\n if (refs.has(task.taskRef)) {\n context.addIssue({ code: 'custom', message: `duplicate build task ref \"${task.taskRef}\"`, path: ['tasks', index, 'taskRef'] });\n }\n refs.add(task.taskRef);\n });\n /*\n * No two tasks claim the same artifact.\n *\n * This is what makes landing DECIDABLE, not a tidiness rule. If two tasks name\n * one product, the host cannot tell which of them a present artifact proves —\n * exactly the ambiguity that shared `target`s created, arriving through the\n * field that replaced them. Enforced here rather than left to the validator\n * because a graph that cannot answer \"has this task landed?\" is not a graph\n * the loop may run at all.\n */\n graph.tasks.forEach((task, index) => {\n const isGenerationStep = task.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP;\n if (isGenerationStep && task.produces.length > 0) {\n context.addIssue({\n code: 'custom',\n message: `build task \"${task.taskRef}\" is a companion generation step and must declare no products; its landing is the generation step's own condition`,\n path: ['tasks', index, 'produces'],\n });\n }\n });\n const productOwners = new Map<string, string>();\n graph.tasks.forEach((task, index) => {\n task.produces.forEach((product, productIndex) => {\n buildPlanTaskProductIdentities(product).forEach((identity) => {\n const owner = productOwners.get(identity);\n if (owner !== undefined) {\n context.addIssue({\n code: 'custom',\n message: `build task \"${task.taskRef}\" claims the same artifact as \"${owner}\" (${identity}); an artifact is produced by exactly one task`,\n path: ['tasks', index, 'produces', productIndex],\n });\n return;\n }\n productOwners.set(identity, task.taskRef);\n });\n });\n });\n graph.tasks.forEach((task, index) => {\n task.prerequisiteTaskRefs.forEach((prerequisite, prerequisiteIndex) => {\n if (prerequisite === task.taskRef) {\n context.addIssue({ code: 'custom', message: `build task \"${task.taskRef}\" cannot be its own prerequisite`, path: ['tasks', index, 'prerequisiteTaskRefs', prerequisiteIndex] });\n } else if (!refs.has(prerequisite)) {\n context.addIssue({ code: 'custom', message: `build task \"${task.taskRef}\" names an unknown prerequisite \"${prerequisite}\"`, path: ['tasks', index, 'prerequisiteTaskRefs', prerequisiteIndex] });\n }\n });\n });\n});\nexport type BuildPlanTaskGraph = z.infer<typeof BuildPlanTaskGraphSchema>;\n/** @wildo_source:part:end build-plan.task-graph.config */\n"]}
1
+ {"version":3,"file":"build-plan-task-graph.schemas.js","sourceRoot":"","sources":["../../../../src/_core/build-plan/build-plan-task-graph.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,6GAA6G;AAC7G,+GAA+G;AAC/G,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,yBAAyB,EAAE,MAAM,sCAAsC,CAAC;AACjF,OAAO,EACL,cAAc,EACd,cAAc,EACd,kBAAkB,EAClB,uBAAuB,EACvB,2BAA2B,EAC3B,kBAAkB,EAClB,yBAAyB,EACzB,8BAA8B,EAC9B,6BAA6B,EAC7B,oBAAoB,GACrB,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EAAE,4BAA4B,EAAE,MAAM,mEAAmE,CAAC;AACjH,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAAE,MAAM,gEAAgE,CAAC;AAExI;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,yBAEX;AAFD,WAAY,yBAAyB;IACnC,sCAAS,CAAA;AACX,CAAC,EAFW,yBAAyB,KAAzB,yBAAyB,QAEpC;AAED,yHAAyH;AACzH,MAAM,CAAC,MAAM,0BAA0B,GAAG,aAAa,CAAC;AAExD;;;;GAIG;AACH,MAAM,CAAN,IAAY,uBAoHX;AApHD,WAAY,uBAAuB;IACjC,8GAA8G;IAC9G,4CAAiB,CAAA;IACjB,6EAA6E;IAC7E,4DAAiC,CAAA;IACjC,6HAA6H;IAC7H,wDAA6B,CAAA;IAC7B,sKAAsK;IACtK,kFAAuD,CAAA;IACvD;;;;;;;;;;;;OAYG;IACH,8DAAmC,CAAA;IACnC;;;;;;;;;OASG;IACH;;;;;;;OAOG;IACH,8DAAmC,CAAA;IACnC;;;;;;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,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC;YAClL,CAAC;iBAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,CAAC;gBACnC,OAAO,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,eAAe,IAAI,CAAC,OAAO,oCAAoC,YAAY,GAAG,EAAE,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,CAAC,EAAE,CAAC,CAAC;YACnM,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAGH,sHAAsH;AACtH,MAAM,UAAU,+BAA+B,CAAC,KAAuD;IACrG,OAAO,KAAK,CAAC,oBAAoB,KAAK,SAAS,CAAC;AAClD,CAAC;AACD,0DAA0D","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 { ElectronicSignature_Level } from '@wildo-ai/external-connectors-models';\nimport {\n CORE_APP_ROLES,\n CORE_ORG_ROLES,\n DataRetentionClass,\n HumanDecision_RouteKind,\n INBOUND_HANDLER_REF_PATTERN,\n InboundChannelKind,\n LABEL_KEY_SEGMENT_PATTERN,\n OrganizationRowConfinementMode,\n SYSTEM_OF_RECORD_NAME_PATTERN,\n SystemOfRecordAccess,\n} from '@wildo-ai/saas-models';\n\nimport { MetaWorkflow_FunctionalTopic } from '../../application-creation/playbooks.application-creation.schemas';\nimport { PlacementSurface } from '../placement-plan/placement-plan.schemas';\nimport { IntegrationMinionRefSchema, IntegrationWorkerRefSchema } from '../integration-plan/integration-execution-surface-refs.schemas';\n\n/**\n * @wildo_source:part:start build-plan.task-graph.config facet:layer:specification facet:family:build-plan\n *\n * Versioning for the build-plan task-graph payload format itself. `V1` —\n * initial shape (one ordered `tasks` collection with typed targets and\n * declared prerequisites). The shape grows additively across versions; the\n * `version` field is the explicit marker for consumers that branch on era.\n */\nexport enum BuildPlanTaskGraphVersion {\n V1 = 'v1',\n}\n\n/** Stable prefix every build-plan task ref carries; the trusted runtime stamps it, a provider supplies only the slug. */\nexport const BUILD_PLAN_TASK_REF_PREFIX = 'build-task-';\n\n/**\n * WHAT a build task builds — a closed vocabulary, because the host derives\n * the physical mutation scope and verification policy from the target kind\n * and the model must never author those powers through free text.\n */\nexport enum BuildPlanTaskTargetKind {\n /** A whole application module (its shared-lib registration, backend module and frontend module skeletons). */\n MODULE = 'MODULE',\n /** One build stage of one resource: schema → config → ui-behavior → spec. */\n RESOURCE_STAGE = 'RESOURCE_STAGE',\n /** The relationships between resources wired in ONE module's relationships file (#3209): one task per file, not per edge. */\n RELATIONSHIP = 'RELATIONSHIP',\n /** A companion-owned deterministic generation step (labels, email templates, logo or database migrations) interleaved by the build loop, never a coding-agent run. */\n COMPANION_GENERATION_STEP = 'COMPANION_GENERATION_STEP',\n /**\n * Authoring one SHELL SURFACE's placement configuration from the accepted\n * placement plan — the settings rail, the sidebar, the user menu or the\n * command palette.\n *\n * Its own kind rather than a reuse of the neighbours, because none of them is\n * true of it: it is not a MODULE or a RESOURCE_STAGE (it is application-wide\n * and belongs to no resource), not a RELATIONSHIP, and emphatically not a\n * COMPANION_GENERATION_STEP — that kind is documented as \"never a coding-agent\n * run\" and writing `settings-hub.config.ts` is exactly a coding-agent run.\n * Borrowing one would hand the host the wrong mutation scope and the wrong\n * verification, which is what the closed vocabulary exists to prevent.\n */\n SHELL_PLACEMENT = 'SHELL_PLACEMENT',\n /*\n * THE NON-RESOURCE SURFACES (#1490). Until 2026-09-22 the five kinds above were the whole\n * vocabulary, and every one of them is about a resource or the shell placement of one. The\n * decompose method meanwhile told the planner to emit tasks for views, navigation, the design\n * system, custom components, PDF templates, workers, minions, providers, the website and the\n * documentation — surfaces the framework's own composition scenarios and 85 of its 111 skills\n * already build. A task for any of them had no kind to declare, so it either declared none\n * (landing as RAN-not-PROVEN forever) or borrowed `MODULE` with a product the module scope could\n * not prove. The members below are those surfaces, one per write scope the host can derive.\n */\n /**\n * The FRONTEND and SPECIFICATION layers of one module — its composite, custom and chart views,\n * its custom components and their specifications.\n *\n * Narrower than `MODULE` on purpose: a view task never touches `shared-lib` or `backend-api`, so\n * handing it the four-layer scope also hands it four typechecks and the FK sweep for a change\n * that can only break the frontend and the specifications package.\n */\n MODULE_FRONTEND = 'MODULE_FRONTEND',\n /**\n * The BACKEND layer of one module beside its shared-lib declarations — PDF templates and their\n * bindings, backend addons (services, controllers, flows-actors), email definitions.\n *\n * Shared-lib is in scope because a PDF template is bound to a resource FIELD the config declares\n * (`generatedSummaryPdf`), and a backend addon usually declares its contract there first.\n */\n MODULE_BACKEND = 'MODULE_BACKEND',\n /**\n * ONE application-wide frontend configuration surface — navigation, the design system, the app\n * shell's composition, the global views, the shell layout — named by {@link FrontendConfigSurface}.\n *\n * Distinct from {@link SHELL_PLACEMENT}, which authors the placement plan's decisions into the\n * shell files: a placement puts a decided subject in a decided group, while this kind COMPOSES\n * the surface itself (which sidebar sections exist, which transitions the primary zone uses,\n * which palette the product carries). Same file for `APP_SHELL`, different question.\n */\n APPLICATION_FRONTEND_CONFIG = 'APPLICATION_FRONTEND_CONFIG',\n /** The marketing website workspace (`website/`), composed by the `add-website` scenario. Pages and sections are its products. */\n WEBSITE = 'WEBSITE',\n /**\n * The technical-documentation workspace (`technical-doc/`) and the specification package's\n * `technical-documentation/` declarations that feed it. Its generated tree is never written by a\n * task: the companion publishes into it, and the coding policy prohibits it by prefix.\n */\n TECHNICAL_DOCUMENTATION = 'TECHNICAL_DOCUMENTATION',\n /** One worker package (`workers/<slug>/`, named by the integration plan's `worker-<slug>`), Node or Rust, plus its declaration in the SaaS config. */\n WORKER = 'WORKER',\n /** One cron minion package (`minions/<slug>/`, named by the integration plan's `minion-<slug>`) plus its declaration in the SaaS config. */\n MINION = 'MINION',\n /**\n * Declaring one provider in the application — the SaaS config's provider scopes, the backend\n * package dependency, the frontend provider module and its companion contribution.\n *\n * Application-wide by construction: a provider binding names no module, and the four files it\n * may touch are the same for every provider.\n */\n PROVIDER_BINDING = 'PROVIDER_BINDING',\n /**\n * The application's BILLING CATALOGUE — the `ProductDefinition[]` in `shared-lib/src/engine/product.ts`\n * (and the product specifications that document it), which the backend syncs to the billing\n * provider and the public website reads for its pricing page (#1835).\n *\n * Its own kind because none of the others is true of it: the catalogue is application-wide (a plan\n * belongs to no module), it lives in the shared library's ENGINE module that no `MODULE_*` scope\n * reaches, and before it existed a journey-built application reached its website with an EMPTY\n * catalogue, so the website re-typed the business model's prices by hand.\n */\n BILLING_CATALOG = 'BILLING_CATALOG',\n /**\n * The application's own ROLES — `CUSTOM_ROLES_CONFIGURATION` in `shared-lib/src/engine/roles.ts`, the\n * organization types that offer them (`availableOrgRoles` in `wildo.saas.config.ts`), their\n * specifications, and the `roles` of the operations they unlock (#2490).\n *\n * Its own kind because none of the others reaches it: the role table is application-wide and lives in\n * the shared library's ENGINE module. Before it existed a requirement naming user groups (\"office and\n * field users see different things\") had no task able to declare a role, so app-creation-test-005\n * modelled roles as an access-role RESOURCE that nothing reads.\n */\n APPLICATION_ROLES = 'APPLICATION_ROLES',\n /**\n * The application's ORGANIZATION MODEL (#3035, #3036): the organization types and the relationship kinds between them,\n * declared in `wildo.saas.config.ts` (`organizationTypes`, `organizationRelationships`), and the confinements of an\n * organization's rows to its units or to their owners, declared in the backend's startup configuration\n * (`backend-api/src/bootstrap-config.ts`: `organizationUnitNarrowing`, `organizationOwnRows`).\n *\n * Its own kind because none of the others is true of it. It is application-wide and names no module, like the role\n * table, but it is not the role table: an organization type is the shape a tenant takes (its user types, the roles it\n * offers, how it is joined), and a relationship kind is what one organization may do for another. Borrowing\n * `APPLICATION_ROLES` would have given a task deciding them the role table's scope and the roles skill. Before it\n * existed, creation could lay these down only from fixed blueprints, and a confinement the requirements stated\n * produced no work at all, so a generated internal tool showed every record to every member.\n */\n ORGANIZATION_MODEL = 'ORGANIZATION_MODEL',\n}\n\n/**\n * WHICH application-wide frontend configuration surface a task composes — one file each (in\n * `frontend/src/config/`, except the shell layout, whose one line lives in the engine registrations\n * file), and the coding policy resolves the member to that file exactly as `SHELL_PLACEMENT` resolves\n * a `PlacementSurface`.\n *\n * Its own vocabulary rather than a reuse of `PlacementSurface`: a placement surface is WHERE a\n * subject sits in the shell (settings hub, sidebar, user menu, command palette), and three of\n * those live in one file. A configuration surface is WHICH FILE a composition task authors, and\n * navigation and the design system are not places anything is placed.\n */\nexport enum FrontendConfigSurface {\n /** `frontend/src/config/navigation.config.ts` — zones, transitions, overlay appearance. */\n NAVIGATION = 'NAVIGATION',\n /** `frontend/src/config/design-system.config.ts` — palette, typography, shell appearance from the brand's visual tone. */\n DESIGN_SYSTEM = 'DESIGN_SYSTEM',\n /** `frontend/src/config/app-shell.config.ts` — top bar, sidebar sections, quick switcher: the shell's COMPOSITION, not a placement into it. */\n APP_SHELL = 'APP_SHELL',\n /** `frontend/src/config/global-views.config.ts` — the application-level launcher and view registrations. */\n GLOBAL_VIEWS = 'GLOBAL_VIEWS',\n /**\n * `frontend/src/engine/component-registrations.frontend.ts` — the ONE animated 2D shell layout the application moves\n * in (`register2DLayout(MORPH_LAYOUT_2D, { speed })`), decided beside the design system because both are the\n * brand's: the design system its palette and pace, the layout how the shell moves at that pace. Its single\n * declaration names the layout constant, written out. A 3D layout is never decided here: it is the operator's\n * opt-in, through the `add-3d-layout` composition scenario.\n */\n SHELL_LAYOUT = 'SHELL_LAYOUT',\n}\n\n/**\n * The two shapes of guidance an application gives a person, and the file each is declared in.\n *\n * They are distinct because they are found differently: an onboarding DOCUMENT is embedded in a\n * screen (`EmbedOnboarding`) and is there whenever that screen is, while a guidance FLOW is started\n * by an event and shows once. Both are listed on the owning frontend module — `onboardingViews` and\n * `guidanceFlows`. Each kind has a CONVENTIONAL definitions file, which the authoring skill teaches\n * and a landing probe reads for the declared ref (alongside the module's `index.ts`, where a small\n * module may declare inline). A convention for generated applications: a hand-authored application\n * may keep its declarations elsewhere, and then simply is not probed by a build plan.\n */\nexport enum ApplicationGuidanceKind {\n /** `frontend/src/modules/<m>/app-level-views/onboarding-views.definitions.ts` — an embedded onboarding document. */\n ONBOARDING_DOCUMENT = 'ONBOARDING_DOCUMENT',\n /** `frontend/src/modules/<m>/app-level-views/guidance-flows.definitions.ts` — a triggered guidance flow. */\n GUIDANCE_FLOW = 'GUIDANCE_FLOW',\n}\n\n/**\n * The two worker runtimes the framework composes (`add-worker-node`, `add-worker-rust`). The\n * runtime decides the entry file a landing probe reads and whether a typecheck exists to run: a\n * Node worker is verified by its package typecheck, a Rust worker has no TypeScript to check and\n * the policy says so rather than inventing a command.\n *\n * Not the SaaS config's `WorkerRuntime`, which is a free-form `{ type, language }` pair an\n * application authors for deployment; this is the closed set a creation run can COMPOSE.\n */\nexport enum BuildPlanWorkerRuntime {\n NODE = 'NODE',\n RUST = 'RUST',\n}\n\n/**\n * WHERE a provider is bound — which runtime owner's scope its declaration lands in. Each member\n * is a different file, so a probe and a write grant both derive from it.\n *\n * Named after the SaaS config's own scope keys (`providers.scopes.backend`, `.companion`,\n * `.frontendServices.app`, `.frontendServices.website`), which the `add-provider` and\n * `add-file-picker-provider` scenarios write. Minion and worker scopes are deliberately absent:\n * a provider reaching a minion is declared on that minion's own `providers` block and belongs to\n * the {@link BuildPlanTaskTargetKind.MINION} task that builds it.\n */\nexport enum ProviderBindingScope {\n BACKEND = 'BACKEND',\n COMPANION = 'COMPANION',\n FRONTEND_APP = 'FRONTEND_APP',\n WEBSITE = 'WEBSITE',\n}\n\n/**\n * The inbound channels a creation run can PLAN (#1630, #3394): the members of `InboundChannelKind` an application\n * declares as channels work arrives on, and that a channel handler can be built for. One list, read by the integration\n * plan's declaration and by the build task's product, so the two cannot disagree about what is plannable.\n *\n * `EMAIL` (received by the `EMAIL_INBOUND` provider, routed by the address) and `SMS` (received by the SMS provider's\n * notification endpoint, routed by the number the text was sent TO). `WEBHOOK` is absent on purpose: it is the channel\n * every signed delivery from another system arrives on, derived for that delivery and never declared.\n *\n * ## A NAMED const object, not a TypeScript enum and not an array (#3685)\n *\n * The schemas read it as `z.enum(PlannableInboundChannelKind)`, so the schema node keeps THIS object as its\n * vocabulary, and a landed build or integration plan can name it: `deriveLandingRenderEnumBindings` resolves an\n * enum node by the IDENTITY of that object against the package's exports. `z.enum([EMAIL, SMS])` built a fresh\n * anonymous object, which nothing exports, so every plan landing refused (\"Closed vocabularies with no exported\n * name … tasks.*.produces.*.channel (email, sms)\"), so no build plan could land at all.\n *\n * Not a TypeScript enum, because a subset of a vocabulary must keep the OWNER's members: an enum would make\n * `PlannableInboundChannelKind.SMS` a nominal type of its own, no longer an `InboundChannelKind`, and every reader\n * that maps a planned channel onto the inbound vocabulary would stop compiling. Each member here IS the\n * `InboundChannelKind` member, so a landed `PlannableInboundChannelKind.SMS` is assignable where the channel is read.\n */\nexport const PlannableInboundChannelKind = {\n EMAIL: InboundChannelKind.EMAIL,\n SMS: InboundChannelKind.SMS,\n} as const;\nexport type PlannableInboundChannelKind = (typeof PlannableInboundChannelKind)[keyof typeof PlannableInboundChannelKind];\n\n/**\n * The same vocabulary as a list, for code that iterates it. Derived from {@link PlannableInboundChannelKind}, never\n * written twice.\n */\nexport const PLANNABLE_INBOUND_CHANNEL_KINDS: readonly PlannableInboundChannelKind[] = Object.values(PlannableInboundChannelKind);\n\n/** The per-resource build stages, in their fixed order. */\nexport enum BuildPlanResourceStage {\n SCHEMA = 'SCHEMA',\n CONFIG = 'CONFIG',\n UI_BEHAVIOR = 'UI_BEHAVIOR',\n SPEC = 'SPEC',\n}\n\nconst SlugSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\n/**\n * The key of the domain-plan MODULE a task targets or produces (`deals`, `tasks-manager`). Same\n * slug grammar as the other keys, declared as its own schema because it names one thing — a\n * module — where the other slugs name resources, relationships, steps, workers and products.\n */\nconst ModuleRefSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\n\n/**\n * The governed document a task produces, named as a COMPLIANCE-DOCUMENT CANDIDATE names it:\n * `document:<namespace>.<id>`, e.g. `document:public.privacy-notice`.\n *\n * **This field was `SlugSchema`, and a slug cannot name a governed document — so until 2026-09-16 no\n * build plan in any application could declare a document the engine catalog defines.** A slug forbids\n * the colon and the dot, the catalog's definitions are `document-definition:public.privacy-notice`,\n * and `selectAssuranceDocumentBlueprintForDocumentRef` joins the two namespaces by exact suffix — so\n * every authored `documentRef` resolved to NO blueprint, and a blueprint is what says which sections,\n * facts and claim guards the document owes. The two vocabularies were disjoint by construction.\n *\n * The cost is measured rather than theoretical. Wonder CRM's plan declares two such products\n * (`gdpr-data-handling-governance`, `terminal-access-governance`), neither of which names anything;\n * the first was dispatched, and its agent spent a full turn establishing — with a positive control —\n * that the document does not exist and could only be invented, which the authoring skill forbids.\n *\n * The bare slug is STILL ACCEPTED, and that is deliberate rather than tidiness left undone: tightening\n * this to the namespaced form alone would make every already-accepted plan carrying one fail to parse,\n * and a build plan that cannot be READ stops the whole lane — the gate\n * `application-creation-directive.md` forbids, for a task nobody can fix by re-running anything. A slug\n * simply resolves to no blueprint, so the dispatcher skips that task with a message naming the ref,\n * and the rest of the plan proceeds.\n */\nconst DocumentProductRefSchema = z.union([\n z.string().regex(/^document:[a-z0-9]+(?:-[a-z0-9]+)*\\.[a-z0-9]+(?:-[a-z0-9]+)*$/),\n SlugSchema,\n]);\n/**\n * A skill ref is the skill's FOLDER id in the app-knowledge catalog, which is\n * also its `SKILL.md` frontmatter `name` — one id, kebab-case. The host refuses\n * any skill name outside `[a-z0-9-]+`, so a ref that does not match this shape\n * can never resolve to an installed skill.\n */\nconst SkillRefSchema = z.string().regex(/^[a-z0-9]+(?:-[a-z0-9]+)*$/);\nconst NonEmptyStringSchema = z.string().trim().min(1);\n\n/**\n * WHAT a build task PRODUCES — the artifact whose presence in the application\n * proves the task is done.\n *\n * **This is not `target`, and the difference is the whole reason it exists.**\n * `target` is a WRITE SCOPE: the host turns it into the path prefixes a run may\n * mutate, and several tasks legitimately share one. `produces` is a PRODUCT\n * IDENTITY: it says which artifact this task, and no other, is accountable for.\n *\n * Measured 2026-09-10 on Wonder CRM (issue #597): `build-task-pipeline-view`\n * and `build-task-deal-follow-through-operation` carry BYTE-IDENTICAL targets\n * (`{ kind: MODULE, moduleRef: 'deals' }`), and 7 of that plan's 42 tasks share\n * 3 targets. Landing had been answered by narrowing the target to a module\n * DIRECTORY — which `wildo compose` commits on day one, and which cannot tell\n * two tasks apart even in principle. The loop reported 40 of 42 tasks landed\n * while no coding task had ever run, so `dispatch-next` skipped every one of\n * them and the phase-advance gate read a build that was all but complete.\n *\n * Like `target`, this stays SEMANTIC: a product names a resource, a field, a\n * relationship or a view — never a path, and never a command. The host owns the\n * translation from a product to the physical question it asks of the working\n * tree, exactly as it owns the translation from a target kind to path prefixes.\n * A model that could author the path could author its own mutation scope.\n */\nexport enum BuildPlanTaskProductKind {\n /**\n * Named fields on one resource's schema.\n *\n * The shape an ENRICHMENT task needs, and the reason a product cannot always\n * be \"a file\": every resource file already exists, written by the scaffold\n * with its self-described STARTER shape, so file presence answers nothing.\n * The FIELDS are what the task adds.\n */\n RESOURCE_SCHEMA_FIELDS = 'RESOURCE_SCHEMA_FIELDS',\n /**\n * One resource's declared operations — its registry presence, named by the verbs it gains.\n *\n * The VERBS, not the config file: `<r>.resources-config.ts` is written by the scaffold, so its\n * existence is satisfied before any task runs. That is the exact shape of the defect this\n * vocabulary replaces, and a kind that reproduced it would be worse than no kind at all.\n */\n RESOURCE_REGISTRATION = 'RESOURCE_REGISTRATION',\n /** One resource's frontend ui-behavior. */\n RESOURCE_UI_BEHAVIOR = 'RESOURCE_UI_BEHAVIOR',\n /**\n * One resource's specification, named by the fields it documents.\n *\n * The FIELDS, for the same reason as {@link RESOURCE_REGISTRATION}: every resource is scaffolded\n * with a `*.resource.specification.ts` documenting only the starter shape, so file existence\n * proves nothing about the task that was meant to enrich it.\n */\n RESOURCE_SPECIFICATION = 'RESOURCE_SPECIFICATION',\n /** One relationship edge between two resources, named by the domain plan's `relationshipRef`. */\n RESOURCE_RELATIONSHIP = 'RESOURCE_RELATIONSHIP',\n /** One named custom operation on one resource. */\n RESOURCE_OPERATION = 'RESOURCE_OPERATION',\n /** One named application-level view. */\n APPLICATION_VIEW = 'APPLICATION_VIEW',\n /** One named governed application document (a compliance notice, a governance statement). */\n APPLICATION_DOCUMENT = 'APPLICATION_DOCUMENT',\n /** One application module, registered across the layer registries under one module identity. */\n APPLICATION_MODULE = 'APPLICATION_MODULE',\n /*\n * THE NON-RESOURCE PRODUCTS (#1490). Each names an artifact of a surface the five target kinds\n * above `MODULE_FRONTEND` could not express, and each is probed by the host from committed bytes —\n * a declaration in the one file that registers it, never a directory a scenario already wrote.\n */\n /**\n * Named declarations in ONE application-wide frontend configuration file — a sidebar section\n * ref the app shell gains, a zone the navigation config declares, a token the design system sets.\n *\n * The DECLARATIONS, never the file: every `frontend/src/config/*.config.ts` is written by\n * `wildo init`, so its presence is true before any task runs. Same reasoning as\n * {@link RESOURCE_SCHEMA_FIELDS}, one level up.\n */\n APPLICATION_FRONTEND_CONFIG = 'APPLICATION_FRONTEND_CONFIG',\n /**\n * One composite view of one resource — the cross-resource surface a resource's ui-behavior\n * declares under `compositeViews`. Distinct from {@link APPLICATION_VIEW}, which is\n * application-level and owned by a module rather than a resource.\n */\n RESOURCE_COMPOSITE_VIEW = 'RESOURCE_COMPOSITE_VIEW',\n /** One custom operation or execution view of one resource, bound in its ui-behavior. */\n RESOURCE_CUSTOM_VIEW = 'RESOURCE_CUSTOM_VIEW',\n /** One chart view of one resource, declared under its ui-behavior's `chartViews`. */\n RESOURCE_CHART_VIEW = 'RESOURCE_CHART_VIEW',\n /** One custom frontend component, registered by `componentRef` in the module's or the engine's registrations. */\n CUSTOM_COMPONENT = 'CUSTOM_COMPONENT',\n /**\n * One milestone a module declares — the moment the application recognises and celebrates.\n *\n * Named by its identifier, which is what the module's `milestones.ts` declares\n * (`first-project-created` is spelled `FIRST_PROJECT_CREATED` there). The module FILE is not the\n * product: a module may carry milestones before this task runs, and only the identifier says this\n * one landed.\n */\n APPLICATION_MILESTONE = 'APPLICATION_MILESTONE',\n /** One onboarding document or guidance flow a module declares, named by its ref. */\n APPLICATION_GUIDANCE = 'APPLICATION_GUIDANCE',\n /** One PDF template bound to one resource's generated-file field. */\n PDF_TEMPLATE = 'PDF_TEMPLATE',\n /**\n * One worker's JOBS — the named handlers its entry file declares.\n *\n * The jobs, not the package: `add-worker-node` writes the package, so its directory proves\n * nothing. What a coding task adds is behaviour, and behaviour is a symbol in the entry file.\n */\n APPLICATION_WORKER = 'APPLICATION_WORKER',\n /** One minion's BEHAVIOURS — the named tick handlers its entry file declares. Same reasoning as the worker. */\n APPLICATION_MINION = 'APPLICATION_MINION',\n /** One provider declared in one runtime owner's scope. */\n PROVIDER_BINDING = 'PROVIDER_BINDING',\n /**\n * One product of the application's billing catalogue — a plan, add-on or purchase the application\n * sells — named by its catalogue `key`, which the catalogue file declares (`key: 'team'`).\n *\n * The KEY, not the file: `wildo init` writes `product.ts` with an empty catalogue, so the file proves\n * nothing. Written from the accepted business model's pricing plans, with the plan's price as typed\n * money and the pricing-surface facts (recommended, price disclosure, availability) the plan implies.\n */\n APPLICATION_BILLING_PRODUCT = 'APPLICATION_BILLING_PRODUCT',\n /**\n * One data seed a module declares — rows the application creates for itself, named by the seed's\n * `seedKey` (`crm:demo-customers`).\n *\n * The seed is its own file, `backend-api/src/modules/<module>/seeds/<seedKey with ':' as '.'>.seed.ts`,\n * and it lands only once the module registers it — a seed file nothing imports never runs. Its\n * {@link BuildPlanDataSeedContent} says whether it is REFERENCE data the application needs everywhere\n * or DEMONSTRATION data that must never reach production.\n */\n APPLICATION_DATA_SEED = 'APPLICATION_DATA_SEED',\n /** One website page, registered in the website root config by its manifest. */\n WEBSITE_PAGE = 'WEBSITE_PAGE',\n /** One section of one website page, declared in that page's sections file. */\n WEBSITE_SECTION = 'WEBSITE_SECTION',\n /**\n * One authored documentation chapter — a consumer guide the specifications package declares\n * for the documentation portal to publish (#874's publication input).\n */\n DOCUMENTATION_CHAPTER = 'DOCUMENTATION_CHAPTER',\n /**\n * One inbound CHANNEL handler — the code that decides what a message arriving on a channel causes\n * (#1832). Named by the handler's `ref` (`matters.mail-intake`), which the handler file spells and whose\n * file NAME is derived from it, so the module index's import of that file is what proves the handler is\n * registered. Produced once per channel the integration plan declares (`inboundChannels`).\n */\n INBOUND_CHANNEL_HANDLER = 'INBOUND_CHANNEL_HANDLER',\n /**\n * One role the application declares, named by its role name (`FIELD_TECHNICIAN`), which is its key in\n * `CUSTOM_ROLES_CONFIGURATION`. The NAME, not the file: `wildo init` writes `roles.ts` with an empty\n * table, so the file proves nothing (#2490).\n */\n APPLICATION_ROLE = 'APPLICATION_ROLE',\n /*\n * AGENT WORK (#2966). An agent, the approval gate on one of its tools, and the resource whose rows are the cases its\n * work is costed to. None of them is a name the tree spells in one file: an agent's ref and a gate's role are written\n * through constants in other files, and a gate is a property of a tool object. So each is proven from the REGISTRY the\n * application's backend registers at startup, read through introspection, never from text.\n */\n /**\n * One AI agent the application registers, named by its `ref` — a chat agent's (`agents`) or an autonomous agent's\n * (`autonomousAgents`), as its {@link BuildPlanAgentShape} says. Its shape also decides the skill it is built with.\n */\n APPLICATION_AGENT = 'APPLICATION_AGENT',\n /**\n * The approval gate on one function tool (`humanApproval`): its calls wait for the person the ROUTE names, holding the\n * role the gate requires. Proven when the registered tool's gate has that route and that role, so a gate routed to the\n * wrong role, or a tool left ungated, does not land.\n */\n AGENT_APPROVAL_GATE = 'AGENT_APPROVAL_GATE',\n /**\n * One resource declared as the application's unit of work (`workUnit: true`): its rows are the cases model spend is\n * attributed to, and cost per case is read by them.\n */\n WORK_UNIT_RESOURCE = 'WORK_UNIT_RESOURCE',\n /**\n * One operation of one resource that records usage of one METERED billing product when it succeeds (`recordsUsage`,\n * #2305 S5). How a price per case is billed: the operation that closes a case records one unit, once per case. Proven\n * from the registry like the agent work: the declaration is a property of one operation object in the resource's\n * configuration, which no text in the tree ties to that operation.\n */\n METERED_USAGE_RECORDING = 'METERED_USAGE_RECORDING',\n /**\n * One resource's rows bound to one of the application's retention classes (`retentionBinding`, #2305 S6): how long the\n * firm's case evidence is kept. Proven from the registry: the binding is a property of the resource's configuration.\n */\n RESOURCE_RETENTION_BINDING = 'RESOURCE_RETENTION_BINDING',\n /**\n * One role CONFERRED through one organization relationship kind (#2305 S6): the relationship's `confers.roles` holds it\n * and every organization type the relationship grants offers it (`availableOrgRoles`). How the firm's people come to\n * hold, for a client, the role a decision of its method requires. Proven from the application's configuration\n * (`wildo.saas.config.ts`), read fresh at landing: the role is spelled through constants, so no text can prove it.\n * \"Conferred\" is the kind's CEILING: each client still grants the role, or not, on its own relationship. And the fresh\n * read re-evaluates the configuration and the files it imports by relative path; a value imported from a package is\n * read from that package's build.\n */\n RELATIONSHIP_CONFERRED_ROLE = 'RELATIONSHIP_CONFERRED_ROLE',\n /*\n * THE ORGANIZATION MODEL (#3035, #3036, #3039). What the domain plan's `organizationModel` decides, each proven from what\n * the application DECLARES: its configuration, read fresh, for a type and a relationship kind; the registry its backend\n * assembles at startup for a confinement and a binding. None of them is a name the tree spells in one place (a\n * resource type is written through its constant, a binding's instance through a declaration helper), so no text probe\n * could prove them.\n */\n /**\n * One organization type the application declares in `wildo.saas.config.ts` `organizationTypes`: the shape a tenant\n * takes. Lands when the configuration, read fresh, declares the type carrying what the plan decided of it (the roles\n * it offers, the user types it grants, a required second factor).\n *\n * The type that OWNS the application is identified by `ownsApplication`, never by its key. By the time the build runs\n * the platform has already created the operator's organization under the scaffold's key (`workspace`), and the\n * application line may have set its joining posture, so a plan naming its owner `group` revises THAT type: adding a\n * second owner type is refused by the configuration at startup, and replacing it would lose the organization already\n * created. Its key and its people's user type are renamed to the plan's through a declared rename (`renamedFrom`,\n * #3044), which the foundation usually makes; the product lands only under the plan's key, granting exactly the plan's\n * user types.\n */\n ORGANIZATION_TYPE = 'ORGANIZATION_TYPE',\n /**\n * One kind of relationship between organizations, by its key in `organizationRelationships` (`partnership`): which\n * types represent and which grant, and what the relationship may confer. Never a module and never a resource\n * (#2617): the engine owns the relationship rows. Lands when the configuration, read fresh, declares the key.\n */\n ORGANIZATION_RELATIONSHIP_KIND = 'ORGANIZATION_RELATIONSHIP_KIND',\n /**\n * One resource's rows confined below the whole organization (#3036), in one {@link OrganizationRowConfinementMode}: to\n * the unit a member holds a role in (`organizationUnitNarrowing`), or to the rows a member owns (`organizationOwnRows`),\n * on the field the plan names. Lands when the backend's startup configuration declares the resource in that mode on\n * that field. One resource may be confined in both modes (a department head sees the department's requests, an\n * employee only their own), so the mode is part of the product's identity.\n */\n ORGANIZATION_UNIT_CONFINEMENT = 'ORGANIZATION_UNIT_CONFINEMENT',\n /**\n * One resource whose records live in a system of record (#3039), bound to the instance the application declares under\n * `systemsOfRecord` (`odoo`), of the vendor the domain plan named. Read through (`httpApiBinding`) or copied (an\n * inbound `externalDataPipeline`), as its {@link SystemOfRecordAccess} says. Lands when the resource's configuration\n * binds that instance through that lane and the configuration declares the instance with that vendor, partitioned\n * exactly when the plan splits the records by legal entity (#3045; a copy then stamps each row's partition).\n */\n SYSTEM_OF_RECORD_BINDING = 'SYSTEM_OF_RECORD_BINDING',\n}\n\n/**\n * How an agent is started and talked to (#2966), which decides the skill it is built with\n * ({@link BUILD_PLAN_AGENT_SHAPE_SKILL_REF}) and where its ref is registered.\n */\nexport enum BuildPlanAgentShape {\n /** A person converses with it in the application. Registered under the module's `agents`. */\n CHAT_ASSISTANT = 'CHAT_ASSISTANT',\n /** It runs with nobody signed in: on a schedule, or when a message arrives. Registered under `autonomousAgents`. */\n AUTONOMOUS = 'AUTONOMOUS',\n /** The application's own code calls it once and uses its answer. Registered under `agents`. */\n INVOKED = 'INVOKED',\n /** One step of a declared flow. Registered under `agents`. */\n FLOW_STEP = 'FLOW_STEP',\n}\n\n\n/**\n * What a data seed's rows ARE, which decides where they may exist.\n *\n * - `REFERENCE` — rows the application needs to work wherever it runs: a closed list, a default\n * record, a system template. Every environment, production included.\n * - `DEMONSTRATION` — sample rows that make a freshly created application look lived-in (customers,\n * projects, a few records per list). They must never sit beside real rows, so the seed declares\n * `allowedApplicationEnvironments` without `production`, and the task lands only once it does.\n */\nexport enum BuildPlanDataSeedContent {\n REFERENCE = 'REFERENCE',\n DEMONSTRATION = 'DEMONSTRATION',\n}\n\n/**\n * A data seed's key: kebab-case segments joined by `:` (`crm:demo-customers`), the convention a\n * `DataSeedDefinition` documents. Constrained here because the seed's FILE is derived from it.\n */\n/**\n * An application role's name, as `CUSTOM_ROLES_CONFIGURATION` keys it: upper snake case (`FIELD_TECHNICIAN`).\n * A core role (`ORG_MEMBER`, `APP_ADMIN_SUPER_ADMIN`) is not something an application declares, so the\n * product refuses one: a plan naming it would claim to create a role the engine already owns.\n */\nexport const APPLICATION_ROLE_NAME_PATTERN: RegExp = /^[A-Z][A-Z0-9]*(?:_[A-Z0-9]+)*$/;\n/** Every role the ENGINE defines: an application role may not take one of these names, and a qualification may name one without declaring it. */\nexport const CORE_ROLE_NAMES: ReadonlySet<string> = new Set<string>([...Object.values(CORE_APP_ROLES), ...Object.values(CORE_ORG_ROLES)]);\n\n/**\n * An agent's or a function tool's ref: segments of letters and digits joined by `.`, `-` or `_`\n * (`close-assistant.chat.agent`, `todos.overdue-triage`, `resource.adjustmentProposals.post`). Case is kept, because a\n * tool ref follows the framework's `resource.<resourceType>.<operation>` convention and a multi-word resource type is\n * camelCase. Constrained because the probe compares it EXACTLY with the registered ref: no space, no slash, no empty\n * segment.\n */\nexport const AGENT_WORK_REF_PATTERN: RegExp = /^[A-Za-z0-9]+(?:[._-][A-Za-z0-9]+)*$/;\n\n/**\n * A step or a decision point of the firm's method (#2305), addressed as `<serviceRef>/<elementRef>`\n * (`month-end-close/approve-posting`). A step's and a decision's ref are unique only within their service, so the\n * service qualifies them; the `service-method` family declares both halves as kebab-case slugs.\n */\nexport const SERVICE_METHOD_ELEMENT_REF_PATTERN: RegExp = /^[a-z0-9]+(?:-[a-z0-9]+)*\\/[a-z0-9]+(?:-[a-z0-9]+)*$/;\n\n/**\n * A function tool's top-level argument name (#2915), as a gate's `deliverableFileArgument` names it: an identifier, the\n * shape a tool's argument schema keys its properties by. The engine refuses at registration a name its schema does not\n * declare as a string; this pattern only refuses what could never be one.\n */\nexport const FUNCTION_TOOL_ARGUMENT_NAME_PATTERN: RegExp = /^[A-Za-z_][A-Za-z0-9_]*$/;\n\n/** The ref a build-plan product carries for one step or decision point of the method (#2305). */\nexport function serviceMethodElementRef(serviceRef: string, elementRef: string): string {\n return `${serviceRef}/${elementRef}`;\n}\n\nexport const DATA_SEED_KEY_PATTERN: RegExp = /^[a-z0-9]+(?:-[a-z0-9]+)*(?::[a-z0-9]+(?:-[a-z0-9]+)*)*$/;\n\n/**\n * One artifact a task is accountable for. Closed by construction: a product the\n * host cannot ask a question about is a product that can never be shown to have\n * landed, so the vocabulary only grows alongside the resolver that answers it.\n */\nexport const BuildPlanTaskProductSchema = z.discriminatedUnion('kind', [\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RESOURCE_SCHEMA_FIELDS).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /**\n * At least one field, because a task that enriches a schema with nothing is\n * the vacuity this whole field exists to stop: it would land the moment the\n * scaffold existed, which is the defect being fixed.\n */\n fieldRefs: z.array(NonEmptyStringSchema).min(1),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_REGISTRATION).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, operationRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_UI_BEHAVIOR).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_SPECIFICATION).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, fieldRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RESOURCE_RELATIONSHIP).systemEnum('BuildPlanTaskProductKind'),\n relationshipRef: SlugSchema,\n /*\n * The two resources the edge relates, NAMED rather than parsed out of the ref.\n *\n * A ref is `<source>-<target>` by convention and that convention is not invertible:\n * `next-step-deal` splits as (`next`, `step-deal`) or (`next-step`, `deal`) and only the domain\n * plan knows which. The domain plan already carries both, so the plan passes them on instead of\n * making the host guess — a host that guesses wrong probes for a resource that does not exist\n * and reports the task permanently unlanded.\n */\n sourceResourceRef: SlugSchema,\n targetResourceRef: SlugSchema,\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_OPERATION).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, operationRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_VIEW).systemEnum('BuildPlanTaskProductKind'), viewRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_DOCUMENT).systemEnum('BuildPlanTaskProductKind'), documentRef: DocumentProductRefSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MODULE).systemEnum('BuildPlanTaskProductKind'), moduleRef: ModuleRefSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_FRONTEND_CONFIG).systemEnum('BuildPlanTaskProductKind'),\n configSurface: z.enum(FrontendConfigSurface).systemEnum('FrontendConfigSurface'),\n /** At least one, for the same vacuity reason as a schema's `fieldRefs`: the file exists on day one. */\n declarationRefs: z.array(NonEmptyStringSchema).min(1),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_COMPOSITE_VIEW).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, viewRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_CUSTOM_VIEW).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, viewRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.RESOURCE_CHART_VIEW).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema, chartRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.CUSTOM_COMPONENT).systemEnum('BuildPlanTaskProductKind'), componentRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MILESTONE).systemEnum('BuildPlanTaskProductKind'), milestoneRef: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_GUIDANCE).systemEnum('BuildPlanTaskProductKind'),\n /** Which definitions file carries it — a document and a flow live in different ones. */\n guidanceKind: z.enum(ApplicationGuidanceKind).systemEnum('ApplicationGuidanceKind'),\n guidanceRef: SlugSchema,\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.PDF_TEMPLATE).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /** The generated-file FIELD the template is bound to (`generatedSummaryPdf`) — a symbol, so any spelling. */\n templateRef: NonEmptyStringSchema,\n /**\n * #2305 S6: the deliverable of the firm's method this document is, as `<serviceRef>/<deliverableRef>`. Its resource\n * must be the one the deliverable is produced from; the derivation check compares them.\n */\n serviceMethodDeliverableRef: z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN).optional(),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_WORKER).systemEnum('BuildPlanTaskProductKind'), workerRef: IntegrationWorkerRefSchema, jobRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_MINION).systemEnum('BuildPlanTaskProductKind'), minionRef: IntegrationMinionRefSchema, behaviorRefs: z.array(NonEmptyStringSchema).min(1) }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.PROVIDER_BINDING).systemEnum('BuildPlanTaskProductKind'),\n providerRef: SlugSchema,\n scope: z.enum(ProviderBindingScope).systemEnum('ProviderBindingScope'),\n /**\n * The provider this module adds operations to, copied from the integration plan's binding (#2025). Present, it\n * changes what landing means: the application's opt-in under `providers.augmentations.<augments>` lists the module's\n * package, rather than a scope naming `providerRef` (an augmentation writes no scope entry).\n */\n augments: SlugSchema.optional(),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT).systemEnum('BuildPlanTaskProductKind'), productKey: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_ROLE).systemEnum('BuildPlanTaskProductKind'),\n roleRef: z.string().regex(APPLICATION_ROLE_NAME_PATTERN).refine((roleRef) => !CORE_ROLE_NAMES.has(roleRef), {\n message: 'A core role is the engine\\'s; an application role needs a name of its own.',\n }),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_DATA_SEED).systemEnum('BuildPlanTaskProductKind'),\n seedKey: z.string().regex(DATA_SEED_KEY_PATTERN),\n /** The resource whose rows the seed writes — the `resourceType` it declares. */\n resourceRef: SlugSchema,\n content: z.enum(BuildPlanDataSeedContent).systemEnum('BuildPlanDataSeedContent'),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.WEBSITE_PAGE).systemEnum('BuildPlanTaskProductKind'), pageRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.WEBSITE_SECTION).systemEnum('BuildPlanTaskProductKind'), pageRef: SlugSchema, sectionRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER).systemEnum('BuildPlanTaskProductKind'), chapterRef: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.APPLICATION_AGENT).systemEnum('BuildPlanTaskProductKind'),\n /** The agent's `ref` exactly as it is registered (`close-assistant.chat.agent`, `todos.overdue-triage`). */\n agentRef: z.string().regex(AGENT_WORK_REF_PATTERN),\n shape: z.enum(BuildPlanAgentShape).systemEnum('BuildPlanAgentShape'),\n /**\n * The firm's method steps this agent carries (#2305), as `<serviceRef>/<stepRef>`: set when the application has a\n * service method, so the derivation can be checked as total (every agent step has its agent). One agent may carry\n * several steps; each must be an AGENT step of the same `shape`.\n */\n serviceMethodStepRefs: z.array(z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN)).min(1).optional(),\n /**\n * The decision points of the firm's method this agent ASKS as a review question (an actor-system question routed\n * to people when its run suspends), as `<serviceRef>/<decisionRef>` (#2305). A decision is realized either so or by\n * a tool's approval gate (`serviceMethodDecisionRef`), never both: a review question IS the review, and its tool\n * carries no gate. Its route is built by the agent's code when it suspends, so only the realization is checked here.\n */\n serviceMethodAskedDecisionRefs: z.array(z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN)).min(1).optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.AGENT_APPROVAL_GATE).systemEnum('BuildPlanTaskProductKind'),\n /** The gated tool's `functionRef` exactly as it is registered (`resource.<resourceType>.<operation>` for a resource tool). */\n functionRef: z.string().regex(AGENT_WORK_REF_PATTERN),\n route: z.enum(HumanDecision_RouteKind).systemEnum('HumanDecision_RouteKind'),\n /**\n * The role every answerer must hold, as the role table keys it: required for a ROLE or ASSIGNEE route, refused for\n * an OWNER route (answered by the person whose turn it is) — the engine's own rule for a gate, so a plan cannot name a\n * gate the engine would refuse at startup.\n */\n eligibleRole: z.string().regex(APPLICATION_ROLE_NAME_PATTERN).optional(),\n /**\n * The professional qualifications the answerer must ALSO hold (#2967), as the application's\n * `professionalQualificationKinds` keys them: a ROLE or ASSIGNEE gate only, the engine's own rule. Landing compares\n * them with the gate's, so a gate built without the qualification the plan required does not land.\n */\n requiredQualificationKinds: z.array(z.string().regex(LABEL_KEY_SEGMENT_PATTERN)).min(1).optional(),\n /**\n * The decision point of the firm's method this gate realizes (#2305), as `<serviceRef>/<decisionRef>`: set when the\n * application has a service method. Its route must be the decision's, its role the decision's qualification's\n * role, and its qualifications that qualification's kind; the derivation check compares them.\n */\n serviceMethodDecisionRef: z.string().regex(SERVICE_METHOD_ELEMENT_REF_PATTERN).optional(),\n /**\n * The tool's argument carrying the file the approver approves (#2915): the tool's `deliverableFileArgument`, so the\n * approval's seal binds that file by its hash. Set when the decision this gate realizes approves a deliverable of the\n * firm's method (`approvedByDecisionRef`); landing compares it with the tool's declaration.\n */\n deliverableFileArgument: z.string().regex(FUNCTION_TOOL_ARGUMENT_NAME_PATTERN).optional(),\n /**\n * The level the approved file is signed at, by its approver (#2915): the tool's `electronicSignature.requiredLevel`,\n * with the approver as its one signer, the only signer the engine has. Set when the deliverable it approves is signed\n * (`signature.level`); requires `deliverableFileArgument`, since only a file bound by its hash is sent for signature.\n */\n electronicSignatureLevel: z.enum(ElectronicSignature_Level).systemEnum('ElectronicSignature_Level').optional(),\n }).refine((gate) => (gate.route === HumanDecision_RouteKind.OWNER) === (gate.eligibleRole === undefined), {\n message: 'An OWNER gate names no role; a ROLE or ASSIGNEE gate names the role its answerer must hold.',\n path: ['eligibleRole'],\n }).refine((gate) => gate.route !== HumanDecision_RouteKind.OWNER || gate.requiredQualificationKinds === undefined, {\n message: 'An OWNER gate requires no qualification: its answerer is the person whose turn it is, whom nothing vets.',\n path: ['requiredQualificationKinds'],\n }).refine((gate) => gate.electronicSignatureLevel === undefined || gate.deliverableFileArgument !== undefined, {\n message: 'A gate whose approved file is signed names the argument carrying that file (deliverableFileArgument): only a file bound by its hash is sent for signature.',\n path: ['electronicSignatureLevel'],\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskProductKind.WORK_UNIT_RESOURCE).systemEnum('BuildPlanTaskProductKind'), resourceRef: SlugSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.METERED_USAGE_RECORDING).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /** The operation that records, as the resource's configuration keys it (`record-sign-off` for `record_sign_off`). */\n operationRef: SlugSchema,\n /** The METERED product it records against: an `APPLICATION_BILLING_PRODUCT` of this plan, by its catalogue key. */\n productKey: SlugSchema,\n /** Whether it records at most once per row (`oncePerRecord`). A price per case counts each case once, however often it closes. */\n oncePerRecord: z.boolean(),\n /**\n * #2305 S5: the service of the firm's method whose price PER CASE this records, by its `serviceRef`. Its resource must\n * be that service's case and it must count once per row; the derivation check compares them.\n */\n serviceMethodServiceRef: SlugSchema.optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n retentionClass: z.enum(DataRetentionClass).systemEnum('DataRetentionClass'),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.RELATIONSHIP_CONFERRED_ROLE).systemEnum('BuildPlanTaskProductKind'),\n /** The relationship kind, by its key in `organizationRelationships` (`service`). */\n relationshipRef: SlugSchema,\n /** The role conferred, by its key in the role table (`ORG_QUALIFIED_ACCOUNTANT`), a core role or the application's. */\n roleRef: z.string().regex(APPLICATION_ROLE_NAME_PATTERN),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.ORGANIZATION_TYPE).systemEnum('BuildPlanTaskProductKind'),\n /**\n * The type's ref as the domain plan's organization model names it (`regulated-client`): its key in\n * `organizationTypes`, except for the owner type, which is found by `ownsApplication` whatever its key.\n */\n organizationTypeRef: SlugSchema,\n /** The type operates the application. Then the configuration's own owner type is the one the plan describes. */\n ownsApplication: z.literal(true).optional(),\n /** The roles the type must offer (`availableOrgRoles`, or the engine's default offer). */\n offeredRoles: z.array(z.string().regex(APPLICATION_ROLE_NAME_PATTERN)).min(1).optional(),\n /** The user types the type must grant its members (`userTypes`). */\n userTypes: z.array(SlugSchema).min(1).optional(),\n /** Whether the type's members must use a second factor (`authOverrides.mfaPolicy.requireMFA`). */\n requiresMfa: z.boolean().optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.ORGANIZATION_RELATIONSHIP_KIND).systemEnum('BuildPlanTaskProductKind'),\n /** The kind's key in `organizationRelationships` (`partnership`), the same key a `RELATIONSHIP_CONFERRED_ROLE` names. */\n relationshipRef: SlugSchema,\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.ORGANIZATION_UNIT_CONFINEMENT).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n mode: z.enum(OrganizationRowConfinementMode).systemEnum('OrganizationRowConfinementMode'),\n /**\n * The field the confinement reads, as the resource's schema names it: the unit field (`organizationUnitId`) for\n * `ORGANIZATION_UNIT`, the owning user's field (`createdByUserId`) for `OWN_ROWS`. Compared exactly, because a\n * confinement on another field confines by something else.\n */\n fieldName: z.string().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.SYSTEM_OF_RECORD_BINDING).systemEnum('BuildPlanTaskProductKind'),\n resourceRef: SlugSchema,\n /** The instance's key in `systemsOfRecord` (`odoo`), the name a binding's `system` carries. */\n systemOfRecordRef: z.string().regex(SYSTEM_OF_RECORD_NAME_PATTERN),\n /**\n * The system's facet, as the domain plan names it (`odoo`, `sap-s4hana`): the `vendor` the declared instance must\n * carry, so a binding to an instance of another vendor does not land.\n */\n systemOfRecordKind: SlugSchema,\n /** The lane the domain plan decided: read through on every request, or copied by a pipeline. Required there, so here. */\n access: z.enum(SystemOfRecordAccess).systemEnum('SystemOfRecordAccess'),\n /**\n * Whether the instance's records are split by legal entity (#3045), as the domain plan's record location says\n * (`domainPlanRecordPartitionPartitionsInstance`): `true` declares `partition: true` on the instance, and a copied\n * resource then stamps each row's unit and entity key on its pipeline (`partitionUnitLocalField`,\n * `partitionKeyLocalField`); `false` declares neither. The landing probe compares it with the instance's flag. Absent\n * (a plan written before #3045): not compared.\n */\n partitioned: z.boolean().optional(),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER).systemEnum('BuildPlanTaskProductKind'),\n /** The channel the handler serves — one the integration plan declared ({@link PlannableInboundChannelKind}). */\n channel: z.enum(PlannableInboundChannelKind).systemEnum('InboundChannelKind'),\n /** The handler's `ref`, exactly as `inboundHandlerRef()` will accept it. */\n handlerRef: z.string().regex(INBOUND_HANDLER_REF_PATTERN),\n }),\n]);\nexport type BuildPlanTaskProduct = z.infer<typeof BuildPlanTaskProductSchema>;\n\n/**\n * Every artifact identity a product claims — one string per artifact, not one\n * per product, because a product may claim several.\n *\n * `RESOURCE_SCHEMA_FIELDS` is why this returns a list. Two tasks may both enrich\n * one resource's schema (a domain shape and a billing concern, say), and that is\n * legitimate; what must never overlap is the FIELDS. Comparing whole products\n * would refuse the legitimate pair, and comparing only the resource would let two\n * tasks claim one field and make landing ambiguous again.\n *\n * Derived from the product's own members rather than stored, and total over the\n * vocabulary, so a kind added tomorrow must state its identity here or fail to\n * compile — it cannot be silently treated as equal to its siblings.\n */\nexport function buildPlanTaskProductIdentities(product: BuildPlanTaskProduct): readonly string[] {\n switch (product.kind) {\n case BuildPlanTaskProductKind.RESOURCE_SCHEMA_FIELDS:\n return product.fieldRefs.map((fieldRef) => `${product.kind}:${product.resourceRef}:${fieldRef}`);\n case BuildPlanTaskProductKind.RESOURCE_REGISTRATION:\n return product.operationRefs.map((operationRef) => `${product.kind}:${product.resourceRef}:${operationRef}`);\n case BuildPlanTaskProductKind.RESOURCE_SPECIFICATION:\n return product.fieldRefs.map((fieldRef) => `${product.kind}:${product.resourceRef}:${fieldRef}`);\n case BuildPlanTaskProductKind.RESOURCE_UI_BEHAVIOR:\n return [`${product.kind}:${product.resourceRef}`];\n case BuildPlanTaskProductKind.RESOURCE_RELATIONSHIP:\n return [`${product.kind}:${product.relationshipRef}`];\n case BuildPlanTaskProductKind.RESOURCE_OPERATION:\n return [`${product.kind}:${product.resourceRef}:${product.operationRef}`];\n case BuildPlanTaskProductKind.APPLICATION_VIEW:\n return [`${product.kind}:${product.viewRef}`];\n case BuildPlanTaskProductKind.APPLICATION_DOCUMENT:\n /*\n * The ref AS AUTHORED, so a slug and a namespaced ref are different artifact identities even\n * where they mean the same document — the duplicate-artifact refusal cannot see two tasks\n * claiming one document if they spell it differently. Not normalisable: a slug carries no\n * namespace, so nothing can recover `public.` from `privacy-notice`. It costs nothing today\n * because a slug names no catalogued document at all, and the dispatcher skips such a task.\n */\n return [`${product.kind}:${product.documentRef}`];\n case BuildPlanTaskProductKind.APPLICATION_MODULE:\n return [`${product.kind}:${product.moduleRef}`];\n // One identity per DECLARATION, like schema fields: two tasks may compose one config file as\n // long as they declare different things in it.\n case BuildPlanTaskProductKind.APPLICATION_FRONTEND_CONFIG:\n return product.declarationRefs.map((declarationRef) => `${product.kind}:${product.configSurface}:${declarationRef}`);\n case BuildPlanTaskProductKind.RESOURCE_COMPOSITE_VIEW:\n case BuildPlanTaskProductKind.RESOURCE_CUSTOM_VIEW:\n return [`${product.kind}:${product.resourceRef}:${product.viewRef}`];\n case BuildPlanTaskProductKind.RESOURCE_CHART_VIEW:\n return [`${product.kind}:${product.resourceRef}:${product.chartRef}`];\n case BuildPlanTaskProductKind.CUSTOM_COMPONENT:\n return [`${product.kind}:${product.componentRef}`];\n case BuildPlanTaskProductKind.APPLICATION_MILESTONE:\n return [`${product.kind}:${product.milestoneRef}`];\n // The ref alone: a document and a flow sharing one ref is still one guidance identity, and the\n // runtime keys a person's saved state by it — two artifacts claiming it would collide there too.\n case BuildPlanTaskProductKind.APPLICATION_GUIDANCE:\n return [`${product.kind}:${product.guidanceRef}`];\n case BuildPlanTaskProductKind.PDF_TEMPLATE:\n return [`${product.kind}:${product.resourceRef}:${product.templateRef}`];\n case BuildPlanTaskProductKind.APPLICATION_WORKER:\n return product.jobRefs.map((jobRef) => `${product.kind}:${product.workerRef}:${jobRef}`);\n case BuildPlanTaskProductKind.APPLICATION_MINION:\n return product.behaviorRefs.map((behaviorRef) => `${product.kind}:${product.minionRef}:${behaviorRef}`);\n // The SCOPE is part of the identity: one provider bound on the backend and on the website is two artifacts.\n case BuildPlanTaskProductKind.PROVIDER_BINDING:\n return [`${product.kind}:${product.scope}:${product.providerRef}`];\n case BuildPlanTaskProductKind.APPLICATION_BILLING_PRODUCT:\n return [`${product.kind}:${product.productKey}`];\n case BuildPlanTaskProductKind.APPLICATION_ROLE:\n return [`${product.kind}:${product.roleRef}`];\n // The key alone: two seeds may write one resource, and the key is what the seed run ledger tracks.\n case BuildPlanTaskProductKind.APPLICATION_DATA_SEED:\n return [`${product.kind}:${product.seedKey}`];\n case BuildPlanTaskProductKind.WEBSITE_PAGE:\n return [`${product.kind}:${product.pageRef}`];\n case BuildPlanTaskProductKind.WEBSITE_SECTION:\n return [`${product.kind}:${product.pageRef}:${product.sectionRef}`];\n case BuildPlanTaskProductKind.DOCUMENTATION_CHAPTER:\n return [`${product.kind}:${product.chapterRef}`];\n case BuildPlanTaskProductKind.INBOUND_CHANNEL_HANDLER:\n return [`${product.kind}:${product.handlerRef}`];\n case BuildPlanTaskProductKind.APPLICATION_AGENT:\n return [`${product.kind}:${product.agentRef}`];\n // The TOOL alone: one tool has one gate, so two tasks gating it differently would make landing ambiguous.\n case BuildPlanTaskProductKind.AGENT_APPROVAL_GATE:\n return [`${product.kind}:${product.functionRef}`];\n case BuildPlanTaskProductKind.WORK_UNIT_RESOURCE:\n return [`${product.kind}:${product.resourceRef}`];\n // The operation and the product: one operation may record several products, and two tasks recording one product on\n // one operation would make landing ambiguous.\n case BuildPlanTaskProductKind.METERED_USAGE_RECORDING:\n return [`${product.kind}:${product.resourceRef}:${product.operationRef}:${product.productKey}`];\n // One resource has one binding, so two tasks binding it would make landing ambiguous.\n case BuildPlanTaskProductKind.RESOURCE_RETENTION_BINDING:\n return [`${product.kind}:${product.resourceRef}`];\n case BuildPlanTaskProductKind.RELATIONSHIP_CONFERRED_ROLE:\n return [`${product.kind}:${product.relationshipRef}:${product.roleRef}`];\n // The OWNER type is one per application whatever its key, so two products describing it would make landing ambiguous.\n case BuildPlanTaskProductKind.ORGANIZATION_TYPE:\n return [product.ownsApplication === true ? `${product.kind}:application-owner` : `${product.kind}:${product.organizationTypeRef}`];\n case BuildPlanTaskProductKind.ORGANIZATION_RELATIONSHIP_KIND:\n return [`${product.kind}:${product.relationshipRef}`];\n // The MODE is part of the identity: one resource may be confined to the unit AND to its owner's rows (#3036).\n case BuildPlanTaskProductKind.ORGANIZATION_UNIT_CONFINEMENT:\n return [`${product.kind}:${product.resourceRef}:${product.mode}`];\n // The resource alone: one resource's records live in one place, so two bindings of it would make landing ambiguous.\n case BuildPlanTaskProductKind.SYSTEM_OF_RECORD_BINDING:\n return [`${product.kind}:${product.resourceRef}`];\n default: {\n const unhandled: never = product;\n throw new Error(`Unhandled build-plan task product ${JSON.stringify(unhandled)}.`);\n }\n }\n}\n\n/**\n * The skill every billing-catalogue task is authored with (#1835): the product-catalogue contract, the\n * money encoding (minor units), and the pricing-surface facts. The dispatch derives it from an\n * `APPLICATION_BILLING_PRODUCT` product whatever the decomposer wrote, so an agent writing the catalogue\n * the backend sells from is never without it. A `METERED_USAGE_RECORDING` task carries it too (#2305 S5): the skill\n * says how an operation records usage of a metered product, and how a price per case counts each case once.\n */\nexport const BILLING_CATALOG_SKILL_REF = 'configure-billing';\n\n/**\n * The skill every application-roles task is authored with (#2490): the role table, the organization\n * types that offer a role, and the operation roles that make it matter. The dispatch derives it from an\n * `APPLICATION_ROLE` product whatever the decomposer wrote.\n */\nexport const APPLICATION_ROLES_SKILL_REF = 'application-roles-authoring';\n\n/**\n * The skill every data-seed task is authored with (#2234): levels, modes, business keys, and the\n * environment restriction that keeps demonstration rows out of production. The dispatch derives it from\n * an `APPLICATION_DATA_SEED` product whatever the decomposer wrote.\n */\nexport const DATA_SEED_SKILL_REF = 'seeding-authoring';\n\n/**\n * The skill every PDF-template task is authored with (#2495): the template contract, the file field it fills, and\n * where the generated file is stored. The dispatch derives it from a `PDF_TEMPLATE` product whatever the decomposer\n * wrote.\n */\nexport const PDF_TEMPLATE_SKILL_REF = 'pdf-template-authoring';\n\n/**\n * The skill a resource CONFIG task carries when the resource DECLARES personal data (#2495): its retention binding\n * lives in that configuration file, and storage limitation is a duty about personal data. The dispatch reads the\n * declaration from the resource's schema (the engine's personal-data markers), whatever the decomposer wrote.\n */\nexport const RESOURCE_RETENTION_SKILL_REF = 'resource-retention-binding';\n\n/**\n * The skill a task conferring a role through an organization relationship is authored with (#2305 S6): the relationship\n * kind's `confers`, the granting types that must offer the role, and the startup checks that refuse a mismatch. The\n * dispatch derives it from a `RELATIONSHIP_CONFERRED_ROLE` product whatever the decomposer wrote.\n */\nexport const ORGANIZATION_RELATIONSHIPS_SKILL_REF = 'organization-relationships';\n\n/**\n * The skill each agent shape is built with (#2966). The dispatch derives it from an `APPLICATION_AGENT` product whatever\n * the decomposer wrote. Total over {@link BuildPlanAgentShape}, so a shape added tomorrow must name its skill.\n */\nexport const BUILD_PLAN_AGENT_SHAPE_SKILL_REF: Readonly<Record<BuildPlanAgentShape, string>> = {\n [BuildPlanAgentShape.CHAT_ASSISTANT]: 'flows-actors-chat-assistant',\n [BuildPlanAgentShape.AUTONOMOUS]: 'flows-actors-autonomous-agents',\n [BuildPlanAgentShape.INVOKED]: 'flows-actors-llm-agent-invocation',\n [BuildPlanAgentShape.FLOW_STEP]: 'flows-actors-declared-flow',\n};\n\n/**\n * The skill every agent and every approval gate is ALSO built with (#2966): what the agent's use is for, whether it\n * decides anything about a person, and its gated writes. An agent built from its shape skill alone is the undeclared,\n * unguarded shape.\n */\nexport const AI_USE_DECLARATION_SKILL_REF = 'ai-use-declaration';\n\n/**\n * The skill an approval gate is built with (#2966): `flows-actors-chat-assistant` is where the `humanApproval` contract\n * is taught whole — the three routes, the eligible role, an assignee, escalation, deadlines and the review calendar —\n * whichever kind of agent calls the tool.\n */\nexport const AGENT_APPROVAL_GATE_SKILL_REF = 'flows-actors-chat-assistant';\n\n/**\n * The skill a gate binding its approved file is built with, besides the gate's own (#2915): `electronic-signature-deliverables`\n * teaches `deliverableFileArgument` and `electronicSignature` on a tool, and what the approval's seal and the signature\n * request then record.\n */\nexport const DELIVERABLE_APPROVAL_SKILL_REF = 'electronic-signature-deliverables';\n\n/**\n * The skill an organization-type task is built with (#3040): `organizationTypes` in the application's configuration, the\n * user types and roles a type offers, how it is joined, and the identity overrides it may carry. The dispatch derives it\n * from an `ORGANIZATION_TYPE` product whatever the decomposer wrote. A relationship kind is built with\n * {@link ORGANIZATION_RELATIONSHIPS_SKILL_REF}.\n */\nexport const ORGANIZATION_TYPE_SKILL_REF = 'config-saas-backend';\n\n/**\n * The skill a confinement task is built with (#3040): `organizationUnitNarrowing` and `organizationOwnRows` at startup,\n * and why a confined resource's reads are gated above the default member role. Derived from an\n * `ORGANIZATION_UNIT_CONFINEMENT` product whatever the decomposer wrote.\n */\nexport const ORGANIZATION_UNIT_CONFINEMENT_SKILL_REF = 'authorization-unit-narrowing';\n\n/**\n * The skills a system-of-record binding is built with (#3040): `resource-external-data` for the binding itself (the two\n * lanes, the field mapping, subject rights), and `config-saas` for the `systemsOfRecord` instance the binding names.\n * Derived from a `SYSTEM_OF_RECORD_BINDING` product whatever the decomposer wrote.\n */\nexport const SYSTEM_OF_RECORD_BINDING_SKILL_REFS: readonly string[] = ['resource-external-data', 'config-saas'];\n\n/** The skill a work-unit task is built with (#2966): the `workUnit` declaration, model prices and the case passed to agent turns. */\nexport const WORK_UNIT_SKILL_REF = 'model-cost-attribution';\n\nexport const BuildPlanTaskTargetSchema = z.discriminatedUnion('kind', [\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.MODULE), moduleRef: ModuleRefSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.RESOURCE_STAGE),\n moduleRef: ModuleRefSchema,\n resourceRef: SlugSchema,\n stage: z.enum(BuildPlanResourceStage),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.RELATIONSHIP),\n /** The module whose `<module>.relationships.ts` the edges are written into: the task's write scope. */\n moduleRef: ModuleRefSchema,\n /**\n * Every domain-plan relationship this task wires, by the domain plan's `relationshipRef` (#3209).\n *\n * A LIST, because the unit of work is the module's relationships FILE, not one edge. Each edge is a\n * `createResourcesRelationship(...)` call in that one file, plus the holder's ui-behavior and both\n * resources' specifications, so two tasks wiring two edges of one module edit the same file. Run\n * concurrently they overwrite each other, and the build wave re-runs each interfered task alone:\n * app-creation-test-007 split one module's 23 edges into 23 tasks, and the relationship phase ran one\n * task at a time for about seven hours with a parallelism of five. One task per file (see\n * {@link groupRelationshipTasksByModule}) pays the worker's start and the checks once, and lets\n * different modules' files go in parallel.\n *\n * Each ref here has its `RESOURCE_RELATIONSHIP` product on the same task, and that is checked\n * (`RELATIONSHIP_TARGET_DISAGREES_WITH_PRODUCTS`): the target says what the coverage check counts as\n * wired, and the products are what landing proves. A target naming an edge no product declares would\n * count as covered and never be probed.\n */\n relationshipRefs: z.array(SlugSchema).min(1),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP),\n /** The companion generation step this task runs (e.g. i18n-labels, email-templates); resolved by the companion, never by a coding agent. */\n generationStepRef: SlugSchema,\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.SHELL_PLACEMENT),\n /**\n * Which shell surface this task authors — the placement family's OWN\n * `PlacementSurface`, deliberately not a build-plan copy of it.\n *\n * A copy was written first and was a defect, caught by probing the landing\n * renderer rather than by any test: `PlacementAddress` discriminates on\n * `surface` with `z.literal(...)` per option, so only the VALUES survive into\n * the schema, and the renderer resolves a discriminator by matching that value\n * SET against the exported enums. Two enums with identical values made the\n * match ambiguous, the renderer correctly refused to guess an owner, and the\n * address discriminator became unnameable — a landed placement plan would have\n * emitted `surface: \"SETTINGS_HUB\"` as a bare string instead of\n * `PlacementSurface.SETTINGS_HUB`. One concept, one named source.\n */\n surface: z.enum(PlacementSurface).systemEnum('PlacementSurface'),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.MODULE_FRONTEND), moduleRef: ModuleRefSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.MODULE_BACKEND), moduleRef: ModuleRefSchema }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.APPLICATION_FRONTEND_CONFIG),\n configSurface: z.enum(FrontendConfigSurface).systemEnum('FrontendConfigSurface'),\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.WEBSITE) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.TECHNICAL_DOCUMENTATION) }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.WORKER),\n /**\n * The integration plan's `workerRef` (`worker-<slug>`), verbatim. The package directory is derived from it by\n * `integrationWorkerDirectoryName`, the same rule the foundation step composes the package with, so the plan never\n * has to guess where the package went.\n */\n workerRef: IntegrationWorkerRefSchema,\n runtime: z.enum(BuildPlanWorkerRuntime).systemEnum('BuildPlanWorkerRuntime'),\n }),\n z.strictObject({\n kind: z.literal(BuildPlanTaskTargetKind.MINION),\n /** The integration plan's `minionRef` (`minion-<slug>`), verbatim; the directory is `integrationMinionDirectoryName`'s. */\n minionRef: IntegrationMinionRefSchema,\n }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.PROVIDER_BINDING), providerRef: SlugSchema }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.BILLING_CATALOG) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.APPLICATION_ROLES) }),\n z.strictObject({ kind: z.literal(BuildPlanTaskTargetKind.ORGANIZATION_MODEL) }),\n]);\nexport type BuildPlanTaskTarget = z.infer<typeof BuildPlanTaskTargetSchema>;\n\n/**\n * One ordered build task. It names WHAT to build and WHY; it never carries\n * HOW (no paths, commands, prompts, cwd, model, profile). The host resolves\n * the physical allowed/prohibited paths and the fixed verification from the\n * target kind, and the installed skills from `skillRefs` against the app\n * knowledge catalog.\n *\n * Dependency readiness is DECLARED as prerequisite task refs and RESOLVED by\n * the host (a prerequisite is satisfied when its task has landed), never a\n * solved DAG the model must get right.\n */\nexport const BuildPlanTaskSchema = z.strictObject({\n /** `build-task-<slug>`, stamped by the trusted runtime. */\n taskRef: z.string().regex(new RegExp(`^${BUILD_PLAN_TASK_REF_PREFIX}[a-z0-9]+(?:-[a-z0-9]+)*$`)),\n /**\n * One sentence of intent: what this task delivers.\n *\n * Its OWN instance, not the file's shared leaf, which `templateRef` and the product ref lists also\n * hold. The workbench's reading decorations are keyed by INSTANCE, and it gives those refs a receding\n * identifier look, which the objective sentence took too while it shared their leaf.\n */\n objective: z.string().trim().min(1),\n target: BuildPlanTaskTargetSchema,\n /**\n * The artifacts this task is accountable for — what proves it done.\n *\n * Coding tasks should declare at least one product that composition did not already\n * write. A target is a shared mutation scope; its scaffolded file is not evidence\n * that this task's intended work exists. Products identify the output to probe.\n *\n * Empty declarations remain representable and produce the advisory\n * `TASK_DECLARES_NO_PRODUCT`. The host may advance after a COMPLETED durable run,\n * while naming the task in `unverifiableLandedTaskRefs`: it ran, but its output\n * cannot be proven from a product declaration. An unexecuted task is not landed.\n * This distinction avoids repeatedly dispatching the same unprovable task without\n * presenting execution history as evidence that the intended product is correct.\n *\n * A minion's product is the one declared product composition DOES write first: the foundation's\n * `add-minion` declares the minion before its task runs, and its behaviour refs are spelled by no\n * code. The host therefore lands a minion task only on a completed run of its own, and names it in\n * `unverifiableLandedTaskRefs` too (#3900).\n *\n * The ONE hard exception is a `COMPANION_GENERATION_STEP`, which must declare NONE.\n * That kind already carries its own typed landed condition, owned by the\n * generation-step service — a set computed asynchronously (planner units x\n * enabled locales), and for the migration step a STATE rather than files. A\n * product declared beside it would be read by nothing, which is the inert\n * declaration this field exists to avoid. Enforced on the graph below, in both\n * directions.\n */\n produces: z.array(BuildPlanTaskProductSchema).default([]),\n /**\n * Exactly ONE functional topic this task belongs to.\n *\n * **It does NOT drive ordering** — this said \"drives cross-app ordering\" until 2026-08-30 and\n * nothing ever ordered by it. Sequencing is `prerequisiteTaskRefs`, resolved by the host, and it\n * is the only thing that decides what may run next.\n *\n * What it DOES: the dispatch host stamps it into the coding-agent's task payload beside\n * `skillRefs`, so the agent is told which phase of building the application this task belongs to.\n * That is context an LLM reads, not a value the runtime branches on — the distinction matters,\n * because a reader who believes it orders will look here for a scheduling bug that lives in the\n * prerequisite graph. See issue #124.\n */\n functionalTopic: z.enum(MetaWorkflow_FunctionalTopic).systemEnum('MetaWorkflow_FunctionalTopic'),\n /** Installed app-knowledge skill folders that carry the technical HOW; resolved via the skills router at dispatch. */\n skillRefs: z.array(SkillRefSchema).min(1),\n /** Task refs that must have landed first; resolved by the host, not solved by the model. */\n prerequisiteTaskRefs: z.array(z.string()).default([]),\n /**\n * What this task is accountable to — traceability only, NEVER scope authority.\n *\n * The vocabulary is the target aspects `BUILD_PLAN_FAMILY_ASPECTS` declares for this edge:\n * functional and non-functional requirements, roadmap phases, the vision's success criteria and\n * constraints, drafted features, pricing plans, and the brand's name, logo direction and visual\n * tone. Each target after the first three was added because a producer had already been writing\n * it (#629, #1433, #1835, #2221). A companion generation step serves what it consumes: the `logo`\n * step serves the brand's logo direction and name.\n *\n * This schema accepts any non-empty string. Generation does not: the edge is DECLARED, so a key\n * that resolves to no element of a target family (when that family has landed) is a dangling\n * reference. The model is told so on retry, and the landing refuses it. That is why widening the\n * vocabulary to what producers genuinely mean matters: a true link the vocabulary does not name\n * fails generation. The workbench renders a key outside the vocabulary as visibly unresolved.\n */\n servesRefs: z.array(NonEmptyStringSchema).default([]),\n /**\n * Who asked for this task DIRECTLY (#1608), rather than it being derived from the specifications: the\n * signed-in person who added it in conversation. STAMPED by the append, never authored: a value in\n * generated output is discarded. Absent on every task the decomposition derived.\n *\n * It is what keeps a requested task alive. Build decomposition refines the plan from the domain plan, and\n * a task nothing in the specifications justifies would read as unjustified and be dropped; a requested\n * task it leaves out is carried forward instead, keeping only the prerequisites the new plan still holds.\n */\n requestedBy: NonEmptyStringSchema.optional(),\n});\nexport type BuildPlanTask = z.infer<typeof BuildPlanTaskSchema>;\n\n/**\n * What a build plan landed BEFORE its decomposition finished still has to decompose (#3901).\n *\n * Where results are accepted without a person's review, the decomposition writes the plan in slices, each closed under\n * its prerequisites, and lands each one as it is written, so the build starts on the first slice instead of waiting for\n * the whole plan, whose writing takes longer the larger the application. A plan carrying this is PENDING:\n *\n * - every task it holds is final: the slices still to come only add tasks, and edges from new tasks into these, never\n * change or remove one (the decomposition refuses any answer that would);\n * - the checks over the WHOLE plan (it decomposes the whole domain plan, it realizes the firm's method) do not apply yet:\n * they are the complete plan's, judged when the last slice lands, which removes this field;\n * - the build is not finished while it is present, whatever share of the tasks it holds has landed.\n *\n * Absent means the decomposition is complete, which is every plan landed in one piece.\n */\nexport const BuildPlanPendingDecompositionSchema = z.strictObject({\n /** What the decomposition still has to write, in the decomposer's words, so a reader of the plan knows what is missing. */\n remaining: NonEmptyStringSchema,\n});\nexport type BuildPlanPendingDecomposition = z.infer<typeof BuildPlanPendingDecompositionSchema>;\n\n/**\n * THE build-plan payload — a **single aggregate per product**: the ORDERED\n * task graph that turns the accepted domain plan into buildable units.\n *\n * **Artifact-family id: `build-plan`.** This schema is the shape of the\n * journey artifact selected by `MetaWorkflow_ArtifactSelector.family ===\n * 'build-plan'` (the `family` vocabulary stays an open string owned by the\n * selector surface; this note is the single place tying the SHAPE to the\n * NAME). Produced by the build-decompose playbook, consumed by\n * build-dispatch (and build-scale, which runs the same branch): ready tasks\n * are dispatched in parallel waves of up to the application's build\n * parallelism (`wildo workbench parallelism`, 5 by default; 1 = one at a\n * time).\n *\n * Invariants enforced here: unique task refs; every prerequisite names a task\n * in this graph; no self-prerequisite. Cycle detection and ordering\n * soundness are the deterministic validator's job (`validateBuildPlanTaskGraph`).\n */\nexport const BuildPlanTaskGraphSchema = z.object({\n version: z.enum(BuildPlanTaskGraphVersion).default(BuildPlanTaskGraphVersion.V1),\n /**\n * At least one task, at the SCHEMA — not merely as a validator warning. The first live playbook-loop\n * run (2026-08-24) proved why: build-decompose answered `tasks: []`, which was schema-valid, passed\n * `_core` validation as a mere warning, and LANDED — overwriting a completed 3-task plan with a\n * vacuous artifact. Decomposing to zero tasks is a refusal (\"nothing to decompose\"), never an\n * artifact: an empty plan carries no information a reader could act on, and the file it replaces\n * does. Same vacuity class already closed on the requirements family (`functional: min(1)`).\n */\n tasks: z.array(BuildPlanTaskSchema).min(1),\n /** Present only while the decomposition that writes this plan has not finished (#3901). See {@link BuildPlanPendingDecompositionSchema}. */\n pendingDecomposition: BuildPlanPendingDecompositionSchema.optional(),\n}).superRefine((graph, context) => {\n const refs = new Set<string>();\n graph.tasks.forEach((task, index) => {\n if (refs.has(task.taskRef)) {\n context.addIssue({ code: 'custom', message: `duplicate build task ref \"${task.taskRef}\"`, path: ['tasks', index, 'taskRef'] });\n }\n refs.add(task.taskRef);\n });\n /*\n * No two tasks claim the same artifact.\n *\n * This is what makes landing DECIDABLE, not a tidiness rule. If two tasks name\n * one product, the host cannot tell which of them a present artifact proves —\n * exactly the ambiguity that shared `target`s created, arriving through the\n * field that replaced them. Enforced here rather than left to the validator\n * because a graph that cannot answer \"has this task landed?\" is not a graph\n * the loop may run at all.\n */\n graph.tasks.forEach((task, index) => {\n const isGenerationStep = task.target.kind === BuildPlanTaskTargetKind.COMPANION_GENERATION_STEP;\n if (isGenerationStep && task.produces.length > 0) {\n context.addIssue({\n code: 'custom',\n message: `build task \"${task.taskRef}\" is a companion generation step and must declare no products; its landing is the generation step's own condition`,\n path: ['tasks', index, 'produces'],\n });\n }\n });\n const productOwners = new Map<string, string>();\n graph.tasks.forEach((task, index) => {\n task.produces.forEach((product, productIndex) => {\n buildPlanTaskProductIdentities(product).forEach((identity) => {\n const owner = productOwners.get(identity);\n if (owner !== undefined) {\n context.addIssue({\n code: 'custom',\n message: `build task \"${task.taskRef}\" claims the same artifact as \"${owner}\" (${identity}); an artifact is produced by exactly one task`,\n path: ['tasks', index, 'produces', productIndex],\n });\n return;\n }\n productOwners.set(identity, task.taskRef);\n });\n });\n });\n graph.tasks.forEach((task, index) => {\n task.prerequisiteTaskRefs.forEach((prerequisite, prerequisiteIndex) => {\n if (prerequisite === task.taskRef) {\n context.addIssue({ code: 'custom', message: `build task \"${task.taskRef}\" cannot be its own prerequisite`, path: ['tasks', index, 'prerequisiteTaskRefs', prerequisiteIndex] });\n } else if (!refs.has(prerequisite)) {\n context.addIssue({ code: 'custom', message: `build task \"${task.taskRef}\" names an unknown prerequisite \"${prerequisite}\"`, path: ['tasks', index, 'prerequisiteTaskRefs', prerequisiteIndex] });\n }\n });\n });\n});\nexport type BuildPlanTaskGraph = z.infer<typeof BuildPlanTaskGraphSchema>;\n\n/** Whether this plan was landed before its decomposition finished (#3901): more tasks are still to be added to it. */\nexport function isBuildPlanDecompositionPending(graph: Pick<BuildPlanTaskGraph, 'pendingDecomposition'>): boolean {\n return graph.pendingDecomposition !== undefined;\n}\n/** @wildo_source:part:end build-plan.task-graph.config */\n"]}
@@ -65,6 +65,7 @@ export declare const DomainPlanOutputSetGenerationSchema: z.ZodObject<{
65
65
  grantingTypes: z.ZodArray<z.ZodString>;
66
66
  mutual: z.ZodBoolean;
67
67
  confersRoles: z.ZodArray<z.ZodString>;
68
+ delegatesMemberRoles: z.ZodArray<z.ZodString>;
68
69
  tenantRecords: z.ZodEnum<typeof TenantRecordVisibility>;
69
70
  }, z.core.$strict>>;
70
71
  unitConfinements: z.ZodArray<z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"domain-plan-output-set-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/domain-plan/domain-plan-output-set-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAErH,OAAO,EAEL,6BAA6B,EAE7B,wBAAwB,EAExB,2BAA2B,EAE3B,sBAAsB,EACtB,mCAAmC,EACnC,iCAAiC,EACjC,yBAAyB,EAIzB,KAAK,mBAAmB,EACxB,KAAK,uCAAuC,EAC7C,MAAM,kCAAkC,CAAC;AAI1C,mFAAmF;AACnF,eAAO,MAAM,+BAA+B;;;;;;;;;kBAS1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,gFAAgF;AAChF,eAAO,MAAM,uCAAuC;;;;;;;kBAOlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,uEAAuE;AACvE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAuF9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,yHAAyH;AACzH,MAAM,WAAW,wCAAwC;IACvD;;;OAGG;IACH,QAAQ,CAAC,6BAA6B,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;CAC9F;AAED,mFAAmF;AACnF,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,wCAA6C,GAAG,mBAAmB,CA+C9I"}
1
+ {"version":3,"file":"domain-plan-output-set-generation.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/domain-plan/domain-plan-output-set-generation.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAErH,OAAO,EAEL,6BAA6B,EAE7B,wBAAwB,EAExB,2BAA2B,EAE3B,sBAAsB,EACtB,mCAAmC,EACnC,iCAAiC,EACjC,yBAAyB,EAIzB,KAAK,mBAAmB,EACxB,KAAK,uCAAuC,EAC7C,MAAM,kCAAkC,CAAC;AAI1C,mFAAmF;AACnF,eAAO,MAAM,+BAA+B;;;;;;;;;kBAS1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,gFAAgF;AAChF,eAAO,MAAM,uCAAuC;;;;;;;kBAOlD,CAAC;AACH,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uCAAuC,CAAC,CAAC;AAExG,uEAAuE;AACvE,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAyF9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG,yHAAyH;AACzH,MAAM,WAAW,wCAAwC;IACvD;;;OAGG;IACH,QAAQ,CAAC,6BAA6B,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;CAC9F;AAED,mFAAmF;AACnF,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,wCAA6C,GAAG,mBAAmB,CAiD9I"}
@@ -88,6 +88,8 @@ export const DomainPlanOutputSetGenerationSchema = z.strictObject({
88
88
  grantingTypes: z.array(DomainPlanOrganizationModelRefSchema).min(1),
89
89
  mutual: z.boolean(),
90
90
  confersRoles: z.array(NonEmptyStringSchema).min(1),
91
+ // Empty when the representing side grants the granting side's own people nothing (#4057): the usual answer.
92
+ delegatesMemberRoles: z.array(NonEmptyStringSchema),
91
93
  tenantRecords: z.enum(TenantRecordVisibility),
92
94
  })),
93
95
  unitConfinements: z.array(z.strictObject({
@@ -138,9 +140,11 @@ export function parseDomainPlanOutputSetGeneration(input, context = {}) {
138
140
  ...(requiresMfa ? { requiresMfa: true } : {}),
139
141
  })),
140
142
  // `false` is the absent default on the family schema, so it is not persisted: one spelling per statement.
141
- relationshipKinds: generated.organizationModel.relationshipKinds.map(({ mutual, ...kind }) => ({
143
+ relationshipKinds: generated.organizationModel.relationshipKinds.map(({ mutual, delegatesMemberRoles, ...kind }) => ({
142
144
  ...kind,
143
145
  ...(mutual ? { mutual: true } : {}),
146
+ // Empty is the absent default too (#4057).
147
+ ...(delegatesMemberRoles.length > 0 ? { delegatesMemberRoles } : {}),
144
148
  })),
145
149
  unitConfinements: generated.organizationModel.unitConfinements,
146
150
  /*