@wildo-ai/saas-specifications 1.1.12 → 1.1.14

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 (121) hide show
  1. package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts +48 -0
  2. package/dist/esm/_core/application-maturity/application-maturity-open-items.d.ts.map +1 -0
  3. package/dist/esm/_core/application-maturity/application-maturity-open-items.js +69 -0
  4. package/dist/esm/_core/application-maturity/application-maturity-open-items.js.map +1 -0
  5. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts +5 -0
  6. package/dist/esm/_core/application-maturity/application-maturity-validation.d.ts.map +1 -1
  7. package/dist/esm/_core/application-maturity/application-maturity-validation.js +12 -0
  8. package/dist/esm/_core/application-maturity/application-maturity-validation.js.map +1 -1
  9. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts +41 -0
  10. package/dist/esm/_core/application-maturity/application-maturity.schemas.d.ts.map +1 -1
  11. package/dist/esm/_core/application-maturity/application-maturity.schemas.js +41 -0
  12. package/dist/esm/_core/application-maturity/application-maturity.schemas.js.map +1 -1
  13. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
  14. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +28 -5
  15. package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
  16. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +28 -3
  17. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -1
  18. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +32 -2
  19. package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -1
  20. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts +4 -0
  21. package/dist/esm/_core/compliance-documents/processor-register.schemas.d.ts.map +1 -1
  22. package/dist/esm/_core/compliance-documents/processor-register.schemas.js +10 -0
  23. package/dist/esm/_core/compliance-documents/processor-register.schemas.js.map +1 -1
  24. package/dist/esm/_core/index.d.ts +2 -0
  25. package/dist/esm/_core/index.d.ts.map +1 -1
  26. package/dist/esm/_core/index.js +2 -0
  27. package/dist/esm/_core/index.js.map +1 -1
  28. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts +2 -0
  29. package/dist/esm/_core/requirements/functional-requirement.schemas.d.ts.map +1 -1
  30. package/dist/esm/_core/requirements/functional-requirement.schemas.js +12 -0
  31. package/dist/esm/_core/requirements/functional-requirement.schemas.js.map +1 -1
  32. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts +2 -0
  33. package/dist/esm/_core/requirements/non-functional-requirement.schemas.d.ts.map +1 -1
  34. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js +12 -0
  35. package/dist/esm/_core/requirements/non-functional-requirement.schemas.js.map +1 -1
  36. package/dist/esm/_core/requirements/requirement-engine-substance.schemas.d.ts +33 -0
  37. package/dist/esm/_core/requirements/requirement-engine-substance.schemas.d.ts.map +1 -0
  38. package/dist/esm/_core/requirements/requirement-engine-substance.schemas.js +34 -0
  39. package/dist/esm/_core/requirements/requirement-engine-substance.schemas.js.map +1 -0
  40. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts +8 -0
  41. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.d.ts.map +1 -1
  42. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js +13 -1
  43. package/dist/esm/_core/requirements/requirements-snapshot-generation.schemas.js.map +1 -1
  44. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts +4 -0
  45. package/dist/esm/_core/requirements/requirements-snapshot.schemas.d.ts.map +1 -1
  46. package/dist/esm/application-creation.exports.d.ts +2 -0
  47. package/dist/esm/application-creation.exports.d.ts.map +1 -1
  48. package/dist/esm/application-creation.exports.js +2 -0
  49. package/dist/esm/application-creation.exports.js.map +1 -1
  50. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts +7 -0
  51. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.d.ts.map +1 -1
  52. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js +46 -25
  53. package/dist/esm/assurance/assurance-open-compliance-coverage-pack.js.map +1 -1
  54. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.d.ts.map +1 -1
  55. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js +30 -3
  56. package/dist/esm/assurance/assurance-source-requirement-inventory.definitions.js.map +1 -1
  57. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts +1 -0
  58. package/dist/esm/engine/applications/resources/applications.resource.specification.d.ts.map +1 -1
  59. package/dist/esm/engine/applications/resources/applications.resource.specification.js +1 -1
  60. package/dist/esm/engine/applications/resources/applications.resource.specification.js.map +1 -1
  61. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.d.ts.map +1 -1
  62. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js +2 -1
  63. package/dist/esm/engine/auth/resources/application-access-grants.resource.specification.js.map +1 -1
  64. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.d.ts.map +1 -1
  65. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js +6 -2
  66. package/dist/esm/engine/compliance/resources/data-subject-requests.resource.specification.js.map +1 -1
  67. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.d.ts.map +1 -1
  68. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js +6 -5
  69. package/dist/esm/engine/compliance/resources/siem-delivery-dlq.resource.specification.js.map +1 -1
  70. package/dist/esm/engine/engine-resource-specifications.registry.d.ts.map +1 -1
  71. package/dist/esm/engine/engine-resource-specifications.registry.js +4 -0
  72. package/dist/esm/engine/engine-resource-specifications.registry.js.map +1 -1
  73. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.d.ts +4 -0
  74. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.d.ts.map +1 -0
  75. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js +29 -0
  76. package/dist/esm/engine/frontend-components/data-display/approval-seal.frontend-component.specification.js.map +1 -0
  77. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.js +1 -1
  78. package/dist/esm/engine/frontend-components/data-display/formatters/display-field-file.frontend-component.specification.js.map +1 -1
  79. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js +1 -1
  80. package/dist/esm/engine/frontend-components/flows-actors/low-level-ai-approval.frontend-component.specification.js.map +1 -1
  81. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.d.ts +4 -0
  82. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.d.ts.map +1 -0
  83. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.js +22 -0
  84. package/dist/esm/engine/frontend-components/high-level-views/high-level-views-chart-dashboard-layout-editor.frontend-component.specification.js.map +1 -0
  85. package/dist/esm/engine/frontend-components/index.d.ts +1 -0
  86. package/dist/esm/engine/frontend-components/index.d.ts.map +1 -1
  87. package/dist/esm/engine/frontend-components/index.js +5 -0
  88. package/dist/esm/engine/frontend-components/index.js.map +1 -1
  89. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.d.ts +9 -0
  90. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.d.ts.map +1 -0
  91. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.js +136 -0
  92. package/dist/esm/engine/infrastructure/resources/queue-messages.resource.specification.js.map +1 -0
  93. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts +10 -0
  94. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.d.ts.map +1 -1
  95. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js +10 -1
  96. package/dist/esm/engine/notifications/resources/inbound-deliveries.resource.specification.js.map +1 -1
  97. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.d.ts.map +1 -1
  98. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js +4 -2
  99. package/dist/esm/engine/notifications/resources/inbound-email.resource.specification.js.map +1 -1
  100. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.d.ts.map +1 -1
  101. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js +6 -5
  102. package/dist/esm/engine/notifications/resources/m2m-webhook-delivery-log.resource.specification.js.map +1 -1
  103. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.d.ts.map +1 -1
  104. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js +2 -1
  105. package/dist/esm/engine/organizations/resources/organization-custom-domains.resource.specification.js.map +1 -1
  106. package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.d.ts +30 -0
  107. package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.d.ts.map +1 -0
  108. package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.js +131 -0
  109. package/dist/esm/engine/organizations/resources/organization-dashboard-layouts.resource.specification.js.map +1 -0
  110. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.d.ts.map +1 -1
  111. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js +10 -7
  112. package/dist/esm/engine/organizations/resources/organization-members.resource.specification.js.map +1 -1
  113. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts +1 -0
  114. package/dist/esm/engine/organizations/resources/organizations.resource.specification.d.ts.map +1 -1
  115. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js +7 -7
  116. package/dist/esm/engine/organizations/resources/organizations.resource.specification.js.map +1 -1
  117. package/dist/esm/engine/users/resources/inbound-contacts.resource.specification.d.ts +2 -2
  118. package/dist/esm/engine/users/resources/users.resource.specification.js +1 -1
  119. package/dist/esm/engine/users/resources/users.resource.specification.js.map +1 -1
  120. package/dist/tsconfig.build.tsbuildinfo +1 -1
  121. package/package.json +9 -9
@@ -33,6 +33,7 @@
33
33
  * | brand name not cleared | the chosen brand name against its trademark screening — `deriveBrandNameChoiceStanding`, the predicate the coherence report and the risk signal use (#2338) — unless `brandNameClearances` records the name cleared outside the screening (#2440) |
34
34
  * | assurance obligation unmet | the committed compliance programme's obligation register — {@link readAssuranceProgramObligationStanding}: a HARD obligation that applies (or may) and is not met (#55) |
35
35
  * | data residency | {@link placeProvidersInsideDataResidency}, the population and verdict `wildo config sync` refuses on: each data-serving provider the declared (or answered and not yet declared) residency does not place inside, and an answered residency the configuration does not carry yet (#2294) |
36
+ * | agents run unguarded | each environment other than a local one whose `agentContentGuardrails` declares `RUN_UNGUARDED`: its agents' classifier-backed guardrails that no classifier offers there are not enforced (#2292) |
36
37
  *
37
38
  * The governance population is the QUEUE's, deliberately: a fact still needed by a DRAFTED governed document. A document
38
39
  * not drafted yet asks nothing, so its facts are not listed here — the creation run drafting it is what surfaces them.
@@ -50,7 +51,7 @@
50
51
  * (`negative-results-require-a-positive-probe.md`).
51
52
  */
52
53
  import { z } from "zod";
53
- import { GovernedDocumentInteractionKind, GovernedDocumentReleaseApprovalState, governedDocumentReleaseIsInForce, LEGAL_NOTICE_GENERATED_RELATIVE_PATH, LegalNoticeParticular, legalNoticeOwed, OperatorComplianceIdentityPart, outstandingLegalNoticeParticulars, outstandingOperatorComplianceIdentityParts, undeclaredRetentionClasses, withReplacementEnds, ProviderDataResidencyPlacementOutcome, dataResidencyPlacementStatement, placeProvidersInsideDataResidency, } from "@wildo-ai/saas-models";
54
+ import { GovernedDocumentInteractionKind, GovernedDocumentReleaseApprovalState, governedDocumentReleaseIsInForce, LEGAL_NOTICE_GENERATED_RELATIVE_PATH, LegalNoticeParticular, legalNoticeOwed, OperatorComplianceIdentityPart, outstandingLegalNoticeParticulars, outstandingOperatorComplianceIdentityParts, undeclaredRetentionClasses, withReplacementEnds, ProviderDataResidencyPlacementOutcome, dataResidencyPlacementStatement, placeProvidersInsideDataResidency, AgentContentGuardrailsWithoutClassifier, } from "@wildo-ai/saas-models";
54
55
  /*
55
56
  * entrypoint-closure-waiver: this root-reachable module imports from two assurance-only modules, and no exported
56
57
  * signature here names anything from either, so a root-only consumer has nothing to name:
@@ -131,6 +132,14 @@ export var LaunchBlockerKind;
131
132
  * or it has no profile (#2294). Under a DECLARED residency `wildo config sync` refuses until it is settled.
132
133
  */
133
134
  LaunchBlockerKind["DATA_RESIDENCY_PROVIDER_UNPLACED"] = "data-residency-provider-unplaced";
135
+ /**
136
+ * An environment other than a local one declares that its agents run UNGUARDED where no classifier offers a guardrail
137
+ * (`agentContentGuardrails: { withoutClassifier: RUN_UNGUARDED }`, #2292): an agent that declares prompt-injection
138
+ * screening or output moderation runs without it there. A decision the operator may keep; this keeps it in view until a
139
+ * classifier is selected for that environment or the declaration is removed. A local environment is never listed: no
140
+ * real user reaches it.
141
+ */
142
+ LaunchBlockerKind["AGENT_GUARDRAILS_RUN_UNGUARDED"] = "agent-guardrails-run-unguarded";
134
143
  })(LaunchBlockerKind || (LaunchBlockerKind = {}));
135
144
  /** An input the list is derived from — named so an unreadable one can be reported as such. */
136
145
  export var LaunchBlockerSource;
@@ -147,6 +156,8 @@ export var LaunchBlockerSource;
147
156
  LaunchBlockerSource["ASSURANCE_PROGRAM"] = "assurance-program";
148
157
  /** The data-serving providers' compliance profiles and the residency answer: where each provider processes (#2294). */
149
158
  LaunchBlockerSource["PROVIDER_DATA_RESIDENCY"] = "provider-data-residency";
159
+ /** Each environment's `wildo.infra.<env>.config.ts`: what it declares about its agents' guardrails (#2292). */
160
+ LaunchBlockerSource["ENVIRONMENT_CONFIGS"] = "environment-configs";
150
161
  })(LaunchBlockerSource || (LaunchBlockerSource = {}));
151
162
  /** One open decision. */
152
163
  export const LaunchBlockerSchema = z.strictObject({
@@ -350,6 +361,22 @@ export function deriveLaunchBlockers(inputs) {
350
361
  else
351
362
  blockers.push(...dataResidencyLaunchBlockers(inputs.applicationConfig, inputs.providerDataResidency));
352
363
  }
364
+ if (inputs.environmentAgentGuardrails === undefined) {
365
+ unreadable(LaunchBlockerSource.ENVIRONMENT_CONFIGS);
366
+ }
367
+ else {
368
+ for (const entry of inputs.environmentAgentGuardrails) {
369
+ if (entry.local || entry.declaration?.withoutClassifier !== AgentContentGuardrailsWithoutClassifier.RUN_UNGUARDED)
370
+ continue;
371
+ blockers.push({
372
+ ref: `${LaunchBlockerKind.AGENT_GUARDRAILS_RUN_UNGUARDED}:${entry.environment}`,
373
+ kind: LaunchBlockerKind.AGENT_GUARDRAILS_RUN_UNGUARDED,
374
+ statement: `In ${entry.environment}, agents that declare prompt-injection screening or output moderation run without each guardrail no classifier offers there, as the environment declares ("${entry.declaration.reason}").`,
375
+ decidedIn: `${entry.declaredIn} → agentContentGuardrails`,
376
+ settledBy: `Select a provider for AI_CONTENT_SAFETY in ${entry.environment} (its providerSelection), or remove \`agentContentGuardrails\` from ${entry.declaredIn} so its guarded agents refuse instead.`,
377
+ });
378
+ }
379
+ }
353
380
  return { computedAt: inputs.computedAt, blockers, unevaluatedSources };
354
381
  }
355
382
  /**
@@ -396,7 +423,10 @@ function dataResidencyLaunchBlockers(applicationConfig, input) {
396
423
  ? `Declare \`providerComplianceChoices.${placement.providerRef}\` as VENDOR_HOSTED in "${placement.derivedChoice?.processingRegion}", or run the foundation again, which writes it.`
397
424
  : placement.regionsInside.length > 0
398
425
  ? `Choose \`providerComplianceChoices.${placement.providerRef}\` (one of: ${placement.regionsInside.join(", ")}), replace the provider, or widen the residency.`
399
- : "Replace the provider with one that processes inside the residency, run it self-hosted if it is offered that way, or widen the residency.",
426
+ // #3876: no region processes inside, but some keep data at rest inside the declared at-rest list (the weaker promise).
427
+ : placement.regionsInsideAtRest.length > 0
428
+ ? `Choose \`providerComplianceChoices.${placement.providerRef}\` (one of: ${placement.regionsInsideAtRest.join(", ")}, each storing at rest inside the at-rest residency), replace the provider, or widen the residency.`
429
+ : "Replace the provider with one that processes inside the residency, run it self-hosted if it is offered that way, or widen the residency.",
400
430
  });
401
431
  }
402
432
  return blockers;
@@ -1 +1 @@
1
- {"version":3,"file":"launch-blockers.schemas.js","sourceRoot":"","sources":["../../../../src/_core/compliance-documents/launch-blockers.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,gCAAgC,EAChC,oCAAoC,EACpC,qBAAqB,EACrB,eAAe,EACf,8BAA8B,EAC9B,iCAAiC,EACjC,0CAA0C,EAC1C,0BAA0B,EAC1B,mBAAmB,EAKnB,qCAAqC,EACrC,+BAA+B,EAC/B,iCAAiC,GAIlC,MAAM,uBAAuB,CAAC;AAE/B;;;;;;GAMG;AACH,OAAO,EAAE,kDAAkD,EAAE,MAAM,2CAA2C,CAAC;AAC/G,OAAO,EAAE,6CAA6C,EAAE,MAAM,2CAA2C,CAAC;AAC1G,OAAO,EACL,oCAAoC,EACpC,yCAAyC,EACzC,sCAAsC,GAGvC,MAAM,uDAAuD,CAAC;AAC/D,OAAO,EAAE,+CAA+C,EAAE,MAAM,mCAAmC,CAAC;AACpG,OAAO,EAAE,8BAA8B,EAAE,MAAM,oFAAoF,CAAC;AACpI,OAAO,EAAE,4BAA4B,EAAE,MAAM,0EAA0E,CAAC;AACxH,OAAO,EAAE,8BAA8B,EAAE,MAAM,sDAAsD,CAAC;AACtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EACL,+BAA+B,EAC/B,wBAAwB,EACxB,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,+BAA+B,GAChC,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,uBAAuB,EACvB,4BAA4B,EAC5B,6BAA6B,EAC7B,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AAEpC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SAAS,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,KAAK,IAAI,CAAC;QACxF,CAAC,CAAC,oBAAoB,OAAO,CAAC,CAAC,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;QACpE,CAAC,CAAC,uCAAuC,OAAO,CAAC,CAAC,CAAC,kBAAkB,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACzF,OAAO;QACL,GAAG,EAAE,GAAG,iBAAiB,CAAC,sBAAsB,IAAI,QAAQ,EAAE;QAC9D,IAAI,EAAE,iBAAiB,CAAC,sBAAsB;QAC9C,SAAS,EAAE,mBAAmB,SAAS,qBAAqB,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,6BAA6B,GAAG;QAChH,SAAS,EAAE,GAAG,cAAc,8CAA8C,UAAU,gCAAgC,WAAW,wBAAwB;QACvJ,SAAS,EACP,8HAA8H;cAC5H,4HAA4H;cAC5H,mCAAmC,MAAM,uFAAuF;cAChI,gBAAgB,SAAS,8CAA8C,WAAW,0CAA0C;cAC5H,qGAAqG;KAC1G,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The \"before you can launch\" list: every open compliance decision that stands between a created\n * application and a real user, each with where it is decided and what settles it (#2238).\n *\n * ## Why it exists\n *\n * A creation run ended without saying what was still open. In run 004 the operator's legal entity and\n * hosting region, two governance questions, the retention classes, the subject-data recipients and the\n * sign-up acceptance were all undecided, and they surfaced as `wildo config validate` warnings in logs,\n * or not at all. Spread across logs, none of them is a list anyone acts on.\n *\n * ## It MARKS, it never blocks\n *\n * Nothing calls this to decide whether creation may proceed. `application-creation-directive.md`\n * forbids a compliance workflow standing in front of creation; Gate 3 is where these points become\n * gates, and this is what that gate will read. So the list has no severity and no pass/fail verdict:\n * it is what is open, stated plainly.\n *\n * ## It is DERIVED, never asked\n *\n * Every entry is a function of something the application already holds, by the same predicate the\n * surface that owns it already uses (`compliance-is-derived-from-the-product.md`,\n * `derive-before-you-ask.md`):\n *\n * | entry | derived from |\n * |---|---|\n * | operator identity part | {@link outstandingOperatorComplianceIdentityParts}, total over {@link OperatorComplianceIdentityPart} |\n * | legal notice | {@link legalNoticeOwed} (establishment undeclared), {@link outstandingLegalNoticeParticulars} (`owed` only), and whether {@link LEGAL_NOTICE_GENERATED_RELATIVE_PATH} exists |\n * | retention class | {@link undeclaredRetentionClasses}, total over `DataRetentionClass` |\n * | subject-data recipients | the generated recipients module is absent — the predicate behind `wildo config validate`'s warning |\n * | governance question | the creation question queue's `GOVERNANCE_FACT` items (`wildo creation questions`) |\n * | sign-up acceptance | the recorded governed-document releases in force, their approval, and whether their runtime module exists |\n * | brand name not cleared | the chosen brand name against its trademark screening — `deriveBrandNameChoiceStanding`, the predicate the coherence report and the risk signal use (#2338) — unless `brandNameClearances` records the name cleared outside the screening (#2440) |\n * | assurance obligation unmet | the committed compliance programme's obligation register — {@link readAssuranceProgramObligationStanding}: a HARD obligation that applies (or may) and is not met (#55) |\n * | data residency | {@link placeProvidersInsideDataResidency}, the population and verdict `wildo config sync` refuses on: each data-serving provider the declared (or answered and not yet declared) residency does not place inside, and an answered residency the configuration does not carry yet (#2294) |\n *\n * The governance population is the QUEUE's, deliberately: a fact still needed by a DRAFTED governed document. A document\n * not drafted yet asks nothing, so its facts are not listed here — the creation run drafting it is what surfaces them.\n * Gate 3 must not read an empty governance section as \"every governed document is complete\".\n *\n * Settling an item removes it on the next read, because nothing here is stored: the caller reads each\n * input fresh and this function recomputes. A total derivation also means an identity part or a\n * retention class added to its vocabulary tomorrow appears here for every application at once.\n *\n * ## An input that could not be read is NOT an empty list\n *\n * Each input is optional for exactly that reason. An unreadable configuration or question queue is\n * reported in {@link LaunchBlockerList.unevaluatedSources}, never as \"nothing open\" — a launch list that\n * reads clean because its source failed is the most dangerous answer it could give\n * (`negative-results-require-a-positive-probe.md`).\n */\n\nimport { z } from \"zod\";\n\nimport {\n GovernedDocumentInteractionKind,\n GovernedDocumentReleaseApprovalState,\n governedDocumentReleaseIsInForce,\n LEGAL_NOTICE_GENERATED_RELATIVE_PATH,\n LegalNoticeParticular,\n legalNoticeOwed,\n OperatorComplianceIdentityPart,\n outstandingLegalNoticeParticulars,\n outstandingOperatorComplianceIdentityParts,\n undeclaredRetentionClasses,\n withReplacementEnds,\n type ApplicationBrandNameClearances,\n type ApplicationOperatorComplianceIdentity,\n type ApplicationRetentionSchedule,\n type GovernedDocumentRelease,\n ProviderDataResidencyPlacementOutcome,\n dataResidencyPlacementStatement,\n placeProvidersInsideDataResidency,\n type ApplicationDataResidency,\n type ApplicationProviderComplianceChoices,\n type ProviderComplianceProfile,\n} from \"@wildo-ai/saas-models\";\n\n/*\n * entrypoint-closure-waiver: this root-reachable module imports from two assurance-only modules, and no exported\n * signature here names anything from either, so a root-only consumer has nothing to name:\n * - `GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH`, a string constant used only inside prose this module builds;\n * - the obligation-standing reader and its enums (#55), used only inside `deriveLaunchBlockers`. The programme reaches\n * this module RAW (`LaunchBlockerInputs.assuranceProgram.program: unknown`), so no programme type appears here either.\n */\nimport { GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH } from \"../../assurance/governed-document-release\";\nimport { AssuranceProgramObligationApplicabilityStatus } from \"../../assurance/assurance-program.schemas\";\nimport {\n AssuranceProgramObligationOpenReason,\n AssuranceProgramObligationStandingOutcome,\n readAssuranceProgramObligationStanding,\n type AssuranceProgramObligationOpenReasonDetail,\n type AssuranceProgramUnmetHardObligation,\n} from \"../../assurance/assurance-program-obligation-standing\";\nimport { SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH } from \"./subject-data-recipients.schemas\";\nimport { ApplicationCreatorInputsSchema } from \"../../application-creation/application-creator-inputs.application-creation.schemas\";\nimport { resolveNotApplicableFamilies } from \"../../application-creation/application-line.application-creation.schemas\";\nimport { ApplicationSpecificationFamily } from \"../application-specification-family-identity.schemas\";\nimport { BrandSnapshotSchema } from \"../brand/brand-snapshot.schemas\";\nimport {\n BrandNameScreeningCoverageLevel,\n BrandNameScreeningSchema,\n brandNameScreeningDeclaresNoTarget,\n deriveBrandNameManualChecks,\n deriveBrandNameScreeningCoverage,\n normalizeBrandNameForComparison,\n} from \"../brand/brand-name-screening.schemas\";\nimport {\n BrandNameChoiceStanding,\n brandNameCandidateCollisions,\n deriveBrandNameChoiceStanding,\n marketCompetitorNames,\n readCreatorBrandNameDecisions,\n} from \"../brand/brand-name-choice\";\n\n/** WHAT is open — one member per kind of launch decision, each with its own settling path. */\nexport enum LaunchBlockerKind {\n /** A part of `operatorComplianceIdentity` is undeclared: the legal entity, the hosting region, the privacy contact… */\n OPERATOR_IDENTITY_PART_UNDECLARED = \"operator-identity-part-undeclared\",\n /** A governed-document question waits on the person; it is answered in the workbench's governance panel. */\n GOVERNANCE_QUESTION_UNANSWERED = \"governance-question-unanswered\",\n /**\n * Where the operator is established is undeclared, so whether the service owes a legal notice (imprint) is unknown\n * (#2588). Establishment decides it (the EU and EEA under Directive 2000/31/EC Art. 5(1), the UK under its 2002 Regulations, Switzerland under UWG Art. 3 Abs. 1 Bst. s), not the markets served.\n */\n LEGAL_NOTICE_ESTABLISHMENT_UNDECLARED = \"legal-notice-establishment-undeclared\",\n /**\n * A particular every established provider's notice states (its direct contact) is undeclared, so the\n * `/legal-notice` page marks it \"not yet declared\". The name and the address are reported as identity parts, being\n * the same fields; the particulars that apply only to some operators (register, VAT, legal form…) are not listed,\n * because nothing could ever settle them for an operator they do not apply to.\n */\n LEGAL_NOTICE_PARTICULAR_UNDECLARED = \"legal-notice-particular-undeclared\",\n /**\n * A notice is owed, but its runtime module was never generated, so the running application's `/legal-notice` page\n * says no notice is required. A STALE module is the `legal-notice` validate domain's failure, not this item.\n */\n LEGAL_NOTICE_NOT_CARRIED = \"legal-notice-not-carried\",\n /** A `DataRetentionClass` has no declared period in `dataRetention`. */\n RETENTION_CLASS_UNDECLARED = \"retention-class-undeclared\",\n /** No subject-data recipients module, so every subject export says recipients are not declared. */\n SUBJECT_DATA_RECIPIENTS_UNDECLARED = \"subject-data-recipients-undeclared\",\n /** No recorded release lets a person accept it, so sign-up records no acceptance of the terms or the privacy notice. */\n SIGN_UP_ACCEPTANCE_NOT_OFFERED = \"sign-up-acceptance-not-offered\",\n /** A release offers acceptance, but its runtime module was never generated, so the running application does not offer it. */\n SIGN_UP_ACCEPTANCE_NOT_CARRIED = \"sign-up-acceptance-not-carried\",\n /**\n * Every release offering acceptance is UNAPPROVED. Registration offers it only while `compliance.governedDocumentApprovalGate`\n * is off; once the gate is armed — which Gate 3 does — registration offers nothing. Marked whatever the gate's state today,\n * because this list is what Gate 3 reads.\n */\n SIGN_UP_ACCEPTANCE_UNAPPROVED = \"sign-up-acceptance-unapproved\",\n /**\n * The brand's chosen name is not cleared by its trademark screening (#2338): a register was not read, none was,\n * or a live mark or a product doing the same job already uses the name. A name printed on every surface is the\n * one decision a real user sees first, and choosing it with the screening open was recorded — this keeps it in\n * view until the screening reads every register with no conflict.\n */\n BRAND_NAME_NOT_CLEARED = \"brand-name-not-cleared\",\n /**\n * A HARD obligation of the committed compliance programme applies (or its applicability is undetermined) and is not\n * met: a gap finding is open, a risk acceptance or exception has expired, or no approved coverage decision covers it\n * (#55). The register's own `blockingEffect` says it stands in front of launch; this is where that is read.\n */\n ASSURANCE_OBLIGATION_UNMET = \"assurance-obligation-unmet\",\n /**\n * The interview answered a data residency (`data-residency-territories`) and the configuration does not declare it\n * (#2294). The foundation writes it once every data-serving provider is placed inside it, so this stands while a\n * provider is unplaced (each listed beside it) or until the foundation runs again.\n */\n DATA_RESIDENCY_NOT_DECLARED = \"data-residency-not-declared\",\n /**\n * A provider serving the application's data is not placed inside the residency (declared, or answered and not yet\n * declared): several of its regions fit, none does, its deployment model is a choice, an authored region lies outside,\n * or it has no profile (#2294). Under a DECLARED residency `wildo config sync` refuses until it is settled.\n */\n DATA_RESIDENCY_PROVIDER_UNPLACED = \"data-residency-provider-unplaced\",\n}\n\n/** An input the list is derived from — named so an unreadable one can be reported as such. */\nexport enum LaunchBlockerSource {\n /** `wildo.saas.config.ts`: the operator identity and the retention schedule. */\n APPLICATION_CONFIG = \"application-config\",\n /** The creation question queue: the governance questions. */\n QUESTION_QUEUE = \"question-queue\",\n /** The specifications package's recorded governed-document releases: sign-up acceptance. */\n DOCUMENT_RELEASES = \"document-releases\",\n /** The landed brand, brand-name screening, market snapshot and dossier: the brand name's standing. */\n BRAND_NAMING = \"brand-naming\",\n /** The committed compliance programme (`complianceSpecification`): its obligation register. */\n ASSURANCE_PROGRAM = \"assurance-program\",\n /** The data-serving providers' compliance profiles and the residency answer: where each provider processes (#2294). */\n PROVIDER_DATA_RESIDENCY = \"provider-data-residency\",\n}\n\n/** One open decision. */\nexport const LaunchBlockerSchema = z.strictObject({\n /** Stable across reads (`<kind>:<subject>`), so a reader can tell which item was settled between two reads. */\n ref: z.string().min(1),\n kind: z.enum(LaunchBlockerKind),\n /** What is open, in one sentence. */\n statement: z.string().min(1),\n /** Where the decision lives — a file and field, or the surface that holds it. */\n decidedIn: z.string().min(1),\n /** The command to run or the edit to make that settles it. */\n settledBy: z.string().min(1),\n});\nexport type LaunchBlocker = z.infer<typeof LaunchBlockerSchema>;\n\n/** A source that could not be read, and why — so its entries read as UNKNOWN rather than absent. */\nexport const LaunchBlockerUnevaluatedSourceSchema = z.strictObject({\n source: z.enum(LaunchBlockerSource),\n reason: z.string().min(1),\n});\nexport type LaunchBlockerUnevaluatedSource = z.infer<typeof LaunchBlockerUnevaluatedSourceSchema>;\n\n/** The whole list, as the companion serves it and a run report renders it. */\nexport const LaunchBlockerListSchema = z.strictObject({\n computedAt: z.string().min(1),\n blockers: z.array(LaunchBlockerSchema),\n unevaluatedSources: z.array(LaunchBlockerUnevaluatedSourceSchema),\n});\nexport type LaunchBlockerList = z.infer<typeof LaunchBlockerListSchema>;\n\n/** A queued governed-document question, as much of it as the list names. */\nexport interface LaunchBlockerGovernanceQuestion {\n /** The queue's id, `governance-fact:<rowId>` — what `wildo creation questions` prints. */\n readonly questionId: string;\n /** The governed document whose draft needs the answer. */\n readonly definitionRef: string | null;\n /** The question, in the words the person is asked. */\n readonly prompt: string;\n}\n\n/** Everything the list is derived from. `undefined` means the input could not be READ, never that it is empty. */\nexport interface LaunchBlockerInputs {\n readonly computedAt: string;\n /** The application's configuration, read fresh. `undefined` when it could not be loaded. */\n readonly applicationConfig?: {\n readonly operatorComplianceIdentity?: ApplicationOperatorComplianceIdentity;\n readonly dataRetention?: ApplicationRetentionSchedule;\n /** The names the operator cleared outside the screening (#2440): a matching one settles the brand-name item. */\n readonly brandNameClearances?: ApplicationBrandNameClearances;\n /** The providers' compliance choices: where each data-serving provider is placed (#2294). */\n readonly providerComplianceChoices?: ApplicationProviderComplianceChoices;\n };\n /**\n * What the data residency items are derived from (#2294). `undefined` when the provider profiles or the dossier could\n * not be read; the items are then UNKNOWN, never absent.\n */\n readonly providerDataResidency?: {\n /** The places the foundation interview answered (`data-residency-territories`); absent when unanswered or `none`. */\n readonly answeredTerritories?: readonly string[];\n /** Every provider a runtime serving the application's data declares (`dataServingProviderRefs`). */\n readonly providerRefs: readonly string[];\n readonly profilesByProviderRef: Readonly<Record<string, ProviderComplianceProfile | undefined>>;\n };\n /** Whether {@link SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH} exists in the application. */\n readonly subjectDataRecipientsModulePresent: boolean;\n /** Whether {@link LEGAL_NOTICE_GENERATED_RELATIVE_PATH} exists in the application. */\n readonly legalNoticeModulePresent: boolean;\n /** The governed-document questions waiting on the person. `undefined` when the queue could not be read. */\n readonly governanceQuestions?: readonly LaunchBlockerGovernanceQuestion[];\n /** The recorded releases (`documentReleaseSet`). `undefined` when the specifications package could not be read. */\n readonly documentReleases?: readonly GovernedDocumentRelease[];\n /** Whether {@link GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH} exists in the application. */\n readonly documentReleasesModulePresent: boolean;\n /**\n * The landed families the brand name's standing is derived from, RAW (each is parsed here, as the risk signal\n * parses them). `undefined` when the specifications package could not be read.\n */\n readonly brandNaming?: {\n readonly brand: unknown;\n readonly screening: unknown;\n readonly market: unknown;\n readonly creatorInputs: unknown;\n };\n /**\n * The landed compliance programme, RAW (parsed here). `undefined` when the specifications package could not be read;\n * `{ program: undefined }` when no programme has landed, which is not a launch item (producing one is the run's work).\n */\n readonly assuranceProgram?: {\n readonly program: unknown;\n };\n /** Why each unreadable input could not be read, for the report. */\n readonly unreadableReasons?: Partial<Record<LaunchBlockerSource, string>>;\n}\n\nconst CONFIG_FILE = \"wildo.saas.config.ts\";\nconst BACKEND_CONFIG_FILE = \"backend-api/src/saas-config.backend.ts\";\n\n/**\n * What each identity part is, in a reader's words. TOTAL over the enum, so a part added to the identity\n * is a compile error here until the list can name it.\n */\nconst IDENTITY_PART_DESCRIPTION: Readonly<Record<OperatorComplianceIdentityPart, string>> = {\n [OperatorComplianceIdentityPart.LEGAL_ENTITY_NAME]: \"the legal entity that operates the service\",\n [OperatorComplianceIdentityPart.REGISTERED_ADDRESS]: \"the operator's registered address\",\n [OperatorComplianceIdentityPart.PRIVACY_CONTACT]: \"how a data subject reaches the operator about privacy\",\n [OperatorComplianceIdentityPart.ROLE_ALLOCATIONS]: \"the operator's role (controller or processor) per population of data\",\n [OperatorComplianceIdentityPart.LAWFUL_BASES]: \"the lawful basis relied on for each processing purpose\",\n [OperatorComplianceIdentityPart.SUBJECT_REQUEST_IDENTITY_VERIFICATION]: \"how a person exercising a data-subject right is verified\",\n [OperatorComplianceIdentityPart.HOSTING_REGIONS]: \"where the operator's own infrastructure hosts the data\",\n};\n\n/**\n * What each ALWAYS-owed legal-notice particular is, in a reader's words. Only the ones that are not also identity parts\n * (those are already listed under their identity-part item) need a description here.\n */\nconst LEGAL_NOTICE_PARTICULAR_DESCRIPTION: Readonly<Partial<Record<LegalNoticeParticular, string>>> = {\n [LegalNoticeParticular.GENERAL_CONTACT]: \"how anyone reaches the operator rapidly and directly (an e-mail address, and a phone number if you have one)\",\n};\n\n/** The identity parts' values, so a legal-notice particular that IS an identity part is not listed twice. */\nconst IDENTITY_PART_VALUES: ReadonlySet<string> = new Set(Object.values(OperatorComplianceIdentityPart));\n\n/**\n * The launch list, derived. Pure: the caller reads every input fresh, so a settled item is gone on the\n * next call. Order follows how a creator settles them — who you are, the questions waiting on you, then\n * what the configuration and the running application still lack.\n */\nexport function deriveLaunchBlockers(inputs: LaunchBlockerInputs): LaunchBlockerList {\n const blockers: LaunchBlocker[] = [];\n const unevaluatedSources: LaunchBlockerUnevaluatedSource[] = [];\n const unreadable = (source: LaunchBlockerSource): void => {\n unevaluatedSources.push({ source, reason: inputs.unreadableReasons?.[source] ?? \"it could not be read\" });\n };\n\n if (inputs.applicationConfig === undefined) {\n unreadable(LaunchBlockerSource.APPLICATION_CONFIG);\n } else {\n for (const part of outstandingOperatorComplianceIdentityParts(inputs.applicationConfig.operatorComplianceIdentity)) {\n blockers.push({\n ref: `${LaunchBlockerKind.OPERATOR_IDENTITY_PART_UNDECLARED}:${part}`,\n kind: LaunchBlockerKind.OPERATOR_IDENTITY_PART_UNDECLARED,\n statement: `Not yet decided: ${IDENTITY_PART_DESCRIPTION[part]}.`,\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.${part}`,\n settledBy: `Declare \\`operatorComplianceIdentity.${part}\\` in ${CONFIG_FILE}. Never a placeholder: a produced notice quotes it as fact.`,\n });\n }\n blockers.push(...legalNoticeLaunchBlockers(inputs.applicationConfig.operatorComplianceIdentity, inputs.legalNoticeModulePresent));\n }\n\n if (inputs.governanceQuestions === undefined) {\n unreadable(LaunchBlockerSource.QUESTION_QUEUE);\n } else {\n for (const question of inputs.governanceQuestions) {\n blockers.push({\n ref: `${LaunchBlockerKind.GOVERNANCE_QUESTION_UNANSWERED}:${question.questionId}`,\n kind: LaunchBlockerKind.GOVERNANCE_QUESTION_UNANSWERED,\n statement: `Unanswered governance question${question.definitionRef === null ? \"\" : ` for ${question.definitionRef}`}: ${question.prompt}`,\n decidedIn: \"the workbench's governance panel (a governed document's facts are landed as one sitting that names who decided)\",\n settledBy: `Answer it in the workbench's governance panel; \\`wildo creation questions\\` lists it as ${question.questionId}.`,\n });\n }\n }\n\n if (inputs.applicationConfig !== undefined) {\n for (const dataClass of undeclaredRetentionClasses(inputs.applicationConfig.dataRetention)) {\n blockers.push({\n ref: `${LaunchBlockerKind.RETENTION_CLASS_UNDECLARED}:${dataClass}`,\n kind: LaunchBlockerKind.RETENTION_CLASS_UNDECLARED,\n statement: `No retention period is declared for ${dataClass}; a notice can only say it is not established.`,\n decidedIn: `${CONFIG_FILE} → dataRetention.${dataClass}`,\n settledBy: `Declare \\`dataRetention.${dataClass}\\` (retentionDays and rationale) in ${CONFIG_FILE}, then run \\`wildo config data-retention\\`.`,\n });\n }\n }\n\n /*\n * The same predicate as the `subject-data-recipients` validate domain's warning: the module is absent.\n * A STALE or uncarried module is that domain's FAILURE and is reported there; this list names the\n * undecided state, which is the one a creation run leaves behind.\n */\n if (!inputs.subjectDataRecipientsModulePresent) {\n blockers.push({\n ref: LaunchBlockerKind.SUBJECT_DATA_RECIPIENTS_UNDECLARED,\n kind: LaunchBlockerKind.SUBJECT_DATA_RECIPIENTS_UNDECLARED,\n statement: \"Subject-data recipients are not declared, so every subject export says so and every erasure is marked unmeasured.\",\n decidedIn: `${SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH}, composed as compliance.subjectDataRecipients in ${BACKEND_CONFIG_FILE}`,\n settledBy: `Run \\`wildo config subject-data-recipients\\` and compose \\`compliance.subjectDataRecipients\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n }\n\n /*\n * Sign-up acceptance. The engine records it: a release whose `allowedInteractionKinds` include\n * CONTRACT_ACCEPTED is offered at registration and accepting it writes a per-version acceptance row\n * and an audit event. So the open decision is never \"build a mechanism\" — it is \"no release offers it\",\n * \"the release never reached the running application\", or \"only an unapproved release offers it\".\n */\n if (inputs.documentReleases === undefined) {\n unreadable(LaunchBlockerSource.DOCUMENT_RELEASES);\n } else {\n /*\n * In force NOW and allowing CONTRACT_ACCEPTED, as the registration control selects. Its third condition, the approval\n * gate (`requiresApprovedGovernedDocuments`), lives in the backend configuration this list does not read, so it is\n * not assumed either way: an offer resting only on unapproved releases is marked on its own below.\n */\n // Ended by their replacements first (#3127): a replaced release is no longer offered by the running application.\n const offering = withReplacementEnds(inputs.documentReleases).filter((release) =>\n governedDocumentReleaseIsInForce(release, inputs.computedAt)\n && release.allowedInteractionKinds.includes(GovernedDocumentInteractionKind.CONTRACT_ACCEPTED));\n if (offering.length === 0) {\n blockers.push({\n ref: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_OFFERED,\n kind: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_OFFERED,\n statement: \"How the terms and the privacy notice are accepted at sign-up is undecided: no recorded release in force allows CONTRACT_ACCEPTED, so registration records no acceptance.\",\n decidedIn: `the specifications package's documentReleaseCompositions, carried as compliance.governedDocumentReleases in ${BACKEND_CONFIG_FILE} (how acceptance is collected: compliance.governedDocumentAcceptanceMode)`,\n settledBy: `Compose a release of the terms or privacy notice that allows CONTRACT_ACCEPTED in documentReleaseCompositions, run \\`wildo config document-releases\\`, and compose \\`compliance.governedDocumentReleases\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n } else {\n if (!inputs.documentReleasesModulePresent) {\n blockers.push({\n ref: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_CARRIED,\n kind: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_CARRIED,\n statement: `${offering.length} recorded release(s) allow acceptance at sign-up, but ${GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH} does not exist, so the running application offers none.`,\n decidedIn: `${GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH}, composed as compliance.governedDocumentReleases in ${BACKEND_CONFIG_FILE}`,\n settledBy: `Run \\`wildo config document-releases\\` and compose \\`compliance.governedDocumentReleases\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n }\n if (!offering.some((release) => release.approvalState === GovernedDocumentReleaseApprovalState.APPROVED)) {\n blockers.push({\n ref: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_UNAPPROVED,\n kind: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_UNAPPROVED,\n statement: `The ${offering.length} release(s) offered for acceptance at sign-up are unapproved: registration offers them only while compliance.governedDocumentApprovalGate is off, and offers nothing once it is armed.`,\n decidedIn: \"the release's approvalDecisions in documentReleaseCompositions; compliance.governedDocumentApprovalGate decides whether an unapproved release is offered\",\n settledBy: \"Compose an approved release (approvalDecisions on its documentReleaseCompositions entry, with the next releaseVersion where one is already recorded), then run `wildo config document-releases`.\",\n });\n }\n }\n }\n\n if (inputs.brandNaming === undefined) {\n unreadable(LaunchBlockerSource.BRAND_NAMING);\n } else {\n /*\n * An unreadable configuration reads no clearance, so the item may then be listed although a record settles it.\n * That is the safe direction: the configuration is already reported unevaluated above, and listing an open item\n * is recoverable where hiding one is not.\n */\n const outcome = brandNameLaunchBlocker(inputs.brandNaming, inputs.applicationConfig?.brandNameClearances);\n if (typeof outcome === \"string\") {\n // A brand that landed and does not parse is UNREAD, never \"nothing open\" — the invariant above, applied here too.\n unevaluatedSources.push({ source: LaunchBlockerSource.BRAND_NAMING, reason: outcome });\n } else if (outcome !== undefined) {\n blockers.push(outcome);\n }\n }\n\n if (inputs.assuranceProgram === undefined) {\n unreadable(LaunchBlockerSource.ASSURANCE_PROGRAM);\n } else {\n const standing = readAssuranceProgramObligationStanding(inputs.assuranceProgram.program, inputs.computedAt);\n switch (standing.outcome) {\n case AssuranceProgramObligationStandingOutcome.NO_PROGRAM:\n break;\n case AssuranceProgramObligationStandingOutcome.UNREADABLE:\n case AssuranceProgramObligationStandingOutcome.NO_REGISTER:\n // A programme that landed and cannot be read is UNKNOWN, never \"no obligation open\".\n unevaluatedSources.push({ source: LaunchBlockerSource.ASSURANCE_PROGRAM, reason: standing.reason });\n break;\n case AssuranceProgramObligationStandingOutcome.EVALUATED:\n blockers.push(...standing.unmet.map((obligation) => unmetObligationLaunchBlocker(obligation)));\n break;\n }\n }\n\n if (inputs.applicationConfig !== undefined) {\n if (inputs.providerDataResidency === undefined) unreadable(LaunchBlockerSource.PROVIDER_DATA_RESIDENCY);\n else blockers.push(...dataResidencyLaunchBlockers(inputs.applicationConfig, inputs.providerDataResidency));\n }\n\n return { computedAt: inputs.computedAt, blockers, unevaluatedSources };\n}\n\n/**\n * The data residency items (#2294). The residency is the DECLARED one when the configuration carries it, else the one\n * the interview answered: an answered residency is a decision the creator took, and the providers it leaves unplaced are\n * exactly what stops the foundation writing it. Each provider is placed by {@link placeProvidersInsideDataResidency}, so\n * this list and `wildo config sync`'s refusal name the same providers.\n *\n * A provider whose region is DERIVABLE is listed only under a declared residency (the synchronisation refuses it until\n * its choice is written); under an answered one the foundation writes it itself, so it is not a decision anyone owes.\n */\nfunction dataResidencyLaunchBlockers(\n applicationConfig: NonNullable<LaunchBlockerInputs[\"applicationConfig\"]>,\n input: NonNullable<LaunchBlockerInputs[\"providerDataResidency\"]>,\n): LaunchBlocker[] {\n const declared = applicationConfig.operatorComplianceIdentity?.dataResidency;\n const answered = input.answeredTerritories === undefined || input.answeredTerritories.length === 0\n ? undefined\n : ({ territories: [...input.answeredTerritories] } satisfies ApplicationDataResidency);\n const residency = declared ?? answered;\n if (residency === undefined) return [];\n const blockers: LaunchBlocker[] = [];\n if (declared === undefined) {\n blockers.push({\n ref: LaunchBlockerKind.DATA_RESIDENCY_NOT_DECLARED,\n kind: LaunchBlockerKind.DATA_RESIDENCY_NOT_DECLARED,\n statement: `The data residency answered in the interview (${residency.territories.join(\", \")}) is not declared in the configuration, so nothing holds the providers to it.`,\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.dataResidency, from the foundation interview's data-residency-territories answer`,\n settledBy: \"Place every provider listed below, then run the foundation again (`wildo creation run bottom_up.foundation`); it writes the residency once nothing is left unplaced.\",\n });\n }\n for (const placement of placeProvidersInsideDataResidency({\n residency,\n choices: applicationConfig.providerComplianceChoices,\n profilesByProviderRef: input.profilesByProviderRef,\n providerRefs: input.providerRefs,\n })) {\n if (placement.outcome === ProviderDataResidencyPlacementOutcome.DERIVED && declared === undefined) continue;\n blockers.push({\n ref: `${LaunchBlockerKind.DATA_RESIDENCY_PROVIDER_UNPLACED}:${placement.providerRef}`,\n kind: LaunchBlockerKind.DATA_RESIDENCY_PROVIDER_UNPLACED,\n statement: dataResidencyPlacementStatement(placement, residency),\n decidedIn: `${CONFIG_FILE} → providerComplianceChoices.${placement.providerRef}`,\n settledBy: placement.outcome === ProviderDataResidencyPlacementOutcome.DERIVED\n ? `Declare \\`providerComplianceChoices.${placement.providerRef}\\` as VENDOR_HOSTED in \"${placement.derivedChoice?.processingRegion}\", or run the foundation again, which writes it.`\n : placement.regionsInside.length > 0\n ? `Choose \\`providerComplianceChoices.${placement.providerRef}\\` (one of: ${placement.regionsInside.join(\", \")}), replace the provider, or widen the residency.`\n : \"Replace the provider with one that processes inside the residency, run it self-hosted if it is offered that way, or widen the residency.\",\n });\n }\n return blockers;\n}\n\nconst COMPLIANCE_PROGRAM_FILE = \"specifications/src/compliance/index.ts\";\n\n/** One reason, in a reader's words. TOTAL over the enum: a reason added to the vocabulary is a compile error here. */\nconst OBLIGATION_OPEN_REASON_WORDS: Readonly<Record<AssuranceProgramObligationOpenReason, (detail: AssuranceProgramObligationOpenReasonDetail) => string>> = {\n [AssuranceProgramObligationOpenReason.APPLICABILITY_UNDETERMINED]: () => \"whether it applies is undetermined\",\n [AssuranceProgramObligationOpenReason.COVERAGE_NOT_APPROVED]: () => \"no approved coverage decision covers it\",\n [AssuranceProgramObligationOpenReason.GAP_OPEN]: (detail) => `gap ${detail.findingKey} is ${detail.disposition}`,\n [AssuranceProgramObligationOpenReason.ACCEPTANCE_EXPIRED]: (detail) => `the ${detail.disposition} acceptance of ${detail.findingKey} expired on ${detail.expiresOn}`,\n [AssuranceProgramObligationOpenReason.FINDING_UNRECORDED]: (detail) => `it cites ${detail.findingKey}, which gapsAndExceptions does not record`,\n};\n\n/** What settles each reason. Also TOTAL. */\nconst OBLIGATION_OPEN_REASON_REMEDY: Readonly<Record<AssuranceProgramObligationOpenReason, string>> = {\n [AssuranceProgramObligationOpenReason.APPLICABILITY_UNDETERMINED]: \"record its applicability as APPLICABLE or NOT_APPLICABLE (with evidence)\",\n [AssuranceProgramObligationOpenReason.COVERAGE_NOT_APPROVED]: \"record an APPROVED coverage decision over its exact source requirements in obligationCoverageDecisions\",\n [AssuranceProgramObligationOpenReason.GAP_OPEN]: \"close the gap in the product, then record the finding RESOLVED (or RISK_ACCEPTED, with an authority decision and an expiry)\",\n [AssuranceProgramObligationOpenReason.ACCEPTANCE_EXPIRED]: \"renew the acceptance with a new authority decision and expiry, or resolve the gap\",\n [AssuranceProgramObligationOpenReason.FINDING_UNRECORDED]: \"record the cited finding in gapsAndExceptions, or remove the reference\",\n};\n\n/**\n * The launch item for one unmet HARD obligation (#55). Settled by the programme, which is a committed file: re-run\n * `top_down.compliance-conception` or edit it, and commit — the item is gone on the next read.\n */\nfunction unmetObligationLaunchBlocker(obligation: AssuranceProgramUnmetHardObligation): LaunchBlocker {\n const key = `${obligation.obligationRef}@${obligation.obligationVersion}`;\n const remedies = [...new Set(obligation.reasons.map((detail) => OBLIGATION_OPEN_REASON_REMEDY[detail.reason]))];\n const applies = obligation.applicabilityStatus === AssuranceProgramObligationApplicabilityStatus.APPLICABLE ? \"applies\" : \"may apply\";\n return {\n ref: `${LaunchBlockerKind.ASSURANCE_OBLIGATION_UNMET}:${key}`,\n kind: LaunchBlockerKind.ASSURANCE_OBLIGATION_UNMET,\n statement: `The HARD obligation ${key} (objective ${obligation.objectiveRef}) ${applies} and is not met: ${obligation.reasons.map((detail) => OBLIGATION_OPEN_REASON_WORDS[detail.reason](detail)).join(\"; \")}.`,\n decidedIn: `${COMPLIANCE_PROGRAM_FILE} → obligationRegister entry ${key} (the compliance programme)`,\n settledBy: `In the programme: ${remedies.join(\"; \")}. Re-run top_down.compliance-conception or edit ${COMPLIANCE_PROGRAM_FILE}, and commit.`,\n };\n}\n\n/**\n * The legal notice's launch items (#2588): an undeclared establishment (whether a notice is owed is then unknown), an\n * always-owed particular that is undeclared, and an owed notice the running application does not carry.\n */\nfunction legalNoticeLaunchBlockers(\n identity: ApplicationOperatorComplianceIdentity | undefined,\n modulePresent: boolean,\n): LaunchBlocker[] {\n const owed = legalNoticeOwed(identity);\n if (owed === undefined) {\n return [{\n ref: LaunchBlockerKind.LEGAL_NOTICE_ESTABLISHMENT_UNDECLARED,\n kind: LaunchBlockerKind.LEGAL_NOTICE_ESTABLISHMENT_UNDECLARED,\n statement: \"Where the operator is established is not declared, so whether the service owes a legal notice (imprint) is unknown; an operator established in the EU, the EEA, the UK or Switzerland owes one.\",\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.establishmentJurisdiction`,\n settledBy: `Declare \\`operatorComplianceIdentity.establishmentJurisdiction\\` (a jurisdiction code, such as 'fr') in ${CONFIG_FILE}, then run \\`wildo config legal-notice\\`.`,\n }];\n }\n if (!owed) return [];\n const items: LaunchBlocker[] = outstandingLegalNoticeParticulars(identity).owed\n .filter((particular) => !IDENTITY_PART_VALUES.has(particular))\n .map((particular) => ({\n ref: `${LaunchBlockerKind.LEGAL_NOTICE_PARTICULAR_UNDECLARED}:${particular}`,\n kind: LaunchBlockerKind.LEGAL_NOTICE_PARTICULAR_UNDECLARED,\n statement: `The legal notice marks this as not yet declared: ${LEGAL_NOTICE_PARTICULAR_DESCRIPTION[particular] ?? particular}.`,\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.${particular}`,\n settledBy: `Declare \\`operatorComplianceIdentity.${particular}\\` in ${CONFIG_FILE}, then run \\`wildo config legal-notice\\`.`,\n }));\n if (!modulePresent) {\n items.push({\n ref: LaunchBlockerKind.LEGAL_NOTICE_NOT_CARRIED,\n kind: LaunchBlockerKind.LEGAL_NOTICE_NOT_CARRIED,\n statement: `A legal notice is owed, but ${LEGAL_NOTICE_GENERATED_RELATIVE_PATH} does not exist, so the running application's /legal-notice page says none is required.`,\n decidedIn: `${LEGAL_NOTICE_GENERATED_RELATIVE_PATH}, composed as compliance.legalNotice in ${BACKEND_CONFIG_FILE}`,\n settledBy: `Run \\`wildo config legal-notice\\` and compose \\`compliance.legalNotice\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n }\n return items;\n}\n\nconst SCREENING_FILE = \"specifications/src/brand-name-screening/index.ts\";\nconst BRAND_FILE = \"specifications/src/brand/index.ts\";\n\n/**\n * The brand name's launch item (#2338), or none.\n *\n * None when the line carries no brand, when no brand has landed yet (choosing a name is the definition's work,\n * which the coherence report owns), and when the name is CLEARED — screened in every declared register,\n * jurisdiction and class with no conflict. Otherwise one item naming what is open: the products already using the\n * name, the marks found, and the registers and jurisdictions nobody read. Settled by a screening that reads every\n * register with no conflict; whatever the screening says, it is not a legal clearance, which the item says too.\n *\n * Also none when `brandNameClearances` records the chosen name cleared OUTSIDE the screening (#2440) — an IP\n * professional's opinion, a filed application or a registered mark. That is the only way a name KEPT despite a\n * conflict can leave the list, since a re-screen still finds the conflicting mark. The record matches by the\n * screening's normalized comparison, so renaming the brand reopens the item and a record for another name settles\n * nothing. A brand that does not parse is still reported unevaluated: a record cannot match a name nobody can read.\n *\n * A brand that LANDED and does not parse returns the reason as a string: the caller reports the source as\n * unevaluated, because an unparseable brand read as \"no brand yet\" would be the list failing open.\n */\nfunction brandNameLaunchBlocker(\n naming: NonNullable<LaunchBlockerInputs[\"brandNaming\"]>,\n clearances: ApplicationBrandNameClearances | undefined,\n): LaunchBlocker | string | undefined {\n const dossier = ApplicationCreatorInputsSchema.safeParse(naming.creatorInputs);\n if (resolveNotApplicableFamilies(dossier.success ? dossier.data : undefined).has(ApplicationSpecificationFamily.BRAND_BRIEF)) return undefined;\n if (naming.brand === undefined) return undefined;\n const brand = BrandSnapshotSchema.safeParse(naming.brand);\n if (!brand.success) return `the landed brand (${BRAND_FILE}) does not match its schema, so its name's standing cannot be read`;\n const parsedScreening = BrandNameScreeningSchema.safeParse(naming.screening);\n const screening = parsedScreening.success ? parsedScreening.data : undefined;\n /* A screening that landed and does not parse is not \"no screening\": the item says which it is. */\n const screeningUnreadable = naming.screening !== undefined && !parsedScreening.success;\n const alternatives = (naming.market as { alternatives?: Parameters<typeof marketCompetitorNames>[0] } | undefined)?.alternatives;\n const competitorNames = marketCompetitorNames(alternatives);\n const brandName = brand.data.name.brandName;\n const brandKey = normalizeBrandNameForComparison(brandName);\n if (clearances?.some((clearance) => normalizeBrandNameForComparison(clearance.brandName) === brandKey)) return undefined;\n const { standing, candidate } = deriveBrandNameChoiceStanding({\n brandName,\n screening,\n competitorNames,\n chosenBrandNameAnswer: readCreatorBrandNameDecisions(dossier.success ? dossier.data : undefined).chosenBrandNameAnswer,\n });\n if (standing === BrandNameChoiceStanding.CLEARED) return undefined;\n\n const parts: string[] = [];\n if (screeningUnreadable) {\n parts.push(`the landed screening (${SCREENING_FILE}) does not match its schema, so nothing it records can be read`);\n } else if (screening === undefined || candidate === undefined) {\n parts.push(\"no trademark screening covers it\");\n } else {\n const marks = [...new Set(candidate.trademarkQueries.flatMap((query) => query.conflictingMarks.map((mark) => mark.mark)))];\n if (marks.length > 0) parts.push(`live trademark(s) found: ${marks.join(\", \")}`);\n const collisions = brandNameCandidateCollisions(candidate, competitorNames);\n if (collisions.length > 0) {\n parts.push(`already used by: ${collisions.map((collision) => (collision.sourceUrl ? `${collision.name} (${collision.sourceUrl})` : collision.name)).join(\"; \")}`);\n }\n // #3484: a screening with no target jurisdiction cleared nothing, whatever it read.\n if (brandNameScreeningDeclaresNoTarget(screening)) parts.push(\"its target jurisdictions are not decided yet\");\n const coverage = deriveBrandNameScreeningCoverage(screening, candidate);\n if (coverage.level === BrandNameScreeningCoverageLevel.NONE) {\n parts.push(\"no trademark register could be read for it\");\n } else if (coverage.unreadJurisdictions.length > 0) {\n parts.push(`not read in ${coverage.unreadJurisdictions.join(\", \")}`);\n }\n const checks = deriveBrandNameManualChecks(screening).filter((check) => check.candidateRef === candidate.ref).length;\n if (checks > 0) parts.push(`${checks} search(es) listed as manual checks in the screening`);\n }\n const classes = screening?.niceClasses.map((niceClass) => niceClass.classNumber).join(\", \");\n /* Name the filing the screening's own jurisdictions call for, never an EU mark for a screening with no EU target. */\n const filing = screening?.jurisdictions.some((jurisdiction) => jurisdiction.code === \"EU\")\n ? `the EU trade mark${classes ? ` in Nice classes ${classes}` : \"\"}`\n : `the mark in each target jurisdiction${classes ? ` (Nice classes ${classes})` : \"\"}`;\n return {\n ref: `${LaunchBlockerKind.BRAND_NAME_NOT_CLEARED}:${brandKey}`,\n kind: LaunchBlockerKind.BRAND_NAME_NOT_CLEARED,\n statement: `The brand name \"${brandName}\" is not cleared: ${parts.join(\"; \") || \"its screening is incomplete\"}.`,\n decidedIn: `${SCREENING_FILE} (the screening), the brand name chosen in ${BRAND_FILE}, or a clearance recorded in ${CONFIG_FILE} → brandNameClearances`,\n settledBy:\n \"Run the screening's manual checks, then re-run top_down.brand-naming so the screening reads every register with no conflict \"\n + \"(or choose another name in the brand identity's interview). A screening is not a legal clearance: have an IP professional \"\n + `run a clearance search and file ${filing} before public launch. Once a clearance opinion, a filed application or a registered `\n + `mark covers \"${brandName}\", record it in \\`brandNameClearances\\` in ${CONFIG_FILE} (the name, the basis, the date and its `\n + \"reference); that settles this item, which a re-screen cannot do for a name kept despite a conflict.\",\n };\n}\n"]}
1
+ {"version":3,"file":"launch-blockers.schemas.js","sourceRoot":"","sources":["../../../../src/_core/compliance-documents/launch-blockers.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EACL,+BAA+B,EAC/B,oCAAoC,EACpC,gCAAgC,EAChC,oC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AU,gCAAgC,WAAW,wBAAwB;QACvJ,SAAS,EACP,8HAA8H;cAC5H,4HAA4H;cAC5H,mCAAmC,MAAM,uFAAuF;cAChI,gBAAgB,SAAS,8CAA8C,WAAW,0CAA0C;cAC5H,qGAAqG;KAC1G,CAAC;AACJ,CAAC","sourcesContent":["/**\n * The \"before you can launch\" list: every open compliance decision that stands between a created\n * application and a real user, each with where it is decided and what settles it (#2238).\n *\n * ## Why it exists\n *\n * A creation run ended without saying what was still open. In run 004 the operator's legal entity and\n * hosting region, two governance questions, the retention classes, the subject-data recipients and the\n * sign-up acceptance were all undecided, and they surfaced as `wildo config validate` warnings in logs,\n * or not at all. Spread across logs, none of them is a list anyone acts on.\n *\n * ## It MARKS, it never blocks\n *\n * Nothing calls this to decide whether creation may proceed. `application-creation-directive.md`\n * forbids a compliance workflow standing in front of creation; Gate 3 is where these points become\n * gates, and this is what that gate will read. So the list has no severity and no pass/fail verdict:\n * it is what is open, stated plainly.\n *\n * ## It is DERIVED, never asked\n *\n * Every entry is a function of something the application already holds, by the same predicate the\n * surface that owns it already uses (`compliance-is-derived-from-the-product.md`,\n * `derive-before-you-ask.md`):\n *\n * | entry | derived from |\n * |---|---|\n * | operator identity part | {@link outstandingOperatorComplianceIdentityParts}, total over {@link OperatorComplianceIdentityPart} |\n * | legal notice | {@link legalNoticeOwed} (establishment undeclared), {@link outstandingLegalNoticeParticulars} (`owed` only), and whether {@link LEGAL_NOTICE_GENERATED_RELATIVE_PATH} exists |\n * | retention class | {@link undeclaredRetentionClasses}, total over `DataRetentionClass` |\n * | subject-data recipients | the generated recipients module is absent — the predicate behind `wildo config validate`'s warning |\n * | governance question | the creation question queue's `GOVERNANCE_FACT` items (`wildo creation questions`) |\n * | sign-up acceptance | the recorded governed-document releases in force, their approval, and whether their runtime module exists |\n * | brand name not cleared | the chosen brand name against its trademark screening — `deriveBrandNameChoiceStanding`, the predicate the coherence report and the risk signal use (#2338) — unless `brandNameClearances` records the name cleared outside the screening (#2440) |\n * | assurance obligation unmet | the committed compliance programme's obligation register — {@link readAssuranceProgramObligationStanding}: a HARD obligation that applies (or may) and is not met (#55) |\n * | data residency | {@link placeProvidersInsideDataResidency}, the population and verdict `wildo config sync` refuses on: each data-serving provider the declared (or answered and not yet declared) residency does not place inside, and an answered residency the configuration does not carry yet (#2294) |\n * | agents run unguarded | each environment other than a local one whose `agentContentGuardrails` declares `RUN_UNGUARDED`: its agents' classifier-backed guardrails that no classifier offers there are not enforced (#2292) |\n *\n * The governance population is the QUEUE's, deliberately: a fact still needed by a DRAFTED governed document. A document\n * not drafted yet asks nothing, so its facts are not listed here — the creation run drafting it is what surfaces them.\n * Gate 3 must not read an empty governance section as \"every governed document is complete\".\n *\n * Settling an item removes it on the next read, because nothing here is stored: the caller reads each\n * input fresh and this function recomputes. A total derivation also means an identity part or a\n * retention class added to its vocabulary tomorrow appears here for every application at once.\n *\n * ## An input that could not be read is NOT an empty list\n *\n * Each input is optional for exactly that reason. An unreadable configuration or question queue is\n * reported in {@link LaunchBlockerList.unevaluatedSources}, never as \"nothing open\" — a launch list that\n * reads clean because its source failed is the most dangerous answer it could give\n * (`negative-results-require-a-positive-probe.md`).\n */\n\nimport { z } from \"zod\";\n\nimport {\n GovernedDocumentInteractionKind,\n GovernedDocumentReleaseApprovalState,\n governedDocumentReleaseIsInForce,\n LEGAL_NOTICE_GENERATED_RELATIVE_PATH,\n LegalNoticeParticular,\n legalNoticeOwed,\n OperatorComplianceIdentityPart,\n outstandingLegalNoticeParticulars,\n outstandingOperatorComplianceIdentityParts,\n undeclaredRetentionClasses,\n withReplacementEnds,\n type ApplicationBrandNameClearances,\n type ApplicationOperatorComplianceIdentity,\n type ApplicationRetentionSchedule,\n type GovernedDocumentRelease,\n ProviderDataResidencyPlacementOutcome,\n dataResidencyPlacementStatement,\n placeProvidersInsideDataResidency,\n type ApplicationDataResidency,\n type ApplicationProviderComplianceChoices,\n type ProviderComplianceProfile,\n AgentContentGuardrailsWithoutClassifier,\n type EnvironmentAgentContentGuardrails,\n} from \"@wildo-ai/saas-models\";\n\n/*\n * entrypoint-closure-waiver: this root-reachable module imports from two assurance-only modules, and no exported\n * signature here names anything from either, so a root-only consumer has nothing to name:\n * - `GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH`, a string constant used only inside prose this module builds;\n * - the obligation-standing reader and its enums (#55), used only inside `deriveLaunchBlockers`. The programme reaches\n * this module RAW (`LaunchBlockerInputs.assuranceProgram.program: unknown`), so no programme type appears here either.\n */\nimport { GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH } from \"../../assurance/governed-document-release\";\nimport { AssuranceProgramObligationApplicabilityStatus } from \"../../assurance/assurance-program.schemas\";\nimport {\n AssuranceProgramObligationOpenReason,\n AssuranceProgramObligationStandingOutcome,\n readAssuranceProgramObligationStanding,\n type AssuranceProgramObligationOpenReasonDetail,\n type AssuranceProgramUnmetHardObligation,\n} from \"../../assurance/assurance-program-obligation-standing\";\nimport { SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH } from \"./subject-data-recipients.schemas\";\nimport { ApplicationCreatorInputsSchema } from \"../../application-creation/application-creator-inputs.application-creation.schemas\";\nimport { resolveNotApplicableFamilies } from \"../../application-creation/application-line.application-creation.schemas\";\nimport { ApplicationSpecificationFamily } from \"../application-specification-family-identity.schemas\";\nimport { BrandSnapshotSchema } from \"../brand/brand-snapshot.schemas\";\nimport {\n BrandNameScreeningCoverageLevel,\n BrandNameScreeningSchema,\n brandNameScreeningDeclaresNoTarget,\n deriveBrandNameManualChecks,\n deriveBrandNameScreeningCoverage,\n normalizeBrandNameForComparison,\n} from \"../brand/brand-name-screening.schemas\";\nimport {\n BrandNameChoiceStanding,\n brandNameCandidateCollisions,\n deriveBrandNameChoiceStanding,\n marketCompetitorNames,\n readCreatorBrandNameDecisions,\n} from \"../brand/brand-name-choice\";\n\n/** WHAT is open — one member per kind of launch decision, each with its own settling path. */\nexport enum LaunchBlockerKind {\n /** A part of `operatorComplianceIdentity` is undeclared: the legal entity, the hosting region, the privacy contact… */\n OPERATOR_IDENTITY_PART_UNDECLARED = \"operator-identity-part-undeclared\",\n /** A governed-document question waits on the person; it is answered in the workbench's governance panel. */\n GOVERNANCE_QUESTION_UNANSWERED = \"governance-question-unanswered\",\n /**\n * Where the operator is established is undeclared, so whether the service owes a legal notice (imprint) is unknown\n * (#2588). Establishment decides it (the EU and EEA under Directive 2000/31/EC Art. 5(1), the UK under its 2002 Regulations, Switzerland under UWG Art. 3 Abs. 1 Bst. s), not the markets served.\n */\n LEGAL_NOTICE_ESTABLISHMENT_UNDECLARED = \"legal-notice-establishment-undeclared\",\n /**\n * A particular every established provider's notice states (its direct contact) is undeclared, so the\n * `/legal-notice` page marks it \"not yet declared\". The name and the address are reported as identity parts, being\n * the same fields; the particulars that apply only to some operators (register, VAT, legal form…) are not listed,\n * because nothing could ever settle them for an operator they do not apply to.\n */\n LEGAL_NOTICE_PARTICULAR_UNDECLARED = \"legal-notice-particular-undeclared\",\n /**\n * A notice is owed, but its runtime module was never generated, so the running application's `/legal-notice` page\n * says no notice is required. A STALE module is the `legal-notice` validate domain's failure, not this item.\n */\n LEGAL_NOTICE_NOT_CARRIED = \"legal-notice-not-carried\",\n /** A `DataRetentionClass` has no declared period in `dataRetention`. */\n RETENTION_CLASS_UNDECLARED = \"retention-class-undeclared\",\n /** No subject-data recipients module, so every subject export says recipients are not declared. */\n SUBJECT_DATA_RECIPIENTS_UNDECLARED = \"subject-data-recipients-undeclared\",\n /** No recorded release lets a person accept it, so sign-up records no acceptance of the terms or the privacy notice. */\n SIGN_UP_ACCEPTANCE_NOT_OFFERED = \"sign-up-acceptance-not-offered\",\n /** A release offers acceptance, but its runtime module was never generated, so the running application does not offer it. */\n SIGN_UP_ACCEPTANCE_NOT_CARRIED = \"sign-up-acceptance-not-carried\",\n /**\n * Every release offering acceptance is UNAPPROVED. Registration offers it only while `compliance.governedDocumentApprovalGate`\n * is off; once the gate is armed — which Gate 3 does — registration offers nothing. Marked whatever the gate's state today,\n * because this list is what Gate 3 reads.\n */\n SIGN_UP_ACCEPTANCE_UNAPPROVED = \"sign-up-acceptance-unapproved\",\n /**\n * The brand's chosen name is not cleared by its trademark screening (#2338): a register was not read, none was,\n * or a live mark or a product doing the same job already uses the name. A name printed on every surface is the\n * one decision a real user sees first, and choosing it with the screening open was recorded — this keeps it in\n * view until the screening reads every register with no conflict.\n */\n BRAND_NAME_NOT_CLEARED = \"brand-name-not-cleared\",\n /**\n * A HARD obligation of the committed compliance programme applies (or its applicability is undetermined) and is not\n * met: a gap finding is open, a risk acceptance or exception has expired, or no approved coverage decision covers it\n * (#55). The register's own `blockingEffect` says it stands in front of launch; this is where that is read.\n */\n ASSURANCE_OBLIGATION_UNMET = \"assurance-obligation-unmet\",\n /**\n * The interview answered a data residency (`data-residency-territories`) and the configuration does not declare it\n * (#2294). The foundation writes it once every data-serving provider is placed inside it, so this stands while a\n * provider is unplaced (each listed beside it) or until the foundation runs again.\n */\n DATA_RESIDENCY_NOT_DECLARED = \"data-residency-not-declared\",\n /**\n * A provider serving the application's data is not placed inside the residency (declared, or answered and not yet\n * declared): several of its regions fit, none does, its deployment model is a choice, an authored region lies outside,\n * or it has no profile (#2294). Under a DECLARED residency `wildo config sync` refuses until it is settled.\n */\n DATA_RESIDENCY_PROVIDER_UNPLACED = \"data-residency-provider-unplaced\",\n /**\n * An environment other than a local one declares that its agents run UNGUARDED where no classifier offers a guardrail\n * (`agentContentGuardrails: { withoutClassifier: RUN_UNGUARDED }`, #2292): an agent that declares prompt-injection\n * screening or output moderation runs without it there. A decision the operator may keep; this keeps it in view until a\n * classifier is selected for that environment or the declaration is removed. A local environment is never listed: no\n * real user reaches it.\n */\n AGENT_GUARDRAILS_RUN_UNGUARDED = \"agent-guardrails-run-unguarded\",\n}\n\n/** An input the list is derived from — named so an unreadable one can be reported as such. */\nexport enum LaunchBlockerSource {\n /** `wildo.saas.config.ts`: the operator identity and the retention schedule. */\n APPLICATION_CONFIG = \"application-config\",\n /** The creation question queue: the governance questions. */\n QUESTION_QUEUE = \"question-queue\",\n /** The specifications package's recorded governed-document releases: sign-up acceptance. */\n DOCUMENT_RELEASES = \"document-releases\",\n /** The landed brand, brand-name screening, market snapshot and dossier: the brand name's standing. */\n BRAND_NAMING = \"brand-naming\",\n /** The committed compliance programme (`complianceSpecification`): its obligation register. */\n ASSURANCE_PROGRAM = \"assurance-program\",\n /** The data-serving providers' compliance profiles and the residency answer: where each provider processes (#2294). */\n PROVIDER_DATA_RESIDENCY = \"provider-data-residency\",\n /** Each environment's `wildo.infra.<env>.config.ts`: what it declares about its agents' guardrails (#2292). */\n ENVIRONMENT_CONFIGS = \"environment-configs\",\n}\n\n/** One open decision. */\nexport const LaunchBlockerSchema = z.strictObject({\n /** Stable across reads (`<kind>:<subject>`), so a reader can tell which item was settled between two reads. */\n ref: z.string().min(1),\n kind: z.enum(LaunchBlockerKind),\n /** What is open, in one sentence. */\n statement: z.string().min(1),\n /** Where the decision lives — a file and field, or the surface that holds it. */\n decidedIn: z.string().min(1),\n /** The command to run or the edit to make that settles it. */\n settledBy: z.string().min(1),\n});\nexport type LaunchBlocker = z.infer<typeof LaunchBlockerSchema>;\n\n/** A source that could not be read, and why — so its entries read as UNKNOWN rather than absent. */\nexport const LaunchBlockerUnevaluatedSourceSchema = z.strictObject({\n source: z.enum(LaunchBlockerSource),\n reason: z.string().min(1),\n});\nexport type LaunchBlockerUnevaluatedSource = z.infer<typeof LaunchBlockerUnevaluatedSourceSchema>;\n\n/** The whole list, as the companion serves it and a run report renders it. */\nexport const LaunchBlockerListSchema = z.strictObject({\n computedAt: z.string().min(1),\n blockers: z.array(LaunchBlockerSchema),\n unevaluatedSources: z.array(LaunchBlockerUnevaluatedSourceSchema),\n});\nexport type LaunchBlockerList = z.infer<typeof LaunchBlockerListSchema>;\n\n/** A queued governed-document question, as much of it as the list names. */\nexport interface LaunchBlockerGovernanceQuestion {\n /** The queue's id, `governance-fact:<rowId>` — what `wildo creation questions` prints. */\n readonly questionId: string;\n /** The governed document whose draft needs the answer. */\n readonly definitionRef: string | null;\n /** The question, in the words the person is asked. */\n readonly prompt: string;\n}\n\n/** Everything the list is derived from. `undefined` means the input could not be READ, never that it is empty. */\nexport interface LaunchBlockerInputs {\n readonly computedAt: string;\n /** The application's configuration, read fresh. `undefined` when it could not be loaded. */\n readonly applicationConfig?: {\n readonly operatorComplianceIdentity?: ApplicationOperatorComplianceIdentity;\n readonly dataRetention?: ApplicationRetentionSchedule;\n /** The names the operator cleared outside the screening (#2440): a matching one settles the brand-name item. */\n readonly brandNameClearances?: ApplicationBrandNameClearances;\n /** The providers' compliance choices: where each data-serving provider is placed (#2294). */\n readonly providerComplianceChoices?: ApplicationProviderComplianceChoices;\n };\n /**\n * What the data residency items are derived from (#2294). `undefined` when the provider profiles or the dossier could\n * not be read; the items are then UNKNOWN, never absent.\n */\n readonly providerDataResidency?: {\n /** The places the foundation interview answered (`data-residency-territories`); absent when unanswered or `none`. */\n readonly answeredTerritories?: readonly string[];\n /** Every provider a runtime serving the application's data declares (`dataServingProviderRefs`). */\n readonly providerRefs: readonly string[];\n readonly profilesByProviderRef: Readonly<Record<string, ProviderComplianceProfile | undefined>>;\n };\n /** Whether {@link SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH} exists in the application. */\n readonly subjectDataRecipientsModulePresent: boolean;\n /** Whether {@link LEGAL_NOTICE_GENERATED_RELATIVE_PATH} exists in the application. */\n readonly legalNoticeModulePresent: boolean;\n /** The governed-document questions waiting on the person. `undefined` when the queue could not be read. */\n readonly governanceQuestions?: readonly LaunchBlockerGovernanceQuestion[];\n /** The recorded releases (`documentReleaseSet`). `undefined` when the specifications package could not be read. */\n readonly documentReleases?: readonly GovernedDocumentRelease[];\n /** Whether {@link GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH} exists in the application. */\n readonly documentReleasesModulePresent: boolean;\n /**\n * The landed families the brand name's standing is derived from, RAW (each is parsed here, as the risk signal\n * parses them). `undefined` when the specifications package could not be read.\n */\n readonly brandNaming?: {\n readonly brand: unknown;\n readonly screening: unknown;\n readonly market: unknown;\n readonly creatorInputs: unknown;\n };\n /**\n * The landed compliance programme, RAW (parsed here). `undefined` when the specifications package could not be read;\n * `{ program: undefined }` when no programme has landed, which is not a launch item (producing one is the run's work).\n */\n readonly assuranceProgram?: {\n readonly program: unknown;\n };\n /**\n * What each authored environment declares about its agents' classifier-backed guardrails (#2292), one entry per\n * environment whose infra config loaded. `undefined` when the environments could not be read: the item is then UNKNOWN.\n */\n readonly environmentAgentGuardrails?: readonly {\n /** The environment's name, its `infrastructure/<name>/` directory. */\n readonly environment: string;\n /** Whether it is a local environment, which no real user reaches. */\n readonly local: boolean;\n /** Its `agentContentGuardrails`, absent when it authors none. */\n readonly declaration?: EnvironmentAgentContentGuardrails;\n /** The file it is authored in. */\n readonly declaredIn: string;\n }[];\n /** Why each unreadable input could not be read, for the report. */\n readonly unreadableReasons?: Partial<Record<LaunchBlockerSource, string>>;\n}\n\nconst CONFIG_FILE = \"wildo.saas.config.ts\";\nconst BACKEND_CONFIG_FILE = \"backend-api/src/saas-config.backend.ts\";\n\n/**\n * What each identity part is, in a reader's words. TOTAL over the enum, so a part added to the identity\n * is a compile error here until the list can name it.\n */\nconst IDENTITY_PART_DESCRIPTION: Readonly<Record<OperatorComplianceIdentityPart, string>> = {\n [OperatorComplianceIdentityPart.LEGAL_ENTITY_NAME]: \"the legal entity that operates the service\",\n [OperatorComplianceIdentityPart.REGISTERED_ADDRESS]: \"the operator's registered address\",\n [OperatorComplianceIdentityPart.PRIVACY_CONTACT]: \"how a data subject reaches the operator about privacy\",\n [OperatorComplianceIdentityPart.ROLE_ALLOCATIONS]: \"the operator's role (controller or processor) per population of data\",\n [OperatorComplianceIdentityPart.LAWFUL_BASES]: \"the lawful basis relied on for each processing purpose\",\n [OperatorComplianceIdentityPart.SUBJECT_REQUEST_IDENTITY_VERIFICATION]: \"how a person exercising a data-subject right is verified\",\n [OperatorComplianceIdentityPart.HOSTING_REGIONS]: \"where the operator's own infrastructure hosts the data\",\n};\n\n/**\n * What each ALWAYS-owed legal-notice particular is, in a reader's words. Only the ones that are not also identity parts\n * (those are already listed under their identity-part item) need a description here.\n */\nconst LEGAL_NOTICE_PARTICULAR_DESCRIPTION: Readonly<Partial<Record<LegalNoticeParticular, string>>> = {\n [LegalNoticeParticular.GENERAL_CONTACT]: \"how anyone reaches the operator rapidly and directly (an e-mail address, and a phone number if you have one)\",\n};\n\n/** The identity parts' values, so a legal-notice particular that IS an identity part is not listed twice. */\nconst IDENTITY_PART_VALUES: ReadonlySet<string> = new Set(Object.values(OperatorComplianceIdentityPart));\n\n/**\n * The launch list, derived. Pure: the caller reads every input fresh, so a settled item is gone on the\n * next call. Order follows how a creator settles them — who you are, the questions waiting on you, then\n * what the configuration and the running application still lack.\n */\nexport function deriveLaunchBlockers(inputs: LaunchBlockerInputs): LaunchBlockerList {\n const blockers: LaunchBlocker[] = [];\n const unevaluatedSources: LaunchBlockerUnevaluatedSource[] = [];\n const unreadable = (source: LaunchBlockerSource): void => {\n unevaluatedSources.push({ source, reason: inputs.unreadableReasons?.[source] ?? \"it could not be read\" });\n };\n\n if (inputs.applicationConfig === undefined) {\n unreadable(LaunchBlockerSource.APPLICATION_CONFIG);\n } else {\n for (const part of outstandingOperatorComplianceIdentityParts(inputs.applicationConfig.operatorComplianceIdentity)) {\n blockers.push({\n ref: `${LaunchBlockerKind.OPERATOR_IDENTITY_PART_UNDECLARED}:${part}`,\n kind: LaunchBlockerKind.OPERATOR_IDENTITY_PART_UNDECLARED,\n statement: `Not yet decided: ${IDENTITY_PART_DESCRIPTION[part]}.`,\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.${part}`,\n settledBy: `Declare \\`operatorComplianceIdentity.${part}\\` in ${CONFIG_FILE}. Never a placeholder: a produced notice quotes it as fact.`,\n });\n }\n blockers.push(...legalNoticeLaunchBlockers(inputs.applicationConfig.operatorComplianceIdentity, inputs.legalNoticeModulePresent));\n }\n\n if (inputs.governanceQuestions === undefined) {\n unreadable(LaunchBlockerSource.QUESTION_QUEUE);\n } else {\n for (const question of inputs.governanceQuestions) {\n blockers.push({\n ref: `${LaunchBlockerKind.GOVERNANCE_QUESTION_UNANSWERED}:${question.questionId}`,\n kind: LaunchBlockerKind.GOVERNANCE_QUESTION_UNANSWERED,\n statement: `Unanswered governance question${question.definitionRef === null ? \"\" : ` for ${question.definitionRef}`}: ${question.prompt}`,\n decidedIn: \"the workbench's governance panel (a governed document's facts are landed as one sitting that names who decided)\",\n settledBy: `Answer it in the workbench's governance panel; \\`wildo creation questions\\` lists it as ${question.questionId}.`,\n });\n }\n }\n\n if (inputs.applicationConfig !== undefined) {\n for (const dataClass of undeclaredRetentionClasses(inputs.applicationConfig.dataRetention)) {\n blockers.push({\n ref: `${LaunchBlockerKind.RETENTION_CLASS_UNDECLARED}:${dataClass}`,\n kind: LaunchBlockerKind.RETENTION_CLASS_UNDECLARED,\n statement: `No retention period is declared for ${dataClass}; a notice can only say it is not established.`,\n decidedIn: `${CONFIG_FILE} → dataRetention.${dataClass}`,\n settledBy: `Declare \\`dataRetention.${dataClass}\\` (retentionDays and rationale) in ${CONFIG_FILE}, then run \\`wildo config data-retention\\`.`,\n });\n }\n }\n\n /*\n * The same predicate as the `subject-data-recipients` validate domain's warning: the module is absent.\n * A STALE or uncarried module is that domain's FAILURE and is reported there; this list names the\n * undecided state, which is the one a creation run leaves behind.\n */\n if (!inputs.subjectDataRecipientsModulePresent) {\n blockers.push({\n ref: LaunchBlockerKind.SUBJECT_DATA_RECIPIENTS_UNDECLARED,\n kind: LaunchBlockerKind.SUBJECT_DATA_RECIPIENTS_UNDECLARED,\n statement: \"Subject-data recipients are not declared, so every subject export says so and every erasure is marked unmeasured.\",\n decidedIn: `${SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH}, composed as compliance.subjectDataRecipients in ${BACKEND_CONFIG_FILE}`,\n settledBy: `Run \\`wildo config subject-data-recipients\\` and compose \\`compliance.subjectDataRecipients\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n }\n\n /*\n * Sign-up acceptance. The engine records it: a release whose `allowedInteractionKinds` include\n * CONTRACT_ACCEPTED is offered at registration and accepting it writes a per-version acceptance row\n * and an audit event. So the open decision is never \"build a mechanism\" — it is \"no release offers it\",\n * \"the release never reached the running application\", or \"only an unapproved release offers it\".\n */\n if (inputs.documentReleases === undefined) {\n unreadable(LaunchBlockerSource.DOCUMENT_RELEASES);\n } else {\n /*\n * In force NOW and allowing CONTRACT_ACCEPTED, as the registration control selects. Its third condition, the approval\n * gate (`requiresApprovedGovernedDocuments`), lives in the backend configuration this list does not read, so it is\n * not assumed either way: an offer resting only on unapproved releases is marked on its own below.\n */\n // Ended by their replacements first (#3127): a replaced release is no longer offered by the running application.\n const offering = withReplacementEnds(inputs.documentReleases).filter((release) =>\n governedDocumentReleaseIsInForce(release, inputs.computedAt)\n && release.allowedInteractionKinds.includes(GovernedDocumentInteractionKind.CONTRACT_ACCEPTED));\n if (offering.length === 0) {\n blockers.push({\n ref: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_OFFERED,\n kind: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_OFFERED,\n statement: \"How the terms and the privacy notice are accepted at sign-up is undecided: no recorded release in force allows CONTRACT_ACCEPTED, so registration records no acceptance.\",\n decidedIn: `the specifications package's documentReleaseCompositions, carried as compliance.governedDocumentReleases in ${BACKEND_CONFIG_FILE} (how acceptance is collected: compliance.governedDocumentAcceptanceMode)`,\n settledBy: `Compose a release of the terms or privacy notice that allows CONTRACT_ACCEPTED in documentReleaseCompositions, run \\`wildo config document-releases\\`, and compose \\`compliance.governedDocumentReleases\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n } else {\n if (!inputs.documentReleasesModulePresent) {\n blockers.push({\n ref: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_CARRIED,\n kind: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_NOT_CARRIED,\n statement: `${offering.length} recorded release(s) allow acceptance at sign-up, but ${GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH} does not exist, so the running application offers none.`,\n decidedIn: `${GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH}, composed as compliance.governedDocumentReleases in ${BACKEND_CONFIG_FILE}`,\n settledBy: `Run \\`wildo config document-releases\\` and compose \\`compliance.governedDocumentReleases\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n }\n if (!offering.some((release) => release.approvalState === GovernedDocumentReleaseApprovalState.APPROVED)) {\n blockers.push({\n ref: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_UNAPPROVED,\n kind: LaunchBlockerKind.SIGN_UP_ACCEPTANCE_UNAPPROVED,\n statement: `The ${offering.length} release(s) offered for acceptance at sign-up are unapproved: registration offers them only while compliance.governedDocumentApprovalGate is off, and offers nothing once it is armed.`,\n decidedIn: \"the release's approvalDecisions in documentReleaseCompositions; compliance.governedDocumentApprovalGate decides whether an unapproved release is offered\",\n settledBy: \"Compose an approved release (approvalDecisions on its documentReleaseCompositions entry, with the next releaseVersion where one is already recorded), then run `wildo config document-releases`.\",\n });\n }\n }\n }\n\n if (inputs.brandNaming === undefined) {\n unreadable(LaunchBlockerSource.BRAND_NAMING);\n } else {\n /*\n * An unreadable configuration reads no clearance, so the item may then be listed although a record settles it.\n * That is the safe direction: the configuration is already reported unevaluated above, and listing an open item\n * is recoverable where hiding one is not.\n */\n const outcome = brandNameLaunchBlocker(inputs.brandNaming, inputs.applicationConfig?.brandNameClearances);\n if (typeof outcome === \"string\") {\n // A brand that landed and does not parse is UNREAD, never \"nothing open\" — the invariant above, applied here too.\n unevaluatedSources.push({ source: LaunchBlockerSource.BRAND_NAMING, reason: outcome });\n } else if (outcome !== undefined) {\n blockers.push(outcome);\n }\n }\n\n if (inputs.assuranceProgram === undefined) {\n unreadable(LaunchBlockerSource.ASSURANCE_PROGRAM);\n } else {\n const standing = readAssuranceProgramObligationStanding(inputs.assuranceProgram.program, inputs.computedAt);\n switch (standing.outcome) {\n case AssuranceProgramObligationStandingOutcome.NO_PROGRAM:\n break;\n case AssuranceProgramObligationStandingOutcome.UNREADABLE:\n case AssuranceProgramObligationStandingOutcome.NO_REGISTER:\n // A programme that landed and cannot be read is UNKNOWN, never \"no obligation open\".\n unevaluatedSources.push({ source: LaunchBlockerSource.ASSURANCE_PROGRAM, reason: standing.reason });\n break;\n case AssuranceProgramObligationStandingOutcome.EVALUATED:\n blockers.push(...standing.unmet.map((obligation) => unmetObligationLaunchBlocker(obligation)));\n break;\n }\n }\n\n if (inputs.applicationConfig !== undefined) {\n if (inputs.providerDataResidency === undefined) unreadable(LaunchBlockerSource.PROVIDER_DATA_RESIDENCY);\n else blockers.push(...dataResidencyLaunchBlockers(inputs.applicationConfig, inputs.providerDataResidency));\n }\n\n if (inputs.environmentAgentGuardrails === undefined) {\n unreadable(LaunchBlockerSource.ENVIRONMENT_CONFIGS);\n } else {\n for (const entry of inputs.environmentAgentGuardrails) {\n if (entry.local || entry.declaration?.withoutClassifier !== AgentContentGuardrailsWithoutClassifier.RUN_UNGUARDED) continue;\n blockers.push({\n ref: `${LaunchBlockerKind.AGENT_GUARDRAILS_RUN_UNGUARDED}:${entry.environment}`,\n kind: LaunchBlockerKind.AGENT_GUARDRAILS_RUN_UNGUARDED,\n statement: `In ${entry.environment}, agents that declare prompt-injection screening or output moderation run without each guardrail no classifier offers there, as the environment declares (\"${entry.declaration.reason}\").`,\n decidedIn: `${entry.declaredIn} → agentContentGuardrails`,\n settledBy: `Select a provider for AI_CONTENT_SAFETY in ${entry.environment} (its providerSelection), or remove \\`agentContentGuardrails\\` from ${entry.declaredIn} so its guarded agents refuse instead.`,\n });\n }\n }\n\n return { computedAt: inputs.computedAt, blockers, unevaluatedSources };\n}\n\n/**\n * The data residency items (#2294). The residency is the DECLARED one when the configuration carries it, else the one\n * the interview answered: an answered residency is a decision the creator took, and the providers it leaves unplaced are\n * exactly what stops the foundation writing it. Each provider is placed by {@link placeProvidersInsideDataResidency}, so\n * this list and `wildo config sync`'s refusal name the same providers.\n *\n * A provider whose region is DERIVABLE is listed only under a declared residency (the synchronisation refuses it until\n * its choice is written); under an answered one the foundation writes it itself, so it is not a decision anyone owes.\n */\nfunction dataResidencyLaunchBlockers(\n applicationConfig: NonNullable<LaunchBlockerInputs[\"applicationConfig\"]>,\n input: NonNullable<LaunchBlockerInputs[\"providerDataResidency\"]>,\n): LaunchBlocker[] {\n const declared = applicationConfig.operatorComplianceIdentity?.dataResidency;\n const answered = input.answeredTerritories === undefined || input.answeredTerritories.length === 0\n ? undefined\n : ({ territories: [...input.answeredTerritories] } satisfies ApplicationDataResidency);\n const residency = declared ?? answered;\n if (residency === undefined) return [];\n const blockers: LaunchBlocker[] = [];\n if (declared === undefined) {\n blockers.push({\n ref: LaunchBlockerKind.DATA_RESIDENCY_NOT_DECLARED,\n kind: LaunchBlockerKind.DATA_RESIDENCY_NOT_DECLARED,\n statement: `The data residency answered in the interview (${residency.territories.join(\", \")}) is not declared in the configuration, so nothing holds the providers to it.`,\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.dataResidency, from the foundation interview's data-residency-territories answer`,\n settledBy: \"Place every provider listed below, then run the foundation again (`wildo creation run bottom_up.foundation`); it writes the residency once nothing is left unplaced.\",\n });\n }\n for (const placement of placeProvidersInsideDataResidency({\n residency,\n choices: applicationConfig.providerComplianceChoices,\n profilesByProviderRef: input.profilesByProviderRef,\n providerRefs: input.providerRefs,\n })) {\n if (placement.outcome === ProviderDataResidencyPlacementOutcome.DERIVED && declared === undefined) continue;\n blockers.push({\n ref: `${LaunchBlockerKind.DATA_RESIDENCY_PROVIDER_UNPLACED}:${placement.providerRef}`,\n kind: LaunchBlockerKind.DATA_RESIDENCY_PROVIDER_UNPLACED,\n statement: dataResidencyPlacementStatement(placement, residency),\n decidedIn: `${CONFIG_FILE} → providerComplianceChoices.${placement.providerRef}`,\n settledBy: placement.outcome === ProviderDataResidencyPlacementOutcome.DERIVED\n ? `Declare \\`providerComplianceChoices.${placement.providerRef}\\` as VENDOR_HOSTED in \"${placement.derivedChoice?.processingRegion}\", or run the foundation again, which writes it.`\n : placement.regionsInside.length > 0\n ? `Choose \\`providerComplianceChoices.${placement.providerRef}\\` (one of: ${placement.regionsInside.join(\", \")}), replace the provider, or widen the residency.`\n // #3876: no region processes inside, but some keep data at rest inside the declared at-rest list (the weaker promise).\n : placement.regionsInsideAtRest.length > 0\n ? `Choose \\`providerComplianceChoices.${placement.providerRef}\\` (one of: ${placement.regionsInsideAtRest.join(\", \")}, each storing at rest inside the at-rest residency), replace the provider, or widen the residency.`\n : \"Replace the provider with one that processes inside the residency, run it self-hosted if it is offered that way, or widen the residency.\",\n });\n }\n return blockers;\n}\n\nconst COMPLIANCE_PROGRAM_FILE = \"specifications/src/compliance/index.ts\";\n\n/** One reason, in a reader's words. TOTAL over the enum: a reason added to the vocabulary is a compile error here. */\nconst OBLIGATION_OPEN_REASON_WORDS: Readonly<Record<AssuranceProgramObligationOpenReason, (detail: AssuranceProgramObligationOpenReasonDetail) => string>> = {\n [AssuranceProgramObligationOpenReason.APPLICABILITY_UNDETERMINED]: () => \"whether it applies is undetermined\",\n [AssuranceProgramObligationOpenReason.COVERAGE_NOT_APPROVED]: () => \"no approved coverage decision covers it\",\n [AssuranceProgramObligationOpenReason.GAP_OPEN]: (detail) => `gap ${detail.findingKey} is ${detail.disposition}`,\n [AssuranceProgramObligationOpenReason.ACCEPTANCE_EXPIRED]: (detail) => `the ${detail.disposition} acceptance of ${detail.findingKey} expired on ${detail.expiresOn}`,\n [AssuranceProgramObligationOpenReason.FINDING_UNRECORDED]: (detail) => `it cites ${detail.findingKey}, which gapsAndExceptions does not record`,\n};\n\n/** What settles each reason. Also TOTAL. */\nconst OBLIGATION_OPEN_REASON_REMEDY: Readonly<Record<AssuranceProgramObligationOpenReason, string>> = {\n [AssuranceProgramObligationOpenReason.APPLICABILITY_UNDETERMINED]: \"record its applicability as APPLICABLE or NOT_APPLICABLE (with evidence)\",\n [AssuranceProgramObligationOpenReason.COVERAGE_NOT_APPROVED]: \"record an APPROVED coverage decision over its exact source requirements in obligationCoverageDecisions\",\n [AssuranceProgramObligationOpenReason.GAP_OPEN]: \"close the gap in the product, then record the finding RESOLVED (or RISK_ACCEPTED, with an authority decision and an expiry)\",\n [AssuranceProgramObligationOpenReason.ACCEPTANCE_EXPIRED]: \"renew the acceptance with a new authority decision and expiry, or resolve the gap\",\n [AssuranceProgramObligationOpenReason.FINDING_UNRECORDED]: \"record the cited finding in gapsAndExceptions, or remove the reference\",\n};\n\n/**\n * The launch item for one unmet HARD obligation (#55). Settled by the programme, which is a committed file: re-run\n * `top_down.compliance-conception` or edit it, and commit — the item is gone on the next read.\n */\nfunction unmetObligationLaunchBlocker(obligation: AssuranceProgramUnmetHardObligation): LaunchBlocker {\n const key = `${obligation.obligationRef}@${obligation.obligationVersion}`;\n const remedies = [...new Set(obligation.reasons.map((detail) => OBLIGATION_OPEN_REASON_REMEDY[detail.reason]))];\n const applies = obligation.applicabilityStatus === AssuranceProgramObligationApplicabilityStatus.APPLICABLE ? \"applies\" : \"may apply\";\n return {\n ref: `${LaunchBlockerKind.ASSURANCE_OBLIGATION_UNMET}:${key}`,\n kind: LaunchBlockerKind.ASSURANCE_OBLIGATION_UNMET,\n statement: `The HARD obligation ${key} (objective ${obligation.objectiveRef}) ${applies} and is not met: ${obligation.reasons.map((detail) => OBLIGATION_OPEN_REASON_WORDS[detail.reason](detail)).join(\"; \")}.`,\n decidedIn: `${COMPLIANCE_PROGRAM_FILE} → obligationRegister entry ${key} (the compliance programme)`,\n settledBy: `In the programme: ${remedies.join(\"; \")}. Re-run top_down.compliance-conception or edit ${COMPLIANCE_PROGRAM_FILE}, and commit.`,\n };\n}\n\n/**\n * The legal notice's launch items (#2588): an undeclared establishment (whether a notice is owed is then unknown), an\n * always-owed particular that is undeclared, and an owed notice the running application does not carry.\n */\nfunction legalNoticeLaunchBlockers(\n identity: ApplicationOperatorComplianceIdentity | undefined,\n modulePresent: boolean,\n): LaunchBlocker[] {\n const owed = legalNoticeOwed(identity);\n if (owed === undefined) {\n return [{\n ref: LaunchBlockerKind.LEGAL_NOTICE_ESTABLISHMENT_UNDECLARED,\n kind: LaunchBlockerKind.LEGAL_NOTICE_ESTABLISHMENT_UNDECLARED,\n statement: \"Where the operator is established is not declared, so whether the service owes a legal notice (imprint) is unknown; an operator established in the EU, the EEA, the UK or Switzerland owes one.\",\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.establishmentJurisdiction`,\n settledBy: `Declare \\`operatorComplianceIdentity.establishmentJurisdiction\\` (a jurisdiction code, such as 'fr') in ${CONFIG_FILE}, then run \\`wildo config legal-notice\\`.`,\n }];\n }\n if (!owed) return [];\n const items: LaunchBlocker[] = outstandingLegalNoticeParticulars(identity).owed\n .filter((particular) => !IDENTITY_PART_VALUES.has(particular))\n .map((particular) => ({\n ref: `${LaunchBlockerKind.LEGAL_NOTICE_PARTICULAR_UNDECLARED}:${particular}`,\n kind: LaunchBlockerKind.LEGAL_NOTICE_PARTICULAR_UNDECLARED,\n statement: `The legal notice marks this as not yet declared: ${LEGAL_NOTICE_PARTICULAR_DESCRIPTION[particular] ?? particular}.`,\n decidedIn: `${CONFIG_FILE} → operatorComplianceIdentity.${particular}`,\n settledBy: `Declare \\`operatorComplianceIdentity.${particular}\\` in ${CONFIG_FILE}, then run \\`wildo config legal-notice\\`.`,\n }));\n if (!modulePresent) {\n items.push({\n ref: LaunchBlockerKind.LEGAL_NOTICE_NOT_CARRIED,\n kind: LaunchBlockerKind.LEGAL_NOTICE_NOT_CARRIED,\n statement: `A legal notice is owed, but ${LEGAL_NOTICE_GENERATED_RELATIVE_PATH} does not exist, so the running application's /legal-notice page says none is required.`,\n decidedIn: `${LEGAL_NOTICE_GENERATED_RELATIVE_PATH}, composed as compliance.legalNotice in ${BACKEND_CONFIG_FILE}`,\n settledBy: `Run \\`wildo config legal-notice\\` and compose \\`compliance.legalNotice\\` in ${BACKEND_CONFIG_FILE}.`,\n });\n }\n return items;\n}\n\nconst SCREENING_FILE = \"specifications/src/brand-name-screening/index.ts\";\nconst BRAND_FILE = \"specifications/src/brand/index.ts\";\n\n/**\n * The brand name's launch item (#2338), or none.\n *\n * None when the line carries no brand, when no brand has landed yet (choosing a name is the definition's work,\n * which the coherence report owns), and when the name is CLEARED — screened in every declared register,\n * jurisdiction and class with no conflict. Otherwise one item naming what is open: the products already using the\n * name, the marks found, and the registers and jurisdictions nobody read. Settled by a screening that reads every\n * register with no conflict; whatever the screening says, it is not a legal clearance, which the item says too.\n *\n * Also none when `brandNameClearances` records the chosen name cleared OUTSIDE the screening (#2440) — an IP\n * professional's opinion, a filed application or a registered mark. That is the only way a name KEPT despite a\n * conflict can leave the list, since a re-screen still finds the conflicting mark. The record matches by the\n * screening's normalized comparison, so renaming the brand reopens the item and a record for another name settles\n * nothing. A brand that does not parse is still reported unevaluated: a record cannot match a name nobody can read.\n *\n * A brand that LANDED and does not parse returns the reason as a string: the caller reports the source as\n * unevaluated, because an unparseable brand read as \"no brand yet\" would be the list failing open.\n */\nfunction brandNameLaunchBlocker(\n naming: NonNullable<LaunchBlockerInputs[\"brandNaming\"]>,\n clearances: ApplicationBrandNameClearances | undefined,\n): LaunchBlocker | string | undefined {\n const dossier = ApplicationCreatorInputsSchema.safeParse(naming.creatorInputs);\n if (resolveNotApplicableFamilies(dossier.success ? dossier.data : undefined).has(ApplicationSpecificationFamily.BRAND_BRIEF)) return undefined;\n if (naming.brand === undefined) return undefined;\n const brand = BrandSnapshotSchema.safeParse(naming.brand);\n if (!brand.success) return `the landed brand (${BRAND_FILE}) does not match its schema, so its name's standing cannot be read`;\n const parsedScreening = BrandNameScreeningSchema.safeParse(naming.screening);\n const screening = parsedScreening.success ? parsedScreening.data : undefined;\n /* A screening that landed and does not parse is not \"no screening\": the item says which it is. */\n const screeningUnreadable = naming.screening !== undefined && !parsedScreening.success;\n const alternatives = (naming.market as { alternatives?: Parameters<typeof marketCompetitorNames>[0] } | undefined)?.alternatives;\n const competitorNames = marketCompetitorNames(alternatives);\n const brandName = brand.data.name.brandName;\n const brandKey = normalizeBrandNameForComparison(brandName);\n if (clearances?.some((clearance) => normalizeBrandNameForComparison(clearance.brandName) === brandKey)) return undefined;\n const { standing, candidate } = deriveBrandNameChoiceStanding({\n brandName,\n screening,\n competitorNames,\n chosenBrandNameAnswer: readCreatorBrandNameDecisions(dossier.success ? dossier.data : undefined).chosenBrandNameAnswer,\n });\n if (standing === BrandNameChoiceStanding.CLEARED) return undefined;\n\n const parts: string[] = [];\n if (screeningUnreadable) {\n parts.push(`the landed screening (${SCREENING_FILE}) does not match its schema, so nothing it records can be read`);\n } else if (screening === undefined || candidate === undefined) {\n parts.push(\"no trademark screening covers it\");\n } else {\n const marks = [...new Set(candidate.trademarkQueries.flatMap((query) => query.conflictingMarks.map((mark) => mark.mark)))];\n if (marks.length > 0) parts.push(`live trademark(s) found: ${marks.join(\", \")}`);\n const collisions = brandNameCandidateCollisions(candidate, competitorNames);\n if (collisions.length > 0) {\n parts.push(`already used by: ${collisions.map((collision) => (collision.sourceUrl ? `${collision.name} (${collision.sourceUrl})` : collision.name)).join(\"; \")}`);\n }\n // #3484: a screening with no target jurisdiction cleared nothing, whatever it read.\n if (brandNameScreeningDeclaresNoTarget(screening)) parts.push(\"its target jurisdictions are not decided yet\");\n const coverage = deriveBrandNameScreeningCoverage(screening, candidate);\n if (coverage.level === BrandNameScreeningCoverageLevel.NONE) {\n parts.push(\"no trademark register could be read for it\");\n } else if (coverage.unreadJurisdictions.length > 0) {\n parts.push(`not read in ${coverage.unreadJurisdictions.join(\", \")}`);\n }\n const checks = deriveBrandNameManualChecks(screening).filter((check) => check.candidateRef === candidate.ref).length;\n if (checks > 0) parts.push(`${checks} search(es) listed as manual checks in the screening`);\n }\n const classes = screening?.niceClasses.map((niceClass) => niceClass.classNumber).join(\", \");\n /* Name the filing the screening's own jurisdictions call for, never an EU mark for a screening with no EU target. */\n const filing = screening?.jurisdictions.some((jurisdiction) => jurisdiction.code === \"EU\")\n ? `the EU trade mark${classes ? ` in Nice classes ${classes}` : \"\"}`\n : `the mark in each target jurisdiction${classes ? ` (Nice classes ${classes})` : \"\"}`;\n return {\n ref: `${LaunchBlockerKind.BRAND_NAME_NOT_CLEARED}:${brandKey}`,\n kind: LaunchBlockerKind.BRAND_NAME_NOT_CLEARED,\n statement: `The brand name \"${brandName}\" is not cleared: ${parts.join(\"; \") || \"its screening is incomplete\"}.`,\n decidedIn: `${SCREENING_FILE} (the screening), the brand name chosen in ${BRAND_FILE}, or a clearance recorded in ${CONFIG_FILE} → brandNameClearances`,\n settledBy:\n \"Run the screening's manual checks, then re-run top_down.brand-naming so the screening reads every register with no conflict \"\n + \"(or choose another name in the brand identity's interview). A screening is not a legal clearance: have an IP professional \"\n + `run a clearance search and file ${filing} before public launch. Once a clearance opinion, a filed application or a registered `\n + `mark covers \"${brandName}\", record it in \\`brandNameClearances\\` in ${CONFIG_FILE} (the name, the basis, the date and its `\n + \"reference); that settles this item, which a re-screen cannot do for a name kept despite a conflict.\",\n };\n}\n"]}
@@ -203,6 +203,7 @@ export type ProcessorDataProcessingAgreement = z.infer<typeof ProcessorDataProce
203
203
  export declare const ApplicationProcessorDeclarationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
204
204
  legalEntityName: z.ZodString;
205
205
  processingRegions: z.ZodArray<z.ZodString>;
206
+ storedAtRestIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
206
207
  subprocessors: z.ZodArray<z.ZodObject<{
207
208
  name: z.ZodString;
208
209
  processingRegions: z.ZodArray<z.ZodString>;
@@ -231,6 +232,7 @@ export declare const ApplicationProcessorDeclarationSchema: z.ZodDiscriminatedUn
231
232
  }, z.core.$strict>, z.ZodObject<{
232
233
  legalEntityName: z.ZodString;
233
234
  processingRegions: z.ZodArray<z.ZodString>;
235
+ storedAtRestIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
234
236
  subprocessors: z.ZodArray<z.ZodObject<{
235
237
  name: z.ZodString;
236
238
  processingRegions: z.ZodArray<z.ZodString>;
@@ -271,6 +273,7 @@ export declare const ApplicationProcessorRegisterSchema: z.ZodObject<{
271
273
  processors: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
272
274
  legalEntityName: z.ZodString;
273
275
  processingRegions: z.ZodArray<z.ZodString>;
276
+ storedAtRestIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
274
277
  subprocessors: z.ZodArray<z.ZodObject<{
275
278
  name: z.ZodString;
276
279
  processingRegions: z.ZodArray<z.ZodString>;
@@ -299,6 +302,7 @@ export declare const ApplicationProcessorRegisterSchema: z.ZodObject<{
299
302
  }, z.core.$strict>, z.ZodObject<{
300
303
  legalEntityName: z.ZodString;
301
304
  processingRegions: z.ZodArray<z.ZodString>;
305
+ storedAtRestIn: z.ZodOptional<z.ZodArray<z.ZodString>>;
302
306
  subprocessors: z.ZodArray<z.ZodObject<{
303
307
  name: z.ZodString;
304
308
  processingRegions: z.ZodArray<z.ZodString>;
@@ -1 +1 @@
1
- {"version":3,"file":"processor-register.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/compliance-documents/processor-register.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,sHAAsH;AACtH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;kBAUtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0BAA0B;IACpC;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C,kHAAkH;I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GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;IAC/C,2FAA2F;IAC3F,QAAQ,CAAC,uBAAuB,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACvE,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAED,wFAAwF;AACxF,MAAM,WAAW,gCAAgC;IAC/C,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAC7D,2DAA2D;IAC3D,QAAQ,CAAC,uBAAuB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpD,4FAA4F;IAC5F,QAAQ,CAAC,uBAAuB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpD,iDAAiD;IACjD,QAAQ,CAAC,6BAA6B,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,4BAA4B,GAAG,SAAS,GAAG,gCAAgC,CAe/H"}
1
+ {"version":3,"file":"processor-register.schemas.d.ts","sourceRoot":"","sources":["../../../../src/_core/compliance-documents/processor-register.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAGL,KAAK,yBAAyB,EAC/B,MAAM,uBAAuB,CAAC;AAE/B,sHAAsH;AACtH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B;;;kBAUtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;;;;;;;;;;;;;;GAeG;AACH,oBAAY,0BAA0B;IACpC;;;OAGG;IACH,mBAAmB,wBAAwB;IAC3C,kHAAkH;IAClH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,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,SAAS,EAAE,0BAA0B,CAAC;IAC/C,2FAA2F;IAC3F,QAAQ,CAAC,uBAAuB,EAAE,6BAA6B,GAAG,IAAI,CAAC;IACvE,QAAQ,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;CACzC;AAED,wFAAwF;AACxF,MAAM,WAAW,gCAAgC;IAC/C,2CAA2C;IAC3C,QAAQ,CAAC,OAAO,EAAE,SAAS,+BAA+B,EAAE,CAAC;IAC7D,2DAA2D;IAC3D,QAAQ,CAAC,uBAAuB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpD,4FAA4F;IAC5F,QAAQ,CAAC,uBAAuB,EAAE,SAAS,MAAM,EAAE,CAAC;IACpD,iDAAiD;IACjD,QAAQ,CAAC,6BAA6B,EAAE,SAAS,MAAM,EAAE,CAAC;CAC3D;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,4BAA4B,GAAG,SAAS,GAAG,gCAAgC,CAe/H"}
@@ -257,6 +257,16 @@ const ProcessorIdentityFieldsSchema = z.object({
257
257
  * `Ireland`, `United States`), and a fixed list would be wrong for the next vendor.
258
258
  */
259
259
  processingRegions: z.array(z.string().trim().min(1)).min(1),
260
+ /**
261
+ * Where this processor keeps the data AT REST, when that differs from where it processes it (#3921): a vendor admitted
262
+ * on the application's opt-in at-rest residency stores in one place and processes in another, and a register that
263
+ * named only the processing region could not say the half a reader of the weaker promise needs.
264
+ *
265
+ * In the operator's words, like {@link processingRegions}. The framework SUGGESTS it from the vendor profile's storage
266
+ * map for the chosen region, and the operator adopts it by committing it here, like every other vendor fact (#1744).
267
+ * Absent means not stated; the international-transfers fact names every `inside-at-rest` provider whose entry lacks it.
268
+ */
269
+ storedAtRestIn: z.array(z.string().trim().min(1)).min(1).optional(),
260
270
  /**
261
271
  * The processor's own subprocessors.
262
272
  *