@wildo-ai/saas-specifications 1.1.7 → 1.1.9
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.
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts +9 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.d.ts.map +1 -1
- package/dist/esm/_core/application-specification-family-identity.schemas.js +9 -0
- package/dist/esm/_core/application-specification-family-identity.schemas.js.map +1 -1
- package/dist/esm/_core/brand/brand-name-choice.d.ts +136 -0
- package/dist/esm/_core/brand/brand-name-choice.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-choice.js +193 -0
- package/dist/esm/_core/brand/brand-name-choice.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts +108 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js +59 -0
- package/dist/esm/_core/brand/brand-name-screening-generation.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts +51 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.js +157 -0
- package/dist/esm/_core/brand/brand-name-screening-validation.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts +120 -0
- package/dist/esm/_core/brand/brand-name-screening-view.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening-view.js +47 -0
- package/dist/esm/_core/brand/brand-name-screening-view.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.d.ts +3 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.js +42 -0
- package/dist/esm/_core/brand/brand-name-screening.family-aspects.js.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts +310 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.d.ts.map +1 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.js +272 -0
- package/dist/esm/_core/brand/brand-name-screening.schemas.js.map +1 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts +23 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/brand/brand-snapshot.schemas.js +32 -0
- package/dist/esm/_core/brand/brand-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts +10 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts +57 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js +89 -0
- package/dist/esm/_core/build-plan/build-plan-task-graph-validation.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts +79 -19
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js +61 -11
- package/dist/esm/_core/build-plan/build-plan-task-graph.schemas.js.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js +18 -2
- package/dist/esm/_core/build-plan/build-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts +28 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js +53 -5
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-generation.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts +24 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js +64 -4
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot-validation.js.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts +59 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js +64 -0
- package/dist/esm/_core/business-model-lite/business-model-lite-snapshot.schemas.js.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts +3 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js +16 -0
- package/dist/esm/_core/business-model-lite/pricing-plan.schemas.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts +7 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition-validation.js +34 -28
- package/dist/esm/_core/capability-composition/capability-composition-validation.js.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts +75 -4
- package/dist/esm/_core/capability-composition/capability-composition.schemas.d.ts.map +1 -1
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js +62 -4
- package/dist/esm/_core/capability-composition/capability-composition.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.d.ts.map +1 -1
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js +7 -0
- package/dist/esm/_core/compliance-documents/computed-document-facts.schemas.js.map +1 -1
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts +153 -0
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.d.ts.map +1 -0
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js +241 -0
- package/dist/esm/_core/compliance-documents/launch-blockers.schemas.js.map +1 -0
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts +8 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js +19 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set-validation.js.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts +61 -3
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.d.ts.map +1 -1
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js +73 -3
- package/dist/esm/_core/domain-plan/domain-plan-output-set.schemas.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.d.ts.map +1 -1
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js +1 -0
- package/dist/esm/_core/experience-plan/experience-plan.schemas.js.map +1 -1
- package/dist/esm/_core/family-aspects.registry.d.ts.map +1 -1
- package/dist/esm/_core/family-aspects.registry.js +2 -0
- package/dist/esm/_core/family-aspects.registry.js.map +1 -1
- package/dist/esm/_core/index.d.ts +6 -0
- package/dist/esm/_core/index.d.ts.map +1 -1
- package/dist/esm/_core/index.js +6 -0
- package/dist/esm/_core/index.js.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.d.ts.map +1 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js +5 -1
- package/dist/esm/_core/integration-plan/integration-plan.family-aspects.js.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.d.ts +7 -0
- package/dist/esm/_core/market/market-icp.schemas.d.ts.map +1 -1
- package/dist/esm/_core/market/market-icp.schemas.js +7 -0
- package/dist/esm/_core/market/market-icp.schemas.js.map +1 -1
- package/dist/esm/_core/market/market-language-coverage.d.ts +62 -0
- package/dist/esm/_core/market/market-language-coverage.d.ts.map +1 -0
- package/dist/esm/_core/market/market-language-coverage.js +48 -0
- package/dist/esm/_core/market/market-language-coverage.js.map +1 -0
- package/dist/esm/_core/market/market-snapshot-validation.js +2 -2
- package/dist/esm/_core/market/market-snapshot-validation.js.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts +63 -2
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js +73 -5
- package/dist/esm/application-creation/application-creator-inputs.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/application-line.application-creation.schemas.js +2 -0
- package/dist/esm/application-creation/application-line.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts +28 -0
- package/dist/esm/application-creation/playbooks.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js +19 -1
- package/dist/esm/application-creation/playbooks.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.d.ts.map +1 -1
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js +1 -0
- package/dist/esm/application-creation/structured-artifact-landing.application-creation.schemas.js.map +1 -1
- package/dist/esm/application-creation.exports.d.ts +7 -0
- package/dist/esm/application-creation.exports.d.ts.map +1 -1
- package/dist/esm/application-creation.exports.js +7 -0
- package/dist/esm/application-creation.exports.js.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts +20 -0
- package/dist/esm/assurance/application-risk-signals.derivations.d.ts.map +1 -1
- package/dist/esm/assurance/application-risk-signals.derivations.js +81 -0
- package/dist/esm/assurance/application-risk-signals.derivations.js.map +1 -1
- package/dist/esm/assurance/governed-document-release.d.ts +9 -0
- package/dist/esm/assurance/governed-document-release.d.ts.map +1 -1
- package/dist/esm/assurance/governed-document-release.js +9 -0
- package/dist/esm/assurance/governed-document-release.js.map +1 -1
- package/dist/esm/companion-exports.d.ts +10 -1
- package/dist/esm/companion-exports.d.ts.map +1 -1
- package/dist/esm/companion-exports.js.map +1 -1
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts +1 -0
- package/dist/esm/engine/infrastructure/resources/job-executions.resource.specification.d.ts.map +1 -1
- package/package.json +8 -8
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts +0 -24
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.d.ts.map +0 -1
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js +0 -24
- package/dist/esm/assurance/__tests__/authority-evaluation-instant.fixture.js.map +0 -1
- package/dist/tsconfig.build.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computed-document-facts.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/computed-document-facts.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,iCAAiC,GAUlC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,0DAA0D,EAC1D,0CAA0C,EAC1C,sCAAsC,EACtC,oBAAoB,EACpB,sBAAsB,GAGvB,MAAM,iGAAiG,CAAC;AACzG,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,kCAAkC,GAEnC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iCAAiC,EAAE,6BAA6B,EAA4B,MAAM,gCAAgC,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAA+B,MAAM,iCAAiC,CAAC;AACtI,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAwFxF;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AI,EAAE,KAAK,EAAE,EAAE,CAC/D,GAAG,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,kBAAkB,EAAE,GAAG,GAAG,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACrH,CAAC;IACF,OAAO,0CAA0C,CAAC,KAAK,CAAC;QACtD,aAAa,EAAE,CAAC;QAChB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,YAAY;KACb,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n complaintRouteUnderRegime,\n dataProtectionRegimeOf,\n OperatorProcessingRole,\n rightsUnderRegime,\n subjectRequestResponderFor,\n DataRetentionClass,\n undeclaredRetentionClasses,\n isKeptUntilErased,\n RETENTION_CLASS_SWEEP_INTERVAL_MS,\n type ApplicationOperatorComplianceIdentity,\n type OperatorLawfulBasis,\n type ApplicationProviderComplianceChoices,\n type RetentionEnforcementEvidence,\n type ApplicationRetentionSchedule,\n type ErasureRetentionMode,\n type ResourceRetentionBinding,\n type ResourceStatutoryRetention,\n type SystemOfRecordPersonalDataOrigin,\n} from \"@wildo-ai/saas-models\";\n\nimport {\n ApplicationAssuranceDocumentFactContributionResolutionKind,\n ApplicationDocumentFactSpecificationSchema,\n COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS,\n ComputedDocumentFact,\n computedDocumentFactOf,\n type ApplicationDerivedDocumentFactDeclaration,\n type ApplicationDocumentFactSpecification,\n} from \"../../application-creation/application-document-fact-specification.application-creation.schemas\";\nimport { AssuranceDocumentFactAuthorityKind } from \"../../assurance.exports\";\nimport {\n processorProcessingRegions,\n ProcessorRegisterEntryKind,\n ProcessorTransferDeterminationKind,\n type ApplicationProcessorRegister,\n} from \"./processor-register.schemas\";\nimport { joinRecipientPopulationToRegister, RecipientPopulationMemberKind, type RecipientPopulation } from \"./recipient-population.schemas\";\nimport { deriveRecipientDisclosures, SystemOfRecordDataFlowKind, type SystemOfRecordDataFlow } from \"./recipient-disclosures.schemas\";\nimport { deriveRetentionEnforcementFacts } from \"./retention-enforcement-facts.schemas\";\n\n/**\n * Computing the {@link ComputedDocumentFact} members, and laying them over the facts a file declares.\n *\n * See the vocabulary's own JSDoc for why these facts are computed at read and never stored. This module\n * is the one place their values are built: the companion calls it where the application's facts are\n * read, and nothing writes its output to disk.\n */\n\n/** The value type a KNOWN derived declaration carries. */\ntype DocumentFactValue = Extract<\n ApplicationDerivedDocumentFactDeclaration,\n { resolutionKind: ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN }\n>[\"value\"];\n\n/** The typed declarations the computed facts are read from. Each is `undefined` when the application declares none. */\nexport interface ApplicationDocumentFactComputationInputs {\n readonly operatorComplianceIdentity: ApplicationOperatorComplianceIdentity | undefined;\n readonly processorRegister: ApplicationProcessorRegister | undefined;\n /**\n * WHO receives personal data, from {@link computeRecipientPopulation} — the same population the evidence\n * collector and the drafting brief read, so the three cannot disagree about who a recipient is (#1707).\n */\n readonly recipientPopulation: RecipientPopulation;\n /**\n * The system-of-record flows every resource declares (#1709), read off the materialized resources. OPTIONAL:\n * `undefined` means they could not be read, and each system-of-record recipient then reports its categories as not\n * derivable rather than as none.\n */\n readonly systemOfRecordFlows?: readonly SystemOfRecordDataFlow[] | undefined;\n /**\n * The `systemsOfRecord.<name>.vendor` of each declared instance (#1745), from {@link systemOfRecordVendorsOf} — what\n * the `system-of-record-sources` fact names beside the instance. OPTIONAL: an instance absent here is stated with no\n * vendor rather than guessed.\n */\n readonly systemOfRecordVendors?: Readonly<Record<string, string>> | undefined;\n /**\n * The `systemsOfRecord.<name>.personalDataOrigin` of each instance that declares one (#1745), from\n * `systemOfRecordPersonalDataOriginsOf` — whether its personal data can have come from publicly accessible sources.\n * An instance absent here has not stated it, and its sources carry no origin, so the notice marks it owed.\n */\n readonly systemOfRecordPersonalDataOrigins?: Readonly<Record<string, SystemOfRecordPersonalDataOrigin>> | undefined;\n /** `providerComplianceChoices`, read for the purposes each recipient links to (#1709). */\n readonly providerComplianceChoices?: ApplicationProviderComplianceChoices | undefined;\n /** `dataRetention` — the period per data class. Partial by design; absent means no schedule was declared. */\n readonly retentionSchedule: ApplicationRetentionSchedule | undefined;\n /**\n * What erasure does to each resource's rows, as the resources declare it. `undefined` when the resources\n * could not be read, which is not the same as \"none declared\" and must answer nothing.\n */\n readonly resourceErasureTreatments: readonly ResourceErasureTreatment[] | undefined;\n /**\n * How long each resource's rows are kept, as the resources declare it (#1613): its retention-class\n * binding, and whether a fixed `.ttl()` deletes its rows instead. OPTIONAL and separate from the\n * erasure treatments on purpose — the two are different axes. `undefined` means the bindings could not\n * be read, and the fact then states no mechanism rather than claiming none exists.\n */\n readonly resourceRetentionBindings?: readonly ResourceRetentionBindingFact[] | undefined;\n /** The `operatingJurisdictions` slugs — where the data comes FROM. `undefined` when none are declared. */\n readonly operatingJurisdictionSlugs: readonly string[] | undefined;\n /**\n * The retention-enforcement records of a window, as the evidence door answered them and the assurance\n * collector recorded them (#1636). OPTIONAL: `undefined` means no evidence was readable, and the\n * `retention-enforcement` fact then answers nothing — its clause is marked owed rather than claiming either\n * enforcement or its absence.\n */\n readonly retentionEnforcementEvidence?: RetentionEnforcementEvidence | undefined;\n}\n\n/** One resource's declared erasure treatment. `erasureRetentionMode` is absent when the resource declares none. */\nexport interface ResourceErasureTreatment {\n readonly resourceType: string;\n readonly erasureRetentionMode?: ErasureRetentionMode;\n /**\n * The statute that keeps the rows through an erasure (#1635). Present only where the resource declares\n * `retentionPolicy.statutoryRetention`; an erasure then restricts those rows until their period ends.\n */\n readonly statutoryRetention?: ResourceStatutoryRetention;\n}\n\n/** One resource's retention binding, as the retention-rules fact reads it. */\nexport interface ResourceRetentionBindingFact {\n readonly resourceType: string;\n readonly retentionBinding?: ResourceRetentionBinding;\n readonly declaresRowTtl: boolean;\n}\n\n/**\n * WHAT deletes data of a declared class when its period ends — the mechanism a retention clause may name.\n *\n * A statement about the application's CONFIGURATION (which mechanism the declarations wire up), not\n * runtime evidence that the mechanism ran: that is `ComputedDocumentFact.RETENTION_ENFORCEMENT`, computed\n * from the sweep's records (#1636). An empty list here means no mechanism is even wired for the class — a\n * notice must not describe a period nothing applies.\n */\nexport enum RetentionPeriodMechanism {\n /** At least one resource binds the class; the retention-class sweep deletes its rows past the period. */\n RETENTION_CLASS_SWEEP = \"RETENTION_CLASS_SWEEP\",\n /** The FILES class: file bytes released from their rows are destroyed by the files cleanup after the period. */\n FILES_CLEANUP = \"FILES_CLEANUP\",\n /**\n * The AUDIT_LOGS class: the audit trail is IMMUTABLE and never deleted; the period is its live-store\n * horizon, after which records are copied to the audit archive. A notice must not say audit records\n * are deleted.\n */\n AUDIT_ARCHIVAL = \"AUDIT_ARCHIVAL\",\n}\n\n/** The mechanisms that act on a declared class, given which resources bind it. Pure, so it is pinned directly. */\nexport function retentionPeriodMechanisms(dataClass: DataRetentionClass, boundResourceCount: number): RetentionPeriodMechanism[] {\n const mechanisms: RetentionPeriodMechanism[] = [];\n if (boundResourceCount > 0) mechanisms.push(RetentionPeriodMechanism.RETENTION_CLASS_SWEEP);\n if (dataClass === DataRetentionClass.FILES) mechanisms.push(RetentionPeriodMechanism.FILES_CLEANUP);\n if (dataClass === DataRetentionClass.AUDIT_LOGS) mechanisms.push(RetentionPeriodMechanism.AUDIT_ARCHIVAL);\n return mechanisms;\n}\n\n/** One computed fact's answer. Always KNOWN: a fact whose inputs are absent produces no answer at all. */\nexport interface ComputedDocumentFactAnswer {\n readonly fact: ComputedDocumentFact;\n readonly value: DocumentFactValue;\n /**\n * For a fact computed from RECORDS (`RUNTIME_EVIDENCE` in {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}):\n * the instant the evidence describes up to. Required for such a fact, absent for every other.\n */\n readonly observedAt?: string;\n}\n\n/**\n * How public each computed fact is. Every one is published in a privacy notice, so every one is public;\n * the table exists so a member added later must state its own sensitivity rather than inherit one.\n */\nconst COMPUTED_DOCUMENT_FACT_SENSITIVITY_REFS: Readonly<Record<ComputedDocumentFact, string>> = {\n [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: \"sensitivity:public\",\n [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: \"sensitivity:public\",\n [ComputedDocumentFact.LAWFUL_BASES]: \"sensitivity:public\",\n [ComputedDocumentFact.RETENTION_RULES]: \"sensitivity:public\",\n [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: \"sensitivity:public\",\n [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: \"sensitivity:public\",\n // Counts and resource types, published in the notice's retention section.\n [ComputedDocumentFact.RETENTION_ENFORCEMENT]: \"sensitivity:public\",\n // Instance names, vendors, resource types and categories, published in the notice's data-and-sources section.\n [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: \"sensitivity:public\",\n};\n\n/**\n * The operator as controller or processor, and how a person reaches it about privacy.\n *\n * Answers nothing unless the legal entity, the privacy contact and the role allocations are ALL declared:\n * the blueprint's question is \"every party acting as controller … and the public privacy contact route\",\n * and a partial answer to it would read as a complete one.\n *\n * A `JOINT_CONTROLLER` allocation also answers nothing. The question asks for EVERY such party, and the\n * identity records the operator's role without naming the other controller, so no function can state\n * the whole answer. The fact stays absent and the clause is marked owed.\n */\nfunction computeControllerAndContact(identity: ApplicationOperatorComplianceIdentity | undefined): DocumentFactValue | undefined {\n if (identity?.legalEntityName === undefined || identity.privacyContact === undefined || identity.roleAllocations === undefined) {\n return undefined;\n }\n if (identity.roleAllocations.some((allocation) => allocation.role === OperatorProcessingRole.JOINT_CONTROLLER)) return undefined;\n return {\n legalEntityName: identity.legalEntityName,\n ...(identity.registeredAddress === undefined ? {} : { registeredAddress: identity.registeredAddress }),\n privacyContact: identity.privacyContact,\n ...(identity.representative === undefined\n ? {}\n : { representative: { name: identity.representative.name, address: identity.representative.address } }),\n roleAllocations: identity.roleAllocations.map((allocation) => ({ dataScope: allocation.dataScope, role: allocation.role })),\n };\n}\n\n/**\n * Who else receives personal data: the declared processors, plus every gap the join finds.\n *\n * Answers nothing when there is NO processor register. An absent register means nobody has looked,\n * and an answer computed from it would state \"no recipients\" about an application whose recipients\n * are simply undeclared.\n *\n * With a register, the gaps are part of the answer rather than a reason to withhold it. An operator\n * sub-processor with no established identity is IN USE, and saying so is true. A register entry that no\n * data path reaches is named so a drafter does not publish it. A self-hosted provider is named as\n * operator-run, so it is never mistaken for a third party. A TENANT recipient — a vendor reached only\n * through a tenant's or a person's own connected account — is named separately: it is the tenant's vendor,\n * not the operator's sub-processor, and a register entry for one is named as a misstatement. A declared\n * member no data path reaches is named so it is neither published nor lost. The classification is\n * {@link joinRecipientPopulationToRegister} over {@link computeRecipientPopulation}, the same one the\n * drafter's brief renders and the evidence collector measures.\n */\nfunction computeRecipientsAndProcessors(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const register = inputs.processorRegister;\n if (register === undefined) return undefined;\n const classification = joinRecipientPopulationToRegister(inputs.recipientPopulation, register);\n return {\n // A JSON round trip rather than a hand-listed projection: the register is already JSON-shaped, and a\n // field added to it later must reach the fact without an edit here. It also drops absent optional keys.\n processors: JSON.parse(JSON.stringify(register.processors)) as DocumentFactValue,\n processingRegions: [...processorProcessingRegions(register)],\n configuredProvidersWithoutEstablishedIdentity: [...classification.undeclaredProviderRefs],\n registeredProvidersNotConfigured: [...classification.staleProviderRefs],\n operatorRunProviderRefs: [...classification.operatorRunProviderRefs],\n tenantRecipientRefs: [...classification.tenantRecipientRefs],\n registeredTenantRecipientRefs: [...classification.registeredTenantRecipientRefs],\n declaredWithoutDataPathRefs: [...classification.declaredWithoutDataPathRefs],\n /*\n * Per recipient: the categories its DECLARED flows carry, and the purposes its choice links to (#1709). A\n * recipient whose flow declares no field map carries `categoriesNotDerivable` — the notice must say what is\n * not established rather than list nothing. The law asks for categories of data and of recipients (GDPR Art.\n * 30(1)(c), (d); Art. 13(1)(e)); stating which reach which is the practice that keeps them consistent.\n */\n recipientDisclosures: JSON.parse(JSON.stringify(deriveRecipientDisclosures({\n population: inputs.recipientPopulation,\n systemOfRecordFlows: inputs.systemOfRecordFlows,\n providerComplianceChoices: inputs.providerComplianceChoices,\n lawfulBases: inputs.operatorComplianceIdentity?.lawfulBases,\n }))) as DocumentFactValue,\n };\n}\n\n/**\n * Each processing purpose and the basis relied on for it, with the balancing assessment where there is one.\n *\n * Answers nothing when no basis is declared: absent means nobody has decided, and \"no lawful basis\" is a\n * statement no function may make on the operator's behalf. The assessment travels with its basis because\n * Art. 13(1)(d) requires a notice relying on legitimate interests to state WHICH interests.\n */\nfunction computeLawfulBases(identity: ApplicationOperatorComplianceIdentity | undefined): DocumentFactValue | undefined {\n if (identity?.lawfulBases === undefined) return undefined;\n return {\n bases: identity.lawfulBases.map((entry) => ({\n purpose: entry.purpose,\n // The stable id recipients link to (#1709), so a drafter can join a recipient's purposes to this list.\n ...(entry.purposeRef === undefined ? {} : { purposeRef: entry.purposeRef }),\n basis: entry.basis,\n ...(entry.assessmentNote === undefined ? {} : { assessmentNote: entry.assessmentNote }),\n })),\n };\n}\n\n/**\n * How long each class of data is kept and why, which classes have no period yet, and what erasure does to\n * each resource's rows.\n *\n * The blueprint asks for both halves — the period and \"the verified deletion or anonymization behavior\" —\n * and they come from two declarations on two axes: the period is the app-level `dataRetention` schedule\n * over `DataRetentionClass`, the treatment is each resource's `retentionPolicy.mode`. Neither stands in for\n * the other: a confident paragraph about impersonalization reads as an answer about how long, which is why\n * the schedule exists at all.\n *\n * Answers nothing without a schedule (nobody has decided a period, and \"kept forever\" is not what silence\n * means) or when the resources could not be read (the treatment half would be missing, and a fact reading\n * as complete without it is the failure above). With both, undeclared classes and resources declaring no\n * treatment are PART of the answer, named, exactly as the recipients fact names its gaps: the schedule is\n * partial on purpose and a notice marks the rest as owed.\n *\n * When the resources' retention bindings were readable (#1613), each period also names the resources bound\n * to it and the {@link RetentionPeriodMechanism}s that act on it — an EMPTY list is \"declared, not yet\n * enforced\", so a notice never describes a period nothing applies — and the resources bound to no class are\n * named, because they are kept until erased and nobody decided otherwise.\n */\nfunction computeRetentionRules(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const schedule = inputs.retentionSchedule;\n const treatments = inputs.resourceErasureTreatments;\n if (schedule === undefined || treatments === undefined) return undefined;\n const byResource = [...treatments].sort((left, right) => (left.resourceType < right.resourceType ? -1 : 1));\n // #1613: which resources bind each class, and which bind nothing. Only when the bindings were readable —\n // otherwise the fact names no mechanism rather than implying none exists.\n const bindings = inputs.resourceRetentionBindings;\n const boundByClass = new Map<string, string[]>();\n for (const binding of bindings ?? []) {\n if (!binding.retentionBinding) continue;\n const list = boundByClass.get(binding.retentionBinding.retentionClass) ?? [];\n list.push(binding.resourceType);\n boundByClass.set(binding.retentionBinding.retentionClass, list);\n }\n return {\n periods: Object.entries(schedule)\n .filter((entry): entry is [string, NonNullable<(typeof entry)[1]>] => entry[1] !== undefined)\n .map(([dataClass, period]) => {\n const bound = [...(boundByClass.get(dataClass) ?? [])].sort();\n return {\n dataClass,\n retentionDays: period.retentionDays,\n rationale: period.rationale,\n ...(bindings === undefined ? {} : {\n boundResourceTypes: bound,\n mechanisms: retentionPeriodMechanisms(dataClass as DataRetentionClass, bound.length) as string[],\n }),\n };\n })\n .sort((left, right) => (left.dataClass < right.dataClass ? -1 : 1)),\n ...(bindings === undefined ? {} : {\n // Kept until erased: no class binding and no `.ttl()`. Undecided, and named so it stays visible.\n resourcesBoundToNoRetentionClass: bindings\n .filter(isKeptUntilErased)\n .map((binding) => binding.resourceType)\n .sort(),\n }),\n classesWithoutDeclaredPeriod: [...undeclaredRetentionClasses(schedule)],\n erasureTreatments: byResource\n .filter((treatment) => treatment.erasureRetentionMode !== undefined)\n .map((treatment) => ({\n resourceType: treatment.resourceType,\n erasureRetentionMode: treatment.erasureRetentionMode as string,\n // #1635: the rows are kept RESTRICTED through an erasure because a statute requires it, until the period\n // ends. The notice names the ground and the law; it never says the erasure is refused because of them.\n ...(treatment.statutoryRetention === undefined\n ? {}\n : { statutoryRetention: { ground: treatment.statutoryRetention.ground as string, rationale: treatment.statutoryRetention.rationale } }),\n })),\n resourcesWithoutDeclaredErasureTreatment: byResource\n .filter((treatment) => treatment.erasureRetentionMode === undefined)\n .map((treatment) => treatment.resourceType),\n };\n}\n\n/**\n * Which processors are reached by a transfer out of the jurisdictions the data comes from, and under which\n * safeguard for each origin jurisdiction.\n *\n * Built from the operator's per-entry `transferDetermination` in the processor register, never from the\n * regions: those are free text, and the framework cannot tell whether `United States` or `eu-west-1` lies\n * outside a declared jurisdiction. It answers NOTHING without a register (nobody has looked) or without an\n * operating jurisdiction (the origin is unknown).\n *\n * Otherwise every gap is PART of the answer, as in the recipients fact, because each is a true statement a\n * notice must make rather than a reason to say nothing:\n * - `undeterminedRecipients` — a register entry with no determination, and a configured recipient candidate\n * the register does not establish at all (the same classification the recipients fact uses). Data may be\n * leaving through either, so neither may be left out of what reads as the transfer position;\n * - `safeguardGaps` — a declared origin jurisdiction a TRANSFER names no safeguard for.\n * An EMPTY register with no configured recipient states that nothing is transferred through a processor;\n * the operator's own establishment is stated by `controller-and-contact`.\n */\nfunction computeInternationalTransfers(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const register = inputs.processorRegister;\n const origins = inputs.operatingJurisdictionSlugs;\n if (register === undefined || origins === undefined) return undefined;\n const refOf = (processor: ApplicationProcessorRegister[\"processors\"][number]): string =>\n processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? processor.providerRef : processor.subprocessorRef;\n const classification = joinRecipientPopulationToRegister(inputs.recipientPopulation, register);\n const safeguardGaps: { processorRef: string; originJurisdictionSlug: string }[] = [];\n for (const processor of register.processors) {\n const determination = processor.transferDetermination;\n if (determination?.kind !== ProcessorTransferDeterminationKind.TRANSFER) continue;\n const covered = new Set(determination.safeguards.map((safeguard) => safeguard.originJurisdictionSlug));\n for (const origin of origins) if (!covered.has(origin)) safeguardGaps.push({ processorRef: refOf(processor), originJurisdictionSlug: origin });\n }\n const determined = register.processors.filter((processor) => processor.transferDetermination !== undefined);\n return {\n originJurisdictions: [...origins].sort(),\n processors: determined.map((processor) => ({\n processorRef: refOf(processor),\n legalEntityName: processor.legalEntityName,\n processingRegions: [...processor.processingRegions],\n // A JSON round trip for the same reason as the recipients fact: a field added to the determination later\n // must reach the fact without an edit here.\n transferDetermination: JSON.parse(JSON.stringify(processor.transferDetermination)) as DocumentFactValue,\n })),\n undeterminedRecipients: [\n ...register.processors.filter((processor) => processor.transferDetermination === undefined).map(refOf),\n ...classification.undeclaredProviderRefs,\n ],\n safeguardGaps,\n };\n}\n\n/**\n * Which rights a person holds, how they ask, how they are verified, who answers, and where they may complain.\n *\n * Every part is a declaration or follows from one. The rights and the complaint route follow from the law of\n * the regime each operating jurisdiction falls under, conditioned on the declared lawful bases\n * (`rightsUnderRegime`); the channel is `privacyContact`; the verification step is\n * `subjectRequestIdentityVerification`; who answers follows from the role the operator holds over each\n * population (`subjectRequestResponderFor`).\n *\n * Answers nothing when any of those declarations is missing, or when a joint controllership leaves \"who\n * answers\" to an arrangement nothing records. A jurisdiction no known regime reaches is NAMED in the answer\n * rather than withheld: the rights the application owes there are unknown to the framework, and a notice\n * must say so instead of presenting the known regimes as the whole.\n */\nfunction computeRightsAndComplaintRoute(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const identity = inputs.operatorComplianceIdentity;\n const origins = inputs.operatingJurisdictionSlugs;\n if (\n identity?.lawfulBases === undefined\n || identity.privacyContact === undefined\n || identity.roleAllocations === undefined\n || identity.subjectRequestIdentityVerification === undefined\n || origins === undefined\n ) {\n return undefined;\n }\n const responsibility = identity.roleAllocations.map((allocation) => ({ dataScope: allocation.dataScope, respondedBy: subjectRequestResponderFor(allocation.role) }));\n if (responsibility.some((entry) => entry.respondedBy === undefined)) return undefined;\n const sortedOrigins = [...origins].sort();\n const regimes = [...new Set(sortedOrigins.map((slug) => dataProtectionRegimeOf(slug)).filter((regime) => regime !== undefined))];\n return {\n regimes: regimes.map((regime) => ({\n regime,\n jurisdictions: sortedOrigins.filter((slug) => dataProtectionRegimeOf(slug) === regime),\n rights: rightsUnderRegime(regime, identity.lawfulBases!).map((entry) => ({ right: entry.right, provision: entry.provision, purposes: [...entry.purposes] })),\n complaintRoute: complaintRouteUnderRegime(regime),\n })),\n jurisdictionsWithoutKnownRegime: sortedOrigins.filter((slug) => dataProtectionRegimeOf(slug) === undefined),\n requestChannel: identity.privacyContact,\n identityVerification: identity.subjectRequestIdentityVerification,\n responseOwnership: responsibility.map((entry) => ({ dataScope: entry.dataScope, respondedBy: entry.respondedBy as string })),\n };\n}\n\n/**\n * Per declared class, whether its period is ENFORCED, only DECLARED, or FAILING — read from the records the\n * retention-class sweep wrote (#1636). The first `RUNTIME_EVIDENCE` answer.\n *\n * Answers nothing unless the schedule, the bindings AND the evidence were all readable: without the schedule\n * there is no declared class to speak of, without the bindings \"no bound resource\" cannot be told from \"could\n * not read them\", and without the evidence nothing is known about what the product did. Each absence leaves the\n * fact absent, so the clause resting on it is marked owed rather than reading \"declared, not enforced\" about an\n * application whose records simply were not collected.\n */\nfunction computeRetentionEnforcement(inputs: ApplicationDocumentFactComputationInputs): ComputedDocumentFactAnswer | undefined {\n const evidence = inputs.retentionEnforcementEvidence;\n if (inputs.retentionSchedule === undefined || inputs.resourceRetentionBindings === undefined || evidence === undefined) return undefined;\n const observedAt = new Date(evidence.window.to);\n if (Number.isNaN(observedAt.getTime())) return undefined;\n const facts = deriveRetentionEnforcementFacts({\n evidence,\n schedule: inputs.retentionSchedule,\n bindings: inputs.resourceRetentionBindings,\n observedAt,\n sweepIntervalMs: RETENTION_CLASS_SWEEP_INTERVAL_MS,\n });\n // Per class, the mechanisms that act on it and that these records CANNOT evidence (#1636 review): the audit trail\n // is archived, never swept, and file bytes are destroyed by the files cleanup. So ENFORCED on AUDIT_LOGS or FILES\n // speaks only for the resources bound to the class — the side tables — and a notice must not read it as covering\n // the audit trail or the stored files. Derived from `retentionPeriodMechanisms`, the same table retention-rules uses.\n const classes = facts.classes.map((entry) => ({\n ...entry,\n mechanismsNotEvidencedByTheseRecords: retentionPeriodMechanisms(entry.dataClass as DataRetentionClass, entry.boundResourceTypes.length)\n .filter((mechanism) => mechanism !== RetentionPeriodMechanism.RETENTION_CLASS_SWEEP) as string[],\n }));\n // A JSON round trip: the derivation's answer is JSON-shaped by construction and drops absent optional keys.\n return {\n fact: ComputedDocumentFact.RETENTION_ENFORCEMENT,\n value: JSON.parse(JSON.stringify({ ...facts, classes })) as DocumentFactValue,\n observedAt: facts.observedAt,\n };\n}\n\n/** One source of personal data the application did not collect from the person: one resource bound to, or piped from, a system of record. */\nexport interface SystemOfRecordSource {\n readonly system: string;\n /** `systemsOfRecord.<name>.vendor`, or `null` when the instance declares none. */\n readonly vendor: string | null;\n readonly resourceType: string;\n readonly flowKind: SystemOfRecordDataFlowKind;\n /**\n * The instance's declared `personalDataOrigin` — the Art. 14(2)(f) \"publicly accessible sources\" half. ABSENT when the\n * instance states none: that half is then owed, and is never read as \"not from public sources\".\n */\n readonly personalDataOrigin?: SystemOfRecordPersonalDataOrigin;\n readonly categories: readonly string[];\n readonly uncategorizedPersonalFields: readonly string[];\n readonly purposes: readonly { readonly purposeRef: string; readonly purpose: string; readonly basis: string }[];\n readonly purposeRefsNamingNoPurpose: readonly string[];\n /** `true` for a pipeline (a local copy), `false` for a read-through binding (nothing kept locally). */\n readonly copiedLocally: boolean;\n /** For a copy, when the bindings were read: no retention class and no `.ttl()` (#1613). Absent otherwise. */\n readonly keptUntilErased?: boolean;\n /** For a copy bound to a retention class, that class. */\n readonly retentionClass?: string;\n}\n\n/**\n * Where personal data the application did NOT collect from the person comes from: every resource bound to, or piped\n * from, a declared system of record (#1745) — the ONE derivation the `system-of-record-sources` fact and the evidence\n * collector both call, so what a notice states and what the evidence measures cannot disagree.\n *\n * A notice owes, for such data, \"from which source the personal data originate, and if applicable, whether it came\n * from publicly accessible sources\", beside the categories and the purposes and legal basis for the processing.\n * spec-cite: GDPR Art. 14(2)(f), 14(1)(c) and 14(1)(d), https://gdpr-info.eu/art-14-gdpr/.\n *\n * Every part of an entry is a declaration or follows from one:\n * - the SOURCE is the instance the binding names, with its declared vendor — the PROXIMATE source, a deployment the\n * operator runs and reads with its own service identity (#1049 Q2);\n * - the CATEGORIES are the `.dataCategories()` of the fields that come from it ({@link SystemOfRecordDataFlow}), and\n * personal fields that name none are named, so a list that is incomplete says so;\n * - the PURPOSES are the ones the binding links (`binding.purposeRefs`), resolved against the lawful bases; a flow that\n * links none states no purpose, and a ref naming no declared purpose is reported as a broken link;\n * - for a PIPELINE (a local copy), whether the copied rows are kept until erased — no retention class and no `.ttl()`\n * (#1613), which is exactly where a copy of a record the source keeps for years goes unnoticed. A read-through\n * binding keeps nothing locally, so it states `copiedLocally: false` instead.\n *\n * A flow that carries no personal data is not a source of personal data and is left out.\n *\n * Whether the data ORIGINATED from publicly accessible sources (the second half of Art. 14(2)(f)) is not a property of\n * the binding: an ERP contact may have been entered from a public register or website. The operator states it per\n * instance (`systemsOfRecord.<name>.personalDataOrigin`) and the entry carries that declaration; an instance stating\n * none gives an entry with no origin, and a notice marks that half owed. Rejected: a constant\n * `publiclyAccessibleSource: false`, which would state a legal fact about the data's origin that nothing derives.\n *\n * Answers `[]` when no system of record is declared — a true statement, not a gap, since no binding can name an\n * undeclared instance. Answers `undefined` when instances are declared and the flows could not be read: an empty list\n * then would say \"nothing is obtained from them\" about an application whose declarations were simply not read.\n */\nexport function deriveSystemOfRecordSources(inputs: {\n readonly recipientPopulation: RecipientPopulation;\n readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[] | undefined;\n readonly systemOfRecordVendors: Readonly<Record<string, string>> | undefined;\n readonly systemOfRecordPersonalDataOrigins?: Readonly<Record<string, SystemOfRecordPersonalDataOrigin>> | undefined;\n readonly lawfulBases: readonly OperatorLawfulBasis[] | undefined;\n readonly resourceRetentionBindings?: readonly ResourceRetentionBindingFact[] | undefined;\n}): readonly SystemOfRecordSource[] | undefined {\n const declaresInstance = inputs.recipientPopulation.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD);\n if (!declaresInstance) return [];\n const flows = inputs.systemOfRecordFlows;\n if (flows === undefined) return undefined;\n const basesByRef = new Map((inputs.lawfulBases ?? []).flatMap((entry) => (entry.purposeRef === undefined ? [] : [[entry.purposeRef, entry] as const])));\n const bindingByResource = inputs.resourceRetentionBindings === undefined ? undefined\n : new Map(inputs.resourceRetentionBindings.map((binding) => [binding.resourceType, binding]));\n return flows\n .filter((flow) => flow.categories.length > 0 || flow.uncategorizedPersonalFields.length > 0)\n .map((flow): SystemOfRecordSource => {\n const copied = flow.kind === SystemOfRecordDataFlowKind.PIPELINE;\n const binding = bindingByResource?.get(flow.resourceType);\n const personalDataOrigin = inputs.systemOfRecordPersonalDataOrigins?.[flow.system];\n return {\n system: flow.system,\n vendor: inputs.systemOfRecordVendors?.[flow.system] ?? null,\n resourceType: flow.resourceType,\n flowKind: flow.kind,\n ...(personalDataOrigin === undefined ? {} : { personalDataOrigin }),\n categories: [...flow.categories],\n uncategorizedPersonalFields: [...flow.uncategorizedPersonalFields],\n purposes: flow.purposeRefs.flatMap((purposeRef) => {\n const basis = basesByRef.get(purposeRef);\n return basis === undefined ? [] : [{ purposeRef, purpose: basis.purpose, basis: basis.basis }];\n }),\n purposeRefsNamingNoPurpose: flow.purposeRefs.filter((purposeRef) => !basesByRef.has(purposeRef)),\n copiedLocally: copied,\n // Only for a copy, and only when the bindings were readable: otherwise \"kept until erased\" cannot be told from\n // \"not read\", and the key is absent rather than false.\n ...(copied && binding !== undefined\n ? { keptUntilErased: isKeptUntilErased(binding), ...(binding.retentionBinding === undefined ? {} : { retentionClass: binding.retentionBinding.retentionClass }) }\n : {}),\n };\n })\n .sort((left, right) => (`${left.system}/${left.resourceType}/${left.flowKind}` < `${right.system}/${right.resourceType}/${right.flowKind}` ? -1 : 1));\n}\n\n/** The `system-of-record-sources` fact: {@link deriveSystemOfRecordSources}, JSON-shaped. */\nfunction computeSystemOfRecordSources(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const sources = deriveSystemOfRecordSources({\n recipientPopulation: inputs.recipientPopulation,\n systemOfRecordFlows: inputs.systemOfRecordFlows,\n systemOfRecordVendors: inputs.systemOfRecordVendors,\n systemOfRecordPersonalDataOrigins: inputs.systemOfRecordPersonalDataOrigins,\n lawfulBases: inputs.operatorComplianceIdentity?.lawfulBases,\n resourceRetentionBindings: inputs.resourceRetentionBindings,\n });\n // A JSON round trip: the derivation's answer is JSON-shaped by construction and drops absent optional keys.\n return sources === undefined ? undefined : (JSON.parse(JSON.stringify({ sources })) as DocumentFactValue);\n}\n\n/** Every computed fact the inputs can answer, in vocabulary order. */\nexport function computeApplicationDocumentFacts(inputs: ApplicationDocumentFactComputationInputs): readonly ComputedDocumentFactAnswer[] {\n const declared = (fact: ComputedDocumentFact, value: DocumentFactValue | undefined): ComputedDocumentFactAnswer | undefined =>\n value === undefined ? undefined : { fact, value };\n const computers: Readonly<Record<ComputedDocumentFact, () => ComputedDocumentFactAnswer | undefined>> = {\n [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: () => declared(ComputedDocumentFact.CONTROLLER_AND_CONTACT, computeControllerAndContact(inputs.operatorComplianceIdentity)),\n [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: () => declared(ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS, computeRecipientsAndProcessors(inputs)),\n [ComputedDocumentFact.LAWFUL_BASES]: () => declared(ComputedDocumentFact.LAWFUL_BASES, computeLawfulBases(inputs.operatorComplianceIdentity)),\n [ComputedDocumentFact.RETENTION_RULES]: () => declared(ComputedDocumentFact.RETENTION_RULES, computeRetentionRules(inputs)),\n [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: () => declared(ComputedDocumentFact.INTERNATIONAL_TRANSFERS, computeInternationalTransfers(inputs)),\n [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: () => declared(ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE, computeRightsAndComplaintRoute(inputs)),\n [ComputedDocumentFact.RETENTION_ENFORCEMENT]: () => computeRetentionEnforcement(inputs),\n [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: () => declared(ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES, computeSystemOfRecordSources(inputs)),\n };\n return Object.values(ComputedDocumentFact).flatMap((fact) => {\n const answer = computers[fact]();\n return answer === undefined ? [] : [answer];\n });\n}\n\n/**\n * The derived facts with the computed ones laid over them — what a reader of the application's facts sees.\n *\n * A computed answer REPLACES any declaration of the same fact, whatever its scope. A stored copy is refused\n * by the family validator, so replacing it is not a precedence rule: the stored copy is never the answer.\n * Declared facts pass through untouched, and the computed declarations adopt the stored file's governance\n * scope and specification ref, so one document reads one scope.\n *\n * ## Only over a family that exists\n *\n * `stored` is required. An application that has not produced its facts yet has nothing to enrich, and a\n * facts set synthesized from the computed ones alone would change what every reader concludes: \"no facts\n * produced yet\" makes a citation check skip, while \"declares only these two\" makes it refuse every other\n * citation. The computed facts join the application's facts; they do not stand in for them.\n */\n/**\n * The authority a computed answer is stamped with: the fact's tier from {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS},\n * never a default. A RUNTIME_EVIDENCE fact carries the instant its evidence describes; one produced without\n * that instant is a defect in its computation and is refused here rather than stamped as specification.\n */\nfunction computedFactAuthority(answer: ComputedDocumentFactAnswer) {\n const common = { authorityRef: `document-fact-authority:${answer.fact}`, authorityVersion: 1 };\n if (COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS[answer.fact] === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {\n if (answer.observedAt === undefined) throw new Error(`Computed fact \"${answer.fact}\" is runtime evidence and was produced without its observedAt instant`);\n return { factAuthorityKind: AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE, ...common, observedAt: answer.observedAt };\n }\n return { factAuthorityKind: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION, ...common };\n}\n\nexport function overlayComputedDocumentFacts(\n stored: ApplicationDocumentFactSpecification,\n answers: readonly ComputedDocumentFactAnswer[],\n): ApplicationDocumentFactSpecification {\n const declarationRefOf = (fact: ComputedDocumentFact): string => `document-fact-declaration:${fact}`;\n const everyComputedDeclarationRef = new Set(Object.values(ComputedDocumentFact).map(declarationRefOf));\n // A stored copy of ANY computed fact is dropped, answered or not (#1636 review). It used to be dropped only\n // when the runtime had an answer to replace it with, so an unanswered fact let the copy through — and for\n // `retention-enforcement` that is a typed \"ENFORCED\" under RUNTIME_EVIDENCE authority reaching a notice\n // whose records were never collected. A stored copy is never the answer; absent is.\n const isComputedCopy = (declaration: ApplicationDocumentFactSpecification[\"declarations\"][number]): boolean =>\n computedDocumentFactOf(declaration.factRef) !== undefined || everyComputedDeclarationRef.has(declaration.declarationRef);\n if (answers.length === 0 && !stored.declarations.some(isComputedCopy)) return stored;\n // The family schema requires at least one declaration, so a parsed specification always has a first.\n const governanceScope = stored.declarations[0]!.governanceScope;\n let kept = stored.declarations.filter((declaration) => !isComputedCopy(declaration));\n if (kept.length === 0 && answers.length === 0) {\n // Degenerate: the file holds nothing but copies of computed facts, and nothing was computed. The family\n // cannot be empty, so keep the copies that claim no runtime evidence (the validator reports them at every\n // landing) and never one that claims RUNTIME_EVIDENCE. A file of runtime-evidence copies alone is returned\n // as it is — the one residual, and one only a hand edit could produce (landing validation reports it as\n // DOCUMENT_FACT_IS_COMPUTED). It exists because the stored-file schema must admit RUNTIME_EVIDENCE for the\n // overlaid view to validate; the clean closure is a separate schema for the overlaid view, keeping that tier\n // out of the stored-file schema — not done yet, and recorded here rather than left implicit.\n kept = stored.declarations.filter((declaration) => declaration.authority?.factAuthorityKind !== AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE);\n if (kept.length === 0) return stored;\n }\n const computed = answers.map((answer) => ({\n declarationRef: declarationRefOf(answer.fact),\n declarationVersion: 1,\n factRef: `document-fact:${answer.fact}`,\n factVersion: 1,\n governanceScope,\n sensitivityRef: COMPUTED_DOCUMENT_FACT_SENSITIVITY_REFS[answer.fact],\n authority: computedFactAuthority(answer),\n resolutionKind: ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN,\n value: answer.value,\n }));\n const declarations = [...kept, ...computed].sort((left, right) =>\n `${left.declarationRef}@${left.declarationVersion}` < `${right.declarationRef}@${right.declarationVersion}` ? -1 : 1,\n );\n return ApplicationDocumentFactSpecificationSchema.parse({\n schemaVersion: 1,\n specificationRef: stored.specificationRef,\n specificationVersion: stored.specificationVersion,\n declarations,\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"computed-document-facts.schemas.js","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/computed-document-facts.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,sBAAsB,EACtB,sBAAsB,EACtB,iBAAiB,EACjB,0BAA0B,EAC1B,kBAAkB,EAClB,0BAA0B,EAC1B,iBAAiB,EACjB,iCAAiC,GAUlC,MAAM,uBAAuB,CAAC;AAE/B,OAAO,EACL,0DAA0D,EAC1D,0CAA0C,EAC1C,sCAAsC,EACtC,oBAAoB,EACpB,sBAAsB,GAGvB,MAAM,iGAAiG,CAAC;AACzG,OAAO,EAAE,kCAAkC,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EACL,0BAA0B,EAC1B,0BAA0B,EAC1B,kCAAkC,GAEnC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iCAAiC,EAAE,6BAA6B,EAA4B,MAAM,gCAAgC,CAAC;AAC5I,OAAO,EAAE,0BAA0B,EAAE,0BAA0B,EAA+B,MAAM,iCAAiC,CAAC;AACtI,OAAO,EAAE,+BAA+B,EAAE,MAAM,uCAAuC,CAAC;AAwFxF;;;;;;;GAOG;AACH,MAAM,CAAN,IAAY,wBAWX;AAXD,WAAY,wBAAwB;IAClC,yGAAyG;IAC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AM,YAAY,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAC/D,GAAG,IAAI,CAAC,cAAc,IAAI,IAAI,CAAC,kBAAkB,EAAE,GAAG,GAAG,KAAK,CAAC,cAAc,IAAI,KAAK,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CACrH,CAAC;IACF,OAAO,0CAA0C,CAAC,KAAK,CAAC;QACtD,aAAa,EAAE,CAAC;QAChB,gBAAgB,EAAE,MAAM,CAAC,gBAAgB;QACzC,oBAAoB,EAAE,MAAM,CAAC,oBAAoB;QACjD,YAAY;KACb,CAAC,CAAC;AACL,CAAC","sourcesContent":["import {\n complaintRouteUnderRegime,\n dataProtectionRegimeOf,\n OperatorProcessingRole,\n rightsUnderRegime,\n subjectRequestResponderFor,\n DataRetentionClass,\n undeclaredRetentionClasses,\n isKeptUntilErased,\n RETENTION_CLASS_SWEEP_INTERVAL_MS,\n type ApplicationOperatorComplianceIdentity,\n type OperatorLawfulBasis,\n type ApplicationProviderComplianceChoices,\n type RetentionEnforcementEvidence,\n type ApplicationRetentionSchedule,\n type ErasureRetentionMode,\n type ResourceRetentionBinding,\n type ResourceStatutoryRetention,\n type SystemOfRecordPersonalDataOrigin,\n} from \"@wildo-ai/saas-models\";\n\nimport {\n ApplicationAssuranceDocumentFactContributionResolutionKind,\n ApplicationDocumentFactSpecificationSchema,\n COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS,\n ComputedDocumentFact,\n computedDocumentFactOf,\n type ApplicationDerivedDocumentFactDeclaration,\n type ApplicationDocumentFactSpecification,\n} from \"../../application-creation/application-document-fact-specification.application-creation.schemas\";\nimport { AssuranceDocumentFactAuthorityKind } from \"../../assurance.exports\";\nimport {\n processorProcessingRegions,\n ProcessorRegisterEntryKind,\n ProcessorTransferDeterminationKind,\n type ApplicationProcessorRegister,\n} from \"./processor-register.schemas\";\nimport { joinRecipientPopulationToRegister, RecipientPopulationMemberKind, type RecipientPopulation } from \"./recipient-population.schemas\";\nimport { deriveRecipientDisclosures, SystemOfRecordDataFlowKind, type SystemOfRecordDataFlow } from \"./recipient-disclosures.schemas\";\nimport { deriveRetentionEnforcementFacts } from \"./retention-enforcement-facts.schemas\";\n\n/**\n * Computing the {@link ComputedDocumentFact} members, and laying them over the facts a file declares.\n *\n * See the vocabulary's own JSDoc for why these facts are computed at read and never stored. This module\n * is the one place their values are built: the companion calls it where the application's facts are\n * read, and nothing writes its output to disk.\n */\n\n/** The value type a KNOWN derived declaration carries. */\ntype DocumentFactValue = Extract<\n ApplicationDerivedDocumentFactDeclaration,\n { resolutionKind: ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN }\n>[\"value\"];\n\n/** The typed declarations the computed facts are read from. Each is `undefined` when the application declares none. */\nexport interface ApplicationDocumentFactComputationInputs {\n readonly operatorComplianceIdentity: ApplicationOperatorComplianceIdentity | undefined;\n readonly processorRegister: ApplicationProcessorRegister | undefined;\n /**\n * WHO receives personal data, from {@link computeRecipientPopulation} — the same population the evidence\n * collector and the drafting brief read, so the three cannot disagree about who a recipient is (#1707).\n */\n readonly recipientPopulation: RecipientPopulation;\n /**\n * The system-of-record flows every resource declares (#1709), read off the materialized resources. OPTIONAL:\n * `undefined` means they could not be read, and each system-of-record recipient then reports its categories as not\n * derivable rather than as none.\n */\n readonly systemOfRecordFlows?: readonly SystemOfRecordDataFlow[] | undefined;\n /**\n * The `systemsOfRecord.<name>.vendor` of each declared instance (#1745), from {@link systemOfRecordVendorsOf} — what\n * the `system-of-record-sources` fact names beside the instance. OPTIONAL: an instance absent here is stated with no\n * vendor rather than guessed.\n */\n readonly systemOfRecordVendors?: Readonly<Record<string, string>> | undefined;\n /**\n * The `systemsOfRecord.<name>.personalDataOrigin` of each instance that declares one (#1745), from\n * `systemOfRecordPersonalDataOriginsOf` — whether its personal data can have come from publicly accessible sources.\n * An instance absent here has not stated it, and its sources carry no origin, so the notice marks it owed.\n */\n readonly systemOfRecordPersonalDataOrigins?: Readonly<Record<string, SystemOfRecordPersonalDataOrigin>> | undefined;\n /** `providerComplianceChoices`, read for the purposes each recipient links to (#1709). */\n readonly providerComplianceChoices?: ApplicationProviderComplianceChoices | undefined;\n /** `dataRetention` — the period per data class. Partial by design; absent means no schedule was declared. */\n readonly retentionSchedule: ApplicationRetentionSchedule | undefined;\n /**\n * What erasure does to each resource's rows, as the resources declare it. `undefined` when the resources\n * could not be read, which is not the same as \"none declared\" and must answer nothing.\n */\n readonly resourceErasureTreatments: readonly ResourceErasureTreatment[] | undefined;\n /**\n * How long each resource's rows are kept, as the resources declare it (#1613): its retention-class\n * binding, and whether a fixed `.ttl()` deletes its rows instead. OPTIONAL and separate from the\n * erasure treatments on purpose — the two are different axes. `undefined` means the bindings could not\n * be read, and the fact then states no mechanism rather than claiming none exists.\n */\n readonly resourceRetentionBindings?: readonly ResourceRetentionBindingFact[] | undefined;\n /** The `operatingJurisdictions` slugs — where the data comes FROM. `undefined` when none are declared. */\n readonly operatingJurisdictionSlugs: readonly string[] | undefined;\n /**\n * The retention-enforcement records of a window, as the evidence door answered them and the assurance\n * collector recorded them (#1636). OPTIONAL: `undefined` means no evidence was readable, and the\n * `retention-enforcement` fact then answers nothing — its clause is marked owed rather than claiming either\n * enforcement or its absence.\n */\n readonly retentionEnforcementEvidence?: RetentionEnforcementEvidence | undefined;\n}\n\n/** One resource's declared erasure treatment. `erasureRetentionMode` is absent when the resource declares none. */\nexport interface ResourceErasureTreatment {\n readonly resourceType: string;\n readonly erasureRetentionMode?: ErasureRetentionMode;\n /**\n * The statute that keeps the rows through an erasure (#1635). Present only where the resource declares\n * `retentionPolicy.statutoryRetention`; an erasure then restricts those rows until their period ends.\n */\n readonly statutoryRetention?: ResourceStatutoryRetention;\n}\n\n/** One resource's retention binding, as the retention-rules fact reads it. */\nexport interface ResourceRetentionBindingFact {\n readonly resourceType: string;\n readonly retentionBinding?: ResourceRetentionBinding;\n readonly declaresRowTtl: boolean;\n}\n\n/**\n * WHAT deletes data of a declared class when its period ends — the mechanism a retention clause may name.\n *\n * A statement about the application's CONFIGURATION (which mechanism the declarations wire up), not\n * runtime evidence that the mechanism ran: that is `ComputedDocumentFact.RETENTION_ENFORCEMENT`, computed\n * from the sweep's records (#1636). An empty list here means no mechanism is even wired for the class — a\n * notice must not describe a period nothing applies.\n */\nexport enum RetentionPeriodMechanism {\n /** At least one resource binds the class; the retention-class sweep deletes its rows past the period. */\n RETENTION_CLASS_SWEEP = \"RETENTION_CLASS_SWEEP\",\n /** The FILES class: file bytes released from their rows are destroyed by the files cleanup after the period. */\n FILES_CLEANUP = \"FILES_CLEANUP\",\n /**\n * The AUDIT_LOGS class: the audit trail is IMMUTABLE and never deleted; the period is its live-store\n * horizon, after which records are copied to the audit archive. A notice must not say audit records\n * are deleted.\n */\n AUDIT_ARCHIVAL = \"AUDIT_ARCHIVAL\",\n}\n\n/** The mechanisms that act on a declared class, given which resources bind it. Pure, so it is pinned directly. */\nexport function retentionPeriodMechanisms(dataClass: DataRetentionClass, boundResourceCount: number): RetentionPeriodMechanism[] {\n const mechanisms: RetentionPeriodMechanism[] = [];\n if (boundResourceCount > 0) mechanisms.push(RetentionPeriodMechanism.RETENTION_CLASS_SWEEP);\n if (dataClass === DataRetentionClass.FILES) mechanisms.push(RetentionPeriodMechanism.FILES_CLEANUP);\n if (dataClass === DataRetentionClass.AUDIT_LOGS) mechanisms.push(RetentionPeriodMechanism.AUDIT_ARCHIVAL);\n return mechanisms;\n}\n\n/** One computed fact's answer. Always KNOWN: a fact whose inputs are absent produces no answer at all. */\nexport interface ComputedDocumentFactAnswer {\n readonly fact: ComputedDocumentFact;\n readonly value: DocumentFactValue;\n /**\n * For a fact computed from RECORDS (`RUNTIME_EVIDENCE` in {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS}):\n * the instant the evidence describes up to. Required for such a fact, absent for every other.\n */\n readonly observedAt?: string;\n}\n\n/**\n * How public each computed fact is. Every one is published in a privacy notice, so every one is public;\n * the table exists so a member added later must state its own sensitivity rather than inherit one.\n */\nconst COMPUTED_DOCUMENT_FACT_SENSITIVITY_REFS: Readonly<Record<ComputedDocumentFact, string>> = {\n [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: \"sensitivity:public\",\n [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: \"sensitivity:public\",\n [ComputedDocumentFact.LAWFUL_BASES]: \"sensitivity:public\",\n [ComputedDocumentFact.RETENTION_RULES]: \"sensitivity:public\",\n [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: \"sensitivity:public\",\n [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: \"sensitivity:public\",\n // Counts and resource types, published in the notice's retention section.\n [ComputedDocumentFact.RETENTION_ENFORCEMENT]: \"sensitivity:public\",\n // Instance names, vendors, resource types and categories, published in the notice's data-and-sources section.\n [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: \"sensitivity:public\",\n};\n\n/**\n * The operator as controller or processor, and how a person reaches it about privacy.\n *\n * Answers nothing unless the legal entity, the privacy contact and the role allocations are ALL declared:\n * the blueprint's question is \"every party acting as controller … and the public privacy contact route\",\n * and a partial answer to it would read as a complete one.\n *\n * A `JOINT_CONTROLLER` allocation also answers nothing. The question asks for EVERY such party, and the\n * identity records the operator's role without naming the other controller, so no function can state\n * the whole answer. The fact stays absent and the clause is marked owed.\n */\nfunction computeControllerAndContact(identity: ApplicationOperatorComplianceIdentity | undefined): DocumentFactValue | undefined {\n if (identity?.legalEntityName === undefined || identity.privacyContact === undefined || identity.roleAllocations === undefined) {\n return undefined;\n }\n if (identity.roleAllocations.some((allocation) => allocation.role === OperatorProcessingRole.JOINT_CONTROLLER)) return undefined;\n return {\n legalEntityName: identity.legalEntityName,\n ...(identity.registeredAddress === undefined ? {} : { registeredAddress: identity.registeredAddress }),\n privacyContact: identity.privacyContact,\n ...(identity.representative === undefined\n ? {}\n : { representative: { name: identity.representative.name, address: identity.representative.address } }),\n roleAllocations: identity.roleAllocations.map((allocation) => ({ dataScope: allocation.dataScope, role: allocation.role })),\n };\n}\n\n/**\n * Who else receives personal data: the declared processors, plus every gap the join finds.\n *\n * Answers nothing when there is NO processor register. An absent register means nobody has looked,\n * and an answer computed from it would state \"no recipients\" about an application whose recipients\n * are simply undeclared.\n *\n * With a register, the gaps are part of the answer rather than a reason to withhold it. An operator\n * sub-processor with no established identity is IN USE, and saying so is true. A register entry that no\n * data path reaches is named so a drafter does not publish it. A self-hosted provider is named as\n * operator-run, so it is never mistaken for a third party. A TENANT recipient — a vendor reached only\n * through a tenant's or a person's own connected account — is named separately: it is the tenant's vendor,\n * not the operator's sub-processor, and a register entry for one is named as a misstatement. A declared\n * member no data path reaches is named so it is neither published nor lost. The classification is\n * {@link joinRecipientPopulationToRegister} over {@link computeRecipientPopulation}, the same one the\n * drafter's brief renders and the evidence collector measures.\n */\nfunction computeRecipientsAndProcessors(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const register = inputs.processorRegister;\n if (register === undefined) return undefined;\n const classification = joinRecipientPopulationToRegister(inputs.recipientPopulation, register);\n return {\n // A JSON round trip rather than a hand-listed projection: the register is already JSON-shaped, and a\n // field added to it later must reach the fact without an edit here. It also drops absent optional keys.\n processors: JSON.parse(JSON.stringify(register.processors)) as DocumentFactValue,\n processingRegions: [...processorProcessingRegions(register)],\n configuredProvidersWithoutEstablishedIdentity: [...classification.undeclaredProviderRefs],\n registeredProvidersNotConfigured: [...classification.staleProviderRefs],\n operatorRunProviderRefs: [...classification.operatorRunProviderRefs],\n tenantRecipientRefs: [...classification.tenantRecipientRefs],\n registeredTenantRecipientRefs: [...classification.registeredTenantRecipientRefs],\n declaredWithoutDataPathRefs: [...classification.declaredWithoutDataPathRefs],\n /*\n * Per recipient: the categories its DECLARED flows carry, and the purposes its choice links to (#1709). A\n * recipient whose flow declares no field map carries `categoriesNotDerivable` — the notice must say what is\n * not established rather than list nothing. The law asks for categories of data and of recipients (GDPR Art.\n * 30(1)(c), (d); Art. 13(1)(e)); stating which reach which is the practice that keeps them consistent.\n */\n recipientDisclosures: JSON.parse(JSON.stringify(deriveRecipientDisclosures({\n population: inputs.recipientPopulation,\n systemOfRecordFlows: inputs.systemOfRecordFlows,\n providerComplianceChoices: inputs.providerComplianceChoices,\n lawfulBases: inputs.operatorComplianceIdentity?.lawfulBases,\n }))) as DocumentFactValue,\n };\n}\n\n/**\n * Each processing purpose and the basis relied on for it, with the balancing assessment where there is one.\n *\n * Answers nothing when no basis is declared: absent means nobody has decided, and \"no lawful basis\" is a\n * statement no function may make on the operator's behalf. The assessment travels with its basis because\n * Art. 13(1)(d) requires a notice relying on legitimate interests to state WHICH interests.\n */\nfunction computeLawfulBases(identity: ApplicationOperatorComplianceIdentity | undefined): DocumentFactValue | undefined {\n if (identity?.lawfulBases === undefined) return undefined;\n return {\n bases: identity.lawfulBases.map((entry) => ({\n purpose: entry.purpose,\n // The stable id recipients link to (#1709), so a drafter can join a recipient's purposes to this list.\n ...(entry.purposeRef === undefined ? {} : { purposeRef: entry.purposeRef }),\n basis: entry.basis,\n ...(entry.assessmentNote === undefined ? {} : { assessmentNote: entry.assessmentNote }),\n })),\n };\n}\n\n/**\n * How long each class of data is kept and why, which classes have no period yet, and what erasure does to\n * each resource's rows.\n *\n * The blueprint asks for both halves — the period and \"the verified deletion or anonymization behavior\" —\n * and they come from two declarations on two axes: the period is the app-level `dataRetention` schedule\n * over `DataRetentionClass`, the treatment is each resource's `retentionPolicy.mode`. Neither stands in for\n * the other: a confident paragraph about impersonalization reads as an answer about how long, which is why\n * the schedule exists at all.\n *\n * Answers nothing without a schedule (nobody has decided a period, and \"kept forever\" is not what silence\n * means) or when the resources could not be read (the treatment half would be missing, and a fact reading\n * as complete without it is the failure above). With both, undeclared classes and resources declaring no\n * treatment are PART of the answer, named, exactly as the recipients fact names its gaps: the schedule is\n * partial on purpose and a notice marks the rest as owed.\n *\n * When the resources' retention bindings were readable (#1613), each period also names the resources bound\n * to it and the {@link RetentionPeriodMechanism}s that act on it — an EMPTY list is \"declared, not yet\n * enforced\", so a notice never describes a period nothing applies — and the resources bound to no class are\n * named, because they are kept until erased and nobody decided otherwise.\n */\nfunction computeRetentionRules(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const schedule = inputs.retentionSchedule;\n const treatments = inputs.resourceErasureTreatments;\n if (schedule === undefined || treatments === undefined) return undefined;\n const byResource = [...treatments].sort((left, right) => (left.resourceType < right.resourceType ? -1 : 1));\n // #1613: which resources bind each class, and which bind nothing. Only when the bindings were readable —\n // otherwise the fact names no mechanism rather than implying none exists.\n const bindings = inputs.resourceRetentionBindings;\n const boundByClass = new Map<string, string[]>();\n for (const binding of bindings ?? []) {\n if (!binding.retentionBinding) continue;\n const list = boundByClass.get(binding.retentionBinding.retentionClass) ?? [];\n list.push(binding.resourceType);\n boundByClass.set(binding.retentionBinding.retentionClass, list);\n }\n return {\n periods: Object.entries(schedule)\n .filter((entry): entry is [string, NonNullable<(typeof entry)[1]>] => entry[1] !== undefined)\n .map(([dataClass, period]) => {\n const bound = [...(boundByClass.get(dataClass) ?? [])].sort();\n return {\n dataClass,\n retentionDays: period.retentionDays,\n rationale: period.rationale,\n ...(bindings === undefined ? {} : {\n boundResourceTypes: bound,\n mechanisms: retentionPeriodMechanisms(dataClass as DataRetentionClass, bound.length) as string[],\n }),\n };\n })\n .sort((left, right) => (left.dataClass < right.dataClass ? -1 : 1)),\n ...(bindings === undefined ? {} : {\n // Kept until erased: no class binding and no `.ttl()`. Undecided, and named so it stays visible.\n resourcesBoundToNoRetentionClass: bindings\n .filter(isKeptUntilErased)\n .map((binding) => binding.resourceType)\n .sort(),\n }),\n classesWithoutDeclaredPeriod: [...undeclaredRetentionClasses(schedule)],\n erasureTreatments: byResource\n .filter((treatment) => treatment.erasureRetentionMode !== undefined)\n .map((treatment) => ({\n resourceType: treatment.resourceType,\n erasureRetentionMode: treatment.erasureRetentionMode as string,\n // #1635: the rows are kept RESTRICTED through an erasure because a statute requires it, until the period\n // ends. The notice names the ground and the law; it never says the erasure is refused because of them.\n ...(treatment.statutoryRetention === undefined\n ? {}\n : { statutoryRetention: { ground: treatment.statutoryRetention.ground as string, rationale: treatment.statutoryRetention.rationale } }),\n })),\n resourcesWithoutDeclaredErasureTreatment: byResource\n .filter((treatment) => treatment.erasureRetentionMode === undefined)\n .map((treatment) => treatment.resourceType),\n };\n}\n\n/**\n * Which processors are reached by a transfer out of the jurisdictions the data comes from, and under which\n * safeguard for each origin jurisdiction.\n *\n * Built from the operator's per-entry `transferDetermination` in the processor register, never from the\n * regions: those are free text, and the framework cannot tell whether `United States` or `eu-west-1` lies\n * outside a declared jurisdiction. It answers NOTHING without a register (nobody has looked) or without an\n * operating jurisdiction (the origin is unknown).\n *\n * Otherwise every gap is PART of the answer, as in the recipients fact, because each is a true statement a\n * notice must make rather than a reason to say nothing:\n * - `undeterminedRecipients` — a register entry with no determination, and a configured recipient candidate\n * the register does not establish at all (the same classification the recipients fact uses). Data may be\n * leaving through either, so neither may be left out of what reads as the transfer position;\n * - `safeguardGaps` — a declared origin jurisdiction a TRANSFER names no safeguard for.\n * An EMPTY register with no configured recipient states that nothing is transferred through a processor;\n * the operator's own establishment is stated by `controller-and-contact`.\n *\n * `operatorHostingRegions` is WHERE the operator's own infrastructure holds the data\n * (`operatorComplianceIdentity.hostingRegions`, #2285), beside the processors' regions, because a register says\n * nothing about the operator's own processing. `null` means the operator has not declared it, and is stated as\n * such: never \"hosted nowhere\", and never a reason to round the position up to \"no international transfer\".\n * Whether a hosting region makes a transfer stays the operator's recorded determination, never computed here.\n */\nfunction computeInternationalTransfers(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const register = inputs.processorRegister;\n const origins = inputs.operatingJurisdictionSlugs;\n if (register === undefined || origins === undefined) return undefined;\n const refOf = (processor: ApplicationProcessorRegister[\"processors\"][number]): string =>\n processor.kind === ProcessorRegisterEntryKind.CONFIGURED_PROVIDER ? processor.providerRef : processor.subprocessorRef;\n const classification = joinRecipientPopulationToRegister(inputs.recipientPopulation, register);\n const safeguardGaps: { processorRef: string; originJurisdictionSlug: string }[] = [];\n for (const processor of register.processors) {\n const determination = processor.transferDetermination;\n if (determination?.kind !== ProcessorTransferDeterminationKind.TRANSFER) continue;\n const covered = new Set(determination.safeguards.map((safeguard) => safeguard.originJurisdictionSlug));\n for (const origin of origins) if (!covered.has(origin)) safeguardGaps.push({ processorRef: refOf(processor), originJurisdictionSlug: origin });\n }\n const determined = register.processors.filter((processor) => processor.transferDetermination !== undefined);\n return {\n originJurisdictions: [...origins].sort(),\n processors: determined.map((processor) => ({\n processorRef: refOf(processor),\n legalEntityName: processor.legalEntityName,\n processingRegions: [...processor.processingRegions],\n // A JSON round trip for the same reason as the recipients fact: a field added to the determination later\n // must reach the fact without an edit here.\n transferDetermination: JSON.parse(JSON.stringify(processor.transferDetermination)) as DocumentFactValue,\n })),\n undeterminedRecipients: [\n ...register.processors.filter((processor) => processor.transferDetermination === undefined).map(refOf),\n ...classification.undeclaredProviderRefs,\n ],\n safeguardGaps,\n operatorHostingRegions: inputs.operatorComplianceIdentity?.hostingRegions === undefined ? null : [...inputs.operatorComplianceIdentity.hostingRegions],\n };\n}\n\n/**\n * Which rights a person holds, how they ask, how they are verified, who answers, and where they may complain.\n *\n * Every part is a declaration or follows from one. The rights and the complaint route follow from the law of\n * the regime each operating jurisdiction falls under, conditioned on the declared lawful bases\n * (`rightsUnderRegime`); the channel is `privacyContact`; the verification step is\n * `subjectRequestIdentityVerification`; who answers follows from the role the operator holds over each\n * population (`subjectRequestResponderFor`).\n *\n * Answers nothing when any of those declarations is missing, or when a joint controllership leaves \"who\n * answers\" to an arrangement nothing records. A jurisdiction no known regime reaches is NAMED in the answer\n * rather than withheld: the rights the application owes there are unknown to the framework, and a notice\n * must say so instead of presenting the known regimes as the whole.\n */\nfunction computeRightsAndComplaintRoute(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const identity = inputs.operatorComplianceIdentity;\n const origins = inputs.operatingJurisdictionSlugs;\n if (\n identity?.lawfulBases === undefined\n || identity.privacyContact === undefined\n || identity.roleAllocations === undefined\n || identity.subjectRequestIdentityVerification === undefined\n || origins === undefined\n ) {\n return undefined;\n }\n const responsibility = identity.roleAllocations.map((allocation) => ({ dataScope: allocation.dataScope, respondedBy: subjectRequestResponderFor(allocation.role) }));\n if (responsibility.some((entry) => entry.respondedBy === undefined)) return undefined;\n const sortedOrigins = [...origins].sort();\n const regimes = [...new Set(sortedOrigins.map((slug) => dataProtectionRegimeOf(slug)).filter((regime) => regime !== undefined))];\n return {\n regimes: regimes.map((regime) => ({\n regime,\n jurisdictions: sortedOrigins.filter((slug) => dataProtectionRegimeOf(slug) === regime),\n rights: rightsUnderRegime(regime, identity.lawfulBases!).map((entry) => ({ right: entry.right, provision: entry.provision, purposes: [...entry.purposes] })),\n complaintRoute: complaintRouteUnderRegime(regime),\n })),\n jurisdictionsWithoutKnownRegime: sortedOrigins.filter((slug) => dataProtectionRegimeOf(slug) === undefined),\n requestChannel: identity.privacyContact,\n identityVerification: identity.subjectRequestIdentityVerification,\n responseOwnership: responsibility.map((entry) => ({ dataScope: entry.dataScope, respondedBy: entry.respondedBy as string })),\n };\n}\n\n/**\n * Per declared class, whether its period is ENFORCED, only DECLARED, or FAILING — read from the records the\n * retention-class sweep wrote (#1636). The first `RUNTIME_EVIDENCE` answer.\n *\n * Answers nothing unless the schedule, the bindings AND the evidence were all readable: without the schedule\n * there is no declared class to speak of, without the bindings \"no bound resource\" cannot be told from \"could\n * not read them\", and without the evidence nothing is known about what the product did. Each absence leaves the\n * fact absent, so the clause resting on it is marked owed rather than reading \"declared, not enforced\" about an\n * application whose records simply were not collected.\n */\nfunction computeRetentionEnforcement(inputs: ApplicationDocumentFactComputationInputs): ComputedDocumentFactAnswer | undefined {\n const evidence = inputs.retentionEnforcementEvidence;\n if (inputs.retentionSchedule === undefined || inputs.resourceRetentionBindings === undefined || evidence === undefined) return undefined;\n const observedAt = new Date(evidence.window.to);\n if (Number.isNaN(observedAt.getTime())) return undefined;\n const facts = deriveRetentionEnforcementFacts({\n evidence,\n schedule: inputs.retentionSchedule,\n bindings: inputs.resourceRetentionBindings,\n observedAt,\n sweepIntervalMs: RETENTION_CLASS_SWEEP_INTERVAL_MS,\n });\n // Per class, the mechanisms that act on it and that these records CANNOT evidence (#1636 review): the audit trail\n // is archived, never swept, and file bytes are destroyed by the files cleanup. So ENFORCED on AUDIT_LOGS or FILES\n // speaks only for the resources bound to the class — the side tables — and a notice must not read it as covering\n // the audit trail or the stored files. Derived from `retentionPeriodMechanisms`, the same table retention-rules uses.\n const classes = facts.classes.map((entry) => ({\n ...entry,\n mechanismsNotEvidencedByTheseRecords: retentionPeriodMechanisms(entry.dataClass as DataRetentionClass, entry.boundResourceTypes.length)\n .filter((mechanism) => mechanism !== RetentionPeriodMechanism.RETENTION_CLASS_SWEEP) as string[],\n }));\n // A JSON round trip: the derivation's answer is JSON-shaped by construction and drops absent optional keys.\n return {\n fact: ComputedDocumentFact.RETENTION_ENFORCEMENT,\n value: JSON.parse(JSON.stringify({ ...facts, classes })) as DocumentFactValue,\n observedAt: facts.observedAt,\n };\n}\n\n/** One source of personal data the application did not collect from the person: one resource bound to, or piped from, a system of record. */\nexport interface SystemOfRecordSource {\n readonly system: string;\n /** `systemsOfRecord.<name>.vendor`, or `null` when the instance declares none. */\n readonly vendor: string | null;\n readonly resourceType: string;\n readonly flowKind: SystemOfRecordDataFlowKind;\n /**\n * The instance's declared `personalDataOrigin` — the Art. 14(2)(f) \"publicly accessible sources\" half. ABSENT when the\n * instance states none: that half is then owed, and is never read as \"not from public sources\".\n */\n readonly personalDataOrigin?: SystemOfRecordPersonalDataOrigin;\n readonly categories: readonly string[];\n readonly uncategorizedPersonalFields: readonly string[];\n readonly purposes: readonly { readonly purposeRef: string; readonly purpose: string; readonly basis: string }[];\n readonly purposeRefsNamingNoPurpose: readonly string[];\n /** `true` for a pipeline (a local copy), `false` for a read-through binding (nothing kept locally). */\n readonly copiedLocally: boolean;\n /** For a copy, when the bindings were read: no retention class and no `.ttl()` (#1613). Absent otherwise. */\n readonly keptUntilErased?: boolean;\n /** For a copy bound to a retention class, that class. */\n readonly retentionClass?: string;\n}\n\n/**\n * Where personal data the application did NOT collect from the person comes from: every resource bound to, or piped\n * from, a declared system of record (#1745) — the ONE derivation the `system-of-record-sources` fact and the evidence\n * collector both call, so what a notice states and what the evidence measures cannot disagree.\n *\n * A notice owes, for such data, \"from which source the personal data originate, and if applicable, whether it came\n * from publicly accessible sources\", beside the categories and the purposes and legal basis for the processing.\n * spec-cite: GDPR Art. 14(2)(f), 14(1)(c) and 14(1)(d), https://gdpr-info.eu/art-14-gdpr/.\n *\n * Every part of an entry is a declaration or follows from one:\n * - the SOURCE is the instance the binding names, with its declared vendor — the PROXIMATE source, a deployment the\n * operator runs and reads with its own service identity (#1049 Q2);\n * - the CATEGORIES are the `.dataCategories()` of the fields that come from it ({@link SystemOfRecordDataFlow}), and\n * personal fields that name none are named, so a list that is incomplete says so;\n * - the PURPOSES are the ones the binding links (`binding.purposeRefs`), resolved against the lawful bases; a flow that\n * links none states no purpose, and a ref naming no declared purpose is reported as a broken link;\n * - for a PIPELINE (a local copy), whether the copied rows are kept until erased — no retention class and no `.ttl()`\n * (#1613), which is exactly where a copy of a record the source keeps for years goes unnoticed. A read-through\n * binding keeps nothing locally, so it states `copiedLocally: false` instead.\n *\n * A flow that carries no personal data is not a source of personal data and is left out.\n *\n * Whether the data ORIGINATED from publicly accessible sources (the second half of Art. 14(2)(f)) is not a property of\n * the binding: an ERP contact may have been entered from a public register or website. The operator states it per\n * instance (`systemsOfRecord.<name>.personalDataOrigin`) and the entry carries that declaration; an instance stating\n * none gives an entry with no origin, and a notice marks that half owed. Rejected: a constant\n * `publiclyAccessibleSource: false`, which would state a legal fact about the data's origin that nothing derives.\n *\n * Answers `[]` when no system of record is declared — a true statement, not a gap, since no binding can name an\n * undeclared instance. Answers `undefined` when instances are declared and the flows could not be read: an empty list\n * then would say \"nothing is obtained from them\" about an application whose declarations were simply not read.\n */\nexport function deriveSystemOfRecordSources(inputs: {\n readonly recipientPopulation: RecipientPopulation;\n readonly systemOfRecordFlows: readonly SystemOfRecordDataFlow[] | undefined;\n readonly systemOfRecordVendors: Readonly<Record<string, string>> | undefined;\n readonly systemOfRecordPersonalDataOrigins?: Readonly<Record<string, SystemOfRecordPersonalDataOrigin>> | undefined;\n readonly lawfulBases: readonly OperatorLawfulBasis[] | undefined;\n readonly resourceRetentionBindings?: readonly ResourceRetentionBindingFact[] | undefined;\n}): readonly SystemOfRecordSource[] | undefined {\n const declaresInstance = inputs.recipientPopulation.members.some((member) => member.kind === RecipientPopulationMemberKind.SYSTEM_OF_RECORD);\n if (!declaresInstance) return [];\n const flows = inputs.systemOfRecordFlows;\n if (flows === undefined) return undefined;\n const basesByRef = new Map((inputs.lawfulBases ?? []).flatMap((entry) => (entry.purposeRef === undefined ? [] : [[entry.purposeRef, entry] as const])));\n const bindingByResource = inputs.resourceRetentionBindings === undefined ? undefined\n : new Map(inputs.resourceRetentionBindings.map((binding) => [binding.resourceType, binding]));\n return flows\n .filter((flow) => flow.categories.length > 0 || flow.uncategorizedPersonalFields.length > 0)\n .map((flow): SystemOfRecordSource => {\n const copied = flow.kind === SystemOfRecordDataFlowKind.PIPELINE;\n const binding = bindingByResource?.get(flow.resourceType);\n const personalDataOrigin = inputs.systemOfRecordPersonalDataOrigins?.[flow.system];\n return {\n system: flow.system,\n vendor: inputs.systemOfRecordVendors?.[flow.system] ?? null,\n resourceType: flow.resourceType,\n flowKind: flow.kind,\n ...(personalDataOrigin === undefined ? {} : { personalDataOrigin }),\n categories: [...flow.categories],\n uncategorizedPersonalFields: [...flow.uncategorizedPersonalFields],\n purposes: flow.purposeRefs.flatMap((purposeRef) => {\n const basis = basesByRef.get(purposeRef);\n return basis === undefined ? [] : [{ purposeRef, purpose: basis.purpose, basis: basis.basis }];\n }),\n purposeRefsNamingNoPurpose: flow.purposeRefs.filter((purposeRef) => !basesByRef.has(purposeRef)),\n copiedLocally: copied,\n // Only for a copy, and only when the bindings were readable: otherwise \"kept until erased\" cannot be told from\n // \"not read\", and the key is absent rather than false.\n ...(copied && binding !== undefined\n ? { keptUntilErased: isKeptUntilErased(binding), ...(binding.retentionBinding === undefined ? {} : { retentionClass: binding.retentionBinding.retentionClass }) }\n : {}),\n };\n })\n .sort((left, right) => (`${left.system}/${left.resourceType}/${left.flowKind}` < `${right.system}/${right.resourceType}/${right.flowKind}` ? -1 : 1));\n}\n\n/** The `system-of-record-sources` fact: {@link deriveSystemOfRecordSources}, JSON-shaped. */\nfunction computeSystemOfRecordSources(inputs: ApplicationDocumentFactComputationInputs): DocumentFactValue | undefined {\n const sources = deriveSystemOfRecordSources({\n recipientPopulation: inputs.recipientPopulation,\n systemOfRecordFlows: inputs.systemOfRecordFlows,\n systemOfRecordVendors: inputs.systemOfRecordVendors,\n systemOfRecordPersonalDataOrigins: inputs.systemOfRecordPersonalDataOrigins,\n lawfulBases: inputs.operatorComplianceIdentity?.lawfulBases,\n resourceRetentionBindings: inputs.resourceRetentionBindings,\n });\n // A JSON round trip: the derivation's answer is JSON-shaped by construction and drops absent optional keys.\n return sources === undefined ? undefined : (JSON.parse(JSON.stringify({ sources })) as DocumentFactValue);\n}\n\n/** Every computed fact the inputs can answer, in vocabulary order. */\nexport function computeApplicationDocumentFacts(inputs: ApplicationDocumentFactComputationInputs): readonly ComputedDocumentFactAnswer[] {\n const declared = (fact: ComputedDocumentFact, value: DocumentFactValue | undefined): ComputedDocumentFactAnswer | undefined =>\n value === undefined ? undefined : { fact, value };\n const computers: Readonly<Record<ComputedDocumentFact, () => ComputedDocumentFactAnswer | undefined>> = {\n [ComputedDocumentFact.CONTROLLER_AND_CONTACT]: () => declared(ComputedDocumentFact.CONTROLLER_AND_CONTACT, computeControllerAndContact(inputs.operatorComplianceIdentity)),\n [ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS]: () => declared(ComputedDocumentFact.RECIPIENTS_AND_PROCESSORS, computeRecipientsAndProcessors(inputs)),\n [ComputedDocumentFact.LAWFUL_BASES]: () => declared(ComputedDocumentFact.LAWFUL_BASES, computeLawfulBases(inputs.operatorComplianceIdentity)),\n [ComputedDocumentFact.RETENTION_RULES]: () => declared(ComputedDocumentFact.RETENTION_RULES, computeRetentionRules(inputs)),\n [ComputedDocumentFact.INTERNATIONAL_TRANSFERS]: () => declared(ComputedDocumentFact.INTERNATIONAL_TRANSFERS, computeInternationalTransfers(inputs)),\n [ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE]: () => declared(ComputedDocumentFact.RIGHTS_AND_COMPLAINT_ROUTE, computeRightsAndComplaintRoute(inputs)),\n [ComputedDocumentFact.RETENTION_ENFORCEMENT]: () => computeRetentionEnforcement(inputs),\n [ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES]: () => declared(ComputedDocumentFact.SYSTEM_OF_RECORD_SOURCES, computeSystemOfRecordSources(inputs)),\n };\n return Object.values(ComputedDocumentFact).flatMap((fact) => {\n const answer = computers[fact]();\n return answer === undefined ? [] : [answer];\n });\n}\n\n/**\n * The derived facts with the computed ones laid over them — what a reader of the application's facts sees.\n *\n * A computed answer REPLACES any declaration of the same fact, whatever its scope. A stored copy is refused\n * by the family validator, so replacing it is not a precedence rule: the stored copy is never the answer.\n * Declared facts pass through untouched, and the computed declarations adopt the stored file's governance\n * scope and specification ref, so one document reads one scope.\n *\n * ## Only over a family that exists\n *\n * `stored` is required. An application that has not produced its facts yet has nothing to enrich, and a\n * facts set synthesized from the computed ones alone would change what every reader concludes: \"no facts\n * produced yet\" makes a citation check skip, while \"declares only these two\" makes it refuse every other\n * citation. The computed facts join the application's facts; they do not stand in for them.\n */\n/**\n * The authority a computed answer is stamped with: the fact's tier from {@link COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS},\n * never a default. A RUNTIME_EVIDENCE fact carries the instant its evidence describes; one produced without\n * that instant is a defect in its computation and is refused here rather than stamped as specification.\n */\nfunction computedFactAuthority(answer: ComputedDocumentFactAnswer) {\n const common = { authorityRef: `document-fact-authority:${answer.fact}`, authorityVersion: 1 };\n if (COMPUTED_DOCUMENT_FACT_AUTHORITY_KINDS[answer.fact] === AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE) {\n if (answer.observedAt === undefined) throw new Error(`Computed fact \"${answer.fact}\" is runtime evidence and was produced without its observedAt instant`);\n return { factAuthorityKind: AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE, ...common, observedAt: answer.observedAt };\n }\n return { factAuthorityKind: AssuranceDocumentFactAuthorityKind.APPLICATION_SPECIFICATION, ...common };\n}\n\nexport function overlayComputedDocumentFacts(\n stored: ApplicationDocumentFactSpecification,\n answers: readonly ComputedDocumentFactAnswer[],\n): ApplicationDocumentFactSpecification {\n const declarationRefOf = (fact: ComputedDocumentFact): string => `document-fact-declaration:${fact}`;\n const everyComputedDeclarationRef = new Set(Object.values(ComputedDocumentFact).map(declarationRefOf));\n // A stored copy of ANY computed fact is dropped, answered or not (#1636 review). It used to be dropped only\n // when the runtime had an answer to replace it with, so an unanswered fact let the copy through — and for\n // `retention-enforcement` that is a typed \"ENFORCED\" under RUNTIME_EVIDENCE authority reaching a notice\n // whose records were never collected. A stored copy is never the answer; absent is.\n const isComputedCopy = (declaration: ApplicationDocumentFactSpecification[\"declarations\"][number]): boolean =>\n computedDocumentFactOf(declaration.factRef) !== undefined || everyComputedDeclarationRef.has(declaration.declarationRef);\n if (answers.length === 0 && !stored.declarations.some(isComputedCopy)) return stored;\n // The family schema requires at least one declaration, so a parsed specification always has a first.\n const governanceScope = stored.declarations[0]!.governanceScope;\n let kept = stored.declarations.filter((declaration) => !isComputedCopy(declaration));\n if (kept.length === 0 && answers.length === 0) {\n // Degenerate: the file holds nothing but copies of computed facts, and nothing was computed. The family\n // cannot be empty, so keep the copies that claim no runtime evidence (the validator reports them at every\n // landing) and never one that claims RUNTIME_EVIDENCE. A file of runtime-evidence copies alone is returned\n // as it is — the one residual, and one only a hand edit could produce (landing validation reports it as\n // DOCUMENT_FACT_IS_COMPUTED). It exists because the stored-file schema must admit RUNTIME_EVIDENCE for the\n // overlaid view to validate; the clean closure is a separate schema for the overlaid view, keeping that tier\n // out of the stored-file schema — not done yet, and recorded here rather than left implicit.\n kept = stored.declarations.filter((declaration) => declaration.authority?.factAuthorityKind !== AssuranceDocumentFactAuthorityKind.RUNTIME_EVIDENCE);\n if (kept.length === 0) return stored;\n }\n const computed = answers.map((answer) => ({\n declarationRef: declarationRefOf(answer.fact),\n declarationVersion: 1,\n factRef: `document-fact:${answer.fact}`,\n factVersion: 1,\n governanceScope,\n sensitivityRef: COMPUTED_DOCUMENT_FACT_SENSITIVITY_REFS[answer.fact],\n authority: computedFactAuthority(answer),\n resolutionKind: ApplicationAssuranceDocumentFactContributionResolutionKind.KNOWN,\n value: answer.value,\n }));\n const declarations = [...kept, ...computed].sort((left, right) =>\n `${left.declarationRef}@${left.declarationVersion}` < `${right.declarationRef}@${right.declarationVersion}` ? -1 : 1,\n );\n return ApplicationDocumentFactSpecificationSchema.parse({\n schemaVersion: 1,\n specificationRef: stored.specificationRef,\n specificationVersion: stored.specificationVersion,\n declarations,\n });\n}\n"]}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The "before you can launch" list: every open compliance decision that stands between a created
|
|
3
|
+
* application and a real user, each with where it is decided and what settles it (#2238).
|
|
4
|
+
*
|
|
5
|
+
* ## Why it exists
|
|
6
|
+
*
|
|
7
|
+
* A creation run ended without saying what was still open. In run 004 the operator's legal entity and
|
|
8
|
+
* hosting region, two governance questions, the retention classes, the subject-data recipients and the
|
|
9
|
+
* sign-up acceptance were all undecided, and they surfaced as `wildo config validate` warnings in logs,
|
|
10
|
+
* or not at all. Spread across logs, none of them is a list anyone acts on.
|
|
11
|
+
*
|
|
12
|
+
* ## It MARKS, it never blocks
|
|
13
|
+
*
|
|
14
|
+
* Nothing calls this to decide whether creation may proceed. `application-creation-directive.md`
|
|
15
|
+
* forbids a compliance workflow standing in front of creation; Gate 3 is where these points become
|
|
16
|
+
* gates, and this is what that gate will read. So the list has no severity and no pass/fail verdict:
|
|
17
|
+
* it is what is open, stated plainly.
|
|
18
|
+
*
|
|
19
|
+
* ## It is DERIVED, never asked
|
|
20
|
+
*
|
|
21
|
+
* Every entry is a function of something the application already holds, by the same predicate the
|
|
22
|
+
* surface that owns it already uses (`compliance-is-derived-from-the-product.md`,
|
|
23
|
+
* `derive-before-you-ask.md`):
|
|
24
|
+
*
|
|
25
|
+
* | entry | derived from |
|
|
26
|
+
* |---|---|
|
|
27
|
+
* | operator identity part | {@link outstandingOperatorComplianceIdentityParts}, total over {@link OperatorComplianceIdentityPart} |
|
|
28
|
+
* | retention class | {@link undeclaredRetentionClasses}, total over `DataRetentionClass` |
|
|
29
|
+
* | subject-data recipients | the generated recipients module is absent — the predicate behind `wildo config validate`'s warning |
|
|
30
|
+
* | governance question | the creation question queue's `GOVERNANCE_FACT` items (`wildo creation questions`) |
|
|
31
|
+
* | sign-up acceptance | the recorded governed-document releases in force, their approval, and whether their runtime module exists |
|
|
32
|
+
*
|
|
33
|
+
* The governance population is the QUEUE's, deliberately: a fact still needed by a DRAFTED governed document. A document
|
|
34
|
+
* not drafted yet asks nothing, so its facts are not listed here — the creation run drafting it is what surfaces them.
|
|
35
|
+
* Gate 3 must not read an empty governance section as "every governed document is complete".
|
|
36
|
+
*
|
|
37
|
+
* Settling an item removes it on the next read, because nothing here is stored: the caller reads each
|
|
38
|
+
* input fresh and this function recomputes. A total derivation also means an identity part or a
|
|
39
|
+
* retention class added to its vocabulary tomorrow appears here for every application at once.
|
|
40
|
+
*
|
|
41
|
+
* ## An input that could not be read is NOT an empty list
|
|
42
|
+
*
|
|
43
|
+
* Each input is optional for exactly that reason. An unreadable configuration or question queue is
|
|
44
|
+
* reported in {@link LaunchBlockerList.unevaluatedSources}, never as "nothing open" — a launch list that
|
|
45
|
+
* reads clean because its source failed is the most dangerous answer it could give
|
|
46
|
+
* (`negative-results-require-a-positive-probe.md`).
|
|
47
|
+
*/
|
|
48
|
+
import { z } from "zod";
|
|
49
|
+
import { type ApplicationOperatorComplianceIdentity, type ApplicationRetentionSchedule, type GovernedDocumentRelease } from "@wildo-ai/saas-models";
|
|
50
|
+
/** WHAT is open — one member per kind of launch decision, each with its own settling path. */
|
|
51
|
+
export declare enum LaunchBlockerKind {
|
|
52
|
+
/** A part of `operatorComplianceIdentity` is undeclared: the legal entity, the hosting region, the privacy contact… */
|
|
53
|
+
OPERATOR_IDENTITY_PART_UNDECLARED = "operator-identity-part-undeclared",
|
|
54
|
+
/** A governed-document question waits on the person; it is answered in the workbench's governance panel. */
|
|
55
|
+
GOVERNANCE_QUESTION_UNANSWERED = "governance-question-unanswered",
|
|
56
|
+
/** A `DataRetentionClass` has no declared period in `dataRetention`. */
|
|
57
|
+
RETENTION_CLASS_UNDECLARED = "retention-class-undeclared",
|
|
58
|
+
/** No subject-data recipients module, so every subject export says recipients are not declared. */
|
|
59
|
+
SUBJECT_DATA_RECIPIENTS_UNDECLARED = "subject-data-recipients-undeclared",
|
|
60
|
+
/** No recorded release lets a person accept it, so sign-up records no acceptance of the terms or the privacy notice. */
|
|
61
|
+
SIGN_UP_ACCEPTANCE_NOT_OFFERED = "sign-up-acceptance-not-offered",
|
|
62
|
+
/** A release offers acceptance, but its runtime module was never generated, so the running application does not offer it. */
|
|
63
|
+
SIGN_UP_ACCEPTANCE_NOT_CARRIED = "sign-up-acceptance-not-carried",
|
|
64
|
+
/**
|
|
65
|
+
* Every release offering acceptance is UNAPPROVED. Registration offers it only while `compliance.governedDocumentApprovalGate`
|
|
66
|
+
* is off; once the gate is armed — which Gate 3 does — registration offers nothing. Marked whatever the gate's state today,
|
|
67
|
+
* because this list is what Gate 3 reads.
|
|
68
|
+
*/
|
|
69
|
+
SIGN_UP_ACCEPTANCE_UNAPPROVED = "sign-up-acceptance-unapproved"
|
|
70
|
+
}
|
|
71
|
+
/** An input the list is derived from — named so an unreadable one can be reported as such. */
|
|
72
|
+
export declare enum LaunchBlockerSource {
|
|
73
|
+
/** `wildo.saas.config.ts`: the operator identity and the retention schedule. */
|
|
74
|
+
APPLICATION_CONFIG = "application-config",
|
|
75
|
+
/** The creation question queue: the governance questions. */
|
|
76
|
+
QUESTION_QUEUE = "question-queue",
|
|
77
|
+
/** The specifications package's recorded governed-document releases: sign-up acceptance. */
|
|
78
|
+
DOCUMENT_RELEASES = "document-releases"
|
|
79
|
+
}
|
|
80
|
+
/** One open decision. */
|
|
81
|
+
export declare const LaunchBlockerSchema: z.ZodObject<{
|
|
82
|
+
/** Stable across reads (`<kind>:<subject>`), so a reader can tell which item was settled between two reads. */
|
|
83
|
+
ref: z.ZodString;
|
|
84
|
+
kind: z.ZodEnum<typeof LaunchBlockerKind>;
|
|
85
|
+
/** What is open, in one sentence. */
|
|
86
|
+
statement: z.ZodString;
|
|
87
|
+
/** Where the decision lives — a file and field, or the surface that holds it. */
|
|
88
|
+
decidedIn: z.ZodString;
|
|
89
|
+
/** The command to run or the edit to make that settles it. */
|
|
90
|
+
settledBy: z.ZodString;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
export type LaunchBlocker = z.infer<typeof LaunchBlockerSchema>;
|
|
93
|
+
/** A source that could not be read, and why — so its entries read as UNKNOWN rather than absent. */
|
|
94
|
+
export declare const LaunchBlockerUnevaluatedSourceSchema: z.ZodObject<{
|
|
95
|
+
source: z.ZodEnum<typeof LaunchBlockerSource>;
|
|
96
|
+
reason: z.ZodString;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
export type LaunchBlockerUnevaluatedSource = z.infer<typeof LaunchBlockerUnevaluatedSourceSchema>;
|
|
99
|
+
/** The whole list, as the companion serves it and a run report renders it. */
|
|
100
|
+
export declare const LaunchBlockerListSchema: z.ZodObject<{
|
|
101
|
+
computedAt: z.ZodString;
|
|
102
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
103
|
+
/** Stable across reads (`<kind>:<subject>`), so a reader can tell which item was settled between two reads. */
|
|
104
|
+
ref: z.ZodString;
|
|
105
|
+
kind: z.ZodEnum<typeof LaunchBlockerKind>;
|
|
106
|
+
/** What is open, in one sentence. */
|
|
107
|
+
statement: z.ZodString;
|
|
108
|
+
/** Where the decision lives — a file and field, or the surface that holds it. */
|
|
109
|
+
decidedIn: z.ZodString;
|
|
110
|
+
/** The command to run or the edit to make that settles it. */
|
|
111
|
+
settledBy: z.ZodString;
|
|
112
|
+
}, z.core.$strict>>;
|
|
113
|
+
unevaluatedSources: z.ZodArray<z.ZodObject<{
|
|
114
|
+
source: z.ZodEnum<typeof LaunchBlockerSource>;
|
|
115
|
+
reason: z.ZodString;
|
|
116
|
+
}, z.core.$strict>>;
|
|
117
|
+
}, z.core.$strict>;
|
|
118
|
+
export type LaunchBlockerList = z.infer<typeof LaunchBlockerListSchema>;
|
|
119
|
+
/** A queued governed-document question, as much of it as the list names. */
|
|
120
|
+
export interface LaunchBlockerGovernanceQuestion {
|
|
121
|
+
/** The queue's id, `governance-fact:<rowId>` — what `wildo creation questions` prints. */
|
|
122
|
+
readonly questionId: string;
|
|
123
|
+
/** The governed document whose draft needs the answer. */
|
|
124
|
+
readonly definitionRef: string | null;
|
|
125
|
+
/** The question, in the words the person is asked. */
|
|
126
|
+
readonly prompt: string;
|
|
127
|
+
}
|
|
128
|
+
/** Everything the list is derived from. `undefined` means the input could not be READ, never that it is empty. */
|
|
129
|
+
export interface LaunchBlockerInputs {
|
|
130
|
+
readonly computedAt: string;
|
|
131
|
+
/** The application's configuration, read fresh. `undefined` when it could not be loaded. */
|
|
132
|
+
readonly applicationConfig?: {
|
|
133
|
+
readonly operatorComplianceIdentity?: ApplicationOperatorComplianceIdentity;
|
|
134
|
+
readonly dataRetention?: ApplicationRetentionSchedule;
|
|
135
|
+
};
|
|
136
|
+
/** Whether {@link SUBJECT_DATA_RECIPIENTS_GENERATED_RELATIVE_PATH} exists in the application. */
|
|
137
|
+
readonly subjectDataRecipientsModulePresent: boolean;
|
|
138
|
+
/** The governed-document questions waiting on the person. `undefined` when the queue could not be read. */
|
|
139
|
+
readonly governanceQuestions?: readonly LaunchBlockerGovernanceQuestion[];
|
|
140
|
+
/** The recorded releases (`documentReleaseSet`). `undefined` when the specifications package could not be read. */
|
|
141
|
+
readonly documentReleases?: readonly GovernedDocumentRelease[];
|
|
142
|
+
/** Whether {@link GOVERNED_DOCUMENT_RELEASES_GENERATED_RELATIVE_PATH} exists in the application. */
|
|
143
|
+
readonly documentReleasesModulePresent: boolean;
|
|
144
|
+
/** Why each unreadable input could not be read, for the report. */
|
|
145
|
+
readonly unreadableReasons?: Partial<Record<LaunchBlockerSource, string>>;
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* The launch list, derived. Pure: the caller reads every input fresh, so a settled item is gone on the
|
|
149
|
+
* next call. Order follows how a creator settles them — who you are, the questions waiting on you, then
|
|
150
|
+
* what the configuration and the running application still lack.
|
|
151
|
+
*/
|
|
152
|
+
export declare function deriveLaunchBlockers(inputs: LaunchBlockerInputs): LaunchBlockerList;
|
|
153
|
+
//# sourceMappingURL=launch-blockers.schemas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"launch-blockers.schemas.d.ts","sourceRoot":"","sources":["../../../../../src/_core/compliance-documents/launch-blockers.schemas.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAOL,KAAK,qCAAqC,EAC1C,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC7B,MAAM,uBAAuB,CAAC;AAW/B,8FAA8F;AAC9F,oBAAY,iBAAiB;IAC3B,uHAAuH;IACvH,iCAAiC,sCAAsC;IACvE,4GAA4G;IAC5G,8BAA8B,mCAAmC;I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