keiro-dsl 0.25.1.0 → 0.26.0.0
raw patch · 939 files changed
+16559/−2393 lines, 939 filesdep ~aesondep ~bytestringdep ~containersPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: aeson, bytestring, containers, keiro, keiro-core, kiroku-store, vector
API changes (from Hackage documentation)
This diff is very large; some files are shown as “too large to diff”. Download the raw patch for the complete diff.
Files
- CHANGELOG.md +146/−0
- app/Main.hs +306/−15
- generated-haskell-edition-idiomatic-v2.md too large to diff
- keiro-dsl.cabal +206/−9
- record-field-migration-0.15.md +1504/−1463
- src/Keiro/Dsl/AggregateGenerationPlan.hs +4/−0
- src/Keiro/Dsl/ConformancePackage.hs +49/−5
- src/Keiro/Dsl/Diff.hs +82/−10
- src/Keiro/Dsl/DiffReport.hs +15/−1
- src/Keiro/Dsl/Grammar.hs +43/−3
- src/Keiro/Dsl/LanguageVersion.hs +4/−1
- src/Keiro/Dsl/Parser/Coordination.hs +27/−11
- src/Keiro/Dsl/Parser/Integration.hs +18/−3
- src/Keiro/Dsl/PrettyPrint.hs +12/−3
- src/Keiro/Dsl/Scaffold.hs +132/−30
- src/Keiro/Dsl/ServiceHarness.hs +44/−1
- src/Keiro/Dsl/Topology.hs +923/−0
- src/Keiro/Dsl/Validate.hs +86/−15
- src/Keiro/Dsl/Workspace.hs +4/−0
- test/Keiro/Dsl/FrontendProfiles.hs +8/−1
- test/Keiro/Dsl/InputSourceSpec.hs +314/−0
- test/Keiro/Dsl/TopologySpec.hs +997/−0
- test/Main.hs +725/−9
- test/behavior-complete-mutation-test.sh +26/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/BehaviorSourceMap.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/Inspection.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ReplayAudit.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/BehaviorContract.hs +28/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/Codec.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/Domain.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/EventStream.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/Harness.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/Projection.hs +1/−1
- test/conformance-aggregate-scalars/Generated/AggregateScalars/ScalarLedger/Transducer.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareJobs/Queue.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareJobs/QueueCodec.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareJobs/QueuePolicy.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareLookup/QueryContract.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareLookup/ReadModel.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareLookup/ReadModelHarness.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareLookup/ReadModelTable.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/BehaviorContract.hs +28/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/Codec.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/Domain.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/EventStream.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/Harness.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/Projection.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BareStore/Transducer.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/BehaviorSourceMap.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Inspection.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Nominals.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Nominals/Internal.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/ProjectionCatalog.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/ReplayAudit.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Structural/NominalLeaves.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Structural/Shape/BareEnvelope.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Structural/Shape/MaybeText.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Structural/Shape/NestedIds.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Structural/Shape/TextList.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/Structural/Shape/TextMap.hs +1/−1
- test/conformance-bare-containers/Generated/BareContainers/StructuralConformance.hs +1/−1
- test/conformance-baseline.json +4/−0
- test/conformance-behavior-complete/Generated/BehaviorComplete/BehaviorSourceMap.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Inspection.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/BehaviorContract.hs +28/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/Codec.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/Domain.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/EventStream.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/Harness.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/Projection.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Journey/Transducer.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Nominals.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Nominals/Internal.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/ReplayAudit.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/Structural/Shape/StartPayload.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/StructuralConformance.hs +1/−1
- test/conformance-behavior-complete/Generated/BehaviorComplete/StructuralProjections.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/BehaviorSourceMap.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarJobs/Queue.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarJobs/QueueCodec.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarJobs/QueuePolicy.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarLookup/QueryContract.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarLookup/ReadModel.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarLookup/ReadModelHarness.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarLookup/ReadModelTable.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/BehaviorContract.hs +28/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/Codec.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/Domain.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/EventStream.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/Harness.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/Projection.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/CalendarStore/Transducer.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/Inspection.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/ProjectionCatalog.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/ReplayAudit.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/Structural/Shape/CalendarEnvelope.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/Structural/Shape/LocalDay.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/Structural/Shape/MaybeLocalDay.hs +1/−1
- test/conformance-calendar-days/Generated/CalendarDays/StructuralConformance.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/BehaviorSourceMap.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Inspection.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Nominals.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Nominals/Internal.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ProjectionCatalog.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayAudit.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayEvents/Contract.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayJobs/Queue.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayJobs/QueueCodec.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayJobs/QueuePolicy.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/BehaviorContract.hs +28/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/Codec.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/Domain.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/EventStream.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/Harness.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/Projection.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLedger/Transducer.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLookup/QueryContract.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLookup/ReadModel.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLookup/ReadModelHarness.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayLookup/ReadModelTable.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayReaction/Input.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayReaction/Process.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayReaction/ProcessHarness.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/BehaviorContract.hs +28/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/Codec.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/Domain.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/EventStream.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/Harness.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/Projection.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/ReplayTarget/Transducer.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/NominalLeaves.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/Shape/ContentHash.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/Shape/ImportantDays.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/Shape/MaybeContentHash.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/Shape/MaybeLabel.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/Shape/ReplayEnvelope.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/Structural/Shape/TextLabels.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/StructuralConformance.hs +1/−1
- test/conformance-checked-mapping-replay/Generated/CheckedMappingReplay/StructuralProjections.hs +1/−1
- test/conformance-coldstart/Generated/Billing/BehaviorSourceMap.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Inspection.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Nominals.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Nominals/Internal.hs +1/−1
- test/conformance-coldstart/Generated/Billing/ReplayAudit.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Subscription/BehaviorContract.hs +28/−1
- test/conformance-coldstart/Generated/Billing/Subscription/Codec.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Subscription/Domain.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Subscription/EventStream.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Subscription/Harness.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Subscription/Projection.hs +1/−1
- test/conformance-coldstart/Generated/Billing/Subscription/Transducer.hs +1/−1
- test/conformance-contract-declared-id/Generated/ContractDeclaredId/Nominals.hs +1/−1
- test/conformance-contract-declared-id/Generated/ContractDeclaredId/Nominals/Internal.hs +1/−1
- test/conformance-contract-declared-id/Generated/ContractDeclaredId/Structural/NominalLeaves.hs +1/−1
- test/conformance-contract-declared-id/Generated/ContractDeclaredId/StructuralConformance.hs +1/−1
- test/conformance-contract-declared-id/Generated/ContractDeclaredId/Templates/Contract.hs +1/−1
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/Audit/Contract.hs +104/−0
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/Nominals.hs +9/−0
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/Nominals/Internal.hs +40/−0
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/Registration/Contract.hs +72/−0
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/Signals/Contract.hs +62/−0
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/Structural/NominalLeaves.hs +15/−0
- test/conformance-contract-foreign-event/Generated/ContractForeignEvent/StructuralConformance.hs +9/−0
- test/conformance-contract-foreign-event/Main.hs +209/−0
- test/conformance-contract-foreign-event/keiro-dsl-cabal-fragment.context.contract-foreign-event.txt +27/−0
- test/conformance-contract-foreign-event/keiro-dsl-ledger.context.contract-foreign-event.txt +30/−0
- test/conformance-contract-list-fields/Generated/ContractListFields/Nominals.hs +1/−1
- test/conformance-contract-list-fields/Generated/ContractListFields/Nominals/Internal.hs +1/−1
- test/conformance-contract-list-fields/Generated/ContractListFields/Structural/NominalLeaves.hs +1/−1
- test/conformance-contract-list-fields/Generated/ContractListFields/StructuralConformance.hs +1/−1
- test/conformance-contract-list-fields/Generated/ContractListFields/Templates/Contract.hs +1/−1
- test/conformance-contract-rollout/Main.hs +184/−0
- test/conformance-contract-rollout/after/After/Generated/ContractRollout/Growth/Contract.hs +61/−0
- test/conformance-contract-rollout/after/After/Generated/ContractRollout/Origin/Contract.hs +58/−0
- test/conformance-contract-rollout/after/After/Generated/ContractRollout/Presence/Contract.hs +60/−0
- test/conformance-contract-rollout/after/keiro-dsl-cabal-fragment.context.contract-rollout.txt +21/−0
- test/conformance-contract-rollout/after/keiro-dsl-ledger.context.contract-rollout.txt +14/−0
- test/conformance-contract-rollout/before/Before/Generated/ContractRollout/Growth/Contract.hs +58/−0
- test/conformance-contract-rollout/before/Before/Generated/ContractRollout/Origin/Contract.hs +57/−0
- test/conformance-contract-rollout/before/Before/Generated/ContractRollout/Presence/Contract.hs +61/−0
- test/conformance-contract-rollout/before/keiro-dsl-cabal-fragment.context.contract-rollout.txt +21/−0
- test/conformance-contract-rollout/before/keiro-dsl-ledger.context.contract-rollout.txt +14/−0
- test/conformance-contract-v1-compat/Generated/HospitalCapacity/Emergency/Contract.hs +1/−1
- test/conformance-contract/Generated/HospitalCapacity/Emergency/Contract.hs +1/−1
- test/conformance-corpus-manifest.txt +0/−1
- test/conformance-declarative-router/Generated/TransferRouting/BehaviorSourceMap.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/BehaviorContract.hs +28/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/Codec.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/Domain.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/EventStream.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/Harness.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/Projection.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Hospital/Transducer.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/HospitalLoad/QueryContract.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/HospitalLoad/ReadModel.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/HospitalLoad/ReadModelHarness.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/HospitalLoad/ReadModelTable.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/HospitalTransferRouter/Router.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/HospitalTransferRouter/RouterHarness.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Inspection.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/ProjectionCatalog.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/ReplayAudit.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Structural/Shape/HospitalLoadRow.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/Structural/Shape/TransferRouteInput.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/StructuralConformance.hs +1/−1
- test/conformance-declarative-router/Generated/TransferRouting/StructuralProjections.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModel.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModelHarness.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModelTable.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/ReservationWork/Queue.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/ReservationWork/QueueCodec.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/ReservationWork/QueuePolicy.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/TransferDecisions/ReadModel.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/TransferDecisions/ReadModelHarness.hs +1/−1
- test/conformance-dispatch-full/Generated/HospitalCapacity/TransferDecisions/ReadModelTable.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/BehaviorSourceMap.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Inspection.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Nominals.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/ReplayAudit.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/BehaviorContract.hs +28/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/Codec.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/Domain.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/EventStream.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/Harness.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/Projection.hs +1/−1
- test/conformance-domain-outcomes/Generated/DomainOutcomes/Reservation/Transducer.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/BehaviorContract.hs +28/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/Codec.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/Domain.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/EventStream.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/Harness.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/Projection.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Assignment/Transducer.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/BehaviorSourceMap.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/Inspection.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/ReplayAudit.hs +1/−1
- test/conformance-history-dependent-holes/Generated/HistoryDependentHoles/StructuralConformance.hs +1/−1
- test/conformance-history-dependent-holes/Main.hs +5/−0
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/BehaviorSourceMap.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/Identities/Contract.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/BehaviorContract.hs +28/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/Codec.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/Domain.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/EventStream.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/Harness.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/Projection.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityLedger/Transducer.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityWork/Queue.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityWork/QueueCodec.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/IdentityWork/QueuePolicy.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/Inspection.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/Nominals.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/Nominals/Internal.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/ReplayAudit.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/Structural/NominalLeaves.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/Structural/Shape/IdentityEnvelope.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/StructuralConformance.hs +1/−1
- test/conformance-id-admission-domains/Generated/IdAdmissionDomains/StructuralProjections.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/BehaviorSourceMap.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/Inspection.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/Nominals.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/Nominals/Internal.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/BehaviorContract.hs +28/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/Codec.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/Domain.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/EventStream.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/Harness.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/Projection.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/OrderBook/Transducer.hs +1/−1
- test/conformance-id-domain-migration/Generated/IdDomainMigration/ReplayAudit.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/BehaviorSourceMap.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/BehaviorContract.hs +28/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/Codec.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/Domain.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/EventStream.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/Harness.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/Projection.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/CollisionLedger/Transducer.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/Inspection.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/NominalProjections.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/ReplayAudit.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/Structural/Shape/Details.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/StructuralConformance.hs +1/−1
- test/conformance-import-planning/Generated/ImportPlanningCollisions/StructuralProjections.hs +1/−1
- test/conformance-intake-delegated-noop/DeliveryOutcomes/DeliveryOutcomeInbox/DelegatedIntegration.hs +129/−0
- test/conformance-intake-delegated-noop/DeliveryOutcomes/DeliveryStatus/BehaviorHoles.hs +20/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/BehaviorSourceMap.hs +30/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/Courier/Contract.hs +60/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryOutcomeInbox/Inbox.hs +93/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/BehaviorContract.hs +416/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/Codec.hs +64/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/Domain.hs +42/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/EventStream.hs +81/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/Harness.hs +52/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/Projection.hs +4/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/DeliveryStatus/Transducer.hs +61/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/Inspection.hs +47/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/Nominals.hs +28/−0
- test/conformance-intake-delegated-noop/Generated/DeliveryOutcomes/ReplayAudit.hs +23/−0
- test/conformance-intake-delegated-noop/Main.hs +132/−0
- test/conformance-intake-delegated-noop/keiro-dsl-cabal-fragment.context.delivery-outcomes.txt +36/−0
- test/conformance-intake-delegated-noop/keiro-dsl-ledger.context.delivery-outcomes.txt +40/−0
- test/conformance-intake-delegated/Generated/HospitalCapacity/Emergency/Contract.hs +1/−1
- test/conformance-intake-delegated/Generated/HospitalCapacity/IncidentInbox/Inbox.hs +1/−1
- test/conformance-intake-full/Generated/HospitalCapacity/Emergency/Contract.hs +1/−1
- test/conformance-intake-full/Generated/HospitalCapacity/IncidentInbox/Inbox.hs +1/−1
- test/conformance-intake-runtime/Generated/HospitalCapacity/Emergency/Contract.hs +1/−1
- test/conformance-intake-runtime/Generated/HospitalCapacity/IncidentInbox/Inbox.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/Inspection.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/JobType/Queue.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/JobType/QueueCodec.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/JobType/QueuePolicy.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/Nominals.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/Nominals/Internal.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/ProjectionCatalog.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/Structural/NominalLeaves.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/StructuralConformance.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/ValidateCustomType/QueryContract.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/ValidateCustomType/ReadModel.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/ValidateCustomType/ReadModelHarness.hs +1/−1
- test/conformance-keyword-segments/Generated/KeywordSegments/ValidateCustomType/ReadModelTable.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/MappedJobs/Queue.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/MappedJobs/QueueCodec.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/MappedJobs/QueuePolicy.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/Structural/Shape/JobMetadata.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/Structural/Shape/JobPayload.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/StructuralConformance.hs +1/−1
- test/conformance-mapped-queue/Generated/MappedQueue/StructuralProjections.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/AccountSummary/QueryContract.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/AccountSummary/ReadModel.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/AccountSummary/ReadModelHarness.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/AccountSummary/ReadModelTable.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/Inspection.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/ProjectionCatalog.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/Structural/Shape/AccountLookup.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/Structural/Shape/AccountProfile.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/Structural/Shape/AccountSummary.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/Structural/Shape/TenantKey.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/Structural/Shape/UnusedFilter.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/StructuralConformance.hs +1/−1
- test/conformance-mapped-readmodel/Generated/MappedReadmodel/StructuralProjections.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/BehaviorSourceMap.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Inspection.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/BehaviorContract.hs +28/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/Codec.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/Domain.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/EventStream.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/Harness.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/Projection.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/Lifecycle/Transducer.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/ReplayAudit.hs +1/−1
- test/conformance-mapped-register-construction/Generated/MappedRegisterConstruction/StructuralConformance.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/BehaviorSourceMap.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/Inspection.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ReplayAudit.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/BehaviorContract.hs +28/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/Codec.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/Domain.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/EventStream.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/Harness.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/Projection.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/ScopeGate/Transducer.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/Structural/Shape/Request.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/Structural/Shape/RequiredScope.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/StructuralConformance.hs +1/−1
- test/conformance-mapped-structural-enum-equality/Generated/MappedStructuralEnumEquality/StructuralProjections.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/BehaviorSourceMap.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Conformance.hs +10/−0
- test/conformance-newsurface/Generated/TransferRouting/Hospital/BehaviorContract.hs +28/−1
- test/conformance-newsurface/Generated/TransferRouting/Hospital/Codec.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Hospital/Domain.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Hospital/EventStream.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Hospital/Harness.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Hospital/Projection.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Hospital/Transducer.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/HospitalLoad/ReadModel.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/HospitalLoad/ReadModelHarness.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/HospitalLoad/ReadModelTable.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/HospitalTransferRouter/Router.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/HospitalTransferRouter/RouterHarness.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/Inspection.hs +1/−1
- test/conformance-newsurface/Generated/TransferRouting/ReplayAudit.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/Inspection.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/Nominals.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/Nominals/Internal.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/ProjectionCatalog.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/StructuralConformance.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/TemplateLookup/QueryContract.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/TemplateLookup/ReadModel.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/TemplateLookup/ReadModelHarness.hs +1/−1
- test/conformance-nominal-query-only/Generated/MappedNominalQueryOnly/TemplateLookup/ReadModelTable.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/Nominals.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/Nominals/Internal.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/Structural/NominalLeaves.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/StructuralConformance.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/TemplateWork/Queue.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/TemplateWork/QueueCodec.hs +1/−1
- test/conformance-nominal-queue-only/Generated/MappedNominalQueueOnly/TemplateWork/QueuePolicy.hs +1/−1
- test/conformance-nominal-scalars/Generated/NominalScalars/BehaviorSourceMap.hs +1/−1
- test/conformance-nominal-scalars/Generated/NominalScalars/Inspection.hs +1/−1
- test/conformance-nominal-scalars/Generated/NominalScalars/Nominal/Shape/OrderStatus.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/BehaviorContract.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/Codec.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/Domain.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/EventStream.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/Harness.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/Projection.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalLedger/Transducer.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/NominalProjections.hs too large to diff
- test/conformance-nominal-scalars/Generated/NominalScalars/ReplayAudit.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/BehaviorSourceMap.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/BehaviorContract.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/Codec.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/Domain.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/EventStream.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/Harness.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/Projection.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Hospital/Transducer.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Inspection.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Nominals.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Nominals/Internal.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/ReplayAudit.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/BehaviorContract.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/Codec.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/Domain.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/EventStream.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/Harness.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/Projection.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/Surge/Transducer.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/SurgeFlow/Process.hs too large to diff
- test/conformance-process-full/Generated/SurgeDemo/SurgeFlow/ProcessHarness.hs too large to diff
- test/conformance-process-full/Main.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/AuditOnly/Input.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/AuditOnly/Process.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/AuditOnly/ProcessHarness.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/BehaviorSourceMap.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/BehaviorContract.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/Codec.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/Domain.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/EventStream.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/Harness.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/Projection.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Incident/Transducer.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentReaction/Input.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentReaction/Process.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentReaction/ProcessHarness.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/BehaviorContract.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/Codec.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/Domain.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/EventStream.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/Harness.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/Projection.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/IncidentSaga/Transducer.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Inspection.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Nominals.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/Nominals/Internal.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/ReplayAudit.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/ScalingReaction/Input.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/ScalingReaction/Process.hs too large to diff
- test/conformance-process-reactions/Generated/ProcessReactions/ScalingReaction/ProcessHarness.hs too large to diff
- test/conformance-process-reactions/Main.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/BehaviorSourceMap.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/BehaviorContract.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/Codec.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/Domain.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/EventStream.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/Harness.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/Projection.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Hospital/Transducer.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/HospitalSurge/Process.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/HospitalSurge/ProcessHarness.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Inspection.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Nominals.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Nominals/Internal.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/ReplayAudit.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/BehaviorContract.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/Codec.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/Domain.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/EventStream.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/Harness.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/Projection.hs too large to diff
- test/conformance-process-runtime/Generated/HospitalCapacity/Surge/Transducer.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/BehaviorSourceMap.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/BehaviorContract.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/Codec.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/Domain.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/EventStream.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/Harness.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/Projection.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Escalation/Transducer.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/BehaviorContract.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/Codec.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/Domain.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/EventStream.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/Harness.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/Projection.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Incident/Transducer.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/IncidentEscalation/Input.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/IncidentEscalation/Process.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/IncidentEscalation/ProcessHarness.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Inspection.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Nominals.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/Nominals/Internal.hs too large to diff
- test/conformance-process-state-authority/Generated/IncidentResponse/ReplayAudit.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/BehaviorSourceMap.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/BehaviorContract.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/Codec.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/Domain.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/EventStream.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/Harness.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/Projection.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Incident/Transducer.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/BehaviorContract.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/Codec.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/Domain.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/EventStream.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/Harness.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/Projection.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentSaga/Transducer.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentTimers/Input.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentTimers/Process.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/IncidentTimers/ProcessHarness.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Inspection.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Nominals.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/Nominals/Internal.hs too large to diff
- test/conformance-process-timers/Generated/ProcessTimers/ReplayAudit.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/BehaviorSourceMap.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/BehaviorContract.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/Codec.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/Domain.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/EventStream.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/Harness.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/Projection.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Hospital/Transducer.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/HospitalSurge/Process.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/HospitalSurge/ProcessHarness.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Inspection.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Nominals.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Nominals/Internal.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/ReplayAudit.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/BehaviorContract.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/Codec.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/Domain.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/EventStream.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/Harness.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/Projection.hs too large to diff
- test/conformance-process/Generated/HospitalCapacity/Surge/Transducer.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/BehaviorSourceMap.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/CatalogAudit/ReadModel.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/CatalogAudit/ReadModelHarness.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/CatalogAudit/ReadModelTable.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Inspection.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderInline/QueryContract.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderInline/ReadModel.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderInline/ReadModelHarness.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderInline/ReadModelTable.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderTotalsLookup/ReadModel.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderTotalsLookup/ReadModelHarness.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/OrderTotalsLookup/ReadModelTable.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/BehaviorContract.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/Codec.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/Domain.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/EventStream.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/Harness.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/Projection.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Orders/Transducer.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/ProjectionCatalog.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/QualificationJobs/Queue.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/QualificationJobs/QueueCodec.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/QualificationJobs/QueuePolicy.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/ReplayAudit.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/ShipmentLookup/ReadModel.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/ShipmentLookup/ReadModelHarness.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/ShipmentLookup/ReadModelTable.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/BehaviorContract.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/Codec.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/Domain.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/EventStream.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/Harness.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/Projection.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Shipments/Transducer.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/Structural/Shape/QualificationPayload.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/StructuralConformance.hs too large to diff
- test/conformance-projection-catalog/Generated/CatalogDemo/StructuralProjections.hs too large to diff
- test/conformance-publisher-runtime/Generated/HospitalCapacity/Emergency/Contract.hs too large to diff
- test/conformance-publisher-runtime/Generated/HospitalCapacity/HospitalPublisher/Publisher.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModel.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModelHarness.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModelTable.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/ReservationWork/Queue.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/ReservationWork/QueueCodec.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/ReservationWork/QueuePolicy.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/TransferDecisions/ReadModel.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/TransferDecisions/ReadModelHarness.hs too large to diff
- test/conformance-queue-runtime/Generated/HospitalCapacity/TransferDecisions/ReadModelTable.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModel.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModelHarness.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/AcceptedTransferNeeds/ReadModelTable.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/ReservationWork/Queue.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/ReservationWork/QueueCodec.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/ReservationWork/QueuePolicy.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/TransferDecisions/ReadModel.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/TransferDecisions/ReadModelHarness.hs too large to diff
- test/conformance-queue/Generated/HospitalCapacity/TransferDecisions/ReadModelTable.hs too large to diff
- test/conformance-readmodel-runtime/Generated/HospitalCapacity/TransferDecisions/ReadModel.hs too large to diff
- test/conformance-readmodel-runtime/Generated/HospitalCapacity/TransferDecisions/ReadModelHarness.hs too large to diff
- test/conformance-readmodel-runtime/Generated/HospitalCapacity/TransferDecisions/ReadModelTable.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/BehaviorSourceMap.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashJobs/Queue.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashJobs/QueueCodec.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashJobs/QueuePolicy.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashLookup/QueryContract.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashLookup/ReadModel.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashLookup/ReadModelHarness.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashLookup/ReadModelTable.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/BehaviorContract.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/Codec.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/Domain.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/EventStream.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/Harness.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/Projection.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/HashStore/Transducer.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/Inspection.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/ProjectionCatalog.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/ReplayAudit.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/Structural/Shape/ContentHash.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/Structural/Shape/HashEnvelope.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/Structural/Shape/MaybeContentHash.hs too large to diff
- test/conformance-refined-base16/Generated/RefinedBase16/StructuralConformance.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/BehaviorSourceMap.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Inspection.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/BehaviorContract.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/Codec.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/Domain.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/EventStream.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/Harness.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/Projection.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/Note/Transducer.hs too large to diff
- test/conformance-replay/Generated/ReplayDivergence/ReplayAudit.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/BehaviorSourceMap.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Inspection.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/BehaviorContract.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/Codec.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/Domain.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/EventStream.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/Harness.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/Projection.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/Page/Transducer.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/PagingRouter/Router.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/PagingRouter/RouterHarness.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/ReplayAudit.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/ServiceOncall/ReadModel.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/ServiceOncall/ReadModelHarness.hs too large to diff
- test/conformance-router-full/Generated/IncidentPaging/ServiceOncall/ReadModelTable.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/BehaviorSourceMap.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Inspection.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/BehaviorContract.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/Codec.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/Domain.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/EventStream.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/Harness.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/Projection.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/Page/Transducer.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/PagingRouter/Router.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/PagingRouter/RouterHarness.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/ReplayAudit.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/ServiceOncall/ReadModel.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/ServiceOncall/ReadModelHarness.hs too large to diff
- test/conformance-router-runtime/Generated/IncidentPaging/ServiceOncall/ReadModelTable.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/BehaviorSourceMap.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Inspection.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/BehaviorContract.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/Codec.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/Domain.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/EventStream.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/Harness.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/Projection.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/Page/Transducer.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/PagingRouter/Router.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/PagingRouter/RouterHarness.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/ReplayAudit.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/ServiceOncall/ReadModel.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/ServiceOncall/ReadModelHarness.hs too large to diff
- test/conformance-router/Generated/IncidentPaging/ServiceOncall/ReadModelTable.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/BehaviorSourceMap.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/Inspection.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/Nominals.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/Nominals/Internal.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ReplayAudit.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/BehaviorContract.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/Codec.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/Domain.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/EventStream.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/Harness.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/Projection.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/ScalarAccount/Transducer.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/Structural/Shape/Limits.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/StructuralConformance.hs too large to diff
- test/conformance-scalar-expressions/Generated/AggregateScalarExpressions/StructuralProjections.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/BehaviorContract.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/Codec.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/Domain.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/EventStream.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/Harness.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/Projection.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Alpha/Generated/Transducer.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/AlphaView/Generated/ReadModel.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/AlphaView/Generated/ReadModelHarness.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/AlphaView/Generated/ReadModelTable.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/BehaviorContract.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/Codec.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/Domain.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/EventStream.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/Harness.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/Projection.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Assignment/Generated/Transducer.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/BehaviorContract.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/Codec.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/Domain.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/EventStream.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/Harness.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/Projection.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Beta/Generated/Transducer.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/BetaView/Generated/ReadModel.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/BetaView/Generated/ReadModelHarness.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/BetaView/Generated/ReadModelTable.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/BehaviorSourceMap.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/Conformance.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/Inspection.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/Nominals.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/Nominals/Internal.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/ReplayAudit.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/Generated/StructuralConformance.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/WorkspaceProofWorkflow/Generated/WorkflowFacts.hs too large to diff
- test/conformance-service-package/runtime/src/Proof/WorkspaceProof/WorkspaceProofWorkflow/Generated/WorkflowRuntime.hs too large to diff
- test/conformance-service-package/runtime/src/keiro-dsl-conformance.workspace.workspace-proof/keiro-dsl-conformance-ledger.txt too large to diff
- test/conformance-service-package/runtime/src/keiro-dsl-conformance.workspace.workspace-proof/keiro-workspace-proof-conformance.cabal too large to diff
- test/conformance-service-package/runtime/src/keiro-dsl-conformance.workspace.workspace-proof/src/Main.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/BehaviorSourceMap.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Inspection.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Nominals.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Nominals/Internal.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/ReplayAudit.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/BehaviorContract.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/Codec.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/Domain.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/EventStream.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/Harness.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/Projection.hs too large to diff
- test/conformance-snapshot/Generated/HospitalCapacity/Reservation/Transducer.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/BehaviorSourceMap.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Inspection.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Nominal/Shape/Channel.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/NominalProjections.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Nominals.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Nominals/Internal.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/ProjectionCatalog.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/ReplayAudit.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Structural/NominalLeaves.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Structural/Shape/TemplateBook.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Structural/Shape/TemplateLookupInput.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Structural/Shape/TemplateLookupRow.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Structural/Shape/TemplateRef.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/Structural/Shape/TemplateState.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/StructuralConformance.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/StructuralProjections.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/BehaviorContract.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/Codec.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/Domain.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/EventStream.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/Harness.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/Projection.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateCatalog/Transducer.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateDeliveryRouter/Router.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateDeliveryRouter/RouterHarness.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateLookup/QueryContract.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateLookup/ReadModel.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateLookup/ReadModelHarness.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateLookup/ReadModelTable.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateWork/Queue.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateWork/QueueCodec.hs too large to diff
- test/conformance-structural-nominals/Generated/StructuralNominalLeaves/TemplateWork/QueuePolicy.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/BehaviorSourceMap.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/Inspection.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelJobs/Queue.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelJobs/QueueCodec.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelJobs/QueuePolicy.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelLookup/QueryContract.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelLookup/ReadModel.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelLookup/ReadModelHarness.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelLookup/ReadModelTable.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/BehaviorContract.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/Codec.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/Domain.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/EventStream.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/Harness.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/Projection.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/LabelStore/Transducer.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/ProjectionCatalog.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/ReplayAudit.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/Structural/Shape/LabelEnvelope.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/Structural/Shape/MaybeTextLabels.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/Structural/Shape/TextLabels.hs too large to diff
- test/conformance-structural-text-sets/Generated/StructuralTextSets/StructuralConformance.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/BehaviorContract.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/Codec.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/Domain.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/EventStream.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/Harness.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/Projection.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ArtifactCatalog/Transducer.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/BehaviorSourceMap.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/Inspection.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/ReplayAudit.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/Structural/Shape/ArtifactInfo.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/Structural/Shape/ArtifactKind.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/Structural/Shape/ArtifactLocation.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/Structural/Shape/ArtifactMetadata.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/StructuralConformance.hs too large to diff
- test/conformance-structural/Generated/StructuralConformance/StructuralProjections.hs too large to diff
- test/conformance-structural/Main.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/BehaviorSourceMap.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Inspection.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Nominals.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Nominals/Internal.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/BehaviorContract.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/Codec.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/Domain.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/EventStream.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/Harness.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/Projection.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/Order/Transducer.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderFlow/Input.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderFlow/Process.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderFlow/ProcessHarness.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/BehaviorContract.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/Codec.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/Domain.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/EventStream.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/Harness.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/Projection.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/OrderSaga/Transducer.hs too large to diff
- test/conformance-topology-machine/Generated/TopologyMachine/ReplayAudit.hs too large to diff
- test/conformance-topology-machine/Main.hs too large to diff
- test/conformance-topology-machine/TopologyMachine/Order/BehaviorHoles.hs too large to diff
- test/conformance-topology-machine/TopologyMachine/Order/Holes.hs too large to diff
- test/conformance-topology-machine/TopologyMachine/OrderFlow/ProcessHoles.hs too large to diff
- test/conformance-topology-machine/TopologyMachine/OrderSaga/BehaviorHoles.hs too large to diff
- test/conformance-topology-machine/keiro-dsl-cabal-fragment.context.topology-machine.txt too large to diff
- test/conformance-topology-machine/keiro-dsl-ledger.context.topology-machine.txt too large to diff
- test/conformance-v2/Generated/HospitalCapacity/BehaviorSourceMap.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Inspection.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Nominals.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Nominals/Internal.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/ReplayAudit.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/BehaviorContract.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/Codec.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/Domain.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/EventStream.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/Harness.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/Projection.hs too large to diff
- test/conformance-v2/Generated/HospitalCapacity/Reservation/Transducer.hs too large to diff
- test/conformance-workflow-full/Generated/HospitalCapacity/HospitalTransferReservation/WorkflowFacts.hs too large to diff
- test/conformance-workflow-full/Generated/HospitalCapacity/HospitalTransferReservation/WorkflowRuntime.hs too large to diff
- test/conformance-workflow-runtime/Generated/HospitalCapacity/HospitalTransferReservation/WorkflowFacts.hs too large to diff
- test/conformance-workflow-runtime/Generated/HospitalCapacity/HospitalTransferReservation/WorkflowRuntime.hs too large to diff
- test/conformance-workflow/Generated/HospitalCapacity/HospitalTransferReservation/WorkflowFacts.hs too large to diff
- test/conformance-workflow/Generated/HospitalCapacity/HospitalTransferReservation/WorkflowRuntime.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/BehaviorSourceMap.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Inspection.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Nominals.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Nominals/Internal.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/BehaviorContract.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/Codec.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/Domain.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/EventStream.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/Harness.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/Projection.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Project/Transducer.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/BehaviorContract.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/Codec.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/Domain.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/EventStream.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/Harness.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/Projection.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ProjectArtifact/Transducer.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/ReplayAudit.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Structural/NominalLeaves.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Structural/Shape/ArtifactClaim.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/Structural/Shape/ProjectClaim.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/StructuralConformance.hs too large to diff
- test/conformance-workspace-nominals/Generated/WorkspaceNominalProof/StructuralProjections.hs too large to diff
- test/conformance/Generated/HospitalCapacity/BehaviorSourceMap.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Inspection.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Nominals.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Nominals/Internal.hs too large to diff
- test/conformance/Generated/HospitalCapacity/ReplayAudit.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/BehaviorContract.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/Codec.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/Domain.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/EventStream.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/Harness.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/Projection.hs too large to diff
- test/conformance/Generated/HospitalCapacity/Reservation/Transducer.hs too large to diff
- test/fixtures/contract-foreign-event-discriminator-body.keiro too large to diff
- test/fixtures/contract-foreign-event-envelope-language5.keiro too large to diff
- test/fixtures/contract-foreign-event-language5.keiro too large to diff
- test/fixtures/contract-foreign-event-optional-added.keiro too large to diff
- test/fixtures/contract-foreign-event-optional-literal-to-declared.keiro too large to diff
- test/fixtures/contract-foreign-event-optional-literal-to-required-declared.keiro too large to diff
- test/fixtures/contract-foreign-event-optional-scalar-change.keiro too large to diff
- test/fixtures/contract-foreign-event-optional-to-required.keiro too large to diff
- test/fixtures/contract-foreign-event.keiro too large to diff
- test/fixtures/contract-rollout-after.keiro too large to diff
- test/fixtures/contract-rollout-before.keiro too large to diff
- test/fixtures/input-source/sourced.keiro too large to diff
- test/fixtures/input-source/unsourced.keiro too large to diff
- test/fixtures/input-source/workspace/integration.keiro too large to diff
- test/fixtures/input-source/workspace/routing.keiro too large to diff
- test/fixtures/input-source/workspace/service.keiro-workspace too large to diff
- test/fixtures/intake-delegated-noop.keiro too large to diff
- test/fixtures/topology-machine.keiro too large to diff
- test/fixtures/topology/hospital-capacity.keiro too large to diff
- test/fixtures/topology/hospital-capacity.topology.golden.json too large to diff
- test/fixtures/topology/incident-command-sourced.keiro too large to diff
- test/fixtures/topology/incident-command-sourced.topology.golden.json too large to diff
- test/fixtures/topology/incident-command.keiro too large to diff
- test/fixtures/topology/incident-command.topology.golden.json too large to diff
- test/fixtures/topology/projection-catalog.keiro too large to diff
- test/fixtures/topology/projection-catalog.topology.golden.json too large to diff
- test/fixtures/topology/schema-examples/aggregate-without-machine.valid.json too large to diff
- test/fixtures/topology/schema-examples/contract-envelope-discriminator.valid.json too large to diff
- test/fixtures/topology/schema-examples/feeds-under-schema-1.invalid.json too large to diff
- test/fixtures/topology/schema-examples/malformed-machine.invalid.json too large to diff
- test/fixtures/topology/workspace/coordination/reaction.keiro too large to diff
- test/fixtures/topology/workspace/domain/incident.keiro too large to diff
- test/fixtures/topology/workspace/service.keiro-workspace too large to diff
- test/fixtures/topology/workspace/service.topology.golden.json too large to diff
- test/topology-machine-proof/TopologyMachineProof.hs too large to diff
@@ -6,6 +6,152 @@ ## [Unreleased] +## 0.26.0.0 — 2026-11-18++### Breaking Changes++- `Keiro.Dsl.Grammar.ContractType` gains the constructor `COptional`, and+ `ContractNode.discriminator` changes from `Name` to the new `ContractDiscriminator`+ (`DiscriminatorBodyKey` or `DiscriminatorEnvelope`). `contractIsOptional` and+ `contractBodyDiscriminator` are new. `DiagnosticCode` inserts+ `ContractOptionalFieldAdded` and `ContractOptionalFieldUsedAsKey`, and+ `LanguageFeature` adds `ContractOptionalFieldSyntax` and+ `ContractEnvelopeDiscriminatorSyntax`. There is no compatibility shim: exhaustive+ matches and record construction must handle the new constructors. Generated modules for+ existing sources are byte-identical. (ExecPlan 345, IR-64)+- `Keiro.Dsl.Grammar.InputDecl` gains the field `source :: Maybe InputSource`; direct+ record construction must supply it (`Nothing` keeps the previous meaning).+ `DiagnosticCode` adds `InputSourceUnresolvedIntake` and `InputSourceEventNotAccepted`,+ and `LanguageFeature` adds `InputSourceSyntax`, so exhaustive matches must handle them.+- `Keiro.Dsl.DiffReport.Remedy` adds `RemedyDeployKeyWritersFirst` and+ `RemedyDrainBeforeStricterReader`; exhaustive matches must handle them.++### New Features++- Candidate Language 6 contract fields may be `Optional <scalar>` for `typeid "prefix"`,+ a declared `id`, `text` or `int`. The generated field is `Maybe`; the encoder omits the+ key when absent and the decoder reads an omitted key or `null` as absent, while any+ other value must satisfy the scalar's parser. `Optional List`, `List Optional` and other+ nesting are refused. An optional field cannot be a publisher `outboxId` or intake+ `dedupe` key (`ContractOptionalFieldUsedAsKey`). `diff` reports an added optional field+ as the warning `ContractOptionalFieldAdded` without a `schemaVersion` bump: the wire is+ compatible, and `consumer-build=advisory` asks for a re-scaffold because the generated+ constructor gains a `Maybe` argument; the default gate passes. A change between required+ and optional is breaking in both directions: required to optional is `producer-last`,+ optional to required (keeping the scalar, or moving between a literal TypeID and a+ declared ID of equal prefix and admission) is `producer-first` with `drain-required`.+ (IR-64)+- Candidate Language 6 contracts may declare `discriminator from envelope`. The generated+ encoder writes no discriminator key, and the module exports+ `parse<Contract>PayloadAs :: Text -> Value -> Either Text <Contract>Payload`, which takes+ the envelope's event type and rejects one the contract does not declare. A change of+ discriminator source is breaking `ContractDiscriminatorChanged`: body key to envelope is+ `producer-last`, envelope to body key is `producer-first` with `drain-required`.+ `keiro-dsl topology` writes `discriminator: null` for such a contract; both topology+ schemas admit `null`. (IR-64)+- `keiro-dsl diff --explain` renders a public-contract finding's rollout from its vector.+ A `producer-first` finding now advises deploying the writers of the newly required key+ first and draining retained messages that omit it before the stricter reader runs;+ previously every contract finding advised `producer-last`. (ExecPlan 345)++- The generated service conformance runner accepts `--behavior-complete`. After the+ unchanged default output, it evaluates every declared behavior key of every aggregate+ against its `BehaviorHoles` witnesses. It prints one `FAIL` row per pending, missing,+ duplicate, or stale key and per failed witness, plus one summary row per aggregate, and+ any failing row exits nonzero. Unverified but correct evidence still passes, as under+ `behaviorConformancePassed`. Without the flag the runner behaves exactly as before and+ evaluates no extra witnesses. `--help` describes both modes; any other argument exits+ with status 2. The service facade adds `runServiceBehaviorChecks :: IO [(String, Bool)]`+ and every generated `BehaviorContract` adds `behaviorConformanceRows`. `BehaviorHoles`+ and `BehaviorContract` stay private in the Cabal fragment. Regenerating rewrites each+ `BehaviorContract.hs`, the facade and the runner `Main.hs`; hand-owned files are+ unchanged. The library adds `Keiro.Dsl.Scaffold.aggregateHasBehaviorContract`, the+ predicate that decides which aggregates get a `BehaviorContract`.+- `keiro-dsl topology <source-or-workspace> --format json` exports the service+ topology as one canonical JSON document with schema id+ `keiro-dsl/service-topology/1`. It has a node for every aggregate, process,+ workflow, router, contract, intake, emit, publisher, workqueue, dispatch, read model+ and operation, and for the projection catalog (projection targets, rebuild groups,+ projection owners, projection revisions and external reads). It has an edge for each+ relation between them, such as `dispatches`, `projects`, `publishes`, `subscribes`,+ `consumes`, `writes` and `observes`. Each source member carries a `sha256` digest+ of its exact bytes. The bytes do not depend on the working directory or on how the+ path was typed. Reordering top-level declarations changes only member digests and+ node lines. The command refuses a service with error diagnostics and prints nothing+ on standard output. The library exports `Keiro.Dsl.Topology`+ (`buildServiceTopology`, `encodeServiceTopology`, `topologySchemaId`,+ `memberDigest`). Existing commands and outputs are unchanged.+- `keiro-dsl scaffold … --topology-out FILE` also writes the service topology,+ byte-identical to `keiro-dsl topology` for the same input. The document is computed+ before scaffold writes anything and written only after it succeeds. A path that names a+ scaffold input, a planned module or a `keiro-dsl-*` record under `--out` is refused. The+ file is not recorded in the scaffold ledger, and scaffold without the flag is unchanged.+- `keiro-dsl topology SOURCE --check FILE` prints nothing and exits zero when `FILE` equals+ the regenerated document. Otherwise it exits 1 and names each changed, new or removed+ member, or, when every digest matches, the recorded and current generator versions.+- The contract is documented in `docs/user/keiro-dsl-service-topology.md` with the JSON+ Schema `docs/user/schemas/keiro-dsl-service-topology-1.schema.json`. The repository gate+ `just topology-schema-validate` (part of `just verify`, using `check-jsonschema` from the+ development shell) validates every golden document against the schema its `schema` field+ names.+- Every aggregate node of the topology now carries `details.machine`, the aggregate's+ keiki state machine: `ownership` (`generated` or `legacy-hole`), `initial`, `states`+ with terminal flags, and every edge with its `source`, keiki `edgeIndex`, `target`,+ `mode` (`Live` or `ReplayOnly`), `command` and `events`. It is an added field within+ `keiro-dsl/service-topology/1`. The new conformance suite+ `keiro-dsl-conformance-topology-machine` proves the export equal to the generated keiki+ transducers walked with keiki's accessors. The keiki edge index now comes from one shared+ layout function used by the transducer builder, the behavior source map and the export;+ generated code is unchanged.+- Candidate Language 6 input sources: a router input, a legacy process input or any+ reaction-process input may declare `from intake <Intake> event <Event>…` between its+ name and its body. `check` reports `InputSourceUnresolvedIntake` for an undeclared intake+ and `InputSourceEventNotAccepted` for each named event the intake does not accept.+ Languages 1 to 5 refuse the clause with `LanguageFeatureRequiresVersion`. A declared+ source changes no generated module, fingerprint, scaffold ledger or `diff` verdict.+ `keiro-dsl topology` exports each source as a `feeds` edge from the intake. A document+ with a `feeds` edge uses schema id `keiro-dsl/service-topology/2`; every other document+ stays `/1` and is byte-identical. The library exports `InputSource` and the new `source`+ field of `InputDecl`.+- Every aggregate node of the topology now carries `details.category`, the stream+ category its generated inspector is mounted under (a saga aggregate's own category, not+ the process's saga category), and every dispatch node carries `details.dedupReadModel`.+ Both are optional fields within the existing schema ids. A committed topology document+ must be regenerated with `scaffold --topology-out` after the upgrade, because+ `topology --check` reports it stale. The library exports+ `Keiro.Dsl.Scaffold.aggregateStreamCategory`; generated code is unchanged.+- `scaffold --topology-out FILE` now writes the document to `FILE.keiro-dsl-tmp` before+ the scaffold writes anything and renames it onto `FILE` after success. A `FILE` that is+ a directory, is `--out` or cannot be created fails with+ `--topology-out FILE cannot be written: <reason>; nothing was written` instead of an+ uncaught exception after the generated tree was written. A refused scaffold removes+ the temporary file.+- `topology --check` no longer blames the keiro-dsl version when the versions are equal.+ A changed workspace service name or manifest file name is reported as+ `the service or manifest changed (recorded service 'A', current 'B')`; any other+ difference with matching digests and version says so. Workspace member digests are now+ computed from the bytes the loader parsed, read once and decoded as UTF-8 independent+ of the locale.+- New conformance proof `keiro-dsl-conformance-intake-delegated-noop`+ (`test/fixtures/intake-delegated-noop.keiro`): a generated candidate Language 6+ delegated intake feeds an outcome-enabled aggregate with a typed no-op edge through the+ hand-written `Keiro.Inbox.Delegated.delegatedDomainCommand` handler against PostgreSQL.+ It checks the accepted marker receipt, the completed inbox row for a typed no-op, a+ duplicate redelivery without dispatch, and the untyped adapter's refusal of the same+ silent edge. The intake grammar and generated runner are unchanged. (ExecPlan 344, IR-65)+- The `DelegatedInboxDedupeOnlyPersistence` diagnostic now says that the delegated intake+ owns no inbox storage for `persist = dedupe-only` to describe, and that a typed no-op+ receipt row's persistence is chosen by the handler through `DelegatedNoOpReceipt`. The+ rule and its code are unchanged. (ExecPlan 344)++### Bug Fixes++- A generated contract encoder no longer binds an unused `payload` for a fieldless event,+ and imports `(.=)` only when an encoder entry uses it. A fieldless event in a+ body-discriminated contract, and an envelope-discriminated contract whose events are all+ fieldless, previously failed to compile under `-Wall -Werror`. Output for events with+ fields is unchanged. (ExecPlan 345)+ ## 0.25.1.0 — 2026-11-16 ### New Features
@@ -2,13 +2,20 @@ -- scaffolding, and explicit generated-Haskell edition migration. module Main (main) where -import Control.Monad (when)-import Data.Aeson ((.=))+import Control.Exception (IOException, onException, try)+import Control.Monad (unless, when)+import Data.Aeson ((.:), (.=)) import Data.Aeson qualified as Aeson import Data.Aeson.Text qualified as AesonText+import Data.Aeson.Types qualified as AesonTypes+import Data.ByteString qualified as BS+import Data.IORef (IORef, modifyIORef', newIORef, readIORef)+import Data.List (isPrefixOf) import Data.List.NonEmpty qualified as NE+import Data.Map.Strict qualified as Map import Data.Maybe (fromMaybe) import Data.Text qualified as T+import Data.Text.Encoding qualified as TE import Data.Text.IO qualified as TIO import Data.Text.Lazy.IO qualified as TLIO import Keiro.Dsl.BehaviorCoverage qualified as Behavior@@ -33,15 +40,16 @@ import Keiro.Dsl.SemanticContract (CheckedService, EffectiveLanguageContract (..), checkedLanguageContract, checkedSource, checkedSpec, languageContractNotice) import Keiro.Dsl.Skeleton (skeletonFor) import Keiro.Dsl.SourceIndex (ParsedSourceDocument (..), SemanticSourceIndex, emptySemanticSourceIndex)+import Keiro.Dsl.Topology (TopologySourceKind (..), buildServiceTopology, encodeServiceTopology, memberDigest, renderTopologyError) import Keiro.Dsl.Validate (Diagnostic (..), DiagnosticCode (..), DiagnosticOrigin (..), Severity (..), diagnosticCodeText, diagnosticOrigin, minimumLanguageDiagnostics, parseDiagnosticCode, renderDiagnostic, validateService)-import Keiro.Dsl.Workspace (ContentSource (..), LineMap (..), OwnershipIndex (..), WorkspaceDiagnostic (..), WorkspaceFailure (..), WorkspaceFile (..), WorkspaceLocation (..), WorkspaceManifest (..), WorkspaceMember (..), WorkspaceMemberRef (..), WorkspaceSpec (..), checkWorkspace, checkWorkspaceForService, checkedWorkspace, fileContentSource, isWorkspacePath, loadWorkspace, nodeOwner, parseWorkspaceManifest, renderWorkspaceDiagnostic, renderWorkspaceFailure, renderWorkspaceManifest)+import Keiro.Dsl.Workspace (ContentSource (..), LineMap (..), OwnershipIndex (..), WorkspaceDiagnostic (..), WorkspaceFailure (..), WorkspaceFile (..), WorkspaceLocation (..), WorkspaceManifest (..), WorkspaceMember (..), WorkspaceMemberRef (..), WorkspaceSpec (..), checkWorkspace, checkWorkspaceForService, checkedWorkspace, fileContentSource, isWorkspacePath, loadWorkspace, nodeOwner, oneMemberParsedDocumentWorkspace, parseWorkspaceManifest, renderWorkspaceDiagnostic, renderWorkspaceFailure, renderWorkspaceManifest, workspaceDisplayPath) import Keiro.Dsl.WorkspaceDiff (WorkspaceChange (..), WorkspaceMeta (..), diffWorkspaces, renderWorkspaceFinding, workspaceDiffReportWithImpacts)-import Keiro.Dsl.WorkspaceScaffold (executeWorkspaceScaffoldWithMigrations, planWorkspaceScaffoldWithRuntimePackageAndGoldens, renderWorkspaceScaffoldReport)+import Keiro.Dsl.WorkspaceScaffold (WorkspacePlan (..), executeWorkspaceScaffoldWithMigrations, planWorkspaceScaffoldWithRuntimePackageAndGoldens, renderWorkspaceScaffoldReport) import Numeric.Natural (Natural) import Options.Applicative-import System.Directory (canonicalizePath, createDirectoryIfMissing, doesFileExist)-import System.Exit (ExitCode (..), exitFailure)-import System.FilePath (isAbsolute, makeRelative, normalise, takeDirectory, takeFileName, (</>))+import System.Directory (canonicalizePath, createDirectory, createDirectoryIfMissing, doesDirectoryExist, doesFileExist, doesPathExist, removeDirectory, removeFile, renameFile)+import System.Exit (ExitCode (..), exitFailure, exitSuccess, exitWith)+import System.FilePath (addTrailingPathSeparator, isAbsolute, makeRelative, normalise, takeDirectory, takeFileName, (</>)) import System.IO (hPutStrLn, stderr) import System.Process (readProcessWithExitCode) import Text.Read (readMaybe)@@ -51,13 +59,16 @@ | Pretty FilePath | Check FilePath CheckOptions | Inspect FilePath InspectionFormat+ | Topology FilePath TopologyFormat (Maybe FilePath) | BehaviorObligations FilePath BehaviorFormat- | Scaffold FilePath FilePath (Maybe String) (Maybe RuntimePackageName) Bool Bool Bool Bool (Maybe FilePath) (Maybe (String, FilePath))+ | Scaffold FilePath FilePath (Maybe String) (Maybe RuntimePackageName) Bool Bool Bool Bool (Maybe FilePath) (Maybe (String, FilePath)) (Maybe FilePath) | Diff FilePath String (Maybe FilePath) (Maybe FilePath) [CompatibilitySurface] Bool (Maybe FilePath) (Maybe DiffCoverageOptions) [DiagnosticCode] | New String data InspectionFormat = InspectionJson +data TopologyFormat = TopologyJson+ data BehaviorFormat = BehaviorText | BehaviorJson data CheckCoverageOptions = CheckCoverageOptions@@ -104,11 +115,14 @@ "inspect" (info (Inspect <$> fileArg <*> inspectionFormatOpt <**> helper) (progDesc "Inspect source-language provenance for a .keiro file or workspace as JSON")) <> command+ "topology"+ (info (Topology <$> fileArg <*> topologyFormatOpt <*> optional topologyCheckOpt <**> helper) (progDesc "Export the service topology (keiro-dsl/service-topology/1) of a .keiro file or workspace as canonical JSON"))+ <> command "behavior-obligations" (info (BehaviorObligations <$> fileArg <*> behaviorFormatOpt <**> helper) (progDesc "List static aggregate behavior obligations for a .keiro file or workspace")) <> command "scaffold"- (info (Scaffold <$> fileArg <*> outOpt <*> optional moduleRootOpt <*> optional runtimePackageOpt <*> collocateSwitch <*> forceGeneratedOverwriteSwitch <*> applyNameMigrationsSwitch <*> applyGeneratedHaskellEditionSwitch <*> optional goldensOpt <*> codecComparisonOpts <**> helper) (progDesc "Emit the generated layer + typed holes from a .keiro file"))+ (info (Scaffold <$> fileArg <*> outOpt <*> optional moduleRootOpt <*> optional runtimePackageOpt <*> collocateSwitch <*> forceGeneratedOverwriteSwitch <*> applyNameMigrationsSwitch <*> applyGeneratedHaskellEditionSwitch <*> optional goldensOpt <*> codecComparisonOpts <*> optional topologyOutOpt <**> helper) (progDesc "Emit the generated layer + typed holes from a .keiro file")) <> command "diff" (info (Diff <$> fileArg <*> sinceOpt <*> optional emitGoldensOpt <*> optional replayImpactOutOpt <*> many gateOpt <*> explainSwitch <*> optional reportOutOpt <*> diffCoverageOptions <*> diffDenyCodesOptions <**> helper) (progDesc "Classify spec changes since a git ref as per-surface compatibility vectors; exit non-zero on any gated BREAKING surface"))@@ -347,6 +361,25 @@ parseFormat "json" = Right InspectionJson parseFormat other = Left ("unsupported inspection format: " <> other <> " (expected json)") +topologyCheckOpt :: Parser FilePath+topologyCheckOpt =+ strOption+ (long "check" <> metavar "FILE" <> help "Print no document; exit 1 and name the stale member when FILE differs from the regenerated topology")++topologyOutOpt :: Parser FilePath+topologyOutOpt =+ strOption+ (long "topology-out" <> metavar "FILE" <> help "Also write the keiro-dsl/service-topology document, byte-identical to `keiro-dsl topology`, after a successful scaffold")++topologyFormatOpt :: Parser TopologyFormat+topologyFormatOpt =+ option+ (eitherReader parseFormat)+ (long "format" <> metavar "json" <> value TopologyJson <> help "Topology output format (json)")+ where+ parseFormat "json" = Right TopologyJson+ parseFormat other = Left ("unsupported topology format: " <> other <> " (expected json)")+ behaviorFormatOpt :: Parser BehaviorFormat behaviorFormatOpt = option@@ -538,8 +571,8 @@ | isWorkspacePath fp = runWorkspaceInspect fp format run (BehaviorObligations fp format) | isWorkspacePath fp = runWorkspaceBehaviorObligations fp format-run (Scaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest)- | isWorkspacePath fp = runWorkspaceScaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest+run (Scaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest topologyOut)+ | isWorkspacePath fp = runWorkspaceScaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest topologyOut run (Diff fp ref emitGoldensRoot replayImpactOut gatedSurfaces explain reportOut coverageOptions denyCodes) | isWorkspacePath fp = runWorkspaceDiff fp ref emitGoldensRoot replayImpactOut gatedSurfaces explain reportOut coverageOptions denyCodes run (Parse fp) = do@@ -586,7 +619,7 @@ Right obligations -> TIO.putStrLn (renderBindingObligations ((.context) spec) obligations) else pure () when (not ((.checkEmit) options) && not ((.checkExplainBindings) options)) (putStrLn "OK")-run (Scaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest) = do+run (Scaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest topologyOut) = do input <- TIO.readFile fp case parseSourceDocument fp input of Left failure -> do@@ -610,8 +643,9 @@ exitFailure (_, Left comparisonError) -> TIO.hPutStrLn stderr comparisonError >> exitFailure (Right modules, Right comparisonModule) -> do+ topologyExport <- prepareTopologyOut fp out [fp] (map (.path) modules) topologyOut comparisonReady <- preflightComparison out comparisonRequest comparisonModule- case comparisonReady of+ discardTopologyOutOnFailure topologyExport $ case comparisonReady of Left comparisonError -> TIO.hPutStrLn stderr comparisonError >> exitFailure Right () -> do result <- executeServiceScaffoldWithRuntimePackageAndMigrations cliRuntimePackage applyNameMigrations applyGeneratedHaskellEdition out forceGeneratedOverwrite fp ((.sourceLanguage) parsedSource) ctx service modules@@ -622,6 +656,7 @@ Right report -> do mapM_ (TIO.hPutStrLn stderr) (renderScaffoldReport report) writeComparison comparisonRequest comparisonModule+ writeTopologyOut topologyExport run (New kind) = case skeletonFor (T.pack kind) of Left err -> hPutStrLn stderr (T.unpack err) >> exitFailure@@ -633,6 +668,11 @@ Right ParsedSourceDocument {parsedSource = parsedSource} -> TLIO.putStrLn (AesonText.encodeToLazyText (sourceInspection fp ((.sourceLanguage) parsedSource) (checkedSource parsedSource)))+run (Topology fp TopologyJson checkFile) = case checkFile of+ Nothing -> renderTopology fp >>= either refuse BS.putStr+ Just committed -> checkTopology fp committed+ where+ refuse diagnostics = mapM_ (TIO.hPutStrLn stderr) diagnostics >> exitFailure run (BehaviorObligations fp format) = do input <- TIO.readFile fp case parseSourceDocument fp input of@@ -748,6 +788,253 @@ where sourceLanguage = (.sourceLanguage) member +-- | Load, check and export the source or workspace at the given path. Left+-- carries the rendered diagnostics that refuse the export. The @topology@+-- command, @scaffold --topology-out@ and @topology --check@ all call this, so+-- the three cannot disagree on the bytes.+renderTopology :: FilePath -> IO (Either [T.Text] BS.ByteString)+renderTopology fp+ | isWorkspacePath fp = do+ (source, recorded) <- digestingContentSource (takeDirectory fp)+ loaded <- loadWorkspace source fp+ case loaded of+ Left failure -> pure (Left (renderWorkspaceFailure fp failure))+ Right workspace -> do+ -- The whole-service validation `check` runs on a workspace.+ let diagnostics = checkWorkspace workspace+ if any ((== Error) . (.severity)) diagnostics+ then pure (Left (map (renderWorkspaceDiagnostic fp) diagnostics))+ else do+ -- Digests of the bytes the loader parsed, never a second read. A+ -- member missing here is reported as TopologyMissingDigest.+ digestOf <- readIORef recorded+ let digests =+ [ (path, digest)+ | member <- (.members) workspace,+ let path = (.path) member,+ Just digest <- [Map.lookup path digestOf]+ ]+ pure (exportTopology TopologyWorkspace fp workspace digests)+ | otherwise = do+ -- Read the bytes once: the digest and the parse must see the same+ -- content, and /dev/stdin cannot be read twice.+ bytes <- BS.readFile fp+ pure $ case TE.decodeUtf8' bytes of+ Left decodeError -> Left [T.pack (fp <> ": not valid UTF-8: " <> show decodeError)]+ Right input -> case parseSourceDocument fp input of+ Left failure -> Left [renderParseFailure failure]+ Right document@ParsedSourceDocument {parsedSource = parsedSource, sourceIndex = sourceIndex} ->+ let service = checkedSource parsedSource+ diagnostics = checkIndexedServiceDiagnostics Nothing sourceIndex (mkContext Nothing False (checkedSpec service)) service+ in if any ((== Error) . (.severity)) diagnostics+ then Left (map (renderDiagnostic fp) diagnostics)+ else case oneMemberParsedDocumentWorkspace fp document of+ Left failure -> Left [T.pack ("topology: cannot index " <> fp <> ": " <> show failure)]+ Right workspace -> exportTopology TopologySingleSource fp workspace [(takeFileName fp, memberDigest bytes)]++-- | Read files under a directory like 'fileContentSource', but read bytes,+-- record each file's 'memberDigest' under the relative path it was asked for,+-- and decode it as UTF-8 regardless of the process locale. The topology export+-- digests exactly the bytes the workspace loader parsed.+digestingContentSource :: FilePath -> IO (ContentSource, IORef (Map.Map FilePath T.Text))+digestingContentSource root = do+ recorded <- newIORef Map.empty+ let readRelative relative = do+ let full = if root == "." then relative else root </> relative+ exists <- doesFileExist full+ if not exists+ then pure (Left ("no such file: " <> T.pack full))+ else do+ attempt <- try (BS.readFile full)+ case attempt of+ Left readError -> pure (Left (T.pack (show (readError :: IOException))))+ Right bytes -> case TE.decodeUtf8' bytes of+ Left decodeError -> pure (Left ("not valid UTF-8: " <> T.pack (show decodeError)))+ Right text -> do+ modifyIORef' recorded (Map.insert relative (memberDigest bytes))+ pure (Right text)+ pure (ContentSource {csRead = readRelative}, recorded)++exportTopology :: TopologySourceKind -> FilePath -> WorkspaceSpec -> [(FilePath, T.Text)] -> Either [T.Text] BS.ByteString+exportTopology sourceKind fp workspace digests =+ either (Left . pure . renderTopologyError) (Right . encodeServiceTopology) (buildServiceTopology sourceKind fp workspace digests)++-- | @topology --check FILE@: regenerate and compare bytes. On a difference,+-- name every member whose recorded digest differs, is new or was removed; when+-- every digest matches, say that the document differs with unchanged sources+-- (usually a keiro-dsl upgrade, because the generator version is recorded).+checkTopology :: FilePath -> FilePath -> IO ()+checkTopology fp committedPath = do+ committedRead <- try (BS.readFile committedPath) :: IO (Either IOException BS.ByteString)+ committedBytes <- either (const unreadable) pure committedRead+ committed <- maybe unreadable pure (topologySummary committedBytes)+ rendered <- renderTopology fp+ currentBytes <- case rendered of+ Left diagnostics -> mapM_ (TIO.hPutStrLn stderr) diagnostics >> exitFailure+ Right bytes -> pure bytes+ when (currentBytes == committedBytes) exitSuccess+ current <- case topologySummary currentBytes of+ Nothing -> TIO.hPutStrLn stderr "topology check: internal error: the regenerated document does not decode" >> exitFailure+ Just summary -> pure summary+ let recorded = Map.fromList committed.members+ present = Map.fromList current.members+ memberLines =+ [ case Map.lookup path recorded of+ Nothing -> "topology stale: member '" <> T.pack path <> "' is not recorded in " <> T.pack committedPath+ Just recordedDigest -> "topology stale: member '" <> T.pack path <> "' changed (recorded " <> recordedDigest <> ", current " <> currentDigest <> ")"+ | (path, currentDigest) <- Map.toList present,+ Map.lookup path recorded /= Just currentDigest+ ]+ <> [ "topology stale: recorded member '" <> T.pack path <> "' is no longer a source member"+ | path <- Map.keys recorded,+ not (Map.member path present)+ ]+ -- With every member digest equal, blame the first remaining fact that+ -- differs: the generator, then the manifest (service name or source file+ -- name, which are not members and carry no digest).+ unchangedLine+ | committed.generatorVersion /= current.generatorVersion =+ "topology stale: document differs with unchanged sources (generated by keiro-dsl "+ <> committed.generatorVersion+ <> ", current keiro-dsl "+ <> current.generatorVersion+ <> "); regenerate it"+ | committed.service /= current.service || committed.source /= current.source =+ "topology stale: the service or manifest changed (recorded service '"+ <> committed.service+ <> "', current '"+ <> current.service+ <> "'"+ <> ( if committed.source /= current.source+ then "; recorded source '" <> committed.source <> "', current '" <> current.source <> "'"+ else ""+ )+ <> "); regenerate it"+ | otherwise =+ "topology stale: document differs with unchanged sources and the same keiro-dsl version; regenerate it"+ mapM_ (TIO.hPutStrLn stderr) (if null memberLines then [unchangedLine] else memberLines)+ exitWith (ExitFailure 1)+ where+ unreadable :: IO a+ unreadable = do+ TIO.hPutStrLn stderr ("topology check: cannot read '" <> T.pack committedPath <> "' as a keiro-dsl service-topology document")+ exitWith (ExitFailure 1)++-- | The facts @topology --check@ compares when two documents differ.+data TopologySummary = TopologySummary+ { schema :: T.Text,+ service :: T.Text,+ -- | The source kind and file name, as @kind:path@.+ source :: T.Text,+ members :: [(FilePath, T.Text)],+ generatorVersion :: T.Text+ }++-- | The schema id, service, source, members (path and digest) and generator+-- version a topology document records, or Nothing when the bytes are not a+-- service-topology document.+topologySummary :: BS.ByteString -> Maybe TopologySummary+topologySummary bytes = Aeson.decodeStrict bytes >>= AesonTypes.parseMaybe parser+ where+ parser = Aeson.withObject "service topology" $ \document -> do+ schema <- document .: "schema"+ unless ("keiro-dsl/service-topology/" `T.isPrefixOf` schema) (fail "not a service-topology schema id")+ service <- document .: "service"+ sourceObject <- document .: "source"+ sourceKind <- sourceObject .: "kind"+ sourcePath <- sourceObject .: "path"+ members <- document .: "members" >>= mapM (Aeson.withObject "member" (\member -> (,) <$> member .: "path" <*> member .: "sha256"))+ generator <- document .: "generator"+ version <- generator .: "version"+ pure+ TopologySummary+ { schema = schema,+ service = service,+ source = sourceKind <> ":" <> sourcePath,+ members = members,+ generatorVersion = version+ }++-- | A prepared @scaffold --topology-out@: the document already written to a+-- temporary file beside the target, and the directories created to hold it.+data TopologyExport = TopologyExport+ { target :: FilePath,+ temporary :: FilePath,+ -- | Innermost first, so they can be removed in order.+ createdDirectories :: [FilePath]+ }++-- | Prepare @scaffold --topology-out@ before anything is written: refuse a+-- path that would overwrite a scaffold input or output, render the document,+-- and prove the target writable by writing the document to+-- @<target>.keiro-dsl-tmp@ in the target's directory. The caller renames it+-- onto the target only after the scaffold succeeds ('writeTopologyOut') and+-- removes it on every other path ('discardTopologyOutOnFailure').+prepareTopologyOut :: FilePath -> FilePath -> [FilePath] -> [FilePath] -> Maybe FilePath -> IO (Maybe TopologyExport)+prepareTopologyOut _ _ _ _ Nothing = pure Nothing+prepareTopologyOut fp out inputs plannedModules (Just exportPath) = do+ exportCanonical <- canonicalizePath exportPath+ outCanonical <- canonicalizePath out+ protected <- mapM canonicalizePath (inputs <> map (out </>) plannedModules)+ -- Ledgers, Cabal fragments, build manifests and migration reports all live+ -- directly under --out with a keiro-dsl- prefix.+ let scaffoldRecord = takeDirectory exportCanonical == outCanonical && "keiro-dsl-" `isPrefixOf` takeFileName exportCanonical+ when (exportCanonical `elem` protected || scaffoldRecord) $ do+ hPutStrLn stderr ("scaffold: --topology-out " <> exportPath <> " names a scaffold input, a generated or create-once module, or a keiro-dsl record under --out; nothing was written")+ exitFailure+ let cannotWrite :: String -> IO a+ cannotWrite reason = do+ hPutStrLn stderr ("scaffold: --topology-out " <> exportPath <> " cannot be written: " <> reason <> "; nothing was written")+ exitFailure+ -- The scaffold creates --out and every directory above a planned module.+ scaffoldDirectory = exportCanonical == outCanonical || any ((addTrailingPathSeparator exportCanonical `isPrefixOf`) . normalise) (outCanonical : protected)+ isDirectory <- doesDirectoryExist exportPath+ when isDirectory (cannotWrite "it is a directory")+ when scaffoldDirectory (cannotWrite "it is a directory the scaffold creates")+ let temporary = exportPath <> ".keiro-dsl-tmp"+ temporaryExists <- doesPathExist temporary+ when temporaryExists (cannotWrite ("its temporary file " <> temporary <> " already exists"))+ rendered <- renderTopology fp+ bytes <- case rendered of+ Left diagnostics -> mapM_ (TIO.hPutStrLn stderr) diagnostics >> exitFailure+ Right bytes -> pure bytes+ missing <- missingDirectories (takeDirectory exportPath)+ created <- try (mapM_ createDirectory (reverse missing) >> BS.writeFile temporary bytes) :: IO (Either IOException ())+ case created of+ Left writeError -> do+ removeCreatedDirectories missing+ cannotWrite (show writeError)+ Right () -> pure (Just TopologyExport {target = exportPath, temporary = temporary, createdDirectories = missing})+ where+ -- The directories that do not exist yet, innermost first.+ missingDirectories directory = do+ exists <- doesPathExist directory+ if exists || takeDirectory directory == directory+ then pure []+ else (directory :) <$> missingDirectories (takeDirectory directory)++-- | Publish a prepared export after a successful scaffold.+writeTopologyOut :: Maybe TopologyExport -> IO ()+writeTopologyOut = mapM_ $ \export -> renameFile export.temporary export.target++-- | Run the scaffold; if it exits or fails before 'writeTopologyOut' published+-- the export, remove the temporary file and the directories made for it.+discardTopologyOutOnFailure :: Maybe TopologyExport -> IO a -> IO a+discardTopologyOutOnFailure export scaffold = scaffold `onException` mapM_ discard export+ where+ discard prepared = do+ _ <- try (removeFile prepared.temporary) :: IO (Either IOException ())+ removeCreatedDirectories prepared.createdDirectories++-- | Remove directories innermost first, stopping silently at one that is not+-- empty or cannot be removed.+removeCreatedDirectories :: [FilePath] -> IO ()+removeCreatedDirectories = \case+ [] -> pure ()+ directory : rest -> do+ removed <- try (removeDirectory directory) :: IO (Either IOException ())+ either (const (pure ())) (const (removeCreatedDirectories rest)) removed+ runWorkspaceBehaviorObligations :: FilePath -> BehaviorFormat -> IO () runWorkspaceBehaviorObligations fp format = do loaded <- loadWorkspace (fileContentSource (takeDirectory fp)) fp@@ -893,8 +1180,9 @@ Bool -> Maybe FilePath -> Maybe (String, FilePath) ->+ Maybe FilePath -> IO ()-runWorkspaceScaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest = do+runWorkspaceScaffold fp out cliRoot cliRuntimePackage cliCollocate forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition cliGoldens comparisonRequest topologyOut = do loaded <- loadWorkspace (fileContentSource (takeDirectory fp)) fp case loaded of Left failure -> do@@ -922,8 +1210,10 @@ exitFailure (_, Left comparisonError) -> TIO.hPutStrLn stderr comparisonError >> exitFailure (Right plan, Right comparisonModule) -> do+ let memberInputs = [workspaceDisplayPath fp (WorkspaceMemberFile ((.path) member)) | member <- (.members) workspace]+ topologyExport <- prepareTopologyOut fp out (fp : memberInputs) (map ((.path) . fst) ((.modules) plan)) topologyOut comparisonReady <- preflightComparison out comparisonRequest comparisonModule- case comparisonReady of+ discardTopologyOutOnFailure topologyExport $ case comparisonReady of Left comparisonError -> TIO.hPutStrLn stderr comparisonError >> exitFailure Right () -> do result <- executeWorkspaceScaffoldWithMigrations out forceGeneratedOverwrite applyNameMigrations applyGeneratedHaskellEdition plan@@ -934,6 +1224,7 @@ Right report -> do mapM_ (TIO.hPutStrLn stderr) (renderWorkspaceScaffoldReport report) writeComparison comparisonRequest comparisonModule+ writeTopologyOut topologyExport -- | @diff@ on a workspace manifest: compose the working-tree service and the -- service described by the manifest and member blobs at @--since@, then feed both
file too large to diff
@@ -1,6 +1,6 @@ cabal-version: 3.0 name: keiro-dsl-version: 0.25.1.0+version: 0.26.0.0 synopsis: Typed specification toolchain for keiro services description: keiro-dsl is the toolchain over a typed `.keiro` specification of a keiro@@ -151,6 +151,7 @@ Keiro.Dsl.SourceIndex Keiro.Dsl.StructuralConformance Keiro.Dsl.Syntax+ Keiro.Dsl.Topology Keiro.Dsl.TransitionFamily Keiro.Dsl.TypeGraph Keiro.Dsl.Validate@@ -190,7 +191,7 @@ directory >=1.3 && <1.4, filepath >=1.4 && <1.6, keiki >=0.9 && <0.10,- keiro-core ^>=0.25.1.0,+ keiro-core ^>=0.26.0.0, keiro-dsl:generated-haskell-language-internal, megaparsec >=9.6 && <9.9, mmzk-typeid >=0.7 && <0.8,@@ -206,6 +207,8 @@ build-depends: aeson >=2.2 && <2.3, base >=4.21 && <5,+ bytestring >=0.12 && <0.13,+ containers >=0.6 && <0.8, directory >=1.3 && <1.4, filepath >=1.4 && <1.6, keiro-dsl,@@ -227,8 +230,10 @@ Keiro.Dsl.FrontendProfiles Keiro.Dsl.FrontendPublicApiProbe Keiro.Dsl.FrontendSurface+ Keiro.Dsl.InputSourceSpec Keiro.Dsl.MappedRegisterConstruction Keiro.Dsl.MappedStructuralEnumEquality+ Keiro.Dsl.TopologySpec Paths_keiro_dsl build-depends:@@ -241,13 +246,14 @@ filepath >=1.4 && <1.6, hspec >=2.11, keiki >=0.9 && <0.10,- keiro-core ^>=0.25.1.0,+ keiro-core ^>=0.26.0.0, keiro-dsl, keiro-dsl:generated-haskell-language-internal, mmzk-typeid >=0.7 && <0.8, process >=1.6 && <1.7, text >=2.1 && <2.2, time >=1.12 && <1.15,+ vector >=0.13 && <0.14, test-suite keiro-dsl-import-planning-test import: warnings, shared@@ -294,7 +300,7 @@ main-is: Main.hs build-depends: base >=4.21 && <5,- keiro ^>=0.25.1.0,+ keiro ^>=0.26.0.0, keiro-dsl, shibuya-core ^>=0.13.0.1, text >=2.1 && <2.2,@@ -402,7 +408,10 @@ import: warnings, generated-output type: exitcode-stdio-1.0 default-extensions: OverloadedLabels- hs-source-dirs: test/conformance-history-dependent-holes+ hs-source-dirs:+ test/conformance-history-dependent-holes+ test/topology-machine-proof+ main-is: Main.hs other-modules: Conformance.HistoryDependentHoles.Bindings@@ -420,13 +429,18 @@ Generated.HistoryDependentHoles.StructuralConformance HistoryDependentHoles.Assignment.BehaviorHoles HistoryDependentHoles.Assignment.Holes+ TopologyMachineProof build-depends: aeson >=2.2 && <2.3, base >=4.21 && <5,+ bytestring >=0.12 && <0.13, containers >=0.6 && <0.8,+ directory >=1.3 && <1.4,+ filepath >=1.4 && <1.6, keiki >=0.9 && <0.10, keiro,+ keiro-dsl, text >=2.1 && <2.2, time >=1.12 && <1.15, @@ -583,7 +597,10 @@ test-suite keiro-dsl-conformance-structural import: warnings, generated-output type: exitcode-stdio-1.0- hs-source-dirs: test/conformance-structural+ hs-source-dirs:+ test/conformance-structural+ test/topology-machine-proof+ main-is: Main.hs other-modules: Conformance.Structural.Bindings@@ -605,6 +622,7 @@ Generated.StructuralConformance.StructuralConformance Generated.StructuralConformance.StructuralProjections StructuralConformance.ArtifactCatalog.Holes+ TopologyMachineProof build-depends: aeson >=2.2 && <2.3,@@ -612,8 +630,11 @@ bytestring >=0.12 && <0.13, containers >=0.6 && <0.8, deepseq >=1.5 && <1.6,+ directory >=1.3 && <1.4,+ filepath >=1.4 && <1.6, keiki >=0.9 && <0.10, keiro,+ keiro-dsl, text >=2.1 && <2.2, time >=1.12 && <1.15, @@ -1122,7 +1143,7 @@ containers >=0.6 && <0.8, deepseq >=1.5 && <1.6, keiki >=0.9 && <0.10,- keiro ^>=0.25.1.0,+ keiro ^>=0.26.0.0, tasty-bench >=0.5 && <0.6, text >=2.1 && <2.2, time >=1.12 && <1.15,@@ -1374,6 +1395,62 @@ mmzk-typeid >=0.7 && <0.8, text >=2.1 && <2.2, +-- ExecPlan 345 / IR-64: Optional contract fields of every scalar family and a+-- contract whose event type comes from the envelope, decoded through+-- keiro-core's decodeJsonIntegrationEventWith.+test-suite keiro-dsl-conformance-contract-foreign-event+ import: warnings, generated-output+ type: exitcode-stdio-1.0+ hs-source-dirs: test/conformance-contract-foreign-event+ main-is: Main.hs+ other-modules:+ Generated.ContractForeignEvent.Audit.Contract+ Generated.ContractForeignEvent.Nominals+ Generated.ContractForeignEvent.Nominals.Internal+ Generated.ContractForeignEvent.Registration.Contract+ Generated.ContractForeignEvent.Signals.Contract+ Generated.ContractForeignEvent.Structural.NominalLeaves+ Generated.ContractForeignEvent.StructuralConformance++ build-depends:+ aeson >=2.2 && <2.3,+ base >=4.21 && <5,+ bytestring >=0.12 && <0.13,+ keiki >=0.9 && <0.10,+ keiro,+ keiro-core,+ keiro-dsl,+ mmzk-typeid >=0.7 && <0.8,+ text >=2.1 && <2.2,+ time >=1.12 && <1.15,++-- ExecPlan 345 M5 rollout proof: the generated modules of two versions of one+-- contract source, compiled side by side under distinct module roots, decode+-- each other's output in the order keiro-dsl diff reports.+test-suite keiro-dsl-conformance-contract-rollout+ import: warnings, generated-output+ type: exitcode-stdio-1.0+ hs-source-dirs:+ test/conformance-contract-rollout+ test/conformance-contract-rollout/before+ test/conformance-contract-rollout/after++ main-is: Main.hs+ other-modules:+ After.Generated.ContractRollout.Growth.Contract+ After.Generated.ContractRollout.Origin.Contract+ After.Generated.ContractRollout.Presence.Contract+ Before.Generated.ContractRollout.Growth.Contract+ Before.Generated.ContractRollout.Origin.Contract+ Before.Generated.ContractRollout.Presence.Contract++ build-depends:+ aeson >=2.2 && <2.3,+ base >=4.21 && <5,+ containers >=0.6 && <0.8,+ keiro-dsl,+ text >=2.1 && <2.2,+ -- Language-1 compatibility proof: the historical permissive Text contract DTO -- still accepts pre-TypeID-v7 samples and retains its released JSON image. test-suite keiro-dsl-conformance-contract-v1-compat@@ -1423,6 +1500,51 @@ text >=2.1 && <2.2, time >=1.12 && <1.15, +-- IR-65 delegated typed no-op: a generated delegated intake feeds an+-- outcome-enabled aggregate through Keiro.Inbox.Delegated.delegatedDomainCommand+-- against PostgreSQL, acknowledging a typed no-op with a completed inbox row.+test-suite keiro-dsl-conformance-intake-delegated-noop+ import: warnings, generated-output+ type: exitcode-stdio-1.0+ hs-source-dirs: test/conformance-intake-delegated-noop+ main-is: Main.hs+ ghc-options:+ -threaded+ -rtsopts+ -with-rtsopts=-N++ other-modules:+ DeliveryOutcomes.DeliveryOutcomeInbox.DelegatedIntegration+ DeliveryOutcomes.DeliveryStatus.BehaviorHoles+ Generated.DeliveryOutcomes.BehaviorSourceMap+ Generated.DeliveryOutcomes.Courier.Contract+ Generated.DeliveryOutcomes.DeliveryOutcomeInbox.Inbox+ Generated.DeliveryOutcomes.DeliveryStatus.BehaviorContract+ Generated.DeliveryOutcomes.DeliveryStatus.Codec+ Generated.DeliveryOutcomes.DeliveryStatus.Domain+ Generated.DeliveryOutcomes.DeliveryStatus.EventStream+ Generated.DeliveryOutcomes.DeliveryStatus.Harness+ Generated.DeliveryOutcomes.DeliveryStatus.Projection+ Generated.DeliveryOutcomes.DeliveryStatus.Transducer+ Generated.DeliveryOutcomes.Inspection+ Generated.DeliveryOutcomes.Nominals+ Generated.DeliveryOutcomes.ReplayAudit++ build-depends:+ aeson >=2.2 && <2.3,+ base >=4.21 && <5,+ bytestring >=0.12 && <0.13,+ containers >=0.6 && <0.8,+ effectful-core,+ keiki >=0.9 && <0.10,+ keiro,+ keiro-core,+ keiro-test-support,+ kiroku-store,+ text >=2.1 && <2.2,+ time >=1.12 && <1.15,+ vector,+ -- EP-4 M5 full-service conformance: a complete integration service — scaffolded -- inbox dedupe + a filled inbox transaction runner and outbox IntegrationProducer -- — compiled against the live keiro runtime (Inbox / Outbox / Kiroku.Store).@@ -1690,7 +1812,10 @@ test-suite keiro-dsl-conformance-process-full import: warnings, generated-output type: exitcode-stdio-1.0- hs-source-dirs: test/conformance-process-full+ hs-source-dirs:+ test/conformance-process-full+ test/topology-machine-proof+ main-is: Main.hs other-modules: Generated.SurgeDemo.BehaviorSourceMap@@ -1712,12 +1837,17 @@ SurgeDemo.Hospital.Holes SurgeDemo.Surge.Holes SurgeDemo.SurgeFlow.Manager+ TopologyMachineProof build-depends: aeson >=2.2 && <2.3, base >=4.21 && <5,+ bytestring >=0.12 && <0.13,+ directory >=1.3 && <1.4,+ filepath >=1.4 && <1.6, keiki >=0.9 && <0.10, keiro,+ keiro-dsl, shibuya-core ^>=0.13.0.1, text >=2.1 && <2.2, time >=1.12 && <1.15,@@ -1779,7 +1909,10 @@ test-suite keiro-dsl-conformance-process-reactions import: warnings, generated-output type: exitcode-stdio-1.0- hs-source-dirs: test/conformance-process-reactions+ hs-source-dirs:+ test/conformance-process-reactions+ test/topology-machine-proof+ main-is: Main.hs ghc-options: -threaded@@ -1807,13 +1940,18 @@ ProcessReactions.AuditOnly.ProcessHoles ProcessReactions.IncidentReaction.ProcessHoles ProcessReactions.ScalingReaction.ProcessHoles+ TopologyMachineProof build-depends: aeson >=2.2 && <2.3, base >=4.21 && <5,+ bytestring >=0.12 && <0.13,+ directory >=1.3 && <1.4, effectful-core,+ filepath >=1.4 && <1.6, keiki >=0.9 && <0.10, keiro,+ keiro-dsl, keiro-test-support, kiroku-store ^>=0.13.0.1, shibuya-core ^>=0.13.0.1,@@ -1823,6 +1961,62 @@ uuid >=1.3 && <1.4, vector >=0.13 && <0.14, +-- The topology machine proof: the `machine` object `keiro-dsl topology`+-- exports from the specification equals the generated keiki transducer walked+-- with keiki's own accessors, for every aggregate including a process saga.+test-suite keiro-dsl-conformance-topology-machine+ import: warnings, generated-output+ type: exitcode-stdio-1.0+ hs-source-dirs:+ test/conformance-topology-machine+ test/topology-machine-proof++ main-is: Main.hs+ other-modules:+ Generated.TopologyMachine.BehaviorSourceMap+ Generated.TopologyMachine.Inspection+ Generated.TopologyMachine.Nominals+ Generated.TopologyMachine.Nominals.Internal+ Generated.TopologyMachine.Order.BehaviorContract+ Generated.TopologyMachine.Order.Codec+ Generated.TopologyMachine.Order.Domain+ Generated.TopologyMachine.Order.EventStream+ Generated.TopologyMachine.Order.Harness+ Generated.TopologyMachine.Order.Projection+ Generated.TopologyMachine.Order.Transducer+ Generated.TopologyMachine.OrderFlow.Input+ Generated.TopologyMachine.OrderFlow.Process+ Generated.TopologyMachine.OrderFlow.ProcessHarness+ Generated.TopologyMachine.OrderSaga.BehaviorContract+ Generated.TopologyMachine.OrderSaga.Codec+ Generated.TopologyMachine.OrderSaga.Domain+ Generated.TopologyMachine.OrderSaga.EventStream+ Generated.TopologyMachine.OrderSaga.Harness+ Generated.TopologyMachine.OrderSaga.Projection+ Generated.TopologyMachine.OrderSaga.Transducer+ Generated.TopologyMachine.ReplayAudit+ TopologyMachine.Order.BehaviorHoles+ TopologyMachine.Order.Holes+ TopologyMachine.OrderFlow.ProcessHoles+ TopologyMachine.OrderSaga.BehaviorHoles+ TopologyMachineProof++ build-depends:+ aeson >=2.2 && <2.3,+ base >=4.21 && <5,+ bytestring >=0.12 && <0.13,+ containers >=0.6 && <0.8,+ directory >=1.3 && <1.4,+ filepath >=1.4 && <1.6,+ keiki >=0.9 && <0.10,+ keiro,+ keiro-dsl,+ kiroku-store ^>=0.13.0.1,+ shibuya-core ^>=0.13.0.1,+ text >=2.1 && <2.2,+ time >=1.12 && <1.15,+ uuid >=1.3 && <1.4,+ -- Language 6 reaction timers: typed payload codecs, schedule modes, -- cancellation accounting and deterministic fire redelivery. test-suite keiro-dsl-conformance-process-timers@@ -2039,6 +2233,7 @@ other-modules: Generated.TransferRouting.BehaviorSourceMap Generated.TransferRouting.Conformance+ Generated.TransferRouting.Hospital.BehaviorContract Generated.TransferRouting.Hospital.Codec Generated.TransferRouting.Hospital.Domain Generated.TransferRouting.Hospital.EventStream@@ -2052,6 +2247,7 @@ Generated.TransferRouting.HospitalTransferRouter.RouterHarness Generated.TransferRouting.Inspection Generated.TransferRouting.ReplayAudit+ TransferRouting.Hospital.BehaviorHoles TransferRouting.Hospital.Holes TransferRouting.HospitalLoad.ReadModelHoles TransferRouting.HospitalTransferRouter.RouterHoles@@ -2060,6 +2256,7 @@ build-depends: aeson >=2.2 && <2.3, base >=4.21 && <5,+ containers >=0.6 && <0.8, effectful-core, hasql-transaction, keiki >=0.9 && <0.10,
@@ -9,1469 +9,1510 @@ serialized, rendered, CLI, and runtime surfaces for review but does not prove byte compatibility. Exact byte claims live in named package-test goldens. -Inventory: 320 record-owning declarations, 1585 fields, 1537 strict fields, and 1440 fields exported through a public `Type (..)`.--| Location | Owner | Kind | Public | Current | Target | Type/strictness | Selection replacement | Review risk / observable surface | Deriving |-| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |-| `keiro-dsl/src/Keiro/Dsl/AggregateGenerationPlan.hs:14` | `TransitionLayoutEntry` | data | no | `layoutDeclarationIndex` | `declarationIndex` | `!Int` | `(.declarationIndex)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateGenerationPlan.hs:15` | `TransitionLayoutEntry` | data | no | `layoutOutgoingIndex` | `outgoingIndex` | `!Int` | `(.outgoingIndex)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateGenerationPlan.hs:16` | `TransitionLayoutEntry` | data | no | `layoutTransition` | `transition` | `!Transition` | `(.transition)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:97` | `StructuralEnumEquality` | data | yes | `key` | `key` | `!MappedKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:98` | `StructuralEnumEquality` | data | yes | `owner` | `owner` | `!HaskellSource` | `(.owner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:99` | `StructuralEnumEquality` | data | yes | `binding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:100` | `StructuralEnumEquality` | data | yes | `bindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:101` | `StructuralEnumEquality` | data | yes | `canonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:102` | `StructuralEnumEquality` | data | yes | `constructors` | `constructors` | `!(NE.NonEmpty (Name, Text))` | `(.constructors)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:139` | `AggregateSymbols` | data | no | `symbolNominals` | `nominals` | `!(Map Name ResolvedNominalType)` | `(.nominals)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:140` | `AggregateSymbols` | data | no | `symbolVertices` | `vertices` | `!(Map Name [Name])` | `(.vertices)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:141` | `AggregateSymbols` | data | no | `symbolMapped` | `mapped` | `!(Map MappedKey ResolvedMappedDecl)` | `(.mapped)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:178` | `AggregateTypeError` | data | yes | `aggregateTypeErrorLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:179` | `AggregateTypeError` | data | yes | `aggregateTypeErrorUseSite` | `useSite` | `!AggregateUseSite` | `(.useSite)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:180` | `AggregateTypeError` | data | yes | `aggregateTypeErrorReason` | `reason` | `!AggregateTypeErrorReason` | `(.reason)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:317` | `AggregateHaskellSource` | data | no | `aggregateSourceBuiltin` | `builtin` | `!(Maybe Text)` | `(.builtin)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:318` | `AggregateHaskellSource` | data | no | `aggregateSourceReference` | `reference` | `!(Maybe HaskellReference)` | `(.reference)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:319` | `AggregateHaskellSource` | data | no | `aggregateSourceStaticImports` | `staticImports` | `!(Set Text)` | `(.staticImports)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:51` | `BehaviorKey` | newtype | yes | `unBehaviorKey` | `unBehaviorKey` | `Text` | explicit `unBehaviorKey` positional function | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:92` | `BehaviorExactLocation` | data | yes | `exactSourceFile` | `sourceFile` | `!FilePath` | `(.sourceFile)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:93` | `BehaviorExactLocation` | data | yes | `exactSourceLine` | `sourceLine` | `!Int` | `(.sourceLine)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:94` | `BehaviorExactLocation` | data | yes | `exactSourceColumn` | `sourceColumn` | `!Int` | `(.sourceColumn)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:99` | `BehaviorRequirement` | data | yes | `requirementKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:100` | `BehaviorRequirement` | data | yes | `requirementOrigin` | `origin` | `!RequirementOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:101` | `BehaviorRequirement` | data | yes | `requirementKind` | `kind` | `!ObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:102` | `BehaviorRequirement` | data | yes | `requirementEvidence` | `evidence` | `!EvidenceLevel` | `(.evidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:103` | `BehaviorRequirement` | data | yes | `requirementGuardCoverage` | `guardCoverage` | `!GuardCoverage` | `(.guardCoverage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:104` | `BehaviorRequirement` | data | yes | `requirementContext` | `context` | `!Name` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:105` | `BehaviorRequirement` | data | yes | `requirementAggregate` | `aggregate` | `!Name` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:106` | `BehaviorRequirement` | data | yes | `requirementSource` | `source` | `!Name` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:107` | `BehaviorRequirement` | data | yes | `requirementCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:108` | `BehaviorRequirement` | data | yes | `requirementTarget` | `target` | `!(Maybe Name)` | `(.target)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:109` | `BehaviorRequirement` | data | yes | `requirementMode` | `mode` | `!(Maybe TransitionMode)` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:110` | `BehaviorRequirement` | data | yes | `requirementEvents` | `events` | `![Name]` | `(.events)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:111` | `BehaviorRequirement` | data | yes | `requirementOutputs` | `outputs` | `![OutputEvidence]` | `(.outputs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:112` | `BehaviorRequirement` | data | yes | `requirementDomainOutcome` | `domainOutcome` | `!(Maybe TransitionOutcome)` | `(.domainOutcome)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:113` | `BehaviorRequirement` | data | yes | `requirementLocation` | `location` | `!Loc` | `(.location)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:114` | `BehaviorRequirement` | data | yes | `requirementExactLocation` | `exactLocation` | `!(Maybe BehaviorExactLocation)` | `(.exactLocation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:115` | `BehaviorRequirement` | data | yes | `requirementOwner` | `owner` | `!(Maybe FilePath)` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:116` | `BehaviorRequirement` | data | yes | `requirementCanonical` | `canonical` | `!Text` | `(.canonical)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:124` | `BehaviorRecordRow` | data | yes | `behaviorRecordKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:125` | `BehaviorRecordRow` | data | yes | `behaviorRecordKind` | `kind` | `!ObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:126` | `BehaviorRecordRow` | data | yes | `behaviorRecordEvidence` | `evidence` | `!EvidenceLevel` | `(.evidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:127` | `BehaviorRecordRow` | data | yes | `behaviorRecordAggregate` | `aggregate` | `!Name` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:128` | `BehaviorRecordRow` | data | yes | `behaviorRecordSource` | `source` | `!Name` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:129` | `BehaviorRecordRow` | data | yes | `behaviorRecordCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:130` | `BehaviorRecordRow` | data | yes | `behaviorRecordOwner` | `owner` | `!(Maybe FilePath)` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:131` | `BehaviorRecordRow` | data | yes | `behaviorRecordOutputs` | `outputs` | `![OutputEvidence]` | `(.outputs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:143` | `BehaviorObligationsReport` | data | yes | `behaviorSubject` | `subject` | `!FilePath` | `(.subject)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:144` | `BehaviorObligationsReport` | data | yes | `behaviorWorkspaceService` | `workspaceService` | `!(Maybe Text)` | `(.workspaceService)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:145` | `BehaviorObligationsReport` | data | yes | `behaviorRequirements` | `requirements` | `![BehaviorRequirement]` | `(.requirements)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:38` | `BehaviorSourceFailure` | data | yes | `failureCode` | `code` | `!BehaviorSourceFailureCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:39` | `BehaviorSourceFailure` | data | yes | `failureKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:40` | `BehaviorSourceFailure` | data | yes | `failureOrigin` | `origin` | `!RequirementOrigin` | `(.origin)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:41` | `BehaviorSourceFailure` | data | yes | `failureAggregate` | `aggregate` | `!Text` | `(.aggregate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:42` | `BehaviorSourceFailure` | data | yes | `failureState` | `state` | `!Text` | `(.state)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:43` | `BehaviorSourceFailure` | data | yes | `failureCommand` | `command` | `!Text` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:44` | `BehaviorSourceFailure` | data | yes | `failureSourceSubject` | `sourceSubject` | `!SourceSubject` | `(.sourceSubject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:45` | `BehaviorSourceFailure` | data | yes | `failureSpan` | `span` | `!(Maybe SourceSpan)` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:46` | `BehaviorSourceFailure` | data | yes | `failureMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:51` | `BehaviorSourceEntry` | data | yes | `behaviorSourceKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:52` | `BehaviorSourceEntry` | data | yes | `behaviorSourceFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:53` | `BehaviorSourceEntry` | data | yes | `behaviorSourceLine` | `line` | `!Int` | `(.line)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:54` | `BehaviorSourceEntry` | data | yes | `behaviorSourceColumn` | `column` | `!Int` | `(.column)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:45` | `CheckReportLanguage` | data | yes | `reportSourceForm` | `sourceForm` | `!Text` | `(.sourceForm)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:46` | `CheckReportLanguage` | data | yes | `reportDeclaredLanguageVersion` | `declaredLanguageVersion` | `!(Maybe LanguageVersion)` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:47` | `CheckReportLanguage` | data | yes | `reportEffectiveLanguageVersion` | `effectiveLanguageVersion` | `!LanguageVersion` | `(.effectiveLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:48` | `CheckReportLanguage` | data | yes | `reportRuntimeSemantics` | `runtimeSemantics` | `!Text` | `(.runtimeSemantics)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:49` | `CheckReportLanguage` | data | yes | `reportLanguageSupport` | `languageSupport` | `!LanguageSupport` | `(.languageSupport)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:50` | `CheckReportLanguage` | data | yes | `reportStable` | `stable` | `!Bool` | `(.stable)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:55` | `CheckReportEnforcement` | data | yes | `reportMinLanguage` | `minLanguage` | `!(Maybe LanguageVersion)` | `(.minLanguage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:56` | `CheckReportEnforcement` | data | yes | `reportDenyWarnings` | `denyWarnings` | `!Bool` | `(.denyWarnings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:57` | `CheckReportEnforcement` | data | yes | `reportDenyCodes` | `denyCodes` | `![DiagnosticCode]` | `(.denyCodes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:62` | `CheckReportRelated` | data | yes | `relatedFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:63` | `CheckReportRelated` | data | yes | `relatedLine` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:64` | `CheckReportRelated` | data | yes | `relatedNote` | `note` | `!Text` | `(.note)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:69` | `CheckReportEntry` | data | yes | `entryCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:70` | `CheckReportEntry` | data | yes | `entrySeverity` | `severity` | `!Severity` | `(.severity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:71` | `CheckReportEntry` | data | yes | `entryFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:72` | `CheckReportEntry` | data | yes | `entryLine` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:73` | `CheckReportEntry` | data | yes | `entryMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:74` | `CheckReportEntry` | data | yes | `entryDenied` | `denied` | `!Bool` | `(.denied)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:75` | `CheckReportEntry` | data | yes | `entryRelated` | `related` | `![CheckReportRelated]` | `(.related)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:80` | `CheckReportSummary` | data | yes | `summaryErrors` | `errors` | `!Int` | `(.errors)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:81` | `CheckReportSummary` | data | yes | `summaryWarnings` | `warnings` | `!Int` | `(.warnings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:82` | `CheckReportSummary` | data | yes | `summaryDeniedWarnings` | `deniedWarnings` | `!Int` | `(.deniedWarnings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:87` | `CheckReportMember` | data | yes | `memberPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:88` | `CheckReportMember` | data | yes | `memberSourceForm` | `sourceForm` | `!Text` | `(.sourceForm)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:89` | `CheckReportMember` | data | yes | `memberDeclaredLanguageVersion` | `declaredLanguageVersion` | `!(Maybe LanguageVersion)` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:94` | `CheckReportProcessReaction` | data | yes | `process` | `process` | `!Text` | `(.process)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:95` | `CheckReportProcessReaction` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:96` | `CheckReportProcessReaction` | data | yes | `version` | `version` | `!Natural` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:97` | `CheckReportProcessReaction` | data | yes | `fingerprint` | `fingerprint` | `!Text` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:98` | `CheckReportProcessReaction` | data | yes | `holeObligations` | `holeObligations` | `![Text]` | `(.holeObligations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:106` | `CheckReport` | data | no | `reportKind` | `kind` | `!CheckReportKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:107` | `CheckReport` | data | no | `reportSubject` | `subject` | `!FilePath` | `(.subject)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:111` | `CheckReport` | data | no | `reportLanguage` | `language` | `!(Maybe CheckReportLanguage)` | `(.language)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:112` | `CheckReport` | data | no | `reportEnforcement` | `enforcement` | `!CheckReportEnforcement` | `(.enforcement)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:113` | `CheckReport` | data | no | `reportDiagnostics` | `diagnostics` | `![CheckReportEntry]` | `(.diagnostics)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:114` | `CheckReport` | data | no | `reportSummary` | `summary` | `!CheckReportSummary` | `(.summary)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:115` | `CheckReport` | data | no | `reportOk` | `ok` | `!Bool` | `(.ok)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:116` | `CheckReport` | data | no | `reportMembers` | `members` | `![CheckReportMember]` | `(.members)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:117` | `CheckReport` | data | no | `processReactions` | `processReactions` | `![CheckReportProcessReaction]` | `(.processReactions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:70` | `JsonPointer` | newtype | yes | `unJsonPointer` | `unJsonPointer` | `Text` | explicit `unJsonPointer` positional function | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:85` | `HistoricalCodec` | data | yes | `hcIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:86` | `HistoricalCodec` | data | yes | `hcVersion` | `version` | `!Text` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:87` | `HistoricalCodec` | data | yes | `hcEncode` | `encode` | `!(a -> Value)` | `(.encode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:88` | `HistoricalCodec` | data | yes | `hcDecode` | `decode` | `!(Value -> Either Text a)` | `(.decode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:93` | `CompareObservation` | data | yes | `coCaseName` | `caseName` | `!Text` | `(.caseName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:94` | `CompareObservation` | data | yes | `coHistoricalValue` | `historicalValue` | `!Value` | `(.historicalValue)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:95` | `CompareObservation` | data | yes | `coGeneratedValue` | `generatedValue` | `!Value` | `(.generatedValue)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:98` | `CompareObservation` | data | yes | `coFixturePath` | `fixturePath` | `!FilePath` | `(.fixturePath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:99` | `CompareObservation` | data | yes | `coInputValue` | `inputValue` | `!Value` | `(.inputValue)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:100` | `CompareObservation` | data | yes | `coHistoricalDecode` | `historicalDecode` | `!DecodeOutcome` | `(.historicalDecode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:101` | `CompareObservation` | data | yes | `coGeneratedDecode` | `generatedDecode` | `!DecodeOutcome` | `(.generatedDecode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:124` | `DeclaredBranch` | data | yes | `dbOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:125` | `DeclaredBranch` | data | yes | `dbPointer` | `pointer` | `!JsonPointer` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:126` | `DeclaredBranch` | data | yes | `dbKind` | `kind` | `!BranchKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:131` | `ObservedBranch` | data | yes | `obOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:132` | `ObservedBranch` | data | yes | `obPointer` | `pointer` | `!JsonPointer` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:133` | `ObservedBranch` | data | yes | `obKind` | `kind` | `!BranchKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:138` | `CoverageGap` | data | yes | `cgOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:139` | `CoverageGap` | data | yes | `cgPointer` | `pointer` | `!JsonPointer` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:140` | `CoverageGap` | data | yes | `cgKind` | `kind` | `!BranchKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:157` | `BranchField` | data | yes | `bfWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:158` | `BranchField` | data | yes | `bfPresenceOptional` | `presenceOptional` | `!Bool` | `(.presenceOptional)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:159` | `BranchField` | data | yes | `bfSchema` | `schema` | `!BranchSchema` | `(.schema)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:164` | `BranchArm` | data | yes | `baWireTag` | `wireTag` | `!Text` | `(.wireTag)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:165` | `BranchArm` | data | yes | `baPayloadSchema` | `payloadSchema` | `!(Maybe BranchSchema)` | `(.payloadSchema)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:170` | `CompareProvenance` | data | yes | `cpHistoricalCodecIdentity` | `historicalCodecIdentity` | `!Text` | `(.historicalCodecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:171` | `CompareProvenance` | data | yes | `cpHistoricalCodecVersion` | `historicalCodecVersion` | `!Text` | `(.historicalCodecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:172` | `CompareProvenance` | data | yes | `cpCanonicalType` | `canonicalType` | `!CanonicalTypeId` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:173` | `CompareProvenance` | data | yes | `cpBindingSymbol` | `bindingSymbol` | `!QualifiedValueName` | `(.bindingSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:174` | `CompareProvenance` | data | yes | `cpBindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:175` | `CompareProvenance` | data | yes | `cpWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:180` | `ClassifiedObservation` | data | yes | `classifiedOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:181` | `ClassifiedObservation` | data | yes | `classifiedName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:182` | `ClassifiedObservation` | data | yes | `classifiedVerdict` | `verdict` | `!FixtureVerdict` | `(.verdict)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:187` | `CompareReport` | data | yes | `crProvenance` | `provenance` | `!CompareProvenance` | `(.provenance)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:188` | `CompareReport` | data | yes | `crObservations` | `observations` | `![ClassifiedObservation]` | `(.observations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:189` | `CompareReport` | data | yes | `crInputIssues` | `inputIssues` | `![CompareInputIssue]` | `(.inputIssues)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:190` | `CompareReport` | data | yes | `crCoverageGaps` | `coverageGaps` | `![CoverageGap]` | `(.coverageGaps)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:191` | `CompareReport` | data | yes | `crAuthority` | `authority` | `!Text` | `(.authority)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:196` | `ReportWriteError` | data | yes | `reportWritePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:197` | `ReportWriteError` | data | yes | `reportWriteMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:58` | `ConformanceFile` | data | yes | `conformanceFilePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:59` | `ConformanceFile` | data | yes | `conformanceFileText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:60` | `ConformanceFile` | data | yes | `conformanceFileKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:65` | `ConformancePackagePlan` | data | yes | `cppServiceKey` | `serviceKey` | `!ConformanceServiceKey` | `(.serviceKey)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:66` | `ConformancePackagePlan` | data | yes | `cppDirectory` | `directory` | `!FilePath` | `(.directory)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:67` | `ConformancePackagePlan` | data | yes | `cppPackageName` | `packageName` | `!Text` | `(.packageName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:68` | `ConformancePackagePlan` | data | yes | `cppRuntimePackage` | `runtimePackage` | `!RuntimePackageName` | `(.runtimePackage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:69` | `ConformancePackagePlan` | data | yes | `cppFacadeModule` | `facadeModule` | `!Text` | `(.facadeModule)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:70` | `ConformancePackagePlan` | data | yes | `cppFiles` | `files` | `![ConformanceFile]` | `(.files)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:78` | `DuplicateFactKey` | data | yes | `duplicateFactSide` | `side` | `!ConformanceFactSide` | `(.side)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:79` | `DuplicateFactKey` | data | yes | `duplicateFactKey` | `key` | `!String` | `(.key)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:101` | `ConformancePackageRecord` | data | yes | `cprSchema` | `schema` | `!Int` | `(.schema)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:102` | `ConformancePackageRecord` | data | yes | `cprServiceKey` | `serviceKey` | `!ConformanceServiceKey` | `(.serviceKey)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:103` | `ConformancePackageRecord` | data | yes | `cprRuntimePackage` | `runtimePackage` | `!RuntimePackageName` | `(.runtimePackage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:104` | `ConformancePackageRecord` | data | yes | `cprFacadeModule` | `facadeModule` | `!Text` | `(.facadeModule)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:105` | `ConformancePackageRecord` | data | yes | `cprFiles` | `files` | `![(ModuleKind, FilePath)]` | `(.files)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:113` | `ConformanceStaleFile` | data | yes | `conformanceStaleKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:114` | `ConformanceStaleFile` | data | yes | `conformanceStalePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:115` | `ConformanceStaleFile` | data | yes | `conformanceStaleBannerPresent` | `bannerPresent` | `!(Maybe Bool)` | `(.bannerPresent)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:120` | `PreparedConformancePackage` | data | no | `preparedRoot` | `root` | `!FilePath` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:121` | `PreparedConformancePackage` | data | no | `preparedPlan` | `plan` | `!ConformancePackagePlan` | `(.plan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:122` | `PreparedConformancePackage` | data | no | `preparedStale` | `stale` | `![ConformanceStaleFile]` | `(.stale)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:127` | `ConformancePackageReport` | data | yes | `conformanceReportRoot` | `root` | `!FilePath` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:128` | `ConformancePackageReport` | data | yes | `conformanceReportPlan` | `plan` | `!ConformancePackagePlan` | `(.plan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:129` | `ConformancePackageReport` | data | yes | `conformanceReportDispositions` | `dispositions` | `![(ConformanceFile, ConformanceWriteDisposition)]` | `(.dispositions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:130` | `ConformancePackageReport` | data | yes | `conformanceReportStale` | `stale` | `![ConformanceStaleFile]` | `(.stale)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:388` | `ConformanceFileRow` | data | no | `conformanceRowKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:389` | `ConformanceFileRow` | data | no | `conformanceRowPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:27` | `HaskellTypeOccurrence` | newtype | yes | `unHaskellTypeOccurrence` | `unHaskellTypeOccurrence` | `Text` | explicit `unHaskellTypeOccurrence` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:38` | `ImportRequirement` | data | yes | `package` | `package` | `!Text` | `(.package)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:39` | `ImportRequirement` | data | yes | `moduleName` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:40` | `ImportRequirement` | data | yes | `occurrence` | `occurrence` | `!Text` | `(.occurrence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:45` | `ConsumerTypePlan` | data | yes | `haskellType` | `haskellType` | `!HaskellTypeOccurrence` | `(.haskellType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:46` | `ConsumerTypePlan` | data | yes | `imports` | `imports` | `![ImportRequirement]` | `(.imports)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:47` | `ConsumerTypePlan` | data | yes | `dependencies` | `dependencies` | `!(Set MappedKey)` | `(.dependencies)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:48` | `ConsumerTypePlan` | data | yes | `nominalDependencies` | `nominalDependencies` | `!(Set Text)` | `(.nominalDependencies)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:162` | `RenderedType` | data | no | `rendered` | `rendered` | `!Text` | `(.rendered)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:163` | `RenderedType` | data | no | `precedence` | `precedence` | `!TypePrecedence` | `(.precedence)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:164` | `RenderedType` | data | no | `requirements` | `requirements` | `!(Set ImportRequirement)` | `(.requirements)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:165` | `RenderedType` | data | no | `mappedDependencies` | `mappedDependencies` | `!(Set MappedKey)` | `(.mappedDependencies)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:166` | `RenderedType` | data | no | `nominalDependencies` | `nominalDependencies` | `!(Set Text)` | `(.nominalDependencies)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:67` | `RouterSelectionSnapshot` | data | yes | `selectionRouter` | `router` | `!Name` | `(.router)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:68` | `RouterSelectionSnapshot` | data | yes | `selectionVerification` | `verification` | `!SelectionVerification` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:69` | `RouterSelectionSnapshot` | data | yes | `selectionIdentity` | `identity` | `!(Maybe Text)` | `(.identity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:70` | `RouterSelectionSnapshot` | data | yes | `selectionVersion` | `version` | `!(Maybe Natural)` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:71` | `RouterSelectionSnapshot` | data | yes | `selectionFingerprint` | `fingerprint` | `!(Maybe Text)` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:76` | `CoordinationImpact` | data | yes | `coordinationRouter` | `router` | `!Name` | `(.router)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:77` | `CoordinationImpact` | data | yes | `coordinationSeverity` | `severity` | `!CoordinationSeverity` | `(.severity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:78` | `CoordinationImpact` | data | yes | `coordinationReason` | `reason` | `!CoordinationReason` | `(.reason)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:79` | `CoordinationImpact` | data | yes | `previousVerification` | `previousVerification` | `!SelectionVerification` | `(.previousVerification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:80` | `CoordinationImpact` | data | yes | `currentVerification` | `currentVerification` | `!SelectionVerification` | `(.currentVerification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:81` | `CoordinationImpact` | data | yes | `previousIdentity` | `previousIdentity` | `!(Maybe Text)` | `(.previousIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:82` | `CoordinationImpact` | data | yes | `currentIdentity` | `currentIdentity` | `!(Maybe Text)` | `(.currentIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:83` | `CoordinationImpact` | data | yes | `previousVersion` | `previousVersion` | `!(Maybe Natural)` | `(.previousVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:84` | `CoordinationImpact` | data | yes | `currentVersion` | `currentVersion` | `!(Maybe Natural)` | `(.currentVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:85` | `CoordinationImpact` | data | yes | `previousFingerprint` | `previousFingerprint` | `!(Maybe Text)` | `(.previousFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:86` | `CoordinationImpact` | data | yes | `currentFingerprint` | `currentFingerprint` | `!(Maybe Text)` | `(.currentFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:87` | `CoordinationImpact` | data | yes | `affectedUseSites` | `affectedUseSites` | `![UseSite]` | `(.affectedUseSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:92` | `RouterSelectionDrift` | data | yes | `driftRouter` | `router` | `!Name` | `(.router)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:93` | `RouterSelectionDrift` | data | yes | `driftPreviousSelection` | `previousSelection` | `!(Maybe RouterSelectionSnapshot)` | `(.previousSelection)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:94` | `RouterSelectionDrift` | data | yes | `driftCurrentSelection` | `currentSelection` | `!(Maybe RouterSelectionSnapshot)` | `(.currentSelection)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:102` | `ProcessReactionSnapshot` | data | yes | `process` | `process` | `!Name` | `(.process)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:103` | `ProcessReactionSnapshot` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:104` | `ProcessReactionSnapshot` | data | yes | `version` | `version` | `!(Maybe Natural)` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:105` | `ProcessReactionSnapshot` | data | yes | `fingerprint` | `fingerprint` | `!(Maybe Text)` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:110` | `ProcessReactionDrift` | data | yes | `process` | `process` | `!Name` | `(.process)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:111` | `ProcessReactionDrift` | data | yes | `previousReaction` | `previousReaction` | `!(Maybe ProcessReactionSnapshot)` | `(.previousReaction)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:112` | `ProcessReactionDrift` | data | yes | `currentReaction` | `currentReaction` | `!(Maybe ProcessReactionSnapshot)` | `(.currentReaction)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:302` | `RouterSelectionState` | data | no | `stateSnapshot` | `snapshot` | `!RouterSelectionSnapshot` | `(.snapshot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:303` | `RouterSelectionState` | data | no | `stateUseSites` | `useSites` | `![UseSite]` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:68` | `CoverageRoot` | data | yes | `rootSurface` | `surface` | `!CoverageSurface` | `(.surface)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:69` | `CoverageRoot` | data | yes | `rootConsumer` | `consumer` | `!Text` | `(.consumer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:70` | `CoverageRoot` | data | yes | `rootPath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:71` | `CoverageRoot` | data | yes | `rootMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:72` | `CoverageRoot` | data | yes | `rootMode` | `mode` | `!CoverageMode` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:73` | `CoverageRoot` | data | yes | `rootCanonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:74` | `CoverageRoot` | data | yes | `rootCodecIdentity` | `codecIdentity` | `!(Maybe Text)` | `(.codecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:75` | `CoverageRoot` | data | yes | `rootCodecVersion` | `codecVersion` | `!(Maybe Text)` | `(.codecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:76` | `CoverageRoot` | data | yes | `rootWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:81` | `StructuralBoundary` | data | yes | `structuralRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:82` | `StructuralBoundary` | data | yes | `structuralPath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:83` | `StructuralBoundary` | data | yes | `structuralMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:84` | `StructuralBoundary` | data | yes | `structuralCanonicalType` | `canonicalType` | `!Text` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:85` | `StructuralBoundary` | data | yes | `structuralWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:90` | `OpaqueBoundary` | data | yes | `opaqueRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:91` | `OpaqueBoundary` | data | yes | `opaquePath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:92` | `OpaqueBoundary` | data | yes | `opaqueMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:93` | `OpaqueBoundary` | data | yes | `opaqueCodecIdentity` | `codecIdentity` | `!Text` | `(.codecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:94` | `OpaqueBoundary` | data | yes | `opaqueCodecVersion` | `codecVersion` | `!Text` | `(.codecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:99` | `JsonBoundary` | data | yes | `jsonSurface` | `surface` | `!CoverageSurface` | `(.surface)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:100` | `JsonBoundary` | data | yes | `jsonRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:101` | `JsonBoundary` | data | yes | `jsonPath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:106` | `NominalBoundary` | data | yes | `root` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:107` | `NominalBoundary` | data | yes | `path` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:108` | `NominalBoundary` | data | yes | `position` | `position` | `!Text` | `(.position)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:109` | `NominalBoundary` | data | yes | `nominal` | `nominal` | `!Text` | `(.nominal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:110` | `NominalBoundary` | data | yes | `kind` | `kind` | `!Text` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:111` | `NominalBoundary` | data | yes | `prefix` | `prefix` | `!(Maybe Text)` | `(.prefix)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:112` | `NominalBoundary` | data | yes | `domainVersion` | `domainVersion` | `!(Maybe Text)` | `(.domainVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:113` | `NominalBoundary` | data | yes | `canonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:114` | `NominalBoundary` | data | yes | `ownership` | `ownership` | `!Text` | `(.ownership)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:119` | `SnapshotBoundary` | data | yes | `snapshotRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:120` | `SnapshotBoundary` | data | yes | `snapshotAggregate` | `aggregate` | `!Text` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:121` | `SnapshotBoundary` | data | yes | `snapshotRegister` | `register` | `!Text` | `(.register)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:122` | `SnapshotBoundary` | data | yes | `snapshotMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:123` | `SnapshotBoundary` | data | yes | `snapshotMode` | `mode` | `!CoverageMode` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:124` | `SnapshotBoundary` | data | yes | `snapshotEncoding` | `encoding` | `!Text` | `(.encoding)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:125` | `SnapshotBoundary` | data | yes | `snapshotInvalidation` | `invalidation` | `!Text` | `(.invalidation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:126` | `SnapshotBoundary` | data | yes | `snapshotWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:127` | `SnapshotBoundary` | data | yes | `snapshotEnabled` | `enabled` | `!Bool` | `(.enabled)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:132` | `UnsupportedSurface` | data | yes | `unsupportedSurface` | `surface` | `!Text` | `(.surface)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:133` | `UnsupportedSurface` | data | yes | `unsupportedSupport` | `support` | `!Text` | `(.support)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:134` | `UnsupportedSurface` | data | yes | `unsupportedReason` | `reason` | `!Text` | `(.reason)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:139` | `CoverageCounts` | data | yes | `totalRoots` | `totalRoots` | `!Int` | `(.totalRoots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:140` | `CoverageCounts` | data | yes | `structuralRoots` | `structuralRoots` | `!Int` | `(.structuralRoots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:141` | `CoverageCounts` | data | yes | `opaqueRoots` | `opaqueRoots` | `!Int` | `(.opaqueRoots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:142` | `CoverageCounts` | data | yes | `jsonBoundaries` | `jsonBoundaries` | `!Int` | `(.jsonBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:147` | `CoverageSummary` | data | yes | `aggregateCommandPayloads` | `aggregateCommandPayloads` | `!CoverageCounts` | `(.aggregateCommandPayloads)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:148` | `CoverageSummary` | data | yes | `privateEventPayloads` | `privateEventPayloads` | `!CoverageCounts` | `(.privateEventPayloads)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:149` | `CoverageSummary` | data | yes | `snapshotRegisters` | `snapshotRegisters` | `!CoverageCounts` | `(.snapshotRegisters)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:150` | `CoverageSummary` | data | yes | `workqueuePayloads` | `workqueuePayloads` | `!CoverageCounts` | `(.workqueuePayloads)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:151` | `CoverageSummary` | data | yes | `readModelQueryInputs` | `readModelQueryInputs` | `!CoverageCounts` | `(.readModelQueryInputs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:152` | `CoverageSummary` | data | yes | `readModelQueryResults` | `readModelQueryResults` | `!CoverageCounts` | `(.readModelQueryResults)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:153` | `CoverageSummary` | data | yes | `projectionTypedConsumers` | `projectionTypedConsumers` | `!CoverageCounts` | `(.projectionTypedConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:158` | `CoverageFinding` | data | yes | `findingSeverity` | `severity` | `!Severity` | `(.severity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:159` | `CoverageFinding` | data | yes | `findingCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:160` | `CoverageFinding` | data | yes | `findingRoots` | `roots` | `![Text]` | `(.roots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:161` | `CoverageFinding` | data | yes | `findingMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:166` | `CoveragePrevious` | data | yes | `previousReference` | `reference` | `!Text` | `(.reference)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:167` | `CoveragePrevious` | data | yes | `previousSummary` | `summary` | `!CoverageSummary` | `(.summary)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:168` | `CoveragePrevious` | data | yes | `previousOpaqueBoundaries` | `opaqueBoundaries` | `![OpaqueBoundary]` | `(.opaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:173` | `CoverageDelta` | data | yes | `aggregateCommandRootDelta` | `aggregateCommandRootDelta` | `!Int` | `(.aggregateCommandRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:174` | `CoverageDelta` | data | yes | `privateEventRootDelta` | `privateEventRootDelta` | `!Int` | `(.privateEventRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:175` | `CoverageDelta` | data | yes | `snapshotRegisterRootDelta` | `snapshotRegisterRootDelta` | `!Int` | `(.snapshotRegisterRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:176` | `CoverageDelta` | data | yes | `workqueuePayloadRootDelta` | `workqueuePayloadRootDelta` | `!Int` | `(.workqueuePayloadRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:177` | `CoverageDelta` | data | yes | `readModelQueryInputRootDelta` | `readModelQueryInputRootDelta` | `!Int` | `(.readModelQueryInputRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:178` | `CoverageDelta` | data | yes | `readModelQueryResultRootDelta` | `readModelQueryResultRootDelta` | `!Int` | `(.readModelQueryResultRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:179` | `CoverageDelta` | data | yes | `projectionTypedConsumerRootDelta` | `projectionTypedConsumerRootDelta` | `!Int` | `(.projectionTypedConsumerRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:180` | `CoverageDelta` | data | yes | `opaqueBoundaryDelta` | `opaqueBoundaryDelta` | `!Int` | `(.opaqueBoundaryDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:181` | `CoverageDelta` | data | yes | `addedOpaqueBoundaries` | `addedOpaqueBoundaries` | `![OpaqueBoundary]` | `(.addedOpaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:182` | `CoverageDelta` | data | yes | `removedOpaqueBoundaries` | `removedOpaqueBoundaries` | `![OpaqueBoundary]` | `(.removedOpaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:187` | `CoverageReport` | data | yes | `coverageSpec` | `spec` | `!FilePath` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:188` | `CoverageReport` | data | yes | `coverageRoots` | `roots` | `![CoverageRoot]` | `(.roots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:189` | `CoverageReport` | data | yes | `coverageStructuralBoundaries` | `structuralBoundaries` | `![StructuralBoundary]` | `(.structuralBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:190` | `CoverageReport` | data | yes | `coverageOpaqueBoundaries` | `opaqueBoundaries` | `![OpaqueBoundary]` | `(.opaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:191` | `CoverageReport` | data | yes | `coverageJsonBoundaries` | `jsonBoundaries` | `![JsonBoundary]` | `(.jsonBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:192` | `CoverageReport` | data | yes | `nominalBoundaries` | `nominalBoundaries` | `![NominalBoundary]` | `(.nominalBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:193` | `CoverageReport` | data | yes | `coverageSnapshotBoundaries` | `snapshotBoundaries` | `![SnapshotBoundary]` | `(.snapshotBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:194` | `CoverageReport` | data | yes | `coverageUnsupportedSurfaces` | `unsupportedSurfaces` | `![UnsupportedSurface]` | `(.unsupportedSurfaces)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:195` | `CoverageReport` | data | yes | `coverageSummary` | `summary` | `!CoverageSummary` | `(.summary)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:196` | `CoverageReport` | data | yes | `coverageFindings` | `findings` | `![CoverageFinding]` | `(.findings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:197` | `CoverageReport` | data | yes | `coveragePrevious` | `previous` | `!(Maybe CoveragePrevious)` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:198` | `CoverageReport` | data | yes | `coverageDelta` | `delta` | `!(Maybe CoverageDelta)` | `(.delta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:143` | `CompatibilityVector` | data | yes | `cvPrivateHistoryRead` | `privateHistoryRead` | `!SurfaceVerdict` | `(.privateHistoryRead)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:144` | `CompatibilityVector` | data | yes | `cvOldBinaryReadNewEvents` | `oldBinaryReadNewEvents` | `!SurfaceVerdict` | `(.oldBinaryReadNewEvents)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:145` | `CompatibilityVector` | data | yes | `cvSnapshotHydration` | `snapshotHydration` | `!SurfaceVerdict` | `(.snapshotHydration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:146` | `CompatibilityVector` | data | yes | `cvPublicConsumer` | `publicConsumer` | `!SurfaceVerdict` | `(.publicConsumer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:147` | `CompatibilityVector` | data | yes | `cvPersistedIdentity` | `persistedIdentity` | `!SurfaceVerdict` | `(.persistedIdentity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:148` | `CompatibilityVector` | data | yes | `cvConsumerBuild` | `consumerBuild` | `!SurfaceVerdict` | `(.consumerBuild)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:149` | `CompatibilityVector` | data | yes | `cvRollout` | `rollout` | `!(Set RolloutConstraint)` | `(.rollout)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:162` | `MappedPersistedImpact` | data | yes | `mappedPersistedSurface` | `surface` | `!MappedPersistedSurface` | `(.surface)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:163` | `MappedPersistedImpact` | data | yes | `mappedPersistedVerdict` | `verdict` | `!SurfaceVerdict` | `(.verdict)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:181` | `ChangeContext` | data | no | `changeContextRoot` | `root` | `!Name` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:182` | `ChangeContext` | data | no | `changeContextPaths` | `paths` | `![Text]` | `(.paths)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:183` | `ChangeContext` | data | no | `contextKind` | `contextKind` | `!ContextKind` | `(.contextKind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:184` | `ChangeContext` | data | no | `contextOriginalLabel` | `contextOriginalLabel` | `!Label` | `(.contextOriginalLabel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:195` | `ChangeKind` | data | yes | `ckNode` | `node` | `!Name` | `(.node)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:196` | `ChangeKind` | data | yes | `ckFacet` | `facet` | `!Text` | `(.facet)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:197` | `ChangeKind` | data | yes | `ckSubject` | `subject` | `!Text` | `(.subject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:198` | `ChangeKind` | data | yes | `ckCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:199` | `ChangeKind` | data | yes | `ckContext` | `context` | `!ChangeContext` | `(.context)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:200` | `ChangeKind` | data | yes | `ckVector` | `vector` | `!CompatibilityVector` | `(.vector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:201` | `ChangeKind` | data | yes | `ckMappedPersistedImpact` | `mappedPersistedImpact` | `!(Maybe MappedPersistedImpact)` | `(.mappedPersistedImpact)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:202` | `ChangeKind` | data | yes | `ckMappedConsequences` | `mappedConsequences` | `!(Set MappedConsequence)` | `(.mappedConsequences)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:203` | `ChangeKind` | data | yes | `ckPaths` | `paths` | `![Text]` | `(.paths)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:204` | `ChangeKind` | data | yes | `ckDetail` | `detail` | `!Text` | `(.detail)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:708` | `DiffEnv` | data | yes | `deOld` | `old` | `!Spec` | `(.old)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:709` | `DiffEnv` | data | yes | `deNew` | `new` | `!Spec` | `(.new)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:710` | `DiffEnv` | data | yes | `oldService` | `oldService` | `!CheckedService` | `(.oldService)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:711` | `DiffEnv` | data | yes | `newService` | `newService` | `!CheckedService` | `(.newService)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:712` | `DiffEnv` | data | yes | `newValidationErrors` | `newValidationErrors` | `![Diagnostic]` | `(.newValidationErrors)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:764` | `Paired` | data | yes | `prMatched` | `matched` | `![(n, n)]` | `(.matched)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:765` | `Paired` | data | yes | `prAdded` | `added` | `![n]` | `(.added)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:766` | `Paired` | data | yes | `prRemoved` | `removed` | `![n]` | `(.removed)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:1830` | `GuardProposal` | data | no | `proposalBody` | `body` | `!ReplayBodyDelta` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:1831` | `GuardProposal` | data | no | `proposalTwin` | `twin` | `!Transition` | `(.twin)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2220` | `EventFieldSig` | data | no | `eventFieldDslName` | `dslName` | `!Name` | `(.dslName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2221` | `EventFieldSig` | data | no | `eventFieldSelector` | `selector` | `!Name` | `(.selector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2222` | `EventFieldSig` | data | no | `eventFieldWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2223` | `EventFieldSig` | data | no | `eventFieldType` | `valueType` | `!(Maybe TypeExpr)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:74` | `DiffReport` | data | no | `reportGate` | `gate` | `!(Set CompatibilitySurface)` | `(.gate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:75` | `DiffReport` | data | no | `reportFindings` | `findings` | `![Change]` | `(.findings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:76` | `DiffReport` | data | no | `reportSemanticImpact` | `semanticImpact` | `!(Maybe [MappedImpactDelta])` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:77` | `DiffReport` | data | no | `reportCoordinationImpact` | `coordinationImpact` | `!(Maybe [CoordinationImpact])` | `(.coordinationImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:97` | `OwnedSite` | data | yes | `osFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:98` | `OwnedSite` | data | yes | `osLine` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:104` | `WorkspaceChange` | data | yes | `wcChange` | `change` | `!Change` | `(.change)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:105` | `WorkspaceChange` | data | yes | `wcDeclarationSite` | `declarationSite` | `!(Maybe OwnedSite)` | `(.declarationSite)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:106` | `WorkspaceChange` | data | yes | `wcUseSites` | `useSites` | `![(Text, Maybe OwnedSite)]` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:112` | `WorkspaceMeta` | data | yes | `wmIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:113` | `WorkspaceMeta` | data | yes | `wmManifest` | `manifest` | `!FilePath` | `(.manifest)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:114` | `WorkspaceMeta` | data | yes | `wmSince` | `since` | `!Text` | `(.since)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:115` | `WorkspaceMeta` | data | yes | `wmMembersOld` | `membersOld` | `![FilePath]` | `(.membersOld)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:116` | `WorkspaceMeta` | data | yes | `wmMembersNew` | `membersNew` | `![FilePath]` | `(.membersNew)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:117` | `WorkspaceMeta` | data | yes | `wmAdoptionBaseline` | `adoptionBaseline` | `!Bool` | `(.adoptionBaseline)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:122` | `WorkspaceDiffReport` | data | no | `workspaceReportMeta` | `meta` | `!WorkspaceMeta` | `(.meta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:123` | `WorkspaceDiffReport` | data | no | `workspaceReportGate` | `gate` | `!(Set CompatibilitySurface)` | `(.gate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:124` | `WorkspaceDiffReport` | data | no | `workspaceReportFindings` | `findings` | `![WorkspaceChange]` | `(.findings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:125` | `WorkspaceDiffReport` | data | no | `workspaceReportSemanticImpact` | `semanticImpact` | `!(Maybe [MappedImpactDelta])` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:126` | `WorkspaceDiffReport` | data | no | `workspaceReportCoordinationImpact` | `coordinationImpact` | `!(Maybe [CoordinationImpact])` | `(.coordinationImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:36` | `CheckedFieldCopy` | data | yes | `outputSelector` | `outputSelector` | `!Name` | `(.outputSelector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:37` | `CheckedFieldCopy` | data | yes | `outputWireName` | `outputWireName` | `!Text` | `(.outputWireName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:38` | `CheckedFieldCopy` | data | yes | `outputFieldType` | `outputFieldType` | `!ResolvedAggregateType` | `(.outputFieldType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:43` | `OutputObligationKey` | newtype | yes | `unOutputObligationKey` | `unOutputObligationKey` | `Text` | explicit `unOutputObligationKey` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:52` | `EventOutputMapping` | data | yes | `outputSourceCommand` | `sourceCommand` | `!Name` | `(.sourceCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:53` | `EventOutputMapping` | data | yes | `outputFields` | `fields` | `![CheckedFieldCopy]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:56` | `EventOutputMapping` | data | yes | `outputObligation` | `obligation` | `!OutputObligationKey` | `(.obligation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:64` | `EventOutputError` | data | yes | `declaredSourceCommand` | `declaredSourceCommand` | `!Name` | `(.declaredSourceCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:65` | `EventOutputError` | data | yes | `consumingTransitionCommand` | `consumingTransitionCommand` | `!Name` | `(.consumingTransitionCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:66` | `EventOutputError` | data | yes | `emittedEventName` | `emittedEventName` | `!Name` | `(.emittedEventName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:51` | `BindingObligation` | data | yes | `obligationMappedName` | `mappedName` | `!Name` | `(.mappedName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:52` | `BindingObligation` | data | yes | `obligationPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:53` | `BindingObligation` | data | yes | `obligationModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:54` | `BindingObligation` | data | yes | `obligationSymbol` | `symbol` | `!Text` | `(.symbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:55` | `BindingObligation` | data | yes | `obligationKind` | `kind` | `!BindingObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:56` | `BindingObligation` | data | yes | `obligationSignature` | `signature` | `!Text` | `(.signature)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:57` | `BindingObligation` | data | yes | `obligationUseSites` | `useSites` | `![Text]` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:58` | `BindingObligation` | data | yes | `obligationBindingVersion` | `bindingVersion` | `!(Maybe Text)` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:59` | `BindingObligation` | data | yes | `obligationCanonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:60` | `BindingObligation` | data | yes | `obligationEqualityContract` | `equalityContract` | `!(Maybe Text)` | `(.equalityContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:61` | `BindingObligation` | data | yes | `obligationIdDomainContract` | `idDomainContract` | `!(Maybe Text)` | `(.idDomainContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:62` | `BindingObligation` | data | yes | `obligationCategory` | `category` | `!Text` | `(.category)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:67` | `BindingHole` | data | yes | `holeMappedName` | `mappedName` | `!Name` | `(.mappedName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:68` | `BindingHole` | data | yes | `holeModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:69` | `BindingHole` | data | yes | `holeSymbol` | `symbol` | `!Text` | `(.symbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:70` | `BindingHole` | data | yes | `holeKind` | `kind` | `!BindingObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:71` | `BindingHole` | data | yes | `holePath` | `path` | `!(Maybe Text)` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:72` | `BindingHole` | data | yes | `holeSignature` | `signature` | `!Text` | `(.signature)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:46` | `ExpressionEnvironment` | data | no | `environmentSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:47` | `ExpressionEnvironment` | data | no | `environmentAggregate` | `aggregate` | `!Aggregate` | `(.aggregate)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:48` | `ExpressionEnvironment` | data | no | `environmentTransition` | `transition` | `!Transition` | `(.transition)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:49` | `ExpressionEnvironment` | data | no | `environmentSymbols` | `symbols` | `!AggregateSymbols` | `(.symbols)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:50` | `ExpressionEnvironment` | data | no | `environmentTypeGraph` | `typeGraph` | `!(Maybe TypeGraph)` | `(.typeGraph)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:89` | `ResolvedScalarProjection` | data | yes | `scalarProjectionOwner` | `owner` | `!MappedKey` | `(.owner)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:90` | `ResolvedScalarProjection` | data | yes | `scalarProjectionPointer` | `pointer` | `!Text` | `(.pointer)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:91` | `ResolvedScalarProjection` | data | yes | `scalarProjectionFields` | `fields` | `![Name]` | `(.fields)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:92` | `ResolvedScalarProjection` | data | yes | `terminalNominal` | `terminalNominal` | `!(Maybe NominalLeaf)` | `(.terminalNominal)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:129` | `TypedScalarExpr` | data | yes | `typedScalarType` | `valueType` | `!ResolvedAggregateType` | `(.valueType)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:130` | `TypedScalarExpr` | data | yes | `typedScalarLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:131` | `TypedScalarExpr` | data | yes | `typedScalarNode` | `node` | `!TypedScalarNode` | `(.node)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:157` | `ExpressionDiagnostic` | data | yes | `expressionDiagnosticLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:158` | `ExpressionDiagnostic` | data | yes | `expressionDiagnosticCode` | `code` | `!ExpressionDiagnosticCode` | `(.code)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Expression.hs:159` | `ExpressionDiagnostic` | data | yes | `expressionDiagnosticMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:18` | `ResolvedFieldIdentity` | data | no | `fieldDslName` | `dslName` | `!Name` | `(.dslName)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:19` | `ResolvedFieldIdentity` | data | no | `fieldSelector` | `selector` | `!Text` | `(.selector)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:20` | `ResolvedFieldIdentity` | data | no | `fieldWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:21` | `ResolvedFieldIdentity` | data | no | `fieldLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:89` | `FoldEvidence` | data | no | `canonicalSegments` | `canonicalSegments` | `![Text]` | `(.canonicalSegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:90` | `FoldEvidence` | data | no | `aggregateSegments` | `aggregateSegments` | `![Text]` | `(.aggregateSegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:91` | `FoldEvidence` | data | no | `eventSegments` | `eventSegments` | `!(Map.Map Name (Set Text))` | `(.eventSegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:92` | `FoldEvidence` | data | no | `bodySegments` | `bodySegments` | `!(Map.Map (TransitionFamilyKey, ReplayBodyKey) BodyEvidence)` | `(.bodySegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:96` | `BodyEvidence` | data | no | `outputSegments` | `outputSegments` | `!(Set Text)` | `(.outputSegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:97` | `BodyEvidence` | data | no | `ruleSegments` | `ruleSegments` | `!(Map.Map Name Text)` | `(.ruleSegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:98` | `BodyEvidence` | data | no | `equalitySegments` | `equalitySegments` | `!(Map.Map Name (Set Text))` | `(.equalitySegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:99` | `BodyEvidence` | data | no | `guardEqualitySegments` | `guardEqualitySegments` | `!(Map.Map Text (Set Text))` | `(.guardEqualitySegments)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:100` | `BodyEvidence` | data | no | `emittedEvents` | `emittedEvents` | `!(Set Name)` | `(.emittedEvents)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:55` | `FrontendContext` | data | no | `source` | `source` | `!FilePath` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:56` | `FrontendContext` | data | no | `language` | `language` | `!SourceLanguage` | `(.language)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:57` | `FrontendContext` | data | no | `definition` | `definition` | `!LanguageDefinition` | `(.definition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:91` | `FrontendFailure` | data | no | `phase` | `phase` | `!FrontendPhase` | `(.phase)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:92` | `FrontendFailure` | data | no | `code` | `code` | `!FrontendErrorCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:93` | `FrontendFailure` | data | no | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:94` | `FrontendFailure` | data | no | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:95` | `FrontendFailure` | data | no | `expected` | `expected` | `![Text]` | `(.expected)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:96` | `FrontendFailure` | data | no | `supportedVersions` | `supportedVersions` | `![LanguageVersion]` | `(.supportedVersions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:97` | `FrontendFailure` | data | no | `compatibility` | `compatibility` | `!ParseFailure` | `(.compatibility)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:143` | `LoweringFailure` | data | no | `code` | `code` | `!LoweringFailureCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:144` | `LoweringFailure` | data | no | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:145` | `LoweringFailure` | data | no | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:42` | `GoldenPayload` | data | yes | `goldenContext` | `context` | `!Text` | `(.context)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:43` | `GoldenPayload` | data | yes | `goldenAggregate` | `aggregate` | `!Text` | `(.aggregate)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:44` | `GoldenPayload` | data | yes | `goldenEvent` | `event` | `!Text` | `(.event)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:45` | `GoldenPayload` | data | yes | `goldenVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:46` | `GoldenPayload` | data | yes | `goldenJson` | `json` | `!Text` | `(.json)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:47` | `GoldenPayload` | data | yes | `goldenEvidence` | `evidence` | `!GoldenEvidence` | `(.evidence)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:210` | `Loc` | newtype | yes | `unLoc` | `unLoc` | `Int` | explicit `unLoc` positional function | rendered/canonical output | `deriving stock (Show)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:227` | `IdDecl` | data | yes | `idName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:228` | `IdDecl` | data | yes | `idPrefix` | `prefix` | `!Text` | `(.prefix)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:229` | `IdDecl` | data | yes | `admission` | `admission` | `!IdAdmission` | `(.admission)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:230` | `IdDecl` | data | yes | `idBinding` | `binding` | `!(Maybe NominalBindingDecl)` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:231` | `IdDecl` | data | yes | `idLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:238` | `EnumDecl` | data | yes | `enumName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:239` | `EnumDecl` | data | yes | `enumCtors` | `ctors` | `![(Name, Text)]` | `(.ctors)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:240` | `EnumDecl` | data | yes | `enumBinding` | `binding` | `!(Maybe NominalBindingDecl)` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:241` | `EnumDecl` | data | yes | `enumLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:249` | `RuleDecl` | data | yes | `ruleName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:250` | `RuleDecl` | data | yes | `ruleDomain` | `domain` | `!Name` | `(.domain)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:251` | `RuleDecl` | data | yes | `ruleCodomain` | `codomain` | `!Name` | `(.codomain)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:252` | `RuleDecl` | data | yes | `ruleCases` | `cases` | `![(Name, Expr)]` | `(.cases)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:253` | `RuleDecl` | data | yes | `ruleLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:296` | `WireField` | data | yes | `wfHaskell` | `haskell` | `!Name` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:297` | `WireField` | data | yes | `wfKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:298` | `WireField` | data | yes | `wfType` | `valueType` | `!TypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:299` | `WireField` | data | yes | `wfPresence` | `presence` | `!Presence` | `(.presence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:300` | `WireField` | data | yes | `wfOnMissing` | `onMissing` | `!(Maybe OnMissing)` | `(.onMissing)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:301` | `WireField` | data | yes | `wfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:309` | `UnionEncoding` | data | yes | `ueTagField` | `tagField` | `!Text` | `(.tagField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:310` | `UnionEncoding` | data | yes | `ueContentsField` | `contentsField` | `!Text` | `(.contentsField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:311` | `UnionEncoding` | data | yes | `ueUnknownFields` | `unknownFields` | `!UnknownFields` | `(.unknownFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:316` | `WireEnum` | data | yes | `weCtor` | `ctor` | `!Name` | `(.ctor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:317` | `WireEnum` | data | yes | `weTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:318` | `WireEnum` | data | yes | `weLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:323` | `WireArm` | data | yes | `waCtor` | `ctor` | `!Name` | `(.ctor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:324` | `WireArm` | data | yes | `waTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:325` | `WireArm` | data | yes | `waPayload` | `payload` | `!(Maybe TypeExpr)` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:326` | `WireArm` | data | yes | `waLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:345` | `HaskellSource` | data | yes | `hsPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:346` | `HaskellSource` | data | yes | `hsModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:347` | `HaskellSource` | data | yes | `hsType` | `valueType` | `!Name` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:356` | `NominalBindingDecl` | data | yes | `nominalHaskell` | `haskell` | `!(Maybe HaskellSource)` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:357` | `NominalBindingDecl` | data | yes | `nominalBinding` | `binding` | `!(Maybe Text)` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:358` | `NominalBindingDecl` | data | yes | `nominalBindingVersion` | `bindingVersion` | `!(Maybe Text)` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:359` | `NominalBindingDecl` | data | yes | `nominalCanonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:360` | `NominalBindingDecl` | data | yes | `nominalFixtures` | `fixtures` | `!(Maybe Text)` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:361` | `NominalBindingDecl` | data | yes | `nominalInitial` | `initial` | `!(Maybe Text)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:362` | `NominalBindingDecl` | data | yes | `nominalLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:371` | `NominalScalarDecl` | data | yes | `nominalScalarName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:372` | `NominalScalarDecl` | data | yes | `nominalScalarRepresentation` | `representation` | `!Name` | `(.representation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:373` | `NominalScalarDecl` | data | yes | `nominalScalarBinding` | `binding` | `!NominalBindingDecl` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:374` | `NominalScalarDecl` | data | yes | `nominalScalarLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:381` | `MappedWriteLiftDecl` | data | yes | `source` | `source` | `!TypeExpr` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:382` | `MappedWriteLiftDecl` | data | yes | `function` | `function` | `!(Maybe Text)` | `(.function)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:383` | `MappedWriteLiftDecl` | data | yes | `version` | `version` | `!(Maybe Text)` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:384` | `MappedWriteLiftDecl` | data | yes | `fixtures` | `fixtures` | `!(Maybe Text)` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:385` | `MappedWriteLiftDecl` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:391` | `MappedDecl` | data | yes | `msName` | `msName` | `!Name` | `(.msName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:392` | `MappedDecl` | data | yes | `msHaskell` | `msHaskell` | `!(Maybe HaskellSource)` | `(.msHaskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:393` | `MappedDecl` | data | yes | `msBinding` | `msBinding` | `!(Maybe Text)` | `(.msBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:394` | `MappedDecl` | data | yes | `msBindingVersion` | `msBindingVersion` | `!(Maybe Text)` | `(.msBindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:395` | `MappedDecl` | data | yes | `msCanonical` | `msCanonical` | `!(Maybe Text)` | `(.msCanonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:396` | `MappedDecl` | data | yes | `msFixtures` | `msFixtures` | `!(Maybe Text)` | `(.msFixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:397` | `MappedDecl` | data | yes | `msInitial` | `msInitial` | `!(Maybe Text)` | `(.msInitial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:398` | `MappedDecl` | data | yes | `msWriteLift` | `msWriteLift` | `!(Maybe MappedWriteLiftDecl)` | `(.msWriteLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:399` | `MappedDecl` | data | yes | `msShape` | `msShape` | `!MappedShape` | `(.msShape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:400` | `MappedDecl` | data | yes | `msLoc` | `msLoc` | `!Loc` | `(.msLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:403` | `MappedDecl` | data | yes | `mrName` | `mrName` | `!Name` | `(.mrName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:404` | `MappedDecl` | data | yes | `mrHaskell` | `mrHaskell` | `!(Maybe HaskellSource)` | `(.mrHaskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:405` | `MappedDecl` | data | yes | `mrBinding` | `mrBinding` | `!(Maybe Text)` | `(.mrBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:406` | `MappedDecl` | data | yes | `mrBindingVersion` | `mrBindingVersion` | `!(Maybe Text)` | `(.mrBindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:407` | `MappedDecl` | data | yes | `mrCanonical` | `mrCanonical` | `!(Maybe Text)` | `(.mrCanonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:408` | `MappedDecl` | data | yes | `mrFixtures` | `mrFixtures` | `!(Maybe Text)` | `(.mrFixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:409` | `MappedDecl` | data | yes | `mrInitial` | `mrInitial` | `!(Maybe Text)` | `(.mrInitial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:410` | `MappedDecl` | data | yes | `mrPolicy` | `mrPolicy` | `!RefinedWirePolicy` | `(.mrPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:411` | `MappedDecl` | data | yes | `mrLoc` | `mrLoc` | `!Loc` | `(.mrLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:414` | `MappedDecl` | data | yes | `moName` | `moName` | `!Name` | `(.moName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:415` | `MappedDecl` | data | yes | `moHaskell` | `moHaskell` | `!(Maybe HaskellSource)` | `(.moHaskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:416` | `MappedDecl` | data | yes | `moCodecId` | `moCodecId` | `!(Maybe Text)` | `(.moCodecId)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:417` | `MappedDecl` | data | yes | `moCodecVersion` | `moCodecVersion` | `!(Maybe Text)` | `(.moCodecVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:418` | `MappedDecl` | data | yes | `moFixtures` | `moFixtures` | `!(Maybe Text)` | `(.moFixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:419` | `MappedDecl` | data | yes | `moInitial` | `moInitial` | `!(Maybe Text)` | `(.moInitial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:420` | `MappedDecl` | data | yes | `moWriteLift` | `moWriteLift` | `!(Maybe MappedWriteLiftDecl)` | `(.moWriteLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:421` | `MappedDecl` | data | yes | `moLoc` | `moLoc` | `!Loc` | `(.moLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:429` | `Mapping` | data | yes | `mapPairs` | `pairs` | `![(Name, Name)]` | `(.pairs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:430` | `Mapping` | data | yes | `mapPartial` | `partial` | `!Bool` | `(.partial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:544` | `RegDecl` | data | yes | `regName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:545` | `RegDecl` | data | yes | `regType` | `valueType` | `!TypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:546` | `RegDecl` | data | yes | `regInitial` | `initial` | `!RegInitial` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:547` | `RegDecl` | data | yes | `regLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:555` | `StateDecl` | data | yes | `stName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:556` | `StateDecl` | data | yes | `stTerminal` | `terminal` | `!Bool` | `(.terminal)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:557` | `StateDecl` | data | yes | `stLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:568` | `AggregateField` | data | yes | `aggregateFieldName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:569` | `AggregateField` | data | yes | `aggregateFieldSelector` | `selector` | `!(Maybe Name)` | `(.selector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:570` | `AggregateField` | data | yes | `aggregateFieldWireKey` | `wireKey` | `!(Maybe Text)` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:571` | `AggregateField` | data | yes | `aggregateFieldType` | `valueType` | `!(Maybe TypeExpr)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:572` | `AggregateField` | data | yes | `aggregateFieldLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:579` | `Field` | data | yes | `fieldName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:580` | `Field` | data | yes | `fieldType` | `valueType` | `!(Maybe Name)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:586` | `Command` | data | yes | `cmdName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:587` | `Command` | data | yes | `cmdFields` | `fields` | `![AggregateField]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:588` | `Command` | data | yes | `cmdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:598` | `Event` | data | yes | `evName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:599` | `Event` | data | yes | `evBody` | `body` | `!EventBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:601` | `Event` | data | yes | `evVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:604` | `Event` | data | yes | `evUpcastFrom` | `upcastFrom` | `!(Maybe (Int, Hole))` | `(.upcastFrom)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:609` | `Event` | data | yes | `evRetiring` | `retiring` | `!Bool` | `(.retiring)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:613` | `Event` | data | yes | `evDeprecated` | `deprecated` | `!Bool` | `(.deprecated)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:614` | `Event` | data | yes | `evLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:632` | `DomainOutcomeTypes` | data | yes | `rejectionType` | `rejectionType` | `!Name` | `(.rejectionType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:633` | `DomainOutcomeTypes` | data | yes | `noOpType` | `noOpType` | `!Name` | `(.noOpType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:634` | `DomainOutcomeTypes` | data | yes | `outcomeTypesLoc` | `outcomeTypesLoc` | `!Loc` | `(.outcomeTypesLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:654` | `Transition` | data | yes | `tSource` | `source` | `!Name` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:655` | `Transition` | data | yes | `tCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:656` | `Transition` | data | yes | `tImplementation` | `implementation` | `!TransitionImplementation` | `(.implementation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:657` | `Transition` | data | yes | `tGuard` | `guard` | `!(Maybe Expr)` | `(.guard)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:658` | `Transition` | data | yes | `tWrites` | `writes` | `![(Name, Expr)]` | `(.writes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:659` | `Transition` | data | yes | `tEmits` | `emits` | `![Name]` | `(.emits)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:660` | `Transition` | data | yes | `tOutcome` | `outcome` | `!(Maybe TransitionOutcome)` | `(.outcome)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:663` | `Transition` | data | yes | `tOutcomeDuplicateLocs` | `outcomeDuplicateLocs` | `![Loc]` | `(.outcomeDuplicateLocs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:664` | `Transition` | data | yes | `tGoto` | `goto` | `!Name` | `(.goto)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:665` | `Transition` | data | yes | `tMode` | `mode` | `!TransitionMode` | `(.mode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:666` | `Transition` | data | yes | `tLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:694` | `WireSpec` | data | yes | `wireKind` | `kind` | `!Text` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:695` | `WireSpec` | data | yes | `wireFields` | `fields` | `!Text` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:696` | `WireSpec` | data | yes | `wireSchemaVersion` | `schemaVersion` | `!Int` | `(.schemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:703` | `ProjectionSpec` | data | yes | `projTable` | `table` | `!Name` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:704` | `ProjectionSpec` | data | yes | `projConsistency` | `consistency` | `!(Maybe Consistency)` | `(.consistency)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:705` | `ProjectionSpec` | data | yes | `projKey` | `key` | `!Name` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:706` | `ProjectionSpec` | data | yes | `projStatusMap` | `statusMap` | `!(Maybe Mapping)` | `(.statusMap)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:707` | `ProjectionSpec` | data | yes | `projLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:720` | `SnapshotSpec` | data | yes | `snapPolicy` | `policy` | `!SnapPolicy` | `(.policy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:721` | `SnapshotSpec` | data | yes | `snapCodecVersion` | `codecVersion` | `!Int` | `(.codecVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:722` | `SnapshotSpec` | data | yes | `snapShapeHash` | `shapeHash` | `!Text` | `(.shapeHash)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:723` | `SnapshotSpec` | data | yes | `snapLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:730` | `Aggregate` | data | yes | `aggName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:731` | `Aggregate` | data | yes | `aggRegs` | `regs` | `![RegDecl]` | `(.regs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:732` | `Aggregate` | data | yes | `aggStates` | `states` | `![StateDecl]` | `(.states)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:733` | `Aggregate` | data | yes | `aggCommands` | `commands` | `![Command]` | `(.commands)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:734` | `Aggregate` | data | yes | `aggEvents` | `events` | `![Event]` | `(.events)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:735` | `Aggregate` | data | yes | `aggTransitions` | `transitions` | `![Transition]` | `(.transitions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:736` | `Aggregate` | data | yes | `aggDomainOutcomeTypes` | `domainOutcomeTypes` | `!(Maybe DomainOutcomeTypes)` | `(.domainOutcomeTypes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:739` | `Aggregate` | data | yes | `aggDomainOutcomeDuplicateLocs` | `domainOutcomeDuplicateLocs` | `![Loc]` | `(.domainOutcomeDuplicateLocs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:740` | `Aggregate` | data | yes | `aggWire` | `wire` | `!(Maybe WireSpec)` | `(.wire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:741` | `Aggregate` | data | yes | `aggProjection` | `projection` | `!(Maybe ProjectionSpec)` | `(.projection)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:742` | `Aggregate` | data | yes | `aggSnapshot` | `snapshot` | `!(Maybe SnapshotSpec)` | `(.snapshot)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:743` | `Aggregate` | data | yes | `aggLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:753` | `FieldBinding` | data | yes | `fbName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:754` | `FieldBinding` | data | yes | `fbValue` | `value` | `!(Maybe Text)` | `(.value)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:761` | `InputDecl` | data | yes | `inName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:762` | `InputDecl` | data | yes | `inFields` | `fields` | `![Field]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:763` | `InputDecl` | data | yes | `inType` | `valueType` | `!(Maybe TypeExpr)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:764` | `InputDecl` | data | yes | `inLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:771` | `CorrelateDecl` | data | yes | `corrField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:772` | `CorrelateDecl` | data | yes | `corrVia` | `via` | `!Name` | `(.via)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:780` | `SagaRef` | data | yes | `sagaAgg` | `agg` | `!Name` | `(.agg)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:781` | `SagaRef` | data | yes | `sagaCategory` | `category` | `!Text` | `(.category)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:792` | `DispatchDisposition` | data | yes | `onAppended` | `onAppended` | `!Disp` | `(.onAppended)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:793` | `DispatchDisposition` | data | yes | `onDuplicate` | `onDuplicate` | `!Disp` | `(.onDuplicate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:794` | `DispatchDisposition` | data | yes | `onFailed` | `onFailed` | `!Disp` | `(.onFailed)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:800` | `AdvanceNode` | data | yes | `advCommand` | `advCommand` | `!Name` | `(.advCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:801` | `AdvanceNode` | data | yes | `advFields` | `advFields` | `![FieldBinding]` | `(.advFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:807` | `DispatchNode` | data | yes | `dispTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:808` | `DispatchNode` | data | yes | `dispKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:809` | `DispatchNode` | data | yes | `dispCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:810` | `DispatchNode` | data | yes | `dispFields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:811` | `DispatchNode` | data | yes | `disposition` | `osition` | `!DispatchDisposition` | `(.osition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:812` | `DispatchNode` | data | yes | `dispLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:819` | `HandleNode` | data | yes | `hOn` | `on` | `!Name` | `(.on)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:820` | `HandleNode` | data | yes | `hAdvance` | `advance` | `!AdvanceNode` | `(.advance)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:821` | `HandleNode` | data | yes | `hDispatch` | `dispatch` | `![DispatchNode]` | `(.dispatch)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:822` | `HandleNode` | data | yes | `hSchedule` | `schedule` | `!Name` | `(.schedule)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:828` | `IdExpr` | data | yes | `ideStrategy` | `strategy` | `!IdStrategy` | `(.strategy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:829` | `IdExpr` | data | yes | `idePrefix` | `prefix` | `!Text` | `(.prefix)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:830` | `IdExpr` | data | yes | `ideField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:841` | `FireAtExpr` | data | yes | `faField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:842` | `FireAtExpr` | data | yes | `faWindow` | `window` | `!Text` | `(.window)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:852` | `FireDisposition` | data | yes | `onOk` | `onOk` | `!FireOutcome` | `(.onOk)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:853` | `FireDisposition` | data | yes | `onReject` | `onReject` | `!FireOutcome` | `(.onReject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:854` | `FireDisposition` | data | yes | `onAmbiguous` | `onAmbiguous` | `!FireOutcome` | `(.onAmbiguous)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:855` | `FireDisposition` | data | yes | `onError` | `onError` | `!FireOutcome` | `(.onError)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:856` | `FireDisposition` | data | yes | `notMine` | `notMine` | `!FireOutcome` | `(.notMine)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:862` | `FireNode` | data | yes | `fireTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:863` | `FireNode` | data | yes | `fireKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:864` | `FireNode` | data | yes | `fireCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:865` | `FireNode` | data | yes | `fireFields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:866` | `FireNode` | data | yes | `fireFiredEventId` | `firedEventId` | `!IdExpr` | `(.firedEventId)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:867` | `FireNode` | data | yes | `fireDisposition` | `disposition` | `!FireDisposition` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:873` | `TimerNode` | data | yes | `tmName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:874` | `TimerNode` | data | yes | `tmId` | `id` | `!IdExpr` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:875` | `TimerNode` | data | yes | `tmFireAt` | `fireAt` | `!FireAtExpr` | `(.fireAt)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:876` | `TimerNode` | data | yes | `tmPayload` | `payload` | `![FieldBinding]` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:877` | `TimerNode` | data | yes | `tmFire` | `fire` | `!FireNode` | `(.fire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:878` | `TimerNode` | data | yes | `tmDecodeUnknown` | `decodeUnknown` | `!Name` | `(.decodeUnknown)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:879` | `TimerNode` | data | yes | `tmMaxAttempts` | `maxAttempts` | `!Int` | `(.maxAttempts)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:880` | `TimerNode` | data | yes | `tmDeadLetter` | `deadLetter` | `!Text` | `(.deadLetter)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:881` | `TimerNode` | data | yes | `tmLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:894` | `ReactionBody` | data | yes | `version` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:895` | `ReactionBody` | data | yes | `versionLoc` | `versionLoc` | `!Loc` | `(.versionLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:896` | `ReactionBody` | data | yes | `inputs` | `inputs` | `!(NonEmpty InputDecl)` | `(.inputs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:897` | `ReactionBody` | data | yes | `reactions` | `reactions` | `!(NonEmpty ReactionNode)` | `(.reactions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:898` | `ReactionBody` | data | yes | `timerPolicy` | `timerPolicy` | `!(Maybe TimerPolicy)` | `(.timerPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:899` | `ReactionBody` | data | yes | `timers` | `timers` | `![ReactionTimerNode]` | `(.timers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:904` | `ReactionNode` | data | yes | `on` | `on` | `!Name` | `(.on)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:905` | `ReactionNode` | data | yes | `arms` | `arms` | `!(NonEmpty ReactionArm)` | `(.arms)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:906` | `ReactionNode` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:911` | `ReactionArm` | data | yes | `guard` | `guard` | `!ArmGuard` | `(.guard)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:912` | `ReactionArm` | data | yes | `body` | `body` | `!ArmBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:913` | `ReactionArm` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:926` | `ArmBody` | data | yes | `advance` | `advance` | `!(Maybe AdvanceReaction)` | `(.advance)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:927` | `ArmBody` | data | yes | `followUps` | `followUps` | `![FollowUp]` | `(.followUps)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:932` | `AdvanceReaction` | data | yes | `command` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:933` | `AdvanceReaction` | data | yes | `fields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:934` | `AdvanceReaction` | data | yes | `accepted` | `accepted` | `!(Maybe [FollowUp])` | `(.accepted)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:935` | `AdvanceReaction` | data | yes | `silentNoAction` | `silentNoAction` | `!Bool` | `(.silentNoAction)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:936` | `AdvanceReaction` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:947` | `ScheduleNode` | data | yes | `timer` | `timer` | `!Name` | `(.timer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:948` | `ScheduleNode` | data | yes | `mode` | `mode` | `!ScheduleMode` | `(.mode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:949` | `ScheduleNode` | data | yes | `fireAt` | `fireAt` | `!FireAtExpr` | `(.fireAt)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:950` | `ScheduleNode` | data | yes | `bindings` | `bindings` | `![FieldBinding]` | `(.bindings)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:951` | `ScheduleNode` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:959` | `TimerPolicy` | data | yes | `maxAttempts` | `maxAttempts` | `!Int` | `(.maxAttempts)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:960` | `TimerPolicy` | data | yes | `deadLetter` | `deadLetter` | `!Text` | `(.deadLetter)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:961` | `TimerPolicy` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:966` | `ReactionTimerNode` | data | yes | `name` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:967` | `ReactionTimerNode` | data | yes | `id` | `id` | `!IdExpr` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:968` | `ReactionTimerNode` | data | yes | `payload` | `payload` | `![PayloadField]` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:969` | `ReactionTimerNode` | data | yes | `fire` | `fire` | `!FireNode` | `(.fire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:970` | `ReactionTimerNode` | data | yes | `decodeUnknown` | `decodeUnknown` | `!Name` | `(.decodeUnknown)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:971` | `ReactionTimerNode` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:988` | `ProcessNode` | data | yes | `procId` | `id` | `!Name` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:990` | `ProcessNode` | data | yes | `procName` | `name` | `!Text` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:991` | `ProcessNode` | data | yes | `procCorrelate` | `correlate` | `!CorrelateDecl` | `(.correlate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:992` | `ProcessNode` | data | yes | `procSaga` | `saga` | `!SagaRef` | `(.saga)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:993` | `ProcessNode` | data | yes | `procTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:994` | `ProcessNode` | data | yes | `procProjections` | `projections` | `![Name]` | `(.projections)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:995` | `ProcessNode` | data | yes | `body` | `body` | `!ProcessBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:996` | `ProcessNode` | data | yes | `procRejected` | `rejected` | `!PolicyChoice` | `(.rejected)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:997` | `ProcessNode` | data | yes | `procPoison` | `poison` | `!PolicyChoice` | `(.poison)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:998` | `ProcessNode` | data | yes | `procLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1015` | `RouterSelectionDecl` | data | yes | `rsIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1016` | `RouterSelectionDecl` | data | yes | `rsIdentityLoc` | `identityLoc` | `!Loc` | `(.identityLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1017` | `RouterSelectionDecl` | data | yes | `rsVersion` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1018` | `RouterSelectionDecl` | data | yes | `rsVersionLoc` | `versionLoc` | `!Loc` | `(.versionLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1019` | `RouterSelectionDecl` | data | yes | `rsQuery` | `query` | `!Name` | `(.query)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1020` | `RouterSelectionDecl` | data | yes | `rsQueryLoc` | `queryLoc` | `!Loc` | `(.queryLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1021` | `RouterSelectionDecl` | data | yes | `rsQueryInput` | `queryInput` | `!Name` | `(.queryInput)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1022` | `RouterSelectionDecl` | data | yes | `rsQueryInputLoc` | `queryInputLoc` | `!Loc` | `(.queryInputLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1023` | `RouterSelectionDecl` | data | yes | `rsPredicate` | `predicate` | `!Expr` | `(.predicate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1024` | `RouterSelectionDecl` | data | yes | `rsRecipient` | `recipient` | `!Expr` | `(.recipient)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1025` | `RouterSelectionDecl` | data | yes | `rsLimit` | `limit` | `!(Maybe (Natural, Loc))` | `(.limit)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1026` | `RouterSelectionDecl` | data | yes | `rsOrder` | `order` | `!Name` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1027` | `RouterSelectionDecl` | data | yes | `rsOrderLoc` | `orderLoc` | `!Loc` | `(.orderLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1028` | `RouterSelectionDecl` | data | yes | `rsDedupe` | `dedupe` | `!Name` | `(.dedupe)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1029` | `RouterSelectionDecl` | data | yes | `rsDedupeLoc` | `dedupeLoc` | `!Loc` | `(.dedupeLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1030` | `RouterSelectionDecl` | data | yes | `rsEmptyPolicy` | `emptyPolicy` | `!SelectionDispositionSyntax` | `(.emptyPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1031` | `RouterSelectionDecl` | data | yes | `rsEmptyPolicyLoc` | `emptyPolicyLoc` | `!Loc` | `(.emptyPolicyLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1032` | `RouterSelectionDecl` | data | yes | `rsFailurePolicy` | `failurePolicy` | `!SelectionDispositionSyntax` | `(.failurePolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1033` | `RouterSelectionDecl` | data | yes | `rsFailurePolicyLoc` | `failurePolicyLoc` | `!Loc` | `(.failurePolicyLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1034` | `RouterSelectionDecl` | data | yes | `rsRedelivery` | `redelivery` | `!Name` | `(.redelivery)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1035` | `RouterSelectionDecl` | data | yes | `rsRedeliveryLoc` | `redeliveryLoc` | `!Loc` | `(.redeliveryLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1036` | `RouterSelectionDecl` | data | yes | `rsPartial` | `partial` | `!Name` | `(.partial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1037` | `RouterSelectionDecl` | data | yes | `rsPartialLoc` | `partialLoc` | `!Loc` | `(.partialLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1038` | `RouterSelectionDecl` | data | yes | `rsLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1049` | `ResolveDecl` | data | yes | `rvSource` | `source` | `!ResolveSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1050` | `ResolveDecl` | data | yes | `rvRow` | `row` | `![Name]` | `(.row)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1051` | `ResolveDecl` | data | yes | `rvLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1056` | `RouterDispatchNode` | data | yes | `rdCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1057` | `RouterDispatchNode` | data | yes | `rdFields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1058` | `RouterDispatchNode` | data | yes | `rdDisposition` | `disposition` | `!DispatchDisposition` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1059` | `RouterDispatchNode` | data | yes | `rdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1067` | `RouterNode` | data | yes | `rtId` | `id` | `!Name` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1068` | `RouterNode` | data | yes | `rtName` | `name` | `!Text` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1069` | `RouterNode` | data | yes | `rtInput` | `input` | `!InputDecl` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1070` | `RouterNode` | data | yes | `rtKey` | `key` | `!CorrelateDecl` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1071` | `RouterNode` | data | yes | `rtResolve` | `resolve` | `!ResolveDecl` | `(.resolve)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1072` | `RouterNode` | data | yes | `rtTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1073` | `RouterNode` | data | yes | `rtProjections` | `projections` | `![Name]` | `(.projections)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1074` | `RouterNode` | data | yes | `rtDispatch` | `dispatch` | `!RouterDispatchNode` | `(.dispatch)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1075` | `RouterNode` | data | yes | `rtRejected` | `rejected` | `!PolicyChoice` | `(.rejected)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1076` | `RouterNode` | data | yes | `rtPoison` | `poison` | `!PolicyChoice` | `(.poison)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1077` | `RouterNode` | data | yes | `rtLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1100` | `ContractField` | data | yes | `cfName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1101` | `ContractField` | data | yes | `cfSelector` | `selector` | `!(Maybe Name)` | `(.selector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1102` | `ContractField` | data | yes | `cfWireKey` | `wireKey` | `!(Maybe Text)` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1103` | `ContractField` | data | yes | `cfType` | `valueType` | `!ContractType` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1104` | `ContractField` | data | yes | `cfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1110` | `ContractEvent` | data | yes | `ceName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1111` | `ContractEvent` | data | yes | `ceTopic` | `topic` | `!Name` | `(.topic)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1112` | `ContractEvent` | data | yes | `ceFields` | `fields` | `![ContractField]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1120` | `ContractNode` | data | yes | `ctrName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1121` | `ContractNode` | data | yes | `ctrSchemaVersion` | `schemaVersion` | `!Int` | `(.schemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1122` | `ContractNode` | data | yes | `ctrDiscriminator` | `discriminator` | `!Name` | `(.discriminator)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1124` | `ContractNode` | data | yes | `ctrTopics` | `topics` | `![(Name, Text)]` | `(.topics)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1125` | `ContractNode` | data | yes | `ctrEvents` | `events` | `![ContractEvent]` | `(.events)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1126` | `ContractNode` | data | yes | `ctrLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1142` | `BindRow` | data | yes | `brField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1143` | `BindRow` | data | yes | `brSource` | `source` | `!WireSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1144` | `BindRow` | data | yes | `brRequired` | `required` | `!Bool` | `(.required)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1145` | `BindRow` | data | yes | `brCrossCheck` | `crossCheck` | `!Bool` | `(.crossCheck)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1161` | `DispositionRow` | data | yes | `drOutcome` | `outcome` | `!Name` | `(.outcome)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1162` | `DispositionRow` | data | yes | `drAction` | `action` | `!InboxAction` | `(.action)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1163` | `DispositionRow` | data | yes | `drLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1170` | `DecodeSpec` | data | yes | `decEnvelope` | `envelope` | `!Text` | `(.envelope)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1171` | `DecodeSpec` | data | yes | `decBodyStrict` | `bodyStrict` | `!Bool` | `(.bodyStrict)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1172` | `DecodeSpec` | data | yes | `decBodySchemaVersion` | `bodySchemaVersion` | `!Int` | `(.bodySchemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1188` | `IntakeNode` | data | yes | `inkName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1189` | `IntakeNode` | data | yes | `inkContract` | `contract` | `!Name` | `(.contract)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1190` | `IntakeNode` | data | yes | `inkTopic` | `topic` | `!Name` | `(.topic)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1191` | `IntakeNode` | data | yes | `inkAccept` | `accept` | `![Name]` | `(.accept)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1192` | `IntakeNode` | data | yes | `inkBinds` | `binds` | `![BindRow]` | `(.binds)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1193` | `IntakeNode` | data | yes | `inkDedupeKey` | `dedupeKey` | `!Name` | `(.dedupeKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1194` | `IntakeNode` | data | yes | `inkDedupePolicy` | `dedupePolicy` | `!Name` | `(.dedupePolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1195` | `IntakeNode` | data | yes | `idempotence` | `idempotence` | `!IdempotenceMode` | `(.idempotence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1196` | `IntakeNode` | data | yes | `inkPersist` | `persist` | `!InkPersist` | `(.persist)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1197` | `IntakeNode` | data | yes | `inkDecode` | `decode` | `!DecodeSpec` | `(.decode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1198` | `IntakeNode` | data | yes | `inkDisposition` | `disposition` | `![DispositionRow]` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1199` | `IntakeNode` | data | yes | `inkLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1206` | `DeriveSpec` | newtype | yes | `dsPrefix` | `dsPrefix` | `Maybe Text` | `(.dsPrefix)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1211` | `EmitMapRow` | data | yes | `emrValue` | `value` | `!Text` | `(.value)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1212` | `EmitMapRow` | data | yes | `emrEvent` | `event` | `!Name` | `(.event)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1213` | `EmitMapRow` | data | yes | `emrLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1220` | `EmitNode` | data | yes | `emName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1221` | `EmitNode` | data | yes | `emContract` | `contract` | `!Name` | `(.contract)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1222` | `EmitNode` | data | yes | `emTopic` | `topic` | `!Name` | `(.topic)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1223` | `EmitNode` | data | yes | `emSource` | `source` | `!Text` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1224` | `EmitNode` | data | yes | `emKey` | `key` | `!Name` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1225` | `EmitNode` | data | yes | `emDiscriminant` | `discriminant` | `!Name` | `(.discriminant)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1226` | `EmitNode` | data | yes | `emMap` | `map` | `![EmitMapRow]` | `(.map)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1228` | `EmitNode` | data | yes | `emSkip` | `skip` | `!Bool` | `(.skip)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1229` | `EmitNode` | data | yes | `emMessageId` | `messageId` | `!DeriveSpec` | `(.messageId)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1230` | `EmitNode` | data | yes | `emIdempotencyKey` | `idempotencyKey` | `!DeriveSpec` | `(.idempotencyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1231` | `EmitNode` | data | yes | `emLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1237` | `BackoffSpec` | data | yes | `boKind` | `kind` | `!Name` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1238` | `BackoffSpec` | data | yes | `boWindow` | `window` | `!Text` | `(.window)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1239` | `BackoffSpec` | data | yes | `boMax` | `max` | `!(Maybe Text)` | `(.max)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1240` | `BackoffSpec` | data | yes | `boMultiplier` | `multiplier` | `!(Maybe Text)` | `(.multiplier)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1246` | `PublisherNode` | data | yes | `pubName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1247` | `PublisherNode` | data | yes | `pubEmit` | `emit` | `!Name` | `(.emit)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1248` | `PublisherNode` | data | yes | `pubOrdering` | `ordering` | `!Name` | `(.ordering)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1249` | `PublisherNode` | data | yes | `pubMaxAttempts` | `maxAttempts` | `!Int` | `(.maxAttempts)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1250` | `PublisherNode` | data | yes | `pubBackoff` | `backoff` | `!BackoffSpec` | `(.backoff)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1252` | `PublisherNode` | data | yes | `pubOutboxField` | `outboxField` | `!Name` | `(.outboxField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1253` | `PublisherNode` | data | yes | `pubLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1283` | `WqField` | data | yes | `wqfName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1284` | `WqField` | data | yes | `wqfWire` | `wire` | `!Text` | `(.wire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1285` | `WqField` | data | yes | `wqfType` | `valueType` | `!QueuePayloadType` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1286` | `WqField` | data | yes | `wqfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1293` | `WqDispRow` | data | yes | `wqdOutcome` | `outcome` | `!Name` | `(.outcome)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1294` | `WqDispRow` | data | yes | `wqdAction` | `action` | `!InboxAction` | `(.action)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1295` | `WqDispRow` | data | yes | `wqdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1305` | `WqGroupKey` | data | yes | `gkField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1306` | `WqGroupKey` | data | yes | `gkVia` | `via` | `!Name` | `(.via)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1307` | `WqGroupKey` | data | yes | `gkFixture` | `fixture` | `!(Maybe Text)` | `(.fixture)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1322` | `WorkqueueNode` | data | yes | `wqName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1323` | `WorkqueueNode` | data | yes | `wqLogical` | `logical` | `!Text` | `(.logical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1324` | `WorkqueueNode` | data | yes | `wqPhysical` | `physical` | `!Text` | `(.physical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1325` | `WorkqueueNode` | data | yes | `wqDlq` | `dlq` | `!Text` | `(.dlq)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1326` | `WorkqueueNode` | data | yes | `wqTable` | `table` | `!Text` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1327` | `WorkqueueNode` | data | yes | `wqOrdering` | `ordering` | `!WqOrdering` | `(.ordering)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1328` | `WorkqueueNode` | data | yes | `wqGroupKey` | `groupKey` | `!(Maybe WqGroupKey)` | `(.groupKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1329` | `WorkqueueNode` | data | yes | `wqProvision` | `provision` | `!WqProvision` | `(.provision)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1330` | `WorkqueueNode` | data | yes | `wqPayloadName` | `payloadName` | `!Name` | `(.payloadName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1331` | `WorkqueueNode` | data | yes | `wqPayload` | `payload` | `![WqField]` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1332` | `WorkqueueNode` | data | yes | `wqMaxRetries` | `maxRetries` | `!Int` | `(.maxRetries)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1333` | `WorkqueueNode` | data | yes | `wqDelay` | `delay` | `!Text` | `(.delay)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1334` | `WorkqueueNode` | data | yes | `wqDlqOn` | `dlqOn` | `!Bool` | `(.dlqOn)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1335` | `WorkqueueNode` | data | yes | `wqDisposition` | `disposition` | `![WqDispRow]` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1336` | `WorkqueueNode` | data | yes | `wqLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1343` | `PgmqDispatchNode` | data | yes | `pdName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1344` | `PgmqDispatchNode` | data | yes | `pdSourceReadModel` | `sourceReadModel` | `!Name` | `(.sourceReadModel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1345` | `PgmqDispatchNode` | data | yes | `pdSourceKey` | `sourceKey` | `!Name` | `(.sourceKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1346` | `PgmqDispatchNode` | data | yes | `pdFanoutBody` | `fanoutBody` | `!Name` | `(.fanoutBody)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1347` | `PgmqDispatchNode` | data | yes | `pdDedupKey` | `dedupKey` | `!Name` | `(.dedupKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1348` | `PgmqDispatchNode` | data | yes | `pdDedupReadModel` | `dedupReadModel` | `!Name` | `(.dedupReadModel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1349` | `PgmqDispatchNode` | data | yes | `pdDedupReadModelField` | `dedupReadModelField` | `!Text` | `(.dedupReadModelField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1350` | `PgmqDispatchNode` | data | yes | `pdDedupQueue` | `dedupQueue` | `!Name` | `(.dedupQueue)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1351` | `PgmqDispatchNode` | data | yes | `pdDedupQueueField` | `dedupQueueField` | `!Text` | `(.dedupQueueField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1352` | `PgmqDispatchNode` | data | yes | `pdEnqueueTo` | `enqueueTo` | `!Name` | `(.enqueueTo)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1353` | `PgmqDispatchNode` | data | yes | `pdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1361` | `RmColumn` | data | yes | `rmcName` | `rmcName` | `!Text` | `(.rmcName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1362` | `RmColumn` | data | yes | `rmcType` | `rmcType` | `!Text` | `(.rmcType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1363` | `RmColumn` | data | yes | `rmcRequired` | `rmcRequired` | `!Bool` | `(.rmcRequired)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1392` | `ReadModelSupply` | data | yes | `legacyConsistency` | `legacyConsistency` | `!Consistency` | `(.legacyConsistency)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1393` | `ReadModelSupply` | data | yes | `legacyScope` | `legacyScope` | `!(Maybe RmScope)` | `(.legacyScope)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1394` | `ReadModelSupply` | data | yes | `legacyFeed` | `legacyFeed` | `!RmFeed` | `(.legacyFeed)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1395` | `ReadModelSupply` | data | yes | `legacySubscription` | `legacySubscription` | `!(Maybe Text)` | `(.legacySubscription)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1403` | `ReadModelQueryTypes` | data | yes | `input` | `input` | `!TypeExpr` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1404` | `ReadModelQueryTypes` | data | yes | `result` | `result` | `!TypeExpr` | `(.result)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1405` | `ReadModelQueryTypes` | data | yes | `inputLoc` | `inputLoc` | `!Loc` | `(.inputLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1406` | `ReadModelQueryTypes` | data | yes | `resultLoc` | `resultLoc` | `!Loc` | `(.resultLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1413` | `ReadModelNode` | data | yes | `rmName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1414` | `ReadModelNode` | data | yes | `rmTable` | `table` | `!Text` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1415` | `ReadModelNode` | data | yes | `rmSchema` | `schema` | `!Text` | `(.schema)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1416` | `ReadModelNode` | data | yes | `rmColumns` | `columns` | `![RmColumn]` | `(.columns)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1417` | `ReadModelNode` | data | yes | `rmVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1418` | `ReadModelNode` | data | yes | `rmShape` | `shape` | `!Text` | `(.shape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1419` | `ReadModelNode` | data | yes | `rmFreshness` | `freshness` | `!QueryFreshnessNode` | `(.freshness)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1420` | `ReadModelNode` | data | yes | `rmSupply` | `supply` | `!ReadModelSupply` | `(.supply)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1421` | `ReadModelNode` | data | yes | `rmGroup` | `group` | `!(Maybe Name)` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1422` | `ReadModelNode` | data | yes | `rmObservedTargets` | `observedTargets` | `![Name]` | `(.observedTargets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1423` | `ReadModelNode` | data | yes | `rmBackingTarget` | `backingTarget` | `!(Maybe Name)` | `(.backingTarget)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1424` | `ReadModelNode` | data | yes | `queryTypes` | `queryTypes` | `!(Maybe ReadModelQueryTypes)` | `(.queryTypes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1425` | `ReadModelNode` | data | yes | `rmLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1456` | `ProjectionTargetNode` | data | yes | `ptName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1457` | `ProjectionTargetNode` | data | yes | `ptSchema` | `schema` | `!Text` | `(.schema)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1458` | `ProjectionTargetNode` | data | yes | `ptTable` | `table` | `!Text` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1459` | `ProjectionTargetNode` | data | yes | `ptReset` | `reset` | `!TargetResetPolicy` | `(.reset)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1460` | `ProjectionTargetNode` | data | yes | `ptDependsOn` | `dependsOn` | `![Name]` | `(.dependsOn)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1461` | `ProjectionTargetNode` | data | yes | `ptLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1467` | `RebuildGroupNode` | data | yes | `rgName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1468` | `RebuildGroupNode` | data | yes | `rgTargets` | `targets` | `![Name]` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1469` | `RebuildGroupNode` | data | yes | `rgOrder` | `order` | `![Name]` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1470` | `RebuildGroupNode` | data | yes | `rgLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1481` | `PromotionObjectNode` | data | yes | `rpoKind` | `kind` | `!PromotionObjectKindNode` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1482` | `PromotionObjectNode` | data | yes | `rpoGenerationName` | `generationName` | `!Text` | `(.generationName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1483` | `PromotionObjectNode` | data | yes | `rpoCanonicalName` | `canonicalName` | `!Text` | `(.canonicalName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1490` | `RevisionTargetNode` | data | yes | `prtTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1491` | `RevisionTargetNode` | data | yes | `prtSchemaVersion` | `schemaVersion` | `!Text` | `(.schemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1492` | `RevisionTargetNode` | data | yes | `prtProvisioner` | `provisioner` | `!Text` | `(.provisioner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1493` | `RevisionTargetNode` | data | yes | `prtProvisionerVersion` | `provisionerVersion` | `!Int` | `(.provisionerVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1494` | `RevisionTargetNode` | data | yes | `prtExpectedShape` | `expectedShape` | `!Text` | `(.expectedShape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1495` | `RevisionTargetNode` | data | yes | `prtValidator` | `validator` | `!Text` | `(.validator)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1496` | `RevisionTargetNode` | data | yes | `prtValidatorVersion` | `validatorVersion` | `!Int` | `(.validatorVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1497` | `RevisionTargetNode` | data | yes | `prtPromotionObjects` | `promotionObjects` | `![PromotionObjectNode]` | `(.promotionObjects)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1502` | `ProjectionRevisionNode` | data | yes | `prvName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1503` | `ProjectionRevisionNode` | data | yes | `prvGroup` | `group` | `!Name` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1504` | `ProjectionRevisionNode` | data | yes | `prvTargets` | `targets` | `![RevisionTargetNode]` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1505` | `ProjectionRevisionNode` | data | yes | `prvLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1513` | `ExternalReadNode` | data | yes | `erName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1514` | `ExternalReadNode` | data | yes | `erVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1515` | `ExternalReadNode` | data | yes | `erQueryModel` | `queryModel` | `!Name` | `(.queryModel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1516` | `ExternalReadNode` | data | yes | `erResultSchema` | `resultSchema` | `!Text` | `(.resultSchema)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1517` | `ExternalReadNode` | data | yes | `erResultType` | `resultType` | `!Text` | `(.resultType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1518` | `ExternalReadNode` | data | yes | `erCompatibleRevisions` | `compatibleRevisions` | `![Name]` | `(.compatibleRevisions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1519` | `ExternalReadNode` | data | yes | `erSurfaceGeneration` | `surfaceGeneration` | `!Int` | `(.surfaceGeneration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1520` | `ExternalReadNode` | data | yes | `erLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1555` | `ProjectionOwnerNode` | data | yes | `poName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1556` | `ProjectionOwnerNode` | data | yes | `poSources` | `sources` | `![CatalogSource]` | `(.sources)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1557` | `ProjectionOwnerNode` | data | yes | `poDelivery` | `delivery` | `!ProjectionDelivery` | `(.delivery)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1558` | `ProjectionOwnerNode` | data | yes | `poGroup` | `group` | `!Name` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1559` | `ProjectionOwnerNode` | data | yes | `poTargets` | `targets` | `![Name]` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1560` | `ProjectionOwnerNode` | data | yes | `poOrder` | `order` | `!Int` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1561` | `ProjectionOwnerNode` | data | yes | `poSubscription` | `subscription` | `!(Maybe Text)` | `(.subscription)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1562` | `ProjectionOwnerNode` | data | yes | `poDedup` | `dedup` | `!(Maybe Text)` | `(.dedup)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1563` | `ProjectionOwnerNode` | data | yes | `poCheckpointOnMissing` | `checkpointOnMissing` | `![CheckpointOnMissingNode]` | `(.checkpointOnMissing)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1564` | `ProjectionOwnerNode` | data | yes | `poReplay` | `replay` | `!ProjectionReplayPolicy` | `(.replay)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1565` | `ProjectionOwnerNode` | data | yes | `poLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1591` | `WorkflowNode` | data | yes | `wfId` | `id` | `!Name` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1593` | `WorkflowNode` | data | yes | `wfStable` | `stable` | `!Text` | `(.stable)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1594` | `WorkflowNode` | data | yes | `wfInput` | `input` | `!Name` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1595` | `WorkflowNode` | data | yes | `wfInputFields` | `inputFields` | `![Field]` | `(.inputFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1596` | `WorkflowNode` | data | yes | `wfOutput` | `output` | `!Name` | `(.output)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1598` | `WorkflowNode` | data | yes | `wfIdField` | `idField` | `!(Maybe Name)` | `(.idField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1599` | `WorkflowNode` | data | yes | `wfIdVia` | `idVia` | `!Name` | `(.idVia)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1600` | `WorkflowNode` | data | yes | `wfBody` | `body` | `![WfBodyItem]` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1601` | `WorkflowNode` | data | yes | `wfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1621` | `OperationNode` | data | yes | `opName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1622` | `OperationNode` | data | yes | `opShape` | `shape` | `!OperationShape` | `(.shape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1623` | `OperationNode` | data | yes | `opLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1669` | `Spec` | data | yes | `specContext` | `context` | `!Name` | `(.context)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1670` | `Spec` | data | yes | `specModuleRoot` | `moduleRoot` | `!(Maybe Text)` | `(.moduleRoot)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1671` | `Spec` | data | yes | `specLayout` | `layout` | `!(Maybe Placement)` | `(.layout)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1672` | `Spec` | data | yes | `specIds` | `ids` | `![IdDecl]` | `(.ids)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1673` | `Spec` | data | yes | `specEnums` | `enums` | `![EnumDecl]` | `(.enums)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1674` | `Spec` | data | yes | `specRules` | `rules` | `![RuleDecl]` | `(.rules)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1675` | `Spec` | data | yes | `specNominalScalars` | `nominalScalars` | `![NominalScalarDecl]` | `(.nominalScalars)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1676` | `Spec` | data | yes | `specMapped` | `mapped` | `![MappedDecl]` | `(.mapped)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1677` | `Spec` | data | yes | `specNodes` | `nodes` | `![Node]` | `(.nodes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:41` | `HaskellReference` | data | yes | `referenceModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:42` | `HaskellReference` | data | yes | `referenceName` | `name` | `!Text` | `(.name)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:43` | `HaskellReference` | data | yes | `referenceNamespace` | `namespace` | `!HaskellNamespace` | `(.namespace)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:44` | `HaskellReference` | data | yes | `referenceQualification` | `qualification` | `!QualificationPreference` | `(.qualification)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:49` | `ImportEnvironment` | data | yes | `targetModule` | `targetModule` | `!Text` | `(.targetModule)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:50` | `ImportEnvironment` | data | yes | `localNames` | `localNames` | `!(Set Text)` | `(.localNames)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:51` | `ImportEnvironment` | data | yes | `reservedQualifiers` | `reservedQualifiers` | `!(Set Text)` | `(.reservedQualifiers)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:64` | `HaskellImportPlan` | data | no | `importPlanTargetModule` | `targetModule` | `!Text` | `(.targetModule)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:65` | `HaskellImportPlan` | data | no | `importPlanDeclarations` | `declarations` | `!(Set Text)` | `(.declarations)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:66` | `HaskellImportPlan` | data | no | `importPlanReferences` | `references` | `!(Map HaskellReference Text)` | `(.references)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:63` | `DerivedHaskellName` | data | no | `upperCamel` | `upperCamel` | `!UpperCamelName` | `(.upperCamel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:64` | `DerivedHaskellName` | data | no | `lowerCamel` | `lowerCamel` | `!LowerCamelName` | `(.lowerCamel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:97` | `NameSite` | data | no | `siteKind` | `kind` | `!NameSiteKind` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:98` | `NameSite` | data | no | `siteLogicalName` | `logicalName` | `!Text` | `(.logicalName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:99` | `NameSite` | data | no | `siteOwner` | `owner` | `!Text` | `(.owner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:100` | `NameSite` | data | no | `siteLine` | `line` | `!Int` | `(.line)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:109` | `HaskellOccurrenceKey` | data | no | `occurrenceModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:110` | `HaskellOccurrenceKey` | data | no | `occurrenceSpace` | `space` | `!HaskellOccurrenceSpace` | `(.space)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:111` | `HaskellOccurrenceKey` | data | no | `occurrenceScope` | `scope` | `!Text` | `(.scope)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:112` | `HaskellOccurrenceKey` | data | no | `occurrenceName` | `name` | `!Text` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:117` | `PlannedOccurrence` | data | no | `plannedOccurrenceKey` | `key` | `!HaskellOccurrenceKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:118` | `PlannedOccurrence` | data | no | `plannedOccurrenceSite` | `site` | `!NameSite` | `(.site)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:28` | `SourceMove` | data | yes | `moveRole` | `role` | `!ModuleRole` | `(.role)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:29` | `SourceMove` | data | yes | `moveKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:30` | `SourceMove` | data | yes | `moveOldModule` | `oldModule` | `!Text` | `(.oldModule)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:31` | `SourceMove` | data | yes | `moveNewModule` | `newModule` | `!Text` | `(.newModule)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:32` | `SourceMove` | data | yes | `moveOldPath` | `oldPath` | `!FilePath` | `(.oldPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:33` | `SourceMove` | data | yes | `moveNewPath` | `newPath` | `!FilePath` | `(.newPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:34` | `SourceMove` | data | yes | `moveBackupPath` | `backupPath` | `!FilePath` | `(.backupPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:38` | `SourceMove` | data | yes | `moveContentDigest` | `contentDigest` | `!(Maybe Text)` | `(.contentDigest)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:41` | `SourceMove` | data | yes | `moveTransformedDigest` | `transformedDigest` | `!(Maybe Text)` | `(.transformedDigest)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:97` | `SourceLanguage` | data | yes | `declaredLanguageVersion` | `declaredLanguageVersion` | `!LanguageVersion` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:98` | `SourceLanguage` | data | yes | `languageVersionLoc` | `languageVersionLoc` | `!Loc` | `(.languageVersionLoc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:120` | `SyntaxProfile` | data | no | `profileIdentifier` | `identifier` | `!Text` | `(.identifier)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:121` | `SyntaxProfile` | data | no | `profileFeatures` | `features` | `!(Set LanguageFeature)` | `(.features)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:158` | `RuntimeSemanticsProfile` | data | no | `runtimeSemanticsIdentifier` | `identifier` | `!Text` | `(.identifier)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:159` | `RuntimeSemanticsProfile` | data | no | `runtimeSemanticsCapabilities` | `capabilities` | `!(Set RuntimeCapability)` | `(.capabilities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:232` | `LanguageDefinition` | data | yes | `definitionVersion` | `version` | `!LanguageVersion` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:233` | `LanguageDefinition` | data | yes | `definitionPredecessor` | `predecessor` | `!(Maybe LanguageVersion)` | `(.predecessor)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:236` | `LanguageDefinition` | data | yes | `definitionBodyParser` | `bodyParser` | `!LanguageBodyParser` | `(.bodyParser)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:237` | `LanguageDefinition` | data | yes | `definitionSyntaxProfile` | `syntaxProfile` | `!SyntaxProfile` | `(.syntaxProfile)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:238` | `LanguageDefinition` | data | yes | `definitionRuntimeSemanticsProfile` | `runtimeSemanticsProfile` | `!RuntimeSemanticsProfile` | `(.runtimeSemanticsProfile)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:239` | `LanguageDefinition` | data | yes | `definitionSupport` | `support` | `!LanguageSupport` | `(.support)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:240` | `LanguageDefinition` | data | yes | `definitionMaturity` | `maturity` | `!LanguageMaturity` | `(.maturity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:483` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageErrorCode` | `errorCode` | `!SourceLanguageErrorCode` | `(.errorCode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:484` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageSource` | `source` | `!FilePath` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:485` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:486` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageToken` | `token` | `!(Maybe Text)` | `(.token)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:487` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageDeclaredVersion` | `declaredVersion` | `!(Maybe LanguageVersion)` | `(.declaredVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:488` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageSupportedVersions` | `supportedVersions` | `!(NonEmpty LanguageVersion)` | `(.supportedVersions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:555` | `ParsedSource` | data | yes | `parsedSourceLanguage` | `sourceLanguage` | `!SourceLanguage` | `(.sourceLanguage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:556` | `ParsedSource` | data | yes | `parsedSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedCodecPlan.hs:42` | `MappedCodecPlan` | data | yes | `consumerType` | `consumerType` | `!ConsumerTypePlan` | `(.consumerType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedCodecPlan.hs:43` | `MappedCodecPlan` | data | yes | `resolvedExpression` | `resolvedExpression` | `!ResolvedTypeExpr` | `(.resolvedExpression)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedCodecPlan.hs:44` | `MappedCodecPlan` | data | yes | `authority` | `authority` | `!(Set MappedAuthorityMode)` | `(.authority)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:27` | `ConsumerPlan` | data | yes | `consumerPackages` | `packages` | `![Text]` | `(.packages)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:28` | `ConsumerPlan` | data | yes | `consumerModules` | `modules` | `![Text]` | `(.modules)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:29` | `ConsumerPlan` | data | yes | `consumerMappings` | `mappings` | `![MappingIdentity]` | `(.mappings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:34` | `WriteLiftIdentity` | data | yes | `sourceType` | `sourceType` | `!Text` | `(.sourceType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:35` | `WriteLiftIdentity` | data | yes | `function` | `function` | `!Text` | `(.function)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:36` | `WriteLiftIdentity` | data | yes | `version` | `version` | `!Text` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:37` | `WriteLiftIdentity` | data | yes | `fixtures` | `fixtures` | `!Text` | `(.fixtures)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:56` | `MappingIdentity` | data | yes | `mappingSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:57` | `MappingIdentity` | data | yes | `mappingCanonicalType` | `canonicalType` | `!Text` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:58` | `MappingIdentity` | data | yes | `mappingPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:59` | `MappingIdentity` | data | yes | `mappingModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:60` | `MappingIdentity` | data | yes | `mappingType` | `valueType` | `!Text` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:61` | `MappingIdentity` | data | yes | `mappingBindingSymbol` | `bindingSymbol` | `!Text` | `(.bindingSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:62` | `MappingIdentity` | data | yes | `mappingBindingVersion` | `bindingVersion` | `!Text` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:63` | `MappingIdentity` | data | yes | `writeLift` | `writeLift` | `!(Maybe WriteLiftIdentity)` | `(.writeLift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:66` | `MappingIdentity` | data | yes | `mappingSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:67` | `MappingIdentity` | data | yes | `mappingPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:68` | `MappingIdentity` | data | yes | `mappingModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:69` | `MappingIdentity` | data | yes | `mappingType` | `valueType` | `!Text` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:70` | `MappingIdentity` | data | yes | `mappingCodecIdentity` | `codecIdentity` | `!Text` | `(.codecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:71` | `MappingIdentity` | data | yes | `mappingCodecVersion` | `codecVersion` | `!Text` | `(.codecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:72` | `MappingIdentity` | data | yes | `writeLift` | `writeLift` | `!(Maybe WriteLiftIdentity)` | `(.writeLift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:75` | `MappingIdentity` | data | yes | `mappingSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:76` | `MappingIdentity` | data | yes | `mappingNominalCategory` | `nominalCategory` | `!Text` | `(.nominalCategory)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:77` | `MappingIdentity` | data | yes | `mappingNominalRepresentation` | `nominalRepresentation` | `!Text` | `(.nominalRepresentation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:78` | `MappingIdentity` | data | yes | `mappingCanonicalType` | `canonicalType` | `!Text` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:79` | `MappingIdentity` | data | yes | `mappingPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:80` | `MappingIdentity` | data | yes | `mappingModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:81` | `MappingIdentity` | data | yes | `mappingType` | `valueType` | `!Text` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:82` | `MappingIdentity` | data | yes | `mappingBindingSymbol` | `bindingSymbol` | `!Text` | `(.bindingSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:83` | `MappingIdentity` | data | yes | `mappingBindingVersion` | `bindingVersion` | `!Text` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:84` | `MappingIdentity` | data | yes | `mappingFixtureSymbol` | `fixtureSymbol` | `!Text` | `(.fixtureSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:85` | `MappingIdentity` | data | yes | `mappingInitialSymbol` | `initialSymbol` | `!(Maybe Text)` | `(.initialSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:28` | `MappedFinding` | data | yes | `mfDeclaration` | `declaration` | `!Name` | `(.declaration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:29` | `MappedFinding` | data | yes | `mfLeaf` | `leaf` | `!Text` | `(.leaf)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:30` | `MappedFinding` | data | yes | `mfCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:31` | `MappedFinding` | data | yes | `mfDetail` | `detail` | `!Text` | `(.detail)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:32` | `MappedFinding` | data | yes | `mfUsePaths` | `usePaths` | `![UsePath]` | `(.usePaths)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:33` | `MappedFinding` | data | yes | `mfOldUnknownFields` | `oldUnknownFields` | `!(Maybe UnknownFields)` | `(.oldUnknownFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:70` | `CheckedNominalEquality` | data | yes | `equalityKeyRepresentation` | `keyRepresentation` | `!NominalEqualityKey` | `(.keyRepresentation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:71` | `CheckedNominalEquality` | data | yes | `equalityDomain` | `domain` | `!NominalEqualityDomain` | `(.domain)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:72` | `CheckedNominalEquality` | data | yes | `equalityContractVersion` | `contractVersion` | `!Text` | `(.contractVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:82` | `ResolvedNominalType` | data | yes | `resolvedNominalName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:83` | `ResolvedNominalType` | data | yes | `resolvedNominalRepresentation` | `representation` | `!NominalRepresentation` | `(.representation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:84` | `ResolvedNominalType` | data | yes | `resolvedNominalOwnership` | `ownership` | `!NominalOwnership` | `(.ownership)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:85` | `ResolvedNominalType` | data | yes | `resolvedNominalLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Parser/Core.hs:75` | `ContextualParseFailure` | data | no | `contextualFailureCode` | `code` | `!SourceLanguageErrorCode` | `(.code)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Parser/Core.hs:76` | `ContextualParseFailure` | data | no | `contextualFailureFeature` | `feature` | `!(Maybe LanguageFeature)` | `(.feature)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Parser/Core.hs:77` | `ContextualParseFailure` | data | no | `contextualFailureSpan` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Parser/Preamble.hs:60` | `InitialLanguageClause` | data | no | `initialLanguageSpan` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/Parser/Preamble.hs:61` | `InitialLanguageClause` | data | no | `initialLanguageText` | `text` | `!Text` | `(.text)`, pattern, or construction | Haskell API and runtime semantics | `none` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:42` | `CheckedFollowUp` | newtype | yes | `syntax` | `syntax` | `FollowUp` | `(.syntax)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:46` | `CheckedReactionArm` | data | yes | `input` | `input` | `!Name` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:47` | `CheckedReactionArm` | data | yes | `ordinal` | `ordinal` | `!Int` | `(.ordinal)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:48` | `CheckedReactionArm` | data | yes | `guard` | `guard` | `!CheckedReactionGuard` | `(.guard)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:49` | `CheckedReactionArm` | data | yes | `body` | `body` | `!ArmBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:53` | `CheckedReactionTimer` | newtype | yes | `syntax` | `syntax` | `ReactionTimerNode` | `(.syntax)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:57` | `CheckedProcessReaction` | data | yes | `version` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:58` | `CheckedProcessReaction` | data | yes | `inputs` | `inputs` | `!(NonEmpty InputDecl)` | `(.inputs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:59` | `CheckedProcessReaction` | data | yes | `arms` | `arms` | `![CheckedReactionArm]` | `(.arms)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:60` | `CheckedProcessReaction` | data | yes | `timers` | `timers` | `![CheckedReactionTimer]` | `(.timers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:61` | `CheckedProcessReaction` | data | yes | `fingerprint` | `fingerprint` | `!Text` | `(.fingerprint)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:62` | `CheckedProcessReaction` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:63` | `CheckedProcessReaction` | data | yes | `holeObligations` | `holeObligations` | `![Text]` | `(.holeObligations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:90` | `ProcessReactionDiagnostic` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:91` | `ProcessReactionDiagnostic` | data | yes | `code` | `code` | `!ProcessReactionDiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:92` | `ProcessReactionDiagnostic` | data | yes | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:39` | `ProjectionMappedRoot` | data | yes | `consumer` | `consumer` | `!DerivedMappedConsumer` | `(.consumer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:40` | `ProjectionMappedRoot` | data | yes | `declaration` | `declaration` | `!MappedKey` | `(.declaration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:41` | `ProjectionMappedRoot` | data | yes | `path` | `path` | `!UsePath` | `(.path)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:49` | `ProjectionOperationalImpact` | data | yes | `consumer` | `consumer` | `!DerivedMappedConsumer` | `(.consumer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:50` | `ProjectionOperationalImpact` | data | yes | `group` | `group` | `!(Maybe Name)` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:51` | `ProjectionOperationalImpact` | data | yes | `targets` | `targets` | `!(Set Name)` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:52` | `ProjectionOperationalImpact` | data | yes | `readModels` | `readModels` | `!(Set Name)` | `(.readModels)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:53` | `ProjectionOperationalImpact` | data | yes | `replayable` | `replayable` | `!Bool` | `(.replayable)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:54` | `ProjectionOperationalImpact` | data | yes | `sourceFingerprint` | `sourceFingerprint` | `!Text` | `(.sourceFingerprint)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:62` | `UnsupportedProjectionImpact` | data | yes | `source` | `source` | `!UnsupportedProjectionSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:63` | `UnsupportedProjectionImpact` | data | yes | `group` | `group` | `!Name` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:64` | `UnsupportedProjectionImpact` | data | yes | `targets` | `targets` | `!(Set Name)` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:65` | `UnsupportedProjectionImpact` | data | yes | `readModels` | `readModels` | `!(Set Name)` | `(.readModels)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:66` | `UnsupportedProjectionImpact` | data | yes | `replayable` | `replayable` | `!Bool` | `(.replayable)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:71` | `ProjectionMappedImpact` | data | yes | `roots` | `roots` | `![ProjectionMappedRoot]` | `(.roots)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:72` | `ProjectionMappedImpact` | data | yes | `consumers` | `consumers` | `!(Map MappedKey (Set DerivedMappedConsumer))` | `(.consumers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:73` | `ProjectionMappedImpact` | data | yes | `operations` | `operations` | `!(Map DerivedMappedConsumer ProjectionOperationalImpact)` | `(.operations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:74` | `ProjectionMappedImpact` | data | yes | `unsupported` | `unsupported` | `![UnsupportedProjectionImpact]` | `(.unsupported)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:21` | `ResolvedProjectionSupply` | data | yes | `supplyQueryModel` | `queryModel` | `!Name` | `(.queryModel)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:22` | `ResolvedProjectionSupply` | data | yes | `supplyProjectionOwner` | `projectionOwner` | `!Name` | `(.projectionOwner)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:23` | `ResolvedProjectionSupply` | data | yes | `supplyRebuildGroup` | `rebuildGroup` | `!Name` | `(.rebuildGroup)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:24` | `ResolvedProjectionSupply` | data | yes | `supplyObservedTargets` | `observedTargets` | `!(NonEmpty Name)` | `(.observedTargets)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:25` | `ResolvedProjectionSupply` | data | yes | `supplyQueryLoc` | `queryLoc` | `!Loc` | `(.queryLoc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:26` | `ResolvedProjectionSupply` | data | yes | `supplyOwnerLoc` | `ownerLoc` | `!Loc` | `(.ownerLoc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:46` | `ProjectionSupplyAnalysis` | data | yes | `resolvedProjectionSupplies` | `resolvedProjectionSupplies` | `![ResolvedProjectionSupply]` | `(.resolvedProjectionSupplies)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:47` | `ProjectionSupplyAnalysis` | data | yes | `projectionSupplyIssues` | `projectionSupplyIssues` | `![ProjectionSupplyIssue]` | `(.projectionSupplyIssues)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:35` | `QueryContractIdentity` | data | yes | `qciReadModel` | `readModel` | `!Name` | `(.readModel)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:36` | `QueryContractIdentity` | data | yes | `qciPosition` | `position` | `!QueryContractPosition` | `(.position)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:37` | `QueryContractIdentity` | data | yes | `qciTypeExpression` | `typeExpression` | `!Text` | `(.typeExpression)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:38` | `QueryContractIdentity` | data | yes | `qciMappedDependencies` | `mappedDependencies` | `![Name]` | `(.mappedDependencies)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:43` | `QueryContractDrift` | data | yes | `qcdKey` | `key` | `!(Name, QueryContractPosition)` | `(.key)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:44` | `QueryContractDrift` | data | yes | `qcdPrevious` | `previous` | `!(Maybe QueryContractIdentity)` | `(.previous)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:45` | `QueryContractDrift` | data | yes | `qcdCurrent` | `current` | `!(Maybe QueryContractIdentity)` | `(.current)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:57` | `AggregateImpact` | data | yes | `eventTypes` | `eventTypes` | `!(Set Name)` | `(.eventTypes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:58` | `AggregateImpact` | data | yes | `includeSnapshotStreams` | `includeSnapshotStreams` | `!Bool` | `(.includeSnapshotStreams)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:73` | `CatalogReplayImpact` | data | yes | `affectedGroups` | `affectedGroups` | `!(Set Name)` | `(.affectedGroups)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:74` | `CatalogReplayImpact` | data | yes | `affectedTargets` | `affectedTargets` | `!(Set Name)` | `(.affectedTargets)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:75` | `CatalogReplayImpact` | data | yes | `affectedSources` | `affectedSources` | `!(Set Text)` | `(.affectedSources)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:76` | `CatalogReplayImpact` | data | yes | `affectedAdapters` | `affectedAdapters` | `!(Set Name)` | `(.affectedAdapters)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:77` | `CatalogReplayImpact` | data | yes | `invalidatesRunningFingerprint` | `invalidatesRunningFingerprint` | `!Bool` | `(.invalidatesRunningFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:218` | `ReplaySurfaceContext` | data | no | `surfaceSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:219` | `ReplaySurfaceContext` | data | no | `surfaceGraphResult` | `graphResult` | `Either (NE.NonEmpty TypeGraphError) TypeGraph` | `(.graphResult)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:220` | `ReplaySurfaceContext` | data | no | `surfaceSymbols` | `symbols` | `AggregateSymbols` | `(.symbols)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:54` | `CheckedReadModelQuery` | data | yes | `checkedQueryName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:55` | `CheckedReadModelQuery` | data | yes | `checkedQueryInputType` | `inputType` | `!ResolvedTypeExpr` | `(.inputType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:56` | `CheckedReadModelQuery` | data | yes | `checkedQueryResultType` | `resultType` | `!ResolvedTypeExpr` | `(.resultType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:61` | `CheckedMappedExpr` | data | yes | `checkedMappedExprRoot` | `root` | `!SelectionRoot` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:62` | `CheckedMappedExpr` | data | yes | `checkedMappedExprType` | `valueType` | `!ResolvedTypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:67` | `CheckedMappedType` | data | yes | `checkedMappedTypeKey` | `key` | `!MappedKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:68` | `CheckedMappedType` | data | yes | `checkedMappedTypeConstructor` | `constructor` | `!Name` | `(.constructor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:69` | `CheckedMappedType` | data | yes | `checkedMappedTypeFields` | `fields` | `![ResolvedWireField]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:87` | `CheckedSelectionPathSegment` | data | yes | `checkedPathField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:88` | `CheckedSelectionPathSegment` | data | yes | `checkedPathWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:89` | `CheckedSelectionPathSegment` | data | yes | `checkedPathOwner` | `owner` | `!MappedKey` | `(.owner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:94` | `CheckedScalarExpr` | data | yes | `checkedScalarType` | `valueType` | `!SelectionScalarType` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:95` | `CheckedScalarExpr` | data | yes | `checkedScalarNode` | `node` | `!CheckedScalarNode` | `(.node)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:96` | `CheckedScalarExpr` | data | yes | `checkedScalarLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:137` | `CheckedRouterSelection` | data | yes | `checkedIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:138` | `CheckedRouterSelection` | data | yes | `checkedVersion` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:139` | `CheckedRouterSelection` | data | yes | `checkedQuery` | `query` | `!CheckedReadModelQuery` | `(.query)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:140` | `CheckedRouterSelection` | data | yes | `checkedInputBinding` | `inputBinding` | `!CheckedMappedExpr` | `(.inputBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:141` | `CheckedRouterSelection` | data | yes | `checkedRowBinding` | `rowBinding` | `!CheckedMappedType` | `(.rowBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:142` | `CheckedRouterSelection` | data | yes | `checkedKey` | `key` | `!CheckedScalarExpr` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:143` | `CheckedRouterSelection` | data | yes | `checkedPredicate` | `predicate` | `!CheckedScalarExpr` | `(.predicate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:144` | `CheckedRouterSelection` | data | yes | `checkedRecipient` | `recipient` | `!CheckedScalarExpr` | `(.recipient)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:145` | `CheckedRouterSelection` | data | yes | `checkedCommandFields` | `commandFields` | `!(Map Name CheckedScalarExpr)` | `(.commandFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:146` | `CheckedRouterSelection` | data | yes | `checkedTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:147` | `CheckedRouterSelection` | data | yes | `checkedCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:148` | `CheckedRouterSelection` | data | yes | `checkedLimit` | `limit` | `!Natural` | `(.limit)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:149` | `CheckedRouterSelection` | data | yes | `checkedOrder` | `order` | `!CheckedSelectionOrder` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:150` | `CheckedRouterSelection` | data | yes | `checkedDedupe` | `dedupe` | `!CheckedSelectionDedupe` | `(.dedupe)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:151` | `CheckedRouterSelection` | data | yes | `checkedEmptyPolicy` | `emptyPolicy` | `!CheckedEmptySelectionPolicy` | `(.emptyPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:152` | `CheckedRouterSelection` | data | yes | `checkedFailurePolicy` | `failurePolicy` | `!CheckedSelectionFailurePolicy` | `(.failurePolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:153` | `CheckedRouterSelection` | data | yes | `checkedRedeliveryPolicy` | `redeliveryPolicy` | `!CheckedRedeliveryPolicy` | `(.redeliveryPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:154` | `CheckedRouterSelection` | data | yes | `checkedPartialPolicy` | `partialPolicy` | `!CheckedPartialDispatchPolicy` | `(.partialPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:155` | `CheckedRouterSelection` | data | yes | `checkedFingerprint` | `fingerprint` | `!Text` | `(.fingerprint)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:156` | `CheckedRouterSelection` | data | yes | `checkedUseSites` | `useSites` | `![UseSite]` | `(.useSites)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:193` | `RouterSelectionDiagnostic` | data | yes | `selectionDiagnosticLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:194` | `RouterSelectionDiagnostic` | data | yes | `selectionDiagnosticCode` | `code` | `!RouterSelectionDiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:195` | `RouterSelectionDiagnostic` | data | yes | `selectionDiagnosticMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/RuntimePackage.hs:18` | `RuntimePackageName` | newtype | yes | `unRuntimePackageName` | `unRuntimePackageName` | `Text` | explicit `unRuntimePackageName` positional function | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:163` | `ScaffoldModule` | data | yes | `modulePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:164` | `ScaffoldModule` | data | yes | `moduleText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:165` | `ScaffoldModule` | data | yes | `kind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:166` | `ScaffoldModule` | data | yes | `origin` | `origin` | `!Text` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:174` | `ModuleRole` | data | yes | `roleOwnerKind` | `ownerKind` | `!Text` | `(.ownerKind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:175` | `ModuleRole` | data | yes | `roleOwnerName` | `ownerName` | `!Text` | `(.ownerName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:176` | `ModuleRole` | data | yes | `roleFamily` | `family` | `!Text` | `(.family)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:207` | `Context` | data | yes | `contextName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:209` | `Context` | data | yes | `moduleRoot` | `moduleRoot` | `!Text` | `(.moduleRoot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:211` | `Context` | data | yes | `placement` | `placement` | `!Placement` | `(.placement)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:219` | `NominalUseSite` | data | yes | `nominalUseAggregate` | `aggregate` | `!Name` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:220` | `NominalUseSite` | data | yes | `nominalUseKind` | `kind` | `!AggregateUseSite` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:228` | `NominalGenerationOwner` | data | yes | `nominalDeclaration` | `declaration` | `!ResolvedNominalType` | `(.declaration)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:229` | `NominalGenerationOwner` | data | yes | `nominalModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:230` | `NominalGenerationOwner` | data | yes | `nominalUseSites` | `useSites` | `!(Set.Set NominalUseSite)` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:231` | `NominalGenerationOwner` | data | yes | `nominalEqualityUsed` | `equalityUsed` | `!Bool` | `(.equalityUsed)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:343` | `FirewallSurface` | data | yes | `forbiddenSymbolic` | `forbiddenSymbolic` | `![Text]` | `(.forbiddenSymbolic)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:344` | `FirewallSurface` | data | yes | `forbiddenIdents` | `forbiddenIdents` | `![Text]` | `(.forbiddenIdents)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:345` | `FirewallSurface` | data | yes | `forbiddenQualifiers` | `forbiddenQualifiers` | `![Text]` | `(.forbiddenQualifiers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:346` | `FirewallSurface` | data | yes | `forbiddenImports` | `forbiddenImports` | `![Text]` | `(.forbiddenImports)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:347` | `FirewallSurface` | data | yes | `restrictedImports` | `restrictedImports` | `![(Text, [Text])]` | `(.restrictedImports)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:500` | `Agg` | data | yes | `aContext` | `context` | `!Context` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:501` | `Agg` | data | yes | `aCheckedService` | `checkedService` | `!CheckedService` | `(.checkedService)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:502` | `Agg` | data | yes | `aLanguageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:503` | `Agg` | data | yes | `aSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:504` | `Agg` | data | yes | `aAggregate` | `aggregate` | `!Aggregate` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:505` | `Agg` | data | yes | `aCtxPascal` | `ctxPascal` | `!Text` | `(.ctxPascal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:506` | `Agg` | data | yes | `aName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:507` | `Agg` | data | yes | `aLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:508` | `Agg` | data | yes | `aVertexType` | `vertexType` | `!Text` | `(.vertexType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:509` | `Agg` | data | yes | `aIds` | `ids` | `![IdDecl]` | `(.ids)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:510` | `Agg` | data | yes | `aEnums` | `enums` | `![EnumDecl]` | `(.enums)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:511` | `Agg` | data | yes | `aRegs` | `regs` | `![ResolvedRegister]` | `(.regs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:512` | `Agg` | data | yes | `aStates` | `states` | `![StateDecl]` | `(.states)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:513` | `Agg` | data | yes | `aCommands` | `commands` | `![ResolvedCtor]` | `(.commands)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:514` | `Agg` | data | yes | `aEvents` | `events` | `![ResolvedCtor]` | `(.events)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:515` | `Agg` | data | yes | `aDomainOutcomeTypes` | `domainOutcomeTypes` | `!(Maybe ResolvedDomainOutcomeTypes)` | `(.domainOutcomeTypes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:517` | `Agg` | data | yes | `aGeneratedNominals` | `generatedNominals` | `![ResolvedNominalType]` | `(.generatedNominals)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:518` | `Agg` | data | yes | `aTransitions` | `transitions` | `![Transition]` | `(.transitions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:519` | `Agg` | data | yes | `aOutputMappings` | `outputMappings` | `!(Map.Map (Int, Int) EventOutputMapping)` | `(.outputMappings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:520` | `Agg` | data | yes | `aWire` | `wire` | `!WireSpec` | `(.wire)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:521` | `Agg` | data | yes | `aProjection` | `projection` | `!(Maybe ProjectionSpec)` | `(.projection)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:522` | `Agg` | data | yes | `aSnapshot` | `snapshot` | `!(Maybe SnapshotSpec)` | `(.snapshot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:523` | `Agg` | data | yes | `aFoldFingerprint` | `foldFingerprint` | `!Text` | `(.foldFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:524` | `Agg` | data | yes | `aReadModels` | `readModels` | `![ReadModelNode]` | `(.readModels)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:525` | `Agg` | data | yes | `aTypeGraph` | `typeGraph` | `!(Maybe TypeGraph)` | `(.typeGraph)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:526` | `Agg` | data | yes | `aSymbols` | `symbols` | `!AggregateSymbols` | `(.symbols)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:528` | `Agg` | data | yes | `aGenPrefix` | `genPrefix` | `!Text` | `(.genPrefix)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:530` | `Agg` | data | yes | `aHolePrefix` | `holePrefix` | `!Text` | `(.holePrefix)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:534` | `ResolvedDomainOutcomeTypes` | data | yes | `resolvedRejectionType` | `rejectionType` | `!ResolvedAggregateType` | `(.rejectionType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:535` | `ResolvedDomainOutcomeTypes` | data | yes | `resolvedNoOpType` | `noOpType` | `!ResolvedAggregateType` | `(.noOpType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:543` | `ResolvedRegister` | data | yes | `rrName` | `name` | `!Name` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:544` | `ResolvedRegister` | data | yes | `rrType` | `valueType` | `!ResolvedAggregateType` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:545` | `ResolvedRegister` | data | yes | `rrInitial` | `initial` | `!ResolvedRegisterInitial` | `(.initial)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:546` | `ResolvedRegister` | data | yes | `rrLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:553` | `ResolvedCtor` | data | yes | `rcName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:555` | `ResolvedCtor` | data | yes | `rcFields` | `fields` | `![(ResolvedFieldIdentity, ResolvedAggregateType)]` | `(.fields)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:557` | `ResolvedCtor` | data | yes | `rcVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:559` | `ResolvedCtor` | data | yes | `rcUpcastFrom` | `upcastFrom` | `!(Maybe Int)` | `(.upcastFrom)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2608` | `RenderedShapeType` | data | no | `renderedShapeTypePrecedence` | `precedence` | `!ShapeTypePrecedence` | `(.precedence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2609` | `RenderedShapeType` | data | no | `renderedShapeTypeText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2624` | `StructuralProjection` | data | yes | `spTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2625` | `StructuralProjection` | data | yes | `spWitness` | `witness` | `!Text` | `(.witness)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2626` | `StructuralProjection` | data | yes | `getter` | `getter` | `!Text` | `(.getter)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2627` | `StructuralProjection` | data | yes | `rawGetter` | `rawGetter` | `!(Maybe Text)` | `(.rawGetter)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2628` | `StructuralProjection` | data | yes | `spPointer` | `pointer` | `!Text` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2629` | `StructuralProjection` | data | yes | `spOwner` | `owner` | `!HaskellSource` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2630` | `StructuralProjection` | data | yes | `spResult` | `result` | `!Text` | `(.result)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2631` | `StructuralProjection` | data | yes | `spCanonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2632` | `StructuralProjection` | data | yes | `spBinding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2633` | `StructuralProjection` | data | yes | `fixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2634` | `StructuralProjection` | data | yes | `terminalNominal` | `terminalNominal` | `!(Maybe NominalLeaf)` | `(.terminalNominal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2635` | `StructuralProjection` | data | yes | `rootEnum` | `rootEnum` | `!(Maybe (Text, [(Name, Text)]))` | `(.rootEnum)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2636` | `StructuralProjection` | data | yes | `spSelectors` | `selectors` | `![(Text, Text)]` | `(.selectors)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:4653` | `ResolvedQueueField` | data | no | `resolvedQueueField` | `field` | `!WqField` | `(.field)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:4654` | `ResolvedQueueField` | data | no | `resolvedQueueExpression` | `expression` | `!(Maybe ResolvedTypeExpr)` | `(.expression)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:4655` | `ResolvedQueueField` | data | no | `resolvedQueueCodecPlan` | `codecPlan` | `!(Maybe MappedCodecPlan)` | `(.codecPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8745` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionIndex` | `index` | `!Int` | `(.index)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8746` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionSource` | `source` | `!Transition` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8747` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionGuard` | `guard` | `!(Maybe TypedScalarExpr)` | `(.guard)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8748` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionWrites` | `writes` | `![(Name, TypedScalarExpr)]` | `(.writes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8756` | `ResolvedSilentOutcome` | data | no | `resolvedSilentLayout` | `layout` | `!TransitionLayoutEntry` | `(.layout)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8757` | `ResolvedSilentOutcome` | data | no | `resolvedSilentKind` | `kind` | `!SilentOutcomeKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8758` | `ResolvedSilentOutcome` | data | no | `resolvedSilentReason` | `reason` | `!TypedScalarExpr` | `(.reason)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8913` | `ProjectionAlias` | data | no | `projectionAliasTarget` | `target` | `!ProjectionAliasTarget` | `(.target)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8914` | `ProjectionAlias` | data | no | `projectionAliasName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8991` | `RenderedKeikiExpr` | data | no | `renderedKeikiText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8992` | `RenderedKeikiExpr` | data | no | `renderedKeikiPrecedence` | `precedence` | `!Int` | `(.precedence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:46` | `ScaffoldRecord` | data | yes | `recSpecPath` | `specPath` | `!Text` | `(.specPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:47` | `ScaffoldRecord` | data | yes | `recModuleRoot` | `moduleRoot` | `!Text` | `(.moduleRoot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:48` | `ScaffoldRecord` | data | yes | `recLayout` | `layout` | `!Text` | `(.layout)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:49` | `ScaffoldRecord` | data | yes | `recSourceLanguage` | `sourceLanguage` | `!SourceLanguage` | `(.sourceLanguage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:50` | `ScaffoldRecord` | data | yes | `recLanguageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:51` | `ScaffoldRecord` | data | yes | `recNamingEdition` | `namingEdition` | `!GeneratedHaskellNamingEdition` | `(.namingEdition)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:52` | `ScaffoldRecord` | data | yes | `recModuleRoles` | `moduleRoles` | `![ScaffoldModuleRoleRow]` | `(.moduleRoles)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:53` | `ScaffoldRecord` | data | yes | `recFiles` | `files` | `![(ModuleKind, FilePath)]` | `(.files)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:54` | `ScaffoldRecord` | data | yes | `recMappings` | `mappings` | `![MappingIdentity]` | `(.mappings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:55` | `ScaffoldRecord` | data | yes | `recIdDomains` | `idDomains` | `![Text]` | `(.idDomains)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:56` | `ScaffoldRecord` | data | yes | `recNominalEqualities` | `nominalEqualities` | `![Text]` | `(.nominalEqualities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:57` | `ScaffoldRecord` | data | yes | `structuralEnumEqualities` | `structuralEnumEqualities` | `![Text]` | `(.structuralEnumEqualities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:58` | `ScaffoldRecord` | data | yes | `recBindingObligations` | `bindingObligations` | `![BindingHole]` | `(.bindingObligations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:59` | `ScaffoldRecord` | data | yes | `recBehaviorRequirements` | `behaviorRequirements` | `![BehaviorRecordRow]` | `(.behaviorRequirements)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:60` | `ScaffoldRecord` | data | yes | `recProjectionCatalogFacts` | `projectionCatalogFacts` | `![Text]` | `(.projectionCatalogFacts)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:61` | `ScaffoldRecord` | data | yes | `recQueryContractBaseline` | `queryContractBaseline` | `!Bool` | `(.queryContractBaseline)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:62` | `ScaffoldRecord` | data | yes | `recQueryContracts` | `queryContracts` | `![QueryContractIdentity]` | `(.queryContracts)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:63` | `ScaffoldRecord` | data | yes | `recRouterSelections` | `routerSelections` | `![RouterSelectionSnapshot]` | `(.routerSelections)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:64` | `ScaffoldRecord` | data | yes | `processReactions` | `processReactions` | `![ProcessReactionRecordRow]` | `(.processReactions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:65` | `ScaffoldRecord` | data | yes | `recSemanticImpact` | `semanticImpact` | `!(Maybe SemanticImpactSnapshot)` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:70` | `ScaffoldModuleRoleRow` | data | yes | `srrRole` | `role` | `!ModuleRole` | `(.role)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:71` | `ScaffoldModuleRoleRow` | data | yes | `srrKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:72` | `ScaffoldModuleRoleRow` | data | yes | `srrPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:80` | `ProcessReactionRecordRow` | data | yes | `processName` | `processName` | `!Text` | `(.processName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:81` | `ProcessReactionRecordRow` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:82` | `ProcessReactionRecordRow` | data | yes | `version` | `version` | `!(Maybe Natural)` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:83` | `ProcessReactionRecordRow` | data | yes | `fingerprint` | `fingerprint` | `!(Maybe Text)` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:84` | `ProcessReactionRecordRow` | data | yes | `holeObligations` | `holeObligations` | `![Text]` | `(.holeObligations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:198` | `GeneratedHaskellEditionUse` | data | yes | `path` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:199` | `GeneratedHaskellEditionUse` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:200` | `GeneratedHaskellEditionUse` | data | yes | `current` | `current` | `!Text` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:201` | `GeneratedHaskellEditionUse` | data | yes | `replacement` | `replacement` | `!Text` | `(.replacement)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:202` | `GeneratedHaskellEditionUse` | data | yes | `form` | `form` | `!HoleUseForm` | `(.form)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:215` | `GeneratedHaskellEditionImpact` | data | yes | `fromEdition` | `fromEdition` | `!HaskellName.GeneratedHaskellNamingEdition` | `(.fromEdition)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:216` | `GeneratedHaskellEditionImpact` | data | yes | `generatedPaths` | `generatedPaths` | `![FilePath]` | `(.generatedPaths)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:217` | `GeneratedHaskellEditionImpact` | data | yes | `sidecarPaths` | `sidecarPaths` | `![FilePath]` | `(.sidecarPaths)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:218` | `GeneratedHaskellEditionImpact` | data | yes | `handOwnedUses` | `handOwnedUses` | `![GeneratedHaskellEditionUse]` | `(.handOwnedUses)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:223` | `PreparedGeneratedHaskellEditionMigration` | data | no | `impact` | `impact` | `!GeneratedHaskellEditionImpact` | `(.impact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:224` | `PreparedGeneratedHaskellEditionMigration` | data | no | `backups` | `backups` | `![(FilePath, FilePath)]` | `(.backups)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:225` | `PreparedGeneratedHaskellEditionMigration` | data | no | `reportPath` | `reportPath` | `!FilePath` | `(.reportPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:226` | `PreparedGeneratedHaskellEditionMigration` | data | no | `reportText` | `reportText` | `!Text` | `(.reportText)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:227` | `PreparedGeneratedHaskellEditionMigration` | data | no | `sourceMoves` | `sourceMoves` | `![SourceMove]` | `(.sourceMoves)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:248` | `GeneratedArtifactImpact` | data | yes | `artifactCategory` | `category` | `!GeneratedArtifactCategory` | `(.category)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:249` | `GeneratedArtifactImpact` | data | yes | `artifactRole` | `role` | `!ModuleRole` | `(.role)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:250` | `GeneratedArtifactImpact` | data | yes | `artifactPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:251` | `GeneratedArtifactImpact` | data | yes | `artifactDisposition` | `disposition` | `!WriteDisposition` | `(.disposition)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:261` | `StaleModule` | data | yes | `staleKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:262` | `StaleModule` | data | yes | `stalePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:263` | `StaleModule` | data | yes | `staleGeneratedEvidence` | `generatedEvidence` | `!(Maybe StaleGeneratedEvidence)` | `(.generatedEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:268` | `MappingDrift` | data | yes | `driftSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:269` | `MappingDrift` | data | yes | `driftPrevious` | `previous` | `!(Maybe MappingIdentity)` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:270` | `MappingDrift` | data | yes | `driftCurrent` | `current` | `!(Maybe MappingIdentity)` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:275` | `SourceLanguageDrift` | data | yes | `languageDriftPrevious` | `previous` | `!SourceLanguage` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:276` | `SourceLanguageDrift` | data | yes | `languageDriftCurrent` | `current` | `!SourceLanguage` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:281` | `ScaffoldReport` | data | yes | `reportSpecPath` | `specPath` | `!FilePath` | `(.specPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:282` | `ScaffoldReport` | data | yes | `reportOutDir` | `outDir` | `!FilePath` | `(.outDir)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:283` | `ScaffoldReport` | data | yes | `reportContext` | `context` | `!Context` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:284` | `ScaffoldReport` | data | yes | `reportDispositions` | `dispositions` | `![(ScaffoldModule, WriteDisposition)]` | `(.dispositions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:285` | `ScaffoldReport` | data | yes | `reportInertNodes` | `inertNodes` | `![(Text, Text)]` | `(.inertNodes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:286` | `ScaffoldReport` | data | yes | `reportManifestPath` | `manifestPath` | `!FilePath` | `(.manifestPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:287` | `ScaffoldReport` | data | yes | `reportRecordPath` | `recordPath` | `!FilePath` | `(.recordPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:288` | `ScaffoldReport` | data | yes | `reportPreviousSpecPath` | `previousSpecPath` | `!(Maybe Text)` | `(.previousSpecPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:289` | `ScaffoldReport` | data | yes | `reportStale` | `stale` | `![StaleModule]` | `(.stale)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:290` | `ScaffoldReport` | data | yes | `reportConsumerPlan` | `consumerPlan` | `!ConsumerPlan` | `(.consumerPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:291` | `ScaffoldReport` | data | yes | `reportConstraintPlan` | `constraintPlan` | `![Text]` | `(.constraintPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:292` | `ScaffoldReport` | data | yes | `reportMappingDrift` | `mappingDrift` | `![MappingDrift]` | `(.mappingDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:293` | `ScaffoldReport` | data | yes | `reportQueryContractBaselineUnavailable` | `queryContractBaselineUnavailable` | `!Bool` | `(.queryContractBaselineUnavailable)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:294` | `ScaffoldReport` | data | yes | `reportQueryContractDrift` | `queryContractDrift` | `![QueryContractDrift]` | `(.queryContractDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:295` | `ScaffoldReport` | data | yes | `reportQueryContractMigrations` | `queryContractMigrations` | `![QueryContractMigration]` | `(.queryContractMigrations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:296` | `ScaffoldReport` | data | yes | `reportSemanticImpact` | `semanticImpact` | `!SemanticImpactReport` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:297` | `ScaffoldReport` | data | yes | `reportRouterSelectionDrift` | `routerSelectionDrift` | `![RouterSelectionDrift]` | `(.routerSelectionDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:298` | `ScaffoldReport` | data | yes | `processReactionCoordinationDrift` | `processReactionCoordinationDrift` | `![ProcessReactionDrift]` | `(.processReactionCoordinationDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:299` | `ScaffoldReport` | data | yes | `reportProjectionMappedImpact` | `projectionMappedImpact` | `!(Maybe ProjectionMappedImpact)` | `(.projectionMappedImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:300` | `ScaffoldReport` | data | yes | `reportGeneratedArtifactImpact` | `generatedArtifactImpact` | `![GeneratedArtifactImpact]` | `(.generatedArtifactImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:301` | `ScaffoldReport` | data | yes | `reportSourceLanguageDrift` | `sourceLanguageDrift` | `!(Maybe SourceLanguageDrift)` | `(.sourceLanguageDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:302` | `ScaffoldReport` | data | yes | `reportNewHoles` | `newHoles` | `![BindingHole]` | `(.newHoles)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:303` | `ScaffoldReport` | data | yes | `processReactionRows` | `processReactionRows` | `![ProcessReactionRecordRow]` | `(.processReactionRows)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:304` | `ScaffoldReport` | data | yes | `reportAddedBehavior` | `addedBehavior` | `![BehaviorRecordRow]` | `(.addedBehavior)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:305` | `ScaffoldReport` | data | yes | `reportRemovedBehavior` | `removedBehavior` | `![BehaviorRecordRow]` | `(.removedBehavior)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:306` | `ScaffoldReport` | data | yes | `reportObsoleteOutputHooks` | `obsoleteOutputHooks` | `![(Text, Text)]` | `(.obsoleteOutputHooks)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:307` | `ScaffoldReport` | data | yes | `reportConformancePackage` | `conformancePackage` | `!(Maybe ConformancePackageReport)` | `(.conformancePackage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:308` | `ScaffoldReport` | data | yes | `reportNameMoves` | `nameMoves` | `![SourceMove]` | `(.nameMoves)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:309` | `ScaffoldReport` | data | yes | `reportSidecarMoves` | `sidecarMoves` | `![SidecarMove]` | `(.sidecarMoves)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:314` | `QueryContractMigration` | data | yes | `qcmOwner` | `owner` | `!Text` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:315` | `QueryContractMigration` | data | yes | `path` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:316` | `QueryContractMigration` | data | yes | `qcmRequiredImport` | `requiredImport` | `!Text` | `(.requiredImport)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:63` | `EffectiveLanguageContract` | data | yes | `effectiveContractLanguageVersion` | `contractLanguageVersion` | `!LanguageVersion` | `(.contractLanguageVersion)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:64` | `EffectiveLanguageContract` | data | yes | `effectiveRuntimeProfile` | `runtimeProfile` | `!RuntimeSemanticsProfile` | `(.runtimeProfile)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:160` | `CheckedService` | data | no | `serviceLanguageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk | `none` |-| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:161` | `CheckedService` | data | no | `serviceSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk | `none` |-| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:162` | `CheckedService` | data | no | `serviceTypeGraph` | `typeGraph` | `Either (NonEmpty TypeGraphError) TypeGraph` | `(.typeGraph)`, pattern, or construction | serialized/wire review risk | `none` |-| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:163` | `CheckedService` | data | no | `serviceProjectionSupplies` | `projectionSupplies` | `ProjectionSupplyAnalysis` | `(.projectionSupplies)`, pattern, or construction | serialized/wire review risk | `none` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:100` | `MappedRoot` | data | yes | `mappedRootConsumer` | `consumer` | `!MappedConsumer` | `(.consumer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:101` | `MappedRoot` | data | yes | `mappedRootKind` | `kind` | `!MappedRootKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:102` | `MappedRoot` | data | yes | `mappedRootUseSite` | `useSite` | `!UseSite` | `(.useSite)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:103` | `MappedRoot` | data | yes | `mappedRootDeclaration` | `declaration` | `!MappedKey` | `(.declaration)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:111` | `MappedRootEvidence` | data | yes | `evidenceConsumer` | `consumer` | `!MappedConsumer` | `(.consumer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:112` | `MappedRootEvidence` | data | yes | `evidenceRootKind` | `rootKind` | `!MappedRootKind` | `(.rootKind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:113` | `MappedRootEvidence` | data | yes | `evidencePath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:114` | `MappedRootEvidence` | data | yes | `evidenceOperation` | `operation` | `!(Maybe Text)` | `(.operation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:141` | `SemanticImpact` | data | yes | `impactRoots` | `roots` | `![MappedRoot]` | `(.roots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:142` | `SemanticImpact` | data | yes | `impactUsePaths` | `usePaths` | `!(Map MappedKey [UsePath])` | `(.usePaths)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:143` | `SemanticImpact` | data | yes | `impactAggregateDeclarations` | `aggregateDeclarations` | `!(Map MappedConsumer (Set MappedKey))` | `(.aggregateDeclarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:144` | `SemanticImpact` | data | yes | `impactDeclarationConsumers` | `declarationConsumers` | `!(Map MappedKey (Set MappedConsumer))` | `(.declarationConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:145` | `SemanticImpact` | data | yes | `impactDeclarationEvidence` | `declarationEvidence` | `!(Map MappedKey (Set MappedRootEvidence))` | `(.declarationEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:146` | `SemanticImpact` | data | yes | `impactDeclarationConsequences` | `declarationConsequences` | `!(Map MappedKey (Set MappedConsequence))` | `(.declarationConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:147` | `SemanticImpact` | data | yes | `impactServiceDeclarations` | `serviceDeclarations` | `!(Set MappedKey)` | `(.serviceDeclarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:148` | `SemanticImpact` | data | yes | `impactDeclarationIdentities` | `declarationIdentities` | `!(Map MappedKey Text)` | `(.declarationIdentities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:149` | `SemanticImpact` | data | yes | `impactUnsupportedProjectionSources` | `unsupportedProjectionSources` | `![UnsupportedProjectionSource]` | `(.unsupportedProjectionSources)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:159` | `SemanticImpactSnapshot` | data | yes | `snapshotMappedConsumers` | `mappedConsumers` | `!(Map MappedKey (Set MappedConsumer))` | `(.mappedConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:160` | `SemanticImpactSnapshot` | data | yes | `snapshotMappedEvidence` | `mappedEvidence` | `!(Maybe (Map MappedKey (Set MappedRootEvidence)))` | `(.mappedEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:161` | `SemanticImpactSnapshot` | data | yes | `snapshotMappedConsequences` | `mappedConsequences` | `!(Maybe (Map MappedKey (Set MappedConsequence)))` | `(.mappedConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:162` | `SemanticImpactSnapshot` | data | yes | `snapshotServiceInventory` | `serviceInventory` | `!(Set MappedKey)` | `(.serviceInventory)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:163` | `SemanticImpactSnapshot` | data | yes | `snapshotDeclarationIdentities` | `declarationIdentities` | `!(Map MappedKey Text)` | `(.declarationIdentities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:170` | `MappedImpactDelta` | data | yes | `impactDeclaration` | `declaration` | `!MappedKey` | `(.declaration)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:171` | `MappedImpactDelta` | data | yes | `impactPreviousConsumers` | `previousConsumers` | `!(Set MappedConsumer)` | `(.previousConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:172` | `MappedImpactDelta` | data | yes | `impactCurrentConsumers` | `currentConsumers` | `!(Set MappedConsumer)` | `(.currentConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:173` | `MappedImpactDelta` | data | yes | `impactPreviousEvidence` | `previousEvidence` | `!(Maybe (Set MappedRootEvidence))` | `(.previousEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:174` | `MappedImpactDelta` | data | yes | `impactCurrentEvidence` | `currentEvidence` | `!(Maybe (Set MappedRootEvidence))` | `(.currentEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:175` | `MappedImpactDelta` | data | yes | `impactPreviousConsequences` | `previousConsequences` | `!(Maybe (Set MappedConsequence))` | `(.previousConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:176` | `MappedImpactDelta` | data | yes | `impactCurrentConsequences` | `currentConsequences` | `!(Maybe (Set MappedConsequence))` | `(.currentConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:177` | `MappedImpactDelta` | data | yes | `impactServiceConformance` | `serviceConformance` | `!Bool` | `(.serviceConformance)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:185` | `SemanticImpactReport` | data | yes | `semanticReportPrevious` | `previous` | `!(Maybe SemanticImpactSnapshot)` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:186` | `SemanticImpactReport` | data | yes | `semanticReportCurrent` | `current` | `!SemanticImpactSnapshot` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:187` | `SemanticImpactReport` | data | yes | `semanticReportDeclarations` | `declarations` | `![MappedKey]` | `(.declarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:188` | `SemanticImpactReport` | data | yes | `semanticReportDeltas` | `deltas` | `![MappedImpactDelta]` | `(.deltas)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:514` | `SelectionEvidence` | data | no | `selectionEvidenceRoot` | `root` | `!MappedRoot` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:515` | `SelectionEvidence` | data | no | `selectionEvidencePath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/ServiceHarness.hs:28` | `DuplicateServiceFactKey` | newtype | yes | `duplicateServiceFactKey` | `duplicateServiceFactKey` | `Text` | `(.duplicateServiceFactKey)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:48` | `SidecarMove` | data | yes | `sidecarOldPath` | `oldPath` | `!FilePath` | `(.oldPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:49` | `SidecarMove` | data | yes | `sidecarNewPath` | `newPath` | `!FilePath` | `(.newPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:50` | `SidecarMove` | data | yes | `sidecarBackupPath` | `backupPath` | `!(Maybe FilePath)` | `(.backupPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:51` | `SidecarMove` | data | yes | `sidecarMoveDisposition` | `moveDisposition` | `!SidecarMoveDisposition` | `(.moveDisposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:22` | `SourcePoint` | data | yes | `offset` | `offset` | `!Int` | `(.offset)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:23` | `SourcePoint` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:24` | `SourcePoint` | data | yes | `column` | `column` | `!Int` | `(.column)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:38` | `SourceSpan` | data | yes | `source` | `source` | `!FilePath` | `(.source)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:39` | `SourceSpan` | data | yes | `start` | `start` | `!SourcePoint` | `(.start)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:40` | `SourceSpan` | data | yes | `end` | `end` | `!SourcePoint` | `(.end)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:61` | `Located` | data | yes | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Functor, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Source.hs:62` | `Located` | data | yes | `value` | `value` | `!a` | `(.value)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Functor, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:67` | `IndexedSourcePosition` | data | no | `quality` | `quality` | `!SourcePositionQuality` | `(.quality)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:68` | `IndexedSourcePosition` | data | no | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:73` | `SemanticSourceIndex` | newtype | no | `positions` | `positions` | `Map SourceSubject IndexedSourcePosition` | `(.positions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:79` | `ParsedSourceDocument` | data | yes | `documentParsedSource` | `parsedSource` | `!ParsedSource` | `(.parsedSource)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:80` | `ParsedSourceDocument` | data | yes | `documentSourceIndex` | `sourceIndex` | `!SemanticSourceIndex` | `(.sourceIndex)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:92` | `SourceIndexFailure` | data | yes | `failureCode` | `code` | `!SourceIndexFailureCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:93` | `SourceIndexFailure` | data | yes | `failureSubject` | `subject` | `!(Maybe SourceSubject)` | `(.subject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:94` | `SourceIndexFailure` | data | yes | `failureSpan` | `span` | `!(Maybe SourceSpan)` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:95` | `SourceIndexFailure` | data | yes | `failureMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:82` | `ConformanceRendering` | data | no | `renderingContext` | `context` | `!Context` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:83` | `ConformanceRendering` | data | no | `renderingGraph` | `graph` | `!TypeGraph` | `(.graph)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:84` | `ConformanceRendering` | data | no | `renderingDeclarations` | `declarations` | `![ResolvedMappedDecl]` | `(.declarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:85` | `ConformanceRendering` | data | no | `nominals` | `nominals` | `![NominalLeaf]` | `(.nominals)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:86` | `ConformanceRendering` | data | no | `renderingProjections` | `projections` | `![StructuralProjection]` | `(.projections)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:87` | `ConformanceRendering` | data | no | `renderingImportPlan` | `importPlan` | `!HaskellImportPlan` | `(.importPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:33` | `SurfaceSource` | data | yes | `source` | `source` | `!FilePath` | `(.source)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:34` | `SurfaceSource` | data | yes | `language` | `language` | `!SourceLanguage` | `(.language)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:35` | `SurfaceSource` | data | yes | `preamble` | `preamble` | `!(Maybe (Located SourceLanguage))` | `(.preamble)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:36` | `SurfaceSource` | data | yes | `spec` | `spec` | `!(Located SurfaceSpec)` | `(.spec)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:43` | `SurfaceSpec` | data | yes | `context` | `context` | `!(Located Text)` | `(.context)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:44` | `SurfaceSpec` | data | yes | `moduleRoot` | `moduleRoot` | `!(Maybe (Located Text))` | `(.moduleRoot)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:45` | `SurfaceSpec` | data | yes | `layout` | `layout` | `!(Maybe (Located Placement))` | `(.layout)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:46` | `SurfaceSpec` | data | yes | `items` | `items` | `![Located SurfaceTopItem]` | `(.items)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:47` | `SurfaceSpec` | data | yes | `elements` | `elements` | `![Located SurfaceElement]` | `(.elements)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:39` | `TransitionFamilyKey` | data | yes | `familyMode` | `mode` | `!TransitionMode` | `(.mode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:40` | `TransitionFamilyKey` | data | yes | `familySource` | `source` | `!Name` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:41` | `TransitionFamilyKey` | data | yes | `familyCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:53` | `TransitionFamilyDelta` | data | yes | `familyKey` | `familyKey` | `!TransitionFamilyKey` | `(.familyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:54` | `TransitionFamilyDelta` | data | yes | `oldRemainder` | `oldRemainder` | `![Transition]` | `(.oldRemainder)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:55` | `TransitionFamilyDelta` | data | yes | `newRemainder` | `newRemainder` | `![Transition]` | `(.newRemainder)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:61` | `ReplayBodyKey` | newtype | yes | `unReplayBodyKey` | `unReplayBodyKey` | `Text` | explicit `unReplayBodyKey` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:76` | `ReplayBodyDelta` | data | yes | `bodyFamilyKey` | `bodyFamilyKey` | `!TransitionFamilyKey` | `(.bodyFamilyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:77` | `ReplayBodyDelta` | data | yes | `bodyKey` | `bodyKey` | `!ReplayBodyKey` | `(.bodyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:78` | `ReplayBodyDelta` | data | yes | `oldBodyMembers` | `oldBodyMembers` | `![Transition]` | `(.oldBodyMembers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:79` | `ReplayBodyDelta` | data | yes | `newBodyMembers` | `newBodyMembers` | `![Transition]` | `(.newBodyMembers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:80` | `ReplayBodyDelta` | data | yes | `bodyStatus` | `bodyStatus` | `!ReplayBodyStatus` | `(.bodyStatus)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:105` | `QualifiedValueName` | newtype | yes | `unQualifiedValueName` | `unQualifiedValueName` | `Text` | explicit `unQualifiedValueName` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:111` | `CanonicalTypeId` | newtype | yes | `unCanonicalTypeId` | `unCanonicalTypeId` | `Text` | explicit `unCanonicalTypeId` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:117` | `BindingVersion` | newtype | yes | `unBindingVersion` | `unBindingVersion` | `Text` | explicit `unBindingVersion` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:123` | `CodecIdentity` | newtype | yes | `unCodecIdentity` | `unCodecIdentity` | `Text` | explicit `unCodecIdentity` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:129` | `CodecVersion` | newtype | yes | `unCodecVersion` | `unCodecVersion` | `Text` | explicit `unCodecVersion` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:185` | `ConsumerNominalBinding` | data | yes | `haskell` | `haskell` | `!HaskellSource` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:186` | `ConsumerNominalBinding` | data | yes | `binding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:187` | `ConsumerNominalBinding` | data | yes | `bindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:188` | `ConsumerNominalBinding` | data | yes | `canonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:189` | `ConsumerNominalBinding` | data | yes | `fixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:190` | `ConsumerNominalBinding` | data | yes | `initial` | `initial` | `!(Maybe QualifiedValueName)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:206` | `NominalLeaf` | data | yes | `name` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:207` | `NominalLeaf` | data | yes | `kind` | `kind` | `!NominalLeafKind` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:208` | `NominalLeaf` | data | yes | `ownership` | `ownership` | `!NominalLeafOwnership` | `(.ownership)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:209` | `NominalLeaf` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:223` | `NominalLeafError` | newtype | yes | `nominalLeafIssues` | `nominalLeafIssues` | `NonEmpty NominalLeafIssue` | `(.nominalLeafIssues)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:345` | `LiftVersion` | newtype | yes | `unLiftVersion` | `unLiftVersion` | `Text` | explicit `unLiftVersion` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:352` | `MappedWriteLift` | data | yes | `source` | `source` | `!LiftSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:353` | `MappedWriteLift` | data | yes | `function` | `function` | `!QualifiedValueName` | `(.function)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:354` | `MappedWriteLift` | data | yes | `version` | `version` | `!LiftVersion` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:355` | `MappedWriteLift` | data | yes | `fixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:356` | `MappedWriteLift` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:388` | `StructuralDecl` | data | yes | `sdName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:389` | `StructuralDecl` | data | yes | `sdHaskell` | `haskell` | `!HaskellSource` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:390` | `StructuralDecl` | data | yes | `sdBinding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:391` | `StructuralDecl` | data | yes | `sdBindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:392` | `StructuralDecl` | data | yes | `sdCanonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:393` | `StructuralDecl` | data | yes | `sdFixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:394` | `StructuralDecl` | data | yes | `sdInitial` | `initial` | `!(Maybe QualifiedValueName)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:395` | `StructuralDecl` | data | yes | `writeLift` | `writeLift` | `!(Maybe MappedWriteLift)` | `(.writeLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:396` | `StructuralDecl` | data | yes | `sdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:401` | `OpaqueDecl` | data | yes | `odName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:402` | `OpaqueDecl` | data | yes | `odHaskell` | `haskell` | `!HaskellSource` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:403` | `OpaqueDecl` | data | yes | `odCodecIdentity` | `codecIdentity` | `!CodecIdentity` | `(.codecIdentity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:404` | `OpaqueDecl` | data | yes | `odCodecVersion` | `codecVersion` | `!CodecVersion` | `(.codecVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:405` | `OpaqueDecl` | data | yes | `writeLift` | `writeLift` | `!(Maybe MappedWriteLift)` | `(.writeLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:406` | `OpaqueDecl` | data | yes | `odFixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:407` | `OpaqueDecl` | data | yes | `odInitial` | `initial` | `!(Maybe QualifiedValueName)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:408` | `OpaqueDecl` | data | yes | `odLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:490` | `MappedKey` | newtype | yes | `unMappedKey` | `unMappedKey` | `Name` | explicit `unMappedKey` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:515` | `ResolvedWireField` | data | yes | `rwfHaskell` | `haskell` | `!Name` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:516` | `ResolvedWireField` | data | yes | `rwfKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:517` | `ResolvedWireField` | data | yes | `rwfType` | `valueType` | `!ResolvedTypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:518` | `ResolvedWireField` | data | yes | `rwfPresence` | `presence` | `!Presence` | `(.presence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:519` | `ResolvedWireField` | data | yes | `rwfOnMissing` | `onMissing` | `!(Maybe OnMissing)` | `(.onMissing)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:520` | `ResolvedWireField` | data | yes | `rwfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:525` | `ResolvedWireArm` | data | yes | `rwaCtor` | `ctor` | `!Name` | `(.ctor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:526` | `ResolvedWireArm` | data | yes | `rwaTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:527` | `ResolvedWireArm` | data | yes | `rwaPayload` | `payload` | `!(Maybe ResolvedTypeExpr)` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:528` | `ResolvedWireArm` | data | yes | `rwaLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:565` | `UseSite` | data | yes | `root` | `root` | `!RootRef` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:566` | `UseSite` | data | yes | `mappedKey` | `mappedKey` | `!MappedKey` | `(.mappedKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:571` | `NominalRootSite` | data | yes | `root` | `root` | `!RootRef` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:572` | `NominalRootSite` | data | yes | `nominal` | `nominal` | `!Name` | `(.nominal)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:573` | `NominalRootSite` | data | yes | `segments` | `segments` | `![PathSeg]` | `(.segments)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:589` | `UsePath` | data | yes | `upRoot` | `root` | `!RootRef` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:590` | `UsePath` | data | yes | `upSegments` | `segments` | `![PathSeg]` | `(.segments)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:610` | `TypeGraph` | data | yes | `tgDeclarations` | `declarations` | `!(Map MappedKey ResolvedMappedDecl)` | `(.declarations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:611` | `TypeGraph` | data | yes | `tgReachability` | `reachability` | `!(Map MappedKey (Set MappedKey))` | `(.reachability)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:612` | `TypeGraph` | data | yes | `nominalLeaves` | `nominalLeaves` | `!(Map Name NominalLeaf)` | `(.nominalLeaves)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:613` | `TypeGraph` | data | yes | `unsupportedNominalLeafKinds` | `unsupportedNominalLeafKinds` | `!(Map Name Text)` | `(.unsupportedNominalLeafKinds)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:614` | `TypeGraph` | data | yes | `nominalReachability` | `nominalReachability` | `!(Map MappedKey (Set Name))` | `(.nominalReachability)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:615` | `TypeGraph` | data | yes | `tgUseSites` | `useSites` | `![UseSite]` | `(.useSites)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:616` | `TypeGraph` | data | yes | `nominalRootSites` | `nominalRootSites` | `![NominalRootSite]` | `(.nominalRootSites)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:617` | `TypeGraph` | data | yes | `tgRootSegments` | `rootSegments` | `!(Map UseSite [PathSeg])` | `(.rootSegments)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:618` | `TypeGraph` | data | yes | `tgDerivedMappedConsumers` | `derivedMappedConsumers` | `![DerivedMappedConsumer]` | `(.derivedMappedConsumers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:619` | `TypeGraph` | data | yes | `tgReplayableProjectionGroups` | `replayableProjectionGroups` | `!(Map DerivedMappedConsumer Name)` | `(.replayableProjectionGroups)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:620` | `TypeGraph` | data | yes | `tgProjectionOperationalIdentities` | `projectionOperationalIdentities` | `!(Map DerivedMappedConsumer Text)` | `(.projectionOperationalIdentities)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:621` | `TypeGraph` | data | yes | `tgUnsupportedProjectionSources` | `unsupportedProjectionSources` | `![UnsupportedProjectionSource]` | `(.unsupportedProjectionSources)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1270` | `TypeExprAlgebra` | data | yes | `onText` | `onText` | `a` | `(.onText)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1271` | `TypeExprAlgebra` | data | yes | `onInt` | `onInt` | `a` | `(.onInt)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1272` | `TypeExprAlgebra` | data | yes | `onInteger` | `onInteger` | `a` | `(.onInteger)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1273` | `TypeExprAlgebra` | data | yes | `onBool` | `onBool` | `a` | `(.onBool)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1274` | `TypeExprAlgebra` | data | yes | `onNatural` | `onNatural` | `a` | `(.onNatural)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1275` | `TypeExprAlgebra` | data | yes | `onTime` | `onTime` | `a` | `(.onTime)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1276` | `TypeExprAlgebra` | data | yes | `onDay` | `onDay` | `a` | `(.onDay)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1277` | `TypeExprAlgebra` | data | yes | `onTextSet` | `onTextSet` | `a` | `(.onTextSet)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1278` | `TypeExprAlgebra` | data | yes | `onJson` | `onJson` | `a` | `(.onJson)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1279` | `TypeExprAlgebra` | data | yes | `onOptional` | `onOptional` | `a -> a` | `(.onOptional)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1280` | `TypeExprAlgebra` | data | yes | `onList` | `onList` | `a -> a` | `(.onList)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1281` | `TypeExprAlgebra` | data | yes | `onMap` | `onMap` | `a -> a` | `(.onMap)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1282` | `TypeExprAlgebra` | data | yes | `onKeyedMap` | `onKeyedMap` | `NominalLeaf -> a -> a` | `(.onKeyedMap)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1283` | `TypeExprAlgebra` | data | yes | `onRef` | `onRef` | `MappedKey -> a` | `(.onRef)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1284` | `TypeExprAlgebra` | data | yes | `onNominal` | `onNominal` | `NominalLeaf -> a` | `(.onNominal)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1306` | `MappedShapeAlgebra` | data | yes | `onRecord` | `onRecord` | `Name -> UnknownFields -> [ResolvedWireField] -> a` | `(.onRecord)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1307` | `MappedShapeAlgebra` | data | yes | `onEnum` | `onEnum` | `[WireEnum] -> a` | `(.onEnum)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1308` | `MappedShapeAlgebra` | data | yes | `onUnion` | `onUnion` | `UnionEncoding -> [ResolvedWireArm] -> a` | `(.onUnion)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1309` | `MappedShapeAlgebra` | data | yes | `onBare` | `onBare` | `ResolvedTypeExpr -> a` | `(.onBare)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1310` | `MappedShapeAlgebra` | data | yes | `onRefined` | `onRefined` | `RefinedWirePolicy -> a` | `(.onRefined)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1322` | `MappedDeclAlgebra` | data | yes | `onStructuralDecl` | `onStructuralDecl` | `StructuralDecl -> ResolvedMappedShape -> a` | `(.onStructuralDecl)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1323` | `MappedDeclAlgebra` | data | yes | `onOpaqueDecl` | `onOpaqueDecl` | `OpaqueDecl -> a` | `(.onOpaqueDecl)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:779` | `Diagnostic` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:780` | `Diagnostic` | data | yes | `severity` | `severity` | `!Severity` | `(.severity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:781` | `Diagnostic` | data | yes | `code` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:782` | `Diagnostic` | data | yes | `relatedLocations` | `relatedLocations` | `![(Int, Text)]` | `(.relatedLocations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:783` | `Diagnostic` | data | yes | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:1746` | `NullabilityFacts` | data | no | `nfTopNull` | `topNull` | `!Bool` | `(.topNull)`, pattern, or construction | rendered/canonical output | `none` |-| `keiro-dsl/src/Keiro/Dsl/Validate.hs:1747` | `NullabilityFacts` | data | no | `nfBadOptional` | `badOptional` | `!Bool` | `(.badOptional)`, pattern, or construction | rendered/canonical output | `none` |+Inventory: 330 record-owning declarations, 1626 fields, 1578 strict fields, and 1481 fields exported through a public `Type (..)`.++| Location | Owner | Kind | Public | Current | Target | Type/strictness | Selection replacement | Review risk / observable surface | Deriving |+| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |+| `keiro-dsl/src/Keiro/Dsl/AggregateGenerationPlan.hs:14` | `TransitionLayoutEntry` | data | no | `layoutDeclarationIndex` | `declarationIndex` | `!Int` | `(.declarationIndex)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateGenerationPlan.hs:15` | `TransitionLayoutEntry` | data | no | `layoutOutgoingIndex` | `outgoingIndex` | `!Int` | `(.outgoingIndex)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateGenerationPlan.hs:16` | `TransitionLayoutEntry` | data | no | `layoutTransition` | `transition` | `!Transition` | `(.transition)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:97` | `StructuralEnumEquality` | data | yes | `key` | `key` | `!MappedKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:98` | `StructuralEnumEquality` | data | yes | `owner` | `owner` | `!HaskellSource` | `(.owner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:99` | `StructuralEnumEquality` | data | yes | `binding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:100` | `StructuralEnumEquality` | data | yes | `bindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:101` | `StructuralEnumEquality` | data | yes | `canonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:102` | `StructuralEnumEquality` | data | yes | `constructors` | `constructors` | `!(NE.NonEmpty (Name, Text))` | `(.constructors)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:139` | `AggregateSymbols` | data | no | `symbolNominals` | `nominals` | `!(Map Name ResolvedNominalType)` | `(.nominals)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:140` | `AggregateSymbols` | data | no | `symbolVertices` | `vertices` | `!(Map Name [Name])` | `(.vertices)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:141` | `AggregateSymbols` | data | no | `symbolMapped` | `mapped` | `!(Map MappedKey ResolvedMappedDecl)` | `(.mapped)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:178` | `AggregateTypeError` | data | yes | `aggregateTypeErrorLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:179` | `AggregateTypeError` | data | yes | `aggregateTypeErrorUseSite` | `useSite` | `!AggregateUseSite` | `(.useSite)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:180` | `AggregateTypeError` | data | yes | `aggregateTypeErrorReason` | `reason` | `!AggregateTypeErrorReason` | `(.reason)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:317` | `AggregateHaskellSource` | data | no | `aggregateSourceBuiltin` | `builtin` | `!(Maybe Text)` | `(.builtin)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:318` | `AggregateHaskellSource` | data | no | `aggregateSourceReference` | `reference` | `!(Maybe HaskellReference)` | `(.reference)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/AggregateType.hs:319` | `AggregateHaskellSource` | data | no | `aggregateSourceStaticImports` | `staticImports` | `!(Set Text)` | `(.staticImports)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:51` | `BehaviorKey` | newtype | yes | `unBehaviorKey` | `unBehaviorKey` | `Text` | explicit `unBehaviorKey` positional function | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:92` | `BehaviorExactLocation` | data | yes | `exactSourceFile` | `sourceFile` | `!FilePath` | `(.sourceFile)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:93` | `BehaviorExactLocation` | data | yes | `exactSourceLine` | `sourceLine` | `!Int` | `(.sourceLine)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:94` | `BehaviorExactLocation` | data | yes | `exactSourceColumn` | `sourceColumn` | `!Int` | `(.sourceColumn)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:99` | `BehaviorRequirement` | data | yes | `requirementKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:100` | `BehaviorRequirement` | data | yes | `requirementOrigin` | `origin` | `!RequirementOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:101` | `BehaviorRequirement` | data | yes | `requirementKind` | `kind` | `!ObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:102` | `BehaviorRequirement` | data | yes | `requirementEvidence` | `evidence` | `!EvidenceLevel` | `(.evidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:103` | `BehaviorRequirement` | data | yes | `requirementGuardCoverage` | `guardCoverage` | `!GuardCoverage` | `(.guardCoverage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:104` | `BehaviorRequirement` | data | yes | `requirementContext` | `context` | `!Name` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:105` | `BehaviorRequirement` | data | yes | `requirementAggregate` | `aggregate` | `!Name` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:106` | `BehaviorRequirement` | data | yes | `requirementSource` | `source` | `!Name` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:107` | `BehaviorRequirement` | data | yes | `requirementCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:108` | `BehaviorRequirement` | data | yes | `requirementTarget` | `target` | `!(Maybe Name)` | `(.target)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:109` | `BehaviorRequirement` | data | yes | `requirementMode` | `mode` | `!(Maybe TransitionMode)` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:110` | `BehaviorRequirement` | data | yes | `requirementEvents` | `events` | `![Name]` | `(.events)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:111` | `BehaviorRequirement` | data | yes | `requirementOutputs` | `outputs` | `![OutputEvidence]` | `(.outputs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:112` | `BehaviorRequirement` | data | yes | `requirementDomainOutcome` | `domainOutcome` | `!(Maybe TransitionOutcome)` | `(.domainOutcome)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:113` | `BehaviorRequirement` | data | yes | `requirementLocation` | `location` | `!Loc` | `(.location)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:114` | `BehaviorRequirement` | data | yes | `requirementExactLocation` | `exactLocation` | `!(Maybe BehaviorExactLocation)` | `(.exactLocation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:115` | `BehaviorRequirement` | data | yes | `requirementOwner` | `owner` | `!(Maybe FilePath)` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:116` | `BehaviorRequirement` | data | yes | `requirementCanonical` | `canonical` | `!Text` | `(.canonical)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:124` | `BehaviorRecordRow` | data | yes | `behaviorRecordKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:125` | `BehaviorRecordRow` | data | yes | `behaviorRecordKind` | `kind` | `!ObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:126` | `BehaviorRecordRow` | data | yes | `behaviorRecordEvidence` | `evidence` | `!EvidenceLevel` | `(.evidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:127` | `BehaviorRecordRow` | data | yes | `behaviorRecordAggregate` | `aggregate` | `!Name` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:128` | `BehaviorRecordRow` | data | yes | `behaviorRecordSource` | `source` | `!Name` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:129` | `BehaviorRecordRow` | data | yes | `behaviorRecordCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:130` | `BehaviorRecordRow` | data | yes | `behaviorRecordOwner` | `owner` | `!(Maybe FilePath)` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:131` | `BehaviorRecordRow` | data | yes | `behaviorRecordOutputs` | `outputs` | `![OutputEvidence]` | `(.outputs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:143` | `BehaviorObligationsReport` | data | yes | `behaviorSubject` | `subject` | `!FilePath` | `(.subject)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:144` | `BehaviorObligationsReport` | data | yes | `behaviorWorkspaceService` | `workspaceService` | `!(Maybe Text)` | `(.workspaceService)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorCoverage.hs:145` | `BehaviorObligationsReport` | data | yes | `behaviorRequirements` | `requirements` | `![BehaviorRequirement]` | `(.requirements)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:38` | `BehaviorSourceFailure` | data | yes | `failureCode` | `code` | `!BehaviorSourceFailureCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:39` | `BehaviorSourceFailure` | data | yes | `failureKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:40` | `BehaviorSourceFailure` | data | yes | `failureOrigin` | `origin` | `!RequirementOrigin` | `(.origin)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:41` | `BehaviorSourceFailure` | data | yes | `failureAggregate` | `aggregate` | `!Text` | `(.aggregate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:42` | `BehaviorSourceFailure` | data | yes | `failureState` | `state` | `!Text` | `(.state)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:43` | `BehaviorSourceFailure` | data | yes | `failureCommand` | `command` | `!Text` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:44` | `BehaviorSourceFailure` | data | yes | `failureSourceSubject` | `sourceSubject` | `!SourceSubject` | `(.sourceSubject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:45` | `BehaviorSourceFailure` | data | yes | `failureSpan` | `span` | `!(Maybe SourceSpan)` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:46` | `BehaviorSourceFailure` | data | yes | `failureMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:51` | `BehaviorSourceEntry` | data | yes | `behaviorSourceKey` | `key` | `!BehaviorKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:52` | `BehaviorSourceEntry` | data | yes | `behaviorSourceFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:53` | `BehaviorSourceEntry` | data | yes | `behaviorSourceLine` | `line` | `!Int` | `(.line)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/BehaviorSourceMap.hs:54` | `BehaviorSourceEntry` | data | yes | `behaviorSourceColumn` | `column` | `!Int` | `(.column)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:45` | `CheckReportLanguage` | data | yes | `reportSourceForm` | `sourceForm` | `!Text` | `(.sourceForm)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:46` | `CheckReportLanguage` | data | yes | `reportDeclaredLanguageVersion` | `declaredLanguageVersion` | `!(Maybe LanguageVersion)` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:47` | `CheckReportLanguage` | data | yes | `reportEffectiveLanguageVersion` | `effectiveLanguageVersion` | `!LanguageVersion` | `(.effectiveLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:48` | `CheckReportLanguage` | data | yes | `reportRuntimeSemantics` | `runtimeSemantics` | `!Text` | `(.runtimeSemantics)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:49` | `CheckReportLanguage` | data | yes | `reportLanguageSupport` | `languageSupport` | `!LanguageSupport` | `(.languageSupport)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:50` | `CheckReportLanguage` | data | yes | `reportStable` | `stable` | `!Bool` | `(.stable)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:55` | `CheckReportEnforcement` | data | yes | `reportMinLanguage` | `minLanguage` | `!(Maybe LanguageVersion)` | `(.minLanguage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:56` | `CheckReportEnforcement` | data | yes | `reportDenyWarnings` | `denyWarnings` | `!Bool` | `(.denyWarnings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:57` | `CheckReportEnforcement` | data | yes | `reportDenyCodes` | `denyCodes` | `![DiagnosticCode]` | `(.denyCodes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:62` | `CheckReportRelated` | data | yes | `relatedFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:63` | `CheckReportRelated` | data | yes | `relatedLine` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:64` | `CheckReportRelated` | data | yes | `relatedNote` | `note` | `!Text` | `(.note)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:69` | `CheckReportEntry` | data | yes | `entryCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:70` | `CheckReportEntry` | data | yes | `entrySeverity` | `severity` | `!Severity` | `(.severity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:71` | `CheckReportEntry` | data | yes | `entryFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:72` | `CheckReportEntry` | data | yes | `entryLine` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:73` | `CheckReportEntry` | data | yes | `entryMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:74` | `CheckReportEntry` | data | yes | `entryDenied` | `denied` | `!Bool` | `(.denied)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:75` | `CheckReportEntry` | data | yes | `entryRelated` | `related` | `![CheckReportRelated]` | `(.related)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:80` | `CheckReportSummary` | data | yes | `summaryErrors` | `errors` | `!Int` | `(.errors)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:81` | `CheckReportSummary` | data | yes | `summaryWarnings` | `warnings` | `!Int` | `(.warnings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:82` | `CheckReportSummary` | data | yes | `summaryDeniedWarnings` | `deniedWarnings` | `!Int` | `(.deniedWarnings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:87` | `CheckReportMember` | data | yes | `memberPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:88` | `CheckReportMember` | data | yes | `memberSourceForm` | `sourceForm` | `!Text` | `(.sourceForm)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:89` | `CheckReportMember` | data | yes | `memberDeclaredLanguageVersion` | `declaredLanguageVersion` | `!(Maybe LanguageVersion)` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:94` | `CheckReportProcessReaction` | data | yes | `process` | `process` | `!Text` | `(.process)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:95` | `CheckReportProcessReaction` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:96` | `CheckReportProcessReaction` | data | yes | `version` | `version` | `!Natural` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:97` | `CheckReportProcessReaction` | data | yes | `fingerprint` | `fingerprint` | `!Text` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:98` | `CheckReportProcessReaction` | data | yes | `holeObligations` | `holeObligations` | `![Text]` | `(.holeObligations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:106` | `CheckReport` | data | no | `reportKind` | `kind` | `!CheckReportKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:107` | `CheckReport` | data | no | `reportSubject` | `subject` | `!FilePath` | `(.subject)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:111` | `CheckReport` | data | no | `reportLanguage` | `language` | `!(Maybe CheckReportLanguage)` | `(.language)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:112` | `CheckReport` | data | no | `reportEnforcement` | `enforcement` | `!CheckReportEnforcement` | `(.enforcement)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:113` | `CheckReport` | data | no | `reportDiagnostics` | `diagnostics` | `![CheckReportEntry]` | `(.diagnostics)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:114` | `CheckReport` | data | no | `reportSummary` | `summary` | `!CheckReportSummary` | `(.summary)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:115` | `CheckReport` | data | no | `reportOk` | `ok` | `!Bool` | `(.ok)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:116` | `CheckReport` | data | no | `reportMembers` | `members` | `![CheckReportMember]` | `(.members)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CheckReport.hs:117` | `CheckReport` | data | no | `processReactions` | `processReactions` | `![CheckReportProcessReaction]` | `(.processReactions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:70` | `JsonPointer` | newtype | yes | `unJsonPointer` | `unJsonPointer` | `Text` | explicit `unJsonPointer` positional function | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:85` | `HistoricalCodec` | data | yes | `hcIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:86` | `HistoricalCodec` | data | yes | `hcVersion` | `version` | `!Text` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:87` | `HistoricalCodec` | data | yes | `hcEncode` | `encode` | `!(a -> Value)` | `(.encode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:88` | `HistoricalCodec` | data | yes | `hcDecode` | `decode` | `!(Value -> Either Text a)` | `(.decode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:93` | `CompareObservation` | data | yes | `coCaseName` | `caseName` | `!Text` | `(.caseName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:94` | `CompareObservation` | data | yes | `coHistoricalValue` | `historicalValue` | `!Value` | `(.historicalValue)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:95` | `CompareObservation` | data | yes | `coGeneratedValue` | `generatedValue` | `!Value` | `(.generatedValue)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:98` | `CompareObservation` | data | yes | `coFixturePath` | `fixturePath` | `!FilePath` | `(.fixturePath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:99` | `CompareObservation` | data | yes | `coInputValue` | `inputValue` | `!Value` | `(.inputValue)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:100` | `CompareObservation` | data | yes | `coHistoricalDecode` | `historicalDecode` | `!DecodeOutcome` | `(.historicalDecode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:101` | `CompareObservation` | data | yes | `coGeneratedDecode` | `generatedDecode` | `!DecodeOutcome` | `(.generatedDecode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:124` | `DeclaredBranch` | data | yes | `dbOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:125` | `DeclaredBranch` | data | yes | `dbPointer` | `pointer` | `!JsonPointer` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:126` | `DeclaredBranch` | data | yes | `dbKind` | `kind` | `!BranchKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:131` | `ObservedBranch` | data | yes | `obOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:132` | `ObservedBranch` | data | yes | `obPointer` | `pointer` | `!JsonPointer` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:133` | `ObservedBranch` | data | yes | `obKind` | `kind` | `!BranchKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:138` | `CoverageGap` | data | yes | `cgOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:139` | `CoverageGap` | data | yes | `cgPointer` | `pointer` | `!JsonPointer` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:140` | `CoverageGap` | data | yes | `cgKind` | `kind` | `!BranchKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:157` | `BranchField` | data | yes | `bfWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:158` | `BranchField` | data | yes | `bfPresenceOptional` | `presenceOptional` | `!Bool` | `(.presenceOptional)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:159` | `BranchField` | data | yes | `bfSchema` | `schema` | `!BranchSchema` | `(.schema)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:164` | `BranchArm` | data | yes | `baWireTag` | `wireTag` | `!Text` | `(.wireTag)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:165` | `BranchArm` | data | yes | `baPayloadSchema` | `payloadSchema` | `!(Maybe BranchSchema)` | `(.payloadSchema)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:170` | `CompareProvenance` | data | yes | `cpHistoricalCodecIdentity` | `historicalCodecIdentity` | `!Text` | `(.historicalCodecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:171` | `CompareProvenance` | data | yes | `cpHistoricalCodecVersion` | `historicalCodecVersion` | `!Text` | `(.historicalCodecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:172` | `CompareProvenance` | data | yes | `cpCanonicalType` | `canonicalType` | `!CanonicalTypeId` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:173` | `CompareProvenance` | data | yes | `cpBindingSymbol` | `bindingSymbol` | `!QualifiedValueName` | `(.bindingSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:174` | `CompareProvenance` | data | yes | `cpBindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:175` | `CompareProvenance` | data | yes | `cpWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:180` | `ClassifiedObservation` | data | yes | `classifiedOrigin` | `origin` | `!FixtureOrigin` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:181` | `ClassifiedObservation` | data | yes | `classifiedName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:182` | `ClassifiedObservation` | data | yes | `classifiedVerdict` | `verdict` | `!FixtureVerdict` | `(.verdict)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:187` | `CompareReport` | data | yes | `crProvenance` | `provenance` | `!CompareProvenance` | `(.provenance)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:188` | `CompareReport` | data | yes | `crObservations` | `observations` | `![ClassifiedObservation]` | `(.observations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:189` | `CompareReport` | data | yes | `crInputIssues` | `inputIssues` | `![CompareInputIssue]` | `(.inputIssues)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:190` | `CompareReport` | data | yes | `crCoverageGaps` | `coverageGaps` | `![CoverageGap]` | `(.coverageGaps)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:191` | `CompareReport` | data | yes | `crAuthority` | `authority` | `!Text` | `(.authority)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:196` | `ReportWriteError` | data | yes | `reportWritePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/CodecCompare.hs:197` | `ReportWriteError` | data | yes | `reportWriteMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:58` | `ConformanceFile` | data | yes | `conformanceFilePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:59` | `ConformanceFile` | data | yes | `conformanceFileText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:60` | `ConformanceFile` | data | yes | `conformanceFileKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:65` | `ConformancePackagePlan` | data | yes | `cppServiceKey` | `serviceKey` | `!ConformanceServiceKey` | `(.serviceKey)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:66` | `ConformancePackagePlan` | data | yes | `cppDirectory` | `directory` | `!FilePath` | `(.directory)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:67` | `ConformancePackagePlan` | data | yes | `cppPackageName` | `packageName` | `!Text` | `(.packageName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:68` | `ConformancePackagePlan` | data | yes | `cppRuntimePackage` | `runtimePackage` | `!RuntimePackageName` | `(.runtimePackage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:69` | `ConformancePackagePlan` | data | yes | `cppFacadeModule` | `facadeModule` | `!Text` | `(.facadeModule)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:70` | `ConformancePackagePlan` | data | yes | `cppFiles` | `files` | `![ConformanceFile]` | `(.files)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:78` | `DuplicateFactKey` | data | yes | `duplicateFactSide` | `side` | `!ConformanceFactSide` | `(.side)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:79` | `DuplicateFactKey` | data | yes | `duplicateFactKey` | `key` | `!String` | `(.key)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:101` | `ConformancePackageRecord` | data | yes | `cprSchema` | `schema` | `!Int` | `(.schema)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:102` | `ConformancePackageRecord` | data | yes | `cprServiceKey` | `serviceKey` | `!ConformanceServiceKey` | `(.serviceKey)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:103` | `ConformancePackageRecord` | data | yes | `cprRuntimePackage` | `runtimePackage` | `!RuntimePackageName` | `(.runtimePackage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:104` | `ConformancePackageRecord` | data | yes | `cprFacadeModule` | `facadeModule` | `!Text` | `(.facadeModule)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:105` | `ConformancePackageRecord` | data | yes | `cprFiles` | `files` | `![(ModuleKind, FilePath)]` | `(.files)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:113` | `ConformanceStaleFile` | data | yes | `conformanceStaleKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:114` | `ConformanceStaleFile` | data | yes | `conformanceStalePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:115` | `ConformanceStaleFile` | data | yes | `conformanceStaleBannerPresent` | `bannerPresent` | `!(Maybe Bool)` | `(.bannerPresent)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:120` | `PreparedConformancePackage` | data | no | `preparedRoot` | `root` | `!FilePath` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:121` | `PreparedConformancePackage` | data | no | `preparedPlan` | `plan` | `!ConformancePackagePlan` | `(.plan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:122` | `PreparedConformancePackage` | data | no | `preparedStale` | `stale` | `![ConformanceStaleFile]` | `(.stale)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:127` | `ConformancePackageReport` | data | yes | `conformanceReportRoot` | `root` | `!FilePath` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:128` | `ConformancePackageReport` | data | yes | `conformanceReportPlan` | `plan` | `!ConformancePackagePlan` | `(.plan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:129` | `ConformancePackageReport` | data | yes | `conformanceReportDispositions` | `dispositions` | `![(ConformanceFile, ConformanceWriteDisposition)]` | `(.dispositions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:130` | `ConformancePackageReport` | data | yes | `conformanceReportStale` | `stale` | `![ConformanceStaleFile]` | `(.stale)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:432` | `ConformanceFileRow` | data | no | `conformanceRowKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ConformancePackage.hs:433` | `ConformanceFileRow` | data | no | `conformanceRowPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:27` | `HaskellTypeOccurrence` | newtype | yes | `unHaskellTypeOccurrence` | `unHaskellTypeOccurrence` | `Text` | explicit `unHaskellTypeOccurrence` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:38` | `ImportRequirement` | data | yes | `package` | `package` | `!Text` | `(.package)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:39` | `ImportRequirement` | data | yes | `moduleName` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:40` | `ImportRequirement` | data | yes | `occurrence` | `occurrence` | `!Text` | `(.occurrence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:45` | `ConsumerTypePlan` | data | yes | `haskellType` | `haskellType` | `!HaskellTypeOccurrence` | `(.haskellType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:46` | `ConsumerTypePlan` | data | yes | `imports` | `imports` | `![ImportRequirement]` | `(.imports)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:47` | `ConsumerTypePlan` | data | yes | `dependencies` | `dependencies` | `!(Set MappedKey)` | `(.dependencies)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:48` | `ConsumerTypePlan` | data | yes | `nominalDependencies` | `nominalDependencies` | `!(Set Text)` | `(.nominalDependencies)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:162` | `RenderedType` | data | no | `rendered` | `rendered` | `!Text` | `(.rendered)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:163` | `RenderedType` | data | no | `precedence` | `precedence` | `!TypePrecedence` | `(.precedence)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:164` | `RenderedType` | data | no | `requirements` | `requirements` | `!(Set ImportRequirement)` | `(.requirements)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:165` | `RenderedType` | data | no | `mappedDependencies` | `mappedDependencies` | `!(Set MappedKey)` | `(.mappedDependencies)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ConsumerTypePlan.hs:166` | `RenderedType` | data | no | `nominalDependencies` | `nominalDependencies` | `!(Set Text)` | `(.nominalDependencies)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:67` | `RouterSelectionSnapshot` | data | yes | `selectionRouter` | `router` | `!Name` | `(.router)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:68` | `RouterSelectionSnapshot` | data | yes | `selectionVerification` | `verification` | `!SelectionVerification` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:69` | `RouterSelectionSnapshot` | data | yes | `selectionIdentity` | `identity` | `!(Maybe Text)` | `(.identity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:70` | `RouterSelectionSnapshot` | data | yes | `selectionVersion` | `version` | `!(Maybe Natural)` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:71` | `RouterSelectionSnapshot` | data | yes | `selectionFingerprint` | `fingerprint` | `!(Maybe Text)` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:76` | `CoordinationImpact` | data | yes | `coordinationRouter` | `router` | `!Name` | `(.router)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:77` | `CoordinationImpact` | data | yes | `coordinationSeverity` | `severity` | `!CoordinationSeverity` | `(.severity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:78` | `CoordinationImpact` | data | yes | `coordinationReason` | `reason` | `!CoordinationReason` | `(.reason)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:79` | `CoordinationImpact` | data | yes | `previousVerification` | `previousVerification` | `!SelectionVerification` | `(.previousVerification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:80` | `CoordinationImpact` | data | yes | `currentVerification` | `currentVerification` | `!SelectionVerification` | `(.currentVerification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:81` | `CoordinationImpact` | data | yes | `previousIdentity` | `previousIdentity` | `!(Maybe Text)` | `(.previousIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:82` | `CoordinationImpact` | data | yes | `currentIdentity` | `currentIdentity` | `!(Maybe Text)` | `(.currentIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:83` | `CoordinationImpact` | data | yes | `previousVersion` | `previousVersion` | `!(Maybe Natural)` | `(.previousVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:84` | `CoordinationImpact` | data | yes | `currentVersion` | `currentVersion` | `!(Maybe Natural)` | `(.currentVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:85` | `CoordinationImpact` | data | yes | `previousFingerprint` | `previousFingerprint` | `!(Maybe Text)` | `(.previousFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:86` | `CoordinationImpact` | data | yes | `currentFingerprint` | `currentFingerprint` | `!(Maybe Text)` | `(.currentFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:87` | `CoordinationImpact` | data | yes | `affectedUseSites` | `affectedUseSites` | `![UseSite]` | `(.affectedUseSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:92` | `RouterSelectionDrift` | data | yes | `driftRouter` | `router` | `!Name` | `(.router)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:93` | `RouterSelectionDrift` | data | yes | `driftPreviousSelection` | `previousSelection` | `!(Maybe RouterSelectionSnapshot)` | `(.previousSelection)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:94` | `RouterSelectionDrift` | data | yes | `driftCurrentSelection` | `currentSelection` | `!(Maybe RouterSelectionSnapshot)` | `(.currentSelection)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:102` | `ProcessReactionSnapshot` | data | yes | `process` | `process` | `!Name` | `(.process)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:103` | `ProcessReactionSnapshot` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:104` | `ProcessReactionSnapshot` | data | yes | `version` | `version` | `!(Maybe Natural)` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:105` | `ProcessReactionSnapshot` | data | yes | `fingerprint` | `fingerprint` | `!(Maybe Text)` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:110` | `ProcessReactionDrift` | data | yes | `process` | `process` | `!Name` | `(.process)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:111` | `ProcessReactionDrift` | data | yes | `previousReaction` | `previousReaction` | `!(Maybe ProcessReactionSnapshot)` | `(.previousReaction)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:112` | `ProcessReactionDrift` | data | yes | `currentReaction` | `currentReaction` | `!(Maybe ProcessReactionSnapshot)` | `(.currentReaction)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:302` | `RouterSelectionState` | data | no | `stateSnapshot` | `snapshot` | `!RouterSelectionSnapshot` | `(.snapshot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/CoordinationImpact.hs:303` | `RouterSelectionState` | data | no | `stateUseSites` | `useSites` | `![UseSite]` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:68` | `CoverageRoot` | data | yes | `rootSurface` | `surface` | `!CoverageSurface` | `(.surface)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:69` | `CoverageRoot` | data | yes | `rootConsumer` | `consumer` | `!Text` | `(.consumer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:70` | `CoverageRoot` | data | yes | `rootPath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:71` | `CoverageRoot` | data | yes | `rootMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:72` | `CoverageRoot` | data | yes | `rootMode` | `mode` | `!CoverageMode` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:73` | `CoverageRoot` | data | yes | `rootCanonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:74` | `CoverageRoot` | data | yes | `rootCodecIdentity` | `codecIdentity` | `!(Maybe Text)` | `(.codecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:75` | `CoverageRoot` | data | yes | `rootCodecVersion` | `codecVersion` | `!(Maybe Text)` | `(.codecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:76` | `CoverageRoot` | data | yes | `rootWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:81` | `StructuralBoundary` | data | yes | `structuralRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:82` | `StructuralBoundary` | data | yes | `structuralPath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:83` | `StructuralBoundary` | data | yes | `structuralMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:84` | `StructuralBoundary` | data | yes | `structuralCanonicalType` | `canonicalType` | `!Text` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:85` | `StructuralBoundary` | data | yes | `structuralWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:90` | `OpaqueBoundary` | data | yes | `opaqueRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:91` | `OpaqueBoundary` | data | yes | `opaquePath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:92` | `OpaqueBoundary` | data | yes | `opaqueMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:93` | `OpaqueBoundary` | data | yes | `opaqueCodecIdentity` | `codecIdentity` | `!Text` | `(.codecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:94` | `OpaqueBoundary` | data | yes | `opaqueCodecVersion` | `codecVersion` | `!Text` | `(.codecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:99` | `JsonBoundary` | data | yes | `jsonSurface` | `surface` | `!CoverageSurface` | `(.surface)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:100` | `JsonBoundary` | data | yes | `jsonRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:101` | `JsonBoundary` | data | yes | `jsonPath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:106` | `NominalBoundary` | data | yes | `root` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:107` | `NominalBoundary` | data | yes | `path` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:108` | `NominalBoundary` | data | yes | `position` | `position` | `!Text` | `(.position)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:109` | `NominalBoundary` | data | yes | `nominal` | `nominal` | `!Text` | `(.nominal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:110` | `NominalBoundary` | data | yes | `kind` | `kind` | `!Text` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:111` | `NominalBoundary` | data | yes | `prefix` | `prefix` | `!(Maybe Text)` | `(.prefix)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:112` | `NominalBoundary` | data | yes | `domainVersion` | `domainVersion` | `!(Maybe Text)` | `(.domainVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:113` | `NominalBoundary` | data | yes | `canonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:114` | `NominalBoundary` | data | yes | `ownership` | `ownership` | `!Text` | `(.ownership)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:119` | `SnapshotBoundary` | data | yes | `snapshotRoot` | `root` | `!Text` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:120` | `SnapshotBoundary` | data | yes | `snapshotAggregate` | `aggregate` | `!Text` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:121` | `SnapshotBoundary` | data | yes | `snapshotRegister` | `register` | `!Text` | `(.register)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:122` | `SnapshotBoundary` | data | yes | `snapshotMappedType` | `mappedType` | `!Text` | `(.mappedType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:123` | `SnapshotBoundary` | data | yes | `snapshotMode` | `mode` | `!CoverageMode` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:124` | `SnapshotBoundary` | data | yes | `snapshotEncoding` | `encoding` | `!Text` | `(.encoding)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:125` | `SnapshotBoundary` | data | yes | `snapshotInvalidation` | `invalidation` | `!Text` | `(.invalidation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:126` | `SnapshotBoundary` | data | yes | `snapshotWireFingerprint` | `wireFingerprint` | `!Text` | `(.wireFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:127` | `SnapshotBoundary` | data | yes | `snapshotEnabled` | `enabled` | `!Bool` | `(.enabled)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:132` | `UnsupportedSurface` | data | yes | `unsupportedSurface` | `surface` | `!Text` | `(.surface)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:133` | `UnsupportedSurface` | data | yes | `unsupportedSupport` | `support` | `!Text` | `(.support)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:134` | `UnsupportedSurface` | data | yes | `unsupportedReason` | `reason` | `!Text` | `(.reason)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:139` | `CoverageCounts` | data | yes | `totalRoots` | `totalRoots` | `!Int` | `(.totalRoots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:140` | `CoverageCounts` | data | yes | `structuralRoots` | `structuralRoots` | `!Int` | `(.structuralRoots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:141` | `CoverageCounts` | data | yes | `opaqueRoots` | `opaqueRoots` | `!Int` | `(.opaqueRoots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:142` | `CoverageCounts` | data | yes | `jsonBoundaries` | `jsonBoundaries` | `!Int` | `(.jsonBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:147` | `CoverageSummary` | data | yes | `aggregateCommandPayloads` | `aggregateCommandPayloads` | `!CoverageCounts` | `(.aggregateCommandPayloads)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:148` | `CoverageSummary` | data | yes | `privateEventPayloads` | `privateEventPayloads` | `!CoverageCounts` | `(.privateEventPayloads)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:149` | `CoverageSummary` | data | yes | `snapshotRegisters` | `snapshotRegisters` | `!CoverageCounts` | `(.snapshotRegisters)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:150` | `CoverageSummary` | data | yes | `workqueuePayloads` | `workqueuePayloads` | `!CoverageCounts` | `(.workqueuePayloads)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:151` | `CoverageSummary` | data | yes | `readModelQueryInputs` | `readModelQueryInputs` | `!CoverageCounts` | `(.readModelQueryInputs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:152` | `CoverageSummary` | data | yes | `readModelQueryResults` | `readModelQueryResults` | `!CoverageCounts` | `(.readModelQueryResults)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:153` | `CoverageSummary` | data | yes | `projectionTypedConsumers` | `projectionTypedConsumers` | `!CoverageCounts` | `(.projectionTypedConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:158` | `CoverageFinding` | data | yes | `findingSeverity` | `severity` | `!Severity` | `(.severity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:159` | `CoverageFinding` | data | yes | `findingCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:160` | `CoverageFinding` | data | yes | `findingRoots` | `roots` | `![Text]` | `(.roots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:161` | `CoverageFinding` | data | yes | `findingMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:166` | `CoveragePrevious` | data | yes | `previousReference` | `reference` | `!Text` | `(.reference)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:167` | `CoveragePrevious` | data | yes | `previousSummary` | `summary` | `!CoverageSummary` | `(.summary)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:168` | `CoveragePrevious` | data | yes | `previousOpaqueBoundaries` | `opaqueBoundaries` | `![OpaqueBoundary]` | `(.opaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:173` | `CoverageDelta` | data | yes | `aggregateCommandRootDelta` | `aggregateCommandRootDelta` | `!Int` | `(.aggregateCommandRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:174` | `CoverageDelta` | data | yes | `privateEventRootDelta` | `privateEventRootDelta` | `!Int` | `(.privateEventRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:175` | `CoverageDelta` | data | yes | `snapshotRegisterRootDelta` | `snapshotRegisterRootDelta` | `!Int` | `(.snapshotRegisterRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:176` | `CoverageDelta` | data | yes | `workqueuePayloadRootDelta` | `workqueuePayloadRootDelta` | `!Int` | `(.workqueuePayloadRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:177` | `CoverageDelta` | data | yes | `readModelQueryInputRootDelta` | `readModelQueryInputRootDelta` | `!Int` | `(.readModelQueryInputRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:178` | `CoverageDelta` | data | yes | `readModelQueryResultRootDelta` | `readModelQueryResultRootDelta` | `!Int` | `(.readModelQueryResultRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:179` | `CoverageDelta` | data | yes | `projectionTypedConsumerRootDelta` | `projectionTypedConsumerRootDelta` | `!Int` | `(.projectionTypedConsumerRootDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:180` | `CoverageDelta` | data | yes | `opaqueBoundaryDelta` | `opaqueBoundaryDelta` | `!Int` | `(.opaqueBoundaryDelta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:181` | `CoverageDelta` | data | yes | `addedOpaqueBoundaries` | `addedOpaqueBoundaries` | `![OpaqueBoundary]` | `(.addedOpaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:182` | `CoverageDelta` | data | yes | `removedOpaqueBoundaries` | `removedOpaqueBoundaries` | `![OpaqueBoundary]` | `(.removedOpaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:187` | `CoverageReport` | data | yes | `coverageSpec` | `spec` | `!FilePath` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:188` | `CoverageReport` | data | yes | `coverageRoots` | `roots` | `![CoverageRoot]` | `(.roots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:189` | `CoverageReport` | data | yes | `coverageStructuralBoundaries` | `structuralBoundaries` | `![StructuralBoundary]` | `(.structuralBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:190` | `CoverageReport` | data | yes | `coverageOpaqueBoundaries` | `opaqueBoundaries` | `![OpaqueBoundary]` | `(.opaqueBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:191` | `CoverageReport` | data | yes | `coverageJsonBoundaries` | `jsonBoundaries` | `![JsonBoundary]` | `(.jsonBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:192` | `CoverageReport` | data | yes | `nominalBoundaries` | `nominalBoundaries` | `![NominalBoundary]` | `(.nominalBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:193` | `CoverageReport` | data | yes | `coverageSnapshotBoundaries` | `snapshotBoundaries` | `![SnapshotBoundary]` | `(.snapshotBoundaries)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:194` | `CoverageReport` | data | yes | `coverageUnsupportedSurfaces` | `unsupportedSurfaces` | `![UnsupportedSurface]` | `(.unsupportedSurfaces)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:195` | `CoverageReport` | data | yes | `coverageSummary` | `summary` | `!CoverageSummary` | `(.summary)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:196` | `CoverageReport` | data | yes | `coverageFindings` | `findings` | `![CoverageFinding]` | `(.findings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:197` | `CoverageReport` | data | yes | `coveragePrevious` | `previous` | `!(Maybe CoveragePrevious)` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Coverage.hs:198` | `CoverageReport` | data | yes | `coverageDelta` | `delta` | `!(Maybe CoverageDelta)` | `(.delta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:143` | `CompatibilityVector` | data | yes | `cvPrivateHistoryRead` | `privateHistoryRead` | `!SurfaceVerdict` | `(.privateHistoryRead)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:144` | `CompatibilityVector` | data | yes | `cvOldBinaryReadNewEvents` | `oldBinaryReadNewEvents` | `!SurfaceVerdict` | `(.oldBinaryReadNewEvents)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:145` | `CompatibilityVector` | data | yes | `cvSnapshotHydration` | `snapshotHydration` | `!SurfaceVerdict` | `(.snapshotHydration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:146` | `CompatibilityVector` | data | yes | `cvPublicConsumer` | `publicConsumer` | `!SurfaceVerdict` | `(.publicConsumer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:147` | `CompatibilityVector` | data | yes | `cvPersistedIdentity` | `persistedIdentity` | `!SurfaceVerdict` | `(.persistedIdentity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:148` | `CompatibilityVector` | data | yes | `cvConsumerBuild` | `consumerBuild` | `!SurfaceVerdict` | `(.consumerBuild)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:149` | `CompatibilityVector` | data | yes | `cvRollout` | `rollout` | `!(Set RolloutConstraint)` | `(.rollout)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:162` | `MappedPersistedImpact` | data | yes | `mappedPersistedSurface` | `surface` | `!MappedPersistedSurface` | `(.surface)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:163` | `MappedPersistedImpact` | data | yes | `mappedPersistedVerdict` | `verdict` | `!SurfaceVerdict` | `(.verdict)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:184` | `ChangeContext` | data | no | `changeContextRoot` | `root` | `!Name` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:185` | `ChangeContext` | data | no | `changeContextPaths` | `paths` | `![Text]` | `(.paths)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:186` | `ChangeContext` | data | no | `contextKind` | `contextKind` | `!ContextKind` | `(.contextKind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:187` | `ChangeContext` | data | no | `contextOriginalLabel` | `contextOriginalLabel` | `!Label` | `(.contextOriginalLabel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:198` | `ChangeKind` | data | yes | `ckNode` | `node` | `!Name` | `(.node)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:199` | `ChangeKind` | data | yes | `ckFacet` | `facet` | `!Text` | `(.facet)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:200` | `ChangeKind` | data | yes | `ckSubject` | `subject` | `!Text` | `(.subject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:201` | `ChangeKind` | data | yes | `ckCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:202` | `ChangeKind` | data | yes | `ckContext` | `context` | `!ChangeContext` | `(.context)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:203` | `ChangeKind` | data | yes | `ckVector` | `vector` | `!CompatibilityVector` | `(.vector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:204` | `ChangeKind` | data | yes | `ckMappedPersistedImpact` | `mappedPersistedImpact` | `!(Maybe MappedPersistedImpact)` | `(.mappedPersistedImpact)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:205` | `ChangeKind` | data | yes | `ckMappedConsequences` | `mappedConsequences` | `!(Set MappedConsequence)` | `(.mappedConsequences)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:206` | `ChangeKind` | data | yes | `ckPaths` | `paths` | `![Text]` | `(.paths)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:207` | `ChangeKind` | data | yes | `ckDetail` | `detail` | `!Text` | `(.detail)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:734` | `DiffEnv` | data | yes | `deOld` | `old` | `!Spec` | `(.old)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:735` | `DiffEnv` | data | yes | `deNew` | `new` | `!Spec` | `(.new)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:736` | `DiffEnv` | data | yes | `oldService` | `oldService` | `!CheckedService` | `(.oldService)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:737` | `DiffEnv` | data | yes | `newService` | `newService` | `!CheckedService` | `(.newService)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:738` | `DiffEnv` | data | yes | `newValidationErrors` | `newValidationErrors` | `![Diagnostic]` | `(.newValidationErrors)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:790` | `Paired` | data | yes | `prMatched` | `matched` | `![(n, n)]` | `(.matched)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:791` | `Paired` | data | yes | `prAdded` | `added` | `![n]` | `(.added)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:792` | `Paired` | data | yes | `prRemoved` | `removed` | `![n]` | `(.removed)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:1856` | `GuardProposal` | data | no | `proposalBody` | `body` | `!ReplayBodyDelta` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:1857` | `GuardProposal` | data | no | `proposalTwin` | `twin` | `!Transition` | `(.twin)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2246` | `EventFieldSig` | data | no | `eventFieldDslName` | `dslName` | `!Name` | `(.dslName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2247` | `EventFieldSig` | data | no | `eventFieldSelector` | `selector` | `!Name` | `(.selector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2248` | `EventFieldSig` | data | no | `eventFieldWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Diff.hs:2249` | `EventFieldSig` | data | no | `eventFieldType` | `valueType` | `!(Maybe TypeExpr)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:76` | `DiffReport` | data | no | `reportGate` | `gate` | `!(Set CompatibilitySurface)` | `(.gate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:77` | `DiffReport` | data | no | `reportFindings` | `findings` | `![Change]` | `(.findings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:78` | `DiffReport` | data | no | `reportSemanticImpact` | `semanticImpact` | `!(Maybe [MappedImpactDelta])` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:79` | `DiffReport` | data | no | `reportCoordinationImpact` | `coordinationImpact` | `!(Maybe [CoordinationImpact])` | `(.coordinationImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:99` | `OwnedSite` | data | yes | `osFile` | `file` | `!FilePath` | `(.file)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:100` | `OwnedSite` | data | yes | `osLine` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:106` | `WorkspaceChange` | data | yes | `wcChange` | `change` | `!Change` | `(.change)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:107` | `WorkspaceChange` | data | yes | `wcDeclarationSite` | `declarationSite` | `!(Maybe OwnedSite)` | `(.declarationSite)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:108` | `WorkspaceChange` | data | yes | `wcUseSites` | `useSites` | `![(Text, Maybe OwnedSite)]` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:114` | `WorkspaceMeta` | data | yes | `wmIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:115` | `WorkspaceMeta` | data | yes | `wmManifest` | `manifest` | `!FilePath` | `(.manifest)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:116` | `WorkspaceMeta` | data | yes | `wmSince` | `since` | `!Text` | `(.since)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:117` | `WorkspaceMeta` | data | yes | `wmMembersOld` | `membersOld` | `![FilePath]` | `(.membersOld)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:118` | `WorkspaceMeta` | data | yes | `wmMembersNew` | `membersNew` | `![FilePath]` | `(.membersNew)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:119` | `WorkspaceMeta` | data | yes | `wmAdoptionBaseline` | `adoptionBaseline` | `!Bool` | `(.adoptionBaseline)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:124` | `WorkspaceDiffReport` | data | no | `workspaceReportMeta` | `meta` | `!WorkspaceMeta` | `(.meta)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:125` | `WorkspaceDiffReport` | data | no | `workspaceReportGate` | `gate` | `!(Set CompatibilitySurface)` | `(.gate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:126` | `WorkspaceDiffReport` | data | no | `workspaceReportFindings` | `findings` | `![WorkspaceChange]` | `(.findings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:127` | `WorkspaceDiffReport` | data | no | `workspaceReportSemanticImpact` | `semanticImpact` | `!(Maybe [MappedImpactDelta])` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/DiffReport.hs:128` | `WorkspaceDiffReport` | data | no | `workspaceReportCoordinationImpact` | `coordinationImpact` | `!(Maybe [CoordinationImpact])` | `(.coordinationImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:36` | `CheckedFieldCopy` | data | yes | `outputSelector` | `outputSelector` | `!Name` | `(.outputSelector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:37` | `CheckedFieldCopy` | data | yes | `outputWireName` | `outputWireName` | `!Text` | `(.outputWireName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:38` | `CheckedFieldCopy` | data | yes | `outputFieldType` | `outputFieldType` | `!ResolvedAggregateType` | `(.outputFieldType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:43` | `OutputObligationKey` | newtype | yes | `unOutputObligationKey` | `unOutputObligationKey` | `Text` | explicit `unOutputObligationKey` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:52` | `EventOutputMapping` | data | yes | `outputSourceCommand` | `sourceCommand` | `!Name` | `(.sourceCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:53` | `EventOutputMapping` | data | yes | `outputFields` | `fields` | `![CheckedFieldCopy]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:56` | `EventOutputMapping` | data | yes | `outputObligation` | `obligation` | `!OutputObligationKey` | `(.obligation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:64` | `EventOutputError` | data | yes | `declaredSourceCommand` | `declaredSourceCommand` | `!Name` | `(.declaredSourceCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:65` | `EventOutputError` | data | yes | `consumingTransitionCommand` | `consumingTransitionCommand` | `!Name` | `(.consumingTransitionCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/EventOutput.hs:66` | `EventOutputError` | data | yes | `emittedEventName` | `emittedEventName` | `!Name` | `(.emittedEventName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:51` | `BindingObligation` | data | yes | `obligationMappedName` | `mappedName` | `!Name` | `(.mappedName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:52` | `BindingObligation` | data | yes | `obligationPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:53` | `BindingObligation` | data | yes | `obligationModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:54` | `BindingObligation` | data | yes | `obligationSymbol` | `symbol` | `!Text` | `(.symbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:55` | `BindingObligation` | data | yes | `obligationKind` | `kind` | `!BindingObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:56` | `BindingObligation` | data | yes | `obligationSignature` | `signature` | `!Text` | `(.signature)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:57` | `BindingObligation` | data | yes | `obligationUseSites` | `useSites` | `![Text]` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:58` | `BindingObligation` | data | yes | `obligationBindingVersion` | `bindingVersion` | `!(Maybe Text)` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:59` | `BindingObligation` | data | yes | `obligationCanonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:60` | `BindingObligation` | data | yes | `obligationEqualityContract` | `equalityContract` | `!(Maybe Text)` | `(.equalityContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:61` | `BindingObligation` | data | yes | `obligationIdDomainContract` | `idDomainContract` | `!(Maybe Text)` | `(.idDomainContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:62` | `BindingObligation` | data | yes | `obligationCategory` | `category` | `!Text` | `(.category)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:67` | `BindingHole` | data | yes | `holeMappedName` | `mappedName` | `!Name` | `(.mappedName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:68` | `BindingHole` | data | yes | `holeModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:69` | `BindingHole` | data | yes | `holeSymbol` | `symbol` | `!Text` | `(.symbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:70` | `BindingHole` | data | yes | `holeKind` | `kind` | `!BindingObligationKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:71` | `BindingHole` | data | yes | `holePath` | `path` | `!(Maybe Text)` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ExplainBindings.hs:72` | `BindingHole` | data | yes | `holeSignature` | `signature` | `!Text` | `(.signature)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:46` | `ExpressionEnvironment` | data | no | `environmentSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:47` | `ExpressionEnvironment` | data | no | `environmentAggregate` | `aggregate` | `!Aggregate` | `(.aggregate)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:48` | `ExpressionEnvironment` | data | no | `environmentTransition` | `transition` | `!Transition` | `(.transition)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:49` | `ExpressionEnvironment` | data | no | `environmentSymbols` | `symbols` | `!AggregateSymbols` | `(.symbols)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:50` | `ExpressionEnvironment` | data | no | `environmentTypeGraph` | `typeGraph` | `!(Maybe TypeGraph)` | `(.typeGraph)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:89` | `ResolvedScalarProjection` | data | yes | `scalarProjectionOwner` | `owner` | `!MappedKey` | `(.owner)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:90` | `ResolvedScalarProjection` | data | yes | `scalarProjectionPointer` | `pointer` | `!Text` | `(.pointer)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:91` | `ResolvedScalarProjection` | data | yes | `scalarProjectionFields` | `fields` | `![Name]` | `(.fields)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:92` | `ResolvedScalarProjection` | data | yes | `terminalNominal` | `terminalNominal` | `!(Maybe NominalLeaf)` | `(.terminalNominal)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:129` | `TypedScalarExpr` | data | yes | `typedScalarType` | `valueType` | `!ResolvedAggregateType` | `(.valueType)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:130` | `TypedScalarExpr` | data | yes | `typedScalarLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:131` | `TypedScalarExpr` | data | yes | `typedScalarNode` | `node` | `!TypedScalarNode` | `(.node)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:157` | `ExpressionDiagnostic` | data | yes | `expressionDiagnosticLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:158` | `ExpressionDiagnostic` | data | yes | `expressionDiagnosticCode` | `code` | `!ExpressionDiagnosticCode` | `(.code)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Expression.hs:159` | `ExpressionDiagnostic` | data | yes | `expressionDiagnosticMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:18` | `ResolvedFieldIdentity` | data | no | `fieldDslName` | `dslName` | `!Name` | `(.dslName)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:19` | `ResolvedFieldIdentity` | data | no | `fieldSelector` | `selector` | `!Text` | `(.selector)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:20` | `ResolvedFieldIdentity` | data | no | `fieldWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/FieldIdentity.hs:21` | `ResolvedFieldIdentity` | data | no | `fieldLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:89` | `FoldEvidence` | data | no | `canonicalSegments` | `canonicalSegments` | `![Text]` | `(.canonicalSegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:90` | `FoldEvidence` | data | no | `aggregateSegments` | `aggregateSegments` | `![Text]` | `(.aggregateSegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:91` | `FoldEvidence` | data | no | `eventSegments` | `eventSegments` | `!(Map.Map Name (Set Text))` | `(.eventSegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:92` | `FoldEvidence` | data | no | `bodySegments` | `bodySegments` | `!(Map.Map (TransitionFamilyKey, ReplayBodyKey) BodyEvidence)` | `(.bodySegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:96` | `BodyEvidence` | data | no | `outputSegments` | `outputSegments` | `!(Set Text)` | `(.outputSegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:97` | `BodyEvidence` | data | no | `ruleSegments` | `ruleSegments` | `!(Map.Map Name Text)` | `(.ruleSegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:98` | `BodyEvidence` | data | no | `equalitySegments` | `equalitySegments` | `!(Map.Map Name (Set Text))` | `(.equalitySegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:99` | `BodyEvidence` | data | no | `guardEqualitySegments` | `guardEqualitySegments` | `!(Map.Map Text (Set Text))` | `(.guardEqualitySegments)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/FoldEvidence.hs:100` | `BodyEvidence` | data | no | `emittedEvents` | `emittedEvents` | `!(Set Name)` | `(.emittedEvents)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:55` | `FrontendContext` | data | no | `source` | `source` | `!FilePath` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:56` | `FrontendContext` | data | no | `language` | `language` | `!SourceLanguage` | `(.language)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:57` | `FrontendContext` | data | no | `definition` | `definition` | `!LanguageDefinition` | `(.definition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:91` | `FrontendFailure` | data | no | `phase` | `phase` | `!FrontendPhase` | `(.phase)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:92` | `FrontendFailure` | data | no | `code` | `code` | `!FrontendErrorCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:93` | `FrontendFailure` | data | no | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:94` | `FrontendFailure` | data | no | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:95` | `FrontendFailure` | data | no | `expected` | `expected` | `![Text]` | `(.expected)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:96` | `FrontendFailure` | data | no | `supportedVersions` | `supportedVersions` | `![LanguageVersion]` | `(.supportedVersions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:97` | `FrontendFailure` | data | no | `compatibility` | `compatibility` | `!ParseFailure` | `(.compatibility)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:143` | `LoweringFailure` | data | no | `code` | `code` | `!LoweringFailureCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:144` | `LoweringFailure` | data | no | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Frontend/Internal.hs:145` | `LoweringFailure` | data | no | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:42` | `GoldenPayload` | data | yes | `goldenContext` | `context` | `!Text` | `(.context)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:43` | `GoldenPayload` | data | yes | `goldenAggregate` | `aggregate` | `!Text` | `(.aggregate)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:44` | `GoldenPayload` | data | yes | `goldenEvent` | `event` | `!Text` | `(.event)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:45` | `GoldenPayload` | data | yes | `goldenVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:46` | `GoldenPayload` | data | yes | `goldenJson` | `json` | `!Text` | `(.json)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Goldens.hs:47` | `GoldenPayload` | data | yes | `goldenEvidence` | `evidence` | `!GoldenEvidence` | `(.evidence)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:214` | `Loc` | newtype | yes | `unLoc` | `unLoc` | `Int` | explicit `unLoc` positional function | rendered/canonical output | `deriving stock (Show)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:231` | `IdDecl` | data | yes | `idName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:232` | `IdDecl` | data | yes | `idPrefix` | `prefix` | `!Text` | `(.prefix)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:233` | `IdDecl` | data | yes | `admission` | `admission` | `!IdAdmission` | `(.admission)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:234` | `IdDecl` | data | yes | `idBinding` | `binding` | `!(Maybe NominalBindingDecl)` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:235` | `IdDecl` | data | yes | `idLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:242` | `EnumDecl` | data | yes | `enumName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:243` | `EnumDecl` | data | yes | `enumCtors` | `ctors` | `![(Name, Text)]` | `(.ctors)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:244` | `EnumDecl` | data | yes | `enumBinding` | `binding` | `!(Maybe NominalBindingDecl)` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:245` | `EnumDecl` | data | yes | `enumLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:253` | `RuleDecl` | data | yes | `ruleName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:254` | `RuleDecl` | data | yes | `ruleDomain` | `domain` | `!Name` | `(.domain)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:255` | `RuleDecl` | data | yes | `ruleCodomain` | `codomain` | `!Name` | `(.codomain)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:256` | `RuleDecl` | data | yes | `ruleCases` | `cases` | `![(Name, Expr)]` | `(.cases)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:257` | `RuleDecl` | data | yes | `ruleLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:300` | `WireField` | data | yes | `wfHaskell` | `haskell` | `!Name` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:301` | `WireField` | data | yes | `wfKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:302` | `WireField` | data | yes | `wfType` | `valueType` | `!TypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:303` | `WireField` | data | yes | `wfPresence` | `presence` | `!Presence` | `(.presence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:304` | `WireField` | data | yes | `wfOnMissing` | `onMissing` | `!(Maybe OnMissing)` | `(.onMissing)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:305` | `WireField` | data | yes | `wfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:313` | `UnionEncoding` | data | yes | `ueTagField` | `tagField` | `!Text` | `(.tagField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:314` | `UnionEncoding` | data | yes | `ueContentsField` | `contentsField` | `!Text` | `(.contentsField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:315` | `UnionEncoding` | data | yes | `ueUnknownFields` | `unknownFields` | `!UnknownFields` | `(.unknownFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:320` | `WireEnum` | data | yes | `weCtor` | `ctor` | `!Name` | `(.ctor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:321` | `WireEnum` | data | yes | `weTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:322` | `WireEnum` | data | yes | `weLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:327` | `WireArm` | data | yes | `waCtor` | `ctor` | `!Name` | `(.ctor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:328` | `WireArm` | data | yes | `waTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:329` | `WireArm` | data | yes | `waPayload` | `payload` | `!(Maybe TypeExpr)` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:330` | `WireArm` | data | yes | `waLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:349` | `HaskellSource` | data | yes | `hsPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:350` | `HaskellSource` | data | yes | `hsModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:351` | `HaskellSource` | data | yes | `hsType` | `valueType` | `!Name` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:360` | `NominalBindingDecl` | data | yes | `nominalHaskell` | `haskell` | `!(Maybe HaskellSource)` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:361` | `NominalBindingDecl` | data | yes | `nominalBinding` | `binding` | `!(Maybe Text)` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:362` | `NominalBindingDecl` | data | yes | `nominalBindingVersion` | `bindingVersion` | `!(Maybe Text)` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:363` | `NominalBindingDecl` | data | yes | `nominalCanonicalType` | `canonicalType` | `!(Maybe Text)` | `(.canonicalType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:364` | `NominalBindingDecl` | data | yes | `nominalFixtures` | `fixtures` | `!(Maybe Text)` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:365` | `NominalBindingDecl` | data | yes | `nominalInitial` | `initial` | `!(Maybe Text)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:366` | `NominalBindingDecl` | data | yes | `nominalLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:375` | `NominalScalarDecl` | data | yes | `nominalScalarName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:376` | `NominalScalarDecl` | data | yes | `nominalScalarRepresentation` | `representation` | `!Name` | `(.representation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:377` | `NominalScalarDecl` | data | yes | `nominalScalarBinding` | `binding` | `!NominalBindingDecl` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:378` | `NominalScalarDecl` | data | yes | `nominalScalarLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:385` | `MappedWriteLiftDecl` | data | yes | `source` | `source` | `!TypeExpr` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:386` | `MappedWriteLiftDecl` | data | yes | `function` | `function` | `!(Maybe Text)` | `(.function)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:387` | `MappedWriteLiftDecl` | data | yes | `version` | `version` | `!(Maybe Text)` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:388` | `MappedWriteLiftDecl` | data | yes | `fixtures` | `fixtures` | `!(Maybe Text)` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:389` | `MappedWriteLiftDecl` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:395` | `MappedDecl` | data | yes | `msName` | `msName` | `!Name` | `(.msName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:396` | `MappedDecl` | data | yes | `msHaskell` | `msHaskell` | `!(Maybe HaskellSource)` | `(.msHaskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:397` | `MappedDecl` | data | yes | `msBinding` | `msBinding` | `!(Maybe Text)` | `(.msBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:398` | `MappedDecl` | data | yes | `msBindingVersion` | `msBindingVersion` | `!(Maybe Text)` | `(.msBindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:399` | `MappedDecl` | data | yes | `msCanonical` | `msCanonical` | `!(Maybe Text)` | `(.msCanonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:400` | `MappedDecl` | data | yes | `msFixtures` | `msFixtures` | `!(Maybe Text)` | `(.msFixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:401` | `MappedDecl` | data | yes | `msInitial` | `msInitial` | `!(Maybe Text)` | `(.msInitial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:402` | `MappedDecl` | data | yes | `msWriteLift` | `msWriteLift` | `!(Maybe MappedWriteLiftDecl)` | `(.msWriteLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:403` | `MappedDecl` | data | yes | `msShape` | `msShape` | `!MappedShape` | `(.msShape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:404` | `MappedDecl` | data | yes | `msLoc` | `msLoc` | `!Loc` | `(.msLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:407` | `MappedDecl` | data | yes | `mrName` | `mrName` | `!Name` | `(.mrName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:408` | `MappedDecl` | data | yes | `mrHaskell` | `mrHaskell` | `!(Maybe HaskellSource)` | `(.mrHaskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:409` | `MappedDecl` | data | yes | `mrBinding` | `mrBinding` | `!(Maybe Text)` | `(.mrBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:410` | `MappedDecl` | data | yes | `mrBindingVersion` | `mrBindingVersion` | `!(Maybe Text)` | `(.mrBindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:411` | `MappedDecl` | data | yes | `mrCanonical` | `mrCanonical` | `!(Maybe Text)` | `(.mrCanonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:412` | `MappedDecl` | data | yes | `mrFixtures` | `mrFixtures` | `!(Maybe Text)` | `(.mrFixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:413` | `MappedDecl` | data | yes | `mrInitial` | `mrInitial` | `!(Maybe Text)` | `(.mrInitial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:414` | `MappedDecl` | data | yes | `mrPolicy` | `mrPolicy` | `!RefinedWirePolicy` | `(.mrPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:415` | `MappedDecl` | data | yes | `mrLoc` | `mrLoc` | `!Loc` | `(.mrLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:418` | `MappedDecl` | data | yes | `moName` | `moName` | `!Name` | `(.moName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:419` | `MappedDecl` | data | yes | `moHaskell` | `moHaskell` | `!(Maybe HaskellSource)` | `(.moHaskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:420` | `MappedDecl` | data | yes | `moCodecId` | `moCodecId` | `!(Maybe Text)` | `(.moCodecId)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:421` | `MappedDecl` | data | yes | `moCodecVersion` | `moCodecVersion` | `!(Maybe Text)` | `(.moCodecVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:422` | `MappedDecl` | data | yes | `moFixtures` | `moFixtures` | `!(Maybe Text)` | `(.moFixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:423` | `MappedDecl` | data | yes | `moInitial` | `moInitial` | `!(Maybe Text)` | `(.moInitial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:424` | `MappedDecl` | data | yes | `moWriteLift` | `moWriteLift` | `!(Maybe MappedWriteLiftDecl)` | `(.moWriteLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:425` | `MappedDecl` | data | yes | `moLoc` | `moLoc` | `!Loc` | `(.moLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:433` | `Mapping` | data | yes | `mapPairs` | `pairs` | `![(Name, Name)]` | `(.pairs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:434` | `Mapping` | data | yes | `mapPartial` | `partial` | `!Bool` | `(.partial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:548` | `RegDecl` | data | yes | `regName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:549` | `RegDecl` | data | yes | `regType` | `valueType` | `!TypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:550` | `RegDecl` | data | yes | `regInitial` | `initial` | `!RegInitial` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:551` | `RegDecl` | data | yes | `regLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:559` | `StateDecl` | data | yes | `stName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:560` | `StateDecl` | data | yes | `stTerminal` | `terminal` | `!Bool` | `(.terminal)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:561` | `StateDecl` | data | yes | `stLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:572` | `AggregateField` | data | yes | `aggregateFieldName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:573` | `AggregateField` | data | yes | `aggregateFieldSelector` | `selector` | `!(Maybe Name)` | `(.selector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:574` | `AggregateField` | data | yes | `aggregateFieldWireKey` | `wireKey` | `!(Maybe Text)` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:575` | `AggregateField` | data | yes | `aggregateFieldType` | `valueType` | `!(Maybe TypeExpr)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:576` | `AggregateField` | data | yes | `aggregateFieldLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:583` | `Field` | data | yes | `fieldName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:584` | `Field` | data | yes | `fieldType` | `valueType` | `!(Maybe Name)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:590` | `Command` | data | yes | `cmdName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:591` | `Command` | data | yes | `cmdFields` | `fields` | `![AggregateField]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:592` | `Command` | data | yes | `cmdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:602` | `Event` | data | yes | `evName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:603` | `Event` | data | yes | `evBody` | `body` | `!EventBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:605` | `Event` | data | yes | `evVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:608` | `Event` | data | yes | `evUpcastFrom` | `upcastFrom` | `!(Maybe (Int, Hole))` | `(.upcastFrom)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:613` | `Event` | data | yes | `evRetiring` | `retiring` | `!Bool` | `(.retiring)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:617` | `Event` | data | yes | `evDeprecated` | `deprecated` | `!Bool` | `(.deprecated)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:618` | `Event` | data | yes | `evLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:636` | `DomainOutcomeTypes` | data | yes | `rejectionType` | `rejectionType` | `!Name` | `(.rejectionType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:637` | `DomainOutcomeTypes` | data | yes | `noOpType` | `noOpType` | `!Name` | `(.noOpType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:638` | `DomainOutcomeTypes` | data | yes | `outcomeTypesLoc` | `outcomeTypesLoc` | `!Loc` | `(.outcomeTypesLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:658` | `Transition` | data | yes | `tSource` | `source` | `!Name` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:659` | `Transition` | data | yes | `tCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:660` | `Transition` | data | yes | `tImplementation` | `implementation` | `!TransitionImplementation` | `(.implementation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:661` | `Transition` | data | yes | `tGuard` | `guard` | `!(Maybe Expr)` | `(.guard)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:662` | `Transition` | data | yes | `tWrites` | `writes` | `![(Name, Expr)]` | `(.writes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:663` | `Transition` | data | yes | `tEmits` | `emits` | `![Name]` | `(.emits)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:664` | `Transition` | data | yes | `tOutcome` | `outcome` | `!(Maybe TransitionOutcome)` | `(.outcome)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:667` | `Transition` | data | yes | `tOutcomeDuplicateLocs` | `outcomeDuplicateLocs` | `![Loc]` | `(.outcomeDuplicateLocs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:668` | `Transition` | data | yes | `tGoto` | `goto` | `!Name` | `(.goto)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:669` | `Transition` | data | yes | `tMode` | `mode` | `!TransitionMode` | `(.mode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:670` | `Transition` | data | yes | `tLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:698` | `WireSpec` | data | yes | `wireKind` | `kind` | `!Text` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:699` | `WireSpec` | data | yes | `wireFields` | `fields` | `!Text` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:700` | `WireSpec` | data | yes | `wireSchemaVersion` | `schemaVersion` | `!Int` | `(.schemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:707` | `ProjectionSpec` | data | yes | `projTable` | `table` | `!Name` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:708` | `ProjectionSpec` | data | yes | `projConsistency` | `consistency` | `!(Maybe Consistency)` | `(.consistency)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:709` | `ProjectionSpec` | data | yes | `projKey` | `key` | `!Name` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:710` | `ProjectionSpec` | data | yes | `projStatusMap` | `statusMap` | `!(Maybe Mapping)` | `(.statusMap)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:711` | `ProjectionSpec` | data | yes | `projLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:724` | `SnapshotSpec` | data | yes | `snapPolicy` | `policy` | `!SnapPolicy` | `(.policy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:725` | `SnapshotSpec` | data | yes | `snapCodecVersion` | `codecVersion` | `!Int` | `(.codecVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:726` | `SnapshotSpec` | data | yes | `snapShapeHash` | `shapeHash` | `!Text` | `(.shapeHash)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:727` | `SnapshotSpec` | data | yes | `snapLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:734` | `Aggregate` | data | yes | `aggName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:735` | `Aggregate` | data | yes | `aggRegs` | `regs` | `![RegDecl]` | `(.regs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:736` | `Aggregate` | data | yes | `aggStates` | `states` | `![StateDecl]` | `(.states)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:737` | `Aggregate` | data | yes | `aggCommands` | `commands` | `![Command]` | `(.commands)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:738` | `Aggregate` | data | yes | `aggEvents` | `events` | `![Event]` | `(.events)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:739` | `Aggregate` | data | yes | `aggTransitions` | `transitions` | `![Transition]` | `(.transitions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:740` | `Aggregate` | data | yes | `aggDomainOutcomeTypes` | `domainOutcomeTypes` | `!(Maybe DomainOutcomeTypes)` | `(.domainOutcomeTypes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:743` | `Aggregate` | data | yes | `aggDomainOutcomeDuplicateLocs` | `domainOutcomeDuplicateLocs` | `![Loc]` | `(.domainOutcomeDuplicateLocs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:744` | `Aggregate` | data | yes | `aggWire` | `wire` | `!(Maybe WireSpec)` | `(.wire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:745` | `Aggregate` | data | yes | `aggProjection` | `projection` | `!(Maybe ProjectionSpec)` | `(.projection)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:746` | `Aggregate` | data | yes | `aggSnapshot` | `snapshot` | `!(Maybe SnapshotSpec)` | `(.snapshot)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:747` | `Aggregate` | data | yes | `aggLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:757` | `FieldBinding` | data | yes | `fbName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:758` | `FieldBinding` | data | yes | `fbValue` | `value` | `!(Maybe Text)` | `(.value)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:765` | `InputDecl` | data | yes | `inName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:766` | `InputDecl` | data | yes | `inFields` | `fields` | `![Field]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:767` | `InputDecl` | data | yes | `inType` | `valueType` | `!(Maybe TypeExpr)` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:771` | `InputDecl` | data | yes | `source` | `source` | `!(Maybe InputSource)` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:772` | `InputDecl` | data | yes | `inLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:779` | `InputSource` | data | yes | `intake` | `intake` | `!Name` | `(.intake)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:780` | `InputSource` | data | yes | `events` | `events` | `!(NonEmpty Name)` | `(.events)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:781` | `InputSource` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:788` | `CorrelateDecl` | data | yes | `corrField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:789` | `CorrelateDecl` | data | yes | `corrVia` | `via` | `!Name` | `(.via)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:797` | `SagaRef` | data | yes | `sagaAgg` | `agg` | `!Name` | `(.agg)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:798` | `SagaRef` | data | yes | `sagaCategory` | `category` | `!Text` | `(.category)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:809` | `DispatchDisposition` | data | yes | `onAppended` | `onAppended` | `!Disp` | `(.onAppended)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:810` | `DispatchDisposition` | data | yes | `onDuplicate` | `onDuplicate` | `!Disp` | `(.onDuplicate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:811` | `DispatchDisposition` | data | yes | `onFailed` | `onFailed` | `!Disp` | `(.onFailed)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:817` | `AdvanceNode` | data | yes | `advCommand` | `advCommand` | `!Name` | `(.advCommand)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:818` | `AdvanceNode` | data | yes | `advFields` | `advFields` | `![FieldBinding]` | `(.advFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:824` | `DispatchNode` | data | yes | `dispTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:825` | `DispatchNode` | data | yes | `dispKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:826` | `DispatchNode` | data | yes | `dispCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:827` | `DispatchNode` | data | yes | `dispFields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:828` | `DispatchNode` | data | yes | `disposition` | `osition` | `!DispatchDisposition` | `(.osition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:829` | `DispatchNode` | data | yes | `dispLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:836` | `HandleNode` | data | yes | `hOn` | `on` | `!Name` | `(.on)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:837` | `HandleNode` | data | yes | `hAdvance` | `advance` | `!AdvanceNode` | `(.advance)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:838` | `HandleNode` | data | yes | `hDispatch` | `dispatch` | `![DispatchNode]` | `(.dispatch)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:839` | `HandleNode` | data | yes | `hSchedule` | `schedule` | `!Name` | `(.schedule)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:845` | `IdExpr` | data | yes | `ideStrategy` | `strategy` | `!IdStrategy` | `(.strategy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:846` | `IdExpr` | data | yes | `idePrefix` | `prefix` | `!Text` | `(.prefix)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:847` | `IdExpr` | data | yes | `ideField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:858` | `FireAtExpr` | data | yes | `faField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:859` | `FireAtExpr` | data | yes | `faWindow` | `window` | `!Text` | `(.window)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:869` | `FireDisposition` | data | yes | `onOk` | `onOk` | `!FireOutcome` | `(.onOk)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:870` | `FireDisposition` | data | yes | `onReject` | `onReject` | `!FireOutcome` | `(.onReject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:871` | `FireDisposition` | data | yes | `onAmbiguous` | `onAmbiguous` | `!FireOutcome` | `(.onAmbiguous)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:872` | `FireDisposition` | data | yes | `onError` | `onError` | `!FireOutcome` | `(.onError)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:873` | `FireDisposition` | data | yes | `notMine` | `notMine` | `!FireOutcome` | `(.notMine)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:879` | `FireNode` | data | yes | `fireTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:880` | `FireNode` | data | yes | `fireKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:881` | `FireNode` | data | yes | `fireCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:882` | `FireNode` | data | yes | `fireFields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:883` | `FireNode` | data | yes | `fireFiredEventId` | `firedEventId` | `!IdExpr` | `(.firedEventId)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:884` | `FireNode` | data | yes | `fireDisposition` | `disposition` | `!FireDisposition` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:890` | `TimerNode` | data | yes | `tmName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:891` | `TimerNode` | data | yes | `tmId` | `id` | `!IdExpr` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:892` | `TimerNode` | data | yes | `tmFireAt` | `fireAt` | `!FireAtExpr` | `(.fireAt)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:893` | `TimerNode` | data | yes | `tmPayload` | `payload` | `![FieldBinding]` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:894` | `TimerNode` | data | yes | `tmFire` | `fire` | `!FireNode` | `(.fire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:895` | `TimerNode` | data | yes | `tmDecodeUnknown` | `decodeUnknown` | `!Name` | `(.decodeUnknown)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:896` | `TimerNode` | data | yes | `tmMaxAttempts` | `maxAttempts` | `!Int` | `(.maxAttempts)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:897` | `TimerNode` | data | yes | `tmDeadLetter` | `deadLetter` | `!Text` | `(.deadLetter)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:898` | `TimerNode` | data | yes | `tmLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:911` | `ReactionBody` | data | yes | `version` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:912` | `ReactionBody` | data | yes | `versionLoc` | `versionLoc` | `!Loc` | `(.versionLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:913` | `ReactionBody` | data | yes | `inputs` | `inputs` | `!(NonEmpty InputDecl)` | `(.inputs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:914` | `ReactionBody` | data | yes | `reactions` | `reactions` | `!(NonEmpty ReactionNode)` | `(.reactions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:915` | `ReactionBody` | data | yes | `timerPolicy` | `timerPolicy` | `!(Maybe TimerPolicy)` | `(.timerPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:916` | `ReactionBody` | data | yes | `timers` | `timers` | `![ReactionTimerNode]` | `(.timers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:921` | `ReactionNode` | data | yes | `on` | `on` | `!Name` | `(.on)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:922` | `ReactionNode` | data | yes | `arms` | `arms` | `!(NonEmpty ReactionArm)` | `(.arms)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:923` | `ReactionNode` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:928` | `ReactionArm` | data | yes | `guard` | `guard` | `!ArmGuard` | `(.guard)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:929` | `ReactionArm` | data | yes | `body` | `body` | `!ArmBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:930` | `ReactionArm` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:943` | `ArmBody` | data | yes | `advance` | `advance` | `!(Maybe AdvanceReaction)` | `(.advance)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:944` | `ArmBody` | data | yes | `followUps` | `followUps` | `![FollowUp]` | `(.followUps)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:949` | `AdvanceReaction` | data | yes | `command` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:950` | `AdvanceReaction` | data | yes | `fields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:951` | `AdvanceReaction` | data | yes | `accepted` | `accepted` | `!(Maybe [FollowUp])` | `(.accepted)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:952` | `AdvanceReaction` | data | yes | `silentNoAction` | `silentNoAction` | `!Bool` | `(.silentNoAction)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:953` | `AdvanceReaction` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:964` | `ScheduleNode` | data | yes | `timer` | `timer` | `!Name` | `(.timer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:965` | `ScheduleNode` | data | yes | `mode` | `mode` | `!ScheduleMode` | `(.mode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:966` | `ScheduleNode` | data | yes | `fireAt` | `fireAt` | `!FireAtExpr` | `(.fireAt)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:967` | `ScheduleNode` | data | yes | `bindings` | `bindings` | `![FieldBinding]` | `(.bindings)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:968` | `ScheduleNode` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:976` | `TimerPolicy` | data | yes | `maxAttempts` | `maxAttempts` | `!Int` | `(.maxAttempts)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:977` | `TimerPolicy` | data | yes | `deadLetter` | `deadLetter` | `!Text` | `(.deadLetter)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:978` | `TimerPolicy` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:983` | `ReactionTimerNode` | data | yes | `name` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:984` | `ReactionTimerNode` | data | yes | `id` | `id` | `!IdExpr` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:985` | `ReactionTimerNode` | data | yes | `payload` | `payload` | `![PayloadField]` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:986` | `ReactionTimerNode` | data | yes | `fire` | `fire` | `!FireNode` | `(.fire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:987` | `ReactionTimerNode` | data | yes | `decodeUnknown` | `decodeUnknown` | `!Name` | `(.decodeUnknown)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:988` | `ReactionTimerNode` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1005` | `ProcessNode` | data | yes | `procId` | `id` | `!Name` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1007` | `ProcessNode` | data | yes | `procName` | `name` | `!Text` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1008` | `ProcessNode` | data | yes | `procCorrelate` | `correlate` | `!CorrelateDecl` | `(.correlate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1009` | `ProcessNode` | data | yes | `procSaga` | `saga` | `!SagaRef` | `(.saga)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1010` | `ProcessNode` | data | yes | `procTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1011` | `ProcessNode` | data | yes | `procProjections` | `projections` | `![Name]` | `(.projections)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1012` | `ProcessNode` | data | yes | `body` | `body` | `!ProcessBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1013` | `ProcessNode` | data | yes | `procRejected` | `rejected` | `!PolicyChoice` | `(.rejected)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1014` | `ProcessNode` | data | yes | `procPoison` | `poison` | `!PolicyChoice` | `(.poison)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1015` | `ProcessNode` | data | yes | `procLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1032` | `RouterSelectionDecl` | data | yes | `rsIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1033` | `RouterSelectionDecl` | data | yes | `rsIdentityLoc` | `identityLoc` | `!Loc` | `(.identityLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1034` | `RouterSelectionDecl` | data | yes | `rsVersion` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1035` | `RouterSelectionDecl` | data | yes | `rsVersionLoc` | `versionLoc` | `!Loc` | `(.versionLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1036` | `RouterSelectionDecl` | data | yes | `rsQuery` | `query` | `!Name` | `(.query)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1037` | `RouterSelectionDecl` | data | yes | `rsQueryLoc` | `queryLoc` | `!Loc` | `(.queryLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1038` | `RouterSelectionDecl` | data | yes | `rsQueryInput` | `queryInput` | `!Name` | `(.queryInput)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1039` | `RouterSelectionDecl` | data | yes | `rsQueryInputLoc` | `queryInputLoc` | `!Loc` | `(.queryInputLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1040` | `RouterSelectionDecl` | data | yes | `rsPredicate` | `predicate` | `!Expr` | `(.predicate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1041` | `RouterSelectionDecl` | data | yes | `rsRecipient` | `recipient` | `!Expr` | `(.recipient)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1042` | `RouterSelectionDecl` | data | yes | `rsLimit` | `limit` | `!(Maybe (Natural, Loc))` | `(.limit)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1043` | `RouterSelectionDecl` | data | yes | `rsOrder` | `order` | `!Name` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1044` | `RouterSelectionDecl` | data | yes | `rsOrderLoc` | `orderLoc` | `!Loc` | `(.orderLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1045` | `RouterSelectionDecl` | data | yes | `rsDedupe` | `dedupe` | `!Name` | `(.dedupe)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1046` | `RouterSelectionDecl` | data | yes | `rsDedupeLoc` | `dedupeLoc` | `!Loc` | `(.dedupeLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1047` | `RouterSelectionDecl` | data | yes | `rsEmptyPolicy` | `emptyPolicy` | `!SelectionDispositionSyntax` | `(.emptyPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1048` | `RouterSelectionDecl` | data | yes | `rsEmptyPolicyLoc` | `emptyPolicyLoc` | `!Loc` | `(.emptyPolicyLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1049` | `RouterSelectionDecl` | data | yes | `rsFailurePolicy` | `failurePolicy` | `!SelectionDispositionSyntax` | `(.failurePolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1050` | `RouterSelectionDecl` | data | yes | `rsFailurePolicyLoc` | `failurePolicyLoc` | `!Loc` | `(.failurePolicyLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1051` | `RouterSelectionDecl` | data | yes | `rsRedelivery` | `redelivery` | `!Name` | `(.redelivery)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1052` | `RouterSelectionDecl` | data | yes | `rsRedeliveryLoc` | `redeliveryLoc` | `!Loc` | `(.redeliveryLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1053` | `RouterSelectionDecl` | data | yes | `rsPartial` | `partial` | `!Name` | `(.partial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1054` | `RouterSelectionDecl` | data | yes | `rsPartialLoc` | `partialLoc` | `!Loc` | `(.partialLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1055` | `RouterSelectionDecl` | data | yes | `rsLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1066` | `ResolveDecl` | data | yes | `rvSource` | `source` | `!ResolveSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1067` | `ResolveDecl` | data | yes | `rvRow` | `row` | `![Name]` | `(.row)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1068` | `ResolveDecl` | data | yes | `rvLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1073` | `RouterDispatchNode` | data | yes | `rdCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1074` | `RouterDispatchNode` | data | yes | `rdFields` | `fields` | `![FieldBinding]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1075` | `RouterDispatchNode` | data | yes | `rdDisposition` | `disposition` | `!DispatchDisposition` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1076` | `RouterDispatchNode` | data | yes | `rdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1084` | `RouterNode` | data | yes | `rtId` | `id` | `!Name` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1085` | `RouterNode` | data | yes | `rtName` | `name` | `!Text` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1086` | `RouterNode` | data | yes | `rtInput` | `input` | `!InputDecl` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1087` | `RouterNode` | data | yes | `rtKey` | `key` | `!CorrelateDecl` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1088` | `RouterNode` | data | yes | `rtResolve` | `resolve` | `!ResolveDecl` | `(.resolve)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1089` | `RouterNode` | data | yes | `rtTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1090` | `RouterNode` | data | yes | `rtProjections` | `projections` | `![Name]` | `(.projections)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1091` | `RouterNode` | data | yes | `rtDispatch` | `dispatch` | `!RouterDispatchNode` | `(.dispatch)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1092` | `RouterNode` | data | yes | `rtRejected` | `rejected` | `!PolicyChoice` | `(.rejected)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1093` | `RouterNode` | data | yes | `rtPoison` | `poison` | `!PolicyChoice` | `(.poison)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1094` | `RouterNode` | data | yes | `rtLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1140` | `ContractField` | data | yes | `cfName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1141` | `ContractField` | data | yes | `cfSelector` | `selector` | `!(Maybe Name)` | `(.selector)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1142` | `ContractField` | data | yes | `cfWireKey` | `wireKey` | `!(Maybe Text)` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1143` | `ContractField` | data | yes | `cfType` | `valueType` | `!ContractType` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1144` | `ContractField` | data | yes | `cfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1150` | `ContractEvent` | data | yes | `ceName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1151` | `ContractEvent` | data | yes | `ceTopic` | `topic` | `!Name` | `(.topic)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1152` | `ContractEvent` | data | yes | `ceFields` | `fields` | `![ContractField]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1160` | `ContractNode` | data | yes | `ctrName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1161` | `ContractNode` | data | yes | `ctrSchemaVersion` | `schemaVersion` | `!Int` | `(.schemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1162` | `ContractNode` | data | yes | `ctrDiscriminator` | `discriminator` | `!ContractDiscriminator` | `(.discriminator)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1164` | `ContractNode` | data | yes | `ctrTopics` | `topics` | `![(Name, Text)]` | `(.topics)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1165` | `ContractNode` | data | yes | `ctrEvents` | `events` | `![ContractEvent]` | `(.events)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1166` | `ContractNode` | data | yes | `ctrLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1182` | `BindRow` | data | yes | `brField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1183` | `BindRow` | data | yes | `brSource` | `source` | `!WireSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1184` | `BindRow` | data | yes | `brRequired` | `required` | `!Bool` | `(.required)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1185` | `BindRow` | data | yes | `brCrossCheck` | `crossCheck` | `!Bool` | `(.crossCheck)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1201` | `DispositionRow` | data | yes | `drOutcome` | `outcome` | `!Name` | `(.outcome)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1202` | `DispositionRow` | data | yes | `drAction` | `action` | `!InboxAction` | `(.action)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1203` | `DispositionRow` | data | yes | `drLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1210` | `DecodeSpec` | data | yes | `decEnvelope` | `envelope` | `!Text` | `(.envelope)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1211` | `DecodeSpec` | data | yes | `decBodyStrict` | `bodyStrict` | `!Bool` | `(.bodyStrict)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1212` | `DecodeSpec` | data | yes | `decBodySchemaVersion` | `bodySchemaVersion` | `!Int` | `(.bodySchemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1228` | `IntakeNode` | data | yes | `inkName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1229` | `IntakeNode` | data | yes | `inkContract` | `contract` | `!Name` | `(.contract)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1230` | `IntakeNode` | data | yes | `inkTopic` | `topic` | `!Name` | `(.topic)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1231` | `IntakeNode` | data | yes | `inkAccept` | `accept` | `![Name]` | `(.accept)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1232` | `IntakeNode` | data | yes | `inkBinds` | `binds` | `![BindRow]` | `(.binds)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1233` | `IntakeNode` | data | yes | `inkDedupeKey` | `dedupeKey` | `!Name` | `(.dedupeKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1234` | `IntakeNode` | data | yes | `inkDedupePolicy` | `dedupePolicy` | `!Name` | `(.dedupePolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1235` | `IntakeNode` | data | yes | `idempotence` | `idempotence` | `!IdempotenceMode` | `(.idempotence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1236` | `IntakeNode` | data | yes | `inkPersist` | `persist` | `!InkPersist` | `(.persist)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1237` | `IntakeNode` | data | yes | `inkDecode` | `decode` | `!DecodeSpec` | `(.decode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1238` | `IntakeNode` | data | yes | `inkDisposition` | `disposition` | `![DispositionRow]` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1239` | `IntakeNode` | data | yes | `inkLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1246` | `DeriveSpec` | newtype | yes | `dsPrefix` | `dsPrefix` | `Maybe Text` | `(.dsPrefix)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1251` | `EmitMapRow` | data | yes | `emrValue` | `value` | `!Text` | `(.value)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1252` | `EmitMapRow` | data | yes | `emrEvent` | `event` | `!Name` | `(.event)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1253` | `EmitMapRow` | data | yes | `emrLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1260` | `EmitNode` | data | yes | `emName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1261` | `EmitNode` | data | yes | `emContract` | `contract` | `!Name` | `(.contract)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1262` | `EmitNode` | data | yes | `emTopic` | `topic` | `!Name` | `(.topic)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1263` | `EmitNode` | data | yes | `emSource` | `source` | `!Text` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1264` | `EmitNode` | data | yes | `emKey` | `key` | `!Name` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1265` | `EmitNode` | data | yes | `emDiscriminant` | `discriminant` | `!Name` | `(.discriminant)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1266` | `EmitNode` | data | yes | `emMap` | `map` | `![EmitMapRow]` | `(.map)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1268` | `EmitNode` | data | yes | `emSkip` | `skip` | `!Bool` | `(.skip)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1269` | `EmitNode` | data | yes | `emMessageId` | `messageId` | `!DeriveSpec` | `(.messageId)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1270` | `EmitNode` | data | yes | `emIdempotencyKey` | `idempotencyKey` | `!DeriveSpec` | `(.idempotencyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1271` | `EmitNode` | data | yes | `emLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1277` | `BackoffSpec` | data | yes | `boKind` | `kind` | `!Name` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1278` | `BackoffSpec` | data | yes | `boWindow` | `window` | `!Text` | `(.window)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1279` | `BackoffSpec` | data | yes | `boMax` | `max` | `!(Maybe Text)` | `(.max)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1280` | `BackoffSpec` | data | yes | `boMultiplier` | `multiplier` | `!(Maybe Text)` | `(.multiplier)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1286` | `PublisherNode` | data | yes | `pubName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1287` | `PublisherNode` | data | yes | `pubEmit` | `emit` | `!Name` | `(.emit)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1288` | `PublisherNode` | data | yes | `pubOrdering` | `ordering` | `!Name` | `(.ordering)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1289` | `PublisherNode` | data | yes | `pubMaxAttempts` | `maxAttempts` | `!Int` | `(.maxAttempts)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1290` | `PublisherNode` | data | yes | `pubBackoff` | `backoff` | `!BackoffSpec` | `(.backoff)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1292` | `PublisherNode` | data | yes | `pubOutboxField` | `outboxField` | `!Name` | `(.outboxField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1293` | `PublisherNode` | data | yes | `pubLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1323` | `WqField` | data | yes | `wqfName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1324` | `WqField` | data | yes | `wqfWire` | `wire` | `!Text` | `(.wire)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1325` | `WqField` | data | yes | `wqfType` | `valueType` | `!QueuePayloadType` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1326` | `WqField` | data | yes | `wqfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1333` | `WqDispRow` | data | yes | `wqdOutcome` | `outcome` | `!Name` | `(.outcome)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1334` | `WqDispRow` | data | yes | `wqdAction` | `action` | `!InboxAction` | `(.action)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1335` | `WqDispRow` | data | yes | `wqdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1345` | `WqGroupKey` | data | yes | `gkField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1346` | `WqGroupKey` | data | yes | `gkVia` | `via` | `!Name` | `(.via)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1347` | `WqGroupKey` | data | yes | `gkFixture` | `fixture` | `!(Maybe Text)` | `(.fixture)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1362` | `WorkqueueNode` | data | yes | `wqName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1363` | `WorkqueueNode` | data | yes | `wqLogical` | `logical` | `!Text` | `(.logical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1364` | `WorkqueueNode` | data | yes | `wqPhysical` | `physical` | `!Text` | `(.physical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1365` | `WorkqueueNode` | data | yes | `wqDlq` | `dlq` | `!Text` | `(.dlq)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1366` | `WorkqueueNode` | data | yes | `wqTable` | `table` | `!Text` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1367` | `WorkqueueNode` | data | yes | `wqOrdering` | `ordering` | `!WqOrdering` | `(.ordering)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1368` | `WorkqueueNode` | data | yes | `wqGroupKey` | `groupKey` | `!(Maybe WqGroupKey)` | `(.groupKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1369` | `WorkqueueNode` | data | yes | `wqProvision` | `provision` | `!WqProvision` | `(.provision)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1370` | `WorkqueueNode` | data | yes | `wqPayloadName` | `payloadName` | `!Name` | `(.payloadName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1371` | `WorkqueueNode` | data | yes | `wqPayload` | `payload` | `![WqField]` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1372` | `WorkqueueNode` | data | yes | `wqMaxRetries` | `maxRetries` | `!Int` | `(.maxRetries)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1373` | `WorkqueueNode` | data | yes | `wqDelay` | `delay` | `!Text` | `(.delay)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1374` | `WorkqueueNode` | data | yes | `wqDlqOn` | `dlqOn` | `!Bool` | `(.dlqOn)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1375` | `WorkqueueNode` | data | yes | `wqDisposition` | `disposition` | `![WqDispRow]` | `(.disposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1376` | `WorkqueueNode` | data | yes | `wqLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1383` | `PgmqDispatchNode` | data | yes | `pdName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1384` | `PgmqDispatchNode` | data | yes | `pdSourceReadModel` | `sourceReadModel` | `!Name` | `(.sourceReadModel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1385` | `PgmqDispatchNode` | data | yes | `pdSourceKey` | `sourceKey` | `!Name` | `(.sourceKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1386` | `PgmqDispatchNode` | data | yes | `pdFanoutBody` | `fanoutBody` | `!Name` | `(.fanoutBody)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1387` | `PgmqDispatchNode` | data | yes | `pdDedupKey` | `dedupKey` | `!Name` | `(.dedupKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1388` | `PgmqDispatchNode` | data | yes | `pdDedupReadModel` | `dedupReadModel` | `!Name` | `(.dedupReadModel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1389` | `PgmqDispatchNode` | data | yes | `pdDedupReadModelField` | `dedupReadModelField` | `!Text` | `(.dedupReadModelField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1390` | `PgmqDispatchNode` | data | yes | `pdDedupQueue` | `dedupQueue` | `!Name` | `(.dedupQueue)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1391` | `PgmqDispatchNode` | data | yes | `pdDedupQueueField` | `dedupQueueField` | `!Text` | `(.dedupQueueField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1392` | `PgmqDispatchNode` | data | yes | `pdEnqueueTo` | `enqueueTo` | `!Name` | `(.enqueueTo)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1393` | `PgmqDispatchNode` | data | yes | `pdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1401` | `RmColumn` | data | yes | `rmcName` | `rmcName` | `!Text` | `(.rmcName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1402` | `RmColumn` | data | yes | `rmcType` | `rmcType` | `!Text` | `(.rmcType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1403` | `RmColumn` | data | yes | `rmcRequired` | `rmcRequired` | `!Bool` | `(.rmcRequired)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1432` | `ReadModelSupply` | data | yes | `legacyConsistency` | `legacyConsistency` | `!Consistency` | `(.legacyConsistency)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1433` | `ReadModelSupply` | data | yes | `legacyScope` | `legacyScope` | `!(Maybe RmScope)` | `(.legacyScope)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1434` | `ReadModelSupply` | data | yes | `legacyFeed` | `legacyFeed` | `!RmFeed` | `(.legacyFeed)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1435` | `ReadModelSupply` | data | yes | `legacySubscription` | `legacySubscription` | `!(Maybe Text)` | `(.legacySubscription)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1443` | `ReadModelQueryTypes` | data | yes | `input` | `input` | `!TypeExpr` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1444` | `ReadModelQueryTypes` | data | yes | `result` | `result` | `!TypeExpr` | `(.result)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1445` | `ReadModelQueryTypes` | data | yes | `inputLoc` | `inputLoc` | `!Loc` | `(.inputLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1446` | `ReadModelQueryTypes` | data | yes | `resultLoc` | `resultLoc` | `!Loc` | `(.resultLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1453` | `ReadModelNode` | data | yes | `rmName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1454` | `ReadModelNode` | data | yes | `rmTable` | `table` | `!Text` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1455` | `ReadModelNode` | data | yes | `rmSchema` | `schema` | `!Text` | `(.schema)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1456` | `ReadModelNode` | data | yes | `rmColumns` | `columns` | `![RmColumn]` | `(.columns)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1457` | `ReadModelNode` | data | yes | `rmVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1458` | `ReadModelNode` | data | yes | `rmShape` | `shape` | `!Text` | `(.shape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1459` | `ReadModelNode` | data | yes | `rmFreshness` | `freshness` | `!QueryFreshnessNode` | `(.freshness)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1460` | `ReadModelNode` | data | yes | `rmSupply` | `supply` | `!ReadModelSupply` | `(.supply)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1461` | `ReadModelNode` | data | yes | `rmGroup` | `group` | `!(Maybe Name)` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1462` | `ReadModelNode` | data | yes | `rmObservedTargets` | `observedTargets` | `![Name]` | `(.observedTargets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1463` | `ReadModelNode` | data | yes | `rmBackingTarget` | `backingTarget` | `!(Maybe Name)` | `(.backingTarget)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1464` | `ReadModelNode` | data | yes | `queryTypes` | `queryTypes` | `!(Maybe ReadModelQueryTypes)` | `(.queryTypes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1465` | `ReadModelNode` | data | yes | `rmLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1496` | `ProjectionTargetNode` | data | yes | `ptName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1497` | `ProjectionTargetNode` | data | yes | `ptSchema` | `schema` | `!Text` | `(.schema)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1498` | `ProjectionTargetNode` | data | yes | `ptTable` | `table` | `!Text` | `(.table)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1499` | `ProjectionTargetNode` | data | yes | `ptReset` | `reset` | `!TargetResetPolicy` | `(.reset)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1500` | `ProjectionTargetNode` | data | yes | `ptDependsOn` | `dependsOn` | `![Name]` | `(.dependsOn)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1501` | `ProjectionTargetNode` | data | yes | `ptLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1507` | `RebuildGroupNode` | data | yes | `rgName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1508` | `RebuildGroupNode` | data | yes | `rgTargets` | `targets` | `![Name]` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1509` | `RebuildGroupNode` | data | yes | `rgOrder` | `order` | `![Name]` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1510` | `RebuildGroupNode` | data | yes | `rgLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1521` | `PromotionObjectNode` | data | yes | `rpoKind` | `kind` | `!PromotionObjectKindNode` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1522` | `PromotionObjectNode` | data | yes | `rpoGenerationName` | `generationName` | `!Text` | `(.generationName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1523` | `PromotionObjectNode` | data | yes | `rpoCanonicalName` | `canonicalName` | `!Text` | `(.canonicalName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1530` | `RevisionTargetNode` | data | yes | `prtTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1531` | `RevisionTargetNode` | data | yes | `prtSchemaVersion` | `schemaVersion` | `!Text` | `(.schemaVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1532` | `RevisionTargetNode` | data | yes | `prtProvisioner` | `provisioner` | `!Text` | `(.provisioner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1533` | `RevisionTargetNode` | data | yes | `prtProvisionerVersion` | `provisionerVersion` | `!Int` | `(.provisionerVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1534` | `RevisionTargetNode` | data | yes | `prtExpectedShape` | `expectedShape` | `!Text` | `(.expectedShape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1535` | `RevisionTargetNode` | data | yes | `prtValidator` | `validator` | `!Text` | `(.validator)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1536` | `RevisionTargetNode` | data | yes | `prtValidatorVersion` | `validatorVersion` | `!Int` | `(.validatorVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1537` | `RevisionTargetNode` | data | yes | `prtPromotionObjects` | `promotionObjects` | `![PromotionObjectNode]` | `(.promotionObjects)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1542` | `ProjectionRevisionNode` | data | yes | `prvName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1543` | `ProjectionRevisionNode` | data | yes | `prvGroup` | `group` | `!Name` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1544` | `ProjectionRevisionNode` | data | yes | `prvTargets` | `targets` | `![RevisionTargetNode]` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1545` | `ProjectionRevisionNode` | data | yes | `prvLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1553` | `ExternalReadNode` | data | yes | `erName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1554` | `ExternalReadNode` | data | yes | `erVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1555` | `ExternalReadNode` | data | yes | `erQueryModel` | `queryModel` | `!Name` | `(.queryModel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1556` | `ExternalReadNode` | data | yes | `erResultSchema` | `resultSchema` | `!Text` | `(.resultSchema)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1557` | `ExternalReadNode` | data | yes | `erResultType` | `resultType` | `!Text` | `(.resultType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1558` | `ExternalReadNode` | data | yes | `erCompatibleRevisions` | `compatibleRevisions` | `![Name]` | `(.compatibleRevisions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1559` | `ExternalReadNode` | data | yes | `erSurfaceGeneration` | `surfaceGeneration` | `!Int` | `(.surfaceGeneration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1560` | `ExternalReadNode` | data | yes | `erLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1595` | `ProjectionOwnerNode` | data | yes | `poName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1596` | `ProjectionOwnerNode` | data | yes | `poSources` | `sources` | `![CatalogSource]` | `(.sources)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1597` | `ProjectionOwnerNode` | data | yes | `poDelivery` | `delivery` | `!ProjectionDelivery` | `(.delivery)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1598` | `ProjectionOwnerNode` | data | yes | `poGroup` | `group` | `!Name` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1599` | `ProjectionOwnerNode` | data | yes | `poTargets` | `targets` | `![Name]` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1600` | `ProjectionOwnerNode` | data | yes | `poOrder` | `order` | `!Int` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1601` | `ProjectionOwnerNode` | data | yes | `poSubscription` | `subscription` | `!(Maybe Text)` | `(.subscription)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1602` | `ProjectionOwnerNode` | data | yes | `poDedup` | `dedup` | `!(Maybe Text)` | `(.dedup)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1603` | `ProjectionOwnerNode` | data | yes | `poCheckpointOnMissing` | `checkpointOnMissing` | `![CheckpointOnMissingNode]` | `(.checkpointOnMissing)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1604` | `ProjectionOwnerNode` | data | yes | `poReplay` | `replay` | `!ProjectionReplayPolicy` | `(.replay)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1605` | `ProjectionOwnerNode` | data | yes | `poLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1631` | `WorkflowNode` | data | yes | `wfId` | `id` | `!Name` | `(.id)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1633` | `WorkflowNode` | data | yes | `wfStable` | `stable` | `!Text` | `(.stable)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1634` | `WorkflowNode` | data | yes | `wfInput` | `input` | `!Name` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1635` | `WorkflowNode` | data | yes | `wfInputFields` | `inputFields` | `![Field]` | `(.inputFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1636` | `WorkflowNode` | data | yes | `wfOutput` | `output` | `!Name` | `(.output)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1638` | `WorkflowNode` | data | yes | `wfIdField` | `idField` | `!(Maybe Name)` | `(.idField)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1639` | `WorkflowNode` | data | yes | `wfIdVia` | `idVia` | `!Name` | `(.idVia)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1640` | `WorkflowNode` | data | yes | `wfBody` | `body` | `![WfBodyItem]` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1641` | `WorkflowNode` | data | yes | `wfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1661` | `OperationNode` | data | yes | `opName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1662` | `OperationNode` | data | yes | `opShape` | `shape` | `!OperationShape` | `(.shape)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1663` | `OperationNode` | data | yes | `opLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1709` | `Spec` | data | yes | `specContext` | `context` | `!Name` | `(.context)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1710` | `Spec` | data | yes | `specModuleRoot` | `moduleRoot` | `!(Maybe Text)` | `(.moduleRoot)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1711` | `Spec` | data | yes | `specLayout` | `layout` | `!(Maybe Placement)` | `(.layout)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1712` | `Spec` | data | yes | `specIds` | `ids` | `![IdDecl]` | `(.ids)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1713` | `Spec` | data | yes | `specEnums` | `enums` | `![EnumDecl]` | `(.enums)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1714` | `Spec` | data | yes | `specRules` | `rules` | `![RuleDecl]` | `(.rules)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1715` | `Spec` | data | yes | `specNominalScalars` | `nominalScalars` | `![NominalScalarDecl]` | `(.nominalScalars)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1716` | `Spec` | data | yes | `specMapped` | `mapped` | `![MappedDecl]` | `(.mapped)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Grammar.hs:1717` | `Spec` | data | yes | `specNodes` | `nodes` | `![Node]` | `(.nodes)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:41` | `HaskellReference` | data | yes | `referenceModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:42` | `HaskellReference` | data | yes | `referenceName` | `name` | `!Text` | `(.name)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:43` | `HaskellReference` | data | yes | `referenceNamespace` | `namespace` | `!HaskellNamespace` | `(.namespace)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:44` | `HaskellReference` | data | yes | `referenceQualification` | `qualification` | `!QualificationPreference` | `(.qualification)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:49` | `ImportEnvironment` | data | yes | `targetModule` | `targetModule` | `!Text` | `(.targetModule)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:50` | `ImportEnvironment` | data | yes | `localNames` | `localNames` | `!(Set Text)` | `(.localNames)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:51` | `ImportEnvironment` | data | yes | `reservedQualifiers` | `reservedQualifiers` | `!(Set Text)` | `(.reservedQualifiers)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:64` | `HaskellImportPlan` | data | no | `importPlanTargetModule` | `targetModule` | `!Text` | `(.targetModule)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:65` | `HaskellImportPlan` | data | no | `importPlanDeclarations` | `declarations` | `!(Set Text)` | `(.declarations)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/HaskellImport.hs:66` | `HaskellImportPlan` | data | no | `importPlanReferences` | `references` | `!(Map HaskellReference Text)` | `(.references)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:63` | `DerivedHaskellName` | data | no | `upperCamel` | `upperCamel` | `!UpperCamelName` | `(.upperCamel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:64` | `DerivedHaskellName` | data | no | `lowerCamel` | `lowerCamel` | `!LowerCamelName` | `(.lowerCamel)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:97` | `NameSite` | data | no | `siteKind` | `kind` | `!NameSiteKind` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:98` | `NameSite` | data | no | `siteLogicalName` | `logicalName` | `!Text` | `(.logicalName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:99` | `NameSite` | data | no | `siteOwner` | `owner` | `!Text` | `(.owner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:100` | `NameSite` | data | no | `siteLine` | `line` | `!Int` | `(.line)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:109` | `HaskellOccurrenceKey` | data | no | `occurrenceModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:110` | `HaskellOccurrenceKey` | data | no | `occurrenceSpace` | `space` | `!HaskellOccurrenceSpace` | `(.space)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:111` | `HaskellOccurrenceKey` | data | no | `occurrenceScope` | `scope` | `!Text` | `(.scope)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:112` | `HaskellOccurrenceKey` | data | no | `occurrenceName` | `name` | `!Text` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:117` | `PlannedOccurrence` | data | no | `plannedOccurrenceKey` | `key` | `!HaskellOccurrenceKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellName.hs:118` | `PlannedOccurrence` | data | no | `plannedOccurrenceSite` | `site` | `!NameSite` | `(.site)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:28` | `SourceMove` | data | yes | `moveRole` | `role` | `!ModuleRole` | `(.role)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:29` | `SourceMove` | data | yes | `moveKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:30` | `SourceMove` | data | yes | `moveOldModule` | `oldModule` | `!Text` | `(.oldModule)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:31` | `SourceMove` | data | yes | `moveNewModule` | `newModule` | `!Text` | `(.newModule)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:32` | `SourceMove` | data | yes | `moveOldPath` | `oldPath` | `!FilePath` | `(.oldPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:33` | `SourceMove` | data | yes | `moveNewPath` | `newPath` | `!FilePath` | `(.newPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:34` | `SourceMove` | data | yes | `moveBackupPath` | `backupPath` | `!FilePath` | `(.backupPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:38` | `SourceMove` | data | yes | `moveContentDigest` | `contentDigest` | `!(Maybe Text)` | `(.contentDigest)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/HaskellSourceMove.hs:41` | `SourceMove` | data | yes | `moveTransformedDigest` | `transformedDigest` | `!(Maybe Text)` | `(.transformedDigest)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:97` | `SourceLanguage` | data | yes | `declaredLanguageVersion` | `declaredLanguageVersion` | `!LanguageVersion` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:98` | `SourceLanguage` | data | yes | `languageVersionLoc` | `languageVersionLoc` | `!Loc` | `(.languageVersionLoc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:120` | `SyntaxProfile` | data | no | `profileIdentifier` | `identifier` | `!Text` | `(.identifier)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:121` | `SyntaxProfile` | data | no | `profileFeatures` | `features` | `!(Set LanguageFeature)` | `(.features)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:158` | `RuntimeSemanticsProfile` | data | no | `runtimeSemanticsIdentifier` | `identifier` | `!Text` | `(.identifier)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:159` | `RuntimeSemanticsProfile` | data | no | `runtimeSemanticsCapabilities` | `capabilities` | `!(Set RuntimeCapability)` | `(.capabilities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:232` | `LanguageDefinition` | data | yes | `definitionVersion` | `version` | `!LanguageVersion` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:233` | `LanguageDefinition` | data | yes | `definitionPredecessor` | `predecessor` | `!(Maybe LanguageVersion)` | `(.predecessor)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:236` | `LanguageDefinition` | data | yes | `definitionBodyParser` | `bodyParser` | `!LanguageBodyParser` | `(.bodyParser)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:237` | `LanguageDefinition` | data | yes | `definitionSyntaxProfile` | `syntaxProfile` | `!SyntaxProfile` | `(.syntaxProfile)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:238` | `LanguageDefinition` | data | yes | `definitionRuntimeSemanticsProfile` | `runtimeSemanticsProfile` | `!RuntimeSemanticsProfile` | `(.runtimeSemanticsProfile)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:239` | `LanguageDefinition` | data | yes | `definitionSupport` | `support` | `!LanguageSupport` | `(.support)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:240` | `LanguageDefinition` | data | yes | `definitionMaturity` | `maturity` | `!LanguageMaturity` | `(.maturity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:486` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageErrorCode` | `errorCode` | `!SourceLanguageErrorCode` | `(.errorCode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:487` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageSource` | `source` | `!FilePath` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:488` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:489` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageToken` | `token` | `!(Maybe Text)` | `(.token)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:490` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageDeclaredVersion` | `declaredVersion` | `!(Maybe LanguageVersion)` | `(.declaredVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:491` | `SourceLanguageDiagnostic` | data | yes | `sourceLanguageSupportedVersions` | `supportedVersions` | `!(NonEmpty LanguageVersion)` | `(.supportedVersions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:558` | `ParsedSource` | data | yes | `parsedSourceLanguage` | `sourceLanguage` | `!SourceLanguage` | `(.sourceLanguage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/LanguageVersion.hs:559` | `ParsedSource` | data | yes | `parsedSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedCodecPlan.hs:42` | `MappedCodecPlan` | data | yes | `consumerType` | `consumerType` | `!ConsumerTypePlan` | `(.consumerType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedCodecPlan.hs:43` | `MappedCodecPlan` | data | yes | `resolvedExpression` | `resolvedExpression` | `!ResolvedTypeExpr` | `(.resolvedExpression)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedCodecPlan.hs:44` | `MappedCodecPlan` | data | yes | `authority` | `authority` | `!(Set MappedAuthorityMode)` | `(.authority)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:27` | `ConsumerPlan` | data | yes | `consumerPackages` | `packages` | `![Text]` | `(.packages)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:28` | `ConsumerPlan` | data | yes | `consumerModules` | `modules` | `![Text]` | `(.modules)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:29` | `ConsumerPlan` | data | yes | `consumerMappings` | `mappings` | `![MappingIdentity]` | `(.mappings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:34` | `WriteLiftIdentity` | data | yes | `sourceType` | `sourceType` | `!Text` | `(.sourceType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:35` | `WriteLiftIdentity` | data | yes | `function` | `function` | `!Text` | `(.function)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:36` | `WriteLiftIdentity` | data | yes | `version` | `version` | `!Text` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:37` | `WriteLiftIdentity` | data | yes | `fixtures` | `fixtures` | `!Text` | `(.fixtures)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:56` | `MappingIdentity` | data | yes | `mappingSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:57` | `MappingIdentity` | data | yes | `mappingCanonicalType` | `canonicalType` | `!Text` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:58` | `MappingIdentity` | data | yes | `mappingPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:59` | `MappingIdentity` | data | yes | `mappingModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:60` | `MappingIdentity` | data | yes | `mappingType` | `valueType` | `!Text` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:61` | `MappingIdentity` | data | yes | `mappingBindingSymbol` | `bindingSymbol` | `!Text` | `(.bindingSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:62` | `MappingIdentity` | data | yes | `mappingBindingVersion` | `bindingVersion` | `!Text` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:63` | `MappingIdentity` | data | yes | `writeLift` | `writeLift` | `!(Maybe WriteLiftIdentity)` | `(.writeLift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:66` | `MappingIdentity` | data | yes | `mappingSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:67` | `MappingIdentity` | data | yes | `mappingPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:68` | `MappingIdentity` | data | yes | `mappingModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:69` | `MappingIdentity` | data | yes | `mappingType` | `valueType` | `!Text` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:70` | `MappingIdentity` | data | yes | `mappingCodecIdentity` | `codecIdentity` | `!Text` | `(.codecIdentity)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:71` | `MappingIdentity` | data | yes | `mappingCodecVersion` | `codecVersion` | `!Text` | `(.codecVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:72` | `MappingIdentity` | data | yes | `writeLift` | `writeLift` | `!(Maybe WriteLiftIdentity)` | `(.writeLift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:75` | `MappingIdentity` | data | yes | `mappingSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:76` | `MappingIdentity` | data | yes | `mappingNominalCategory` | `nominalCategory` | `!Text` | `(.nominalCategory)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:77` | `MappingIdentity` | data | yes | `mappingNominalRepresentation` | `nominalRepresentation` | `!Text` | `(.nominalRepresentation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:78` | `MappingIdentity` | data | yes | `mappingCanonicalType` | `canonicalType` | `!Text` | `(.canonicalType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:79` | `MappingIdentity` | data | yes | `mappingPackage` | `package` | `!Text` | `(.package)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:80` | `MappingIdentity` | data | yes | `mappingModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:81` | `MappingIdentity` | data | yes | `mappingType` | `valueType` | `!Text` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:82` | `MappingIdentity` | data | yes | `mappingBindingSymbol` | `bindingSymbol` | `!Text` | `(.bindingSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:83` | `MappingIdentity` | data | yes | `mappingBindingVersion` | `bindingVersion` | `!Text` | `(.bindingVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:84` | `MappingIdentity` | data | yes | `mappingFixtureSymbol` | `fixtureSymbol` | `!Text` | `(.fixtureSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedConsumer.hs:85` | `MappingIdentity` | data | yes | `mappingInitialSymbol` | `initialSymbol` | `!(Maybe Text)` | `(.initialSymbol)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:28` | `MappedFinding` | data | yes | `mfDeclaration` | `declaration` | `!Name` | `(.declaration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:29` | `MappedFinding` | data | yes | `mfLeaf` | `leaf` | `!Text` | `(.leaf)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:30` | `MappedFinding` | data | yes | `mfCode` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:31` | `MappedFinding` | data | yes | `mfDetail` | `detail` | `!Text` | `(.detail)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:32` | `MappedFinding` | data | yes | `mfUsePaths` | `usePaths` | `![UsePath]` | `(.usePaths)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/MappedDiff.hs:33` | `MappedFinding` | data | yes | `mfOldUnknownFields` | `oldUnknownFields` | `!(Maybe UnknownFields)` | `(.oldUnknownFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:70` | `CheckedNominalEquality` | data | yes | `equalityKeyRepresentation` | `keyRepresentation` | `!NominalEqualityKey` | `(.keyRepresentation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:71` | `CheckedNominalEquality` | data | yes | `equalityDomain` | `domain` | `!NominalEqualityDomain` | `(.domain)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:72` | `CheckedNominalEquality` | data | yes | `equalityContractVersion` | `contractVersion` | `!Text` | `(.contractVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:82` | `ResolvedNominalType` | data | yes | `resolvedNominalName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:83` | `ResolvedNominalType` | data | yes | `resolvedNominalRepresentation` | `representation` | `!NominalRepresentation` | `(.representation)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:84` | `ResolvedNominalType` | data | yes | `resolvedNominalOwnership` | `ownership` | `!NominalOwnership` | `(.ownership)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/NominalType.hs:85` | `ResolvedNominalType` | data | yes | `resolvedNominalLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Parser/Core.hs:75` | `ContextualParseFailure` | data | no | `contextualFailureCode` | `code` | `!SourceLanguageErrorCode` | `(.code)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Parser/Core.hs:76` | `ContextualParseFailure` | data | no | `contextualFailureFeature` | `feature` | `!(Maybe LanguageFeature)` | `(.feature)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Parser/Core.hs:77` | `ContextualParseFailure` | data | no | `contextualFailureSpan` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Parser/Preamble.hs:60` | `InitialLanguageClause` | data | no | `initialLanguageSpan` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/Parser/Preamble.hs:61` | `InitialLanguageClause` | data | no | `initialLanguageText` | `text` | `!Text` | `(.text)`, pattern, or construction | Haskell API and runtime semantics | `none` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:42` | `CheckedFollowUp` | newtype | yes | `syntax` | `syntax` | `FollowUp` | `(.syntax)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:46` | `CheckedReactionArm` | data | yes | `input` | `input` | `!Name` | `(.input)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:47` | `CheckedReactionArm` | data | yes | `ordinal` | `ordinal` | `!Int` | `(.ordinal)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:48` | `CheckedReactionArm` | data | yes | `guard` | `guard` | `!CheckedReactionGuard` | `(.guard)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:49` | `CheckedReactionArm` | data | yes | `body` | `body` | `!ArmBody` | `(.body)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:53` | `CheckedReactionTimer` | newtype | yes | `syntax` | `syntax` | `ReactionTimerNode` | `(.syntax)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:57` | `CheckedProcessReaction` | data | yes | `version` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:58` | `CheckedProcessReaction` | data | yes | `inputs` | `inputs` | `!(NonEmpty InputDecl)` | `(.inputs)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:59` | `CheckedProcessReaction` | data | yes | `arms` | `arms` | `![CheckedReactionArm]` | `(.arms)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:60` | `CheckedProcessReaction` | data | yes | `timers` | `timers` | `![CheckedReactionTimer]` | `(.timers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:61` | `CheckedProcessReaction` | data | yes | `fingerprint` | `fingerprint` | `!Text` | `(.fingerprint)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:62` | `CheckedProcessReaction` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:63` | `CheckedProcessReaction` | data | yes | `holeObligations` | `holeObligations` | `![Text]` | `(.holeObligations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:90` | `ProcessReactionDiagnostic` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:91` | `ProcessReactionDiagnostic` | data | yes | `code` | `code` | `!ProcessReactionDiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProcessReaction.hs:92` | `ProcessReactionDiagnostic` | data | yes | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:39` | `ProjectionMappedRoot` | data | yes | `consumer` | `consumer` | `!DerivedMappedConsumer` | `(.consumer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:40` | `ProjectionMappedRoot` | data | yes | `declaration` | `declaration` | `!MappedKey` | `(.declaration)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:41` | `ProjectionMappedRoot` | data | yes | `path` | `path` | `!UsePath` | `(.path)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:49` | `ProjectionOperationalImpact` | data | yes | `consumer` | `consumer` | `!DerivedMappedConsumer` | `(.consumer)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:50` | `ProjectionOperationalImpact` | data | yes | `group` | `group` | `!(Maybe Name)` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:51` | `ProjectionOperationalImpact` | data | yes | `targets` | `targets` | `!(Set Name)` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:52` | `ProjectionOperationalImpact` | data | yes | `readModels` | `readModels` | `!(Set Name)` | `(.readModels)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:53` | `ProjectionOperationalImpact` | data | yes | `replayable` | `replayable` | `!Bool` | `(.replayable)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:54` | `ProjectionOperationalImpact` | data | yes | `sourceFingerprint` | `sourceFingerprint` | `!Text` | `(.sourceFingerprint)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:62` | `UnsupportedProjectionImpact` | data | yes | `source` | `source` | `!UnsupportedProjectionSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:63` | `UnsupportedProjectionImpact` | data | yes | `group` | `group` | `!Name` | `(.group)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:64` | `UnsupportedProjectionImpact` | data | yes | `targets` | `targets` | `!(Set Name)` | `(.targets)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:65` | `UnsupportedProjectionImpact` | data | yes | `readModels` | `readModels` | `!(Set Name)` | `(.readModels)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:66` | `UnsupportedProjectionImpact` | data | yes | `replayable` | `replayable` | `!Bool` | `(.replayable)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:71` | `ProjectionMappedImpact` | data | yes | `roots` | `roots` | `![ProjectionMappedRoot]` | `(.roots)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:72` | `ProjectionMappedImpact` | data | yes | `consumers` | `consumers` | `!(Map MappedKey (Set DerivedMappedConsumer))` | `(.consumers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:73` | `ProjectionMappedImpact` | data | yes | `operations` | `operations` | `!(Map DerivedMappedConsumer ProjectionOperationalImpact)` | `(.operations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionMappedImpact.hs:74` | `ProjectionMappedImpact` | data | yes | `unsupported` | `unsupported` | `![UnsupportedProjectionImpact]` | `(.unsupported)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:21` | `ResolvedProjectionSupply` | data | yes | `supplyQueryModel` | `queryModel` | `!Name` | `(.queryModel)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:22` | `ResolvedProjectionSupply` | data | yes | `supplyProjectionOwner` | `projectionOwner` | `!Name` | `(.projectionOwner)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:23` | `ResolvedProjectionSupply` | data | yes | `supplyRebuildGroup` | `rebuildGroup` | `!Name` | `(.rebuildGroup)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:24` | `ResolvedProjectionSupply` | data | yes | `supplyObservedTargets` | `observedTargets` | `!(NonEmpty Name)` | `(.observedTargets)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:25` | `ResolvedProjectionSupply` | data | yes | `supplyQueryLoc` | `queryLoc` | `!Loc` | `(.queryLoc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:26` | `ResolvedProjectionSupply` | data | yes | `supplyOwnerLoc` | `ownerLoc` | `!Loc` | `(.ownerLoc)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:46` | `ProjectionSupplyAnalysis` | data | yes | `resolvedProjectionSupplies` | `resolvedProjectionSupplies` | `![ResolvedProjectionSupply]` | `(.resolvedProjectionSupplies)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ProjectionSupply.hs:47` | `ProjectionSupplyAnalysis` | data | yes | `projectionSupplyIssues` | `projectionSupplyIssues` | `![ProjectionSupplyIssue]` | `(.projectionSupplyIssues)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:35` | `QueryContractIdentity` | data | yes | `qciReadModel` | `readModel` | `!Name` | `(.readModel)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:36` | `QueryContractIdentity` | data | yes | `qciPosition` | `position` | `!QueryContractPosition` | `(.position)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:37` | `QueryContractIdentity` | data | yes | `qciTypeExpression` | `typeExpression` | `!Text` | `(.typeExpression)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:38` | `QueryContractIdentity` | data | yes | `qciMappedDependencies` | `mappedDependencies` | `![Name]` | `(.mappedDependencies)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:43` | `QueryContractDrift` | data | yes | `qcdKey` | `key` | `!(Name, QueryContractPosition)` | `(.key)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:44` | `QueryContractDrift` | data | yes | `qcdPrevious` | `previous` | `!(Maybe QueryContractIdentity)` | `(.previous)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReadModelQueryContract.hs:45` | `QueryContractDrift` | data | yes | `qcdCurrent` | `current` | `!(Maybe QueryContractIdentity)` | `(.current)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:57` | `AggregateImpact` | data | yes | `eventTypes` | `eventTypes` | `!(Set Name)` | `(.eventTypes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:58` | `AggregateImpact` | data | yes | `includeSnapshotStreams` | `includeSnapshotStreams` | `!Bool` | `(.includeSnapshotStreams)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:73` | `CatalogReplayImpact` | data | yes | `affectedGroups` | `affectedGroups` | `!(Set Name)` | `(.affectedGroups)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:74` | `CatalogReplayImpact` | data | yes | `affectedTargets` | `affectedTargets` | `!(Set Name)` | `(.affectedTargets)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:75` | `CatalogReplayImpact` | data | yes | `affectedSources` | `affectedSources` | `!(Set Text)` | `(.affectedSources)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:76` | `CatalogReplayImpact` | data | yes | `affectedAdapters` | `affectedAdapters` | `!(Set Name)` | `(.affectedAdapters)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:77` | `CatalogReplayImpact` | data | yes | `invalidatesRunningFingerprint` | `invalidatesRunningFingerprint` | `!Bool` | `(.invalidatesRunningFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:218` | `ReplaySurfaceContext` | data | no | `surfaceSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:219` | `ReplaySurfaceContext` | data | no | `surfaceGraphResult` | `graphResult` | `Either (NE.NonEmpty TypeGraphError) TypeGraph` | `(.graphResult)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ReplayImpact.hs:220` | `ReplaySurfaceContext` | data | no | `surfaceSymbols` | `symbols` | `AggregateSymbols` | `(.symbols)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:54` | `CheckedReadModelQuery` | data | yes | `checkedQueryName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:55` | `CheckedReadModelQuery` | data | yes | `checkedQueryInputType` | `inputType` | `!ResolvedTypeExpr` | `(.inputType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:56` | `CheckedReadModelQuery` | data | yes | `checkedQueryResultType` | `resultType` | `!ResolvedTypeExpr` | `(.resultType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:61` | `CheckedMappedExpr` | data | yes | `checkedMappedExprRoot` | `root` | `!SelectionRoot` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:62` | `CheckedMappedExpr` | data | yes | `checkedMappedExprType` | `valueType` | `!ResolvedTypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:67` | `CheckedMappedType` | data | yes | `checkedMappedTypeKey` | `key` | `!MappedKey` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:68` | `CheckedMappedType` | data | yes | `checkedMappedTypeConstructor` | `constructor` | `!Name` | `(.constructor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:69` | `CheckedMappedType` | data | yes | `checkedMappedTypeFields` | `fields` | `![ResolvedWireField]` | `(.fields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:87` | `CheckedSelectionPathSegment` | data | yes | `checkedPathField` | `field` | `!Name` | `(.field)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:88` | `CheckedSelectionPathSegment` | data | yes | `checkedPathWireKey` | `wireKey` | `!Text` | `(.wireKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:89` | `CheckedSelectionPathSegment` | data | yes | `checkedPathOwner` | `owner` | `!MappedKey` | `(.owner)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:94` | `CheckedScalarExpr` | data | yes | `checkedScalarType` | `valueType` | `!SelectionScalarType` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:95` | `CheckedScalarExpr` | data | yes | `checkedScalarNode` | `node` | `!CheckedScalarNode` | `(.node)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:96` | `CheckedScalarExpr` | data | yes | `checkedScalarLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:137` | `CheckedRouterSelection` | data | yes | `checkedIdentity` | `identity` | `!Text` | `(.identity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:138` | `CheckedRouterSelection` | data | yes | `checkedVersion` | `version` | `!Natural` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:139` | `CheckedRouterSelection` | data | yes | `checkedQuery` | `query` | `!CheckedReadModelQuery` | `(.query)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:140` | `CheckedRouterSelection` | data | yes | `checkedInputBinding` | `inputBinding` | `!CheckedMappedExpr` | `(.inputBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:141` | `CheckedRouterSelection` | data | yes | `checkedRowBinding` | `rowBinding` | `!CheckedMappedType` | `(.rowBinding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:142` | `CheckedRouterSelection` | data | yes | `checkedKey` | `key` | `!CheckedScalarExpr` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:143` | `CheckedRouterSelection` | data | yes | `checkedPredicate` | `predicate` | `!CheckedScalarExpr` | `(.predicate)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:144` | `CheckedRouterSelection` | data | yes | `checkedRecipient` | `recipient` | `!CheckedScalarExpr` | `(.recipient)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:145` | `CheckedRouterSelection` | data | yes | `checkedCommandFields` | `commandFields` | `!(Map Name CheckedScalarExpr)` | `(.commandFields)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:146` | `CheckedRouterSelection` | data | yes | `checkedTarget` | `target` | `!Name` | `(.target)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:147` | `CheckedRouterSelection` | data | yes | `checkedCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:148` | `CheckedRouterSelection` | data | yes | `checkedLimit` | `limit` | `!Natural` | `(.limit)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:149` | `CheckedRouterSelection` | data | yes | `checkedOrder` | `order` | `!CheckedSelectionOrder` | `(.order)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:150` | `CheckedRouterSelection` | data | yes | `checkedDedupe` | `dedupe` | `!CheckedSelectionDedupe` | `(.dedupe)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:151` | `CheckedRouterSelection` | data | yes | `checkedEmptyPolicy` | `emptyPolicy` | `!CheckedEmptySelectionPolicy` | `(.emptyPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:152` | `CheckedRouterSelection` | data | yes | `checkedFailurePolicy` | `failurePolicy` | `!CheckedSelectionFailurePolicy` | `(.failurePolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:153` | `CheckedRouterSelection` | data | yes | `checkedRedeliveryPolicy` | `redeliveryPolicy` | `!CheckedRedeliveryPolicy` | `(.redeliveryPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:154` | `CheckedRouterSelection` | data | yes | `checkedPartialPolicy` | `partialPolicy` | `!CheckedPartialDispatchPolicy` | `(.partialPolicy)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:155` | `CheckedRouterSelection` | data | yes | `checkedFingerprint` | `fingerprint` | `!Text` | `(.fingerprint)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:156` | `CheckedRouterSelection` | data | yes | `checkedUseSites` | `useSites` | `![UseSite]` | `(.useSites)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:193` | `RouterSelectionDiagnostic` | data | yes | `selectionDiagnosticLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:194` | `RouterSelectionDiagnostic` | data | yes | `selectionDiagnosticCode` | `code` | `!RouterSelectionDiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RouterSelection.hs:195` | `RouterSelectionDiagnostic` | data | yes | `selectionDiagnosticMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/RuntimePackage.hs:18` | `RuntimePackageName` | newtype | yes | `unRuntimePackageName` | `unRuntimePackageName` | `Text` | explicit `unRuntimePackageName` positional function | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:165` | `ScaffoldModule` | data | yes | `modulePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:166` | `ScaffoldModule` | data | yes | `moduleText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:167` | `ScaffoldModule` | data | yes | `kind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:168` | `ScaffoldModule` | data | yes | `origin` | `origin` | `!Text` | `(.origin)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:176` | `ModuleRole` | data | yes | `roleOwnerKind` | `ownerKind` | `!Text` | `(.ownerKind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:177` | `ModuleRole` | data | yes | `roleOwnerName` | `ownerName` | `!Text` | `(.ownerName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:178` | `ModuleRole` | data | yes | `roleFamily` | `family` | `!Text` | `(.family)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:209` | `Context` | data | yes | `contextName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:211` | `Context` | data | yes | `moduleRoot` | `moduleRoot` | `!Text` | `(.moduleRoot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:213` | `Context` | data | yes | `placement` | `placement` | `!Placement` | `(.placement)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:221` | `NominalUseSite` | data | yes | `nominalUseAggregate` | `aggregate` | `!Name` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:222` | `NominalUseSite` | data | yes | `nominalUseKind` | `kind` | `!AggregateUseSite` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:230` | `NominalGenerationOwner` | data | yes | `nominalDeclaration` | `declaration` | `!ResolvedNominalType` | `(.declaration)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:231` | `NominalGenerationOwner` | data | yes | `nominalModule` | `moduleName` | `!Text` | `(.moduleName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:232` | `NominalGenerationOwner` | data | yes | `nominalUseSites` | `useSites` | `!(Set.Set NominalUseSite)` | `(.useSites)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:233` | `NominalGenerationOwner` | data | yes | `nominalEqualityUsed` | `equalityUsed` | `!Bool` | `(.equalityUsed)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:345` | `FirewallSurface` | data | yes | `forbiddenSymbolic` | `forbiddenSymbolic` | `![Text]` | `(.forbiddenSymbolic)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:346` | `FirewallSurface` | data | yes | `forbiddenIdents` | `forbiddenIdents` | `![Text]` | `(.forbiddenIdents)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:347` | `FirewallSurface` | data | yes | `forbiddenQualifiers` | `forbiddenQualifiers` | `![Text]` | `(.forbiddenQualifiers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:348` | `FirewallSurface` | data | yes | `forbiddenImports` | `forbiddenImports` | `![Text]` | `(.forbiddenImports)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:349` | `FirewallSurface` | data | yes | `restrictedImports` | `restrictedImports` | `![(Text, [Text])]` | `(.restrictedImports)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:502` | `Agg` | data | yes | `aContext` | `context` | `!Context` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:503` | `Agg` | data | yes | `aCheckedService` | `checkedService` | `!CheckedService` | `(.checkedService)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:504` | `Agg` | data | yes | `aLanguageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:505` | `Agg` | data | yes | `aSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:506` | `Agg` | data | yes | `aAggregate` | `aggregate` | `!Aggregate` | `(.aggregate)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:507` | `Agg` | data | yes | `aCtxPascal` | `ctxPascal` | `!Text` | `(.ctxPascal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:508` | `Agg` | data | yes | `aName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:509` | `Agg` | data | yes | `aLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:510` | `Agg` | data | yes | `aVertexType` | `vertexType` | `!Text` | `(.vertexType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:511` | `Agg` | data | yes | `aIds` | `ids` | `![IdDecl]` | `(.ids)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:512` | `Agg` | data | yes | `aEnums` | `enums` | `![EnumDecl]` | `(.enums)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:513` | `Agg` | data | yes | `aRegs` | `regs` | `![ResolvedRegister]` | `(.regs)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:514` | `Agg` | data | yes | `aStates` | `states` | `![StateDecl]` | `(.states)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:515` | `Agg` | data | yes | `aCommands` | `commands` | `![ResolvedCtor]` | `(.commands)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:516` | `Agg` | data | yes | `aEvents` | `events` | `![ResolvedCtor]` | `(.events)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:517` | `Agg` | data | yes | `aDomainOutcomeTypes` | `domainOutcomeTypes` | `!(Maybe ResolvedDomainOutcomeTypes)` | `(.domainOutcomeTypes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:519` | `Agg` | data | yes | `aGeneratedNominals` | `generatedNominals` | `![ResolvedNominalType]` | `(.generatedNominals)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:520` | `Agg` | data | yes | `aTransitions` | `transitions` | `![Transition]` | `(.transitions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:521` | `Agg` | data | yes | `aOutputMappings` | `outputMappings` | `!(Map.Map (Int, Int) EventOutputMapping)` | `(.outputMappings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:522` | `Agg` | data | yes | `aWire` | `wire` | `!WireSpec` | `(.wire)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:523` | `Agg` | data | yes | `aProjection` | `projection` | `!(Maybe ProjectionSpec)` | `(.projection)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:524` | `Agg` | data | yes | `aSnapshot` | `snapshot` | `!(Maybe SnapshotSpec)` | `(.snapshot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:525` | `Agg` | data | yes | `aFoldFingerprint` | `foldFingerprint` | `!Text` | `(.foldFingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:526` | `Agg` | data | yes | `aReadModels` | `readModels` | `![ReadModelNode]` | `(.readModels)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:527` | `Agg` | data | yes | `aTypeGraph` | `typeGraph` | `!(Maybe TypeGraph)` | `(.typeGraph)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:528` | `Agg` | data | yes | `aSymbols` | `symbols` | `!AggregateSymbols` | `(.symbols)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:530` | `Agg` | data | yes | `aGenPrefix` | `genPrefix` | `!Text` | `(.genPrefix)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:532` | `Agg` | data | yes | `aHolePrefix` | `holePrefix` | `!Text` | `(.holePrefix)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:536` | `ResolvedDomainOutcomeTypes` | data | yes | `resolvedRejectionType` | `rejectionType` | `!ResolvedAggregateType` | `(.rejectionType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:537` | `ResolvedDomainOutcomeTypes` | data | yes | `resolvedNoOpType` | `noOpType` | `!ResolvedAggregateType` | `(.noOpType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:545` | `ResolvedRegister` | data | yes | `rrName` | `name` | `!Name` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:546` | `ResolvedRegister` | data | yes | `rrType` | `valueType` | `!ResolvedAggregateType` | `(.valueType)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:547` | `ResolvedRegister` | data | yes | `rrInitial` | `initial` | `!ResolvedRegisterInitial` | `(.initial)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:548` | `ResolvedRegister` | data | yes | `rrLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:555` | `ResolvedCtor` | data | yes | `rcName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:557` | `ResolvedCtor` | data | yes | `rcFields` | `fields` | `![(ResolvedFieldIdentity, ResolvedAggregateType)]` | `(.fields)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:559` | `ResolvedCtor` | data | yes | `rcVersion` | `version` | `!Int` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:561` | `ResolvedCtor` | data | yes | `rcUpcastFrom` | `upcastFrom` | `!(Maybe Int)` | `(.upcastFrom)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2610` | `RenderedShapeType` | data | no | `renderedShapeTypePrecedence` | `precedence` | `!ShapeTypePrecedence` | `(.precedence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2611` | `RenderedShapeType` | data | no | `renderedShapeTypeText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2626` | `StructuralProjection` | data | yes | `spTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2627` | `StructuralProjection` | data | yes | `spWitness` | `witness` | `!Text` | `(.witness)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2628` | `StructuralProjection` | data | yes | `getter` | `getter` | `!Text` | `(.getter)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2629` | `StructuralProjection` | data | yes | `rawGetter` | `rawGetter` | `!(Maybe Text)` | `(.rawGetter)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2630` | `StructuralProjection` | data | yes | `spPointer` | `pointer` | `!Text` | `(.pointer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2631` | `StructuralProjection` | data | yes | `spOwner` | `owner` | `!HaskellSource` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2632` | `StructuralProjection` | data | yes | `spResult` | `result` | `!Text` | `(.result)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2633` | `StructuralProjection` | data | yes | `spCanonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2634` | `StructuralProjection` | data | yes | `spBinding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2635` | `StructuralProjection` | data | yes | `fixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2636` | `StructuralProjection` | data | yes | `terminalNominal` | `terminalNominal` | `!(Maybe NominalLeaf)` | `(.terminalNominal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2637` | `StructuralProjection` | data | yes | `rootEnum` | `rootEnum` | `!(Maybe (Text, [(Name, Text)]))` | `(.rootEnum)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:2638` | `StructuralProjection` | data | yes | `spSelectors` | `selectors` | `![(Text, Text)]` | `(.selectors)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:4738` | `ResolvedQueueField` | data | no | `resolvedQueueField` | `field` | `!WqField` | `(.field)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:4739` | `ResolvedQueueField` | data | no | `resolvedQueueExpression` | `expression` | `!(Maybe ResolvedTypeExpr)` | `(.expression)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:4740` | `ResolvedQueueField` | data | no | `resolvedQueueCodecPlan` | `codecPlan` | `!(Maybe MappedCodecPlan)` | `(.codecPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8839` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionIndex` | `index` | `!Int` | `(.index)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8840` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionSource` | `source` | `!Transition` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8841` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionGuard` | `guard` | `!(Maybe TypedScalarExpr)` | `(.guard)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8842` | `ResolvedGeneratedTransition` | data | no | `resolvedTransitionWrites` | `writes` | `![(Name, TypedScalarExpr)]` | `(.writes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8850` | `ResolvedSilentOutcome` | data | no | `resolvedSilentLayout` | `layout` | `!TransitionLayoutEntry` | `(.layout)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8851` | `ResolvedSilentOutcome` | data | no | `resolvedSilentKind` | `kind` | `!SilentOutcomeKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:8852` | `ResolvedSilentOutcome` | data | no | `resolvedSilentReason` | `reason` | `!TypedScalarExpr` | `(.reason)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:9007` | `ProjectionAlias` | data | no | `projectionAliasTarget` | `target` | `!ProjectionAliasTarget` | `(.target)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:9008` | `ProjectionAlias` | data | no | `projectionAliasName` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:9085` | `RenderedKeikiExpr` | data | no | `renderedKeikiText` | `text` | `!Text` | `(.text)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Scaffold.hs:9086` | `RenderedKeikiExpr` | data | no | `renderedKeikiPrecedence` | `precedence` | `!Int` | `(.precedence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:46` | `ScaffoldRecord` | data | yes | `recSpecPath` | `specPath` | `!Text` | `(.specPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:47` | `ScaffoldRecord` | data | yes | `recModuleRoot` | `moduleRoot` | `!Text` | `(.moduleRoot)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:48` | `ScaffoldRecord` | data | yes | `recLayout` | `layout` | `!Text` | `(.layout)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:49` | `ScaffoldRecord` | data | yes | `recSourceLanguage` | `sourceLanguage` | `!SourceLanguage` | `(.sourceLanguage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:50` | `ScaffoldRecord` | data | yes | `recLanguageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:51` | `ScaffoldRecord` | data | yes | `recNamingEdition` | `namingEdition` | `!GeneratedHaskellNamingEdition` | `(.namingEdition)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:52` | `ScaffoldRecord` | data | yes | `recModuleRoles` | `moduleRoles` | `![ScaffoldModuleRoleRow]` | `(.moduleRoles)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:53` | `ScaffoldRecord` | data | yes | `recFiles` | `files` | `![(ModuleKind, FilePath)]` | `(.files)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:54` | `ScaffoldRecord` | data | yes | `recMappings` | `mappings` | `![MappingIdentity]` | `(.mappings)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:55` | `ScaffoldRecord` | data | yes | `recIdDomains` | `idDomains` | `![Text]` | `(.idDomains)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:56` | `ScaffoldRecord` | data | yes | `recNominalEqualities` | `nominalEqualities` | `![Text]` | `(.nominalEqualities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:57` | `ScaffoldRecord` | data | yes | `structuralEnumEqualities` | `structuralEnumEqualities` | `![Text]` | `(.structuralEnumEqualities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:58` | `ScaffoldRecord` | data | yes | `recBindingObligations` | `bindingObligations` | `![BindingHole]` | `(.bindingObligations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:59` | `ScaffoldRecord` | data | yes | `recBehaviorRequirements` | `behaviorRequirements` | `![BehaviorRecordRow]` | `(.behaviorRequirements)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:60` | `ScaffoldRecord` | data | yes | `recProjectionCatalogFacts` | `projectionCatalogFacts` | `![Text]` | `(.projectionCatalogFacts)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:61` | `ScaffoldRecord` | data | yes | `recQueryContractBaseline` | `queryContractBaseline` | `!Bool` | `(.queryContractBaseline)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:62` | `ScaffoldRecord` | data | yes | `recQueryContracts` | `queryContracts` | `![QueryContractIdentity]` | `(.queryContracts)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:63` | `ScaffoldRecord` | data | yes | `recRouterSelections` | `routerSelections` | `![RouterSelectionSnapshot]` | `(.routerSelections)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:64` | `ScaffoldRecord` | data | yes | `processReactions` | `processReactions` | `![ProcessReactionRecordRow]` | `(.processReactions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:65` | `ScaffoldRecord` | data | yes | `recSemanticImpact` | `semanticImpact` | `!(Maybe SemanticImpactSnapshot)` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:70` | `ScaffoldModuleRoleRow` | data | yes | `srrRole` | `role` | `!ModuleRole` | `(.role)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:71` | `ScaffoldModuleRoleRow` | data | yes | `srrKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:72` | `ScaffoldModuleRoleRow` | data | yes | `srrPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:80` | `ProcessReactionRecordRow` | data | yes | `processName` | `processName` | `!Text` | `(.processName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:81` | `ProcessReactionRecordRow` | data | yes | `verification` | `verification` | `!Text` | `(.verification)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:82` | `ProcessReactionRecordRow` | data | yes | `version` | `version` | `!(Maybe Natural)` | `(.version)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:83` | `ProcessReactionRecordRow` | data | yes | `fingerprint` | `fingerprint` | `!(Maybe Text)` | `(.fingerprint)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRecord.hs:84` | `ProcessReactionRecordRow` | data | yes | `holeObligations` | `holeObligations` | `![Text]` | `(.holeObligations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:198` | `GeneratedHaskellEditionUse` | data | yes | `path` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:199` | `GeneratedHaskellEditionUse` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:200` | `GeneratedHaskellEditionUse` | data | yes | `current` | `current` | `!Text` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:201` | `GeneratedHaskellEditionUse` | data | yes | `replacement` | `replacement` | `!Text` | `(.replacement)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:202` | `GeneratedHaskellEditionUse` | data | yes | `form` | `form` | `!HoleUseForm` | `(.form)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:215` | `GeneratedHaskellEditionImpact` | data | yes | `fromEdition` | `fromEdition` | `!HaskellName.GeneratedHaskellNamingEdition` | `(.fromEdition)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:216` | `GeneratedHaskellEditionImpact` | data | yes | `generatedPaths` | `generatedPaths` | `![FilePath]` | `(.generatedPaths)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:217` | `GeneratedHaskellEditionImpact` | data | yes | `sidecarPaths` | `sidecarPaths` | `![FilePath]` | `(.sidecarPaths)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:218` | `GeneratedHaskellEditionImpact` | data | yes | `handOwnedUses` | `handOwnedUses` | `![GeneratedHaskellEditionUse]` | `(.handOwnedUses)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:223` | `PreparedGeneratedHaskellEditionMigration` | data | no | `impact` | `impact` | `!GeneratedHaskellEditionImpact` | `(.impact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:224` | `PreparedGeneratedHaskellEditionMigration` | data | no | `backups` | `backups` | `![(FilePath, FilePath)]` | `(.backups)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:225` | `PreparedGeneratedHaskellEditionMigration` | data | no | `reportPath` | `reportPath` | `!FilePath` | `(.reportPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:226` | `PreparedGeneratedHaskellEditionMigration` | data | no | `reportText` | `reportText` | `!Text` | `(.reportText)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:227` | `PreparedGeneratedHaskellEditionMigration` | data | no | `sourceMoves` | `sourceMoves` | `![SourceMove]` | `(.sourceMoves)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:248` | `GeneratedArtifactImpact` | data | yes | `artifactCategory` | `category` | `!GeneratedArtifactCategory` | `(.category)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:249` | `GeneratedArtifactImpact` | data | yes | `artifactRole` | `role` | `!ModuleRole` | `(.role)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:250` | `GeneratedArtifactImpact` | data | yes | `artifactPath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:251` | `GeneratedArtifactImpact` | data | yes | `artifactDisposition` | `disposition` | `!WriteDisposition` | `(.disposition)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:261` | `StaleModule` | data | yes | `staleKind` | `kind` | `!ModuleKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:262` | `StaleModule` | data | yes | `stalePath` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:263` | `StaleModule` | data | yes | `staleGeneratedEvidence` | `generatedEvidence` | `!(Maybe StaleGeneratedEvidence)` | `(.generatedEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:268` | `MappingDrift` | data | yes | `driftSpecName` | `specName` | `!Text` | `(.specName)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:269` | `MappingDrift` | data | yes | `driftPrevious` | `previous` | `!(Maybe MappingIdentity)` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:270` | `MappingDrift` | data | yes | `driftCurrent` | `current` | `!(Maybe MappingIdentity)` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:275` | `SourceLanguageDrift` | data | yes | `languageDriftPrevious` | `previous` | `!SourceLanguage` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:276` | `SourceLanguageDrift` | data | yes | `languageDriftCurrent` | `current` | `!SourceLanguage` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:281` | `ScaffoldReport` | data | yes | `reportSpecPath` | `specPath` | `!FilePath` | `(.specPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:282` | `ScaffoldReport` | data | yes | `reportOutDir` | `outDir` | `!FilePath` | `(.outDir)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:283` | `ScaffoldReport` | data | yes | `reportContext` | `context` | `!Context` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:284` | `ScaffoldReport` | data | yes | `reportDispositions` | `dispositions` | `![(ScaffoldModule, WriteDisposition)]` | `(.dispositions)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:285` | `ScaffoldReport` | data | yes | `reportInertNodes` | `inertNodes` | `![(Text, Text)]` | `(.inertNodes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:286` | `ScaffoldReport` | data | yes | `reportManifestPath` | `manifestPath` | `!FilePath` | `(.manifestPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:287` | `ScaffoldReport` | data | yes | `reportRecordPath` | `recordPath` | `!FilePath` | `(.recordPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:288` | `ScaffoldReport` | data | yes | `reportPreviousSpecPath` | `previousSpecPath` | `!(Maybe Text)` | `(.previousSpecPath)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:289` | `ScaffoldReport` | data | yes | `reportStale` | `stale` | `![StaleModule]` | `(.stale)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:290` | `ScaffoldReport` | data | yes | `reportConsumerPlan` | `consumerPlan` | `!ConsumerPlan` | `(.consumerPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:291` | `ScaffoldReport` | data | yes | `reportConstraintPlan` | `constraintPlan` | `![Text]` | `(.constraintPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:292` | `ScaffoldReport` | data | yes | `reportMappingDrift` | `mappingDrift` | `![MappingDrift]` | `(.mappingDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:293` | `ScaffoldReport` | data | yes | `reportQueryContractBaselineUnavailable` | `queryContractBaselineUnavailable` | `!Bool` | `(.queryContractBaselineUnavailable)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:294` | `ScaffoldReport` | data | yes | `reportQueryContractDrift` | `queryContractDrift` | `![QueryContractDrift]` | `(.queryContractDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:295` | `ScaffoldReport` | data | yes | `reportQueryContractMigrations` | `queryContractMigrations` | `![QueryContractMigration]` | `(.queryContractMigrations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:296` | `ScaffoldReport` | data | yes | `reportSemanticImpact` | `semanticImpact` | `!SemanticImpactReport` | `(.semanticImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:297` | `ScaffoldReport` | data | yes | `reportRouterSelectionDrift` | `routerSelectionDrift` | `![RouterSelectionDrift]` | `(.routerSelectionDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:298` | `ScaffoldReport` | data | yes | `processReactionCoordinationDrift` | `processReactionCoordinationDrift` | `![ProcessReactionDrift]` | `(.processReactionCoordinationDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:299` | `ScaffoldReport` | data | yes | `reportProjectionMappedImpact` | `projectionMappedImpact` | `!(Maybe ProjectionMappedImpact)` | `(.projectionMappedImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:300` | `ScaffoldReport` | data | yes | `reportGeneratedArtifactImpact` | `generatedArtifactImpact` | `![GeneratedArtifactImpact]` | `(.generatedArtifactImpact)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:301` | `ScaffoldReport` | data | yes | `reportSourceLanguageDrift` | `sourceLanguageDrift` | `!(Maybe SourceLanguageDrift)` | `(.sourceLanguageDrift)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:302` | `ScaffoldReport` | data | yes | `reportNewHoles` | `newHoles` | `![BindingHole]` | `(.newHoles)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:303` | `ScaffoldReport` | data | yes | `processReactionRows` | `processReactionRows` | `![ProcessReactionRecordRow]` | `(.processReactionRows)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:304` | `ScaffoldReport` | data | yes | `reportAddedBehavior` | `addedBehavior` | `![BehaviorRecordRow]` | `(.addedBehavior)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:305` | `ScaffoldReport` | data | yes | `reportRemovedBehavior` | `removedBehavior` | `![BehaviorRecordRow]` | `(.removedBehavior)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:306` | `ScaffoldReport` | data | yes | `reportObsoleteOutputHooks` | `obsoleteOutputHooks` | `![(Text, Text)]` | `(.obsoleteOutputHooks)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:307` | `ScaffoldReport` | data | yes | `reportConformancePackage` | `conformancePackage` | `!(Maybe ConformancePackageReport)` | `(.conformancePackage)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:308` | `ScaffoldReport` | data | yes | `reportNameMoves` | `nameMoves` | `![SourceMove]` | `(.nameMoves)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:309` | `ScaffoldReport` | data | yes | `reportSidecarMoves` | `sidecarMoves` | `![SidecarMove]` | `(.sidecarMoves)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:314` | `QueryContractMigration` | data | yes | `qcmOwner` | `owner` | `!Text` | `(.owner)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:315` | `QueryContractMigration` | data | yes | `path` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/ScaffoldRun.hs:316` | `QueryContractMigration` | data | yes | `qcmRequiredImport` | `requiredImport` | `!Text` | `(.requiredImport)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:63` | `EffectiveLanguageContract` | data | yes | `effectiveContractLanguageVersion` | `contractLanguageVersion` | `!LanguageVersion` | `(.contractLanguageVersion)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:64` | `EffectiveLanguageContract` | data | yes | `effectiveRuntimeProfile` | `runtimeProfile` | `!RuntimeSemanticsProfile` | `(.runtimeProfile)`, pattern, or construction | serialized/wire review risk | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:160` | `CheckedService` | data | no | `serviceLanguageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk | `none` |+| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:161` | `CheckedService` | data | no | `serviceSpec` | `spec` | `!Spec` | `(.spec)`, pattern, or construction | serialized/wire review risk | `none` |+| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:162` | `CheckedService` | data | no | `serviceTypeGraph` | `typeGraph` | `Either (NonEmpty TypeGraphError) TypeGraph` | `(.typeGraph)`, pattern, or construction | serialized/wire review risk | `none` |+| `keiro-dsl/src/Keiro/Dsl/SemanticContract.hs:163` | `CheckedService` | data | no | `serviceProjectionSupplies` | `projectionSupplies` | `ProjectionSupplyAnalysis` | `(.projectionSupplies)`, pattern, or construction | serialized/wire review risk | `none` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:100` | `MappedRoot` | data | yes | `mappedRootConsumer` | `consumer` | `!MappedConsumer` | `(.consumer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:101` | `MappedRoot` | data | yes | `mappedRootKind` | `kind` | `!MappedRootKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:102` | `MappedRoot` | data | yes | `mappedRootUseSite` | `useSite` | `!UseSite` | `(.useSite)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:103` | `MappedRoot` | data | yes | `mappedRootDeclaration` | `declaration` | `!MappedKey` | `(.declaration)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:111` | `MappedRootEvidence` | data | yes | `evidenceConsumer` | `consumer` | `!MappedConsumer` | `(.consumer)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:112` | `MappedRootEvidence` | data | yes | `evidenceRootKind` | `rootKind` | `!MappedRootKind` | `(.rootKind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:113` | `MappedRootEvidence` | data | yes | `evidencePath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:114` | `MappedRootEvidence` | data | yes | `evidenceOperation` | `operation` | `!(Maybe Text)` | `(.operation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:141` | `SemanticImpact` | data | yes | `impactRoots` | `roots` | `![MappedRoot]` | `(.roots)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:142` | `SemanticImpact` | data | yes | `impactUsePaths` | `usePaths` | `!(Map MappedKey [UsePath])` | `(.usePaths)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:143` | `SemanticImpact` | data | yes | `impactAggregateDeclarations` | `aggregateDeclarations` | `!(Map MappedConsumer (Set MappedKey))` | `(.aggregateDeclarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:144` | `SemanticImpact` | data | yes | `impactDeclarationConsumers` | `declarationConsumers` | `!(Map MappedKey (Set MappedConsumer))` | `(.declarationConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:145` | `SemanticImpact` | data | yes | `impactDeclarationEvidence` | `declarationEvidence` | `!(Map MappedKey (Set MappedRootEvidence))` | `(.declarationEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:146` | `SemanticImpact` | data | yes | `impactDeclarationConsequences` | `declarationConsequences` | `!(Map MappedKey (Set MappedConsequence))` | `(.declarationConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:147` | `SemanticImpact` | data | yes | `impactServiceDeclarations` | `serviceDeclarations` | `!(Set MappedKey)` | `(.serviceDeclarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:148` | `SemanticImpact` | data | yes | `impactDeclarationIdentities` | `declarationIdentities` | `!(Map MappedKey Text)` | `(.declarationIdentities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:149` | `SemanticImpact` | data | yes | `impactUnsupportedProjectionSources` | `unsupportedProjectionSources` | `![UnsupportedProjectionSource]` | `(.unsupportedProjectionSources)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:159` | `SemanticImpactSnapshot` | data | yes | `snapshotMappedConsumers` | `mappedConsumers` | `!(Map MappedKey (Set MappedConsumer))` | `(.mappedConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:160` | `SemanticImpactSnapshot` | data | yes | `snapshotMappedEvidence` | `mappedEvidence` | `!(Maybe (Map MappedKey (Set MappedRootEvidence)))` | `(.mappedEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:161` | `SemanticImpactSnapshot` | data | yes | `snapshotMappedConsequences` | `mappedConsequences` | `!(Maybe (Map MappedKey (Set MappedConsequence)))` | `(.mappedConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:162` | `SemanticImpactSnapshot` | data | yes | `snapshotServiceInventory` | `serviceInventory` | `!(Set MappedKey)` | `(.serviceInventory)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:163` | `SemanticImpactSnapshot` | data | yes | `snapshotDeclarationIdentities` | `declarationIdentities` | `!(Map MappedKey Text)` | `(.declarationIdentities)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:170` | `MappedImpactDelta` | data | yes | `impactDeclaration` | `declaration` | `!MappedKey` | `(.declaration)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:171` | `MappedImpactDelta` | data | yes | `impactPreviousConsumers` | `previousConsumers` | `!(Set MappedConsumer)` | `(.previousConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:172` | `MappedImpactDelta` | data | yes | `impactCurrentConsumers` | `currentConsumers` | `!(Set MappedConsumer)` | `(.currentConsumers)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:173` | `MappedImpactDelta` | data | yes | `impactPreviousEvidence` | `previousEvidence` | `!(Maybe (Set MappedRootEvidence))` | `(.previousEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:174` | `MappedImpactDelta` | data | yes | `impactCurrentEvidence` | `currentEvidence` | `!(Maybe (Set MappedRootEvidence))` | `(.currentEvidence)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:175` | `MappedImpactDelta` | data | yes | `impactPreviousConsequences` | `previousConsequences` | `!(Maybe (Set MappedConsequence))` | `(.previousConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:176` | `MappedImpactDelta` | data | yes | `impactCurrentConsequences` | `currentConsequences` | `!(Maybe (Set MappedConsequence))` | `(.currentConsequences)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:177` | `MappedImpactDelta` | data | yes | `impactServiceConformance` | `serviceConformance` | `!Bool` | `(.serviceConformance)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:185` | `SemanticImpactReport` | data | yes | `semanticReportPrevious` | `previous` | `!(Maybe SemanticImpactSnapshot)` | `(.previous)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:186` | `SemanticImpactReport` | data | yes | `semanticReportCurrent` | `current` | `!SemanticImpactSnapshot` | `(.current)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:187` | `SemanticImpactReport` | data | yes | `semanticReportDeclarations` | `declarations` | `![MappedKey]` | `(.declarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:188` | `SemanticImpactReport` | data | yes | `semanticReportDeltas` | `deltas` | `![MappedImpactDelta]` | `(.deltas)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:514` | `SelectionEvidence` | data | no | `selectionEvidenceRoot` | `root` | `!MappedRoot` | `(.root)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/SemanticImpact.hs:515` | `SelectionEvidence` | data | no | `selectionEvidencePath` | `path` | `!Text` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/ServiceHarness.hs:28` | `DuplicateServiceFactKey` | newtype | yes | `duplicateServiceFactKey` | `duplicateServiceFactKey` | `Text` | `(.duplicateServiceFactKey)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:48` | `SidecarMove` | data | yes | `sidecarOldPath` | `oldPath` | `!FilePath` | `(.oldPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:49` | `SidecarMove` | data | yes | `sidecarNewPath` | `newPath` | `!FilePath` | `(.newPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:50` | `SidecarMove` | data | yes | `sidecarBackupPath` | `backupPath` | `!(Maybe FilePath)` | `(.backupPath)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/SidecarMigration.hs:51` | `SidecarMove` | data | yes | `sidecarMoveDisposition` | `moveDisposition` | `!SidecarMoveDisposition` | `(.moveDisposition)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:22` | `SourcePoint` | data | yes | `offset` | `offset` | `!Int` | `(.offset)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:23` | `SourcePoint` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:24` | `SourcePoint` | data | yes | `column` | `column` | `!Int` | `(.column)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:38` | `SourceSpan` | data | yes | `source` | `source` | `!FilePath` | `(.source)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:39` | `SourceSpan` | data | yes | `start` | `start` | `!SourcePoint` | `(.start)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:40` | `SourceSpan` | data | yes | `end` | `end` | `!SourcePoint` | `(.end)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:61` | `Located` | data | yes | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Functor, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Source.hs:62` | `Located` | data | yes | `value` | `value` | `!a` | `(.value)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Ord, Show, Functor, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:67` | `IndexedSourcePosition` | data | no | `quality` | `quality` | `!SourcePositionQuality` | `(.quality)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:68` | `IndexedSourcePosition` | data | no | `span` | `span` | `!SourceSpan` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:73` | `SemanticSourceIndex` | newtype | no | `positions` | `positions` | `Map SourceSubject IndexedSourcePosition` | `(.positions)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:79` | `ParsedSourceDocument` | data | yes | `documentParsedSource` | `parsedSource` | `!ParsedSource` | `(.parsedSource)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:80` | `ParsedSourceDocument` | data | yes | `documentSourceIndex` | `sourceIndex` | `!SemanticSourceIndex` | `(.sourceIndex)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:92` | `SourceIndexFailure` | data | yes | `failureCode` | `code` | `!SourceIndexFailureCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:93` | `SourceIndexFailure` | data | yes | `failureSubject` | `subject` | `!(Maybe SourceSubject)` | `(.subject)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:94` | `SourceIndexFailure` | data | yes | `failureSpan` | `span` | `!(Maybe SourceSpan)` | `(.span)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/SourceIndex.hs:95` | `SourceIndexFailure` | data | yes | `failureMessage` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:82` | `ConformanceRendering` | data | no | `renderingContext` | `context` | `!Context` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:83` | `ConformanceRendering` | data | no | `renderingGraph` | `graph` | `!TypeGraph` | `(.graph)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:84` | `ConformanceRendering` | data | no | `renderingDeclarations` | `declarations` | `![ResolvedMappedDecl]` | `(.declarations)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:85` | `ConformanceRendering` | data | no | `nominals` | `nominals` | `![NominalLeaf]` | `(.nominals)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:86` | `ConformanceRendering` | data | no | `renderingProjections` | `projections` | `![StructuralProjection]` | `(.projections)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/StructuralConformance.hs:87` | `ConformanceRendering` | data | no | `renderingImportPlan` | `importPlan` | `!HaskellImportPlan` | `(.importPlan)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:33` | `SurfaceSource` | data | yes | `source` | `source` | `!FilePath` | `(.source)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:34` | `SurfaceSource` | data | yes | `language` | `language` | `!SourceLanguage` | `(.language)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:35` | `SurfaceSource` | data | yes | `preamble` | `preamble` | `!(Maybe (Located SourceLanguage))` | `(.preamble)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:36` | `SurfaceSource` | data | yes | `spec` | `spec` | `!(Located SurfaceSpec)` | `(.spec)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:43` | `SurfaceSpec` | data | yes | `context` | `context` | `!(Located Text)` | `(.context)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:44` | `SurfaceSpec` | data | yes | `moduleRoot` | `moduleRoot` | `!(Maybe (Located Text))` | `(.moduleRoot)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:45` | `SurfaceSpec` | data | yes | `layout` | `layout` | `!(Maybe (Located Placement))` | `(.layout)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:46` | `SurfaceSpec` | data | yes | `items` | `items` | `![Located SurfaceTopItem]` | `(.items)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Syntax.hs:47` | `SurfaceSpec` | data | yes | `elements` | `elements` | `![Located SurfaceElement]` | `(.elements)`, pattern, or construction | Haskell API and runtime semantics | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:195` | `MachineState` | data | yes | `name` | `name` | `!Text` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:196` | `MachineState` | data | yes | `terminal` | `terminal` | `!Bool` | `(.terminal)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:208` | `MachineEdge` | data | yes | `source` | `source` | `!Text` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:209` | `MachineEdge` | data | yes | `edgeIndex` | `edgeIndex` | `!Int` | `(.edgeIndex)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:210` | `MachineEdge` | data | yes | `target` | `target` | `!Text` | `(.target)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:211` | `MachineEdge` | data | yes | `mode` | `mode` | `!MachineEdgeMode` | `(.mode)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:212` | `MachineEdge` | data | yes | `command` | `command` | `!Text` | `(.command)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:213` | `MachineEdge` | data | yes | `events` | `events` | `![Text]` | `(.events)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:221` | `MachineTopology` | data | yes | `ownership` | `ownership` | `!MachineOwnership` | `(.ownership)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:222` | `MachineTopology` | data | yes | `initial` | `initial` | `!Text` | `(.initial)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:223` | `MachineTopology` | data | yes | `states` | `states` | `![MachineState]` | `(.states)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:224` | `MachineTopology` | data | yes | `edges` | `edges` | `![MachineEdge]` | `(.edges)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:285` | `TopologySource` | data | yes | `kind` | `kind` | `!TopologySourceKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:287` | `TopologySource` | data | yes | `path` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:293` | `TopologyMember` | data | yes | `path` | `path` | `!FilePath` | `(.path)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:295` | `TopologyMember` | data | yes | `sha256` | `sha256` | `!Text` | `(.sha256)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:296` | `TopologyMember` | data | yes | `declaredLanguageVersion` | `declaredLanguageVersion` | `!(Maybe Natural)` | `(.declaredLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:297` | `TopologyMember` | data | yes | `effectiveLanguageVersion` | `effectiveLanguageVersion` | `!Natural` | `(.effectiveLanguageVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:302` | `NodeRef` | data | yes | `kind` | `kind` | `!NodeKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:303` | `NodeRef` | data | yes | `name` | `name` | `!Name` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:308` | `TopologyNode` | data | yes | `kind` | `kind` | `!NodeKind` | `(.kind)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:309` | `TopologyNode` | data | yes | `name` | `name` | `!Name` | `(.name)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:310` | `TopologyNode` | data | yes | `context` | `context` | `!Name` | `(.context)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:311` | `TopologyNode` | data | yes | `member` | `member` | `!FilePath` | `(.member)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:312` | `TopologyNode` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:314` | `TopologyNode` | data | yes | `details` | `details` | `!Aeson.Object` | `(.details)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:319` | `TopologyEdge` | data | yes | `from` | `from` | `!NodeRef` | `(.from)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:320` | `TopologyEdge` | data | yes | `to` | `to` | `!NodeRef` | `(.to)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:321` | `TopologyEdge` | data | yes | `relation` | `relation` | `!Relation` | `(.relation)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:322` | `TopologyEdge` | data | yes | `attributes` | `attributes` | `!Aeson.Object` | `(.attributes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:327` | `ServiceTopology` | data | yes | `service` | `service` | `!Text` | `(.service)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:328` | `ServiceTopology` | data | yes | `source` | `source` | `!TopologySource` | `(.source)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:329` | `ServiceTopology` | data | yes | `languageContract` | `languageContract` | `!EffectiveLanguageContract` | `(.languageContract)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:330` | `ServiceTopology` | data | yes | `generatorVersion` | `generatorVersion` | `!Text` | `(.generatorVersion)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:331` | `ServiceTopology` | data | yes | `members` | `members` | `![TopologyMember]` | `(.members)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:332` | `ServiceTopology` | data | yes | `nodes` | `nodes` | `![TopologyNode]` | `(.nodes)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Topology.hs:333` | `ServiceTopology` | data | yes | `edges` | `edges` | `![TopologyEdge]` | `(.edges)`, pattern, or construction | serialized/wire review risk, rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:39` | `TransitionFamilyKey` | data | yes | `familyMode` | `mode` | `!TransitionMode` | `(.mode)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:40` | `TransitionFamilyKey` | data | yes | `familySource` | `source` | `!Name` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:41` | `TransitionFamilyKey` | data | yes | `familyCommand` | `command` | `!Name` | `(.command)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:53` | `TransitionFamilyDelta` | data | yes | `familyKey` | `familyKey` | `!TransitionFamilyKey` | `(.familyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:54` | `TransitionFamilyDelta` | data | yes | `oldRemainder` | `oldRemainder` | `![Transition]` | `(.oldRemainder)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:55` | `TransitionFamilyDelta` | data | yes | `newRemainder` | `newRemainder` | `![Transition]` | `(.newRemainder)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:61` | `ReplayBodyKey` | newtype | yes | `unReplayBodyKey` | `unReplayBodyKey` | `Text` | explicit `unReplayBodyKey` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:76` | `ReplayBodyDelta` | data | yes | `bodyFamilyKey` | `bodyFamilyKey` | `!TransitionFamilyKey` | `(.bodyFamilyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:77` | `ReplayBodyDelta` | data | yes | `bodyKey` | `bodyKey` | `!ReplayBodyKey` | `(.bodyKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:78` | `ReplayBodyDelta` | data | yes | `oldBodyMembers` | `oldBodyMembers` | `![Transition]` | `(.oldBodyMembers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:79` | `ReplayBodyDelta` | data | yes | `newBodyMembers` | `newBodyMembers` | `![Transition]` | `(.newBodyMembers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TransitionFamily.hs:80` | `ReplayBodyDelta` | data | yes | `bodyStatus` | `bodyStatus` | `!ReplayBodyStatus` | `(.bodyStatus)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:105` | `QualifiedValueName` | newtype | yes | `unQualifiedValueName` | `unQualifiedValueName` | `Text` | explicit `unQualifiedValueName` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:111` | `CanonicalTypeId` | newtype | yes | `unCanonicalTypeId` | `unCanonicalTypeId` | `Text` | explicit `unCanonicalTypeId` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:117` | `BindingVersion` | newtype | yes | `unBindingVersion` | `unBindingVersion` | `Text` | explicit `unBindingVersion` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:123` | `CodecIdentity` | newtype | yes | `unCodecIdentity` | `unCodecIdentity` | `Text` | explicit `unCodecIdentity` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:129` | `CodecVersion` | newtype | yes | `unCodecVersion` | `unCodecVersion` | `Text` | explicit `unCodecVersion` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:185` | `ConsumerNominalBinding` | data | yes | `haskell` | `haskell` | `!HaskellSource` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:186` | `ConsumerNominalBinding` | data | yes | `binding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:187` | `ConsumerNominalBinding` | data | yes | `bindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:188` | `ConsumerNominalBinding` | data | yes | `canonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:189` | `ConsumerNominalBinding` | data | yes | `fixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:190` | `ConsumerNominalBinding` | data | yes | `initial` | `initial` | `!(Maybe QualifiedValueName)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:206` | `NominalLeaf` | data | yes | `name` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:207` | `NominalLeaf` | data | yes | `kind` | `kind` | `!NominalLeafKind` | `(.kind)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:208` | `NominalLeaf` | data | yes | `ownership` | `ownership` | `!NominalLeafOwnership` | `(.ownership)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:209` | `NominalLeaf` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:223` | `NominalLeafError` | newtype | yes | `nominalLeafIssues` | `nominalLeafIssues` | `NonEmpty NominalLeafIssue` | `(.nominalLeafIssues)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:345` | `LiftVersion` | newtype | yes | `unLiftVersion` | `unLiftVersion` | `Text` | explicit `unLiftVersion` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:352` | `MappedWriteLift` | data | yes | `source` | `source` | `!LiftSource` | `(.source)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:353` | `MappedWriteLift` | data | yes | `function` | `function` | `!QualifiedValueName` | `(.function)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:354` | `MappedWriteLift` | data | yes | `version` | `version` | `!LiftVersion` | `(.version)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:355` | `MappedWriteLift` | data | yes | `fixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:356` | `MappedWriteLift` | data | yes | `loc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:388` | `StructuralDecl` | data | yes | `sdName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:389` | `StructuralDecl` | data | yes | `sdHaskell` | `haskell` | `!HaskellSource` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:390` | `StructuralDecl` | data | yes | `sdBinding` | `binding` | `!QualifiedValueName` | `(.binding)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:391` | `StructuralDecl` | data | yes | `sdBindingVersion` | `bindingVersion` | `!BindingVersion` | `(.bindingVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:392` | `StructuralDecl` | data | yes | `sdCanonical` | `canonical` | `!CanonicalTypeId` | `(.canonical)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:393` | `StructuralDecl` | data | yes | `sdFixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:394` | `StructuralDecl` | data | yes | `sdInitial` | `initial` | `!(Maybe QualifiedValueName)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:395` | `StructuralDecl` | data | yes | `writeLift` | `writeLift` | `!(Maybe MappedWriteLift)` | `(.writeLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:396` | `StructuralDecl` | data | yes | `sdLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:401` | `OpaqueDecl` | data | yes | `odName` | `name` | `!Name` | `(.name)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:402` | `OpaqueDecl` | data | yes | `odHaskell` | `haskell` | `!HaskellSource` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:403` | `OpaqueDecl` | data | yes | `odCodecIdentity` | `codecIdentity` | `!CodecIdentity` | `(.codecIdentity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:404` | `OpaqueDecl` | data | yes | `odCodecVersion` | `codecVersion` | `!CodecVersion` | `(.codecVersion)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:405` | `OpaqueDecl` | data | yes | `writeLift` | `writeLift` | `!(Maybe MappedWriteLift)` | `(.writeLift)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:406` | `OpaqueDecl` | data | yes | `odFixtures` | `fixtures` | `!QualifiedValueName` | `(.fixtures)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:407` | `OpaqueDecl` | data | yes | `odInitial` | `initial` | `!(Maybe QualifiedValueName)` | `(.initial)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:408` | `OpaqueDecl` | data | yes | `odLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:490` | `MappedKey` | newtype | yes | `unMappedKey` | `unMappedKey` | `Name` | explicit `unMappedKey` positional function | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:515` | `ResolvedWireField` | data | yes | `rwfHaskell` | `haskell` | `!Name` | `(.haskell)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:516` | `ResolvedWireField` | data | yes | `rwfKey` | `key` | `!Text` | `(.key)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:517` | `ResolvedWireField` | data | yes | `rwfType` | `valueType` | `!ResolvedTypeExpr` | `(.valueType)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:518` | `ResolvedWireField` | data | yes | `rwfPresence` | `presence` | `!Presence` | `(.presence)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:519` | `ResolvedWireField` | data | yes | `rwfOnMissing` | `onMissing` | `!(Maybe OnMissing)` | `(.onMissing)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:520` | `ResolvedWireField` | data | yes | `rwfLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:525` | `ResolvedWireArm` | data | yes | `rwaCtor` | `ctor` | `!Name` | `(.ctor)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:526` | `ResolvedWireArm` | data | yes | `rwaTag` | `tag` | `!Text` | `(.tag)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:527` | `ResolvedWireArm` | data | yes | `rwaPayload` | `payload` | `!(Maybe ResolvedTypeExpr)` | `(.payload)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:528` | `ResolvedWireArm` | data | yes | `rwaLoc` | `loc` | `!Loc` | `(.loc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:565` | `UseSite` | data | yes | `root` | `root` | `!RootRef` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:566` | `UseSite` | data | yes | `mappedKey` | `mappedKey` | `!MappedKey` | `(.mappedKey)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:571` | `NominalRootSite` | data | yes | `root` | `root` | `!RootRef` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:572` | `NominalRootSite` | data | yes | `nominal` | `nominal` | `!Name` | `(.nominal)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:573` | `NominalRootSite` | data | yes | `segments` | `segments` | `![PathSeg]` | `(.segments)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:589` | `UsePath` | data | yes | `upRoot` | `root` | `!RootRef` | `(.root)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:590` | `UsePath` | data | yes | `upSegments` | `segments` | `![PathSeg]` | `(.segments)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Ord, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:610` | `TypeGraph` | data | yes | `tgDeclarations` | `declarations` | `!(Map MappedKey ResolvedMappedDecl)` | `(.declarations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:611` | `TypeGraph` | data | yes | `tgReachability` | `reachability` | `!(Map MappedKey (Set MappedKey))` | `(.reachability)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:612` | `TypeGraph` | data | yes | `nominalLeaves` | `nominalLeaves` | `!(Map Name NominalLeaf)` | `(.nominalLeaves)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:613` | `TypeGraph` | data | yes | `unsupportedNominalLeafKinds` | `unsupportedNominalLeafKinds` | `!(Map Name Text)` | `(.unsupportedNominalLeafKinds)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:614` | `TypeGraph` | data | yes | `nominalReachability` | `nominalReachability` | `!(Map MappedKey (Set Name))` | `(.nominalReachability)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:615` | `TypeGraph` | data | yes | `tgUseSites` | `useSites` | `![UseSite]` | `(.useSites)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:616` | `TypeGraph` | data | yes | `nominalRootSites` | `nominalRootSites` | `![NominalRootSite]` | `(.nominalRootSites)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:617` | `TypeGraph` | data | yes | `tgRootSegments` | `rootSegments` | `!(Map UseSite [PathSeg])` | `(.rootSegments)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:618` | `TypeGraph` | data | yes | `tgDerivedMappedConsumers` | `derivedMappedConsumers` | `![DerivedMappedConsumer]` | `(.derivedMappedConsumers)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:619` | `TypeGraph` | data | yes | `tgReplayableProjectionGroups` | `replayableProjectionGroups` | `!(Map DerivedMappedConsumer Name)` | `(.replayableProjectionGroups)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:620` | `TypeGraph` | data | yes | `tgProjectionOperationalIdentities` | `projectionOperationalIdentities` | `!(Map DerivedMappedConsumer Text)` | `(.projectionOperationalIdentities)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:621` | `TypeGraph` | data | yes | `tgUnsupportedProjectionSources` | `unsupportedProjectionSources` | `![UnsupportedProjectionSource]` | `(.unsupportedProjectionSources)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show, Generic)` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1270` | `TypeExprAlgebra` | data | yes | `onText` | `onText` | `a` | `(.onText)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1271` | `TypeExprAlgebra` | data | yes | `onInt` | `onInt` | `a` | `(.onInt)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1272` | `TypeExprAlgebra` | data | yes | `onInteger` | `onInteger` | `a` | `(.onInteger)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1273` | `TypeExprAlgebra` | data | yes | `onBool` | `onBool` | `a` | `(.onBool)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1274` | `TypeExprAlgebra` | data | yes | `onNatural` | `onNatural` | `a` | `(.onNatural)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1275` | `TypeExprAlgebra` | data | yes | `onTime` | `onTime` | `a` | `(.onTime)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1276` | `TypeExprAlgebra` | data | yes | `onDay` | `onDay` | `a` | `(.onDay)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1277` | `TypeExprAlgebra` | data | yes | `onTextSet` | `onTextSet` | `a` | `(.onTextSet)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1278` | `TypeExprAlgebra` | data | yes | `onJson` | `onJson` | `a` | `(.onJson)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1279` | `TypeExprAlgebra` | data | yes | `onOptional` | `onOptional` | `a -> a` | `(.onOptional)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1280` | `TypeExprAlgebra` | data | yes | `onList` | `onList` | `a -> a` | `(.onList)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1281` | `TypeExprAlgebra` | data | yes | `onMap` | `onMap` | `a -> a` | `(.onMap)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1282` | `TypeExprAlgebra` | data | yes | `onKeyedMap` | `onKeyedMap` | `NominalLeaf -> a -> a` | `(.onKeyedMap)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1283` | `TypeExprAlgebra` | data | yes | `onRef` | `onRef` | `MappedKey -> a` | `(.onRef)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1284` | `TypeExprAlgebra` | data | yes | `onNominal` | `onNominal` | `NominalLeaf -> a` | `(.onNominal)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1306` | `MappedShapeAlgebra` | data | yes | `onRecord` | `onRecord` | `Name -> UnknownFields -> [ResolvedWireField] -> a` | `(.onRecord)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1307` | `MappedShapeAlgebra` | data | yes | `onEnum` | `onEnum` | `[WireEnum] -> a` | `(.onEnum)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1308` | `MappedShapeAlgebra` | data | yes | `onUnion` | `onUnion` | `UnionEncoding -> [ResolvedWireArm] -> a` | `(.onUnion)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1309` | `MappedShapeAlgebra` | data | yes | `onBare` | `onBare` | `ResolvedTypeExpr -> a` | `(.onBare)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1310` | `MappedShapeAlgebra` | data | yes | `onRefined` | `onRefined` | `RefinedWirePolicy -> a` | `(.onRefined)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1322` | `MappedDeclAlgebra` | data | yes | `onStructuralDecl` | `onStructuralDecl` | `StructuralDecl -> ResolvedMappedShape -> a` | `(.onStructuralDecl)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/TypeGraph.hs:1323` | `MappedDeclAlgebra` | data | yes | `onOpaqueDecl` | `onOpaqueDecl` | `OpaqueDecl -> a` | `(.onOpaqueDecl)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:786` | `Diagnostic` | data | yes | `line` | `line` | `!Int` | `(.line)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:787` | `Diagnostic` | data | yes | `severity` | `severity` | `!Severity` | `(.severity)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:788` | `Diagnostic` | data | yes | `code` | `code` | `!DiagnosticCode` | `(.code)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:789` | `Diagnostic` | data | yes | `relatedLocations` | `relatedLocations` | `![(Int, Text)]` | `(.relatedLocations)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:790` | `Diagnostic` | data | yes | `message` | `message` | `!Text` | `(.message)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:1753` | `NullabilityFacts` | data | no | `nfTopNull` | `topNull` | `!Bool` | `(.topNull)`, pattern, or construction | rendered/canonical output | `none` |+| `keiro-dsl/src/Keiro/Dsl/Validate.hs:1754` | `NullabilityFacts` | data | no | `nfBadOptional` | `badOptional` | `!Bool` | `(.badOptional)`, pattern, or construction | rendered/canonical output | `none` | | `keiro-dsl/src/Keiro/Dsl/Workspace.hs:140` | `WorkspaceManifest` | data | yes | `wmfService` | `service` | `!Text` | `(.service)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` | | `keiro-dsl/src/Keiro/Dsl/Workspace.hs:141` | `WorkspaceManifest` | data | yes | `wmfServiceLoc` | `serviceLoc` | `!Loc` | `(.serviceLoc)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` | | `keiro-dsl/src/Keiro/Dsl/Workspace.hs:143` | `WorkspaceManifest` | data | yes | `wmfRuntimePackage` | `runtimePackage` | `!(Maybe RuntimePackageName)` | `(.runtimePackage)`, pattern, or construction | rendered/canonical output | `deriving stock (Eq, Show)` |
@@ -17,6 +17,10 @@ } deriving stock (Eq, Show) +-- | Number each transition within its source state, in declaration order.+-- @outgoingIndex@ is the keiki edge index: the position of the transition's+-- edge in @edgesOut@ of its source state. The generated transducer builder,+-- the behavior source map and the topology export all use this one rule. transitionLayout :: [Transition] -> [TransitionLayoutEntry] transitionLayout transitions = snd (mapAccumL buildEntry Map.empty (zip [1 ..] transitions)) where
@@ -231,10 +231,14 @@ "", "import Control.Monad (when)", "import Data.List (group, groupBy, sort, sortOn)",- "import " <> facadeModule <> " (runServiceConformanceChecks, serviceConformanceFacts)",+ "import " <> facadeModule <> " (runServiceBehaviorChecks, runServiceConformanceChecks, serviceConformanceFacts)", "import KeiroConformance.Expectations (expectedServiceConformanceFacts)",- "import System.Exit (exitFailure)",+ "import System.Environment (getArgs, getProgName)",+ "import System.Exit (ExitCode (ExitFailure), exitFailure, exitSuccess, exitWith)",+ "import System.IO (hPutStr, hPutStrLn, stderr)", "",+ "data RunMode = DefaultChecks | BehaviorComplete",+ "", "data FactResult", " = FactMatch String String", " | FactMismatch String String String",@@ -245,15 +249,55 @@ "", "main :: IO ()", "main = do",+ " mode <- getArgs >>= parseArguments", " checks <- runServiceConformanceChecks", " mapM_ renderCheck checks",- " case compareFacts expectedServiceConformanceFacts serviceConformanceFacts of",+ " factsPassed <- case compareFacts expectedServiceConformanceFacts serviceConformanceFacts of", " Left duplicates -> do", " mapM_ (putStrLn . (\"FAIL duplicate conformance fact key: \" <>)) duplicates",- " exitFailure",+ " pure False", " Right facts -> do", " mapM_ renderFact facts",- " when (any (not . snd) checks || any factFailed facts) exitFailure",+ " pure (not (any factFailed facts))",+ " behaviorPassed <- case mode of",+ " DefaultChecks -> pure True",+ " BehaviorComplete -> do",+ " rows <- runServiceBehaviorChecks",+ " mapM_ renderCheck rows",+ " pure (all snd rows)",+ " when (any (not . snd) checks || not factsPassed || not behaviorPassed) exitFailure",+ "",+ "parseArguments :: [String] -> IO RunMode",+ "parseArguments arguments = case arguments of",+ " [] -> pure DefaultChecks",+ " [\"--behavior-complete\"] -> pure BehaviorComplete",+ " [\"--help\"] -> do",+ " usage >>= putStr",+ " exitSuccess",+ " _ -> do",+ " hPutStrLn stderr (\"unrecognized arguments: \" <> unwords arguments)",+ " usage >>= hPutStr stderr",+ " exitWith (ExitFailure 2)",+ "",+ "usage :: IO String",+ "usage = do",+ " program <- getProgName",+ " pure (unlines",+ " [ \"usage: \" <> program <> \" [--behavior-complete | --help]\"",+ " , \"\"",+ " , \"Default: run the generated service checks (structural, read-model, and\"",+ " , \"aggregate harness assertions, including hole-owned initial live edges) and\"",+ " , \"compare service facts with KeiroConformance.Expectations. The default is not\"",+ " , \"a complete witness gate: Pending, missing, duplicate, stale, or failing\"",+ " , \"BehaviorHoles witnesses outside that initial-edge subset do not fail it.\"",+ " , \"\"",+ " , \"--behavior-complete also evaluate every declared behavior key of every\"",+ " , \" aggregate against its BehaviorHoles witnesses and fail\"",+ " , \" on any pending, missing, duplicate, stale, or failed\"",+ " , \" witness. Passing witnesses whose evidence is unverified\"",+ " , \" still pass; this is finite evidence, not a proof.\"",+ " , \"--help print this message and exit.\"",+ " ])", "", "renderCheck :: (String, Bool) -> IO ()", "renderCheck (key, passed) = putStrLn ((if passed then \"PASS \" else \"FAIL \") <> key)",
@@ -171,6 +171,9 @@ | ContextSnapshot | ContextQueue | ContextPublicContract+ | -- | A public-contract change whose candidate reader requires a body key+ -- that producers of the previous contract omit.+ ContextPublicContractReaderTightened | ContextPersistedIdentity | ContextConsumerBuild deriving stock (Eq, Show)@@ -220,6 +223,9 @@ publicContractContext :: Name -> [Text] -> ChangeContext publicContractContext root paths = ChangeContext root paths ContextPublicContract LabelBreaking +publicContractReaderTightenedContext :: Name -> [Text] -> ChangeContext+publicContractReaderTightenedContext root paths = ChangeContext root paths ContextPublicContractReaderTightened LabelBreaking+ persistedIdentityContext :: Name -> [Text] -> ChangeContext persistedIdentityContext root paths = ChangeContext root paths ContextPersistedIdentity LabelBreaking @@ -387,6 +393,10 @@ | code == NominalIdDecoderTightened = replaceConsumerBuild VAdvisory (advisoryVector PrivateHistoryRead Set.empty) | code == ContractTypeIdDomainChanged = contractTypeIdDomainVector+ | code == ContractOptionalFieldAdded = contractOptionalFieldAddedVector+ | code `elem` [ContractFieldChanged, ContractDiscriminatorChanged]+ && (.contextKind) context == ContextPublicContractReaderTightened =+ contractReaderTightenedVector | code == ContractFieldChanged && (.contextKind) context == ContextConsumerBuild = mappedBuildVector | code == IdDomainContractChanged = if (.contextKind) context == ContextGeneral@@ -531,6 +541,20 @@ rollout = Set.fromList [RolloutDrainRequired, RolloutProducerFirst] } +-- | The candidate reader requires a body key that producers of the previous+-- contract omit (an optional field made required, or a body discriminator+-- replacing the envelope). Producers that write the key must deploy first,+-- and retained messages without it must drain before the stricter reader runs.+contractReaderTightenedVector :: CompatibilityVector+contractReaderTightenedVector =+ publicBreakingVector {rollout = Set.fromList [RolloutDrainRequired, RolloutProducerFirst]}++-- | An added optional field is wire-compatible in both directions, but the+-- regenerated payload constructor gains an argument.+contractOptionalFieldAddedVector :: CompatibilityVector+contractOptionalFieldAddedVector =+ publicBreakingVector {publicConsumer = VCompatible, consumerBuild = VAdvisory, rollout = Set.empty}+ mappedWireBreakingCodes :: [DiagnosticCode] mappedWireBreakingCodes = [ MappedFieldAddedNoDefault,@@ -650,6 +674,7 @@ ContextSnapshot -> SnapshotHydration ContextQueue -> PrivateHistoryRead ContextPublicContract -> PublicConsumer+ ContextPublicContractReaderTightened -> PublicConsumer ContextPersistedIdentity -> PersistedIdentity ContextConsumerBuild -> ConsumerBuild ContextGeneral -> PrivateHistoryRead@@ -657,6 +682,7 @@ breakingVectorForContext :: ChangeContext -> CompatibilityVector breakingVectorForContext context = case (.contextKind) context of ContextPublicContract -> publicBreakingVector+ ContextPublicContractReaderTightened -> contractReaderTightenedVector ContextPersistedIdentity -> persistedIdentityBreakingVector ContextQueue -> queueBreakingVector ContextConsumerBuild -> (advisoryVector ConsumerBuild Set.empty) {consumerBuild = VBreaking}@@ -2754,14 +2780,20 @@ | (.schemaVersion) newContract < (.schemaVersion) oldContract ] discriminatorChanges =- [ breaking+ [ breakingIn ((.name) newContract) "discriminator" ((.name) newContract) ContractDiscriminatorChanged- ("discriminator changed " <> (.discriminator) oldContract <> " -> " <> (.discriminator) newContract)+ ("discriminator changed " <> renderContractDiscriminator ((.discriminator) oldContract) <> " -> " <> renderContractDiscriminator ((.discriminator) newContract)) | (.discriminator) oldContract /= (.discriminator) newContract ]+ -- Only a move from the envelope to a body key makes the new reader require+ -- a key the old producers never wrote. A changed body key keeps the+ -- public-contract default.+ breakingIn+ | (.discriminator) oldContract == DiscriminatorEnvelope = breakingAt publicContractReaderTightenedContext+ | otherwise = breaking topicChanges = contractTopicDiff oldContract newContract eventPairs = pairDeclarations (.name) ((.events) oldContract) ((.events) newContract) matchedEvents = (.matched) eventPairs@@ -2844,10 +2876,33 @@ subject ContractFieldChanged (detail <> "; canonical JSON bytes and TypeID admission are unchanged, but generated consumers must rebuild for the declared Haskell type")+ | optionalToRequired = breakingAt publicContractReaderTightenedContext ((.name) newContract) "contract-field" subject ContractFieldChanged (detail <> rebuildDetail) | otherwise = breaking ((.name) newContract) "contract-field" subject ContractFieldChanged (detail <> if oldDomain /= newDomain then renderIdDomainDirection oldDomain newDomain else "") where+ -- An Optional field made required whose present value keeps its exact+ -- bytes and admission: the same scalar, or a literal/declared ID pair+ -- with an equal prefix and admission domain. Only the omitted key is+ -- newly rejected, so producers that write it can deploy first.+ optionalToRequired = case ((.valueType) oldField, (.valueType) newField) of+ (COptional oldScalar, CScalar newScalar) ->+ oldDomain == newDomain+ && ( oldScalar == newScalar+ || ( isLiteralDeclaredTransition (CScalar oldScalar) (CScalar newScalar)+ && isJust oldDomain+ && contractTypePrefix ((.old) env) ((.valueType) oldField) == contractTypePrefix ((.new) env) ((.valueType) newField)+ )+ )+ _ -> False+ rebuildDetail = case ((.valueType) oldField, (.valueType) newField) of+ (COptional oldScalar, CScalar newScalar)+ | oldScalar /= newScalar -> "; present values keep their canonical JSON bytes and TypeID admission, and generated consumers must rebuild for the declared Haskell type"+ _ -> "" subject = (.name) newEvent <> "." <> (.name) newField- detail = "field type changed " <> renderContractType ((.valueType) oldField) <> " -> " <> renderContractType ((.valueType) newField)+ detail = "field type changed " <> renderContractType ((.valueType) oldField) <> " -> " <> renderContractType ((.valueType) newField) <> presenceDirection+ presenceDirection = case (contractIsOptional ((.valueType) oldField), contractIsOptional ((.valueType) newField)) of+ (False, True) -> "; deployed consumers still require the key"+ (True, False) -> "; retained messages that omit the key no longer decode"+ _ -> "" oldDomain = contractFieldIdDomain ((.old) env) (checkedLanguageContract ((.oldService) env)) oldField newDomain = contractFieldIdDomain ((.new) env) (checkedLanguageContract ((.newService) env)) newField literalDeclaredSamePrefix =@@ -2859,6 +2914,8 @@ isLiteralDeclaredTransition (CScalar CDeclaredId {}) (CScalar CTypeId {}) = True isLiteralDeclaredTransition (CList CTypeId {}) (CList CDeclaredId {}) = True isLiteralDeclaredTransition (CList CDeclaredId {}) (CList CTypeId {}) = True+ isLiteralDeclaredTransition (COptional CTypeId {}) (COptional CDeclaredId {}) = True+ isLiteralDeclaredTransition (COptional CDeclaredId {}) (COptional CTypeId {}) = True isLiteralDeclaredTransition _ _ = False selectorFieldChanges = [ fieldSelectorChange@@ -2888,18 +2945,26 @@ (.wireKey) (resolveContractFieldIdentity oldField) /= (.wireKey) (resolveContractFieldIdentity newField) ]- addedFieldChanges =- [ if (.schemaVersion) newContract > (.schemaVersion) oldContract- then advisory ((.name) newContract) "contract-field" subject ContractSchemaVersionBumped ("field added with schemaVersion bump " <> tInt ((.schemaVersion) oldContract) <> " -> " <> tInt ((.schemaVersion) newContract) <> "; coordinate the cross-service rollout")- else breaking ((.name) newContract) "contract-field" subject ContractFieldChanged "field added without a schemaVersion bump; older in-flight messages do not contain it"- | field <- (.added) fieldPairs,- let subject = (.name) newEvent <> "." <> (.name) field- ]+ addedFieldChanges = map addedFieldChange ((.added) fieldPairs)+ addedFieldChange field+ | contractIsOptional ((.valueType) field) =+ advisory ((.name) newContract) "contract-field" subject ContractOptionalFieldAdded "optional field added; older messages omit the key and older consumers ignore it, but the regenerated payload constructor gains a Maybe argument"+ | (.schemaVersion) newContract > (.schemaVersion) oldContract =+ advisory ((.name) newContract) "contract-field" subject ContractSchemaVersionBumped ("field added with schemaVersion bump " <> tInt ((.schemaVersion) oldContract) <> " -> " <> tInt ((.schemaVersion) newContract) <> "; coordinate the cross-service rollout")+ | otherwise =+ breaking ((.name) newContract) "contract-field" subject ContractFieldChanged "field added without a schemaVersion bump; older in-flight messages do not contain it"+ where+ subject = (.name) newEvent <> "." <> (.name) field renderContractType :: ContractType -> Text renderContractType (CScalar scalar) = renderContractScalar scalar renderContractType (CList scalar) = "List " <> renderContractScalar scalar+renderContractType (COptional scalar) = "Optional " <> renderContractScalar scalar +renderContractDiscriminator :: ContractDiscriminator -> Text+renderContractDiscriminator (DiscriminatorBodyKey key) = key+renderContractDiscriminator DiscriminatorEnvelope = "from envelope"+ renderContractScalar :: ContractScalarType -> Text renderContractScalar (CTypeId prefix) = "typeid '" <> prefix <> "'" renderContractScalar (CDeclaredId name) = name@@ -3675,6 +3740,12 @@ advisoryAt context n facet subj code detail = mkChange LabelAdvisory context n facet subj code detail +-- | A breaking change whose context is chosen by the caller from the shape+-- of the change rather than from the code alone.+breakingAt :: (Name -> [Text] -> ChangeContext) -> Name -> Text -> Text -> DiagnosticCode -> Text -> Change+breakingAt contextAt n facet subj code detail =+ mkChange LabelBreaking (contextAt n [pathFor n facet subj]) n facet subj code detail+ mkChange :: Label -> ChangeContext -> Name -> Text -> Text -> DiagnosticCode -> Text -> Change mkChange label context n facet subj code detail = wrap@@ -3722,6 +3793,7 @@ ContractSchemaVersionDecreased, ContractSchemaVersionBumped, ContractEventAdded,+ ContractOptionalFieldAdded, ContractTopicAdded ] queueCodes = [WqPayloadFieldChanged, WqOrderingChanged, WqProvisionChanged, WqGroupKeyChanged, QueueIdentityChanged]
@@ -68,6 +68,8 @@ | RemedyRunContractConformance | RemedyDrainWorkqueue | RemedyTransitionalQueueCodec+ | RemedyDeployKeyWritersFirst+ | RemedyDrainBeforeStricterReader deriving stock (Eq, Show) data DiffReport = DiffReport@@ -306,8 +308,10 @@ | code == MappedDeclAdded = RemedyRunConformance :| [] | code `elem` eventDecodeCodes = RemedyVersionBump :| [RemedyUpcaster, RemedyDeploymentOrder RolloutStopTheWorld]+ | code == ContractOptionalFieldAdded =+ RemedyRescaffoldContractConsumers :| [RemedyRunContractConformance] | code `elem` contractCodes =- RemedyContractRevision :| [RemedyDeploymentOrder RolloutProducerLast]+ RemedyContractRevision :| contractRolloutRemedies | code `elem` queueCodes = RemedyDeploymentOrder RolloutWorkersFirst :| [RemedyDrainWorkqueue, RemedyTransitionalQueueCodec, RemedyRunConformance] | code `elem` identityCodes =@@ -325,6 +329,14 @@ firstRollout = case Set.toAscList ((.rollout) vector) of rollout : _ -> Just rollout [] -> Nothing+ -- Render the vector's ordering. A vector without an ordering keeps the+ -- historical producer-last advice.+ contractRolloutRemedies+ | Set.member RolloutProducerFirst ((.rollout) vector) =+ RemedyDeploymentOrder RolloutProducerFirst+ : RemedyDeployKeyWritersFirst+ : [RemedyDrainBeforeStricterReader | Set.member RolloutDrainRequired ((.rollout) vector)]+ | otherwise = [RemedyDeploymentOrder RolloutProducerLast] snapshotRemedy | (.snapshotHydration) vector == VAdvisory = RemedyStateCodecBump | otherwise = RemedyRunConformance@@ -432,6 +444,8 @@ RemedyRunContractConformance -> "run contract conformance" RemedyDrainWorkqueue -> "drain incompatible queued jobs before deployment" RemedyTransitionalQueueCodec -> "supply an application-owned transitional queue codec when draining is impossible"+ RemedyDeployKeyWritersFirst -> "deploy every producer that writes the newly required key before any consumer runs the stricter reader"+ RemedyDrainBeforeStricterReader -> "drain or migrate retained messages that omit the key before deploying the stricter reader" renderFinding :: Change -> Text renderFinding change =
@@ -72,6 +72,7 @@ -- * The process + timer nodes (EP-3) FieldBinding (..), InputDecl (..),+ InputSource (..), CorrelateDecl (..), SagaRef (..), Disp (..),@@ -115,6 +116,9 @@ ContractType (..), contractScalar, contractIsList,+ contractIsOptional,+ ContractDiscriminator (..),+ contractBodyDiscriminator, ContractField (..), ContractEvent (..), ContractNode (..),@@ -761,10 +765,23 @@ { name :: !Name, fields :: ![Field], valueType :: !(Maybe TypeExpr),+ -- | Candidate Language 6: the intake that feeds this input+ -- (@from intake <Intake> event <Event>+@). Checked documentation only: it+ -- takes no part in generated code, fingerprints, ledgers or diff.+ source :: !(Maybe InputSource), loc :: !Loc } deriving stock (Eq, Show, Generic) +-- | @from intake hospitalInbox event HospitalCapacitySnapshotPublished@: the+-- intake whose accepted contract events the input is built from.+data InputSource = InputFromIntake+ { intake :: !Name,+ events :: !(NonEmpty Name),+ loc :: !Loc+ }+ deriving stock (Eq, Show, Generic)+ -- | @correlate input.hospitalId via idText@ — the correlation key (hole-kind 1 -- derivation + hole-kind 4 field-source). data CorrelateDecl = CorrelateDecl@@ -1084,18 +1101,41 @@ data ContractScalarType = CTypeId !Text | CDeclaredId !Name | CText | CInt deriving stock (Eq, Show, Generic) --- | A scalar or a list of one scalar; nesting is unrepresentable.-data ContractType = CScalar !ContractScalarType | CList !ContractScalarType+-- | A required scalar, a list of one scalar, or an optional scalar; nesting is+-- unrepresentable. An optional value is an omitted key on the wire and decodes+-- from an omitted key or an explicit @null@ (ExecPlan 345 / IR-64).+data ContractType+ = CScalar !ContractScalarType+ | CList !ContractScalarType+ | COptional !ContractScalarType deriving stock (Eq, Show, Generic) contractScalar :: ContractType -> ContractScalarType contractScalar (CScalar scalar) = scalar contractScalar (CList scalar) = scalar+contractScalar (COptional scalar) = scalar contractIsList :: ContractType -> Bool contractIsList CList {} = True contractIsList CScalar {} = False+contractIsList COptional {} = False +contractIsOptional :: ContractType -> Bool+contractIsOptional COptional {} = True+contractIsOptional CScalar {} = False+contractIsOptional CList {} = False++-- | Where a contract payload's event type comes from: a key in the JSON body+-- (@discriminator messageType@), or the envelope's event type+-- (@discriminator from envelope@, ExecPlan 345 / IR-64).+data ContractDiscriminator = DiscriminatorBodyKey !Name | DiscriminatorEnvelope+ deriving stock (Eq, Show, Generic)++contractBodyDiscriminator :: ContractNode -> Maybe Name+contractBodyDiscriminator contract = case (.discriminator) contract of+ DiscriminatorBodyKey key -> Just key+ DiscriminatorEnvelope -> Nothing+ data ContractField = ContractField { name :: !Name, selector :: !(Maybe Name),@@ -1119,7 +1159,7 @@ data ContractNode = ContractNode { name :: !Name, schemaVersion :: !Int,- discriminator :: !Name,+ discriminator :: !ContractDiscriminator, -- | (topic alias, real Kafka topic string) topics :: ![(Name, Text)], events :: ![ContractEvent],
@@ -322,7 +322,7 @@ profileV5 = SyntaxProfile "keiro-dsl/syntax-profile/5"- (Set.insert MappedRegisterConstructionSyntax $ Set.insert ContractListFieldSyntax (Set.insert ExplicitIdAdmissionDomainSyntax (Set.insert RefinedBase16Syntax (Set.insert TextSetSyntax (Set.insert CalendarDaySyntax (Set.insert BareStructuralMappingSyntax (Set.insert WorkqueueFifoHeadsSyntax (Set.insert KeyedMapSyntax (Set.insert ContractDeclaredIdSyntax (Set.insert ProcessReactionSyntax (Set.insert DelegatedInboxSyntax ((.features) profileV4))))))))))))+ (Set.insert ContractEnvelopeDiscriminatorSyntax $ Set.insert ContractOptionalFieldSyntax $ Set.insert InputSourceSyntax $ Set.insert MappedRegisterConstructionSyntax $ Set.insert ContractListFieldSyntax (Set.insert ExplicitIdAdmissionDomainSyntax (Set.insert RefinedBase16Syntax (Set.insert TextSetSyntax (Set.insert CalendarDaySyntax (Set.insert BareStructuralMappingSyntax (Set.insert WorkqueueFifoHeadsSyntax (Set.insert KeyedMapSyntax (Set.insert ContractDeclaredIdSyntax (Set.insert ProcessReactionSyntax (Set.insert DelegatedInboxSyntax ((.features) profileV4)))))))))))) runtimeProfileV1 :: RuntimeSemanticsProfile runtimeProfileV1 =@@ -418,6 +418,9 @@ | ExplicitIdAdmissionDomainSyntax | MappedRegisterConstructionSyntax | ContractListFieldSyntax+ | InputSourceSyntax+ | ContractOptionalFieldSyntax+ | ContractEnvelopeDiscriminatorSyntax deriving stock (Eq, Ord, Show) -- | The first released contract that owns each grammar feature.
@@ -11,7 +11,7 @@ import Data.Text qualified as T import Keiro.Dsl.Frontend.Internal (FrontendContext) import Keiro.Dsl.Grammar-import Keiro.Dsl.LanguageVersion (LanguageFeature (DeclarativeRouterSelectionSyntax, ProcessReactionSyntax))+import Keiro.Dsl.LanguageVersion (LanguageFeature (DeclarativeRouterSelectionSyntax, InputSourceSyntax, ProcessReactionSyntax)) import Keiro.Dsl.Parser.Core import Keiro.Dsl.Parser.Expression (pExpr) import Keiro.Dsl.Parser.Mapped (pMappedTypeExpr)@@ -30,7 +30,7 @@ pid <- ident keyword "name" nm <- stringLit- (processBody, corr, saga, tgt, projs, rejected, poison, reactionSpans) <- try (pReactionProcessBody context) <|> pLegacyProcessBody+ (processBody, corr, saga, tgt, projs, rejected, poison, reactionSpans) <- try (pReactionProcessBody context) <|> pLegacyProcessBody context let processNode = ProcessNode { id = pid,@@ -50,9 +50,9 @@ ] pure (processNode, elements) -pLegacyProcessBody :: P (ProcessBody, CorrelateDecl, SagaRef, Name, [Name], PolicyChoice, PolicyChoice, [(Name, Int, SourceSpan)])-pLegacyProcessBody = do- inp <- pInputDecl+pLegacyProcessBody :: FrontendContext -> P (ProcessBody, CorrelateDecl, SagaRef, Name, [Name], PolicyChoice, PolicyChoice, [(Name, Int, SourceSpan)])+pLegacyProcessBody context = do+ inp <- pInputDecl context corr <- pCorrelate saga <- pSaga keyword "target"@@ -72,7 +72,7 @@ versionLoc <- getLoc keyword "version" reactionVersion <- fromIntegral <$> boundedDecimal- inputs <- NE.fromList <$> some pInputDecl+ inputs <- NE.fromList <$> some (pInputDecl context) corr <- pCorrelate saga <- pSaga keyword "target"@@ -408,28 +408,44 @@ PolSkip <$ keyword "skip" ] -pInputDecl :: P InputDecl-pInputDecl = do+pInputDecl :: FrontendContext -> P InputDecl+pInputDecl context = do loc <- getLoc keyword "input" nm <- ident+ source <- pOptionalInputSource context fs <- braces (many pField)- pure InputDecl {name = nm, fields = fs, valueType = Nothing, loc = loc}+ pure InputDecl {name = nm, fields = fs, valueType = Nothing, source = source, loc = loc} pRouterInputDecl :: FrontendContext -> P (InputDecl, Maybe SourceSpan) pRouterInputDecl context = do loc <- getLoc keyword "input" name <- ident+ source <- pOptionalInputSource context choice [ do marker <- withOwnedSpan (symbol ":") inputType <- pMappedTypeExpr context- pure (InputDecl {name = name, fields = [], valueType = Just inputType, loc = loc}, Just (spanOf marker)),+ pure (InputDecl {name = name, fields = [], valueType = Just inputType, source = source, loc = loc}, Just (spanOf marker)), do fields <- braces (many pField)- pure (InputDecl {name = name, fields = fields, valueType = Nothing, loc = loc}, Nothing)+ pure (InputDecl {name = name, fields = fields, valueType = Nothing, source = source, loc = loc}, Nothing) ]++-- | Candidate Language 6 @from intake <Intake> event <Event>+@ between an+-- input's name and its body. @from@, @intake@ and @event@ are contextual: an+-- input name followed directly by @{@ or @:@ parses exactly as before, and a+-- predecessor language reports the version requirement at @from@.+pOptionalInputSource :: FrontendContext -> P (Maybe InputSource)+pOptionalInputSource context =+ optionalLanguageFeature context InputSourceSyntax "from" $ do+ loc <- getLoc+ try (keyword "from" *> keyword "intake")+ intakeName <- ident+ keyword "event"+ events <- some ident+ pure InputFromIntake {intake = intakeName, events = NE.fromList events, loc = loc} pCorrelate :: P CorrelateDecl pCorrelate = do
@@ -9,7 +9,7 @@ import Keiro.Dsl.Frontend.Internal (FrontendContext) import Keiro.Dsl.Grammar-import Keiro.Dsl.LanguageVersion (LanguageFeature (ContractDeclaredIdSyntax, ContractListFieldSyntax, DelegatedInboxSyntax, FieldAliasSyntax))+import Keiro.Dsl.LanguageVersion (LanguageFeature (ContractDeclaredIdSyntax, ContractEnvelopeDiscriminatorSyntax, ContractListFieldSyntax, ContractOptionalFieldSyntax, DelegatedInboxSyntax, FieldAliasSyntax)) import Keiro.Dsl.Parser.Core import Text.Megaparsec @@ -25,7 +25,16 @@ keyword "schemaVersion" sv <- boundedDecimal keyword "discriminator"- disc <- ident+ disc <-+ choice+ [ do+ -- `from` is reserved, so it can never be a body discriminator key.+ fromKeyword <- withOwnedSpan (keyword "from")+ requireLanguageFeatureAt context ContractEnvelopeDiscriminatorSyntax (spanOf fromKeyword)+ keyword "envelope"+ pure DiscriminatorEnvelope,+ DiscriminatorBodyKey <$> ident+ ] topics <- many pTopic events <- many pContractEvent _ <- symbol "}"@@ -70,13 +79,19 @@ listKeyword <- withOwnedSpan (keyword "List") requireLanguageFeatureAt context ContractListFieldSyntax (spanOf listKeyword) CList <$> pContractScalarType,+ do+ -- `Optional` alone still names a declared ID, as `List` does.+ _ <- try (lookAhead (keyword "Optional" *> notFollowedBy pContractTypeBoundary))+ optionalKeyword <- withOwnedSpan (keyword "Optional")+ requireLanguageFeatureAt context ContractOptionalFieldSyntax (spanOf optionalKeyword)+ COptional <$> pContractScalarType, CScalar <$> pContractScalarType ] offset <- getOffset boundary <- optional (try (lookAhead pContractTypeBoundary)) case boundary of Just () -> pure ty- Nothing -> failAt offset "contract field types admit typeid \"prefix\", text, int, a declared id, or List of one of those; nested containers, Optional, Map, and Set applications and records are not supported in public contracts"+ Nothing -> failAt offset "contract field types admit typeid \"prefix\", text, int, a declared id, List of one of those, or Optional of one of those; nested containers, Optional List, List Optional, Map, and Set applications and records are not supported in public contracts" -- Fields may be adjacent on one line. Only a complete field head, including -- its aliases, proves the next identifier is not a list operand. This probe -- deliberately has no feature gates or dependency on declared ID names.
@@ -672,12 +672,14 @@ vsep $ [ "contract" <+> pretty ((.name) c) <+> "{", indent 2 ("schemaVersion" <+> pretty ((.schemaVersion) c)),- indent 2 ("discriminator" <+> pretty ((.discriminator) c))+ indent 2 ("discriminator" <+> docDiscriminator ((.discriminator) c)) ] ++ map (indent 2 . docTopic) ((.topics) c) ++ map (indent 2 . docContractEvent) ((.events) c) ++ ["}"] where+ docDiscriminator (DiscriminatorBodyKey key) = pretty key+ docDiscriminator DiscriminatorEnvelope = "from envelope" docTopic (alias, t) = "topic" <+> pretty alias <+> dquoted t docContractEvent e = vsep $@@ -694,6 +696,7 @@ <+> docContractType ((.valueType) f) docContractType (CScalar scalar) = docContractScalar scalar docContractType (CList scalar) = "List" <+> docContractScalar scalar+ docContractType (COptional scalar) = "Optional" <+> docContractScalar scalar docContractScalar (CTypeId p) = "typeid" <+> dquoted p docContractScalar (CDeclaredId name) = pretty name docContractScalar CText = "text"@@ -889,8 +892,14 @@ docInput :: InputDecl -> Doc ann docInput input = case (.valueType) input of- Just inputType -> "input" <+> pretty ((.name) input) <+> ":" <+> docTypeExpr inputType- Nothing -> "input" <+> pretty ((.name) input) <+> braced (map docField ((.fields) input))+ Just inputType -> header <+> ":" <+> docTypeExpr inputType+ Nothing -> header <+> braced (map docField ((.fields) input))+ where+ header = "input" <+> pretty ((.name) input) <> maybe mempty ((" " <>) . docInputSource) ((.source) input)++docInputSource :: InputSource -> Doc ann+docInputSource source =+ "from intake" <+> pretty ((.intake) source) <+> "event" <+> hsep (map pretty (NE.toList ((.events) source))) docCorrelate :: CorrelateDecl -> Doc ann docCorrelate c = "correlate" <+> ("input." <> pretty ((.field) c)) <+> "via" <+> pretty ((.via) c)
@@ -42,6 +42,7 @@ generatedIdSampleHaskell, scaffoldReplayAudit, scaffoldInspection,+ aggregateStreamCategory, scaffoldStructural, scaffoldStructuralForService, scaffoldStructuralOwners,@@ -52,6 +53,7 @@ bindingSkeletonOwners, scaffoldAggregateForService, scaffoldAggregate,+ aggregateHasBehaviorContract, obsoleteGeneratedOutputHooks, obsoleteGeneratedOutputHooksForService, scaffoldProcess,@@ -3273,6 +3275,7 @@ " , behaviorConformancePassed", " , behaviorConformancePassedWith", " , renderBehaviorConformanceText",+ " , behaviorConformanceRows", " ) where", "", "import " <> (.genPrefix) aggregate <> ".Codec (encode" <> name <> "Event, parse" <> name <> "Event, " <> valueStem <> "Codec)",@@ -3455,6 +3458,32 @@ " , countLine \"unverified\" report.reportUnverified", " ] <> T.unlines [\"FAIL \" <> unBehaviorKey behaviorFailure.failureKey <> \" \" <> behaviorFailure.failureSubject <> \" [\" <> behaviorFailure.failureCode <> \"] \" <> behaviorFailure.failureDetail | behaviorFailure <- report.reportFailed]", "",+ "-- | One single-line check row per pending, missing, duplicate, and stale key",+ "-- and per failed witness, then one summary row carrying the report policy.",+ "-- Unverified keys are not failures under 'behaviorConformancePassed'.",+ "behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]",+ "behaviorConformanceRows report =",+ " keyRows \"pending\" report.reportPending",+ " <> keyRows \"missing\" report.reportMissing",+ " <> keyRows \"duplicate\" report.reportDuplicate",+ " <> keyRows \"stale\" report.reportStale",+ " <> [(\"failed/\" <> unBehaviorKey behaviorFailure.failureKey <> \" \" <> behaviorFailure.failureSubject <> \" [\" <> behaviorFailure.failureCode <> \"] \" <> behaviorFailure.failureDetail, False) | behaviorFailure <- report.reportFailed]",+ " <> [(summary, behaviorConformancePassed report)]",+ " where",+ " keyRows category keys = [(category <> \"/\" <> unBehaviorKey key, False) | key <- keys]",+ " summary =",+ " \"summary\"",+ " <> countField \"required\" report.reportRequired",+ " <> countField \"filled\" report.reportFilled",+ " <> countField \"pending\" report.reportPending",+ " <> countField \"missing\" report.reportMissing",+ " <> countField \"duplicate\" report.reportDuplicate",+ " <> countField \"stale\" report.reportStale",+ " <> \" failed=\" <> tshow (length report.reportFailed)",+ " <> countField \"verified\" report.reportVerified",+ " <> countField \"unverified\" report.reportUnverified",+ " countField label values = \" \" <> label <> \"=\" <> tshow (length values)",+ "", "runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure ()", "runWitness requirement witness = case witness of", " Pending _ -> failure requirement \"pending\" \"witness is still Pending\"",@@ -3752,20 +3781,16 @@ behaviorEdgeIndex aggregate requirement = case (.origin) requirement of Behavior.RejectionRequirementOrigin {} -> Nothing Behavior.TransitionRequirementOrigin originAggregate (SourceIndex.TransitionOrdinal ordinal) -> do- transition <- case drop ordinal ((.transitions) aggregate) of+ -- The keiki edge index is the shared layout rule the transducer builder+ -- and the topology export both use ('transitionLayout').+ entry <- case drop ordinal (transitionLayout ((.transitions) aggregate)) of candidate : _ -> Just candidate [] -> Nothing+ let transition = (.transition) entry if originAggregate == (.name) aggregate && (.source) transition == (.source) requirement && (.command) transition == (.command) requirement- then- Just- ( length- [ ()- | candidate <- take ordinal ((.transitions) aggregate),- (.source) candidate == (.source) transition- ]- )+ then Just ((.outgoingIndex) entry) else Nothing behaviorRequirementsFor :: Agg -> [Behavior.BehaviorRequirement]@@ -4082,7 +4107,7 @@ -- contract whose every field is one never uses (.:) and would warn -- under -Wunused-imports. "import Data.Aeson ("- <> T.intercalate ", " (["Value", "object", "withObject", "withText"] <> ["(.:)" | usesPlainFieldDecode] <> ["parseJSON" | hasListFields] <> ["(.=)"])+ <> T.intercalate ", " (["Value", "object", "withObject"] <> ["withText" | isJust bodyDiscriminator] <> ["(.:)" | usesPlainFieldDecode] <> ["(.:?)" | usesPlainOptionalDecode] <> ["parseJSON" | hasListFields] <> ["(.=)" | usesEncodePair]) <> ")", aesonTypesImport ]@@ -4098,7 +4123,7 @@ ] ++ topicConstants ++ [ "",- "-- the closed payload set (discriminated by " <> tshow ((.discriminator) c) <> ")"+ "-- the closed payload set (discriminated by " <> maybe "the envelope's event type" tshow bodyDiscriminator <> ")" ] ++ [emitPayloadAdt languageContract contractValueType payloadTy ((.events) c)] ++ [ "",@@ -4111,14 +4136,24 @@ "encode" <> payloadTy <> " = \\case" ] ++ concatMap encodeArm ((.events) c)- ++ [ "",- "parse" <> payloadTy <> " :: Value -> Either Text " <> payloadTy,- "parse" <> payloadTy <> " = mapLeftText . parseEither (withObject " <> tshow payloadTy <> " go)",- " where",- " go o = do",- " kind <- explicitParseField (withText " <> tshow ((.discriminator) c) <> " validateMessageType) o " <> tshow ((.discriminator) c),- " case kind of"- ]+ ++ [""]+ ++ ( case bodyDiscriminator of+ Just key ->+ [ parseName <> " :: Value -> Either Text " <> payloadTy,+ parseName <> " = mapLeftText . parseEither (withObject " <> tshow payloadTy <> " go)",+ " where",+ " go o = do",+ " kind <- explicitParseField (withText " <> tshow key <> " validateMessageType) o " <> tshow key+ ]+ Nothing ->+ [ parseName <> " :: Text -> Value -> Either Text " <> payloadTy,+ parseName <> " eventType = mapLeftText . parseEither (withObject " <> tshow payloadTy <> " go)",+ " where",+ " go " <> (if any (not . null . (.fields)) ((.events) c) then "o" else "_") <> " = do",+ " kind <- validateMessageType eventType"+ ]+ )+ ++ [" case kind of"] ++ concatMap decodeArm ((.events) c) ++ [ " _ -> fail \"validated message type was not handled\"", "",@@ -4139,8 +4174,24 @@ hasLiteralTypedTypeIds = any (any (isLiteralTypedTypeId . contractScalar . (.valueType)) . (.fields)) ((.events) c) hasListFields = any (any (contractIsList . (.valueType)) . (.fields)) ((.events) c) usesPlainFieldDecode = any (any (isPlainScalar . (.valueType)) . (.fields)) ((.events) c)+ -- An encoder entry is either the body discriminator or a field, so an+ -- envelope-discriminated contract whose events are all fieldless encodes+ -- every event as `object []` and never uses (.=).+ usesEncodePair = isJust bodyDiscriminator || any (not . null . (.fields)) ((.events) c) isPlainScalar (CScalar scalar) = not (isTypedTypeId scalar) isPlainScalar CList {} = False+ isPlainScalar COptional {} = False+ usesPlainOptionalDecode = anyFieldType (\case COptional scalar -> not (isTypedTypeId scalar); _ -> False)+ usesTypedOptionalDecode = anyFieldType (\case COptional scalar -> isTypedTypeId scalar; _ -> False)+ -- The body discriminator is the only use of explicitParseField that does+ -- not come from a field, so an envelope-discriminated contract imports it+ -- only for typed required scalars and lists.+ usesExplicitParseField =+ isJust bodyDiscriminator+ || anyFieldType (\case CScalar scalar -> isTypedTypeId scalar; CList {} -> True; COptional {} -> False)+ anyFieldType predicate = any (any (predicate . (.valueType)) . (.fields)) ((.events) c)+ bodyDiscriminator = contractBodyDiscriminator c+ parseName = "parse" <> payloadTy <> maybe "As" (const "") bodyDiscriminator moduleName = genPrefix <> ".Contract" declaredLeaves = Map.fromList@@ -4176,6 +4227,7 @@ renderReferenceOrDie importPlan (declaredLeafHelperReference prefix (declaredLeaf name)) contractValueType (CScalar scalar) = contractScalarType scalar contractValueType (CList scalar) = "[" <> contractScalarType scalar <> "]"+ contractValueType (COptional scalar) = "(Maybe " <> contractScalarType scalar <> ")" contractScalarType CText = "Text" contractScalarType CInt = "Int" contractScalarType (CTypeId prefix)@@ -4199,7 +4251,7 @@ ++ [" , " <> lowerFirst alias <> "Topic" | (alias, _) <- (.topics) c] ++ [ " , messageTypeOf", " , encode" <> payloadTy,- " , parse" <> payloadTy,+ " , " <> parseName, " ) where" ] topicConstants@@ -4215,15 +4267,45 @@ isLiteralTypedTypeId (CTypeId prefix) = isJust (contractIdDomainContractFor languageContract prefix) isLiteralTypedTypeId _ = False aesonTypesImport =- "import Data.Aeson.Types (Parser, explicitParseField, parseEither"- <> (if hasListFields then ", (<?>)" else "")+ "import Data.Aeson.Types ("+ <> T.intercalate+ ", "+ ( ["Parser"]+ <> ["explicitParseField" | usesExplicitParseField]+ <> ["explicitParseFieldMaybe" | usesTypedOptionalDecode]+ <> ["parseEither"]+ <> ["(<?>)" | hasListFields]+ ) <> ")"- encodeArm e =- [ " " <> (.name) e <> " payload ->",- " object"- ]- ++ objectEntriesFor ((tshow ((.discriminator) c) <> " .= (" <> tshow ((.name) e) <> " :: Text)") : map encodeField ((.fields) e))- ++ [" ]"]+ encodeArm e+ | null entries && null optionalFields = [armHead, " object []"]+ | null optionalFields = [armHead, " object"] ++ objectEntriesFor entries ++ [" ]"]+ | otherwise =+ [armHead, " object"]+ ++ ( case objectEntriesFor entries of+ [] -> []+ firstEntry : rest -> (" ( " <> T.drop 6 firstEntry) : map (" " <>) rest ++ [" ]"]+ )+ ++ [ (if index == 0 && null entries then " ( " else " <> ") <> optionalEntry field+ | (index, field) <- zip [(0 :: Int) ..] optionalFields+ ]+ ++ [" )"]+ where+ -- A fieldless event's encoder never reads its payload record.+ armHead = " " <> (.name) e <> (if null ((.fields) e) then " _ ->" else " payload ->")+ optionalFields = filter (contractIsOptional . (.valueType)) ((.fields) e)+ discriminatorEntry = [tshow key <> " .= (" <> tshow ((.name) e) <> " :: Text)" | Just key <- [bodyDiscriminator]]+ entries = discriminatorEntry <> map encodeField (filter (not . contractIsOptional . (.valueType)) ((.fields) e))+ optionalEntry field =+ "["+ <> tshow ((.wireKey) identity)+ <> " .= "+ <> maybe "value" (<> " value") (elementEncoder (contractScalar ((.valueType) field)))+ <> " | Just value <- [payload."+ <> (.selector) identity+ <> "]]"+ where+ identity = resolveContractFieldIdentity field lead 0 kv = " [ " <> kv lead _ kv = " , " <> kv objectEntriesFor entries@@ -4260,6 +4342,9 @@ elementEncoder _ = Nothing decodeField field = case (.valueType) field of CList scalar -> "explicitParseField (parseContractList " <> elementParser scalar <> ") o " <> tshow wireKey+ COptional scalar+ | isTypedTypeId scalar -> "explicitParseFieldMaybe " <> elementParser scalar <> " o " <> tshow wireKey+ | otherwise -> "o .:? " <> tshow wireKey CScalar scalar -> case scalar of CTypeId prefix | isJust (contractIdDomainContractFor languageContract prefix) ->@@ -8654,8 +8739,17 @@ -------------------------------------------------------------------------------- hasVersion2Ownership :: Agg -> Bool-hasVersion2Ownership = any ((/= LegacyHoleImplementation) . (.implementation)) . (.transitions)+hasVersion2Ownership = transitionsHaveVersion2Ownership . (.transitions) +-- | Whether 'scaffoldAggregateForService' emits @Generated.BehaviorContract@+-- and the create-once @BehaviorHoles@ module for this aggregate. The service+-- facade uses the same predicate so it never imports an ungenerated module.+aggregateHasBehaviorContract :: Aggregate -> Bool+aggregateHasBehaviorContract = transitionsHaveVersion2Ownership . (.transitions)++transitionsHaveVersion2Ownership :: [Transition] -> Bool+transitionsHaveVersion2Ownership = any ((/= LegacyHoleImplementation) . (.implementation))+ transitionEntries :: Agg -> [(Int, Transition)] transitionEntries aggregate = [ ((.declarationIndex) entry, (.transition) entry)@@ -9856,7 +9950,7 @@ ] ++ outcomeHandlerLines importPlan a silentOutcomes where- categoryName = staticCategory ("aggregate " <> (.name) a) (lowerFirst ((.name) a))+ categoryName = aggregateStreamCategory ((.name) a) outcomeEnabled = isJust ((.domainOutcomeTypes) a) silentOutcomes = resolvedSilentOutcomes a outcomeExpressions = map (.reason) silentOutcomes@@ -10766,6 +10860,14 @@ lowerFirst :: Text -> Text lowerFirst = generatedCase HaskellName.LogicalIdentifier False++-- | The stream category an aggregate's generated EventStream module declares+-- (@<aggregate>Category@). The generated inspector catalog mounts the+-- aggregate under this text, and the service topology exports it as the+-- aggregate node's @category@. A saga aggregate gets its own aggregate+-- category here, not the process's declared saga category.+aggregateStreamCategory :: Name -> Text+aggregateStreamCategory name = staticCategory ("aggregate " <> name) (lowerFirst name) -- | Assert the shared category proof at emission time as a belt-and-braces -- guard for callers that bypass the CLI's normal validate-before-scaffold path.
@@ -16,7 +16,7 @@ import Keiro.Dsl.Grammar import Keiro.Dsl.Harness (processHarnessFactValuesForService, routerHarnessFactValuesForService, workflowHarnessFactValues) import Keiro.Dsl.LanguageVersion (LanguageFeature (MappedConsumerSurfaceSyntax), languageSupportsFeature)-import Keiro.Dsl.Scaffold (Context, ModuleKind (Generated), ScaffoldModule (..), contextGeneratedPrefix, genPrefixFor, generatedBanner, pascal)+import Keiro.Dsl.Scaffold (Context, ModuleKind (Generated), ScaffoldModule (..), aggregateHasBehaviorContract, contextGeneratedPrefix, genPrefixFor, generatedBanner, holePrefixFor, pascal) import Keiro.Dsl.SemanticContract (CheckedService, EffectiveLanguageContract (..), checkedLanguageContract, checkedSpec, checkedTypeGraph) import Keiro.Dsl.SemanticImpact (mappedSurfaceFactValues, semanticImpactForService) import Keiro.Dsl.StructuralConformance (hasStructuralConformance, structuralConformanceModuleName)@@ -72,6 +72,7 @@ "module " <> serviceConformanceModuleName ctx, " ( runServiceConformanceChecks", " , serviceConformanceFacts",+ " , runServiceBehaviorChecks", " ) where" ] <> importLines@@ -79,6 +80,8 @@ <> renderChecks hasStructural checkSources <> [""] <> renderFacts (surfaceFactValues service) factSources+ <> [""]+ <> renderBehaviorChecks behaviorSources where hasStructural = hasStructuralConformance service aliased = aliasNodes hasStructural (serviceHarnessNodes service)@@ -88,8 +91,11 @@ imports = ["import " <> structuralConformanceModuleName ctx <> " qualified as StructuralConformance" | hasStructural] <> map (renderImport ctx) aliased+ <> concatMap (renderBehaviorImports ctx) behaviorSources+ <> ["import Data.Text qualified as Text" | not (null behaviorSources)] checkSources = [(node, alias) | (node, alias) <- aliased, producesChecks node] factSources = [(node, alias) | (node, alias) <- aliased, producesFacts node]+ behaviorSources = [(aggregate, alias) | (NAggregate aggregate, alias) <- aliased, aggregateHasBehaviorContract aggregate] renderImport :: Context -> (Node, Text) -> Text renderImport ctx (node, alias) =@@ -118,6 +124,43 @@ NReadModel readModel -> genPrefixFor ctx (pascal ((.name) readModel)) <> ".ReadModelHarness" NWorkflow workflow -> genPrefixFor ctx ((.id) workflow) <> ".WorkflowFacts" node -> error ("service harness requested a module for unsupported node " <> show (nodeIdentity node))++-- | A behavior-bearing aggregate's generated contract and its create-once+-- witness list, aliased from the aggregate's harness alias so collision+-- numbering carries over.+renderBehaviorImports :: Context -> (Aggregate, Text) -> [Text]+renderBehaviorImports ctx (aggregate, alias) =+ [ "import " <> genPrefixFor ctx ((.name) aggregate) <> ".BehaviorContract qualified as " <> alias <> "BehaviorContract",+ "import " <> holePrefixFor ctx ((.name) aggregate) <> ".BehaviorHoles qualified as " <> alias <> "BehaviorHoles"+ ]++-- | The opt-in full witness gate. It evaluates every declared behavior key of+-- every behavior-bearing aggregate through the generated contract, which is+-- why it is a separate action from 'runServiceConformanceChecks'.+renderBehaviorChecks :: [(Aggregate, Text)] -> [Text]+renderBehaviorChecks [] =+ [ "runServiceBehaviorChecks :: IO [(String, Bool)]",+ "runServiceBehaviorChecks = pure []"+ ]+renderBehaviorChecks sources =+ [ "runServiceBehaviorChecks :: IO [(String, Bool)]",+ "runServiceBehaviorChecks =",+ " pure ("+ ]+ <> renderConcatenation (map behaviorExpression sources)+ <> [" )"]++behaviorExpression :: (Aggregate, Text) -> Text+behaviorExpression (aggregate, alias) =+ "[(\"aggregate/"+ <> (.name) aggregate+ <> "/behavior/\" <> Text.unpack row, passed) | (row, passed) <- "+ <> alias+ <> "BehaviorContract.behaviorConformanceRows ("+ <> alias+ <> "BehaviorContract.behaviorCoverageReport "+ <> alias+ <> "BehaviorHoles.behaviorWitnesses)]" renderChecks :: Bool -> [(Node, Text)] -> [Text] renderChecks False [] =
@@ -0,0 +1,923 @@+-- | The versioned service topology document (@keiro-dsl/service-topology/1@,+-- or @/2@ for a service that declares an input source).+--+-- A topology is computed from a checked service alone. It lists every+-- declaration of the exported node kinds and every relation between them, plus+-- a sha256 digest of each source member so a reader can tell when a committed+-- copy is older than its sources.+--+-- Compatibility policy: within one schema id keiro may add object fields and+-- consumers must ignore fields they do not know. A new node kind, a new+-- relation, or a change in the meaning of an existing field requires a new+-- schema id.+--+-- Encoding rules. Nodes are sorted by (@kind@, @name@); edges by+-- (@from.kind@, @from.name@, @relation@, @to.kind@, @to.name@, canonical bytes+-- of @attributes@); identical edges are emitted once; members are sorted by+-- path. Lists inside @details@ keep declaration order. Enumerations are spelled+-- as the specification language spells them (the pretty printer in+-- "Keiro.Dsl.PrettyPrint" is the reference). The document is written with the+-- RFC 8785 JSON canonicalization scheme and followed by exactly one newline.+module Keiro.Dsl.Topology+ ( -- * The document+ ServiceTopology (..),+ TopologySource (..),+ TopologySourceKind (..),+ TopologyMember (..),+ TopologyNode (..),+ TopologyEdge (..),+ NodeRef (..),+ NodeKind (..),+ Relation (..),+ allNodeKinds,+ allRelations,+ nodeKindText,+ relationText,+ topologySchemaId,++ -- * Aggregate machines+ MachineTopology (..),+ MachineOwnership (..),+ MachineState (..),+ MachineEdge (..),+ MachineEdgeMode (..),+ aggregateMachine,+ machineValue,++ -- * Building and encoding+ TopologyError (..),+ renderTopologyError,+ buildServiceTopology,+ memberDigest,+ serviceTopologyValue,+ encodeServiceTopology,+ )+where++import Crypto.Hash.SHA256 qualified as SHA256+import Data.Aeson (Value (..), object, (.=))+import Data.Aeson qualified as Aeson+import Data.Aeson.Key qualified as Key+import Data.Aeson.KeyMap qualified as KeyMap+import Data.Aeson.RFC8785 qualified as RFC8785+import Data.ByteString (ByteString)+import Data.ByteString qualified as ByteString+import Data.ByteString.Lazy qualified as LazyByteString+import Data.List (nub, sortOn)+import Data.List.NonEmpty qualified as NE+import Data.Map.Strict qualified as Map+import Data.Maybe (mapMaybe)+import Data.Set qualified as Set+import Data.Text (Text)+import Data.Text qualified as T+import Data.Version (showVersion)+import Keiro.Dsl.AggregateGenerationPlan (TransitionLayoutEntry (..), transitionLayout)+import Keiro.Dsl.Grammar+import Keiro.Dsl.LanguageVersion (declaredLanguageVersionMaybe, effectiveLanguageVersion, languageVersionNumber)+import Keiro.Dsl.Scaffold (aggregateStreamCategory)+import Keiro.Dsl.SemanticContract (EffectiveLanguageContract)+import Keiro.Dsl.Validate (nodeIdentity)+import Keiro.Dsl.Workspace (WorkspaceMember (..), WorkspaceSpec (..), nodeOwner)+import Numeric (showHex)+import Numeric.Natural (Natural)+import Paths_keiro_dsl qualified as Package+import System.FilePath (takeFileName)++-- | The closed set of exported node kinds.+data NodeKind+ = AggregateKind+ | ProcessKind+ | WorkflowKind+ | RouterKind+ | ContractKind+ | IntakeKind+ | EmitKind+ | PublisherKind+ | WorkqueueKind+ | DispatchKind+ | ReadModelKind+ | OperationKind+ | ProjectionTargetKind+ | RebuildGroupKind+ | ProjectionOwnerKind+ | ProjectionRevisionKind+ | ExternalReadKind+ deriving stock (Eq, Ord, Show, Enum, Bounded)++-- | The closed set of relations an edge may carry.+data Relation+ = Dispatches+ | Saga+ | Reads+ | Projects+ | Publishes+ | Subscribes+ | Delivers+ | Enqueues+ | Commands+ | Queries+ | Signals+ | Runs+ | DependsOn+ | Groups+ | Consumes+ | Writes+ | MemberOf+ | Revises+ | Observes+ | BackedBy+ | Exposes+ | CompatibleWith+ | -- | Schema id @/2@ only: an intake feeds a process or router input.+ Feeds+ deriving stock (Eq, Ord, Show, Enum, Bounded)++allNodeKinds :: [NodeKind]+allNodeKinds = [minBound .. maxBound]++allRelations :: [Relation]+allRelations = [minBound .. maxBound]++nodeKindText :: NodeKind -> Text+nodeKindText = \case+ AggregateKind -> "aggregate"+ ProcessKind -> "process"+ WorkflowKind -> "workflow"+ RouterKind -> "router"+ ContractKind -> "contract"+ IntakeKind -> "intake"+ EmitKind -> "emit"+ PublisherKind -> "publisher"+ WorkqueueKind -> "workqueue"+ DispatchKind -> "dispatch"+ ReadModelKind -> "read-model"+ OperationKind -> "operation"+ ProjectionTargetKind -> "projection-target"+ RebuildGroupKind -> "rebuild-group"+ ProjectionOwnerKind -> "projection-owner"+ ProjectionRevisionKind -> "projection-revision"+ ExternalReadKind -> "external-read"++relationText :: Relation -> Text+relationText = \case+ Dispatches -> "dispatches"+ Saga -> "saga"+ Reads -> "reads"+ Projects -> "projects"+ Publishes -> "publishes"+ Subscribes -> "subscribes"+ Delivers -> "delivers"+ Enqueues -> "enqueues"+ Commands -> "commands"+ Queries -> "queries"+ Signals -> "signals"+ Runs -> "runs"+ DependsOn -> "depends-on"+ Groups -> "groups"+ Consumes -> "consumes"+ Writes -> "writes"+ MemberOf -> "member-of"+ Revises -> "revises"+ Observes -> "observes"+ BackedBy -> "backed-by"+ Exposes -> "exposes"+ CompatibleWith -> "compatible-with"+ Feeds -> "feeds"++-- | Whether keiro generates the aggregate's keiki transducer from the+-- specification ('MachineGenerated', including per-transition Hole bodies,+-- whose edges are still generated) or the frozen Language 1 form leaves the+-- whole transducer hand-written ('MachineLegacyHole').+data MachineOwnership = MachineGenerated | MachineLegacyHole+ deriving stock (Eq, Show)++data MachineState = MachineState+ { name :: !Text,+ terminal :: !Bool+ }+ deriving stock (Eq, Show)++-- | Spelled as keiki's 'Keiki.Core.EdgeMode' constructors.+data MachineEdgeMode = MachineLive | MachineReplayOnly+ deriving stock (Eq, Show)++-- | One keiki edge. Its identity is (@source@, @edgeIndex@): the position of+-- the edge in keiki's @edgesOut source@. The index is local to one source+-- state and changes when transitions are reordered.+data MachineEdge = MachineEdge+ { source :: !Text,+ edgeIndex :: !Int,+ target :: !Text,+ mode :: !MachineEdgeMode,+ command :: !Text,+ events :: ![Text]+ }+ deriving stock (Eq, Show)++-- | An aggregate's state machine in keiki vocabulary. States are in+-- declaration order (the generated vertex type's constructor order); edges are+-- ordered by their source state's position, then by edge index.+data MachineTopology = MachineTopology+ { ownership :: !MachineOwnership,+ initial :: !Text,+ states :: ![MachineState],+ edges :: ![MachineEdge]+ }+ deriving stock (Eq, Show)++-- | The machine the specification declares. The conformance suite+-- @keiro-dsl-conformance-topology-machine@ proves it equal to the generated+-- keiki transducer for generated machines.+aggregateMachine :: Aggregate -> MachineTopology+aggregateMachine aggregate =+ MachineTopology+ { ownership =+ if any ((== LegacyHoleImplementation) . (.implementation)) aggregate.transitions+ then MachineLegacyHole+ else MachineGenerated,+ initial = case aggregate.states of+ first : _ -> first.name+ [] -> "",+ states = [MachineState {name = state.name, terminal = state.terminal} | state <- aggregate.states],+ edges =+ [ MachineEdge+ { source = entry.transition.source,+ edgeIndex = entry.outgoingIndex,+ target = entry.transition.goto,+ mode = case entry.transition.mode of+ TmLive -> MachineLive+ TmReplayOnly -> MachineReplayOnly,+ command = entry.transition.command,+ events = entry.transition.emits+ }+ | state <- aggregate.states,+ entry <- layout,+ entry.transition.source == state.name+ ]+ }+ where+ layout = transitionLayout aggregate.transitions++machineValue :: MachineTopology -> Value+machineValue machine =+ object+ [ "ownership" .= (case machine.ownership of MachineGenerated -> "generated" :: Text; MachineLegacyHole -> "legacy-hole"),+ "initial" .= machine.initial,+ "states" .= [object ["name" .= state.name, "terminal" .= state.terminal] | state <- machine.states],+ "edges"+ .= [ object+ [ "source" .= machineEdge.source,+ "edgeIndex" .= machineEdge.edgeIndex,+ "target" .= machineEdge.target,+ "mode" .= (case machineEdge.mode of MachineLive -> "Live" :: Text; MachineReplayOnly -> "ReplayOnly"),+ "command" .= machineEdge.command,+ "events" .= machineEdge.events+ ]+ | machineEdge <- machine.edges+ ]+ ]++-- | Whether the document came from one source file or a workspace manifest.+data TopologySourceKind = TopologySingleSource | TopologyWorkspace+ deriving stock (Eq, Show)++data TopologySource = TopologySource+ { kind :: !TopologySourceKind,+ -- | The file name of the source or manifest, never a directory path.+ path :: !FilePath+ }+ deriving stock (Eq, Show)++data TopologyMember = TopologyMember+ { -- | Relative to the manifest directory, forward slashes.+ path :: !FilePath,+ -- | @sha256:@ followed by the lowercase hex digest of the file's bytes.+ sha256 :: !Text,+ declaredLanguageVersion :: !(Maybe Natural),+ effectiveLanguageVersion :: !Natural+ }+ deriving stock (Eq, Show)++data NodeRef = NodeRef+ { kind :: !NodeKind,+ name :: !Name+ }+ deriving stock (Eq, Ord, Show)++data TopologyNode = TopologyNode+ { kind :: !NodeKind,+ name :: !Name,+ context :: !Name,+ member :: !FilePath,+ line :: !Int,+ -- | A JSON object whose fields depend on the kind.+ details :: !Aeson.Object+ }+ deriving stock (Eq, Show)++data TopologyEdge = TopologyEdge+ { from :: !NodeRef,+ to :: !NodeRef,+ relation :: !Relation,+ attributes :: !Aeson.Object+ }+ deriving stock (Eq, Show)++data ServiceTopology = ServiceTopology+ { service :: !Text,+ source :: !TopologySource,+ languageContract :: !EffectiveLanguageContract,+ generatorVersion :: !Text,+ members :: ![TopologyMember],+ nodes :: ![TopologyNode],+ edges :: ![TopologyEdge]+ }+ deriving stock (Eq, Show)++-- | The schema id a document is emitted under: the lowest id able to represent+-- it. A document with a @feeds@ edge needs @/2@; every other document is @/1@,+-- byte-for-byte what it was before @/2@ existed.+topologySchemaId :: ServiceTopology -> Text+topologySchemaId topology+ | any ((== Feeds) . (.relation)) topology.edges = "keiro-dsl/service-topology/2"+ | otherwise = "keiro-dsl/service-topology/1"++-- | An internal inconsistency. A checked service never produces one.+data TopologyError+ = TopologyDuplicateNode !NodeRef+ | TopologyDanglingEdge !NodeRef !Relation !NodeRef+ | TopologyMissingOwner !Text !Name+ | TopologyMissingDigest !FilePath+ deriving stock (Eq, Show)++renderTopologyError :: TopologyError -> Text+renderTopologyError = \case+ TopologyDuplicateNode ref ->+ "internal error: topology node " <> renderRef ref <> " is declared more than once"+ TopologyDanglingEdge fromRef relation toRef ->+ "internal error: topology edge "+ <> renderRef fromRef+ <> " -"+ <> relationText relation+ <> "-> "+ <> renderRef toRef+ <> " names no node in the document"+ TopologyMissingOwner kind name ->+ "internal error: no workspace member owns " <> kind <> " '" <> name <> "'"+ TopologyMissingDigest path ->+ "internal error: no digest was supplied for member " <> T.pack path+ where+ renderRef ref = nodeKindText ref.kind <> " '" <> ref.name <> "'"++-- | @sha256:<lowercase hex>@ of a member file's exact bytes.+memberDigest :: ByteString -> Text+memberDigest bytes = "sha256:" <> T.pack (concatMap twoHex (ByteString.unpack (SHA256.hash bytes)))+ where+ twoHex byte = case showHex byte "" of+ [digit] -> ['0', digit]+ digits -> digits++-- | Build the document. The 'FilePath' is the source or manifest path as given;+-- only its file name is recorded. The list pairs each member path with its+-- digest. Fails only on an internal inconsistency (duplicate node identity, a+-- dangling edge endpoint, or a member without an owner or digest).+buildServiceTopology ::+ TopologySourceKind ->+ FilePath ->+ WorkspaceSpec ->+ [(FilePath, Text)] ->+ Either TopologyError ServiceTopology+buildServiceTopology sourceKind sourcePath workspace digests = do+ members <- traverse topologyMember workspace.members+ nodes <- traverse (topologyNode workspace spec) spec.nodes+ let sortedNodes = sortOn nodeSortKey nodes+ nodeRefs = Set.fromList [NodeRef node.kind node.name | node <- nodes]+ case duplicates [NodeRef node.kind node.name | node <- nodes] of+ ref : _ -> Left (TopologyDuplicateNode ref)+ [] -> pure ()+ let edgeList = sortOn edgeSortKey (nub (concatMap (nodeEdges spec) spec.nodes))+ case [candidate | candidate <- edgeList, not (Set.member candidate.from nodeRefs && Set.member candidate.to nodeRefs)] of+ dangling : _ -> Left (TopologyDanglingEdge dangling.from dangling.relation dangling.to)+ [] -> pure ()+ pure+ ServiceTopology+ { service = workspace.service,+ source = TopologySource {kind = sourceKind, path = takeFileName sourcePath},+ languageContract = workspace.languageContract,+ generatorVersion = T.pack (showVersion Package.version),+ members = sortOn (.path) members,+ nodes = sortedNodes,+ edges = edgeList+ }+ where+ spec = workspace.mergedSpec+ digestMap = Map.fromList digests+ topologyMember member = case Map.lookup member.path digestMap of+ Nothing -> Left (TopologyMissingDigest member.path)+ Just digest ->+ Right+ TopologyMember+ { path = member.path,+ sha256 = digest,+ declaredLanguageVersion = fmap languageVersionNumber (declaredLanguageVersionMaybe member.sourceLanguage),+ effectiveLanguageVersion = languageVersionNumber (effectiveLanguageVersion member.sourceLanguage)+ }+ -- Sort keys use the spelled kind and relation, so the order a reader sees+ -- in the document is the plain codepoint order of its own strings.+ nodeSortKey node = (nodeKindText node.kind, node.name)+ edgeSortKey topologyEdge =+ ( nodeKindText topologyEdge.from.kind,+ topologyEdge.from.name,+ relationText topologyEdge.relation,+ nodeKindText topologyEdge.to.kind,+ topologyEdge.to.name,+ canonicalBytes (Object topologyEdge.attributes)+ )++duplicates :: (Ord a) => [a] -> [a]+duplicates values = [value | (value, count) <- Map.toList (Map.fromListWith (+) [(value, 1 :: Int) | value <- values]), count > 1]++--------------------------------------------------------------------------------+-- Nodes+--------------------------------------------------------------------------------++topologyNode :: WorkspaceSpec -> Spec -> Node -> Either TopologyError TopologyNode+topologyNode workspace spec node = do+ let (ownerKind, ownerName, _) = nodeIdentity node+ (memberPath, Loc lineNumber) <-+ maybe (Left (TopologyMissingOwner ownerKind ownerName)) Right (nodeOwner workspace.ownership ownerKind ownerName)+ let (kind, name, details) = nodeSummary spec node+ pure+ TopologyNode+ { kind = kind,+ name = name,+ context = workspace.context,+ member = memberPath,+ line = lineNumber,+ details = details+ }++fields :: [(Text, Value)] -> Aeson.Object+fields = KeyMap.fromList . map (\(key, value) -> (Key.fromText key, value))++nullableText :: Text -> Value+nullableText value+ | T.null value = Null+ | otherwise = String value++names :: [Name] -> Value+names = Aeson.toJSON++nodeSummary :: Spec -> Node -> (NodeKind, Name, Aeson.Object)+nodeSummary spec = \case+ NAggregate aggregate ->+ ( AggregateKind,+ aggregate.name,+ fields+ [ ("states", names (map (.name) aggregate.states)),+ ("commands", names (map (.name) aggregate.commands)),+ ("events", names (map (.name) aggregate.events)),+ ("machine", machineValue (aggregateMachine aggregate)),+ -- The category the generated inspector catalog mounts the aggregate+ -- under, so a consumer can join the node to live inspection.+ ("category", String (aggregateStreamCategory aggregate.name))+ ]+ )+ NProcess process ->+ ( ProcessKind,+ process.id,+ fields+ [ ("stableName", String process.name),+ ("saga", object ["aggregate" .= process.saga.agg, "category" .= process.saga.category]),+ ("correlate", object ["field" .= process.correlate.field, "via" .= process.correlate.via]),+ ("inputs", names (processInputs process.body)),+ ("target", String process.target),+ ("projections", names process.projections),+ ("timers", names (processTimers process.body)),+ ("rejected", String (policyText process.rejected)),+ ("poison", String (policyText process.poison))+ ]+ )+ NWorkflow workflow ->+ ( WorkflowKind,+ workflow.id,+ fields+ [ ("stableName", String workflow.stable),+ ("input", String workflow.input),+ ("output", String workflow.output),+ ("steps", Aeson.toJSON (concatMap workflowSteps workflow.body))+ ]+ )+ NRouter router ->+ ( RouterKind,+ router.id,+ fields+ [ ("stableName", String router.name),+ ("input", String router.input.name),+ ("target", String router.target),+ ("resolvesFrom", maybe Null String (routerReadModel router)),+ ("projections", names router.projections)+ ]+ )+ NContract contract ->+ ( ContractKind,+ contract.name,+ fields+ [ ("schemaVersion", Aeson.toJSON contract.schemaVersion),+ ("discriminator", maybe Null String (contractBodyDiscriminator contract)),+ ("topics", Aeson.toJSON [object ["alias" .= alias, "topic" .= topic] | (alias, topic) <- contract.topics]),+ ("events", names (map (.name) contract.events))+ ]+ )+ NIntake intake ->+ ( IntakeKind,+ intake.name,+ fields+ [ ("contract", String intake.contract),+ ("topicAlias", String intake.topic),+ ("topic", maybe Null String (contractTopic spec intake.contract intake.topic)),+ ("accepts", names intake.accept),+ ("dedupe", object ["key" .= intake.dedupeKey, "policy" .= intake.dedupePolicy]),+ ("idempotence", String (case intake.idempotence of IdemInboxTable -> "inbox-table"; IdemDelegated -> "delegated"))+ ]+ )+ NEmit emit ->+ ( EmitKind,+ emit.name,+ fields+ [ ("contract", String emit.contract),+ ("topicAlias", String emit.topic),+ ("topic", maybe Null String (contractTopic spec emit.contract emit.topic)),+ ("source", String emit.source),+ ("key", String emit.key),+ ("events", names (emitEvents emit))+ ]+ )+ NPublisher publisher ->+ ( PublisherKind,+ publisher.name,+ fields+ [ ("emit", String publisher.emit),+ ("ordering", String publisher.ordering),+ ("maxAttempts", Aeson.toJSON publisher.maxAttempts),+ ( "backoff",+ object+ [ "kind" .= publisher.backoff.kind,+ "window" .= publisher.backoff.window,+ "max" .= publisher.backoff.max,+ "multiplier" .= publisher.backoff.multiplier+ ]+ ),+ ("outboxField", String publisher.outboxField)+ ]+ )+ NWorkqueue queue ->+ ( WorkqueueKind,+ queue.name,+ fields+ [ ("logical", String queue.logical),+ ("physical", String queue.physical),+ ("dlq", String queue.dlq),+ ("table", String queue.table),+ ("ordering", String (orderingText queue.ordering)),+ ("maxRetries", Aeson.toJSON queue.maxRetries),+ ("dlqOn", Bool queue.dlqOn)+ ]+ )+ NPgmqDispatch dispatch ->+ ( DispatchKind,+ dispatch.name,+ fields+ [ ("sourceReadModel", String dispatch.sourceReadModel),+ ("dedupReadModel", String dispatch.dedupReadModel),+ ("enqueueTo", String dispatch.enqueueTo)+ ]+ )+ NReadModel readModel ->+ ( ReadModelKind,+ readModel.name,+ fields+ [ ("table", nullableText readModel.table),+ ("schema", nullableText readModel.schema),+ ("version", Aeson.toJSON readModel.version),+ ("group", maybe Null String readModel.group),+ ("observedTargets", names readModel.observedTargets),+ ("backingTarget", maybe Null String readModel.backingTarget)+ ]+ )+ NOperation operation ->+ ( OperationKind,+ operation.name,+ fields $ case operation.shape of+ CommandOp aggregate _ _ _ -> [("form", String "command"), ("subject", String aggregate)]+ QueryOp readModel _ _ _ -> [("form", String "query"), ("subject", String readModel)]+ SignalOp label workflow _ _ _ -> [("form", String "signal"), ("subject", String workflow), ("label", String label)]+ RunOp workflow _ _ -> [("form", String "run"), ("subject", String workflow)]+ )+ NProjectionTarget target ->+ ( ProjectionTargetKind,+ target.name,+ fields+ [ ("schema", String target.schema),+ ("table", String target.table),+ ("reset", String (case target.reset of TargetClear -> "clear"; TargetPreserve -> "preserve")),+ ("dependsOn", names target.dependsOn)+ ]+ )+ NRebuildGroup groupNode ->+ ( RebuildGroupKind,+ groupNode.name,+ fields+ [ ("targets", names groupNode.targets),+ ("order", names groupNode.order)+ ]+ )+ NProjectionOwner owner ->+ ( ProjectionOwnerKind,+ owner.name,+ fields+ [ ("sources", Aeson.toJSON (map catalogSourceValue owner.sources)),+ ("delivery", String (case owner.delivery of DeliveryInline -> "inline"; DeliverySubscription -> "subscription")),+ ("group", String owner.group),+ ("targets", names owner.targets),+ ("order", Aeson.toJSON owner.order),+ ("subscription", maybe Null String owner.subscription),+ ("dedup", maybe Null String owner.dedup),+ ( "replay",+ case owner.replay of+ ProjectionReplayExplicit -> object ["mode" .= ("explicit" :: Text), "reason" .= Null]+ ProjectionLiveOnly reason -> object ["mode" .= ("live-only" :: Text), "reason" .= reason]+ )+ ]+ )+ NProjectionRevision revision ->+ ( ProjectionRevisionKind,+ revision.name,+ fields+ [ ("group", String revision.group),+ ( "targets",+ Aeson.toJSON+ [ object ["target" .= revisionTarget.target, "schemaVersion" .= revisionTarget.schemaVersion]+ | revisionTarget <- revision.targets+ ]+ )+ ]+ )+ NExternalRead externalRead ->+ ( ExternalReadKind,+ externalReadNodeIdentity externalRead,+ fields+ [ ("contract", String externalRead.name),+ ("version", Aeson.toJSON externalRead.version),+ ("queryModel", String externalRead.queryModel),+ ("resultSchema", String externalRead.resultSchema),+ ("resultType", String externalRead.resultType),+ ("compatibleRevisions", names externalRead.compatibleRevisions),+ ("surfaceGeneration", Aeson.toJSON externalRead.surfaceGeneration)+ ]+ )++-- | The physical topic a contract assigns to an alias.+contractTopic :: Spec -> Name -> Name -> Maybe Text+contractTopic spec contractName alias =+ case [contract | NContract contract <- spec.nodes, contract.name == contractName] of+ contract : _ -> lookup alias contract.topics+ [] -> Nothing++catalogSourceValue :: CatalogSource -> Value+catalogSourceValue = \case+ CatalogAggregate name -> object ["kind" .= ("aggregate" :: Text), "name" .= name]+ CatalogCategory name -> object ["kind" .= ("category" :: Text), "name" .= name]+ CatalogAll -> object ["kind" .= ("all" :: Text)]++policyText :: PolicyChoice -> Text+policyText = \case+ PolHalt -> "halt"+ PolDeadLetter -> "deadLetter"+ PolSkip -> "skip"++orderingText :: WqOrdering -> Text+orderingText = \case+ WqUnordered -> "unordered"+ WqFifoThroughput -> "fifo-throughput"+ WqFifoRoundRobin -> "fifo-roundrobin"+ WqFifoHeads -> "fifo-heads"++processInputs :: ProcessBody -> [Name]+processInputs = map (.name) . processBodyInputs++processBodyInputs :: ProcessBody -> [InputDecl]+processBodyInputs = \case+ LegacyProcessBody input _ _ -> [input]+ ReactionProcessBody body -> NE.toList body.inputs++processTimers :: ProcessBody -> [Name]+processTimers = \case+ LegacyProcessBody _ _ timer -> [timer.name]+ ReactionProcessBody body -> map (.name) body.timers++workflowSteps :: WfBodyItem -> [Value]+workflowSteps = \case+ WfStep label _ _ -> [step "step" (Just label)]+ WfAwait label _ _ -> [step "await" (Just label)]+ WfSleep label _ _ -> [step "sleep" (Just label)]+ WfChild label _ _ _ -> [step "child" (Just label)]+ WfPatch patchId items _ -> step "patch" (Just patchId) : concatMap workflowSteps items+ WfContinueAsNew _ _ -> [step "continue-as-new" Nothing]+ where+ step :: Text -> Maybe Name -> Value+ step form label = object (("form" .= form) : maybe [] (\value -> ["label" .= value]) label)++-- | The read model a router resolves from, when it resolves from one.+routerReadModel :: RouterNode -> Maybe Name+routerReadModel router = case router.resolve.source of+ ResolveReadModel name -> Just name+ ResolveDeclarative selection -> Just selection.query+ ResolveHole -> Nothing++emitEvents :: EmitNode -> [Name]+emitEvents emit = nub (map (.event) emit.map)++--------------------------------------------------------------------------------+-- Edges+--------------------------------------------------------------------------------++mkEdge :: NodeKind -> Name -> Relation -> NodeKind -> Name -> [(Text, Value)] -> TopologyEdge+mkEdge fromKind fromName relation toKind toName attributes =+ TopologyEdge+ { from = NodeRef fromKind fromName,+ to = NodeRef toKind toName,+ relation = relation,+ attributes = fields attributes+ }++nodeEdges :: Spec -> Node -> [TopologyEdge]+nodeEdges spec = \case+ NAggregate _ -> []+ NProcess process ->+ [ mkEdge ProcessKind process.id Dispatches AggregateKind target [("command", String command)]+ | (target, command) <- processDispatches process.body+ ]+ <> [mkEdge ProcessKind process.id Saga AggregateKind process.saga.agg [("category", String process.saga.category)]]+ <> projectsEdges ProcessKind process.id process.projections+ <> concatMap (feedsEdges ProcessKind process.id) (processBodyInputs process.body)+ NWorkflow _ -> []+ NRouter router ->+ [mkEdge RouterKind router.id Dispatches AggregateKind router.target [("command", String router.dispatch.command)]]+ <> [mkEdge RouterKind router.id Reads ReadModelKind readModel [("role", String "resolve")] | Just readModel <- [routerReadModel router]]+ <> projectsEdges RouterKind router.id router.projections+ <> feedsEdges RouterKind router.id router.input+ NContract _ -> []+ NIntake intake ->+ [ mkEdge+ IntakeKind+ intake.name+ Subscribes+ ContractKind+ intake.contract+ [ ("topicAlias", String intake.topic),+ ("topic", maybe Null String (contractTopic spec intake.contract intake.topic)),+ ("events", names intake.accept)+ ]+ ]+ NEmit emit ->+ [ mkEdge+ EmitKind+ emit.name+ Publishes+ ContractKind+ emit.contract+ [ ("topicAlias", String emit.topic),+ ("topic", maybe Null String (contractTopic spec emit.contract emit.topic)),+ ("events", names (emitEvents emit))+ ]+ ]+ NPublisher publisher -> [mkEdge PublisherKind publisher.name Delivers EmitKind publisher.emit []]+ NWorkqueue _ -> []+ NPgmqDispatch dispatch ->+ [ mkEdge DispatchKind dispatch.name Reads ReadModelKind dispatch.sourceReadModel [("role", String "source")],+ mkEdge DispatchKind dispatch.name Reads ReadModelKind dispatch.dedupReadModel [("role", String "dedupe")],+ mkEdge DispatchKind dispatch.name Enqueues WorkqueueKind dispatch.enqueueTo []+ ]+ NReadModel readModel ->+ [mkEdge ReadModelKind readModel.name MemberOf RebuildGroupKind groupName [] | Just groupName <- [readModel.group]]+ <> [mkEdge ReadModelKind readModel.name Observes ProjectionTargetKind target [] | target <- readModel.observedTargets]+ <> [mkEdge ReadModelKind readModel.name BackedBy ProjectionTargetKind target [] | Just target <- [readModel.backingTarget]]+ NOperation operation -> case operation.shape of+ CommandOp aggregate _ _ _ -> [mkEdge OperationKind operation.name Commands AggregateKind aggregate []]+ QueryOp readModel _ _ _ -> [mkEdge OperationKind operation.name Queries ReadModelKind readModel []]+ SignalOp label workflow _ _ _ -> [mkEdge OperationKind operation.name Signals WorkflowKind workflow [("label", String label)]]+ RunOp workflow _ _ -> [mkEdge OperationKind operation.name Runs WorkflowKind workflow []]+ NProjectionTarget target ->+ [mkEdge ProjectionTargetKind target.name DependsOn ProjectionTargetKind dependency [] | dependency <- target.dependsOn]+ NRebuildGroup groupNode ->+ [mkEdge RebuildGroupKind groupNode.name Groups ProjectionTargetKind target [] | target <- groupNode.targets]+ NProjectionOwner owner ->+ [mkEdge ProjectionOwnerKind owner.name Consumes AggregateKind aggregate [] | CatalogAggregate aggregate <- owner.sources]+ <> [mkEdge ProjectionOwnerKind owner.name Writes ProjectionTargetKind target [] | target <- owner.targets]+ <> [mkEdge ProjectionOwnerKind owner.name MemberOf RebuildGroupKind owner.group []]+ NProjectionRevision revision ->+ mkEdge ProjectionRevisionKind revision.name Revises RebuildGroupKind revision.group []+ : [ mkEdge ProjectionRevisionKind revision.name Revises ProjectionTargetKind revisionTarget.target [("schemaVersion", String revisionTarget.schemaVersion)]+ | revisionTarget <- revision.targets+ ]+ NExternalRead externalRead ->+ let identity = externalReadNodeIdentity externalRead+ in mkEdge ExternalReadKind identity Exposes ReadModelKind externalRead.queryModel []+ : [mkEdge ExternalReadKind identity CompatibleWith ProjectionRevisionKind revision [] | revision <- externalRead.compatibleRevisions]+ where+ projectionOwners =+ Map.fromListWith+ (flip (<>))+ [ (projection.table, [aggregate.name])+ | NAggregate aggregate <- spec.nodes,+ Just projection <- [aggregate.projection]+ ]+ feedsEdges kind name input =+ [ mkEdge IntakeKind source.intake Feeds kind name [("input", String input.name), ("events", names (NE.toList source.events))]+ | Just source <- [input.source]+ ]+ projectsEdges kind name tables =+ [ mkEdge kind name Projects AggregateKind aggregate [("table", String table)]+ | table <- tables,+ aggregate <- Map.findWithDefault [] table projectionOwners+ ]++-- | Every (target aggregate, command) a process body dispatches, in order.+processDispatches :: ProcessBody -> [(Name, Name)]+processDispatches = \case+ LegacyProcessBody _ handle timer ->+ [(dispatch.target, dispatch.command) | dispatch <- handle.dispatch]+ <> [(timer.fire.target, timer.fire.command)]+ ReactionProcessBody body ->+ concatMap reactionDispatches (NE.toList body.reactions)+ <> [(timer.fire.target, timer.fire.command) | timer <- body.timers]+ where+ reactionDispatches reaction = concatMap armDispatches (NE.toList reaction.arms)+ armDispatches arm = case arm.body of+ NoAction -> []+ ArmActions {advance, followUps} ->+ followUpDispatches followUps+ <> maybe [] (\advanceReaction -> maybe [] followUpDispatches advanceReaction.accepted) advance+ followUpDispatches followUps = mapMaybe followUpDispatch followUps+ followUpDispatch = \case+ FollowDispatch dispatch -> Just (dispatch.target, dispatch.command)+ _ -> Nothing++--------------------------------------------------------------------------------+-- Encoding+--------------------------------------------------------------------------------++canonicalBytes :: Value -> ByteString+canonicalBytes = LazyByteString.toStrict . RFC8785.encodeCanonical++nodeRefValue :: NodeRef -> Value+nodeRefValue ref = object ["kind" .= nodeKindText ref.kind, "name" .= ref.name]++-- | The document as a JSON value, before canonical encoding.+serviceTopologyValue :: ServiceTopology -> Value+serviceTopologyValue topology =+ object+ [ "schema" .= topologySchemaId topology,+ "service" .= topology.service,+ "source"+ .= object+ [ "kind" .= (case topology.source.kind of TopologySingleSource -> "source" :: Text; TopologyWorkspace -> "workspace"),+ "path" .= topology.source.path+ ],+ "effectiveSemanticContract" .= topology.languageContract,+ "generator" .= object ["tool" .= ("keiro-dsl" :: Text), "version" .= topology.generatorVersion],+ "members"+ .= [ object+ [ "path" .= member.path,+ "sha256" .= member.sha256,+ "declaredLanguageVersion" .= member.declaredLanguageVersion,+ "effectiveLanguageVersion" .= member.effectiveLanguageVersion+ ]+ | member <- topology.members+ ],+ "nodes"+ .= [ object+ [ "kind" .= nodeKindText node.kind,+ "name" .= node.name,+ "context" .= node.context,+ "member" .= node.member,+ "line" .= node.line,+ "details" .= Object node.details+ ]+ | node <- topology.nodes+ ],+ "edges"+ .= [ object+ [ "from" .= nodeRefValue topologyEdge.from,+ "to" .= nodeRefValue topologyEdge.to,+ "relation" .= relationText topologyEdge.relation,+ "attributes" .= Object topologyEdge.attributes+ ]+ | topologyEdge <- topology.edges+ ]+ ]++-- | Canonical bytes: RFC 8785 JSON followed by one newline.+encodeServiceTopology :: ServiceTopology -> ByteString+encodeServiceTopology topology = canonicalBytes (serviceTopologyValue topology) <> ByteString.singleton 10
@@ -30,7 +30,7 @@ import Data.Bits (xor) import Data.Char (isControl, isSpace, ord, toLower) import Data.Graph (SCC (..), stronglyConnComp)-import Data.List (sortOn)+import Data.List (nub, sortOn) import Data.List.NonEmpty qualified as NE import Data.Map.Strict (Map) import Data.Map.Strict qualified as Map@@ -355,6 +355,7 @@ | EnumCtorAdded | EventRetirementAbandoned | ContractEventAdded+ | ContractOptionalFieldAdded -- ExecPlan 345 / IR-64: an added Optional field needs no schemaVersion bump. | ContractTopicAdded | WorkflowEvolutionGuardAdded | -- MasterPlan 25 / EP-149 (consumer-owned mapped types).@@ -489,6 +490,7 @@ | ContractIdUnknown | ContractTypeIdDomainChanged | ContractListFieldUsedAsKey -- ExecPlan 312 / IR-54: list fields are values, never identities.+ | ContractOptionalFieldUsedAsKey -- ExecPlan 345 / IR-64: an identity that may be absent identifies nothing. | -- ExecPlan 180: accepted-but-unenforced spec surfaces. PublisherOrderingUnknown | PublisherBackoffInvalid@@ -615,6 +617,10 @@ | AggregateExpressionWriteInitialShadowed | MappedWriteLiftChanged | MappedWriteLiftFixturesChanged+ | -- MasterPlan 48 EP-4: a declared input source must name a declared intake+ -- that accepts every named event.+ InputSourceUnresolvedIntake+ | InputSourceEventNotAccepted deriving stock (Eq, Ord, Show, Enum, Bounded) -- | Which command pipeline can actually produce a given 'DiagnosticCode'.@@ -666,6 +672,7 @@ CompatibilityStrengthened -> DiffDiagnostic ContractDiscriminatorChanged -> DiffDiagnostic ContractEventAdded -> DiffDiagnostic+ ContractOptionalFieldAdded -> DiffDiagnostic ContractEventRemoved -> DiffDiagnostic ContractFieldChanged -> DiffDiagnostic ContractSchemaVersionBumped -> DiffDiagnostic@@ -2439,8 +2446,12 @@ validateNode :: EffectiveLanguageContract -> Either (NE.NonEmpty TypeGraphError) TypeGraph -> ProjectionSupplyAnalysis -> Spec -> Node -> [Diagnostic] validateNode languageContract typeGraphResult _supplyAnalysis spec (NAggregate agg) = validateAggregate languageContract typeGraphResult spec agg-validateNode languageContract typeGraphResult _supplyAnalysis spec (NProcess p) = validateProcess languageContract typeGraphResult spec p-validateNode languageContract typeGraphResult _supplyAnalysis spec (NRouter router) = validateRouter languageContract typeGraphResult spec router+validateNode languageContract typeGraphResult _supplyAnalysis spec (NProcess p) =+ validateProcess languageContract typeGraphResult spec p+ <> concatMap (validateInputSource spec ("process '" <> (.id) p <> "'")) (processBodyInputs ((.body) p))+validateNode languageContract typeGraphResult _supplyAnalysis spec (NRouter router) =+ validateRouter languageContract typeGraphResult spec router+ <> validateInputSource spec ("router '" <> (.id) router <> "'") ((.input) router) validateNode languageContract _typeGraphResult _supplyAnalysis spec (NContract contract) = validateContract languageContract spec contract validateNode languageContract _typeGraphResult _supplyAnalysis spec (NIntake i) = validateIntake languageContract i ++ intakeCoupling languageContract spec i validateNode languageContract _typeGraphResult _supplyAnalysis spec (NEmit e) = validateEmit languageContract spec e@@ -2561,13 +2572,14 @@ | enforcesSpecSurfaceClosures languageContract, event <- (.events) contract, field <- (.fields) event,- (.wireKey) (resolveContractFieldIdentity field) == (.discriminator) contract+ Just bodyKey <- [contractBodyDiscriminator contract],+ (.wireKey) (resolveContractFieldIdentity field) == bodyKey ] fieldWireKeyRules = concat [ wireKeyRulesForRecord ("contract '" <> (.name) contract <> "' event '" <> (.name) event <> "'")- (Just ((.discriminator) contract, "payload discriminator"))+ ((,"payload discriminator") <$> contractBodyDiscriminator contract) (map resolveContractFieldIdentity ((.fields) event)) | event <- (.events) contract ]@@ -3663,10 +3675,17 @@ | enforcesSpecSurfaceClosures languageContract, not (null (listDedupeEvents c)) ],+ [ mkErr (locLine ((.loc) i)) ContractOptionalFieldUsedAsKey $+ "intake '" <> (.name) i <> "' dedupe key '" <> (.dedupeKey) i <> "' is an Optional field of accepted events " <> T.intercalate ", " (optionalDedupeEvents c) <> "; dedupe identity must be a required scalar envelope or event field"+ | enforcesSpecSurfaceClosures languageContract,+ null (listDedupeEvents c),+ not (null (optionalDedupeEvents c))+ ], [ mkErr (locLine ((.loc) i)) IntakeDedupeKeyUnresolved $ "intake '" <> (.name) i <> "' dedupe key '" <> (.dedupeKey) i <> "' is not an envelope or accepted-event field" | enforcesSpecSurfaceClosures languageContract, null (listDedupeEvents c),+ null (optionalDedupeEvents c), (.dedupeKey) i `Set.notMember` resolvableFields c ], [ mkErr (locLine ((.loc) i)) IntakeDecodeSchemaVersionMismatch $@@ -3701,13 +3720,15 @@ (.required) binding || (.crossCheck) binding ] lookupContract n = case [c | c <- specContracts spec, (.name) c == n] of (c : _) -> Just c; [] -> Nothing- listDedupeEvents contract+ listDedupeEvents = dedupeEventsWhere contractIsList+ optionalDedupeEvents = dedupeEventsWhere contractIsOptional+ dedupeEventsWhere shape contract | (.dedupeKey) i `Set.member` canonicalIntakeEnvelopeFields = [] | otherwise = [ (.name) event | event <- (.events) contract, (.name) event `elem` (.accept) i,- any (\field -> (.name) field == (.dedupeKey) i && contractIsList ((.valueType) field)) ((.fields) event)+ any (\field -> (.name) field == (.dedupeKey) i && shape ((.valueType) field)) ((.fields) event) ] resolvableFields contract = canonicalIntakeEnvelopeFields@@ -3796,26 +3817,37 @@ | enforcesSpecSurfaceClosures languageContract, usesListIdentity emitNode ]+ ++ [ mkErr publisherLine ContractOptionalFieldUsedAsKey $+ "publisher '" <> (.name) p <> "' outboxId field '" <> (.outboxField) p <> "' is an Optional field of an event mapped by emit '" <> (.emit) p <> "'; outbox identity must be messageId, idempotencyKey, or a required scalar contract field"+ | enforcesSpecSurfaceClosures languageContract,+ not (usesListIdentity emitNode),+ usesOptionalIdentity emitNode+ ] ++ [ mkErr publisherLine PublisherOutboxFieldUnresolved $ "publisher '" <> (.name) p <> "' outboxId field '" <> (.outboxField) p <> "' is not messageId, idempotencyKey, or a field of an event mapped by emit '" <> (.emit) p <> "'" | enforcesSpecSurfaceClosures languageContract, not (usesListIdentity emitNode),+ not (usesOptionalIdentity emitNode), (.outboxField) p `Set.notMember` allowedOutboxFields emitNode ]- usesListIdentity emitNode =+ usesListIdentity = usesIdentityWhere contractIsList+ usesOptionalIdentity = usesIdentityWhere contractIsOptional+ usesIdentityWhere shape emitNode = (.outboxField) p `notElem` ["messageId", "idempotencyKey"]- && (.outboxField) p `elem` listContractFields emitNode- listContractFields emitNode =+ && (.outboxField) p `elem` contractFieldsWhere shape emitNode+ contractFieldsWhere shape emitNode = [ (.name) field | contract <- specContracts spec, (.name) contract == (.contract) emitNode, event <- (.events) contract, (.name) event `elem` map (.event) ((.map) emitNode), field <- (.fields) event,- contractIsList ((.valueType) field)+ shape ((.valueType) field) ] allowedOutboxFields emitNode =- Set.fromList ("messageId" : "idempotencyKey" : filter (`notElem` listContractFields emitNode) (mappedContractFields emitNode))+ Set.fromList ("messageId" : "idempotencyKey" : filter (`notElem` contractFieldsWhere (not . isRequiredScalar) emitNode) (mappedContractFields emitNode))+ isRequiredScalar CScalar {} = True+ isRequiredScalar _ = False mappedContractFields emitNode = [ (.dslName) (resolveContractFieldIdentity field) | contract <- specContracts spec,@@ -3887,13 +3919,13 @@ where il = locLine ((.loc) i) -- `decBodyStrict` reaches nothing but the pretty-printer: generated contract- -- codecs decode every declared body field as required and admit no lenient+ -- codecs require every body field not declared Optional and admit no lenient -- mode, so `body strict` describes what happens and `body lenient` does not. decodePosture = [ mkSurfaceRefusal languageContract il DecodeBodyPostureUnsupported $ "intake '" <> (.name) i- <> "' declares 'body lenient', but generated contract codecs decode a body strictly: every declared field is required and no lenient fallback is emitted. Write 'body strict' to describe what runs"+ <> "' declares 'body lenient', but generated contract codecs decode a body strictly: every field not declared Optional is required and no lenient fallback is emitted. Write 'body strict' to describe what runs" | not ((.bodyStrict) ((.decode) i)) ] rows = (.disposition) i@@ -3929,7 +3961,7 @@ [ mkErr il DelegatedInboxDedupeOnlyPersistence $ "intake '" <> (.name) i- <> "' delegates idempotence to its downstream state machine, so 'persist = dedupe-only' describes inbox storage that does not exist; remove the persist clause"+ <> "' delegates idempotence to its downstream state machine, so the intake owns no inbox storage for 'persist = dedupe-only' to describe; a typed no-op receipt row's persistence is chosen by the handler through DelegatedNoOpReceipt; remove the persist clause" | (.idempotence) i == IdemDelegated, (.persist) i == InkPersistDedupeOnly ]@@ -4025,6 +4057,45 @@ ] -- | EP-3 rules for a process manager + its nested timer.+-- | Every input a process body declares, in order.+processBodyInputs :: ProcessBody -> [InputDecl]+processBodyInputs = \case+ LegacyProcessBody input _ _ -> [input]+ ReactionProcessBody reaction -> NE.toList ((.inputs) reaction)++-- | A declared input source (candidate Language 6) must name an intake of the+-- service, and that intake must accept every named event. Repeated event names+-- are reported once. The source is documentation that is checked; nothing here+-- feeds generated code or identity.+validateInputSource :: Spec -> Text -> InputDecl -> [Diagnostic]+validateInputSource spec owner input = case (.source) input of+ Nothing -> []+ Just source -> case [intake | NIntake intake <- (.nodes) spec, (.name) intake == (.intake) source] of+ [] ->+ [ mkErr (locLine ((.loc) source)) InputSourceUnresolvedIntake $+ "input '"+ <> (.name) input+ <> "' of "+ <> owner+ <> " names intake '"+ <> (.intake) source+ <> "', which is not declared in this service"+ ]+ intake : _ ->+ [ mkErr (locLine ((.loc) source)) InputSourceEventNotAccepted $+ "input '"+ <> (.name) input+ <> "' of "+ <> owner+ <> " is fed by intake '"+ <> (.intake) source+ <> "' event '"+ <> event+ <> "', which the intake does not accept"+ | event <- nub (NE.toList ((.events) source)),+ event `notElem` (.accept) intake+ ]+ validateProcess :: EffectiveLanguageContract -> Either (NE.NonEmpty TypeGraphError) TypeGraph -> Spec -> ProcessNode -> [Diagnostic] validateProcess languageContract typeGraphResult spec p = case (.body) p of LegacyProcessBody input handle timer -> validateLegacyProcess languageContract spec p input handle timer
@@ -1405,6 +1405,8 @@ instance HasLocs ContractNode +instance HasLocs ContractDiscriminator+ instance HasLocs DomainOutcomeTypes instance HasLocs ContractScalarType@@ -1473,6 +1475,8 @@ instance HasLocs InkPersist instance HasLocs InputDecl++instance HasLocs InputSource instance HasLocs IntakeNode
@@ -82,6 +82,8 @@ WorkqueueFifoHeadsSyntax -> version 6 ContractDeclaredIdSyntax -> version 6 ContractListFieldSyntax -> version 6+ ContractOptionalFieldSyntax -> version 6+ ContractEnvelopeDiscriminatorSyntax -> version 6 KeyedMapSyntax -> version 6 BareStructuralMappingSyntax -> version 6 CalendarDaySyntax -> version 6@@ -210,6 +212,8 @@ FeatureCase WorkqueueFifoHeadsSyntax "fifo-heads" (featureBody WorkqueueFifoHeadsSyntax), FeatureCase ContractDeclaredIdSyntax "ProfileId" (featureBody ContractDeclaredIdSyntax), FeatureCase ContractListFieldSyntax "List" (featureBody ContractListFieldSyntax),+ FeatureCase ContractOptionalFieldSyntax "Optional" (featureBody ContractOptionalFieldSyntax),+ FeatureCase ContractEnvelopeDiscriminatorSyntax "from" (featureBody ContractEnvelopeDiscriminatorSyntax), FeatureCase BareStructuralMappingSyntax "value" (featureBody BareStructuralMappingSyntax), FeatureCase CalendarDaySyntax "Day" (featureBody CalendarDaySyntax), FeatureCase TextSetSyntax "Set" (featureBody TextSetSyntax),@@ -299,6 +303,9 @@ "}" ] ContractListFieldSyntax -> T.replace "profileId: ProfileId" "profileIds: List ProfileId" (featureBody ContractDeclaredIdSyntax)+ -- Literal scalars only, so the declared-ID gate cannot fire first.+ ContractOptionalFieldSyntax -> T.replace "id ProfileId prefix=profile\n" "" (T.replace "profileId: ProfileId" "note: Optional text" (featureBody ContractDeclaredIdSyntax))+ ContractEnvelopeDiscriminatorSyntax -> T.replace "id ProfileId prefix=profile\n" "" (T.replace "profileId: ProfileId" "profileId: typeid \"profile\"" (T.replace "discriminator kind" "discriminator from envelope" (featureBody ContractDeclaredIdSyntax))) ContractDeclaredIdSyntax -> T.unlines [ "context profile",@@ -376,7 +383,7 @@ ] allFeatures :: [LanguageFeature]-allFeatures = [MappedRegisterConstructionSyntax, ContractListFieldSyntax, ExplicitIdAdmissionDomainSyntax, NominalBindingSyntax, IntegerScalarSyntax, TypedAggregateExpressionSyntax, ExplicitTransitionImplementationSyntax, FieldAliasSyntax, ProjectionCatalogSyntax, ExternalReadContractSyntax, MappedConsumerSurfaceSyntax, DomainCommandOutcomeSyntax, DeclarativeRouterSelectionSyntax, SeparatedProjectionQueryPolicySyntax, DelegatedInboxSyntax, ProcessReactionSyntax, WorkqueueFifoHeadsSyntax, ContractDeclaredIdSyntax, KeyedMapSyntax, BareStructuralMappingSyntax, CalendarDaySyntax, TextSetSyntax, RefinedBase16Syntax]+allFeatures = [MappedRegisterConstructionSyntax, ContractListFieldSyntax, ContractOptionalFieldSyntax, ContractEnvelopeDiscriminatorSyntax, ExplicitIdAdmissionDomainSyntax, NominalBindingSyntax, IntegerScalarSyntax, TypedAggregateExpressionSyntax, ExplicitTransitionImplementationSyntax, FieldAliasSyntax, ProjectionCatalogSyntax, ExternalReadContractSyntax, MappedConsumerSurfaceSyntax, DomainCommandOutcomeSyntax, DeclarativeRouterSelectionSyntax, SeparatedProjectionQueryPolicySyntax, DelegatedInboxSyntax, ProcessReactionSyntax, WorkqueueFifoHeadsSyntax, ContractDeclaredIdSyntax, KeyedMapSyntax, BareStructuralMappingSyntax, CalendarDaySyntax, TextSetSyntax, RefinedBase16Syntax] processReactionFeatureBody :: Text processReactionFeatureBody =
@@ -0,0 +1,314 @@+-- | Tests for declared input sources (candidate Language 6+-- @input <Name> from intake <Intake> event <Event>+ …@): parsing, printing,+-- predecessor refusal, the two checker diagnostics, and the proof that a+-- declared source changes no generated byte, fingerprint, ledger or diff.+module Keiro.Dsl.InputSourceSpec (inputSourceSpec) where++import Control.Exception (bracket)+import Control.Monad (filterM, forM, forM_)+import Data.ByteString qualified as BS+import Data.List (sort)+import Data.List.NonEmpty (NonEmpty (..))+import Data.List.NonEmpty qualified as NE+import Data.Text (Text)+import Data.Text qualified as T+import Data.Text.Encoding qualified as TE+import Keiro.Dsl.Diff (Change (..), diffSources)+import Keiro.Dsl.FoldFingerprint (aggregateFoldFingerprintForService)+import Keiro.Dsl.Grammar (InputDecl (..), InputSource (..), Node (..), ProcessBody (..), ProcessNode (..), ReactionBody (..), RouterNode (..))+import Keiro.Dsl.Grammar qualified as G+import Keiro.Dsl.LanguageVersion (ParsedSource (..))+import Keiro.Dsl.Parser (parseSourceDocument, renderParseFailure)+import Keiro.Dsl.PrettyPrint (renderSource)+import Keiro.Dsl.ProcessReaction (checkProcessReaction, processReactionFingerprint)+import Keiro.Dsl.ReplayImpact (ReplayImpact (..), replayImpactServices)+import Keiro.Dsl.RouterSelection (checkRouterSelection, routerSelectionFingerprint)+import Keiro.Dsl.SemanticContract (CheckedService, checkedLanguageContract, checkedSource, checkedSpec)+import Keiro.Dsl.SourceIndex (ParsedSourceDocument (..))+import Keiro.Dsl.TypeGraph (resolveTypeGraph)+import Keiro.Dsl.Validate (Diagnostic (..), DiagnosticCode (..), Severity (..), validateService)+import Keiro.Dsl.Workspace (WorkspaceDiagnostic (..), checkWorkspace, fileContentSource, loadWorkspace)+import System.Directory (createDirectory, doesDirectoryExist, doesFileExist, getTemporaryDirectory, listDirectory, removeFile, removePathForcibly)+import System.Environment (lookupEnv)+import System.Exit (ExitCode (..))+import System.FilePath (makeRelative, takeDirectory, (</>))+import System.IO (hClose, openTempFile)+import System.Process (CreateProcess (..), proc, readCreateProcessWithExitCode)+import Test.Hspec++inputSourceSpec :: Spec+inputSourceSpec = describe "declared input sources" $ do+ grammarTests+ checkerTests+ nonInterferenceTests++--------------------------------------------------------------------------------+-- Milestone 1: grammar, parser and printer+--------------------------------------------------------------------------------++grammarTests :: Spec+grammarTests = do+ it "parses a source on a typed router input and on one of two reaction inputs" $ do+ parsed <- parseFixture "test/fixtures/input-source/sourced.keiro"+ routerSources parsed `shouldBe` [("HospitalTransferRouter", Just ("transferInbox", "TransferNeedAccepted" :| [], 77))]+ processSources parsed+ `shouldBe` [ ("TransferNeedTracking", "TransferNeedArrived", Just ("transferInbox", "TransferNeedAccepted" :| [], 167)),+ ("TransferNeedTracking", "TransferNeedWithdrawnInput", Nothing)+ ]++ it "parses a source on a braces router input" $ do+ parsed <- parseFixture "test/fixtures/topology/incident-command-sourced.keiro"+ lookup "CapacityChangeRouter" (routerSources parsed)+ `shouldBe` Just (Just ("hospitalInbox", "HospitalCapacitySnapshotPublished" :| [], 511))++ it "parses a source on a legacy process input" $ do+ original <- readFixtureText "test/fixtures/topology/hospital-capacity.keiro"+ let sourced =+ T.replace+ " input SurgeInput {"+ " input SurgeInput from intake incidentInbox event IncidentTransferNeedDeclared {"+ original+ sourced `shouldNotBe` original+ parsed <- either (fail . T.unpack) pure (parseText "hospital-capacity.keiro" sourced)+ [(processId, inputName, source) | (processId, inputName, source@(Just _)) <- processSources parsed]+ `shouldBe` [("HospitalSurge", "SurgeInput", Just ("incidentInbox", "IncidentTransferNeedDeclared" :| [], 497))]+ validationErrors parsed `shouldBe` []++ it "prints the clause where it was written, and the printed form parses back to the same sources" $+ forM_ ["test/fixtures/input-source/sourced.keiro", "test/fixtures/topology/incident-command-sourced.keiro"] $ \path -> do+ parsed <- parseFixture path+ let printed = renderSource parsed+ printed `shouldSatisfy` T.isInfixOf " from intake "+ reparsed <- either (fail . T.unpack) pure (parseText path printed)+ renderSource reparsed `shouldBe` printed+ map (fmap dropLine . snd) (routerSources reparsed) `shouldBe` map (fmap dropLine . snd) (routerSources parsed)+ [(p, i, fmap dropLine s) | (p, i, s) <- processSources reparsed] `shouldBe` [(p, i, fmap dropLine s) | (p, i, s) <- processSources parsed]++ it "Languages 1 to 5 refuse the clause with the version requirement" $+ forM_ [1 .. 5 :: Int] $ \version ->+ forM_ [legacyRouterProbe, legacyProcessProbe] $ \probe ->+ case parseText "probe.keiro" (probe version) of+ Right _ -> expectationFailure ("Language " <> show version <> " accepted an input source")+ Left message -> message `shouldSatisfy` T.isInfixOf "requires keiro-dsl language version 6"++ it "an input name followed directly by its body parses as before" $ do+ unsourced <- parseFixture "test/fixtures/input-source/unsourced.keiro"+ sourced <- parseFixture "test/fixtures/input-source/sourced.keiro"+ [source | (_, source) <- routerSources unsourced] `shouldBe` [Nothing]+ [source | (_, _, source) <- processSources unsourced] `shouldBe` [Nothing, Nothing]+ -- The two files differ only by the two clauses, on unchanged lines, so+ -- removing the parsed sources must give the unsourced specification exactly.+ stripSources sourced.spec `shouldBe` unsourced.spec++legacyRouterProbe :: Int -> Text+legacyRouterProbe version =+ T.unlines+ [ "language keiro-dsl " <> T.pack (show version),+ "context probe",+ "",+ "router ProbeRouter",+ " name \"probe-router\"",+ " input ProbeInput from intake probeInbox event ProbeEvent { probeId }"+ ]++legacyProcessProbe :: Int -> Text+legacyProcessProbe version =+ T.unlines+ [ "language keiro-dsl " <> T.pack (show version),+ "context probe",+ "",+ "process ProbeProcess",+ " name \"probe-process\"",+ " input ProbeInput from intake probeInbox event ProbeEvent { probeId }"+ ]++--------------------------------------------------------------------------------+-- Milestone 2: checker+--------------------------------------------------------------------------------++checkerTests :: Spec+checkerTests = do+ it "the sourced fixture checks clean" $ do+ parsed <- parseFixture "test/fixtures/input-source/sourced.keiro"+ validationErrors parsed `shouldBe` []++ it "reports an unknown intake and each unaccepted event, once per event" $ do+ original <- readFixtureText "test/fixtures/input-source/sourced.keiro"+ let broken =+ T.replace+ "from intake transferInbox event TransferNeedAccepted : TransferRouteInput"+ "from intake transferInbx event TransferNeedAccepted : TransferRouteInput"+ ( T.replace+ "from intake transferInbox event TransferNeedAccepted { transferNeedId:Text }"+ "from intake transferInbox event TransferNeedAccepted TransferNeedRejected TransferNeedRejected TransferNeedLost { transferNeedId:Text }"+ original+ )+ parsed <- either (fail . T.unpack) pure (parseText "sourced.keiro" broken)+ [(diagnostic.code, diagnostic.line) | diagnostic <- validationErrors parsed]+ `shouldBe` [ (InputSourceUnresolvedIntake, 77),+ (InputSourceEventNotAccepted, 167),+ (InputSourceEventNotAccepted, 167)+ ]+ [diagnostic.message | diagnostic <- validationErrors parsed, diagnostic.code == InputSourceUnresolvedIntake]+ `shouldBe` ["input 'AcceptedHospitalTransferNeed' of router 'HospitalTransferRouter' names intake 'transferInbx', which is not declared in this service"]+ [diagnostic.message | diagnostic <- validationErrors parsed, diagnostic.code == InputSourceEventNotAccepted]+ `shouldBe` [ "input 'TransferNeedArrived' of process 'TransferNeedTracking' is fed by intake 'transferInbox' event 'TransferNeedRejected', which the intake does not accept",+ "input 'TransferNeedArrived' of process 'TransferNeedTracking' is fed by intake 'transferInbox' event 'TransferNeedLost', which the intake does not accept"+ ]++ it "resolves an intake declared in another workspace member" $ do+ manifest <- resolveTestPath "test/fixtures/input-source/workspace/service.keiro-workspace"+ loaded <- loadWorkspace (fileContentSource (takeDirectory manifest)) manifest+ case loaded of+ Left failure -> expectationFailure (show failure)+ Right workspace -> [diagnostic | diagnostic <- checkWorkspace workspace, diagnostic.severity == Error] `shouldBe` []++--------------------------------------------------------------------------------+-- Milestone 2: non-interference+--------------------------------------------------------------------------------++nonInterferenceTests :: Spec+nonInterferenceTests = do+ it "scaffolding a sourced specification writes byte-identical files to the unsourced one" $+ withTempDirectory "keiro-dsl-input-source-scaffold" $ \directory -> do+ outputs <- forM ["sourced", "unsourced"] $ \variant -> do+ original <- resolveTestPath ("test/fixtures/input-source/" <> variant <> ".keiro")+ let inputDirectory = directory </> variant+ createDirectory inputDirectory+ BS.readFile original >>= BS.writeFile (inputDirectory </> "service.keiro")+ (exitCode, _, stderrText) <-+ readCreateProcessWithExitCode ((proc "keiro-dsl" ["scaffold", "service.keiro", "--out", "out"]) {cwd = Just inputDirectory}) ""+ exitCode `shouldBe` ExitSuccess+ stderrText `shouldSatisfy` const True+ files <- listFilesRecursively (inputDirectory </> "out")+ contents <- forM files $ \file -> (,) (makeRelative (inputDirectory </> "out") file) <$> BS.readFile file+ pure (sort contents)+ case outputs of+ [sourcedFiles, unsourcedFiles] -> do+ map fst sourcedFiles `shouldBe` map fst unsourcedFiles+ map fst sourcedFiles `shouldSatisfy` any (T.isPrefixOf "keiro-dsl-ledger." . T.pack . lastSegment)+ map fst sourcedFiles `shouldSatisfy` any (T.isPrefixOf "keiro-dsl-cabal-fragment." . T.pack . lastSegment)+ forM_ (zip sourcedFiles unsourcedFiles) $ \((path, sourcedBytes), (_, unsourcedBytes)) ->+ (path, sourcedBytes == unsourcedBytes) `shouldBe` (path, True)+ _ -> expectationFailure "expected two scaffold outputs"++ it "declaring a source changes no fold, reaction or router-selection fingerprint" $ do+ sourced <- checkedSource <$> parseFixture "test/fixtures/input-source/sourced.keiro"+ unsourced <- checkedSource <$> parseFixture "test/fixtures/input-source/unsourced.keiro"+ sourcedFingerprints <- identities sourced+ unsourcedFingerprints <- identities unsourced+ let (folds, reactions, selections) = sourcedFingerprints+ folds `shouldSatisfy` (not . null)+ reactions `shouldSatisfy` (not . null)+ selections `shouldSatisfy` (not . null)+ sourcedFingerprints `shouldBe` unsourcedFingerprints++ it "diff reports no breaking or replay-affecting change for adding sources" $ do+ sourced <- parseFixture "test/fixtures/input-source/sourced.keiro"+ unsourced <- parseFixture "test/fixtures/input-source/unsourced.keiro"+ case diffSources unsourced sourced of+ Left failure -> expectationFailure (show failure)+ Right changes -> [change | change@(Breaking _) <- changes] `shouldBe` []+ replayImpactServices (checkedSource unsourced) (checkedSource sourced) `shouldBe` Right ReplayNeutral++-- | Fold fingerprints of every aggregate, the reaction fingerprint of every+-- reaction process, and the selection fingerprint of every declarative router.+identities :: CheckedService -> IO ([(Text, Text)], [(Text, Text)], [(Text, Text)])+identities service = do+ let spec = checkedSpec service+ contract = checkedLanguageContract service+ graph <- either (fail . show) pure (resolveTypeGraph spec)+ folds <- forM [aggregate | NAggregate aggregate <- spec.nodes] $ \aggregate ->+ either (fail . show) (pure . (,) aggregate.name) (aggregateFoldFingerprintForService service aggregate)+ reactions <- forM [process | NProcess process <- spec.nodes, ReactionProcessBody _ <- [process.body]] $ \process ->+ either (fail . show) (pure . (,) process.id . processReactionFingerprint) (checkProcessReaction contract graph spec process)+ selections <- forM [router | NRouter router <- spec.nodes] $ \router ->+ either (fail . show) (pure . (,) router.id . routerSelectionFingerprint) (checkRouterSelection contract graph spec router)+ pure (folds, reactions, selections)++--------------------------------------------------------------------------------+-- Helpers+--------------------------------------------------------------------------------++type SourceSummary = (Text, NonEmpty Text, Int)++summarize :: InputDecl -> Maybe SourceSummary+summarize input = fmap (\source -> (source.intake, source.events, G.unLoc source.loc)) input.source++dropLine :: SourceSummary -> (Text, NonEmpty Text)+dropLine (intake, events, _) = (intake, events)++routerSources :: ParsedSource -> [(Text, Maybe SourceSummary)]+routerSources parsed = [(router.id, summarize router.input) | NRouter router <- parsed.spec.nodes]++processSources :: ParsedSource -> [(Text, Text, Maybe SourceSummary)]+processSources parsed =+ [ (process.id, input.name, summarize input)+ | NProcess process <- parsed.spec.nodes,+ input <- case process.body of+ LegacyProcessBody input _ _ -> [input]+ ReactionProcessBody reaction -> NE.toList reaction.inputs+ ]++stripSources :: G.Spec -> G.Spec+stripSources spec = spec {G.nodes = map stripNode spec.nodes}+ where+ stripNode = \case+ NRouter router -> NRouter router {input = clear router.input}+ NProcess process -> NProcess process {body = stripBody process.body}+ other -> other+ stripBody = \case+ LegacyProcessBody input handle timer -> LegacyProcessBody (clear input) handle timer+ ReactionProcessBody reaction -> ReactionProcessBody reaction {inputs = NE.map clear reaction.inputs}+ clear :: InputDecl -> InputDecl+ clear input = input {source = Nothing}++validationErrors :: ParsedSource -> [Diagnostic]+validationErrors parsed = [diagnostic | diagnostic <- validateService (checkedSource parsed), diagnostic.severity == Error]++parseText :: FilePath -> Text -> Either Text ParsedSource+parseText path source = case parseSourceDocument path source of+ Left failure -> Left (renderParseFailure failure)+ Right document -> Right document.parsedSource++parseFixture :: FilePath -> IO ParsedSource+parseFixture path = do+ source <- readFixtureText path+ either (fail . T.unpack) pure (parseText path source)++readFixtureText :: FilePath -> IO Text+readFixtureText path = do+ resolved <- resolveTestPath path+ TE.decodeUtf8 <$> BS.readFile resolved++lastSegment :: FilePath -> FilePath+lastSegment = reverse . takeWhile (/= '/') . reverse++listFilesRecursively :: FilePath -> IO [FilePath]+listFilesRecursively directory = do+ entries <- map (directory </>) <$> listDirectory directory+ nested <- forM entries $ \entry -> do+ isDirectory <- doesDirectoryExist entry+ if isDirectory then listFilesRecursively entry else pure [entry]+ pure (concat nested)++-- | Locate a repo file regardless of the test process's current directory.+resolveTestPath :: FilePath -> IO FilePath+resolveTestPath rel = do+ override <- lookupEnv "KEIRO_DSL_TEST_ROOT"+ let candidates = [rel, "keiro-dsl" </> rel] <> maybe [] (\root -> [root </> rel]) override+ existing <- filterM doesFileExist candidates+ case existing of+ path : _ -> pure path+ [] -> fail ("unable to locate keiro-dsl test file " <> show rel <> "; tried " <> show candidates)++withTempDirectory :: String -> (FilePath -> IO a) -> IO a+withTempDirectory template = bracket acquire removePathForcibly+ where+ acquire = do+ base <- getTemporaryDirectory+ (path, handle) <- openTempFile base template+ hClose handle+ removeFile path+ createDirectory path+ pure path
@@ -0,0 +1,997 @@+-- | Tests for the service topology export (@keiro-dsl topology@,+-- @keiro-dsl/service-topology/1@).+module Keiro.Dsl.TopologySpec (topologySpec) where++import Control.Exception (bracket)+import Control.Monad (filterM, forM, forM_)+import Data.Aeson (Value (..))+import Data.Aeson qualified as Aeson+import Data.Aeson.Key qualified as Key+import Data.Aeson.KeyMap qualified as KeyMap+import Data.ByteString qualified as BS+import Data.ByteString.Char8 qualified as BS8+import Data.Char (isSpace)+import Data.Foldable (toList)+import Data.List (isPrefixOf, sort)+import Data.Set qualified as Set+import Data.Text (Text)+import Data.Text qualified as T+import Data.Text.Encoding qualified as TE+import Data.Vector qualified as Vector+import Data.Version (showVersion)+import Keiro.Dsl.Grammar (Aggregate, Node (..))++-- Brings the grammar record fields into scope for record-dot access.+import Keiro.Dsl.Grammar qualified as Grammar+import Keiro.Dsl.LanguageVersion (ParsedSource (..))+import Keiro.Dsl.Parser (parseSourceDocument, renderParseFailure)+import Keiro.Dsl.SourceIndex (ParsedSourceDocument (..))+import Keiro.Dsl.Topology+import Keiro.Dsl.Workspace (WorkspaceSpec, oneMemberParsedDocumentWorkspace)+import Paths_keiro_dsl qualified as Package+import System.Directory (createDirectory, createDirectoryIfMissing, doesFileExist, doesPathExist, getTemporaryDirectory, listDirectory, makeAbsolute, removeFile, removePathForcibly)+import System.Environment (lookupEnv)+import System.Exit (ExitCode (..))+import System.FilePath (takeDirectory, takeFileName, (</>))+import System.IO (hClose, openTempFile)+import System.Process (CreateProcess (..), proc, readCreateProcessWithExitCode)+import Test.Hspec++topologySpec :: Spec+topologySpec = describe "service topology" $ do+ libraryTests+ commandTests+ catalogTests+ stabilityTests+ scaffoldExportTests+ freshnessCheckTests+ machineTests+ feedsTests+ liveJoinTests++--------------------------------------------------------------------------------+-- Milestone 1: the library+--------------------------------------------------------------------------------++libraryTests :: Spec+libraryTests = do+ it "spells the closed node-kind and relation sets" $ do+ map nodeKindText allNodeKinds+ `shouldBe` [ "aggregate",+ "process",+ "workflow",+ "router",+ "contract",+ "intake",+ "emit",+ "publisher",+ "workqueue",+ "dispatch",+ "read-model",+ "operation",+ "projection-target",+ "rebuild-group",+ "projection-owner",+ "projection-revision",+ "external-read"+ ]+ map relationText allRelations+ `shouldBe` [ "dispatches",+ "saga",+ "reads",+ "projects",+ "publishes",+ "subscribes",+ "delivers",+ "enqueues",+ "commands",+ "queries",+ "signals",+ "runs",+ "depends-on",+ "groups",+ "consumes",+ "writes",+ "member-of",+ "revises",+ "observes",+ "backed-by",+ "exposes",+ "compatible-with",+ "feeds"+ ]++ it "digests the exact member bytes" $+ memberDigest "abc" `shouldBe` "sha256:ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad"++ it "records each node's owning member, line and context" $ do+ topology <- inlineTopology "reaction.keiro" reactionSource+ [(nodeKindText node.kind, node.name, node.member, node.line, node.context) | node <- topology.nodes]+ `shouldBe` [ ("aggregate", "Incident", "reaction.keiro", 31, "topology-reaction"),+ ("aggregate", "IncidentSaga", "reaction.keiro", 24, "topology-reaction"),+ ("process", "IncidentReaction", "reaction.keiro", 6, "topology-reaction")+ ]+ topologySchemaId topology `shouldBe` "keiro-dsl/service-topology/1"+ topology.service `shouldBe` "reaction"+ topology.source `shouldBe` TopologySource {kind = TopologySingleSource, path = "reaction.keiro"}++ it "collects dispatches from reaction arms and accepted follow-ups, once each" $ do+ topology <- inlineTopology "reaction.keiro" reactionSource+ edgeSummaries topology+ `shouldBe` [ ("process", "IncidentReaction", "dispatches", "aggregate", "Incident", [("command", String "EscalateIncident")]),+ ("process", "IncidentReaction", "saga", "aggregate", "IncidentSaga", [("category", String "incidentSaga")])+ ]++ it "resolves projections to the aggregate owning the projection table" $ do+ topology <- inlineTopology "projects.keiro" projectsSource+ [summary | summary@(_, _, "projects", _, _, _) <- edgeSummaries topology]+ `shouldBe` [("process", "IncidentReaction", "projects", "aggregate", "Incident", [("table", String "incident_board")])]++ it "writes a null discriminator for an envelope-discriminated contract" $ do+ source <- TE.decodeUtf8 <$> BS.readFile "test/fixtures/contract-foreign-event.keiro"+ topology <- inlineTopology "contract-foreign-event.keiro" source+ [(node.name, KeyMap.lookup "discriminator" node.details) | node <- topology.nodes, nodeKindText node.kind == "contract"]+ `shouldBe` [("audit", Just (String "messageType")), ("registration", Just Null), ("signals", Just Null)]++ it "emits one edge per operation form" $ do+ topology <- inlineTopology "operations.keiro" operationsSource+ [(fromName, relation, toKind, toName, attributes) | ("operation", fromName, relation, toKind, toName, attributes) <- edgeSummaries topology]+ `shouldBe` [ ("OpenTicket", "commands", "aggregate", "Ticket", []),+ ("QueryTickets", "queries", "read-model", "ticket_board", []),+ ("RunTriage", "runs", "workflow", "TicketTriage", []),+ ("SignalTriage", "signals", "workflow", "TicketTriage", [("label", String "triage-decision")])+ ]++ it "sorts nodes by kind and name and edges by their identity" $ do+ topology <- inlineTopology "operations.keiro" operationsSource+ let nodeKeys = [(nodeKindText node.kind, node.name) | node <- topology.nodes]+ edgeKeys = [(fromKind, fromName, relation, toKind, toName) | (fromKind, fromName, relation, toKind, toName, _) <- edgeSummaries topology]+ nodeKeys `shouldBe` sort nodeKeys+ edgeKeys `shouldBe` sort edgeKeys++ it "refuses an edge whose endpoint names no node" $ do+ case parseInline "dangling.keiro" danglingSource of+ Left message -> expectationFailure (T.unpack message)+ Right workspace ->+ buildServiceTopology TopologySingleSource "dangling.keiro" workspace [("dangling.keiro", memberDigest "")]+ `shouldSatisfy` \case+ Left (TopologyDanglingEdge _ Dispatches (NodeRef AggregateKind "Missing")) -> True+ _ -> False++ it "refuses a member without a digest" $+ case parseInline "reaction.keiro" reactionSource of+ Left message -> expectationFailure (T.unpack message)+ Right workspace ->+ buildServiceTopology TopologySingleSource "reaction.keiro" workspace []+ `shouldBe` Left (TopologyMissingDigest "reaction.keiro")++ it "encodes canonical bytes followed by exactly one newline" $ do+ topology <- inlineTopology "reaction.keiro" reactionSource+ let bytes = encodeServiceTopology topology+ BS8.last bytes `shouldBe` '\n'+ BS8.count '\n' bytes `shouldBe` 1+ BS.isPrefixOf "{\"edges\":[" bytes `shouldBe` True++--------------------------------------------------------------------------------+-- Milestone 2: the command and golden documents+--------------------------------------------------------------------------------++goldenCases :: [(FilePath, FilePath)]+goldenCases =+ [ ("test/fixtures/topology/hospital-capacity.keiro", "test/fixtures/topology/hospital-capacity.topology.golden.json"),+ ("test/fixtures/topology/incident-command.keiro", "test/fixtures/topology/incident-command.topology.golden.json"),+ ("test/fixtures/topology/workspace/service.keiro-workspace", "test/fixtures/topology/workspace/service.topology.golden.json"),+ ("test/fixtures/topology/projection-catalog.keiro", "test/fixtures/topology/projection-catalog.topology.golden.json"),+ ("test/fixtures/topology/incident-command-sourced.keiro", "test/fixtures/topology/incident-command-sourced.topology.golden.json")+ ]++commandTests :: Spec+commandTests = do+ forM_ goldenCases $ \(source, golden) ->+ it ("exports " <> takeFileName source <> " byte-for-byte as its golden document") $ do+ (exitCode, stdoutBytes, stderrText) <- runTopology [source, "--format", "json"]+ stderrText `shouldBe` ""+ exitCode `shouldBe` ExitSuccess+ assertMatchesByteGolden golden (withVersionPlaceholder stdoutBytes)++ it "golden documents are closed: unique node identities and resolvable edge endpoints" $+ forM_ goldenCases $ \(_, golden) -> do+ document <- readGolden golden+ let identities = nodeIdentities document+ length identities `shouldBe` Set.size (Set.fromList identities)+ forM_ (edgeObjects document) $ \edgeObject -> do+ endpoint "from" edgeObject `shouldSatisfy` (`elem` identities)+ endpoint "to" edgeObject `shouldSatisfy` (`elem` identities)++ it "hospital-capacity declares every non-catalog node kind" $ do+ document <- readGolden "test/fixtures/topology/hospital-capacity.topology.golden.json"+ let kinds = Set.fromList (map fst (nodeIdentities document))+ forM_ (take 12 (map nodeKindText allNodeKinds)) $ \kind ->+ kinds `shouldSatisfy` Set.member kind++ it "hospital-capacity carries an edge of every relation its declarations support" $ do+ document <- readGolden "test/fixtures/topology/hospital-capacity.topology.golden.json"+ Set.fromList (map relationOf (edgeObjects document))+ `shouldBe` Set.fromList+ [ "dispatches",+ "saga",+ "reads",+ "projects",+ "publishes",+ "subscribes",+ "delivers",+ "enqueues",+ "signals",+ "runs",+ "groups",+ "consumes",+ "writes",+ "member-of",+ "observes"+ ]++ it "the two services publish and subscribe the same physical topics" $ do+ hospital <- readGolden "test/fixtures/topology/hospital-capacity.topology.golden.json"+ incident <- readGolden "test/fixtures/topology/incident-command.topology.golden.json"+ let topics relation document = Set.fromList [topic | edgeObject <- edgeObjects document, relationOf edgeObject == relation, Just (String topic) <- [attribute "topic" edgeObject]]+ topics "publishes" hospital `shouldBe` Set.fromList ["emergency.hospital.events"]+ topics "subscribes" hospital `shouldBe` Set.fromList ["emergency.incident.events"]+ topics "publishes" incident `shouldBe` Set.fromList ["emergency.incident.events"]+ topics "subscribes" incident `shouldBe` Set.fromList ["emergency.hospital.events"]++ it "refuses a source with a validation error and prints nothing on stdout" $ do+ (exitCode, stdoutBytes, stderrText) <- runTopology ["test/fixtures/readmodel-query-unresolved.keiro"]+ exitCode `shouldSatisfy` (/= ExitSuccess)+ stdoutBytes `shouldBe` ""+ stderrText `shouldSatisfy` T.isInfixOf "error["++--------------------------------------------------------------------------------+-- Milestone 3: the projection catalog+--------------------------------------------------------------------------------++catalogTests :: Spec+catalogTests = do+ it "the projection-catalog document carries every catalog kind and relation" $ do+ document <- readGolden "test/fixtures/topology/projection-catalog.topology.golden.json"+ let kinds = Set.fromList (map fst (nodeIdentities document))+ relations = Set.fromList (map relationOf (edgeObjects document))+ forM_ ["projection-target", "rebuild-group", "projection-owner", "projection-revision", "external-read"] $ \kind ->+ kinds `shouldSatisfy` Set.member kind+ forM_ ["depends-on", "groups", "consumes", "writes", "member-of", "revises", "observes", "backed-by", "exposes", "compatible-with"] $ \relation ->+ relations `shouldSatisfy` Set.member relation++ it "traces an aggregate through its projection owner and target to a read model" $ do+ document <- readGolden "test/fixtures/topology/projection-catalog.topology.golden.json"+ let edgesOf relation = [(endpoint "from" e, endpoint "to" e) | e <- edgeObjects document, relationOf e == relation]+ traces =+ [ (aggregate, readModel)+ | (owner, aggregate) <- edgesOf "consumes",+ (owner', target) <- edgesOf "writes",+ owner == owner',+ (readModel, target') <- edgesOf "observes" <> edgesOf "backed-by",+ target == target'+ ]+ traces `shouldSatisfy` elem (("aggregate", "Orders"), ("read-model", "order_inline"))++--------------------------------------------------------------------------------+-- Milestone 4: byte stability+--------------------------------------------------------------------------------++stabilityTests :: Spec+stabilityTests = do+ it "two runs produce identical bytes" $+ forM_ goldenCases $ \(source, _) -> do+ (_, first, _) <- runTopology [source]+ (_, second, _) <- runTopology [source]+ first `shouldBe` second++ it "the output does not depend on the working directory or path spelling" $ do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro" >>= makeAbsolute+ (exitAbsolute, fromAbsolute, _) <- runTopologyIn Nothing [source]+ (exitRelative, fromRelative, _) <- runTopologyIn (Just (takeDirectory source)) [takeFileName source]+ exitAbsolute `shouldBe` ExitSuccess+ exitRelative `shouldBe` ExitSuccess+ fromAbsolute `shouldBe` fromRelative++ it "reordering top-level declarations changes only member digests and node lines" $ do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ original <- BS.readFile source+ let reordered = reverseNodeDeclarations original+ reordered `shouldNotBe` original+ withTempDirectory "keiro-dsl-topology-reorder" $ \directory -> do+ let copy = directory </> takeFileName source+ BS.writeFile copy reordered+ (exitOriginal, fromOriginal, _) <- runTopology [source]+ (exitReordered, fromReordered, stderrReordered) <- runTopology [copy]+ exitOriginal `shouldBe` ExitSuccess+ stderrReordered `shouldBe` ""+ exitReordered `shouldBe` ExitSuccess+ fromReordered `shouldNotBe` fromOriginal+ fmap withoutPositions (decodeDocument fromReordered) `shouldBe` fmap withoutPositions (decodeDocument fromOriginal)++--------------------------------------------------------------------------------+-- EP-2: scaffold --topology-out and topology --check+--------------------------------------------------------------------------------++scaffoldExportTests :: Spec+scaffoldExportTests = do+ forM_+ [ "test/fixtures/topology/hospital-capacity.keiro",+ "test/fixtures/topology/workspace/service.keiro-workspace"+ ]+ $ \source ->+ it ("scaffold --topology-out writes the topology command's bytes for " <> takeFileName source) $+ withTempDirectory "keiro-dsl-topology-scaffold" $ \directory -> do+ resolved <- resolveTestPath source >>= makeAbsolute+ let exportPath = directory </> "exports" </> "topology.json"+ (scaffoldExit, _, _) <- runCli Nothing ["scaffold", resolved, "--out", directory </> "out", "--topology-out", exportPath]+ scaffoldExit `shouldBe` ExitSuccess+ (topologyExit, expected, _) <- runCli Nothing ["topology", resolved]+ topologyExit `shouldBe` ExitSuccess+ BS.readFile exportPath >>= (`shouldBe` expected)++ it "a refused scaffold writes no topology file" $+ withTempDirectory "keiro-dsl-topology-refused" $ \directory -> do+ resolved <- resolveTestPath "test/fixtures/readmodel-query-unresolved.keiro"+ let exportPath = directory </> "topology.json"+ (exitCode, _, _) <- runCli Nothing ["scaffold", resolved, "--out", directory </> "out", "--topology-out", exportPath]+ exitCode `shouldSatisfy` (/= ExitSuccess)+ doesFileExist exportPath `shouldReturn` False++ it "refuses an export path that names an input or a scaffold record, changing no byte" $+ withTempDirectory "keiro-dsl-topology-alias" $ \directory -> do+ original <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ let source = directory </> "hospital-capacity.keiro"+ out = directory </> "out"+ ledger = out </> "keiro-dsl-ledger.context.hospital-capacity.txt"+ BS.readFile original >>= BS.writeFile source+ (firstExit, _, _) <- runCli Nothing ["scaffold", source, "--out", out]+ firstExit `shouldBe` ExitSuccess+ sourceBytes <- BS.readFile source+ ledgerBytes <- BS.readFile ledger+ forM_ [source, ledger] $ \alias -> do+ (exitCode, _, stderrText) <- runCli Nothing ["scaffold", source, "--out", out, "--topology-out", alias]+ exitCode `shouldSatisfy` (/= ExitSuccess)+ stderrText `shouldSatisfy` T.isInfixOf "--topology-out"+ BS.readFile source `shouldReturn` sourceBytes+ BS.readFile ledger `shouldReturn` ledgerBytes++ it "refuses an export path that is a directory before the scaffold writes anything" $+ withTempDirectory "keiro-dsl-topology-directory" $ \directory -> do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro" >>= makeAbsolute+ let out = directory </> "out"+ existing = directory </> "exports"+ createDirectory existing+ forM_ [(existing, "it is a directory"), (out, "it is a directory the scaffold creates")] $ \(target, reason) -> do+ (exitCode, _, stderrText) <- runCli Nothing ["scaffold", source, "--out", out, "--topology-out", target]+ exitCode `shouldBe` ExitFailure 1+ stderrText `shouldSatisfy` T.isInfixOf ("scaffold: --topology-out " <> T.pack target <> " cannot be written: " <> reason <> "; nothing was written")+ doesPathExist out `shouldReturn` False+ listDirectory directory `shouldReturn` ["exports"]+ listDirectory existing `shouldReturn` []++ it "a successful export and a refused scaffold both leave no temporary file" $+ withTempDirectory "keiro-dsl-topology-temporary" $ \directory -> do+ original <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ let source = directory </> "hospital-capacity.keiro"+ out = directory </> "out"+ exports = directory </> "exports"+ BS.readFile original >>= BS.writeFile source+ (exitCode, _, _) <- runCli Nothing ["scaffold", source, "--out", out, "--topology-out", exports </> "topology.json"]+ exitCode `shouldBe` ExitSuccess+ listDirectory exports `shouldReturn` ["topology.json"]+ -- A hand-written file at a generated path refuses the scaffold after the+ -- export was prepared; the temporary file and its new directory go away.+ BS.writeFile (out </> "HospitalCapacity/Surge/Generated/EventStream.hs") "module Hand where\n"+ (refusedExit, _, _) <- runCli Nothing ["scaffold", source, "--out", out, "--topology-out", directory </> "fresh" </> "topology.json"]+ refusedExit `shouldBe` ExitFailure 1+ doesPathExist (directory </> "fresh") `shouldReturn` False++freshnessCheckTests :: Spec+freshnessCheckTests = do+ it "topology --check passes silently on fresh sources and names an edited member" $+ withTempDirectory "keiro-dsl-topology-check" $ \directory -> do+ original <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ let source = directory </> "hospital-capacity.keiro"+ committed = directory </> "topology.json"+ BS.readFile original >>= BS.writeFile source+ (_, document, _) <- runCli Nothing ["topology", source]+ BS.writeFile committed document+ runCli Nothing ["topology", source, "--check", committed] `shouldReturn` (ExitSuccess, "", "")+ BS.appendFile source "# edited\n"+ (exitCode, stdoutBytes, stderrText) <- runCli Nothing ["topology", source, "--check", committed]+ exitCode `shouldBe` ExitFailure 1+ stdoutBytes `shouldBe` ""+ stderrText `shouldSatisfy` T.isPrefixOf "topology stale: member 'hospital-capacity.keiro' changed (recorded sha256:"++ it "topology --check names new and removed workspace members" $+ withTempDirectory "keiro-dsl-topology-check-members" $ \directory -> do+ manifest <- resolveTestPath "test/fixtures/topology/workspace/service.keiro-workspace"+ let committed = directory </> "topology.json"+ (_, document, _) <- runCli Nothing ["topology", manifest]+ let renamed = replaceBytes "\"path\":\"domain/incident.keiro\"" "\"path\":\"domain/legacy.keiro\"" document+ BS.writeFile committed renamed+ (exitCode, _, stderrText) <- runCli Nothing ["topology", manifest, "--check", committed]+ exitCode `shouldBe` ExitFailure 1+ T.lines stderrText+ `shouldBe` [ "topology stale: member 'domain/incident.keiro' is not recorded in " <> T.pack committed,+ "topology stale: recorded member 'domain/legacy.keiro' is no longer a source member"+ ]++ it "topology --check reports a difference with unchanged sources, such as a tool upgrade" $+ withTempDirectory "keiro-dsl-topology-check-version" $ \directory -> do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ let committed = directory </> "topology.json"+ currentVersion = BS8.pack (showVersion Package.version)+ (_, document, _) <- runCli Nothing ["topology", source]+ BS.writeFile committed (replaceBytes ("\"version\":\"" <> currentVersion <> "\"") "\"version\":\"0.0.0.1\"" document)+ (exitCode, _, stderrText) <- runCli Nothing ["topology", source, "--check", committed]+ exitCode `shouldBe` ExitFailure 1+ stderrText+ `shouldBe` ( "topology stale: document differs with unchanged sources (generated by keiro-dsl 0.0.0.1, current keiro-dsl "+ <> T.pack (showVersion Package.version)+ <> "); regenerate it\n"+ )++ it "topology --check blames a renamed workspace service, not the keiro-dsl version" $+ withTempDirectory "keiro-dsl-topology-check-service" $ \directory -> do+ manifest <- copyWorkspaceFixture directory+ let committed = directory </> "topology.json"+ (_, document, _) <- runCli Nothing ["topology", manifest]+ BS.writeFile committed document+ manifestBytes <- BS.readFile manifest+ BS.writeFile manifest (replaceBytes "service incident-reaction" "service incident-response" manifestBytes)+ (exitCode, _, stderrText) <- runCli Nothing ["topology", manifest, "--check", committed]+ exitCode `shouldBe` ExitFailure 1+ stderrText+ `shouldBe` "topology stale: the service or manifest changed (recorded service 'incident-reaction', current 'incident-response'); regenerate it\n"+ stderrText `shouldNotSatisfy` T.isInfixOf "keiro-dsl"+ BS.writeFile manifest manifestBytes+ BS.appendFile (directory </> "domain" </> "incident.keiro") "# edited\n"+ (memberExit, _, memberErr) <- runCli Nothing ["topology", manifest, "--check", committed]+ memberExit `shouldBe` ExitFailure 1+ memberErr `shouldSatisfy` T.isPrefixOf "topology stale: member 'domain/incident.keiro' changed (recorded sha256:"+ memberErr `shouldSatisfy` T.isInfixOf ", current sha256:"++ it "topology --check falls back honestly when nothing it compares differs" $+ withTempDirectory "keiro-dsl-topology-check-fallback" $ \directory -> do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ let committed = directory </> "topology.json"+ (_, document, _) <- runCli Nothing ["topology", source]+ BS.writeFile committed (replaceBytes "\"line\":" "\"line\":1" document)+ (exitCode, _, stderrText) <- runCli Nothing ["topology", source, "--check", committed]+ exitCode `shouldBe` ExitFailure 1+ stderrText `shouldBe` "topology stale: document differs with unchanged sources and the same keiro-dsl version; regenerate it\n"++ it "topology --check refuses a file that is not a topology document" $+ withTempDirectory "keiro-dsl-topology-check-invalid" $ \directory -> do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro"+ let committed = directory </> "topology.json"+ BS.writeFile committed "{}"+ (exitCode, _, stderrText) <- runCli Nothing ["topology", source, "--check", committed]+ exitCode `shouldBe` ExitFailure 1+ stderrText `shouldBe` ("topology check: cannot read '" <> T.pack committed <> "' as a keiro-dsl service-topology document\n")+ (missingExit, _, _) <- runCli Nothing ["topology", source, "--check", directory </> "missing.json"]+ missingExit `shouldBe` ExitFailure 1++--------------------------------------------------------------------------------+-- EP-3: aggregate machines+--------------------------------------------------------------------------------++machineTests :: Spec+machineTests = do+ it "exports an aggregate machine in keiki's edge order, per source state" $ do+ machine <- fixtureMachine "test/fixtures/topology-machine.keiro" "Order"+ machine.ownership `shouldBe` MachineGenerated+ machine.initial `shouldBe` "Draft"+ [(state.name, state.terminal) | state <- machine.states]+ `shouldBe` [("Draft", False), ("Open", False), ("InTransit", False), ("Done", True)]+ [(e.source, e.edgeIndex, e.target, e.mode, e.command, e.events) | e <- machine.edges]+ `shouldBe` [ ("Draft", 0, "Open", MachineLive, "PlaceOrder", ["OrderPlaced"]),+ ("Draft", 1, "Draft", MachineLive, "NoteOrder", ["OrderNoted"]),+ ("Open", 0, "Open", MachineLive, "AmendOrder", ["OrderAmended"]),+ ("Open", 1, "InTransit", MachineLive, "ShipOrder", ["OrderShipped", "ShipmentLabelled"]),+ ("Open", 2, "Done", MachineReplayOnly, "CloseOrder", ["OrderClosed"]),+ ("InTransit", 0, "Done", MachineLive, "CloseOrder", ["OrderClosed"])+ ]++ it "marks a frozen Language 1 aggregate's hand-written machine as legacy-hole" $ do+ let legacy =+ T.unlines+ [ "context topology-legacy",+ "",+ "aggregate Counter",+ " regs",+ " states Idle Counting",+ " command Start { note:Text }",+ " event Started = fields(Start)",+ " Idle -- Start --> emit Started ; goto Counting"+ ]+ case parseSourceDocument "legacy.keiro" legacy of+ Left failure -> expectationFailure (T.unpack (renderParseFailure failure))+ Right document -> case [aggregate | NAggregate aggregate <- document.parsedSource.spec.nodes] of+ [aggregate] -> (aggregateMachine aggregate).ownership `shouldBe` MachineLegacyHole+ other -> expectationFailure ("expected one aggregate, got " <> show (length other))++ it "carries the machine inside each aggregate node's details" $ do+ document <- readGolden "test/fixtures/topology/hospital-capacity.topology.golden.json"+ let aggregates = [node | node <- listField "nodes" document, textField "kind" node == "aggregate"]+ aggregates `shouldSatisfy` (not . null)+ forM_ aggregates $ \node ->+ (field "details" node >>= field "machine" >>= field "ownership") `shouldBe` Just (String "generated")++--------------------------------------------------------------------------------+-- EP-4: the feeds relation and schema id /2+--------------------------------------------------------------------------------++feedsTests :: Spec+feedsTests = do+ it "a declared source becomes one feeds edge under schema id /2; unsourced documents stay /1" $ do+ sourced <- readGolden "test/fixtures/topology/incident-command-sourced.topology.golden.json"+ field "schema" sourced `shouldBe` Just (String "keiro-dsl/service-topology/2")+ [ (endpoint "from" e, endpoint "to" e, attribute "input" e, attribute "events" e)+ | e <- edgeObjects sourced,+ relationOf e == "feeds"+ ]+ `shouldBe` [ ( ("intake", "hospitalInbox"),+ ("router", "CapacityChangeRouter"),+ Just (String "AcceptedHospitalCapacitySnapshot"),+ Just (Aeson.toJSON ["HospitalCapacitySnapshotPublished" :: Text])+ )+ ]+ forM_ [golden | (source, golden) <- goldenCases, not ("-sourced" `T.isInfixOf` T.pack source)] $ \golden -> do+ document <- readGolden golden+ field "schema" document `shouldBe` Just (String "keiro-dsl/service-topology/1")++ it "the sourced document differs from the unsourced one only by schema, the feeds edge, and its member digest" $+ withTempDirectory "keiro-dsl-topology-feeds" $ \directory -> do+ documents <- forM ["incident-command-sourced.keiro", "incident-command.keiro"] $ \fixture -> do+ original <- resolveTestPath ("test/fixtures/topology/" <> fixture)+ let variantDirectory = directory </> takeWhile (/= '.') fixture+ copy = variantDirectory </> "incident-command.keiro"+ createDirectory variantDirectory+ BS.readFile original >>= BS.writeFile copy+ (exitCode, bytes, _) <- runTopology [copy]+ exitCode `shouldBe` ExitSuccess+ maybe (fail "topology output is not JSON") pure (decodeDocument bytes)+ case documents of+ [sourced, unsourced] -> do+ let normalize = withoutPositions . withoutFeeds . setField "schema" (String "keiro-dsl/service-topology/1")+ normalize sourced `shouldBe` withoutPositions unsourced+ length (edgeObjects sourced) `shouldBe` length (edgeObjects unsourced) + 1+ _ -> expectationFailure "expected two documents"++--------------------------------------------------------------------------------+-- Plan 343: fields a consumer joins to live data+--------------------------------------------------------------------------------++liveJoinTests :: Spec+liveJoinTests = do+ it "each aggregate's category is the category its generated inspector is mounted under" $+ withTempDirectory "keiro-dsl-topology-inspector" $ \directory -> do+ source <- resolveTestPath "test/fixtures/topology/hospital-capacity.keiro" >>= makeAbsolute+ let out = directory </> "out"+ (scaffoldExit, _, _) <- runCli Nothing ["scaffold", source, "--out", out]+ scaffoldExit `shouldBe` ExitSuccess+ inspectorCategories <- scaffoldedInspectorCategories out (out </> "HospitalCapacity/Generated/Inspection.hs")+ length inspectorCategories `shouldBe` 5+ (topologyExit, bytes, _) <- runCli Nothing ["topology", source]+ topologyExit `shouldBe` ExitSuccess+ document <- maybe (fail "topology output is not JSON") pure (decodeDocument bytes)+ let exported =+ [ (textField "name" node, category)+ | node <- listField "nodes" document,+ textField "kind" node == "aggregate",+ Just (String category) <- [field "details" node >>= field "category"]+ ]+ length exported `shouldBe` length [() | node <- listField "nodes" document, textField "kind" node == "aggregate"]+ Set.fromList (map snd exported) `shouldBe` Set.fromList inspectorCategories+ -- The saga aggregate is mounted under its own category, not the+ -- process's saga category.+ lookup "Surge" exported `shouldBe` Just "surge"++ it "each dispatch node names its dedupe read model, the target of its dedupe reads edge" $+ forM_ goldenCases $ \(_, golden) -> do+ document <- readGolden golden+ let dedupeTargets name =+ [ snd (endpoint "to" e)+ | e <- edgeObjects document,+ relationOf e == "reads",+ endpoint "from" e == ("dispatch", name),+ attribute "role" e == Just (String "dedupe")+ ]+ forM_ [node | node <- listField "nodes" document, textField "kind" node == "dispatch"] $ \node -> do+ let name = textField "name" node+ [dedupe | Just (String dedupe) <- [field "details" node >>= field "dedupReadModel"]] `shouldBe` dedupeTargets name++-- | The category text of every inspector in a scaffolded @Inspection@ module:+-- each @categoryText Alias.binding@ is resolved through the module's+-- @import M qualified as Alias@ to the literal @binding@ is defined as in M.+scaffoldedInspectorCategories :: FilePath -> FilePath -> IO [Text]+scaffoldedInspectorCategories out inspectionPath = do+ inspection <- TE.decodeUtf8 <$> BS.readFile inspectionPath+ let inspectionLines = T.lines inspection+ aliases =+ [ (alias, moduleName)+ | line <- inspectionLines,+ ["import", moduleName, "qualified", "as", alias] <- [T.words line]+ ]+ references =+ [ reference+ | line <- inspectionLines,+ (_, rest) <- [T.breakOn "(categoryText " line],+ not (T.null rest),+ reference <- take 1 (T.words (T.takeWhile (/= ')') (T.drop (T.length "(categoryText ") rest)))+ ]+ forM references $ \reference -> do+ let (alias, binding) = fmap (T.drop 1) (T.breakOn "." reference)+ moduleName <- maybe (fail ("no import for " <> T.unpack alias)) pure (lookup alias aliases)+ moduleText <- TE.decodeUtf8 <$> BS.readFile (out </> T.unpack (T.replace "." "/" moduleName <> ".hs"))+ case [ T.takeWhile (/= '"') (T.drop 1 (T.dropWhile (/= '"') line))+ | line <- T.lines moduleText,+ (binding <> " = Stream.categoryUnsafe ") `T.isPrefixOf` line+ ] of+ category : _ -> pure category+ [] -> fail ("no category literal for " <> T.unpack reference)++withoutFeeds :: Value -> Value+withoutFeeds = \case+ Object document -> Object (KeyMap.mapWithKey (\key value -> if Key.toText key == "edges" then dropFeeds value else value) document)+ other -> other+ where+ dropFeeds = \case+ Array edges -> Array (Vector.filter ((/= "feeds") . relationOf) edges)+ other -> other++setField :: Text -> Value -> Value -> Value+setField name value = \case+ Object document -> Object (KeyMap.insert (Key.fromText name) value document)+ other -> other++fixtureMachine :: FilePath -> Text -> IO MachineTopology+fixtureMachine path aggregateName = do+ resolved <- resolveTestPath path+ source <- TE.decodeUtf8 <$> BS.readFile resolved+ case parseSourceDocument resolved source of+ Left failure -> fail (T.unpack (renderParseFailure failure))+ Right document ->+ case [aggregate | NAggregate aggregate <- document.parsedSource.spec.nodes, aggregateNamed aggregate] of+ aggregate : _ -> pure (aggregateMachine aggregate)+ [] -> fail ("no aggregate " <> T.unpack aggregateName)+ where+ aggregateNamed :: Aggregate -> Bool+ aggregateNamed aggregate = aggregate.name == aggregateName++-- | Copy the topology workspace fixture into a directory and return the+-- manifest path of the copy.+copyWorkspaceFixture :: FilePath -> IO FilePath+copyWorkspaceFixture directory = do+ forM_ ["service.keiro-workspace", "domain/incident.keiro", "coordination/reaction.keiro"] $ \relative -> do+ original <- resolveTestPath ("test/fixtures/topology/workspace/" <> relative)+ createDirectoryIfMissing True (takeDirectory (directory </> relative))+ BS.readFile original >>= BS.writeFile (directory </> relative)+ pure (directory </> "service.keiro-workspace")++replaceBytes :: BS.ByteString -> BS.ByteString -> BS.ByteString -> BS.ByteString+replaceBytes needle replacement haystack =+ let (prefix, suffix) = BS.breakSubstring needle haystack+ in if BS.null suffix then haystack else prefix <> replacement <> BS.drop (BS.length needle) suffix++-- | Reverse the order of top-level node declarations, keeping the preamble+-- (language, context, layout, ids and enums) in place. Only whole+-- declarations move; nothing inside one is reordered.+reverseNodeDeclarations :: BS.ByteString -> BS.ByteString+reverseNodeDeclarations bytes =+ BS8.unlines (preamble <> concatMap terminate (reverse blocks))+ where+ sourceLines = BS8.lines bytes+ (preamble, rest) = break startsNode sourceLines+ blocks = splitBlocks rest+ splitBlocks [] = []+ splitBlocks (header : remaining) =+ let (body, next) = break startsNode remaining+ in (header : body) : splitBlocks next+ terminate block = reverse (dropWhile (BS8.all isSpace) (reverse block)) <> [""]+ startsNode line = any (\keyword -> (keyword <> " ") `BS.isPrefixOf` line) nodeKeywords+ nodeKeywords =+ [ "aggregate",+ "process",+ "router",+ "workflow",+ "operation",+ "contract",+ "intake",+ "emit",+ "publisher",+ "workqueue",+ "dispatch",+ "readmodel",+ "target",+ "rebuild-group",+ "projection-owner",+ "projection-revision",+ "external-read"+ ]++withoutPositions :: Value -> Value+withoutPositions = \case+ Object document -> Object (KeyMap.mapWithKey strip document)+ other -> other+ where+ strip key value = case (Key.toText key, value) of+ ("members", Array members) -> Array (fmap (dropField "sha256") members)+ ("nodes", Array nodes) -> Array (fmap (dropField "line") nodes)+ _ -> value+ dropField name = \case+ Object fields -> Object (KeyMap.delete (Key.fromText name) fields)+ other -> other++--------------------------------------------------------------------------------+-- Inline sources+--------------------------------------------------------------------------------++reactionSource :: Text+reactionSource =+ T.unlines+ [ "language keiro-dsl 6",+ "context topology-reaction",+ "",+ "id IncidentId prefix=inc",+ "",+ "process IncidentReaction",+ " name \"incident-reaction\"",+ " reactions version 1",+ " input IncidentReported { incidentId:IncidentId }",+ " correlate input.incidentId via idText",+ " saga IncidentSaga category \"incidentSaga\"",+ " target Incident",+ " projections [ ]",+ " on IncidentReported",+ " advance RecordIncident { incidentId }",+ " accepted",+ " dispatch Incident@input.incidentId EscalateIncident { incidentId }",+ " on-appended AckOk ; on-duplicate AckOk ; on-failed Retry",+ " silent no-action",+ " dispatch-id strategy=uuidv5 from=(name, correlationId, sourceEventId, targetStreamName, occurrence)",+ " rejected => halt",+ " poison => halt",+ "",+ "aggregate IncidentSaga",+ " regs",+ " states Open",+ " command RecordIncident { incidentId }",+ " event IncidentRecorded = fields(RecordIncident)",+ " Open -- RecordIncident --> emit IncidentRecorded ; goto Open",+ "",+ "aggregate Incident",+ " regs",+ " states Open",+ " command EscalateIncident { incidentId }",+ " event IncidentEscalated = fields(EscalateIncident)",+ " Open -- EscalateIncident --> emit IncidentEscalated ; goto Open"+ ]++projectsSource :: Text+projectsSource =+ T.replace+ " projections [ ]"+ " projections [ incident_board ]"+ ( T.replace+ " Open -- EscalateIncident --> emit IncidentEscalated ; goto Open"+ " Open -- EscalateIncident --> emit IncidentEscalated ; goto Open\n projection incident_board key=incidentId"+ reactionSource+ )++danglingSource :: Text+danglingSource =+ T.replace "dispatch Incident@input.incidentId" "dispatch Missing@input.incidentId" reactionSource++operationsSource :: Text+operationsSource =+ T.unlines+ [ "language keiro-dsl 6",+ "context topology-operations",+ "",+ "id TicketId prefix=tkt",+ "",+ "readmodel ticket_board {",+ " table = \"ticket_board\"",+ " schema = \"tickets\"",+ " columns {",+ " ticket_id text required",+ " }",+ " version = 1",+ " shape = \"fnv1a:0000000000000000\"",+ " freshness = immediate",+ "}",+ "",+ "aggregate Ticket",+ " regs",+ " states Open",+ " command OpenTicketCommand { ticketId }",+ " event TicketOpened = fields(OpenTicketCommand)",+ " Open -- OpenTicketCommand --> emit TicketOpened ; goto Open",+ "",+ "workflow TicketTriage",+ " name \"ticket-triage\"",+ " in TriageInput { ticketId:Id }",+ " out TriageSummary",+ " id from input.ticketId via idText",+ " body",+ " await triage-decision -> TriageDecision",+ "",+ "operation OpenTicket",+ " command on Ticket",+ " stream from ticketId via ticketStream",+ " project [ ticket_board ]",+ "",+ "operation QueryTickets",+ " query ticket_board",+ " input TicketId",+ " result Maybe TicketRow",+ "",+ "operation SignalTriage",+ " signal triage-decision of TicketTriage",+ " key from ticketId via triageWorkflowId",+ " value TriageDecision",+ "",+ "operation RunTriage",+ " run TicketTriage",+ " input TriageInput",+ " outcome -> TriageRun"+ ]++parseInline :: FilePath -> Text -> Either Text WorkspaceSpec+parseInline path source = case parseSourceDocument path source of+ Left failure -> Left (renderParseFailure failure)+ Right document -> either (Left . T.pack . show) Right (oneMemberParsedDocumentWorkspace path document)++inlineTopology :: FilePath -> Text -> IO ServiceTopology+inlineTopology path source = case parseInline path source of+ Left message -> fail (T.unpack message)+ Right workspace ->+ case buildServiceTopology TopologySingleSource path workspace [(path, memberDigest (TE.encodeUtf8 source))] of+ Left topologyError -> fail (T.unpack (renderTopologyError topologyError))+ Right topology -> pure topology++edgeSummaries :: ServiceTopology -> [(Text, Text, Text, Text, Text, [(Text, Value)])]+edgeSummaries topology =+ [ ( nodeKindText topologyEdge.from.kind,+ topologyEdge.from.name,+ relationText topologyEdge.relation,+ nodeKindText topologyEdge.to.kind,+ topologyEdge.to.name,+ [(Key.toText key, value) | (key, value) <- KeyMap.toList topologyEdge.attributes]+ )+ | topologyEdge <- topology.edges+ ]++--------------------------------------------------------------------------------+-- Decoded documents+--------------------------------------------------------------------------------++decodeDocument :: BS.ByteString -> Maybe Value+decodeDocument = Aeson.decodeStrict++readGolden :: FilePath -> IO Value+readGolden path = do+ resolved <- resolveTestPath path+ bytes <- BS.readFile resolved+ maybe (fail ("golden is not JSON: " <> path)) pure (decodeDocument bytes)++field :: Text -> Value -> Maybe Value+field name = \case+ Object fields -> KeyMap.lookup (Key.fromText name) fields+ _ -> Nothing++textField :: Text -> Value -> Text+textField name value = case field name value of+ Just (String text) -> text+ _ -> ""++listField :: Text -> Value -> [Value]+listField name value = case field name value of+ Just (Array values) -> toList values+ _ -> []++nodeIdentities :: Value -> [(Text, Text)]+nodeIdentities document = [(textField "kind" node, textField "name" node) | node <- listField "nodes" document]++edgeObjects :: Value -> [Value]+edgeObjects = listField "edges"++endpoint :: Text -> Value -> (Text, Text)+endpoint side edgeObject = case field side edgeObject of+ Just ref -> (textField "kind" ref, textField "name" ref)+ Nothing -> ("", "")++relationOf :: Value -> Text+relationOf = textField "relation"++attribute :: Text -> Value -> Maybe Value+attribute name edgeObject = field "attributes" edgeObject >>= field name++--------------------------------------------------------------------------------+-- Running the executable+--------------------------------------------------------------------------------++runTopology :: [FilePath] -> IO (ExitCode, BS.ByteString, Text)+runTopology = runTopologyIn Nothing++-- | Run @keiro-dsl topology@ with the raw stdout bytes. Fixture arguments are+-- resolved against the package or repository root unless a working directory+-- is given.+runTopologyIn :: Maybe FilePath -> [FilePath] -> IO (ExitCode, BS.ByteString, Text)+runTopologyIn workingDirectory arguments = do+ resolved <- case workingDirectory of+ Just _ -> pure arguments+ Nothing -> traverse resolveArgument arguments+ runCli workingDirectory ("topology" : resolved)+ where+ resolveArgument argument+ | "test/fixtures/" `isPrefixOf` argument = resolveTestPath argument+ | otherwise = pure argument++-- | Run the packaged @keiro-dsl@ executable with raw stdout bytes.+runCli :: Maybe FilePath -> [String] -> IO (ExitCode, BS.ByteString, Text)+runCli workingDirectory arguments = do+ (exitCode, stdoutText, stderrText) <-+ readCreateProcessWithExitCode ((proc "keiro-dsl" arguments) {cwd = workingDirectory}) ""+ pure (exitCode, TE.encodeUtf8 (T.pack stdoutText), T.pack stderrText)++-- | The generator version changes on every release; goldens store a+-- placeholder so a version bump does not rewrite every document.+withVersionPlaceholder :: BS.ByteString -> BS.ByteString+withVersionPlaceholder bytes =+ let (prefix, suffix) = BS.breakSubstring needle bytes+ in if BS.null suffix then bytes else prefix <> placeholder <> BS.drop (BS.length needle) suffix+ where+ needle = "\"generator\":{\"tool\":\"keiro-dsl\",\"version\":\"" <> BS8.pack (showVersion Package.version) <> "\"}"+ placeholder = "\"generator\":{\"tool\":\"keiro-dsl\",\"version\":\"<version>\"}"++assertMatchesByteGolden :: FilePath -> BS.ByteString -> IO ()+assertMatchesByteGolden path actual = do+ update <- lookupEnv "KEIRO_DSL_UPDATE_GOLDENS"+ if update == Just "1"+ then do+ resolved <- resolveGoldenWritePath path+ BS.writeFile resolved actual+ else do+ resolved <- resolveTestPath path+ BS.readFile resolved >>= (`shouldBe` actual)++-- | Where a golden should be written when it may not exist yet: beside the+-- fixture directory that does exist.+resolveGoldenWritePath :: FilePath -> IO FilePath+resolveGoldenWritePath path = do+ existing <- filterM doesFileExist [path, "keiro-dsl" </> path]+ case existing of+ found : _ -> pure found+ [] -> do+ fixtureDirectories <- filterM (doesFileExist . (</> "hospital-capacity.keiro")) ["test/fixtures/topology", "keiro-dsl/test/fixtures/topology"]+ case fixtureDirectories of+ directory : _ -> pure (takeDirectory directory </> dropPrefix "test/fixtures/" path)+ [] -> fail ("cannot locate the topology fixture directory for " <> path)+ where+ dropPrefix prefix value = if prefix `isPrefixOf` value then drop (length prefix) value else value++-- | Locate a repo file regardless of the test process's current directory.+resolveTestPath :: FilePath -> IO FilePath+resolveTestPath rel = do+ override <- lookupEnv "KEIRO_DSL_TEST_ROOT"+ let candidates = [rel, "keiro-dsl" </> rel] <> maybe [] (\root -> [root </> rel]) override+ existing <- filterM doesFileExist candidates+ case existing of+ path : _ -> pure path+ [] -> fail ("unable to locate keiro-dsl test file " <> show rel <> "; tried " <> show candidates)++withTempDirectory :: String -> (FilePath -> IO a) -> IO a+withTempDirectory template = bracket acquire removePathForcibly+ where+ acquire = do+ base <- getTemporaryDirectory+ (path, handle) <- openTempFile base template+ hClose handle+ removeFile path+ createDirectory path+ pure path
@@ -83,6 +83,7 @@ import Keiro.Dsl.HaskellImport import Keiro.Dsl.HaskellSourceMove import Keiro.Dsl.IdDomain (IdDomainContract (..), contractIdDomainContractFor, idDomainContractFor, idDomainIdentitiesForService)+import Keiro.Dsl.InputSourceSpec (inputSourceSpec) import Keiro.Dsl.LanguageVersion import Keiro.Dsl.Manifest (manifestDependencies, manifestDependenciesForService, moduleNameOf, renderManifest, renderManifestForService, renderManifestForServiceWithFacade) import Keiro.Dsl.MappedCodecPlan@@ -112,6 +113,7 @@ import Keiro.Dsl.Skeleton (skeletonFor, skeletonKinds) import Keiro.Dsl.Source (SourcePoint (..), SourceSpan (..)) import Keiro.Dsl.SourceIndex+import Keiro.Dsl.TopologySpec (topologySpec) import Keiro.Dsl.TypeGraph import Keiro.Dsl.Validate (Diagnostic (..), DiagnosticCode (..), Severity (..), derivedQueueTrio, diagnosticCodeText, parseDiagnosticCode, renderDiagnostic, validateService, validateSpec) import Keiro.Dsl.Workspace@@ -249,6 +251,8 @@ mappedStructuralEnumEqualitySpec consumerEnumLiteralsSpec frontendProfilesSpec+ topologySpec+ inputSourceSpec describe "calendar-day codec policy v1" $ do it "pins the stable identity and Aeson-compatible full-carrier writer" $ do@@ -1952,6 +1956,17 @@ "contract-list-fields-prefix-change.keiro", "contract-list-fields-admission-change.keiro", "contract-list-fields-language5.keiro",+ "contract-foreign-event.keiro",+ "contract-foreign-event-language5.keiro",+ "contract-foreign-event-envelope-language5.keiro",+ "contract-foreign-event-optional-to-required.keiro",+ "contract-foreign-event-optional-added.keiro",+ "contract-foreign-event-optional-scalar-change.keiro",+ "contract-foreign-event-optional-literal-to-declared.keiro",+ "contract-foreign-event-optional-literal-to-required-declared.keiro",+ "contract-foreign-event-discriminator-body.keiro",+ "contract-rollout-before.keiro",+ "contract-rollout-after.keiro", "declarative-router/unbounded.keiro", "declarative-router/valid.keiro", "direct-optional-id.keiro",@@ -1960,6 +1975,7 @@ "hospital-surge-reactions.keiro", "id-admission-domains.keiro", "id-domain-migration-v3.keiro",+ "intake-delegated-noop.keiro", "intake-delegated.keiro", "ir50-removal-new.keiro", "ir50-removal-old.keiro",@@ -2015,6 +2031,17 @@ "structural-nominal-leaves-text-to-nominal.keiro", "structural-nominal-leaves.keiro", "structural-text-sets.keiro",+ "input-source/sourced.keiro",+ "input-source/unsourced.keiro",+ "input-source/workspace/integration.keiro",+ "input-source/workspace/routing.keiro",+ "topology-machine.keiro",+ "topology/hospital-capacity.keiro",+ "topology/incident-command-sourced.keiro",+ "topology/incident-command.keiro",+ "topology/projection-catalog.keiro",+ "topology/workspace/coordination/reaction.keiro",+ "topology/workspace/domain/incident.keiro", "process-reactions-accepted-requires-event.keiro", "process-reactions-accepted-unverified.keiro", "process-reactions-badmapping.keiro",@@ -7137,7 +7164,7 @@ ( \contract -> contractNodeWithEvents ( updateFirst- (\event -> contractEventWithFields (updateFirst (contractFieldWithName contract.discriminator) event.fields) event)+ (\event -> contractEventWithFields (updateFirst (contractFieldWithName (fromMaybe "messageType" (contractBodyDiscriminator contract))) event.fields) event) contract.events ) contract@@ -8259,7 +8286,7 @@ Right spec -> case [c | NContract c <- (.nodes) spec] of (c : _) -> do (.name) c `shouldBe` "emergency"- (.discriminator) c `shouldBe` "messageType"+ (.discriminator) c `shouldBe` DiscriminatorBodyKey "messageType" map fst ((.topics) c) `shouldBe` ["incidentEvents", "hospitalEvents"] map (.name) ((.events) c) `shouldBe` ["IncidentTransferNeedDeclared", "TransferReservationAccepted"] [] -> expectationFailure "no contract node parsed"@@ -8575,9 +8602,13 @@ it "rejects genuine container applications even when their names are declared IDs" $ do forM_ ["Optional", "Map", "Set", "List"] $ \nominal ->- forM_ (filter (/= "List text") [nominal <> " text", "List " <> nominal <> " text"]) $ \ty ->+ forM_ (filter (`notElem` ["List text", "Optional text"]) [nominal <> " text", "List " <> nominal <> " text"]) $ \ty -> parseSource "malformed-contract.keiro" (probeSource ("id " <> nominal <> " prefix=probe") ("values: " <> ty)) `shouldSatisfy` isLeft + it "reads Optional applied to a scalar as an optional field even when Optional is a declared ID" $ do+ service <- checkProbe (probeSource "id Optional prefix=probe" "value: Optional values: Optional text nested: Optional Optional")+ [ty | (_, _, _, ty) <- probeFields service] `shouldBe` [CScalar (CDeclaredId "Optional"), COptional CText, COptional (CDeclaredId "Optional")]+ it "retains scalar built-in and cross-declaration ambiguity checks" $ do forM_ [ "id Text prefix=probe",@@ -8654,7 +8685,7 @@ it "refuses nested containers in contract list fields without consuming keyword prefixes" $ do source <- readTestText "test/fixtures/contract-list-fields.keiro"- forM_ ["List List TemplateId", "List list TemplateId", "List Optional text", "List Set text", "Optional text", "Map text"] $ \fieldType ->+ forM_ ["List List TemplateId", "List list TemplateId", "List Optional text", "List Set text", "Optional List text", "Map text"] $ \fieldType -> case parseSource "nested.keiro" (T.replace "templateIds: List TemplateId" ("templateIds: " <> fieldType) source) of Left failure -> renderParseFailure failure `shouldSatisfy` T.isInfixOf "nested containers" Right _ -> expectationFailure ("accepted " <> T.unpack fieldType)@@ -8778,6 +8809,385 @@ [finding | Breaking finding <- diffServices before after, (.code) finding == ContractFieldChanged] `shouldSatisfy` any (\finding -> verdictFor PublicConsumer (finding.vector) == VBreaking) + it "lowers Optional contract fields of every scalar family" $ do+ service <- checkedServiceOf "test/fixtures/contract-foreign-event.keiro"+ let modules = scaffoldServiceModules (defaultContext (checkedSpec service).context) service+ audit = generatedTextEndingIn "Audit/Contract.hs" modules+ validateService service `shouldBe` []+ forM_+ [ "note :: !(Maybe Text)",+ "mlsMemberId :: !(Maybe Nominals.MemberId)",+ "legacyAccountId :: !(Maybe Int)",+ "referrerId :: !(Maybe (KindID \"member\"))",+ "<> [\"note\" .= value | Just value <- [payload.note]]",+ "<> [\"mlsMemberId\" .= NominalLeaves.encodeMemberIdLeaf value | Just value <- [payload.mlsMemberId]]",+ "<> [\"legacyAccountId\" .= value | Just value <- [payload.legacyAccountId]]",+ "<> [\"referrerId\" .= KindID.toText value | Just value <- [payload.referrerId]]",+ "<*> o .:? \"note\"",+ "<*> explicitParseFieldMaybe NominalLeaves.parseMemberIdLeaf o \"mlsMemberId\"",+ "<*> o .:? \"legacyAccountId\"",+ "<*> explicitParseFieldMaybe (parseKindIdV7Value @\"member\") o \"referrerId\"",+ "import Data.Aeson (Value, object, withObject, withText, (.:?), (.=))",+ "import Data.Aeson.Types (Parser, explicitParseField, explicitParseFieldMaybe, parseEither)"+ ]+ $ \fragment -> audit `shouldSatisfy` T.isInfixOf fragment+ [site | obligation <- either (error . show) id (bindingObligationsForService service), site <- (.useSites) obligation] `shouldBe` []+ forM_ [("mlsMemberId", "member"), ("referrerId", "member")] $ \(field, prefix) ->+ idDomainIdentitiesForService service+ `shouldContain` ["id-domain|name=contract:audit.RegistrationSeen." <> field <> "|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=" <> prefix <> "|separator=_|json=canonical-json-text"]+ forM_ [False, True] $ \withTyped -> do+ primitive <- checkedServiceFromText "primitive-optional.keiro" (T.unlines ["language keiro-dsl 6", "context primitive", "contract values { schemaVersion 1 discriminator kind topic events \"values.events\"", "event Values on events { label: Optional text " <> (if withTyped then "ref: Optional typeid \"ref\"" else "") <> " } }"])+ let rendered = generatedTextEndingIn "Values/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec primitive).context) primitive)+ validateService primitive `shouldBe` []+ rendered `shouldSatisfy` T.isInfixOf "(.:?)"+ rendered `shouldNotSatisfy` T.isInfixOf "(.:)"+ ("explicitParseFieldMaybe" `T.isInfixOf` rendered) `shouldBe` withTyped++ it "keeps contracts without Optional fields on the unchanged encoder layout" $ do+ service <- checkedServiceOf "test/fixtures/contract-list-fields.keiro"+ let contractModule = generatedTextEndingIn "Templates/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec service).context) service)+ forM_ [".:?", "explicitParseFieldMaybe", "Just value <-", "parseTemplatesPayloadAs"] $ \fragment ->+ contractModule `shouldNotSatisfy` T.isInfixOf fragment++ it "gates the Optional contract field token on Language 6" $ do+ (status, _, err) <- runKeiroDsl ["check", "test/fixtures/contract-foreign-event-language5.keiro"]+ status `shouldBe` ExitFailure 1+ err `shouldContain` "LanguageFeatureRequiresVersion"+ err `shouldContain` "contract-foreign-event-language5.keiro:12:1"+ source <- readTestText "test/fixtures/contract-foreign-event-language5.keiro"+ case parseSurfaceSource "optional-language5.keiro" source of+ Left FrontendFailure {code = SourceLanguageError LanguageFeatureRequiresVersion, span = SourceSpan {start = SourcePoint {offset = startOffset, line = startLine, column = startColumn}, end = SourcePoint {offset = endOffset}}} -> do+ T.take (endOffset - startOffset) (T.drop startOffset source) `shouldBe` "Optional"+ (startLine, startColumn) `shouldBe` (12, 11)+ other -> expectationFailure (show other)++ it "refuses Optional List, List Optional, and lower-case optional contract field types" $ do+ source <- readTestText "test/fixtures/contract-foreign-event.keiro"+ forM_ ["Optional List text", "List Optional text", "optional text", "Optional Optional text", "Optional Map text"] $ \fieldType ->+ case parseSource "nested-optional.keiro" (T.replace "note: Optional text" ("note: " <> fieldType) source) of+ Left failure -> do+ renderParseFailure failure `shouldSatisfy` T.isInfixOf "or Optional of one of those"+ renderParseFailure failure `shouldSatisfy` T.isInfixOf "Optional List, List Optional"+ Right _ -> expectationFailure ("accepted " <> T.unpack fieldType)++ it "keeps Optional usable as a declared id name in contract fields" $ do+ service <-+ checkedServiceFromText+ "optional-name.keiro"+ ( T.unlines+ [ "language keiro-dsl 6",+ "context optional-name",+ "id Optional prefix=opt",+ "contract values { schemaVersion 1 discriminator kind topic events \"values.events\"",+ "event Values on events {",+ " value: Optional",+ " maybeValue: Optional Optional",+ " values: List Optional",+ "} }"+ ]+ )+ validateService service `shouldBe` []+ let rendered = generatedTextEndingIn "Values/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec service).context) service)+ forM_ ["value :: !Nominals.Optional", "maybeValue :: !(Maybe Nominals.Optional)", "values :: ![Nominals.Optional]"] $ \fragment ->+ rendered `shouldSatisfy` T.isInfixOf fragment++ it "keeps Optional contract field aliases" $ do+ source <- readTestText "test/fixtures/contract-foreign-event.keiro"+ service <- checkedServiceFromText "aliased-optional.keiro" (T.replace "note: Optional text" "note haskell memberNote as \"member_note\": Optional text" source)+ validateService service `shouldBe` []+ let text = generatedTextEndingIn "Audit/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec service).context) service)+ forM_ ["memberNote :: !(Maybe Text)", "[\"member_note\" .= value | Just value <- [payload.memberNote]]", "o .:? \"member_note\""] $ \fragment ->+ text `shouldSatisfy` T.isInfixOf fragment+ case parseSource "aliased-optional.keiro" (T.replace "note: Optional text" "note haskell memberNote as \"member_note\": Optional text" source) of+ Right parsed -> parseSource "aliased-optional.keiro" (renderSource parsed) `shouldBe` Right parsed+ Left failure -> expectationFailure (T.unpack (renderParseFailure failure))++ it "refuses Optional contract fields as identity once per clause with envelope precedence" $ do+ emitFixture <- readTestText "test/fixtures/emit.keiro"+ intakeFixture <- readTestText "test/fixtures/intake.keiro"+ let emitNodes = snd (T.breakOn "emit reservationResponse" emitFixture)+ intakeNode = snd (T.breakOn "intake incidentInbox" intakeFixture)+ sourceFor key selectedShape =+ T.unlines+ [ "language keiro-dsl 6",+ "context hospital-capacity",+ "contract emergency { schemaVersion 1 discriminator messageType",+ "topic hospitalEvents \"emergency.hospital.events\"",+ "event TransferReservationAccepted on hospitalEvents { " <> key <> ": text }",+ "event TransferReservationRejected on hospitalEvents { " <> key <> ": " <> selectedShape <> " }",+ "event TransferExpired on hospitalEvents { " <> key <> ": text }",+ "event PatientAdmitted on hospitalEvents { " <> key <> ": text }",+ "event Unselected on hospitalEvents { " <> key <> ": Optional text } }",+ T.replace "outboxId stable from messageId" ("outboxId stable from " <> key) emitNodes,+ T.replace+ "dedupe key messageId"+ ("bind " <> key <> " from body\n dedupe key " <> key)+ ( T.replace+ " bind "+ " # bind "+ ( T.replace+ "accept IncidentTransferNeedDeclared"+ "accept TransferReservationAccepted TransferReservationRejected"+ (T.replace "topic incidentEvents" "topic hospitalEvents" intakeNode)+ )+ )+ ]+ forM_+ [ ("values", "Optional text", ContractOptionalFieldUsedAsKey, 2),+ ("messageId", "Optional text", ContractOptionalFieldUsedAsKey, 0),+ ("idempotencyKey", "Optional text", ContractOptionalFieldUsedAsKey, 0),+ ("source", "Optional text", ContractOptionalFieldUsedAsKey, 1),+ ("values", "text", ContractOptionalFieldUsedAsKey, 0),+ ("values", "List text", ContractListFieldUsedAsKey, 2)+ ]+ $ \(key, selectedShape, code, count) -> do+ service <- checkedServiceFromText "optional-identity.keiro" (sourceFor key selectedShape)+ let failures = [diagnostic | diagnostic <- validateService service, (.severity) diagnostic == Error]+ map (.code) failures `shouldBe` replicate count code+ service <- checkedServiceFromText "optional-identity.keiro" (sourceFor "values" "Optional text")+ map (.message) (validateService service)+ `shouldSatisfy` any (T.isInfixOf "outbox identity must be messageId, idempotencyKey, or a required scalar contract field")+ map (.message) (validateService service)+ `shouldSatisfy` any (T.isInfixOf "dedupe identity must be a required scalar envelope or event field")++ it "classifies Optional contract field evolution in both directions" $ do+ let base = "test/fixtures/contract-foreign-event.keiro"+ mutant suffix = "test/fixtures/contract-foreign-event-" <> suffix <> ".keiro"+ added <- diffFixtures base (mutant "optional-added")+ [finding | Breaking finding <- added] `shouldBe` []+ [finding | Additive finding <- added, (.code) finding == ContractOptionalFieldAdded] `shouldBe` []+ -- Wire-compatible in both directions, but the regenerated constructor+ -- gains an argument: a consumer-build advisory that passes the default gate.+ case [change | change@(Advisory finding) <- added, (.code) finding == ContractOptionalFieldAdded] of+ [change@(Advisory finding)] -> do+ (.subject) finding `shouldBe` "MemberNoted.reason"+ verdictFor PublicConsumer (finding.vector) `shouldBe` VCompatible+ verdictFor ConsumerBuild (finding.vector) `shouldBe` VAdvisory+ (.rollout) (finding.vector) `shouldBe` Set.empty+ gatedBreaking defaultGate change `shouldBe` False+ remediationFor (finding.context) (finding.code)+ `shouldBe` RemedyRescaffoldContractConsumers :| [RemedyRunContractConformance]+ findings -> expectationFailure (show findings)+ removed <- diffFixtures (mutant "optional-added") base+ [(.detail) finding | Breaking finding <- removed, (.code) finding == ContractFieldChanged]+ `shouldSatisfy` any (T.isInfixOf "field removed")+ toRequired <- diffFixtures base (mutant "optional-to-required")+ toOptional <- diffFixtures (mutant "optional-to-required") base+ [(.detail) finding | Breaking finding <- toRequired, (.code) finding == ContractFieldChanged]+ `shouldBe` ["field type changed Optional text -> text; retained messages that omit the key no longer decode"]+ [(.detail) finding | Breaking finding <- toOptional, (.code) finding == ContractFieldChanged]+ `shouldBe` ["field type changed text -> Optional text; deployed consumers still require the key"]+ forM_ [toRequired, toOptional] $ \changes ->+ forM_ [finding | Breaking finding <- changes, (.code) finding == ContractFieldChanged] $ \finding ->+ verdictFor PublicConsumer (finding.vector) `shouldBe` VBreaking+ -- Optional to required: the new reader requires a key old producers omit.+ [(.rollout) (finding.vector) | Breaking finding <- toRequired, (.code) finding == ContractFieldChanged]+ `shouldBe` [Set.fromList [RolloutDrainRequired, RolloutProducerFirst]]+ [remediationFor (finding.context) (finding.code) | Breaking finding <- toRequired, (.code) finding == ContractFieldChanged]+ `shouldBe` [RemedyContractRevision :| [RemedyDeploymentOrder RolloutProducerFirst, RemedyDeployKeyWritersFirst, RemedyDrainBeforeStricterReader]]+ -- Required to optional: readers must tolerate omission before writers drop the key.+ [(.rollout) (finding.vector) | Breaking finding <- toOptional, (.code) finding == ContractFieldChanged]+ `shouldBe` [Set.singleton RolloutProducerLast]+ [remediationFor (finding.context) (finding.code) | Breaking finding <- toOptional, (.code) finding == ContractFieldChanged]+ `shouldBe` [RemedyContractRevision :| [RemedyDeploymentOrder RolloutProducerLast]]+ -- Optional literal TypeID made a required declared ID of the same prefix+ -- and admission: present bytes are identical, so only the omitted key is+ -- newly rejected and the order is the same as for an unchanged scalar.+ toRequiredDeclared <- diffFixtures base (mutant "optional-literal-to-required-declared")+ toOptionalLiteral <- diffFixtures (mutant "optional-literal-to-required-declared") base+ [((.subject) finding, (.rollout) (finding.vector)) | Breaking finding <- toRequiredDeclared, (.code) finding == ContractFieldChanged]+ `shouldBe` [("RegistrationSeen.referrerId", Set.fromList [RolloutDrainRequired, RolloutProducerFirst])]+ [(.detail) finding | Breaking finding <- toRequiredDeclared, (.code) finding == ContractFieldChanged]+ `shouldSatisfy` all (T.isInfixOf "generated consumers must rebuild for the declared Haskell type")+ [((.subject) finding, (.rollout) (finding.vector)) | Breaking finding <- toOptionalLiteral, (.code) finding == ContractFieldChanged]+ `shouldBe` [("RegistrationSeen.referrerId", Set.singleton RolloutProducerLast)]+ forM_ [(base, mutant "optional-scalar-change"), (mutant "optional-scalar-change", base)] $ \(old, new) -> do+ changes <- diffFixtures old new+ [finding | Breaking finding <- changes, (.code) finding == ContractFieldChanged, (.subject) finding == "MemberNoted.note"]+ `shouldSatisfy` any (\finding -> verdictFor PublicConsumer (finding.vector) == VBreaking)+ forM_ [(base, mutant "optional-literal-to-declared"), (mutant "optional-literal-to-declared", base)] $ \(old, new) -> do+ changes <- diffFixtures old new+ [finding | Breaking finding <- changes] `shouldBe` []+ case [finding | Advisory finding <- changes, (.code) finding == ContractFieldChanged] of+ [finding] -> do+ (.subject) finding `shouldBe` "RegistrationSeen.referrerId"+ verdictFor PublicConsumer (finding.vector) `shouldBe` VNotApplicable+ verdictFor ConsumerBuild (finding.vector) `shouldBe` VAdvisory+ findings -> expectationFailure (show findings)++ it "lowers an envelope-discriminated contract to an event-type decoder" $ do+ service <- checkedServiceOf "test/fixtures/contract-foreign-event.keiro"+ let registration = generatedTextEndingIn "Registration/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec service).context) service)+ forM_+ [ " , parseRegistrationPayloadAs\n ) where",+ "-- the closed payload set (discriminated by the envelope's event type)",+ "parseRegistrationPayloadAs :: Text -> Value -> Either Text RegistrationPayload",+ "parseRegistrationPayloadAs eventType = mapLeftText . parseEither (withObject \"RegistrationPayload\" go)",+ " kind <- validateMessageType eventType",+ "import Data.Aeson (Value, object, withObject, (.:), (.:?), (.=))",+ " ( [ \"registrationId\" .= KindID.toText payload.registrationId,"+ ]+ $ \fragment -> registration `shouldSatisfy` T.isInfixOf fragment+ forM_ ["withText", "\"messageType\"", "parseRegistrationPayload ::"] $ \fragment ->+ registration `shouldNotSatisfy` T.isInfixOf fragment+ empty <- checkedServiceFromText "empty-envelope.keiro" (T.unlines ["language keiro-dsl 6", "context empty-envelope", "contract signals { schemaVersion 1 discriminator from envelope topic events \"signals.events\"", "event Pinged on events { } event Ponged on events { } }"])+ validateService empty `shouldBe` []+ let emptyRendered = generatedTextEndingIn "Signals/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec empty).context) empty)+ forM_ [" Pinged _ ->\n object []", " Ponged _ ->\n object []", " go _ = do", "import Data.Aeson.Types (Parser, parseEither)", "import Data.Aeson (Value, object, withObject)\n"] $ \fragment ->+ emptyRendered `shouldSatisfy` T.isInfixOf fragment+ forM_ ["payload ->", "(.=)"] $ \fragment -> emptyRendered `shouldNotSatisfy` T.isInfixOf fragment+ -- A fieldless event in a body-discriminated contract encodes only its key.+ bodyFieldless <- checkedServiceFromText "fieldless-body.keiro" (T.unlines ["language keiro-dsl 6", "context fieldless-body", "contract signals { schemaVersion 1 discriminator messageType topic events \"signals.events\"", "event Pinged on events { } event Noted on events { note: text } }"])+ validateService bodyFieldless `shouldBe` []+ let bodyRendered = generatedTextEndingIn "Signals/Contract.hs" (scaffoldServiceModules (defaultContext (checkedSpec bodyFieldless).context) bodyFieldless)+ forM_ [" Pinged _ ->\n object\n [ \"messageType\" .= (\"Pinged\" :: Text)\n ]", " Noted payload ->"] $ \fragment ->+ bodyRendered `shouldSatisfy` T.isInfixOf fragment++ it "round-trips discriminator from envelope and gates it on Language 6" $ do+ source <- readTestText "test/fixtures/contract-foreign-event.keiro"+ case parseSource "foreign.keiro" source of+ Right parsed -> do+ renderSource parsed `shouldSatisfy` T.isInfixOf " discriminator from envelope\n"+ renderSource parsed `shouldSatisfy` T.isInfixOf " note: Optional text\n"+ parseSource "foreign.keiro" (renderSource parsed) `shouldBe` Right parsed+ [(.discriminator) contract | NContract contract <- (.nodes) ((.spec) parsed)]+ `shouldBe` [DiscriminatorBodyKey "messageType", DiscriminatorEnvelope, DiscriminatorEnvelope]+ Left failure -> expectationFailure (T.unpack (renderParseFailure failure))+ (status, _, err) <- runKeiroDsl ["check", "test/fixtures/contract-foreign-event-envelope-language5.keiro"]+ status `shouldBe` ExitFailure 1+ err `shouldContain` "LanguageFeatureRequiresVersion"+ err `shouldContain` "contract-foreign-event-envelope-language5.keiro:6:1"+ language5 <- readTestText "test/fixtures/contract-foreign-event-envelope-language5.keiro"+ case parseSurfaceSource "envelope-language5.keiro" language5 of+ Left FrontendFailure {code = SourceLanguageError LanguageFeatureRequiresVersion, span = SourceSpan {start = SourcePoint {offset = startOffset, line = startLine, column = startColumn}, end = SourcePoint {offset = endOffset}}} -> do+ T.take (endOffset - startOffset) (T.drop startOffset language5) `shouldBe` "from"+ (startLine, startColumn) `shouldBe` (6, 17)+ other -> expectationFailure (show other)++ it "admits a messageType payload field only without a body discriminator" $ do+ let sourceWith discriminator =+ T.unlines+ [ "language keiro-dsl 6",+ "context shadow",+ "contract values { schemaVersion 1 discriminator " <> discriminator <> " topic events \"values.events\"",+ "event Values on events { messageType: text } }"+ ]+ envelope <- checkedServiceFromText "envelope-shadow.keiro" (sourceWith "from envelope")+ validateService envelope `shouldBe` []+ body <- checkedServiceFromText "body-shadow.keiro" (sourceWith "messageType")+ map (.code) [diagnostic | diagnostic <- validateService body, (.severity) diagnostic == Error]+ `shouldContain` [ContractFieldShadowsDiscriminator]++ it "classifies a change of discriminator source as breaking in both directions" $ do+ let base = "test/fixtures/contract-foreign-event.keiro"+ bodyKeyed = "test/fixtures/contract-foreign-event-discriminator-body.keiro"+ forward <- diffFixtures base bodyKeyed+ backward <- diffFixtures bodyKeyed base+ [(.detail) finding | Breaking finding <- forward, (.code) finding == ContractDiscriminatorChanged]+ `shouldBe` ["discriminator changed from envelope -> messageType"]+ [(.detail) finding | Breaking finding <- backward, (.code) finding == ContractDiscriminatorChanged]+ `shouldBe` ["discriminator changed messageType -> from envelope"]+ forM_ [forward, backward] $ \changes ->+ forM_ [finding | Breaking finding <- changes, (.code) finding == ContractDiscriminatorChanged] $ \finding ->+ verdictFor PublicConsumer (finding.vector) `shouldBe` VBreaking+ -- Envelope to body key: the new reader requires a key old producers never wrote.+ [(.rollout) (finding.vector) | Breaking finding <- forward, (.code) finding == ContractDiscriminatorChanged]+ `shouldBe` [Set.fromList [RolloutDrainRequired, RolloutProducerFirst]]+ [remediationFor (finding.context) (finding.code) | Breaking finding <- forward, (.code) finding == ContractDiscriminatorChanged]+ `shouldBe` [RemedyContractRevision :| [RemedyDeploymentOrder RolloutProducerFirst, RemedyDeployKeyWritersFirst, RemedyDrainBeforeStricterReader]]+ -- Body key to envelope: the new reader ignores the key, old readers still require it.+ [(.rollout) (finding.vector) | Breaking finding <- backward, (.code) finding == ContractDiscriminatorChanged]+ `shouldBe` [Set.singleton RolloutProducerLast]+ [remediationFor (finding.context) (finding.code) | Breaking finding <- backward, (.code) finding == ContractDiscriminatorChanged]+ `shouldBe` [RemedyContractRevision :| [RemedyDeploymentOrder RolloutProducerLast]]++ -- Generated contract modules import each aeson helper only when a field+ -- or the body discriminator uses it, so one untested combination can fail+ -- under -Werror. Compile one contract per discriminator mode, event shape+ -- and field family, plus all-fieldless and mixed contracts.+ it "compiles every contract shape under the generated-output warning policy" $+ withTempDirectory "keiro-dsl-contract-shape-matrix" $ \out -> do+ let families =+ [ ("plain", "text", True),+ ("count", "int", True),+ ("literal", "typeid \"item\"", True),+ ("declared", "ItemId", True),+ ("plainlist", "List text", False),+ ("declaredlist", "List ItemId", False)+ ]+ -- Contract names avoid reserved words such as body and text.+ modes = [("keyed", "messageType"), ("enveloped", "from envelope")]+ fieldsFor shape required optionalAllowed = case shape of+ "req" -> Just ["value: " <> required]+ "opt"+ | optionalAllowed -> Just ["maybeValue: Optional " <> required]+ | otherwise -> Nothing+ _+ | optionalAllowed -> Just ["value: " <> required, "maybeValue: Optional " <> required]+ | otherwise -> Just ["values: " <> required, "maybeValue: Optional text"]+ contractFor (modeName, discriminator) name events =+ T.unlines+ ( ["contract " <> modeName <> "_" <> name <> " {", " schemaVersion 1", " discriminator " <> discriminator, " topic events \"" <> modeName <> "." <> name <> "\""]+ <> [ " event " <> pascalName (modeName <> "_" <> name) <> eventSuffix <> " on events { " <> T.intercalate " " fields <> " }"+ | (eventSuffix, fields) <- events+ ]+ <> ["}"]+ )+ pascalName = T.concat . map (\part -> T.toUpper (T.take 1 part) <> T.drop 1 part) . T.splitOn "_"+ contracts =+ [ contractFor mode (familyName <> "_" <> shape) [("Happened", fields)]+ | mode <- modes,+ (familyName, required, optionalAllowed) <- families,+ shape <- ["req", "opt", "both"],+ Just fields <- [fieldsFor shape required optionalAllowed]+ ]+ <> [contractFor mode "bare" [("Pinged", []), ("Ponged", [])] | mode <- modes]+ <> [ contractFor mode "blend" [("Cleared", []), ("Noted", ["note: text", "owner: Optional ItemId"])]+ | mode <- modes+ ]+ source = T.unlines ["language keiro-dsl 6", "context contract-shapes", "id ItemId prefix=item"] <> T.intercalate "\n" contracts+ service <- checkedServiceFromText "contract-shapes.keiro" source+ [diagnostic | diagnostic <- validateService service, (.severity) diagnostic == Error] `shouldBe` []+ let modules = scaffoldServiceModules (defaultContext (checkedSpec service).context) service+ contractPaths = [(.path) moduleValue | moduleValue <- modules, "/Contract.hs" `T.isSuffixOf` T.pack ((.path) moduleValue)]+ length contractPaths `shouldBe` length contracts+ forM_ modules $ \moduleValue -> writeFileWithParents (out </> (.path) moduleValue) ((.text) moduleValue)+ compileGeneratedModules out contractPaths++ it "explains the contract rollout order through the diff CLI in every direction" $ do+ let base = "test/fixtures/contract-foreign-event.keiro"+ mutant suffix = "test/fixtures/contract-foreign-event-" <> suffix <> ".keiro"+ producerFirst =+ [ "rollout=drain-required,producer-first",+ "remedy: deploy in producer-first order",+ "remedy: deploy every producer that writes the newly required key before any consumer runs the stricter reader",+ "remedy: drain or migrate retained messages that omit the key before deploying the stricter reader"+ ]+ producerLast = ["rollout=producer-last", "remedy: deploy in producer-last order"]+ forM_+ [ (base, mutant "optional-to-required", "ContractFieldChanged", producerFirst, producerLast),+ (mutant "optional-to-required", base, "ContractFieldChanged", producerLast, producerFirst),+ (mutant "discriminator-body", base, "ContractDiscriminatorChanged", producerLast, producerFirst),+ (base, mutant "discriminator-body", "ContractDiscriminatorChanged", producerFirst, producerLast),+ (base, mutant "optional-literal-to-required-declared", "ContractFieldChanged", producerFirst, producerLast),+ (mutant "optional-literal-to-required-declared", base, "ContractFieldChanged", producerLast, producerFirst)+ ]+ $ \(old, new, code, expected, absent) -> do+ (status, out) <- diffExplainSince old new+ status `shouldBe` ExitFailure 1+ out `shouldContain` ("explain [" <> code <> "]")+ forM_ expected $ \fragment -> out `shouldContain` fragment+ forM_ absent $ \fragment -> out `shouldNotContain` fragment+ (status, out) <- diffExplainSince base (mutant "optional-added")+ status `shouldBe` ExitSuccess+ forM_+ [ "WARNING: audit contract-field MemberNoted.reason: optional field added",+ "vector: public-consumer=compatible consumer-build=advisory",+ "remedy: re-scaffold and recompile every affected consumer against the generated interface"+ ]+ $ \fragment -> out `shouldContain` fragment+ out `shouldNotContain` "rollout="+ describe "pgmq workqueue/dispatch (EP-5)" $ do it "round-trips the reservation-work spec through parse . pretty" $ do input <- readTestText "test/fixtures/reservation-work.keiro"@@ -11660,6 +12070,22 @@ Right facade -> do (.text) facade `shouldSatisfy` T.isInfixOf "runServiceConformanceChecks = pure []" (.text) facade `shouldSatisfy` T.isInfixOf "serviceConformanceFacts = []"+ (.text) facade `shouldSatisfy` T.isInfixOf "runServiceBehaviorChecks = pure []"+ (.text) facade `shouldNotSatisfy` T.isInfixOf "BehaviorContract"+ it "imports every behavior-bearing aggregate's contract and witnesses only for the opt-in behavior action (plan 337)" $ do+ service <- checkedServiceOf "test/fixtures/transfer-routing.keiro"+ let ctx = defaultContext ((checkedSpec service).context)+ case serviceHarnessModule ctx service of+ Left duplicates -> expectationFailure ("unexpected duplicate fact keys: " <> show duplicates)+ Right facade -> do+ let text = (.text) facade+ checksBlock = T.takeWhile (/= '\n') (snd (T.breakOn "runServiceConformanceChecks =" text))+ text `shouldSatisfy` T.isInfixOf " , runServiceBehaviorChecks\n"+ text `shouldSatisfy` T.isInfixOf "TransferRouting.Hospital.BehaviorContract qualified as HospitalBehaviorContract"+ text `shouldSatisfy` T.isInfixOf "TransferRouting.Hospital.BehaviorHoles qualified as HospitalBehaviorHoles"+ text `shouldSatisfy` T.isInfixOf "(\"aggregate/Hospital/behavior/\" <> Text.unpack row, passed) | (row, passed) <- HospitalBehaviorContract.behaviorConformanceRows (HospitalBehaviorContract.behaviorCoverageReport HospitalBehaviorHoles.behaviorWitnesses)"+ checksBlock `shouldNotSatisfy` T.isInfixOf "behavior"+ T.count "behaviorCoverageReport" text `shouldBe` 1 it "adds one facade only to configured single-file plans and exposes only it" $ do service <- checkedServiceOf "test/fixtures/reservation.keiro" let ctx = defaultContext ((checkedSpec service).context)@@ -12068,7 +12494,244 @@ testCode `shouldNotBe` ExitSuccess (testOut <> testErr) `shouldSatisfy` isInfixOfString "FAIL workflow/WorkspaceProofWorkflow/name expected=\"workspace-proof-workflow\" actual=\"workspace-proof-workflow-v2\""+ it "keeps the default run free of witness evaluation and gates every witness only under --behavior-complete (plan 337)" $ do+ withTempDirectory "keiro-dsl-conformance-behavior-complete" $ \base -> do+ fixtureManifest <- resolveTestPath "test/conformance-service-package/service.keiro-workspace" >>= canonicalizePath+ let fixtureRoot = takeDirectory fixtureManifest+ copied = base </> "fixture"+ out = copied </> "runtime/src"+ packageRoot = out </> "keiro-dsl-conformance.workspace.workspace-proof"+ holesPath owner = out </> "Proof/WorkspaceProof" </> owner </> "BehaviorHoles.hs"+ expectationsPath = packageRoot </> "src/KeiroConformance/Expectations.hs"+ fragmentPath = out </> "keiro-dsl-cabal-fragment.workspace.workspace-proof.txt"+ betaHarnessPath = out </> "Proof/WorkspaceProof/Beta/Generated/Harness.hs"+ owners = ["Alpha", "Assignment", "Beta"]+ copyTextTree fixtureRoot copied+ committedHoles <- mapM (TIO.readFile . holesPath) owners+ committedExpectations <- TIO.readFile expectationsPath+ committedFragment <- TIO.readFile fragmentPath+ -- Re-scaffold with the current generator: hand-owned witnesses and+ -- expectations stay byte-identical, and the fragment keeps every+ -- BehaviorHoles and BehaviorContract module private.+ (scaffoldCode, scaffoldOut, scaffoldErr) <- runKeiroDsl ["scaffold", copied </> "service.keiro-workspace", "--out", out]+ unless (scaffoldCode == ExitSuccess) (expectationFailure (scaffoldOut <> scaffoldErr))+ mapM (TIO.readFile . holesPath) owners `shouldReturn` committedHoles+ TIO.readFile expectationsPath `shouldReturn` committedExpectations+ TIO.readFile fragmentPath `shouldReturn` committedFragment+ let (exposedSection, privateSection) = T.breakOn "other-modules:" committedFragment+ forM_ owners $ \owner -> do+ privateSection `shouldSatisfy` T.isInfixOf ("Proof.WorkspaceProof." <> T.pack owner <> ".BehaviorHoles\n")+ privateSection `shouldSatisfy` T.isInfixOf ("Proof.WorkspaceProof." <> T.pack owner <> ".Generated.BehaviorContract\n")+ exposedSection `shouldNotSatisfy` T.isInfixOf "Behavior"+ generatedMain <- TIO.readFile (packageRoot </> "src/Main.hs")+ [line | line <- T.lines generatedMain, "import Proof." `T.isPrefixOf` line]+ `shouldBe` ["import Proof.WorkspaceProof.Generated.Conformance (runServiceBehaviorChecks, runServiceConformanceChecks, serviceConformanceFacts)"]+ let repositoryRoot = takeDirectory (takeDirectory (takeDirectory fixtureRoot))+ projectPath = base </> "behavior.project"+ buildDirectory = base </> "dist-newstyle"+ localSourcePackages <- filterM doesDirectoryExist [repositoryRoot </> "keiro", repositoryRoot </> "keiro-core"]+ -- Like the workflow-fact mutation above, compiling the generated+ -- package is a repository integration proof against sibling sources.+ unless (null localSourcePackages) $ do+ TIO.writeFile projectPath . T.unlines $+ ["packages:"]+ <> map ((" " <>) . T.pack) (localSourcePackages <> [copied </> "runtime", packageRoot])+ <> ["", "allow-newer:", " haxl:time"]+ let conformance options = do+ (code, stdoutText, stderrText) <-+ readProcessWithExitCode+ "cabal"+ ( [ "test",+ "--project-file=" <> projectPath,+ "--builddir=" <> buildDirectory,+ "--test-show-details=direct"+ ]+ <> ["--test-options=" <> unwords options | not (null options)]+ <> ["keiro-workspace-proof-conformance"]+ )+ ""+ pure (code, stdoutText <> stderrText)+ checkLines output = [line | line <- lines output, take 6 line `elem` ["PASS ", "FAIL "]]+ behaviorLines output = [line | line <- checkLines output, "/behavior/" `isInfixOfString` line]+ expectDefaultGreen label = do+ (code, output) <- conformance []+ unless (code == ExitSuccess) (expectationFailure (label <> ": default run failed\n" <> output))+ behaviorLines output `shouldBe` []+ pure output+ expectFullRed label needles = do+ (code, output) <- conformance ["--behavior-complete"]+ when (code == ExitSuccess) (expectationFailure (label <> ": --behavior-complete passed\n" <> output))+ forM_ needles $ \needle ->+ unless (needle `isInfixOfString` output) (expectationFailure (label <> ": missing " <> show needle <> "\n" <> output))+ pure output+ writeHoles owner header witnesses =+ TIO.writeFile (holesPath (T.unpack owner)) . T.unlines $+ [ "module Proof.WorkspaceProof." <> owner <> ".BehaviorHoles (behaviorWitnesses) where",+ "",+ "import Data.List.NonEmpty (NonEmpty (..))",+ "import Proof.WorkspaceProof." <> owner <> ".Generated.BehaviorContract",+ "import Proof.WorkspaceProof." <> owner <> ".Generated.Domain"+ ]+ <> header+ <> ["", "behaviorWitnesses :: [BehaviorWitness]", "behaviorWitnesses ="]+ <> case witnesses of+ [] -> [" []"]+ first : rest -> (" [ " <> first) : map (" , " <>) rest <> [" ]"]+ proofHeader =+ [ "import Proof.WorkspaceProof.Generated.Nominals (ProofId, parseProofId)",+ "",+ "proof :: ProofId",+ "proof = either (error . show) id (parseProofId \"proof_01h455vb4pex5vsknk084sn02q\")"+ ]+ alphaReplayLegacy = "ReplayWitness (BehaviorKey \"behavior-v1-579df4e5e81f7729\") [] [LegacyAlphaPinged (LegacyAlphaPingedData proof)]"+ alphaReplayCurrent = "ReplayWitness (BehaviorKey \"behavior-v1-72a96c964b44a2b6\") [] [AlphaPinged (AlphaPingedData proof True)]"+ alphaLive current = "LiveWitness (BehaviorKey \"behavior-v1-baf43b4c31db955a\") [] (PingAlpha (PingAlphaData proof False)) (Emits (AlphaPinged (AlphaPingedData proof " <> current <> ") :| []))"+ alphaRejection rejection = "LiveWitness (BehaviorKey \"behavior-v1-c062ccf5e9b6f5c4\") [] (LegacyPingAlpha (LegacyPingAlphaData proof)) (Rejects " <> rejection <> ")"+ writeAlpha = writeHoles "Alpha" proofHeader+ correctAlpha = [alphaReplayLegacy, alphaReplayCurrent, alphaLive "False", alphaRejection "RejectNoMatchingEdge"]+ betaWitness = "LiveWitness (BehaviorKey \"behavior-v1-6ab7fee2c8aa4e1d\") [] (PingBeta (PingBetaData proof)) (Emits (BetaPinged (BetaPingedData proof) :| []))"+ writeBeta = writeHoles "Beta" proofHeader+ committedAssignment = committedHoles !! 1+ replayWitness = "ReplayWitness (BehaviorKey \"behavior-v1-9200cd4f93c83098\") [] [PropertyCleared (PropertyClearedData \"colour\")]"+ writeAssignment = TIO.writeFile (holesPath "Assignment")+ restoreWitnesses = do+ writeAlpha correctAlpha+ writeBeta [betaWitness]+ writeAssignment committedAssignment + -- The committed fixture: Beta keeps one Pending row, and Alpha's one+ -- row names a retired key, so the four declared Alpha keys are missing.+ committedDefault <- expectDefaultGreen "committed witnesses"+ committedFull <-+ expectFullRed+ "committed witnesses"+ [ "FAIL aggregate/Alpha/behavior/stale/behavior-v1-e2c1eef1cb7848f5",+ "FAIL aggregate/Alpha/behavior/missing/behavior-v1-579df4e5e81f7729",+ "FAIL aggregate/Alpha/behavior/missing/behavior-v1-72a96c964b44a2b6",+ "FAIL aggregate/Alpha/behavior/missing/behavior-v1-baf43b4c31db955a",+ "FAIL aggregate/Alpha/behavior/missing/behavior-v1-c062ccf5e9b6f5c4",+ "FAIL aggregate/Beta/behavior/pending/behavior-v1-6ab7fee2c8aa4e1d",+ "PASS aggregate/Assignment/behavior/summary required=4 filled=4 pending=0 missing=0 duplicate=0 stale=0 failed=0 verified=1 unverified=3"+ ]+ -- Full mode prints the unchanged default lines first, then its rows.+ take (length (checkLines committedDefault)) (checkLines committedFull) `shouldBe` checkLines committedDefault++ -- Correct history-backed witnesses for every key make full mode pass;+ -- unverified-but-correct evidence passes under the established policy.+ restoreWitnesses+ (filledCode, filledOutput) <- conformance ["--behavior-complete"]+ unless (filledCode == ExitSuccess) (expectationFailure ("filled witnesses failed --behavior-complete\n" <> filledOutput))+ [line | line <- behaviorLines filledOutput, "/behavior/summary " `isInfixOfString` line]+ `shouldBe` [ "PASS aggregate/Alpha/behavior/summary required=4 filled=4 pending=0 missing=0 duplicate=0 stale=0 failed=0 verified=3 unverified=1",+ "PASS aggregate/Assignment/behavior/summary required=4 filled=4 pending=0 missing=0 duplicate=0 stale=0 failed=0 verified=1 unverified=3",+ "PASS aggregate/Beta/behavior/summary required=1 filled=1 pending=0 missing=0 duplicate=0 stale=0 failed=0 verified=1 unverified=0"+ ]+ filter (T.isPrefixOf "FAIL" . T.pack) (behaviorLines filledOutput) `shouldBe` []+ _ <- expectDefaultGreen "filled witnesses"++ let cases =+ [ ("missing", writeBeta [], ["FAIL aggregate/Beta/behavior/missing/behavior-v1-6ab7fee2c8aa4e1d"]),+ ("duplicate", writeBeta [betaWitness, betaWitness], ["FAIL aggregate/Beta/behavior/duplicate/behavior-v1-6ab7fee2c8aa4e1d"]),+ ( "stale",+ writeBeta [betaWitness, "Pending (BehaviorKey \"behavior-v1-0000000000000000\")"],+ ["FAIL aggregate/Beta/behavior/stale/behavior-v1-0000000000000000"]+ ),+ ( "incorrect live evidence",+ writeAlpha [alphaReplayLegacy, alphaReplayCurrent, alphaLive "True", alphaRejection "RejectNoMatchingEdge"],+ ["FAIL aggregate/Alpha/behavior/failed/behavior-v1-baf43b4c31db955a AlphaActive x PingAlpha: live transition", "[event-value-mismatch]"]+ ),+ ( "incorrect rejection evidence",+ writeAlpha [alphaReplayLegacy, alphaReplayCurrent, alphaLive "False", alphaRejection "RejectNoOutgoingEdges"],+ ["FAIL aggregate/Alpha/behavior/failed/behavior-v1-c062ccf5e9b6f5c4 AlphaActive x LegacyPingAlpha: required rejection", "[rejection-class]"]+ ),+ ( "incorrect replay evidence",+ writeAlpha [alphaReplayLegacy, "ReplayWitness (BehaviorKey \"behavior-v1-72a96c964b44a2b6\") [] [AlphaPinged (AlphaPingedData proof False)]", alphaLive "False", alphaRejection "RejectNoMatchingEdge"],+ ["FAIL aggregate/Alpha/behavior/failed/behavior-v1-72a96c964b44a2b6 AlphaActive x PingAlpha: replay-only transition"]+ ),+ ( "history-dependent replay evidence",+ -- With the key already present, the live clear edge matches+ -- first, so the chunk no longer witnesses the replay-only edge.+ writeAssignment+ ( T.replace+ replayWitness+ "ReplayWitness (BehaviorKey \"behavior-v1-9200cd4f93c83098\") [PropertySet (PropertySetData \"colour\" \"blue\")] [PropertyCleared (PropertyClearedData \"colour\")]"+ committedAssignment+ ),+ ["FAIL aggregate/Assignment/behavior/failed/behavior-v1-9200cd4f93c83098 AssignmentActive x ClearProperty: replay-only transition"]+ )+ ]+ committedAssignment `shouldSatisfy` T.isInfixOf replayWitness+ forM_ cases $ \(label, mutate, needles) -> do+ restoreWitnesses+ mutate+ _ <- expectFullRed label needles+ expectDefaultGreen label++ -- Ordinary checks and expectation facts still fail a full run whose+ -- behavior rows all pass.+ restoreWitnesses+ TIO.writeFile expectationsPath (T.replace "\"workspace-proof-workflow\"" "\"accepted-elsewhere\"" committedExpectations)+ factOutput <- expectFullRed "changed expectation fact" ["FAIL workflow/WorkspaceProofWorkflow/name"]+ filter (T.isPrefixOf "FAIL" . T.pack) (behaviorLines factOutput) `shouldBe` []+ TIO.writeFile expectationsPath committedExpectations+ betaHarness <- TIO.readFile betaHarnessPath+ TIO.writeFile betaHarnessPath (T.replace "null (validateTransducer" "not . null $ (validateTransducer" betaHarness)+ checkOutput <- expectFullRed "false ordinary check" ["FAIL aggregate/Beta/validateTransducer is empty"]+ filter (T.isPrefixOf "FAIL" . T.pack) (behaviorLines checkOutput) `shouldBe` []+ it "passes both runner modes for a service with no aggregates and rejects unknown options (plan 337)" $ do+ withTempDirectory "keiro-dsl-conformance-no-aggregates" $ \out -> do+ parsed <- parsedSourceOf "test/fixtures/contract-v4.keiro"+ let service = checkedSource parsed+ spec = checkedSpec service+ ctx = defaultContext (spec.context)+ runtimeName = "contract-runtime"+ runtimePackage = RuntimePackageName runtimeName+ [() | NAggregate {} <- (.nodes) spec] `shouldBe` []+ modules <- either (\failure -> expectationFailure (show failure) >> fail "unreachable") pure (planTestServiceScaffoldWithRuntimePackage (Just runtimePackage) ctx service)+ executeServiceScaffoldWithRuntimePackage (Just runtimePackage) out False "contract-v4.keiro" ((.sourceLanguage) parsed) ctx service modules+ >>= either (\failure -> expectationFailure (show failure)) (const (pure ()))+ let facadeName = serviceConformanceModuleName ctx+ facadePath = out </> T.unpack (T.replace "." "/" facadeName) <> ".hs"+ packageRoot = out </> conformancePackageDirectory (StandaloneConformanceService ((.name) ctx))+ runtimeRoot = out </> "runtime-library"+ projectPath = out </> "no-aggregates.project"+ facadeText <- TIO.readFile facadePath+ -- The facade of a service without aggregates imports nothing, so a+ -- base-only runtime library is the real package boundary here.+ [line | line <- T.lines facadeText, "import " `T.isPrefixOf` line] `shouldBe` []+ writeFileWithParents (runtimeRoot </> T.unpack (T.replace "." "/" facadeName) <> ".hs") facadeText+ TIO.writeFile (runtimeRoot </> T.unpack runtimeName <> ".cabal") . T.unlines $+ [ "cabal-version: 3.0",+ "name: " <> runtimeName,+ "version: 0.0.0.0",+ "build-type: Simple",+ "",+ "library",+ " hs-source-dirs: .",+ " exposed-modules: " <> facadeName,+ " build-depends: base",+ " default-language: GHC2024"+ ]+ TIO.writeFile projectPath (T.unlines ["packages:", " " <> T.pack runtimeRoot, " " <> T.pack packageRoot])+ let conformance options =+ readProcessWithExitCode+ "cabal"+ ( ["test", "--project-file=" <> projectPath, "--builddir=" <> (out </> "dist-newstyle"), "--test-show-details=direct"]+ <> ["--test-options=" <> unwords options | not (null options)]+ <> ["keiro-" <> T.unpack (cabaliseConformanceService ((.name) ctx)) <> "-conformance"]+ )+ ""+ forM_ [[], ["--behavior-complete"], ["--help"]] $ \options -> do+ (code, stdoutText, stderrText) <- conformance options+ unless (code == ExitSuccess) (expectationFailure (show options <> " failed\n" <> stdoutText <> stderrText))+ when (options == ["--help"]) $ do+ stdoutText `shouldSatisfy` isInfixOfString "The default is not"+ stdoutText `shouldSatisfy` isInfixOfString "a complete witness gate"+ stdoutText `shouldSatisfy` isInfixOfString "--behavior-complete also evaluate every declared behavior key"+ (unknownCode, unknownOut, unknownErr) <- conformance ["--behavior-completed"]+ unknownCode `shouldNotBe` ExitSuccess+ (unknownOut <> unknownErr) `shouldSatisfy` isInfixOfString "unrecognized arguments: --behavior-completed"+ describe "new <kind> skeletons (M5)" $ do forM_ skeletonKinds $ \skeletonKind -> it ("the " <> T.unpack skeletonKind <> " skeleton selects and preserves the stable language") $@@ -15306,6 +15969,59 @@ -- | Invoke the built @keiro-dsl@ executable. Fixture paths are resolved first, -- so the test works whether it runs from the package directory or the repository -- root.+-- | Type-check generated modules the way the generated-output Cabal stanza+-- compiles them: its default extensions, -Wall, and every warning an error.+compileGeneratedModules :: FilePath -> [FilePath] -> IO ()+compileGeneratedModules root modulePaths = do+ let ghcOutput = root </> ".ghc"+ createDirectoryIfMissing True ghcOutput+ packageIds <- traverse activeCabalPackageId ["aeson", "keiki", "keiro-core", "mmzk-typeid"]+ (exitCode, standardOutput, standardError) <-+ readProcessWithExitCode+ "cabal"+ ( [ "exec",+ "--enable-tests",+ "--",+ "ghc",+ "-XGHC2024",+ "-XDuplicateRecordFields",+ "-XNoFieldSelectors",+ "-XOverloadedRecordDot",+ "-XOverloadedStrings",+ "-Wall",+ "-Wno-deprecations",+ "-Werror",+ "-fno-code",+ "-fforce-recomp",+ "-outputdir",+ ghcOutput,+ "-i" <> root+ ]+ <> concat [["-package-id", packageId] | packageId <- packageIds]+ <> map (root </>) modulePaths+ )+ ""+ unless (exitCode == ExitSuccess) $+ expectationFailure (standardOutput <> standardError)++-- | Run @keiro-dsl diff --since HEAD --explain@ the way an operator does: the+-- old fixture is committed as @spec.keiro@ in a scratch repository and then+-- overwritten by the new one. Returns the exit status and standard output.+diffExplainSince :: FilePath -> FilePath -> IO (ExitCode, String)+diffExplainSince oldFixture newFixture =+ withTempDirectory "keiro-dsl-diff-explain" $ \repository -> do+ let source = repository </> "spec.keiro"+ gitOk arguments = do+ (code, out, err) <- readProcessWithExitCode "git" ("-C" : repository : arguments) ""+ unless (code == ExitSuccess) (expectationFailure (out <> err))+ readTestText oldFixture >>= TIO.writeFile source+ gitOk ["init", "--quiet"]+ gitOk ["add", "."]+ gitOk ["-c", "user.name=Diff Test", "-c", "user.email=diff@example.invalid", "-c", "commit.gpgsign=false", "commit", "--quiet", "-m", "test: capture the old contract"]+ readTestText newFixture >>= TIO.writeFile source+ (code, out, _) <- withCurrentDirectory repository (runKeiroDsl ["diff", "spec.keiro", "--since", "HEAD", "--explain"])+ pure (code, out)+ runKeiroDsl :: [String] -> IO (ExitCode, String, String) runKeiroDsl arguments = do resolved <- traverse resolveArgument arguments@@ -16361,7 +17077,7 @@ ContractNode { name = "Contract", schemaVersion = 1,- discriminator = "kind",+ discriminator = DiscriminatorBodyKey "kind", topics = [("events", value)], events = [], loc = noLoc@@ -16394,7 +17110,7 @@ projections = [], body = LegacyProcessBody- (InputDecl "Input" [] Nothing noLoc)+ (InputDecl "Input" [] Nothing Nothing noLoc) ( HandleNode { on = "Input", advance = AdvanceNode "Advance" [FieldBinding "literal" (Just ("\"" <> value <> "\""))],@@ -16632,7 +17348,7 @@ <*> genName <*> smallList genName <*> ( LegacyProcessBody- <$> (InputDecl <$> genName <*> smallList genField <*> pure Nothing <*> pure noLoc)+ <$> (InputDecl <$> genName <*> smallList genField <*> pure Nothing <*> pure Nothing <*> pure noLoc) <*> (HandleNode <$> genName <*> (AdvanceNode <$> genName <*> smallList genFieldBinding) <*> smallList genDispatchNode <*> genName) <*> genTimerNode )@@ -16648,7 +17364,7 @@ RouterNode <$> genName <*> genAdversarialText- <*> (InputDecl <$> genName <*> smallList genField <*> pure Nothing <*> pure noLoc)+ <*> (InputDecl <$> genName <*> smallList genField <*> pure Nothing <*> pure Nothing <*> pure noLoc) <*> (CorrelateDecl <$> genName <*> genName) <*> (ResolveDecl <$> genResolveSource <*> smallList genName <*> pure noLoc) <*> genName@@ -16669,7 +17385,7 @@ ContractNode <$> genName <*> choose (0, 5)- <*> genName+ <*> (DiscriminatorBodyKey <$> genName) <*> smallList ((,) <$> genName <*> genAdversarialText) <*> smallList genContractEvent <*> pure noLoc
@@ -44,6 +44,16 @@ cp "$BACKUP_DIR/$1" "$2" } +# A sed or perl substitution whose pattern no longer matches exits 0 and leaves+# the file unchanged, which would let a mutation "stay green" vacuously or, for+# a source mutation, pass for the wrong reason. Every mutation must change bytes.+assert_changed() {+ if cmp -s "$1" "$BACKUP_DIR/$2"; then+ echo "FAIL: mutation at line ${BASH_LINENO[0]} did not change $1; its pattern no longer matches"+ exit 1+ fi+}+ run_report() { cabal run -v0 keiro-dsl-behavior-complete-report -- --format=json }@@ -96,72 +106,87 @@ grep -Fq "Journey.Holes.transition1EmptyStartOutput1Started" <<<"$SCAFFOLD_OUTPUT" sed -i.sed-bak 's/requestId = d.requestId/requestId = error "obsolete identity hook executed"/' "$LEGACY_HOLES" rm -f "$LEGACY_HOLES.sed-bak"+assert_changed "$LEGACY_HOLES" Holes.hs run_report >/dev/null restore_file Holes.hs "$LEGACY_HOLES" sed -i.sed-bak '/behavior-v1-43b8fc7fa48595dd/d' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "remove a later-state witness" '"missing":["behavior-v1-43b8fc7fa48595dd"]' no restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak 's/activeHistory = \[startedEvent 0\]/activeHistory = []/' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "use a history reaching the wrong source" 'history-wrong-source' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak 's/behavior-v1-2f3ebf37a55781db/behavior-v1-swap-placeholder/; s/behavior-v1-db1a553baa3eda84/behavior-v1-2f3ebf37a55781db/; s/behavior-v1-swap-placeholder/behavior-v1-db1a553baa3eda84/' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "swap same-target guarded sibling keys" 'edge-attribution' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak '/behavior-v1-83b0a46823e1a788/ s/(Rejects RejectNoMatchingEdge)/NoOp/' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "change rejection to no-op" 'expectation-kind' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak '/behavior-v1-43b8fc7fa48595dd/ s/(startCommand 0)/(decideCommand 0)/' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "use another rejecting command for a required cell" 'command-mismatch' restore_file BehaviorHoles.hs "$WITNESSES" perl -0pi -e 's/(B\.onCmd inCtorPing \$ \\_d -> B\.do\n)/$1 B.slot \@"lastAmount" =: K.lit 1\n/' "$TRANSDUCER"+assert_changed "$TRANSDUCER" Transducer.hs expect_red "change a no-op register" 'noop-register-change' restore_file Transducer.hs "$TRANSDUCER" sed -i.sed-bak '/behavior-v1-db1a553baa3eda84/d' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "omit one guard alternative" '"missing":["behavior-v1-db1a553baa3eda84"]' no restore_file BehaviorHoles.hs "$WITNESSES" perl -0pi -e 's/ReplayWitness \(key "behavior-v1-f0fbe3a3ba0b40e8"\) activeHistory \[retiredEvent 0, retirementAuditedEvent 0\]/live "behavior-v1-f0fbe3a3ba0b40e8" activeHistory (retireCommand 0) (Emits (retiredEvent 0 :| [retirementAuditedEvent 0]))/' "$WITNESSES"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "expect a replay-only edge to fire forward" 'witness-kind' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak '/behavior-v1-f0fbe3a3ba0b40e8/ s/retiredEvent 0, retirementAuditedEvent 0/retiredEvent 1, retirementAuditedEvent 1/' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "let the live twin steal a replay witness" 'replay-edge-attribution' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak '/behavior-v1-08a2bda57424a16e/ s/startedEvent 1/startedEvent 0/' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "let the live initial edge steal the initial replay witness" 'replay-edge-attribution' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak '/behavior-v1-f0fbe3a3ba0b40e8/ s/, retirementAuditedEvent 0//' "$WITNESSES" rm -f "$WITNESSES.sed-bak"+assert_changed "$WITNESSES" BehaviorHoles.hs expect_red "truncate a multi-event replay chunk" 'replay-chunk-failed' restore_file BehaviorHoles.hs "$WITNESSES" sed -i.sed-bak '/"Retired" ->/,/"RetirementAudited" ->/ s/<\$> o \.: "amount"/<$> ((+ 1) <$> o .: "amount")/' "$CODEC" rm -f "$CODEC.sed-bak"+assert_changed "$CODEC" Codec.hs expect_red "make codec replay diverge" 'emitted-replay-failed' restore_file Codec.hs "$CODEC" perl -0pi -e 's/amount = d\.amount/amount = K.lit 999/' "$TRANSDUCER"+assert_changed "$TRANSDUCER" Transducer.hs expect_red "mutate a generated identity selector" 'event-value-mismatch' restore_file Transducer.hs "$TRANSDUCER" -perl -0pi -e 's/let edgeIndex = layoutOutgoingIndex entry/let edgeIndex = 0/' "$SCAFFOLD_SOURCE"+perl -0pi -e 's/let edgeIndex = \(\.outgoingIndex\) entry/let edgeIndex = 0/' "$SCAFFOLD_SOURCE"+assert_changed "$SCAFFOLD_SOURCE" Scaffold.hs expect_focused_test_red "reset source-wide predicate edge indices" restore_file Scaffold.hs "$SCAFFOLD_SOURCE"
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context aggregate-scalars behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context aggregate-scalars behavior source map; do not edit. module Generated.AggregateScalars.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context aggregate-scalars inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context aggregate-scalars inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context aggregate-scalars replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context aggregate-scalars replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.AggregateScalars.ScalarLedger.Codec (encodeScalarLedgerEvent, parseScalarLedgerEvent, scalarLedgerCodec)@@ -218,6 +219,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.Codec ( scalarLedgerCodec, parseScalarLedgerEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.EventStream ( scalarLedgerCategory , scalarLedgerCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.Harness (harnessAssertions) where import Generated.AggregateScalars.ScalarLedger.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate ScalarLedger; do not edit. module Generated.AggregateScalars.ScalarLedger.Transducer ( scalarLedgerTransducer , scalarLedgerFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue bare_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue bare_jobs; do not edit. module Generated.BareContainers.BareJobs.Queue ( BareJob (..) , encodeBareJob
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue bare_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue bare_jobs; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue bare_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue bare_jobs; do not edit. module Generated.BareContainers.BareJobs.QueuePolicy ( BareJobsOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit. module Generated.BareContainers.BareLookup.QueryContract ( BareLookupQueryInput , BareLookupQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit. module Generated.BareContainers.BareLookup.ReadModel ( bareLookupReadModel , bareLookupQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit. module Generated.BareContainers.BareLookup.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.BareContainers.BareLookup.ReadModel (bareLookupReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel bare_lookup; do not edit. module Generated.BareContainers.BareLookup.ReadModelTable (bareLookupQualifiedTable) where import Data.Text (Text)
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.BareContainers.BareStore.Codec (encodeBareStoreEvent, parseBareStoreEvent, bareStoreCodec)@@ -218,6 +219,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.Codec ( bareStoreCodec, parseBareStoreEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.EventStream ( bareStoreCategory , bareStoreCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.Harness (harnessAssertions) where import Generated.BareContainers.BareStore.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate BareStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate BareStore; do not edit. module Generated.BareContainers.BareStore.Transducer ( bareStoreTransducer , bareStoreFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers behavior source map; do not edit. module Generated.BareContainers.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers generated nominal declarations; do not edit. module Generated.BareContainers.Nominals ( ItemId , parseItemId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers generated nominal ID internals; do not edit. module Generated.BareContainers.Nominals.Internal ( ItemId , parseItemId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from projection-catalog bare-containers; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from projection-catalog bare-containers; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.BareContainers.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers structural nominal leaves; do not edit. module Generated.BareContainers.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural BareEnvelope; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural BareEnvelope; do not edit. module Generated.BareContainers.Structural.Shape.BareEnvelope (BareEnvelopeShape (..)) where import GHC.Generics (Generic)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural MaybeText; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural MaybeText; do not edit. module Generated.BareContainers.Structural.Shape.MaybeText (MaybeTextShape) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural NestedIds; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural NestedIds; do not edit. module Generated.BareContainers.Structural.Shape.NestedIds (NestedIdsShape) where import Generated.BareContainers.Nominals qualified as Nominals
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural TextList; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural TextList; do not edit. module Generated.BareContainers.Structural.Shape.TextList (TextListShape) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural TextMap; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural TextMap; do not edit. module Generated.BareContainers.Structural.Shape.TextMap (TextMapShape) where import Data.Map.Strict (Map)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context bare-containers structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context bare-containers structural conformance; do not edit. module Generated.BareContainers.StructuralConformance ( structuralConformanceAssertions ) where
@@ -50,9 +50,12 @@ {"component": "keiro-dsl-conformance-contract", "directory": "test/conformance-contract", "source": "test/fixtures/contract-v4.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 typed contract and field-identity selector/wire-key proof"}, {"component": "keiro-dsl-conformance-contract-declared-id", "directory": "test/conformance-contract-declared-id", "source": "test/fixtures/contract-declared-id.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 declared generated-ID and consumer-bound-ID contract proof"}, {"component": "keiro-dsl-conformance-contract-list-fields", "directory": "test/conformance-contract-list-fields", "source": "test/fixtures/contract-list-fields.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 List fields of declared, consumer-bound, literal TypeID, text, and int elements in a public contract"},+ {"component": "keiro-dsl-conformance-contract-foreign-event", "directory": "test/conformance-contract-foreign-event", "source": "test/fixtures/contract-foreign-event.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 Optional fields of declared, literal TypeID, text, and int scalars and a contract discriminated by the envelope event type"},+ {"component": "keiro-dsl-conformance-contract-rollout", "directory": "test/conformance-contract-rollout", "source": null, "generation": "none", "role": "compatibility-proof", "reason": "two versions of one candidate contract source, scaffolded under Before and After module roots from test/fixtures/contract-rollout-before.keiro and test/fixtures/contract-rollout-after.keiro, decode each other's output in the rollout order keiro-dsl diff reports"}, {"component": "keiro-dsl-conformance-contract-v1-compat", "directory": "test/conformance-contract-v1-compat", "source": "test/fixtures/contract-v1-compat.keiro", "generation": "none", "role": "compatibility-proof", "reason": "version-1 permissive Text contract compatibility proof"}, {"component": "keiro-dsl-conformance-intake-runtime", "directory": "test/conformance-intake-runtime", "source": "test/fixtures/intake.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 intake runtime proof"}, {"component": "keiro-dsl-conformance-intake-delegated", "directory": "test/conformance-intake-delegated", "source": "test/fixtures/intake-delegated.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 delegated runner and no-Store hand-filled integration proof"},+ {"component": "keiro-dsl-conformance-intake-delegated-noop", "directory": "test/conformance-intake-delegated-noop", "source": "test/fixtures/intake-delegated-noop.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 delegated intake feeding a typed no-op command through delegatedDomainCommand against PostgreSQL"}, {"component": "keiro-dsl-conformance-intake-full", "directory": "test/conformance-intake-full", "source": "test/fixtures/intake.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 complete intake scaffold proof"}, {"component": "keiro-dsl-conformance-publisher-runtime", "directory": "test/conformance-publisher-runtime", "source": "test/fixtures/emit.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 publisher runtime proof"}, {"component": "keiro-dsl-conformance-queue", "directory": "test/conformance-queue", "source": "test/fixtures/reservation-work.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 workqueue scaffold proof"},@@ -68,6 +71,7 @@ {"component": "keiro-dsl-conformance-process-reactions", "directory": "test/conformance-process-reactions", "source": "test/fixtures/process-reactions.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 guarded reactions, no-action worker acknowledgement, target fan-out, and durable redelivery proof"}, {"component": "keiro-dsl-conformance-process-timers", "directory": "test/conformance-process-timers", "source": "test/fixtures/process-timers.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 typed timer payload, rearm/once/cancel accounting, and deterministic firing proof"}, {"component": "keiro-dsl-conformance-process-state-authority", "directory": "test/conformance-process-state-authority", "source": "test/fixtures/process-state-authority.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 saga acceptance authority, accepted-only fan-out, no-advance, and partial-success recovery proof"},+ {"component": "keiro-dsl-conformance-topology-machine", "directory": "test/conformance-topology-machine", "source": "test/fixtures/topology-machine.keiro", "generation": "source", "role": "candidate-primary", "languageVersion": 6, "reason": "candidate Language 6 proof that the exported topology machine equals the generated keiki transducers, including a process saga"}, {"component": "keiro-dsl-conformance-router-runtime", "directory": "test/conformance-router-runtime", "source": "test/fixtures/incident-paging/incident-paging.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 router runtime proof"}, {"component": "keiro-dsl-conformance-declarative-router", "directory": "test/conformance-declarative-router", "source": "test/fixtures/declarative-router/valid.keiro", "generation": "source", "role": "stable-primary", "languageVersion": 5, "reason": "stable checked declarative selection, normalization, redelivery, conflict, and PostgreSQL query proof"}, {"component": "keiro-dsl-conformance-router", "directory": "test/conformance-router", "source": "test/fixtures/incident-paging/incident-paging.keiro", "generation": "source", "role": "published-compatibility", "languageVersion": 4, "reason": "published Language 4 router scaffold proof"},
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete behavior source map; do not edit. module Generated.BehaviorComplete.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.BehaviorComplete.Journey.Codec (encodeJourneyEvent, parseJourneyEvent, journeyCodec)@@ -422,6 +423,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.Codec ( journeyCodec, parseJourneyEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.EventStream ( journeyCategory , journeyCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.Harness (harnessAssertions) where import Generated.BehaviorComplete.Journey.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Journey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Journey; do not edit. module Generated.BehaviorComplete.Journey.Transducer ( journeyTransducer , journeyFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete generated nominal declarations; do not edit. module Generated.BehaviorComplete.Nominals ( RequestId , parseRequestId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete generated nominal ID internals; do not edit. module Generated.BehaviorComplete.Nominals.Internal ( RequestId , parseRequestId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from mapped structural StartPayload; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from mapped structural StartPayload; do not edit. module Generated.BehaviorComplete.Structural.Shape.StartPayload (StartPayloadShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete structural conformance; do not edit. module Generated.BehaviorComplete.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context behavior-complete mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context behavior-complete mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context calendar-days behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context calendar-days behavior source map; do not edit. module Generated.CalendarDays.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue calendar_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue calendar_jobs; do not edit. module Generated.CalendarDays.CalendarJobs.Queue ( CalendarJob (..) , encodeCalendarJob
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue calendar_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue calendar_jobs; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue calendar_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue calendar_jobs; do not edit. module Generated.CalendarDays.CalendarJobs.QueuePolicy ( CalendarJobsOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit. module Generated.CalendarDays.CalendarLookup.QueryContract ( CalendarLookupQueryInput , CalendarLookupQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit. module Generated.CalendarDays.CalendarLookup.ReadModel ( calendarLookupReadModel , calendarLookupQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit. module Generated.CalendarDays.CalendarLookup.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.CalendarDays.CalendarLookup.ReadModel (calendarLookupReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel calendar_lookup; do not edit. module Generated.CalendarDays.CalendarLookup.ReadModelTable (calendarLookupQualifiedTable) where import Data.Text (Text)
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.CalendarDays.CalendarStore.Codec (encodeCalendarStoreEvent, parseCalendarStoreEvent, calendarStoreCodec)@@ -218,6 +219,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.Codec ( calendarStoreCodec, parseCalendarStoreEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.EventStream ( calendarStoreCategory , calendarStoreCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.Harness (harnessAssertions) where import Generated.CalendarDays.CalendarStore.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate CalendarStore; do not edit. module Generated.CalendarDays.CalendarStore.Transducer ( calendarStoreTransducer , calendarStoreFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context calendar-days inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context calendar-days inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from projection-catalog calendar-days; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from projection-catalog calendar-days; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.CalendarDays.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context calendar-days replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context calendar-days replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural CalendarEnvelope; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural CalendarEnvelope; do not edit. module Generated.CalendarDays.Structural.Shape.CalendarEnvelope (CalendarEnvelopeShape (..)) where import Data.Map.Strict (Map)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural LocalDay; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural LocalDay; do not edit. module Generated.CalendarDays.Structural.Shape.LocalDay (LocalDayShape) where import Data.Time.Calendar (Day)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural MaybeLocalDay; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural MaybeLocalDay; do not edit. module Generated.CalendarDays.Structural.Shape.MaybeLocalDay (MaybeLocalDayShape) where import Data.Time.Calendar (Day)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context calendar-days structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context calendar-days structural conformance; do not edit. module Generated.CalendarDays.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay behavior source map; do not edit. module Generated.CheckedMappingReplay.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay generated nominal declarations; do not edit. module Generated.CheckedMappingReplay.Nominals ( RetainedId , parseRetainedId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay generated nominal ID internals; do not edit. module Generated.CheckedMappingReplay.Nominals.Internal ( RetainedId , parseRetainedId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from projection-catalog checked-mapping-replay; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from projection-catalog checked-mapping-replay; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.CheckedMappingReplay.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from contract replay_events; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract replay_events; do not edit. module Generated.CheckedMappingReplay.ReplayEvents.Contract ( ReplayEventsPayload (..) , ReplayLinkedData (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue replay_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue replay_jobs; do not edit. module Generated.CheckedMappingReplay.ReplayJobs.Queue ( ReplayJob (..) , encodeReplayJob
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue replay_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue replay_jobs; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue replay_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue replay_jobs; do not edit. module Generated.CheckedMappingReplay.ReplayJobs.QueuePolicy ( ReplayJobsOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.CheckedMappingReplay.ReplayLedger.Codec (encodeReplayLedgerEvent, parseReplayLedgerEvent, replayLedgerCodec)@@ -254,6 +255,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.Codec ( replayLedgerCodec, parseReplayLedgerEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.EventStream ( replayLedgerCategory , replayLedgerCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.Harness (harnessAssertions) where import Generated.CheckedMappingReplay.ReplayLedger.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayLedger; do not edit. module Generated.CheckedMappingReplay.ReplayLedger.Transducer ( replayLedgerTransducer , replayLedgerFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit. module Generated.CheckedMappingReplay.ReplayLookup.QueryContract ( ReplayLookupQueryInput , ReplayLookupQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit. module Generated.CheckedMappingReplay.ReplayLookup.ReadModel ( replayLookupReadModel , replayLookupQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit. module Generated.CheckedMappingReplay.ReplayLookup.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.CheckedMappingReplay.ReplayLookup.ReadModel (replayLookupReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel replay_lookup; do not edit. module Generated.CheckedMappingReplay.ReplayLookup.ReadModelTable (replayLookupQualifiedTable) where import Data.Text (Text)
@@ -1,5 +1,5 @@ {-# LANGUAGE DeriveAnyClass #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from process input ReplayReaction; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from process input ReplayReaction; do not edit. module Generated.CheckedMappingReplay.ReplayReaction.Input (ReplayReactionInput (..)) where import Data.Aeson (FromJSON, ToJSON)
@@ -1,5 +1,5 @@ {-# OPTIONS_GHC -Wno-missing-signatures #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from process reaction ReplayReaction; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from process reaction ReplayReaction; do not edit. module Generated.CheckedMappingReplay.ReplayReaction.Process ( ReplayReactionInput (..) , replayReactionProcessName
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from process ReplayReaction; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from process ReplayReaction; do not edit. module Generated.CheckedMappingReplay.ReplayReaction.ProcessHarness (processHarnessValues) where -- | (label, value): the spec's deterministic process/timer decisions,
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.CheckedMappingReplay.ReplayTarget.Codec (encodeReplayTargetEvent, parseReplayTargetEvent, replayTargetCodec)@@ -206,6 +207,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.Codec ( replayTargetCodec, parseReplayTargetEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.Domain where import Data.Proxy (Proxy (..))
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.EventStream ( replayTargetCategory , replayTargetCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.Harness (harnessAssertions) where import Generated.CheckedMappingReplay.ReplayTarget.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ReplayTarget; do not edit. module Generated.CheckedMappingReplay.ReplayTarget.Transducer ( replayTargetTransducer , replayTargetFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay structural nominal leaves; do not edit. module Generated.CheckedMappingReplay.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural ContentHash; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural ContentHash; do not edit. module Generated.CheckedMappingReplay.Structural.Shape.ContentHash (ContentHashShape) where import Data.ByteString (ByteString)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural ImportantDays; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural ImportantDays; do not edit. module Generated.CheckedMappingReplay.Structural.Shape.ImportantDays (ImportantDaysShape) where import Data.Time.Calendar (Day)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural MaybeContentHash; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural MaybeContentHash; do not edit. module Generated.CheckedMappingReplay.Structural.Shape.MaybeContentHash (MaybeContentHashShape) where import Generated.CheckedMappingReplay.Structural.Shape.ContentHash qualified as ContentHash
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural MaybeLabel; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural MaybeLabel; do not edit. module Generated.CheckedMappingReplay.Structural.Shape.MaybeLabel (MaybeLabelShape) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural ReplayEnvelope; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural ReplayEnvelope; do not edit. module Generated.CheckedMappingReplay.Structural.Shape.ReplayEnvelope (ReplayEnvelopeShape (..)) where import Data.Map.Strict (Map)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural TextLabels; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural TextLabels; do not edit. module Generated.CheckedMappingReplay.Structural.Shape.TextLabels (TextLabelsShape) where import Data.Set (Set)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay structural conformance; do not edit. module Generated.CheckedMappingReplay.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context checked-mapping-replay mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context checked-mapping-replay mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context billing behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context billing behavior source map; do not edit. module Generated.Billing.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context billing inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context billing inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context billing generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context billing generated nominal declarations; do not edit. module Generated.Billing.Nominals ( CustomerId , parseCustomerId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context billing generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context billing generated nominal ID internals; do not edit. module Generated.Billing.Nominals.Internal ( CustomerId , parseCustomerId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context billing replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context billing replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.Billing.Subscription.Codec (encodeSubscriptionEvent, parseSubscriptionEvent, subscriptionCodec)@@ -266,6 +267,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.Codec ( subscriptionCodec, parseSubscriptionEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.Domain where import Data.Proxy (Proxy (..))
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.EventStream ( subscriptionCategory , subscriptionCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.Harness (harnessAssertions) where import Generated.Billing.Subscription.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.Projection ( subscriptionsProjection , subscriptionsStatusFor
@@ -1,7 +1,7 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Subscription; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Subscription; do not edit. module Generated.Billing.Subscription.Transducer ( subscriptionTransducer , subscriptionFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-declared-id generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-declared-id generated nominal declarations; do not edit. module Generated.ContractDeclaredId.Nominals ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-declared-id generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-declared-id generated nominal ID internals; do not edit. module Generated.ContractDeclaredId.Nominals.Internal ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-declared-id structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-declared-id structural nominal leaves; do not edit. module Generated.ContractDeclaredId.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-declared-id structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-declared-id structural conformance; do not edit. module Generated.ContractDeclaredId.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from contract templates; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract templates; do not edit. module Generated.ContractDeclaredId.Templates.Contract ( TemplatesPayload (..) , TemplateClaimedData (..)
@@ -0,0 +1,104 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract audit; do not edit.+module Generated.ContractForeignEvent.Audit.Contract+ ( AuditPayload (..)+ , MemberNotedData (..)+ , RegistrationSeenData (..)+ , NotesClearedData (..)+ , notesTopic+ , messageTypeOf+ , encodeAuditPayload+ , parseAuditPayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:?), (.=))+import Data.Aeson.Types (Parser, explicitParseField, explicitParseFieldMaybe, parseEither)+import Data.KindID (KindID)+import qualified Data.KindID as KindID+import Generated.ContractForeignEvent.Nominals qualified as Nominals+import Generated.ContractForeignEvent.Structural.NominalLeaves qualified as NominalLeaves+import Data.Text (Text)+import qualified Data.Text as T+import Keiro.Codec.IdDomain (parseKindIdV7Value)++-- topic constants+notesTopic :: Text+notesTopic = "audit.notes"++-- the closed payload set (discriminated by "messageType")+data MemberNotedData = MemberNotedData {memberId :: !Nominals.MemberId, note :: !(Maybe Text)}+ deriving stock (Eq, Show)++data RegistrationSeenData = RegistrationSeenData {registrationId :: !(KindID "registration"), ownerEmail :: !(Maybe Text), mlsMemberId :: !(Maybe Nominals.MemberId), legacyAccountId :: !(Maybe Int), referrerId :: !(Maybe (KindID "member"))}+ deriving stock (Eq, Show)++data NotesClearedData = NotesClearedData {}+ deriving stock (Eq, Show)++data AuditPayload+ = MemberNoted !MemberNotedData+ | RegistrationSeen !RegistrationSeenData+ | NotesCleared !NotesClearedData+ deriving stock (Eq, Show)++messageTypeOf :: AuditPayload -> Text+messageTypeOf = \case+ MemberNoted {} -> "MemberNoted"+ RegistrationSeen {} -> "RegistrationSeen"+ NotesCleared {} -> "NotesCleared"++encodeAuditPayload :: AuditPayload -> Value+encodeAuditPayload = \case+ MemberNoted payload ->+ object+ ( [ "messageType" .= ("MemberNoted" :: Text),+ "memberId" .= NominalLeaves.encodeMemberIdLeaf payload.memberId+ ]+ <> ["note" .= value | Just value <- [payload.note]]+ )+ RegistrationSeen payload ->+ object+ ( [ "messageType" .= ("RegistrationSeen" :: Text),+ "registrationId" .= KindID.toText payload.registrationId+ ]+ <> ["ownerEmail" .= value | Just value <- [payload.ownerEmail]]+ <> ["mlsMemberId" .= NominalLeaves.encodeMemberIdLeaf value | Just value <- [payload.mlsMemberId]]+ <> ["legacyAccountId" .= value | Just value <- [payload.legacyAccountId]]+ <> ["referrerId" .= KindID.toText value | Just value <- [payload.referrerId]]+ )+ NotesCleared _ ->+ object+ [ "messageType" .= ("NotesCleared" :: Text)+ ]++parseAuditPayload :: Value -> Either Text AuditPayload+parseAuditPayload = mapLeftText . parseEither (withObject "AuditPayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "MemberNoted" ->+ MemberNoted+ <$> ( MemberNotedData+ <$> explicitParseField NominalLeaves.parseMemberIdLeaf o "memberId"+ <*> o .:? "note"+ )+ "RegistrationSeen" ->+ RegistrationSeen+ <$> ( RegistrationSeenData+ <$> explicitParseField (parseKindIdV7Value @"registration") o "registrationId"+ <*> o .:? "ownerEmail"+ <*> explicitParseFieldMaybe NominalLeaves.parseMemberIdLeaf o "mlsMemberId"+ <*> o .:? "legacyAccountId"+ <*> explicitParseFieldMaybe (parseKindIdV7Value @"member") o "referrerId"+ )+ "NotesCleared" ->+ pure (NotesCleared NotesClearedData)+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["MemberNoted", "RegistrationSeen", "NotesCleared"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: MemberNoted, RegistrationSeen, NotesCleared")
@@ -0,0 +1,9 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-foreign-event generated nominal declarations; do not edit.+module Generated.ContractForeignEvent.Nominals+ ( MemberId+ , parseMemberId+ , mkMemberId+ , memberIdText+ ) where++import Generated.ContractForeignEvent.Nominals.Internal (MemberId, mkMemberId, parseMemberId, memberIdText)
@@ -0,0 +1,40 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-foreign-event generated nominal ID internals; do not edit.+module Generated.ContractForeignEvent.Nominals.Internal+ ( MemberId+ , parseMemberId+ , mkMemberId+ , memberIdText+ , unsafeMemberIdFromLegacyText+ ) where++import Data.Aeson (FromJSON (..), ToJSON (..), withText)+import Data.Text (Text)+import Data.Text qualified as T+import GHC.Generics (Generic)+import Keiki.Shape (CanonicalTypeName)+import Keiro.Codec.IdDomain (typeIdV7Domain, validateIdDomainText)++newtype MemberId = MemberId Text+ deriving stock (Generic, Eq, Ord, Show)++instance CanonicalTypeName MemberId++instance ToJSON MemberId where+ toJSON = toJSON . memberIdText++instance FromJSON MemberId where+ parseJSON = withText "MemberId" (either (fail . T.unpack) pure . parseMemberId)++parseMemberId :: Text -> Either Text MemberId+parseMemberId input = case validateIdDomainText (typeIdV7Domain "member") input of+ Left reason -> Left (T.pack (show reason))+ Right () -> Right (MemberId input)++mkMemberId :: Text -> Either Text MemberId+mkMemberId = parseMemberId++memberIdText :: MemberId -> Text+memberIdText (MemberId value) = value++unsafeMemberIdFromLegacyText :: Text -> MemberId+unsafeMemberIdFromLegacyText = MemberId
@@ -0,0 +1,72 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract registration; do not edit.+module Generated.ContractForeignEvent.Registration.Contract+ ( RegistrationPayload (..)+ , RegistrationCompletedData (..)+ , completedTopic+ , messageTypeOf+ , encodeRegistrationPayload+ , parseRegistrationPayloadAs+ ) where++import Data.Aeson (Value, object, withObject, (.:), (.:?), (.=))+import Data.Aeson.Types (Parser, explicitParseField, explicitParseFieldMaybe, parseEither)+import Data.KindID (KindID)+import qualified Data.KindID as KindID+import Generated.ContractForeignEvent.Nominals qualified as Nominals+import Generated.ContractForeignEvent.Structural.NominalLeaves qualified as NominalLeaves+import Data.Text (Text)+import qualified Data.Text as T+import Keiro.Codec.IdDomain (parseKindIdV7Value)++-- topic constants+completedTopic :: Text+completedTopic = "registration.completed.v1"++-- the closed payload set (discriminated by the envelope's event type)+data RegistrationCompletedData = RegistrationCompletedData {registrationId :: !(KindID "registration"), occurredAt :: !Text, ownerEmail :: !(Maybe Text), mlsMemberId :: !(Maybe Nominals.MemberId), legacyAccountId :: !(Maybe Int)}+ deriving stock (Eq, Show)++data RegistrationPayload+ = RegistrationCompleted !RegistrationCompletedData+ deriving stock (Eq, Show)++messageTypeOf :: RegistrationPayload -> Text+messageTypeOf = \case+ RegistrationCompleted {} -> "RegistrationCompleted"++encodeRegistrationPayload :: RegistrationPayload -> Value+encodeRegistrationPayload = \case+ RegistrationCompleted payload ->+ object+ ( [ "registrationId" .= KindID.toText payload.registrationId,+ "occurredAt" .= payload.occurredAt+ ]+ <> ["ownerEmail" .= value | Just value <- [payload.ownerEmail]]+ <> ["mlsMemberId" .= NominalLeaves.encodeMemberIdLeaf value | Just value <- [payload.mlsMemberId]]+ <> ["legacyAccountId" .= value | Just value <- [payload.legacyAccountId]]+ )++parseRegistrationPayloadAs :: Text -> Value -> Either Text RegistrationPayload+parseRegistrationPayloadAs eventType = mapLeftText . parseEither (withObject "RegistrationPayload" go)+ where+ go o = do+ kind <- validateMessageType eventType+ case kind of+ "RegistrationCompleted" ->+ RegistrationCompleted+ <$> ( RegistrationCompletedData+ <$> explicitParseField (parseKindIdV7Value @"registration") o "registrationId"+ <*> o .: "occurredAt"+ <*> o .:? "ownerEmail"+ <*> explicitParseFieldMaybe NominalLeaves.parseMemberIdLeaf o "mlsMemberId"+ <*> o .:? "legacyAccountId"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["RegistrationCompleted"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: RegistrationCompleted")
@@ -0,0 +1,62 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract signals; do not edit.+module Generated.ContractForeignEvent.Signals.Contract+ ( SignalsPayload (..)+ , PingedData (..)+ , PongedData (..)+ , beatsTopic+ , messageTypeOf+ , encodeSignalsPayload+ , parseSignalsPayloadAs+ ) where++import Data.Aeson (Value, object, withObject)+import Data.Aeson.Types (Parser, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+beatsTopic :: Text+beatsTopic = "signals.beats"++-- the closed payload set (discriminated by the envelope's event type)+data PingedData = PingedData { }+ deriving stock (Eq, Show)++data PongedData = PongedData { }+ deriving stock (Eq, Show)++data SignalsPayload = Pinged !PingedData+ | Ponged !PongedData+ deriving stock (Eq, Show)++messageTypeOf :: SignalsPayload -> Text+messageTypeOf = \case+ Pinged {} -> "Pinged"+ Ponged {} -> "Ponged"++encodeSignalsPayload :: SignalsPayload -> Value+encodeSignalsPayload = \case+ Pinged _ ->+ object []+ Ponged _ ->+ object []++parseSignalsPayloadAs :: Text -> Value -> Either Text SignalsPayload+parseSignalsPayloadAs eventType = mapLeftText . parseEither (withObject "SignalsPayload" go)+ where+ go _ = do+ kind <- validateMessageType eventType+ case kind of+ "Pinged" ->+ pure (Pinged PingedData)+ "Ponged" ->+ pure (Ponged PongedData)+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Pinged", "Ponged"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Pinged, Ponged")
@@ -0,0 +1,15 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-foreign-event structural nominal leaves; do not edit.+module Generated.ContractForeignEvent.Structural.NominalLeaves where++import Data.Aeson (Value (..), withText)+import Data.Aeson.Types (Parser)+import Data.Text qualified as T+import Generated.ContractForeignEvent.Nominals qualified as Nominals++encodeMemberIdLeaf :: Nominals.MemberId -> Value+encodeMemberIdLeaf = String . Nominals.memberIdText+{-# NOINLINE encodeMemberIdLeaf #-}++parseMemberIdLeaf :: Value -> Parser Nominals.MemberId+parseMemberIdLeaf = withText "MemberId" (either (fail . T.unpack) pure . Nominals.parseMemberId)+{-# NOINLINE parseMemberIdLeaf #-}
@@ -0,0 +1,9 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-foreign-event structural conformance; do not edit.+module Generated.ContractForeignEvent.StructuralConformance+ ( structuralConformanceAssertions+ ) where+++structuralConformanceAssertions :: [(String, Bool)]+structuralConformanceAssertions =+ []
@@ -0,0 +1,209 @@+{-# LANGUAGE DataKinds #-}+{-# LANGUAGE OverloadedStrings #-}+{-# LANGUAGE TypeApplications #-}++-- | Compiled proof for ExecPlan 345 / IR-64: Optional contract fields and a+-- contract whose event type comes from the envelope instead of a body key.+module Main (main) where++import Data.Aeson (Value (Null, Object, String), encode, object, toJSON, (.=))+import Data.Aeson.Key (Key)+import Data.Aeson.KeyMap qualified as KeyMap+import Data.ByteString.Lazy qualified as LazyByteString+import Data.KindID qualified as KindID+import Data.Text (Text)+import Data.Text qualified as T+import Data.Time (UTCTime (..), fromGregorian)+import Generated.ContractForeignEvent.Audit.Contract qualified as Audit+import Generated.ContractForeignEvent.Nominals (MemberId, parseMemberId)+import Generated.ContractForeignEvent.Registration.Contract qualified as Registration+import Generated.ContractForeignEvent.Signals.Contract qualified as Signals+import Generated.ContractForeignEvent.StructuralConformance (structuralConformanceAssertions)+import Keiro.Integration.Event+ ( IntegrationContentType (..),+ IntegrationEvent (..),+ IntegrationEventError (..),+ decodeJsonIntegrationEventWith,+ )+import System.Exit (exitFailure)++registrationIdText :: Text+registrationIdText = "registration_01h455vb4pex5vsknk084sn02q"++memberIdText :: Text+memberIdText = "member_01h455vb4pex5vsknk084sn02q"++registrationId :: KindID.KindID "registration"+registrationId = either (error . show) id (KindID.parseText @"registration" registrationIdText)++memberId :: MemberId+memberId = either (error . T.unpack) id (parseMemberId memberIdText)++referrerId :: KindID.KindID "member"+referrerId = either (error . show) id (KindID.parseText @"member" memberIdText)++occurredAtText :: Text+occurredAtText = "2026-11-18T00:00:00Z"++-- Body-discriminated contract: every optional scalar family.++seenFull :: Audit.AuditPayload+seenFull = Audit.RegistrationSeen (Audit.RegistrationSeenData registrationId (Just "owner@example.com") (Just memberId) (Just 42) (Just referrerId))++seenAbsent :: Audit.AuditPayload+seenAbsent = Audit.RegistrationSeen (Audit.RegistrationSeenData registrationId Nothing Nothing Nothing Nothing)++seenFullJson :: Value+seenFullJson =+ object+ [ "messageType" .= ("RegistrationSeen" :: Text),+ "registrationId" .= registrationIdText,+ "ownerEmail" .= ("owner@example.com" :: Text),+ "mlsMemberId" .= memberIdText,+ "legacyAccountId" .= (42 :: Int),+ "referrerId" .= memberIdText+ ]++seenAbsentJson :: Value+seenAbsentJson =+ object+ [ "messageType" .= ("RegistrationSeen" :: Text),+ "registrationId" .= registrationIdText+ ]++-- Each optional key of RegistrationSeen, with the payload that results when+-- only that key is null.+seenNullCases :: [(Key, Audit.AuditPayload)]+seenNullCases =+ [ ("ownerEmail", Audit.RegistrationSeen (Audit.RegistrationSeenData registrationId Nothing (Just memberId) (Just 42) (Just referrerId))),+ ("mlsMemberId", Audit.RegistrationSeen (Audit.RegistrationSeenData registrationId (Just "owner@example.com") Nothing (Just 42) (Just referrerId))),+ ("legacyAccountId", Audit.RegistrationSeen (Audit.RegistrationSeenData registrationId (Just "owner@example.com") (Just memberId) Nothing (Just referrerId))),+ ("referrerId", Audit.RegistrationSeen (Audit.RegistrationSeenData registrationId (Just "owner@example.com") (Just memberId) (Just 42) Nothing))+ ]++-- Envelope-discriminated contract: the motivating RegistrationCompleted event.++completedFull :: Registration.RegistrationPayload+completedFull = Registration.RegistrationCompleted (Registration.RegistrationCompletedData registrationId occurredAtText (Just "owner@example.com") (Just memberId) (Just 7))++completedAbsent :: Registration.RegistrationPayload+completedAbsent = Registration.RegistrationCompleted (Registration.RegistrationCompletedData registrationId occurredAtText Nothing Nothing Nothing)++completedFullJson :: Value+completedFullJson =+ object+ [ "registrationId" .= registrationIdText,+ "occurredAt" .= occurredAtText,+ "ownerEmail" .= ("owner@example.com" :: Text),+ "mlsMemberId" .= memberIdText,+ "legacyAccountId" .= (7 :: Int)+ ]++-- The bare object registration-service-v2 publishes when both optional+-- values are unknown.+completedBareJson :: Value+completedBareJson =+ object+ [ "registrationId" .= registrationIdText,+ "occurredAt" .= occurredAtText+ ]++envelopeFor :: Text -> Value -> IntegrationEvent+envelopeFor eventType body =+ IntegrationEvent+ { messageId = "message-1",+ source = "registration-service-v2",+ destination = "registration.completed.v1",+ key = Nothing,+ eventType = eventType,+ schemaVersion = 1,+ contentType = ApplicationJson,+ schemaReference = Nothing,+ sourceEventId = Nothing,+ sourceGlobalPosition = Nothing,+ payloadBytes = LazyByteString.toStrict (encode body),+ occurredAt = UTCTime (fromGregorian 2026 11 18) 0,+ causationId = Nothing,+ correlationId = Nothing,+ traceContext = Nothing,+ attributes = Nothing+ }++replaceField :: Key -> Value -> Value -> Value+replaceField key value (Object fields) = Object (KeyMap.insert key value fields)+replaceField _ _ value = value++removeField :: Key -> Value -> Value+removeField key (Object fields) = Object (KeyMap.delete key fields)+removeField _ value = value++hasKey :: Key -> Value -> Bool+hasKey key (Object fields) = KeyMap.member key fields+hasKey _ _ = False++failsWith :: Text -> Either Text a -> Bool+failsWith fragment = either (fragment `T.isInfixOf`) (const False)++isLeft' :: Either a b -> Bool+isLeft' = either (const True) (const False)++main :: IO ()+main = do+ let parseAudit = Audit.parseAuditPayload+ parseCompleted = Registration.parseRegistrationPayloadAs "RegistrationCompleted"+ noted note = Audit.MemberNoted (Audit.MemberNotedData memberId note)+ cleared = Audit.NotesCleared Audit.NotesClearedData+ pinged = Signals.Pinged Signals.PingedData+ ponged = Signals.Ponged Signals.PongedData+ notedJson extra = object (["messageType" .= ("MemberNoted" :: Text), "memberId" .= memberIdText] <> extra)+ checks =+ [ -- AC-1 on the body-discriminated contract.+ ("present optionals encode exactly and round-trip for text, int, literal TypeID and declared id", Audit.encodeAuditPayload seenFull == seenFullJson && parseAudit seenFullJson == Right seenFull),+ ("absent optionals encode with no key and round-trip", Audit.encodeAuditPayload seenAbsent == seenAbsentJson && parseAudit seenAbsentJson == Right seenAbsent),+ ("each optional key set to null decodes to Nothing", all (\(key, expected) -> parseAudit (replaceField key Null seenFullJson) == Right expected) seenNullCases),+ ("a wrong-typed optional text fails at $.ownerEmail", failsWith "$.ownerEmail" (parseAudit (replaceField "ownerEmail" (toJSON (7 :: Int)) seenFullJson))),+ ("a wrong-typed optional int fails at $.legacyAccountId", failsWith "$.legacyAccountId" (parseAudit (replaceField "legacyAccountId" (String "seven") seenFullJson))),+ ("a wrong-prefix optional declared id fails at $.mlsMemberId", failsWith "$.mlsMemberId" (parseAudit (replaceField "mlsMemberId" (String registrationIdText) seenFullJson))),+ ("a wrong-prefix optional literal TypeID fails at $.referrerId", failsWith "$.referrerId" (parseAudit (replaceField "referrerId" (String registrationIdText) seenFullJson))),+ ("a missing required field is still rejected", isLeft' (parseAudit (removeField "registrationId" seenAbsentJson))),+ ("an unknown extra key is ignored", parseAudit (replaceField "unexpected" (String "ignored") seenFullJson) == Right seenFull),+ ("MemberNoted round-trips with and without its optional note", Audit.encodeAuditPayload (noted Nothing) == notedJson [] && parseAudit (notedJson []) == Right (noted Nothing) && Audit.encodeAuditPayload (noted (Just "hello")) == notedJson ["note" .= ("hello" :: Text)] && parseAudit (notedJson ["note" .= ("hello" :: Text)]) == Right (noted (Just "hello"))),+ ("the body-discriminated contract still requires its messageType key", failsWith "messageType" (parseAudit (removeField "messageType" seenFullJson))),+ -- AC-2 on the envelope-discriminated contract.+ ("the envelope contract encodes no messageType key", not (hasKey "messageType" (Registration.encodeRegistrationPayload completedFull))),+ ("the envelope contract encodes exactly and round-trips", Registration.encodeRegistrationPayload completedFull == completedFullJson && parseCompleted completedFullJson == Right completedFull),+ ("absent optionals encode as the bare producer object", Registration.encodeRegistrationPayload completedAbsent == completedBareJson),+ ("the bare producer object decodes with both optionals absent", parseCompleted completedBareJson == Right completedAbsent),+ ("an explicit null ownerEmail decodes the same way", parseCompleted (replaceField "ownerEmail" Null completedBareJson) == Right completedAbsent),+ ("an undeclared event type is rejected naming it", failsWith "unknown message type \"SomethingElse\"" (Registration.parseRegistrationPayloadAs "SomethingElse" completedBareJson)),+ ("a wrong-typed ownerEmail fails at $.ownerEmail", failsWith "$.ownerEmail" (parseCompleted (replaceField "ownerEmail" (toJSON (7 :: Int)) completedBareJson))),+ ("a wrong-prefix mlsMemberId fails at $.mlsMemberId", failsWith "$.mlsMemberId" (parseCompleted (replaceField "mlsMemberId" (String registrationIdText) completedBareJson))),+ ("a missing registrationId is rejected", isLeft' (parseCompleted (removeField "registrationId" completedBareJson))),+ ("a body messageType key is ignored as an unknown key", parseCompleted (replaceField "messageType" (String "SomethingElse") completedBareJson) == Right completedAbsent),+ -- AC-2 through keiro-core's envelope join.+ ("decodeJsonIntegrationEventWith decodes a matching envelope", decodeJsonIntegrationEventWith Registration.parseRegistrationPayloadAs (envelopeFor "RegistrationCompleted" completedBareJson) == Right completedAbsent),+ ( "decodeJsonIntegrationEventWith rejects a mismatched envelope event type",+ case decodeJsonIntegrationEventWith Registration.parseRegistrationPayloadAs (envelopeFor "RegistrationStarted" completedBareJson) of+ Left (DecodeFailed problem) -> "RegistrationStarted" `T.isInfixOf` problem+ _ -> False+ ),+ ( "decodeJsonIntegrationEventWith refuses a non-JSON content type",+ decodeJsonIntegrationEventWith Registration.parseRegistrationPayloadAs ((envelopeFor "RegistrationCompleted" completedBareJson) {contentType = OtherContentType "application/avro"})+ == Left (UnsupportedContentType "application/avro")+ ),+ ( "decodeJsonIntegrationEventWith reports unparsable bytes as malformed",+ case decodeJsonIntegrationEventWith Registration.parseRegistrationPayloadAs ((envelopeFor "RegistrationCompleted" completedBareJson) {payloadBytes = "{"}) of+ Left (MalformedPayload _) -> True+ _ -> False+ ),+ -- Fieldless events in both discriminator modes (review finding 2).+ ("a fieldless body-discriminated event encodes exactly its discriminator key", Audit.encodeAuditPayload cleared == object ["messageType" .= ("NotesCleared" :: Text)]),+ ("a fieldless body-discriminated event round-trips", parseAudit (Audit.encodeAuditPayload cleared) == Right cleared),+ ("fieldless envelope-discriminated events encode as an empty object", Signals.encodeSignalsPayload pinged == object [] && Signals.encodeSignalsPayload ponged == object []),+ ("each envelope event type selects its fieldless constructor", Signals.parseSignalsPayloadAs "Pinged" (object []) == Right pinged && Signals.parseSignalsPayloadAs "Ponged" (object []) == Right ponged),+ ("the fieldless envelope contract encodes each event's own type in messageTypeOf", map Signals.messageTypeOf [pinged, ponged] == ["Pinged", "Ponged"]),+ ("the fieldless envelope contract rejects an undeclared event type", failsWith "unknown message type \"Pang\"" (Signals.parseSignalsPayloadAs "Pang" (object []))),+ ("contract nominal helpers pass conformance", all snd structuralConformanceAssertions)+ ]+ mapM_ (\(label, ok) -> putStrLn ((if ok then "PASS " else "FAIL ") <> label)) checks+ if all snd checks then pure () else exitFailure
@@ -0,0 +1,27 @@+-- keiro-dsl build manifest for keiro-dsl/test/fixtures/contract-foreign-event.keiro+-- Paste the complete fragment below into the consuming Cabal stanza.+-- The generated layer is overwritten on every scaffold; hole modules are+-- create-if-absent (filled by hand).++default-language: GHC2024+default-extensions:+ DuplicateRecordFields+ NoFieldSelectors+ OverloadedRecordDot+ OverloadedStrings++other-modules:+ Generated.ContractForeignEvent.Audit.Contract+ Generated.ContractForeignEvent.Nominals+ Generated.ContractForeignEvent.Nominals.Internal+ Generated.ContractForeignEvent.Registration.Contract+ Generated.ContractForeignEvent.Signals.Contract+ Generated.ContractForeignEvent.Structural.NominalLeaves+ Generated.ContractForeignEvent.StructuralConformance++build-depends:+ , aeson+ , base+ , keiro-core+ , mmzk-typeid+ , text
@@ -0,0 +1,30 @@+keiro-dsl scaffold record v1+spec: keiro-dsl/test/fixtures/contract-foreign-event.keiro+module-root: (none)+layout: prefixed+source-language {"declaredLanguageVersion":6,"effectiveLanguageVersion":6,"sourceForm":"declared"}+semantic-contract {"languageSupport":"candidate","languageVersion":6,"runtimeSemantics":"keiro-dsl/runtime-semantics/5"}+naming-edition idiomatic-v2+module-role {"family":"StructuralConformance","kind":"generated","ownerKind":"context","ownerName":"context contract-foreign-event structural conformance","path":"Generated/ContractForeignEvent/StructuralConformance.hs"}+module-role {"family":"Nominals","kind":"generated","ownerKind":"context","ownerName":"context contract-foreign-event generated nominal declarations","path":"Generated/ContractForeignEvent/Nominals.hs"}+module-role {"family":"Internal","kind":"generated","ownerKind":"context","ownerName":"context contract-foreign-event generated nominal ID internals","path":"Generated/ContractForeignEvent/Nominals/Internal.hs"}+module-role {"family":"NominalLeaves","kind":"generated","ownerKind":"context","ownerName":"context contract-foreign-event structural nominal leaves","path":"Generated/ContractForeignEvent/Structural/NominalLeaves.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract audit (line 6)","path":"Generated/ContractForeignEvent/Audit/Contract.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract registration (line 28)","path":"Generated/ContractForeignEvent/Registration/Contract.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract signals (line 43)","path":"Generated/ContractForeignEvent/Signals/Contract.hs"}+generated Generated/ContractForeignEvent/StructuralConformance.hs+generated Generated/ContractForeignEvent/Nominals.hs+generated Generated/ContractForeignEvent/Nominals/Internal.hs+generated Generated/ContractForeignEvent/Structural/NominalLeaves.hs+generated Generated/ContractForeignEvent/Audit/Contract.hs+generated Generated/ContractForeignEvent/Registration/Contract.hs+generated Generated/ContractForeignEvent/Signals/Contract.hs+id-domain id-domain|name=MemberId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=member|separator=_|json=canonical-json-text+id-domain id-domain|name=contract:audit.MemberNoted.memberId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=member|separator=_|json=canonical-json-text+id-domain id-domain|name=contract:audit.RegistrationSeen.registrationId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=registration|separator=_|json=canonical-json-text+id-domain id-domain|name=contract:audit.RegistrationSeen.mlsMemberId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=member|separator=_|json=canonical-json-text+id-domain id-domain|name=contract:audit.RegistrationSeen.referrerId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=member|separator=_|json=canonical-json-text+id-domain id-domain|name=contract:registration.RegistrationCompleted.registrationId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=registration|separator=_|json=canonical-json-text+id-domain id-domain|name=contract:registration.RegistrationCompleted.mlsMemberId|contract=keiro-dsl/id-domain/typeid-v7/1|prefix=member|separator=_|json=canonical-json-text+nominal-equality nominal-equality|name=MemberId|contract=keiro-dsl/nominal-equality/2|key=Text|domain=typeid-v7-text:member:keiro-dsl/id-domain/typeid-v7/1|owner=generated+semantic-impact {"declarations":[],"mappedSurfaceEvidenceVersion":1,"serviceInventory":[]}
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-list-fields generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-list-fields generated nominal declarations; do not edit. module Generated.ContractListFields.Nominals ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-list-fields generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-list-fields generated nominal ID internals; do not edit. module Generated.ContractListFields.Nominals.Internal ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-list-fields structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-list-fields structural nominal leaves; do not edit. module Generated.ContractListFields.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context contract-list-fields structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context contract-list-fields structural conformance; do not edit. module Generated.ContractListFields.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from contract templates; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract templates; do not edit. module Generated.ContractListFields.Templates.Contract ( TemplatesPayload (..) , TemplatesReassignedData (..)
@@ -0,0 +1,184 @@+{-# LANGUAGE OverloadedStrings #-}++-- | Executed rollout proof for ExecPlan 345, Milestone 5.+--+-- @Before@ and @After@ are the generated modules of+-- @test/fixtures/contract-rollout-before.keiro@ and+-- @test/fixtures/contract-rollout-after.keiro@, compiled into one program under+-- distinct module roots. For each direction of each change the program runs+-- the old encoder against the new decoder and the new encoder against the old+-- decoder, then checks that the rollout @keiro-dsl diff@ reports for the same+-- pair of sources is the one that behaviour requires. A reversed rollout+-- verdict therefore fails here even if the unit tests are edited to match it.+module Main (main) where++import After.Generated.ContractRollout.Growth.Contract qualified as AfterGrowth+import After.Generated.ContractRollout.Origin.Contract qualified as AfterOrigin+import After.Generated.ContractRollout.Presence.Contract qualified as AfterPresence+import Before.Generated.ContractRollout.Growth.Contract qualified as BeforeGrowth+import Before.Generated.ContractRollout.Origin.Contract qualified as BeforeOrigin+import Before.Generated.ContractRollout.Presence.Contract qualified as BeforePresence+import Data.Either (isLeft, isRight)+import Data.Set (Set)+import Data.Set qualified as Set+import Data.Text (Text)+import Data.Text qualified as T+import Data.Text.IO qualified as TIO+import Keiro.Dsl.Diff (Change (..), ChangeKind (..), CompatibilityVector (..), RolloutConstraint (..), diffSources)+import Keiro.Dsl.LanguageVersion (renderParseFailure)+import Keiro.Dsl.Parser (parseSource)+import Keiro.Dsl.Validate (DiagnosticCode (..))+import System.Exit (exitFailure)++-- | What running both generated versions shows for one direction of change.+data Observed = Observed+ { -- | A still-running old consumer decodes what the new producer writes.+ oldReadsNew :: !Bool,+ -- | The new consumer decodes what a still-running old producer wrote.+ newReadsOld :: !Bool+ }+ deriving stock (Show)++-- | Whether a reported rollout is the one the observed behaviour requires.+--+-- * @producer-first@ is safe only when old consumers read the new output, and+-- it is required (with @drain-required@) when the new consumer rejects the+-- old output.+-- * @producer-last@ is safe only when the new consumer reads the old output,+-- and it is required when old consumers reject the new output.+rolloutMatches :: Observed -> Set RolloutConstraint -> Bool+rolloutMatches observed rollout =+ (not (has RolloutProducerFirst) || observed.oldReadsNew)+ && (not (has RolloutProducerLast) || observed.newReadsOld)+ && (observed.newReadsOld || (has RolloutProducerFirst && has RolloutDrainRequired))+ && (observed.oldReadsNew || has RolloutProducerLast)+ where+ has = (`Set.member` rollout)++-- Presence: Before declares `note: Optional text`, After declares `note: text`.++presenceBefore :: Maybe Text -> BeforePresence.PresencePayload+presenceBefore note = BeforePresence.Noted (BeforePresence.NotedData "subject-1" note)++presenceAfter :: AfterPresence.PresencePayload+presenceAfter = AfterPresence.Noted (AfterPresence.NotedData "subject-1" "a note")++-- Forward reads old = Before, new = After; backward reads old = After,+-- new = Before.+presenceForward, presenceBackward :: Observed+presenceForward =+ Observed+ { oldReadsNew = isRight (BeforePresence.parsePresencePayload (AfterPresence.encodePresencePayload presenceAfter)),+ newReadsOld = isRight (AfterPresence.parsePresencePayload (BeforePresence.encodePresencePayload (presenceBefore Nothing)))+ }+presenceBackward =+ Observed+ { oldReadsNew = isRight (AfterPresence.parsePresencePayload (BeforePresence.encodePresencePayload (presenceBefore Nothing))),+ newReadsOld = isRight (BeforePresence.parsePresencePayload (AfterPresence.encodePresencePayload presenceAfter))+ }++-- Origin: Before takes the event type from the envelope, After from a+-- messageType body key.++originBefore :: BeforeOrigin.OriginPayload+originBefore = BeforeOrigin.Signaled (BeforeOrigin.SignaledData "subject-1")++originAfter :: AfterOrigin.OriginPayload+originAfter = AfterOrigin.Signaled (AfterOrigin.SignaledData "subject-1")++-- The envelope always carries the event type the producer derived from+-- messageTypeOf, whichever version wrote the body.+readOriginBefore :: Text -> AfterOrigin.OriginPayload -> Bool+readOriginBefore eventType payload = isRight (BeforeOrigin.parseOriginPayloadAs eventType (AfterOrigin.encodeOriginPayload payload))++originForward, originBackward :: Observed+originForward =+ Observed+ { oldReadsNew = readOriginBefore (AfterOrigin.messageTypeOf originAfter) originAfter,+ newReadsOld = isRight (AfterOrigin.parseOriginPayload (BeforeOrigin.encodeOriginPayload originBefore))+ }+originBackward =+ Observed+ { oldReadsNew = isRight (AfterOrigin.parseOriginPayload (BeforeOrigin.encodeOriginPayload originBefore)),+ newReadsOld = readOriginBefore (AfterOrigin.messageTypeOf originAfter) originAfter+ }++-- Growth: After adds `reason: Optional text`.++growthBefore :: BeforeGrowth.GrowthPayload+growthBefore = BeforeGrowth.Grown (BeforeGrowth.GrownData "subject-1")++growthAfter :: Maybe Text -> AfterGrowth.GrowthPayload+growthAfter reason = AfterGrowth.Grown (AfterGrowth.GrownData "subject-1" reason)++growthForward, growthBackward :: Observed+growthForward =+ Observed+ { oldReadsNew = isRight (BeforeGrowth.parseGrowthPayload (AfterGrowth.encodeGrowthPayload (growthAfter (Just "a reason")))),+ newReadsOld = AfterGrowth.parseGrowthPayload (BeforeGrowth.encodeGrowthPayload growthBefore) == Right (growthAfter Nothing)+ }+growthBackward =+ Observed+ { oldReadsNew = AfterGrowth.parseGrowthPayload (BeforeGrowth.encodeGrowthPayload growthBefore) == Right (growthAfter Nothing),+ newReadsOld = isRight (BeforeGrowth.parseGrowthPayload (AfterGrowth.encodeGrowthPayload (growthAfter (Just "a reason"))))+ }++changeKindOf :: Change -> ChangeKind+changeKindOf (Additive kind) = kind+changeKindOf (Advisory kind) = kind+changeKindOf (Breaking kind) = kind++-- | The rollout `keiro-dsl diff` reports for the one finding with this code+-- on this contract, or 'Nothing' when there is not exactly one.+reportedRollout :: [Change] -> Text -> DiagnosticCode -> Maybe (Set RolloutConstraint)+reportedRollout changes contract code =+ case [kind | kind <- map changeKindOf changes, kind.node == contract, kind.code == code] of+ [kind] -> Just kind.vector.rollout+ _ -> Nothing++loadDiff :: FilePath -> FilePath -> IO [Change]+loadDiff oldPath newPath = do+ old <- parsed oldPath+ new <- parsed newPath+ either (fail . show) pure (diffSources old new)+ where+ parsed path = do+ source <- TIO.readFile path+ either (fail . T.unpack . renderParseFailure) pure (parseSource path source)++main :: IO ()+main = do+ let beforePath = "test/fixtures/contract-rollout-before.keiro"+ afterPath = "test/fixtures/contract-rollout-after.keiro"+ forward <- loadDiff beforePath afterPath+ backward <- loadDiff afterPath beforePath+ let verdict changes contract code observed = maybe False (rolloutMatches observed) (reportedRollout changes contract code)+ checks =+ [ -- Optional to required: producer-first, drain-required.+ ("optional to required: the old consumer reads the new producer's message", presenceForward.oldReadsNew),+ ("optional to required: the new consumer rejects an old message that omits the key", not presenceForward.newReadsOld),+ ("optional to required: the new consumer rejects it naming the key", either ("note" `T.isInfixOf`) (const False) (AfterPresence.parsePresencePayload (BeforePresence.encodePresencePayload (presenceBefore Nothing)))),+ ("optional to required: diff reports the rollout the behaviour requires", verdict forward "presence" ContractFieldChanged presenceForward),+ -- Required to optional: producer-last.+ ("required to optional: the new consumer reads the old producer's message", presenceBackward.newReadsOld),+ ("required to optional: the old consumer rejects a new message that omits the key", not presenceBackward.oldReadsNew),+ ("required to optional: diff reports the rollout the behaviour requires", verdict backward "presence" ContractFieldChanged presenceBackward),+ -- Envelope to body key: producer-first, drain-required.+ ("envelope to body key: the old consumer reads the new producer's message", originForward.oldReadsNew),+ ("envelope to body key: the new consumer rejects an old message without the key", not originForward.newReadsOld),+ ("envelope to body key: diff reports the rollout the behaviour requires", verdict forward "origin" ContractDiscriminatorChanged originForward),+ -- Body key to envelope: producer-last.+ ("body key to envelope: the new consumer reads the old producer's message", originBackward.newReadsOld),+ ("body key to envelope: the old consumer rejects a new message without the key", not originBackward.oldReadsNew),+ ("body key to envelope: diff reports the rollout the behaviour requires", verdict backward "origin" ContractDiscriminatorChanged originBackward),+ -- Added optional field: any order.+ ("optional field added: the old consumer reads a new message carrying the key", growthForward.oldReadsNew),+ ("optional field added: the new consumer reads an old message as Nothing", growthForward.newReadsOld),+ ("optional field added: diff reports no rollout constraint", reportedRollout forward "growth" ContractOptionalFieldAdded == Just Set.empty),+ ("optional field removed: diff reports a rollout the behaviour admits", verdict backward "growth" ContractFieldChanged growthBackward),+ -- The checks above are meaningful only if a reversed verdict fails them.+ ("a reversed verdict is detected", not (rolloutMatches presenceForward (Set.singleton RolloutProducerLast)) && not (rolloutMatches presenceBackward (Set.fromList [RolloutDrainRequired, RolloutProducerFirst]))),+ ("an absent body key is rejected, not defaulted", isLeft (AfterOrigin.parseOriginPayload (BeforeOrigin.encodeOriginPayload originBefore)))+ ]+ mapM_ (\(label, ok) -> putStrLn ((if ok then "PASS " else "FAIL ") <> label)) checks+ if all snd checks then pure () else exitFailure
@@ -0,0 +1,61 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract growth; do not edit.+module After.Generated.ContractRollout.Growth.Contract+ ( GrowthPayload (..)+ , GrownData (..)+ , notesTopic+ , messageTypeOf+ , encodeGrowthPayload+ , parseGrowthPayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:), (.:?), (.=))+import Data.Aeson.Types (Parser, explicitParseField, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+notesTopic :: Text+notesTopic = "rollout.growth"++-- the closed payload set (discriminated by "messageType")+data GrownData = GrownData { subject :: !Text, reason :: !(Maybe Text) }+ deriving stock (Eq, Show)++data GrowthPayload = Grown !GrownData+ deriving stock (Eq, Show)++messageTypeOf :: GrowthPayload -> Text+messageTypeOf = \case+ Grown {} -> "Grown"++encodeGrowthPayload :: GrowthPayload -> Value+encodeGrowthPayload = \case+ Grown payload ->+ object+ ( [ "messageType" .= ("Grown" :: Text)+ , "subject" .= payload.subject+ ]+ <> ["reason" .= value | Just value <- [payload.reason]]+ )++parseGrowthPayload :: Value -> Either Text GrowthPayload+parseGrowthPayload = mapLeftText . parseEither (withObject "GrowthPayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "Grown" ->+ Grown+ <$> ( GrownData+ <$> o .: "subject"+ <*> o .:? "reason"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Grown"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Grown")
@@ -0,0 +1,58 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract origin; do not edit.+module After.Generated.ContractRollout.Origin.Contract+ ( OriginPayload (..)+ , SignaledData (..)+ , signalsTopic+ , messageTypeOf+ , encodeOriginPayload+ , parseOriginPayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:), (.=))+import Data.Aeson.Types (Parser, explicitParseField, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+signalsTopic :: Text+signalsTopic = "rollout.origin"++-- the closed payload set (discriminated by "messageType")+data SignaledData = SignaledData { subject :: !Text }+ deriving stock (Eq, Show)++data OriginPayload = Signaled !SignaledData+ deriving stock (Eq, Show)++messageTypeOf :: OriginPayload -> Text+messageTypeOf = \case+ Signaled {} -> "Signaled"++encodeOriginPayload :: OriginPayload -> Value+encodeOriginPayload = \case+ Signaled payload ->+ object+ [ "messageType" .= ("Signaled" :: Text)+ , "subject" .= payload.subject+ ]++parseOriginPayload :: Value -> Either Text OriginPayload+parseOriginPayload = mapLeftText . parseEither (withObject "OriginPayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "Signaled" ->+ Signaled+ <$> ( SignaledData+ <$> o .: "subject"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Signaled"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Signaled")
@@ -0,0 +1,60 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract presence; do not edit.+module After.Generated.ContractRollout.Presence.Contract+ ( PresencePayload (..)+ , NotedData (..)+ , notesTopic+ , messageTypeOf+ , encodePresencePayload+ , parsePresencePayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:), (.=))+import Data.Aeson.Types (Parser, explicitParseField, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+notesTopic :: Text+notesTopic = "rollout.presence"++-- the closed payload set (discriminated by "messageType")+data NotedData = NotedData { subject :: !Text, note :: !Text }+ deriving stock (Eq, Show)++data PresencePayload = Noted !NotedData+ deriving stock (Eq, Show)++messageTypeOf :: PresencePayload -> Text+messageTypeOf = \case+ Noted {} -> "Noted"++encodePresencePayload :: PresencePayload -> Value+encodePresencePayload = \case+ Noted payload ->+ object+ [ "messageType" .= ("Noted" :: Text)+ , "subject" .= payload.subject+ , "note" .= payload.note+ ]++parsePresencePayload :: Value -> Either Text PresencePayload+parsePresencePayload = mapLeftText . parseEither (withObject "PresencePayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "Noted" ->+ Noted+ <$> ( NotedData+ <$> o .: "subject"+ <*> o .: "note"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Noted"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Noted")
@@ -0,0 +1,21 @@+-- keiro-dsl build manifest for keiro-dsl/test/fixtures/contract-rollout-after.keiro+-- Paste the complete fragment below into the consuming Cabal stanza.+-- The generated layer is overwritten on every scaffold; hole modules are+-- create-if-absent (filled by hand).++default-language: GHC2024+default-extensions:+ DuplicateRecordFields+ NoFieldSelectors+ OverloadedRecordDot+ OverloadedStrings++other-modules:+ After.Generated.ContractRollout.Growth.Contract+ After.Generated.ContractRollout.Origin.Contract+ After.Generated.ContractRollout.Presence.Contract++build-depends:+ , aeson+ , base+ , text
@@ -0,0 +1,14 @@+keiro-dsl scaffold record v1+spec: keiro-dsl/test/fixtures/contract-rollout-after.keiro+module-root: After+layout: prefixed+source-language {"declaredLanguageVersion":6,"effectiveLanguageVersion":6,"sourceForm":"declared"}+semantic-contract {"languageSupport":"candidate","languageVersion":6,"runtimeSemantics":"keiro-dsl/runtime-semantics/5"}+naming-edition idiomatic-v2+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract presence (line 4)","path":"After/Generated/ContractRollout/Presence/Contract.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract origin (line 16)","path":"After/Generated/ContractRollout/Origin/Contract.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract growth (line 27)","path":"After/Generated/ContractRollout/Growth/Contract.hs"}+generated After/Generated/ContractRollout/Presence/Contract.hs+generated After/Generated/ContractRollout/Origin/Contract.hs+generated After/Generated/ContractRollout/Growth/Contract.hs+semantic-impact {"declarations":[],"mappedSurfaceEvidenceVersion":1,"serviceInventory":[]}
@@ -0,0 +1,58 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract growth; do not edit.+module Before.Generated.ContractRollout.Growth.Contract+ ( GrowthPayload (..)+ , GrownData (..)+ , notesTopic+ , messageTypeOf+ , encodeGrowthPayload+ , parseGrowthPayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:), (.=))+import Data.Aeson.Types (Parser, explicitParseField, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+notesTopic :: Text+notesTopic = "rollout.growth"++-- the closed payload set (discriminated by "messageType")+data GrownData = GrownData { subject :: !Text }+ deriving stock (Eq, Show)++data GrowthPayload = Grown !GrownData+ deriving stock (Eq, Show)++messageTypeOf :: GrowthPayload -> Text+messageTypeOf = \case+ Grown {} -> "Grown"++encodeGrowthPayload :: GrowthPayload -> Value+encodeGrowthPayload = \case+ Grown payload ->+ object+ [ "messageType" .= ("Grown" :: Text)+ , "subject" .= payload.subject+ ]++parseGrowthPayload :: Value -> Either Text GrowthPayload+parseGrowthPayload = mapLeftText . parseEither (withObject "GrowthPayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "Grown" ->+ Grown+ <$> ( GrownData+ <$> o .: "subject"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Grown"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Grown")
@@ -0,0 +1,57 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract origin; do not edit.+module Before.Generated.ContractRollout.Origin.Contract+ ( OriginPayload (..)+ , SignaledData (..)+ , signalsTopic+ , messageTypeOf+ , encodeOriginPayload+ , parseOriginPayloadAs+ ) where++import Data.Aeson (Value, object, withObject, (.:), (.=))+import Data.Aeson.Types (Parser, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+signalsTopic :: Text+signalsTopic = "rollout.origin"++-- the closed payload set (discriminated by the envelope's event type)+data SignaledData = SignaledData { subject :: !Text }+ deriving stock (Eq, Show)++data OriginPayload = Signaled !SignaledData+ deriving stock (Eq, Show)++messageTypeOf :: OriginPayload -> Text+messageTypeOf = \case+ Signaled {} -> "Signaled"++encodeOriginPayload :: OriginPayload -> Value+encodeOriginPayload = \case+ Signaled payload ->+ object+ [ "subject" .= payload.subject+ ]++parseOriginPayloadAs :: Text -> Value -> Either Text OriginPayload+parseOriginPayloadAs eventType = mapLeftText . parseEither (withObject "OriginPayload" go)+ where+ go o = do+ kind <- validateMessageType eventType+ case kind of+ "Signaled" ->+ Signaled+ <$> ( SignaledData+ <$> o .: "subject"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Signaled"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Signaled")
@@ -0,0 +1,61 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract presence; do not edit.+module Before.Generated.ContractRollout.Presence.Contract+ ( PresencePayload (..)+ , NotedData (..)+ , notesTopic+ , messageTypeOf+ , encodePresencePayload+ , parsePresencePayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:), (.:?), (.=))+import Data.Aeson.Types (Parser, explicitParseField, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+notesTopic :: Text+notesTopic = "rollout.presence"++-- the closed payload set (discriminated by "messageType")+data NotedData = NotedData { subject :: !Text, note :: !(Maybe Text) }+ deriving stock (Eq, Show)++data PresencePayload = Noted !NotedData+ deriving stock (Eq, Show)++messageTypeOf :: PresencePayload -> Text+messageTypeOf = \case+ Noted {} -> "Noted"++encodePresencePayload :: PresencePayload -> Value+encodePresencePayload = \case+ Noted payload ->+ object+ ( [ "messageType" .= ("Noted" :: Text)+ , "subject" .= payload.subject+ ]+ <> ["note" .= value | Just value <- [payload.note]]+ )++parsePresencePayload :: Value -> Either Text PresencePayload+parsePresencePayload = mapLeftText . parseEither (withObject "PresencePayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "Noted" ->+ Noted+ <$> ( NotedData+ <$> o .: "subject"+ <*> o .:? "note"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["Noted"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: Noted")
@@ -0,0 +1,21 @@+-- keiro-dsl build manifest for keiro-dsl/test/fixtures/contract-rollout-before.keiro+-- Paste the complete fragment below into the consuming Cabal stanza.+-- The generated layer is overwritten on every scaffold; hole modules are+-- create-if-absent (filled by hand).++default-language: GHC2024+default-extensions:+ DuplicateRecordFields+ NoFieldSelectors+ OverloadedRecordDot+ OverloadedStrings++other-modules:+ Before.Generated.ContractRollout.Growth.Contract+ Before.Generated.ContractRollout.Origin.Contract+ Before.Generated.ContractRollout.Presence.Contract++build-depends:+ , aeson+ , base+ , text
@@ -0,0 +1,14 @@+keiro-dsl scaffold record v1+spec: keiro-dsl/test/fixtures/contract-rollout-before.keiro+module-root: Before+layout: prefixed+source-language {"declaredLanguageVersion":6,"effectiveLanguageVersion":6,"sourceForm":"declared"}+semantic-contract {"languageSupport":"candidate","languageVersion":6,"runtimeSemantics":"keiro-dsl/runtime-semantics/5"}+naming-edition idiomatic-v2+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract presence (line 4)","path":"Before/Generated/ContractRollout/Presence/Contract.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract origin (line 16)","path":"Before/Generated/ContractRollout/Origin/Contract.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract growth (line 27)","path":"Before/Generated/ContractRollout/Growth/Contract.hs"}+generated Before/Generated/ContractRollout/Presence/Contract.hs+generated Before/Generated/ContractRollout/Origin/Contract.hs+generated Before/Generated/ContractRollout/Growth/Contract.hs+semantic-impact {"declarations":[],"mappedSurfaceEvidenceVersion":1,"serviceInventory":[]}
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 1) from contract emergency; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 1) from contract emergency; do not edit. module Generated.HospitalCapacity.Emergency.Contract ( EmergencyPayload (..) , IncidentTransferNeedDeclaredData (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from contract emergency; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from contract emergency; do not edit. module Generated.HospitalCapacity.Emergency.Contract ( EmergencyPayload (..) , IncidentTransferNeedDeclaredData (..)
@@ -39,7 +39,6 @@ uncompiled-generated keiro-dsl/test/conformance-id-domain-migration/Generated/IdDomainMigration/ReplayAudit.hs uncompiled-generated keiro-dsl/test/conformance-intake-full/Generated/HospitalCapacity/Emergency/Contract.hs uncompiled-generated keiro-dsl/test/conformance-intake-runtime/Generated/HospitalCapacity/Emergency/Contract.hs-uncompiled-generated keiro-dsl/test/conformance-newsurface/Generated/TransferRouting/Hospital/BehaviorContract.hs uncompiled-generated keiro-dsl/test/conformance-process-full/Generated/SurgeDemo/Hospital/BehaviorContract.hs uncompiled-generated keiro-dsl/test/conformance-process-full/Generated/SurgeDemo/Hospital/Harness.hs uncompiled-generated keiro-dsl/test/conformance-process-full/Generated/SurgeDemo/Surge/BehaviorContract.hs
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context transfer-routing behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context transfer-routing behavior source map; do not edit. module Generated.TransferRouting.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.TransferRouting.Hospital.Codec (encodeHospitalEvent, parseHospitalEvent, hospitalCodec)@@ -218,6 +219,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Codec ( hospitalCodec, parseHospitalEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Domain where import Data.Proxy (Proxy (..))
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.EventStream ( hospitalCategory , hospitalCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Harness (harnessAssertions) where import Generated.TransferRouting.Hospital.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Transducer ( hospitalTransducer , hospitalFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.QueryContract ( HospitalLoadQueryInput , HospitalLoadQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.ReadModel ( hospitalLoadReadModel , hospitalLoadQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.TransferRouting.HospitalLoad.ReadModel (hospitalLoadReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.ReadModelTable (hospitalLoadQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from router HospitalTransferRouter; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from router HospitalTransferRouter; do not edit. module Generated.TransferRouting.HospitalTransferRouter.Router ( hospitalTransferRouterName , hospitalTransferRouterWorkerOptions
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from router HospitalTransferRouter; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from router HospitalTransferRouter; do not edit. module Generated.TransferRouting.HospitalTransferRouter.RouterHarness (routerHarnessValues) where routerHarnessValues :: [(String, String)]
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context transfer-routing inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context transfer-routing inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from projection-catalog transfer-routing; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from projection-catalog transfer-routing; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.TransferRouting.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context transfer-routing replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context transfer-routing replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural HospitalLoadRow; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural HospitalLoadRow; do not edit. module Generated.TransferRouting.Structural.Shape.HospitalLoadRow (HospitalLoadRowShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural TransferRouteInput; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural TransferRouteInput; do not edit. module Generated.TransferRouting.Structural.Shape.TransferRouteInput (TransferRouteInputShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context transfer-routing structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context transfer-routing structural conformance; do not edit. module Generated.TransferRouting.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context transfer-routing mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context transfer-routing mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel accepted_transfer_needs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel accepted_transfer_needs; do not edit. module Generated.HospitalCapacity.AcceptedTransferNeeds.ReadModel ( acceptedTransferNeedsReadModel , acceptedTransferNeedsQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel accepted_transfer_needs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel accepted_transfer_needs; do not edit. module Generated.HospitalCapacity.AcceptedTransferNeeds.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts) where import Generated.HospitalCapacity.AcceptedTransferNeeds.ReadModel (acceptedTransferNeedsReadModel, acceptedTransferNeedsAsyncProjection)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel accepted_transfer_needs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel accepted_transfer_needs; do not edit. module Generated.HospitalCapacity.AcceptedTransferNeeds.ReadModelTable (acceptedTransferNeedsQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from workqueue reservation_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from workqueue reservation_work; do not edit. module Generated.HospitalCapacity.ReservationWork.Queue ( ReservationWorkItem (..) , encodeReservationWorkItem
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from workqueue reservation_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from workqueue reservation_work; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from workqueue reservation_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from workqueue reservation_work; do not edit. module Generated.HospitalCapacity.ReservationWork.QueuePolicy ( ReservationWorkOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel transfer_decisions; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel transfer_decisions; do not edit. module Generated.HospitalCapacity.TransferDecisions.ReadModel ( transferDecisionsReadModel , transferDecisionsQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel transfer_decisions; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel transfer_decisions; do not edit. module Generated.HospitalCapacity.TransferDecisions.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts) where import Generated.HospitalCapacity.TransferDecisions.ReadModel (transferDecisionsReadModel, transferDecisionsAsyncProjection)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel transfer_decisions; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel transfer_decisions; do not edit. module Generated.HospitalCapacity.TransferDecisions.ReadModelTable (transferDecisionsQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context domain-outcomes behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context domain-outcomes behavior source map; do not edit. module Generated.DomainOutcomes.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context domain-outcomes inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context domain-outcomes inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,5 +1,5 @@ {-# LANGUAGE DeriveAnyClass #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context domain-outcomes generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context domain-outcomes generated nominal declarations; do not edit. module Generated.DomainOutcomes.Nominals where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context domain-outcomes replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context domain-outcomes replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.DomainOutcomes.Reservation.Codec (encodeReservationEvent, parseReservationEvent, reservationCodec)@@ -235,6 +236,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.Codec ( reservationCodec, parseReservationEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.Domain where import Data.Proxy (Proxy (..))
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.EventStream ( reservationCategory , reservationCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.Harness (harnessAssertions) where import Generated.DomainOutcomes.Reservation.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from aggregate Reservation; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from aggregate Reservation; do not edit. module Generated.DomainOutcomes.Reservation.Transducer ( reservationTransducer , reservationFoldFingerprint
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.HistoryDependentHoles.Assignment.Codec (encodeAssignmentEvent, parseAssignmentEvent, assignmentCodec)@@ -242,6 +243,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.Codec ( assignmentCodec, parseAssignmentEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.Domain where import Data.Proxy (Proxy (..))
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.EventStream ( assignmentCategory , assignmentCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.Harness (harnessAssertions) where import Generated.HistoryDependentHoles.Assignment.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Assignment; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Assignment; do not edit. module Generated.HistoryDependentHoles.Assignment.Transducer ( assignmentTransducer , assignmentFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context history-dependent-holes behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context history-dependent-holes behavior source map; do not edit. module Generated.HistoryDependentHoles.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context history-dependent-holes inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context history-dependent-holes inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context history-dependent-holes replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context history-dependent-holes replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context history-dependent-holes structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context history-dependent-holes structural conformance; do not edit. module Generated.HistoryDependentHoles.StructuralConformance ( structuralConformanceAssertions ) where
@@ -9,9 +9,14 @@ import Keiki.Core qualified as K import System.Exit (exitFailure) import Control.Monad (unless)+import TopologyMachineProof (proveTopologyMachines, topologyMachineProofLine, walkMachine) main :: IO () main = do+ -- Hole-bodied transitions: the edges stay generated even though their+ -- bodies are hand-written, so the exported machine must still match keiki.+ proof <- proveTopologyMachines "test/fixtures/history-dependent-holes.keiro" [] [walkMachine "Assignment" assignmentTransducer]+ putStrLn (topologyMachineProofLine proof) mapM_ printRow harnessAssertions TIO.putStr (renderBehaviorConformanceText report) mapM_ printRow directAssertions
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains behavior source map; do not edit. module Generated.IdAdmissionDomains.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from contract identities; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract identities; do not edit. module Generated.IdAdmissionDomains.Identities.Contract ( IdentitiesPayload (..) , IdentityLinkedData (..)
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.IdAdmissionDomains.IdentityLedger.Codec (encodeIdentityLedgerEvent, parseIdentityLedgerEvent, identityLedgerCodec)@@ -230,6 +231,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.Codec ( identityLedgerCodec, parseIdentityLedgerEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.Domain where import Data.Proxy (Proxy (..))
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.EventStream ( identityLedgerCategory , identityLedgerCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.Harness (harnessAssertions) where import Generated.IdAdmissionDomains.IdentityLedger.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate IdentityLedger; do not edit. module Generated.IdAdmissionDomains.IdentityLedger.Transducer ( identityLedgerTransducer , identityLedgerFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue identity_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue identity_work; do not edit. module Generated.IdAdmissionDomains.IdentityWork.Queue ( IdentityWork (..) , encodeIdentityWork
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue identity_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue identity_work; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue identity_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue identity_work; do not edit. module Generated.IdAdmissionDomains.IdentityWork.QueuePolicy ( IdentityWorkOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains generated nominal declarations; do not edit. module Generated.IdAdmissionDomains.Nominals ( LegacyId , parseLegacyId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains generated nominal ID internals; do not edit. module Generated.IdAdmissionDomains.Nominals.Internal ( LegacyId , parseLegacyId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains structural nominal leaves; do not edit. module Generated.IdAdmissionDomains.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural IdentityEnvelope; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural IdentityEnvelope; do not edit. module Generated.IdAdmissionDomains.Structural.Shape.IdentityEnvelope (IdentityEnvelopeShape (..)) where import Data.Map.Strict (Map)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains structural conformance; do not edit. module Generated.IdAdmissionDomains.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context id-admission-domains mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context id-admission-domains mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from context id-domain-migration behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from context id-domain-migration behavior source map; do not edit. module Generated.IdDomainMigration.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from context id-domain-migration inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from context id-domain-migration inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from context id-domain-migration generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from context id-domain-migration generated nominal declarations; do not edit. module Generated.IdDomainMigration.Nominals ( OrderId , parseOrderId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from context id-domain-migration generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from context id-domain-migration generated nominal ID internals; do not edit. module Generated.IdDomainMigration.Nominals.Internal ( OrderId , parseOrderId
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.IdDomainMigration.OrderBook.Codec (encodeOrderBookEvent, parseOrderBookEvent, orderBookCodec)@@ -218,6 +219,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.Codec ( orderBookCodec, parseOrderBookEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.EventStream ( orderBookCategory , orderBookCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.Harness (harnessAssertions) where import Generated.IdDomainMigration.OrderBook.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from aggregate OrderBook; do not edit. module Generated.IdDomainMigration.OrderBook.Transducer ( orderBookTransducer , orderBookFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 3) from context id-domain-migration replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 3) from context id-domain-migration replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context import-planning-collisions behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context import-planning-collisions behavior source map; do not edit. module Generated.ImportPlanningCollisions.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -17,6 +17,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.ImportPlanningCollisions.CollisionLedger.Codec (encodeCollisionLedgerEvent, parseCollisionLedgerEvent, collisionLedgerCodec)@@ -217,6 +218,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.Codec ( collisionLedgerCodec, parseCollisionLedgerEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.Domain where import GHC.Generics (Generic)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.EventStream ( collisionLedgerCategory , collisionLedgerCommandCategory
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.Harness (harnessAssertions) where import Generated.ImportPlanningCollisions.CollisionLedger.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate CollisionLedger; do not edit. module Generated.ImportPlanningCollisions.CollisionLedger.Transducer ( collisionLedgerTransducer , collisionLedgerFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context import-planning-collisions inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context import-planning-collisions inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context import-planning-collisions nominal scalar projection facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context import-planning-collisions nominal scalar projection facade; do not edit. module Generated.ImportPlanningCollisions.NominalProjections where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context import-planning-collisions replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context import-planning-collisions replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from mapped structural Details; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from mapped structural Details; do not edit. module Generated.ImportPlanningCollisions.Structural.Shape.Details (DetailsShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context import-planning-collisions structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context import-planning-collisions structural conformance; do not edit. module Generated.ImportPlanningCollisions.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context import-planning-collisions mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context import-planning-collisions mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -0,0 +1,129 @@+-- HAND-FILLED delegated integration: the generated runner fixes the intake+-- policy, and this module supplies the downstream handler. A delivery status+-- never moves backwards, so recording an outcome on a delivered stream is a+-- replay-stable typed no-op. 'delegatedDomainCommand' acknowledges that no-op+-- with a completed inbox row; an accepted outcome is acknowledged by its+-- marker event. Any adapter failure leaves 'DelegatedOutcome' through the+-- outer 'Error' effect, so it is never acknowledged.+module DeliveryOutcomes.DeliveryOutcomeInbox.DelegatedIntegration+ ( DeliveryIntakeFailure (..),+ DeliveryResult,+ consumerName,+ recordOutcomeOperation,+ deliveryTarget,+ runDeliveryOutcomeInbox,+ typedDeliveryHandler,+ untypedDeliveryHandler,+ )+where++import Data.Aeson (eitherDecodeStrict)+import Data.Text (Text)+import Data.Text qualified as Text+import Effectful (Eff, IOE, (:>))+import Effectful.Error.Static (Error, throwError)+import Generated.DeliveryOutcomes.Courier.Contract (CourierPayload (..), DeliveryOutcomeReportedData (..), parseCourierPayload)+import Generated.DeliveryOutcomes.DeliveryOutcomeInbox.Inbox (runInboxIntake)+import Generated.DeliveryOutcomes.DeliveryStatus.Domain (DeliveryStatusCommand (..), DeliveryStatusEvent, RecordOutcomeData (..))+import Generated.DeliveryOutcomes.DeliveryStatus.EventStream+ ( DeliveryStatusEventStreamDef,+ deliveryStatusCategory,+ deliveryStatusDomainCommandHandler,+ )+import Generated.DeliveryOutcomes.Nominals (DeliveryNoOp, DeliveryRejection)+import Keiro.Command (CommandResult, defaultRunCommandOptions, forgetDomainDecision, runDomainCommand)+import Keiro.Inbox.Delegated+ ( DelegatedCommandError,+ DelegatedDomainCommandError,+ DelegatedDomainResult,+ DelegatedNoOpReceipt (..),+ delegatedCommand,+ delegatedDomainCommand,+ delegatedEventId,+ )+import Keiro.Inbox.Types (DelegatedOutcome, InboxError, InboxPersistence (..), InboxResult, KafkaDeliveryRef)+import Keiro.Integration.Event (IntegrationEvent (..))+import Keiro.Stream (Stream, entityStream, streamName)+import Kiroku.Store.Effect (Store)+import Kiroku.Store.Error (StoreError)++-- | Why the handler refused to acknowledge a delivery. The typed rejection+-- payload stays inside this value and is never rendered into logs.+data DeliveryIntakeFailure+ = UndecodablePayload !Text+ | TypedAdapterFailed !(DelegatedDomainCommandError DeliveryRejection)+ | UntypedAdapterFailed !DelegatedCommandError+ deriving stock (Eq, Show)++type DeliveryResult = DelegatedDomainResult DeliveryStatusEventStreamDef DeliveryStatusEvent DeliveryNoOp++consumerName :: Text+consumerName = "delivery-reputation"++recordOutcomeOperation :: Text+recordOutcomeOperation = "record-outcome"++deliveryTarget :: Text -> Stream DeliveryStatusEventStreamDef+deliveryTarget = entityStream deliveryStatusCategory++runDeliveryOutcomeInbox ::+ (IOE :> es) =>+ IntegrationEvent ->+ Maybe KafkaDeliveryRef ->+ (Text -> IntegrationEvent -> Eff es (DelegatedOutcome a)) ->+ Eff es (Either InboxError (InboxResult a))+runDeliveryOutcomeInbox = runInboxIntake Nothing++-- | The production handler: decode the payload and run the typed command+-- through 'delegatedDomainCommand'. @beforeDispatch@ lets the test count+-- downstream dispatches.+typedDeliveryHandler ::+ (IOE :> es, Store :> es, Error StoreError :> es, Error DeliveryIntakeFailure :> es) =>+ Eff es () ->+ Maybe KafkaDeliveryRef ->+ Text ->+ IntegrationEvent ->+ Eff es (DelegatedOutcome DeliveryResult)+typedDeliveryHandler beforeDispatch kafka dedupe event = do+ report <- decodeReport event+ let target = deliveryTarget report.deliveryId+ receipt =+ DelegatedNoOpReceipt+ { consumer = consumerName,+ operation = recordOutcomeOperation,+ dedupeKey = dedupe,+ event,+ kafka,+ persistence = PersistFullEnvelope+ }+ outcome <-+ delegatedDomainCommand receipt defaultRunCommandOptions (streamName target) $ \prepared -> do+ beforeDispatch+ runDomainCommand prepared deliveryStatusDomainCommandHandler target (RecordOutcome (RecordOutcomeData report.outcome))+ either (throwError . TypedAdapterFailed) pure outcome++-- | The historical adapter with the typed decision erased. A silent edge is+-- indistinguishable from an unexplained zero-event success, so it is refused.+untypedDeliveryHandler ::+ (IOE :> es, Store :> es, Error StoreError :> es, Error DeliveryIntakeFailure :> es) =>+ Text ->+ IntegrationEvent ->+ Eff es (DelegatedOutcome (CommandResult DeliveryStatusEventStreamDef))+untypedDeliveryHandler dedupe event = do+ report <- decodeReport event+ let target = deliveryTarget report.deliveryId+ marker = delegatedEventId consumerName event.source dedupe (streamName target) recordOutcomeOperation+ outcome <-+ delegatedCommand defaultRunCommandOptions (streamName target) marker $ \prepared ->+ fmap forgetDomainDecision+ <$> runDomainCommand prepared deliveryStatusDomainCommandHandler target (RecordOutcome (RecordOutcomeData report.outcome))+ either (throwError . UntypedAdapterFailed) pure outcome++decodeReport :: (Error DeliveryIntakeFailure :> es) => IntegrationEvent -> Eff es DeliveryOutcomeReportedData+decodeReport event =+ case eitherDecodeStrict event.payloadBytes of+ Left err -> throwError (UndecodablePayload (Text.pack err))+ Right value -> case parseCourierPayload value of+ Left err -> throwError (UndecodablePayload err)+ Right (DeliveryOutcomeReported report) -> pure report+
@@ -0,0 +1,20 @@+-- Consumer-owned behavioral witnesses. Created once; never overwritten.+module DeliveryOutcomes.DeliveryStatus.BehaviorHoles (behaviorWitnesses) where++import Data.List.NonEmpty (NonEmpty (..))+import Data.Text (Text)+import Generated.DeliveryOutcomes.DeliveryStatus.BehaviorContract+import Generated.DeliveryOutcomes.DeliveryStatus.Domain+import Generated.DeliveryOutcomes.Nominals (DeliveryNoOp (..))++behaviorWitnesses :: [BehaviorWitness]+behaviorWitnesses =+ [ LiveWitness (BehaviorKey "behavior-v1-ac132150262d872a") [] (recordOutcome "delivered") (Emits (outcomeRecorded "delivered" :| [])),+ LiveWitness (BehaviorKey "behavior-v1-ac37ab6d84cb0fa7") [outcomeRecorded "delivered"] (recordOutcome "failed") (NoOpWith AlreadyFinal)+ ]++recordOutcome :: Text -> DeliveryStatusCommand+recordOutcome value = RecordOutcome (RecordOutcomeData value)++outcomeRecorded :: Text -> DeliveryStatusEvent+outcomeRecorded value = OutcomeRecorded (OutcomeRecordedData value)
@@ -0,0 +1,30 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context delivery-outcomes behavior source map; do not edit.+module Generated.DeliveryOutcomes.BehaviorSourceMap+ ( BehaviorSourceLocation (..)+ , behaviorSourceLocation+ , renderBehaviorSourceLocation+ ) where++import Data.Text (Text)+import Data.Text qualified as T++data BehaviorSourceLocation = BehaviorSourceLocation+ { file :: !FilePath+ , line :: !Int+ , column :: !Int+ }+ deriving stock (Eq, Ord, Show)++behaviorSourceLocation :: Text -> Maybe BehaviorSourceLocation+behaviorSourceLocation key = case key of+ "behavior-v1-ac132150262d872a" -> Just (BehaviorSourceLocation "keiro-dsl/test/fixtures/intake-delegated-noop.keiro" 64 3)+ "behavior-v1-ac37ab6d84cb0fa7" -> Just (BehaviorSourceLocation "keiro-dsl/test/fixtures/intake-delegated-noop.keiro" 70 3)+ _ -> Nothing++renderBehaviorSourceLocation :: Text -> Text+renderBehaviorSourceLocation key = case behaviorSourceLocation key of+ Just location -> T.pack location.file <> ":" <> tshow location.line <> ":" <> tshow location.column+ Nothing -> "<internal invariant: missing behavior source for " <> key <> ">"++tshow :: Show value => value -> Text+tshow = T.pack . show
@@ -0,0 +1,60 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract courier; do not edit.+module Generated.DeliveryOutcomes.Courier.Contract+ ( CourierPayload (..)+ , DeliveryOutcomeReportedData (..)+ , deliveryEventsTopic+ , messageTypeOf+ , encodeCourierPayload+ , parseCourierPayload+ ) where++import Data.Aeson (Value, object, withObject, withText, (.:), (.=))+import Data.Aeson.Types (Parser, explicitParseField, parseEither)+import Data.Text (Text)+import qualified Data.Text as T++-- topic constants+deliveryEventsTopic :: Text+deliveryEventsTopic = "courier.delivery.events"++-- the closed payload set (discriminated by "messageType")+data DeliveryOutcomeReportedData = DeliveryOutcomeReportedData { deliveryId :: !Text, outcome :: !Text }+ deriving stock (Eq, Show)++data CourierPayload = DeliveryOutcomeReported !DeliveryOutcomeReportedData+ deriving stock (Eq, Show)++messageTypeOf :: CourierPayload -> Text+messageTypeOf = \case+ DeliveryOutcomeReported {} -> "DeliveryOutcomeReported"++encodeCourierPayload :: CourierPayload -> Value+encodeCourierPayload = \case+ DeliveryOutcomeReported payload ->+ object+ [ "messageType" .= ("DeliveryOutcomeReported" :: Text)+ , "deliveryId" .= payload.deliveryId+ , "outcome" .= payload.outcome+ ]++parseCourierPayload :: Value -> Either Text CourierPayload+parseCourierPayload = mapLeftText . parseEither (withObject "CourierPayload" go)+ where+ go o = do+ kind <- explicitParseField (withText "messageType" validateMessageType) o "messageType"+ case kind of+ "DeliveryOutcomeReported" ->+ DeliveryOutcomeReported+ <$> ( DeliveryOutcomeReportedData+ <$> o .: "deliveryId"+ <*> o .: "outcome"+ )+ _ -> fail "validated message type was not handled"++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++validateMessageType :: Text -> Parser Text+validateMessageType kind+ | kind `elem` ["DeliveryOutcomeReported"] = pure kind+ | otherwise = fail ("unknown message type " <> show kind <> "; expected one of: DeliveryOutcomeReported")
@@ -0,0 +1,93 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from intake deliveryOutcomeInbox; do not edit.+module Generated.DeliveryOutcomes.DeliveryOutcomeInbox.Inbox+ ( InboxFailure (..)+ , DeliveryOutcomeInboxOutcome (..)+ , DeliveryOutcomeInboxDisposition (..)+ , inboxDedupePolicy+ , inboxIdempotence+ , runInboxIntake+ , inboxDispositionFor+ , inboxDisposition+ ) where++import Data.Text (Text)+import Effectful (Eff, IOE, (:>))+import Keiro.Inbox (runInboxDelegated)+import Keiro.Inbox.Types (DelegatedOutcome, InboxDedupePolicy (..), InboxError, InboxIdempotence (..), InboxResult (..), KafkaDeliveryRef, RetryDelay (..))+import Keiro.Integration.Event (IntegrationEvent)+import Keiro.Telemetry (KeiroMetrics)++-- The dedupe policy (hole-kind 4), lowered to the live InboxDedupePolicy.+inboxDedupePolicy :: InboxDedupePolicy+inboxDedupePolicy = PreferIntegrationMessageId++-- | The downstream state machine owns the durable dedupe receipt.+inboxIdempotence :: InboxIdempotence+inboxIdempotence = IdempotenceDelegated++-- | Run this intake without reading or writing the Keiro inbox table.+runInboxIntake ::+ IOE :> es =>+ Maybe KeiroMetrics ->+ IntegrationEvent ->+ Maybe KafkaDeliveryRef ->+ (Text -> IntegrationEvent -> Eff es (DelegatedOutcome a)) ->+ Eff es (Either InboxError (InboxResult a))+runInboxIntake metrics event delivery =+ runInboxDelegated metrics inboxDedupePolicy event delivery++-- Runtime failure detail retained when the inbox wrapper reports a failed handler attempt.+data InboxFailure = InboxFailure+ { reason :: !Text+ , attempt :: !(Maybe Int)+ }+ deriving stock (Eq, Show)++-- Every classification named by the spec. Keeping this closed makes the+-- generated table exhaustive and gives handler holes typed inputs.+data DeliveryOutcomeInboxOutcome+ = DeliveryOutcomeInboxProcessed+ | DeliveryOutcomeInboxDuplicate+ | DeliveryOutcomeInboxInProgress+ | DeliveryOutcomeInboxPreviouslyFailed+ | DeliveryOutcomeInboxDecodeFailed+ | DeliveryOutcomeInboxDedupeFailed+ | DeliveryOutcomeInboxStoreFailed+ deriving stock (Eq, Show)++-- The service's declared acknowledgement decision, including its details.+data DeliveryOutcomeInboxDisposition+ = InboxAccept+ | InboxRetryAfter !RetryDelay !(Maybe InboxFailure)+ | InboxDeadLetter !(Maybe Text) !(Maybe InboxFailure)+ deriving stock (Eq, Show)++-- The complete disposition table (hole-kind 2).+inboxDispositionFor :: DeliveryOutcomeInboxOutcome -> DeliveryOutcomeInboxDisposition+inboxDispositionFor outcome = case outcome of+ DeliveryOutcomeInboxProcessed -> InboxAccept+ DeliveryOutcomeInboxDuplicate -> InboxAccept+ DeliveryOutcomeInboxInProgress -> InboxRetryAfter (RetryDelay 5) Nothing+ DeliveryOutcomeInboxPreviouslyFailed -> InboxDeadLetter (Just "previous inbox failure") Nothing+ DeliveryOutcomeInboxDecodeFailed -> InboxDeadLetter Nothing Nothing+ DeliveryOutcomeInboxDedupeFailed -> InboxDeadLetter Nothing Nothing+ DeliveryOutcomeInboxStoreFailed -> InboxRetryAfter (RetryDelay 5) Nothing++-- Lower the LIVE Keiro.Inbox.Types.InboxResult without an open fallback.+inboxDisposition :: InboxResult a -> DeliveryOutcomeInboxDisposition+inboxDisposition r = case r of+ InboxProcessed _ -> inboxDispositionFor DeliveryOutcomeInboxProcessed+ InboxDuplicate -> inboxDispositionFor DeliveryOutcomeInboxDuplicate+ InboxInProgress -> inboxDispositionFor DeliveryOutcomeInboxInProgress+ InboxPreviouslyFailed failureReason ->+ maybe (inboxDispositionFor DeliveryOutcomeInboxPreviouslyFailed)+ (\reason -> attachFailure (InboxFailure reason Nothing) (inboxDispositionFor DeliveryOutcomeInboxPreviouslyFailed))+ failureReason+ InboxHandlerFailed reason attempts ->+ attachFailure (InboxFailure reason (Just attempts)) (inboxDispositionFor DeliveryOutcomeInboxStoreFailed)++attachFailure :: InboxFailure -> DeliveryOutcomeInboxDisposition -> DeliveryOutcomeInboxDisposition+attachFailure failure disposition = case disposition of+ InboxRetryAfter delay _ -> InboxRetryAfter delay (Just failure)+ InboxDeadLetter reason _ -> InboxDeadLetter reason (Just failure)+ InboxAccept -> InboxAccept
@@ -0,0 +1,416 @@+{-# LANGUAGE OverloadedLabels #-}+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.BehaviorContract+ ( BehaviorKey (..)+ , unBehaviorKey+ , ObligationKind (..)+ , EvidenceLevel (..)+ , GuardCoverage (..)+ , BehaviorRequirement (..)+ , RejectionClass (..)+ , LiveExpectation (..)+ , BehaviorWitness (..)+ , BehaviorFailure (..)+ , BehaviorConformanceReport (..)+ , behaviorRequirements+ , behaviorCoverageReport+ , behaviorObligationReport+ , behaviorConformancePassed+ , behaviorConformancePassedWith+ , renderBehaviorConformanceText+ , behaviorConformanceRows+ ) where++import Generated.DeliveryOutcomes.DeliveryStatus.Codec (encodeDeliveryStatusEvent, parseDeliveryStatusEvent, deliveryStatusCodec)+import Generated.DeliveryOutcomes.DeliveryStatus.Domain+import Generated.DeliveryOutcomes.DeliveryStatus.Transducer (deliveryStatusTransducer)+import Generated.DeliveryOutcomes.BehaviorSourceMap qualified as BehaviorSourceMap+import Generated.DeliveryOutcomes.DeliveryStatus.EventStream (deliveryStatusDomainCommandHandler)+import Generated.DeliveryOutcomes.Nominals (DeliveryNoOp, DeliveryRejection)+import Keiro.Command (DomainCommandHandler (..), SilentCommandContext (..), SilentDomainDecision (..))+import Data.Aeson (ToJSON (..), object, (.=))+import Data.List (sortOn)+import Data.List.NonEmpty (NonEmpty)+import Data.List.NonEmpty qualified as NonEmpty+import Data.Map.Strict qualified as Map+import Data.Text (Text)+import Data.Text qualified as T+import Keiki.Core qualified as K (EdgeMode (..), EdgeRef (..), RegFile, ReplayAttribution (..), ReplayEventSpan (..), ReplaySuccess (..), StepFailure (..), StepSuccess (..), applyEventsDetailedEither, stepDetailedEither, (!))+import Keiro.Codec qualified as Codec (Codec (eventType), EventType (..))++newtype BehaviorKey = BehaviorKey { unBehaviorKey :: Text }+ deriving stock (Eq, Ord, Show)++unBehaviorKey :: BehaviorKey -> Text+unBehaviorKey (BehaviorKey value) = value++data ObligationKind = LiveTransition | RequiredRejection | ReplayTransition+ deriving stock (Eq, Ord, Show)++data EvidenceLevel = GeneratedAuthoritative | HoleWitnessed | LegacyRuntimeWitness+ deriving stock (Eq, Ord, Show)++data GuardCoverage = GuardTotal | GuardPartial | GuardUnknown | GuardNotApplicable+ deriving stock (Eq, Ord, Show)++data BehaviorRequirement = BehaviorRequirement+ { key :: !BehaviorKey+ , kind :: !ObligationKind+ , evidence :: !EvidenceLevel+ , guardCoverage :: !GuardCoverage+ , source :: !DeliveryStatusVertex+ , commandName :: !Text+ , expectedEdge :: !(Maybe (K.EdgeRef DeliveryStatusVertex))+ , target :: !(Maybe DeliveryStatusVertex)+ , eventKinds :: ![Text]+ }+ deriving stock (Eq, Show)++data RejectionClass = RejectNoOutgoingEdges | RejectNoMatchingEdge+ deriving stock (Eq, Show)++data LiveExpectation+ = Emits (NonEmpty DeliveryStatusEvent)+ | Rejects RejectionClass+ | RejectedWith DeliveryRejection+ | NoOpWith DeliveryNoOp+ | NoOp+ deriving stock (Eq, Show)++data BehaviorWitness+ = Pending BehaviorKey+ | LiveWitness+ { key :: BehaviorKey+ , history :: [DeliveryStatusEvent]+ , command :: DeliveryStatusCommand+ , expected :: LiveExpectation+ }+ | ReplayWitness+ { key :: BehaviorKey+ , historyPrefix :: [DeliveryStatusEvent]+ , observedChunk :: [DeliveryStatusEvent]+ }+ deriving stock (Eq, Show)++data BehaviorFailure = BehaviorFailure+ { key :: !BehaviorKey+ , subject :: !Text+ , code :: !Text+ , detail :: !Text+ }+ deriving stock (Eq, Show)++instance ToJSON BehaviorFailure where+ toJSON behaviorFailure = object+ [ "key" .= unBehaviorKey behaviorFailure.key+ , "subject" .= behaviorFailure.subject+ , "code" .= behaviorFailure.code+ , "detail" .= behaviorFailure.detail+ ]++data BehaviorConformanceReport = BehaviorConformanceReport+ { required :: ![BehaviorKey]+ , filled :: ![BehaviorKey]+ , pending :: ![BehaviorKey]+ , missing :: ![BehaviorKey]+ , duplicate :: ![BehaviorKey]+ , stale :: ![BehaviorKey]+ , failed :: ![BehaviorFailure]+ , verified :: ![BehaviorKey]+ , unverified :: ![BehaviorKey]+ }+ deriving stock (Eq, Show)++instance ToJSON BehaviorConformanceReport where+ toJSON report = object+ [ "schema" .= ("keiro/behavior-conformance/1" :: Text)+ , "required" .= keyTexts report.required+ , "filled" .= keyTexts report.filled+ , "pending" .= keyTexts report.pending+ , "missing" .= keyTexts report.missing+ , "duplicate" .= keyTexts report.duplicate+ , "stale" .= keyTexts report.stale+ , "failed" .= report.failed+ , "verified" .= keyTexts report.verified+ , "unverified" .= keyTexts report.unverified+ ]++behaviorRequirements :: [BehaviorRequirement]+behaviorRequirements =+ [ -- DeliveryStatusPending x RecordOutcome: live transition+ BehaviorRequirement+ { key = BehaviorKey "behavior-v1-ac132150262d872a"+ , kind = LiveTransition+ , evidence = GeneratedAuthoritative+ , guardCoverage = GuardTotal+ , source = DeliveryStatusPending+ , commandName = "RecordOutcome"+ , expectedEdge = (Just (K.EdgeRef DeliveryStatusPending 0))+ , target = Just DeliveryStatusDelivered+ , eventKinds = ["OutcomeRecorded"]+ }+ , -- DeliveryStatusDelivered x RecordOutcome: live transition+ BehaviorRequirement+ { key = BehaviorKey "behavior-v1-ac37ab6d84cb0fa7"+ , kind = LiveTransition+ , evidence = GeneratedAuthoritative+ , guardCoverage = GuardTotal+ , source = DeliveryStatusDelivered+ , commandName = "RecordOutcome"+ , expectedEdge = (Just (K.EdgeRef DeliveryStatusDelivered 0))+ , target = Just DeliveryStatusDelivered+ , eventKinds = []+ }+ ]++behaviorCoverageReport :: [BehaviorWitness] -> BehaviorConformanceReport+behaviorCoverageReport = coverageReportFor behaviorRequirements++-- | Execute one required obligation and the witnesses carrying its key.+-- Hole-owned initial harness probes use the consumer's history-backed evidence.+behaviorObligationReport :: BehaviorKey -> [BehaviorWitness] -> BehaviorConformanceReport+behaviorObligationReport key witnesses =+ coverageReportFor+ [requirement | requirement <- behaviorRequirements, requirement.key == key]+ [witness | witness <- witnesses, behaviorWitnessKey witness == key]++coverageReportFor :: [BehaviorRequirement] -> [BehaviorWitness] -> BehaviorConformanceReport+coverageReportFor requirements witnesses =+ BehaviorConformanceReport+ { required = sortedKeys (Map.keys requiredByKey)+ , filled = sortedKeys [key | (key, [witness]) <- Map.toList witnessGroups, Map.member key requiredByKey, not (isPending witness)]+ , pending = sortedKeys [key | (key, rows) <- Map.toList witnessGroups, Map.member key requiredByKey, any isPending rows]+ , missing = sortedKeys [key | key <- Map.keys requiredByKey, Map.notMember key witnessGroups]+ , duplicate = sortedKeys [key | (key, rows) <- Map.toList witnessGroups, length rows > 1]+ , stale = sortedKeys [key | key <- Map.keys witnessGroups, Map.notMember key requiredByKey]+ , failed = sortOn (unBehaviorKey . (.key)) failures+ , verified = sortedKeys [requirement.key | (requirement, Right ()) <- executions, proofStrength requirement]+ , unverified = sortedKeys [requirement.key | (requirement, Right ()) <- executions, not (proofStrength requirement)]+ }+ where+ requiredByKey = Map.fromList [(requirement.key, requirement) | requirement <- requirements]+ witnessGroups = Map.fromListWith (flip (<>)) [(behaviorWitnessKey witness, [witness]) | witness <- witnesses]+ executions =+ [ (requirement, runWitness requirement witness)+ | (key, [witness]) <- Map.toList witnessGroups+ , not (isPending witness)+ , Just requirement <- [Map.lookup key requiredByKey]+ ]+ failures = [behaviorFailure | (_, Left behaviorFailure) <- executions]++behaviorConformancePassed :: BehaviorConformanceReport -> Bool+behaviorConformancePassed = behaviorConformancePassedWith False++behaviorConformancePassedWith :: Bool -> BehaviorConformanceReport -> Bool+behaviorConformancePassedWith failOnUnverified report =+ null report.pending+ && null report.missing+ && null report.duplicate+ && null report.stale+ && null report.failed+ && (not failOnUnverified || null report.unverified)++renderBehaviorConformanceText :: BehaviorConformanceReport -> Text+renderBehaviorConformanceText report = T.unlines+ [ "behavior conformance: DeliveryStatus"+ , "schema: keiro/behavior-conformance/1"+ , countLine "required" report.required+ , countLine "filled" report.filled+ , countLine "pending" report.pending+ , countLine "missing" report.missing+ , countLine "duplicate" report.duplicate+ , countLine "stale" report.stale+ , "failed: " <> tshow (length report.failed)+ , countLine "verified" report.verified+ , countLine "unverified" report.unverified+ ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values)++runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure ()+runWitness requirement witness = case witness of+ Pending _ -> failure requirement "pending" "witness is still Pending"+ LiveWitness _ history command expectation -> runLive requirement history command expectation+ ReplayWitness _ prefix chunk -> runReplay requirement prefix chunk++runLive :: BehaviorRequirement -> [DeliveryStatusEvent] -> DeliveryStatusCommand -> LiveExpectation -> Either BehaviorFailure ()+runLive requirement history command expectation = do+ settled <- settleHistory requirement "history" history+ ensure requirement (K.replaySuccessState settled == requirement.source) "history-wrong-source" "history does not settle at the required source vertex"+ ensure requirement (commandKind command == requirement.commandName) "command-mismatch" "witness command constructor does not match the required state/command cell"+ case requirement.kind of+ ReplayTransition -> failure requirement "witness-kind" "a replay-only requirement needs ReplayWitness"+ RequiredRejection -> runRejection requirement (K.replaySuccessState settled, K.replaySuccessRegs settled) command expectation+ LiveTransition -> runAcceptance requirement (K.replaySuccessState settled, K.replaySuccessRegs settled) command expectation++runRejection :: BehaviorRequirement -> (DeliveryStatusVertex, K.RegFile DeliveryStatusRegs) -> DeliveryStatusCommand -> LiveExpectation -> Either BehaviorFailure ()+runRejection requirement seed command expectation = case expectation of+ Emits _ -> failure requirement "expectation-kind" "a rejection requirement cannot expect emitted events"+ RejectedWith _ -> failure requirement "expectation-kind" "an unmatched-command rejection cannot expect a selected domain rejection"+ NoOpWith _ -> failure requirement "expectation-kind" "an unmatched-command rejection cannot expect a selected domain no-op"+ NoOp -> failure requirement "expectation-kind" "a rejection requirement cannot expect an accepted no-op"+ Rejects expectedClass -> case K.stepDetailedEither deliveryStatusTransducer seed command of+ Left K.NoOutgoingEdges {} -> ensure requirement (expectedClass == RejectNoOutgoingEdges) "rejection-class" "expected NoMatchingEdge but runtime returned NoOutgoingEdges"+ Left K.NoMatchingEdge {} -> ensure requirement (expectedClass == RejectNoMatchingEdge) "rejection-class" "expected NoOutgoingEdges but runtime returned NoMatchingEdge"+ Left K.AmbiguousEdges {} -> failure requirement "ambiguous-edges" "AmbiguousEdges can never satisfy a rejection witness"+ Right _ -> failure requirement "unexpected-acceptance" "runtime accepted a command required to reject"++runAcceptance :: BehaviorRequirement -> (DeliveryStatusVertex, K.RegFile DeliveryStatusRegs) -> DeliveryStatusCommand -> LiveExpectation -> Either BehaviorFailure ()+runAcceptance requirement seed command expectation = case expectation of+ Rejects _ -> failure requirement "expectation-kind" "a live-transition requirement needs Emits or NoOp"+ RejectedWith expectedReason -> do+ decision <- runSilentDecision requirement seed command+ case decision of+ SilentRejected actualReason -> ensure requirement (actualReason == expectedReason) "domain-rejection-reason" ("selected rejection reason differs; actual=" <> tshow actualReason <> " expected=" <> tshow expectedReason)+ SilentNoOp actualReason -> failure requirement "domain-outcome-kind" ("expected a selected rejection but classifier returned no-op " <> tshow actualReason)+ NoOpWith expectedReason -> do+ decision <- runSilentDecision requirement seed command+ case decision of+ SilentRejected actualReason -> failure requirement "domain-outcome-kind" ("expected a selected no-op but classifier returned rejection " <> tshow actualReason)+ SilentNoOp actualReason -> ensure requirement (actualReason == expectedReason) "domain-noop-reason" ("selected no-op reason differs; actual=" <> tshow actualReason <> " expected=" <> tshow expectedReason)+ NoOp -> failure requirement "expectation-kind" "an outcome-enabled transition requires RejectedWith or NoOpWith exact reason evidence"+ Emits expectedEvents -> case K.stepDetailedEither deliveryStatusTransducer seed command of+ Left stepFailure -> failure requirement "unexpected-rejection" (tshow stepFailure)+ Right success -> do+ checkAcceptedEnvelope requirement success+ let expected = NonEmpty.toList expectedEvents+ actual = K.stepSuccessOutputs success+ ensure requirement (actual == expected) "event-value-mismatch" ("runtime event values differ from the exact witness expectation; actual=" <> tshow actual <> " expected=" <> tshow expected)+ ensure requirement (map eventKind actual == requirement.eventKinds) "event-envelope-mismatch" ("runtime event kinds differ from the declared ordered envelope; actual=" <> tshow (map eventKind actual) <> " expected=" <> tshow requirement.eventKinds)+ decoded <- either (failure requirement "emitted-codec-decode") Right (decodeEvents actual)+ replayed <- case K.applyEventsDetailedEither deliveryStatusTransducer seed decoded of+ Left replayFailure -> failure requirement "emitted-replay-failed" (tshow replayFailure)+ Right replaySuccess -> Right replaySuccess+ ensure requirement (K.replaySuccessState replayed == K.stepSuccessState success) "forward-replay-vertex" "decoded emissions replay to a different vertex"+ ensure requirement (regsEqual (K.replaySuccessRegs replayed) (K.stepSuccessRegs success)) "forward-replay-registers" "decoded emissions replay to different registers"+ checkSingleAttribution requirement K.Live (length decoded) (K.replaySuccessTrace replayed)++runSilentDecision+ :: BehaviorRequirement+ -> (DeliveryStatusVertex, K.RegFile DeliveryStatusRegs)+ -> DeliveryStatusCommand+ -> Either BehaviorFailure (SilentDomainDecision DeliveryRejection DeliveryNoOp)+runSilentDecision requirement seed command = case K.stepDetailedEither deliveryStatusTransducer seed command of+ Left stepFailure -> failure requirement "unexpected-rejection" (tshow stepFailure)+ Right success -> do+ checkAcceptedEnvelope requirement success+ ensure requirement (null (K.stepSuccessOutputs success)) "silent-emitted" "typed silent outcome emitted one or more events"+ ensure requirement (K.stepSuccessState success == fst seed) "silent-vertex-change" "typed silent outcome changed the control vertex"+ ensure requirement (regsEqual (K.stepSuccessRegs success) (snd seed)) "silent-register-change" "typed silent outcome changed one or more registers"+ case deliveryStatusDomainCommandHandler of+ DomainCommandHandler _ classify ->+ Right (classify (SilentCommandContext (fst seed) (snd seed) command (K.stepSuccessEdge success)))++checkAcceptedEnvelope :: BehaviorRequirement -> K.StepSuccess DeliveryStatusRegs DeliveryStatusVertex DeliveryStatusEvent -> Either BehaviorFailure ()+checkAcceptedEnvelope requirement success = do+ ensure requirement (K.stepSuccessMode success == K.Live) "forward-mode" ("forward execution selected a non-live edge; actual=" <> tshow (K.stepSuccessMode success) <> " expected=" <> tshow K.Live)+ ensure requirement (Just (K.stepSuccessEdge success) == requirement.expectedEdge) "edge-attribution" ("runtime selected a different guarded sibling; actual=" <> tshow (Just (K.stepSuccessEdge success)) <> " expected=" <> tshow requirement.expectedEdge)+ ensure requirement (Just (K.stepSuccessState success) == requirement.target) "target-mismatch" ("runtime reached a different target vertex; actual=" <> tshow (Just (K.stepSuccessState success)) <> " expected=" <> tshow requirement.target)++runReplay :: BehaviorRequirement -> [DeliveryStatusEvent] -> [DeliveryStatusEvent] -> Either BehaviorFailure ()+runReplay requirement prefix chunk = case requirement.kind of+ ReplayTransition -> do+ settled <- settleHistory requirement "history-prefix" prefix+ ensure requirement (K.replaySuccessState settled == requirement.source) "history-wrong-source" "history prefix does not settle at the replay edge source"+ ensure requirement (not (null chunk)) "empty-replay-chunk" "a replay-only edge has no observable empty chunk"+ decoded <- either (failure requirement "replay-chunk-codec-decode") Right (decodeEvents chunk)+ replayed <- case K.applyEventsDetailedEither deliveryStatusTransducer (K.replaySuccessState settled, K.replaySuccessRegs settled) decoded of+ Left replayFailure -> failure requirement "replay-chunk-failed" (tshow replayFailure)+ Right replaySuccess -> Right replaySuccess+ ensure requirement (Just (K.replaySuccessState replayed) == requirement.target) "target-mismatch" ("replay chunk reached a different target vertex; actual=" <> tshow (Just (K.replaySuccessState replayed)) <> " expected=" <> tshow requirement.target)+ checkSingleAttribution requirement K.ReplayOnly (length decoded) (K.replaySuccessTrace replayed)+ _ -> failure requirement "witness-kind" "ReplayWitness supplied for a non-replay requirement"++checkSingleAttribution :: BehaviorRequirement -> K.EdgeMode -> Int -> [K.ReplayAttribution DeliveryStatusVertex] -> Either BehaviorFailure ()+checkSingleAttribution requirement expectedMode eventCount trace = case trace of+ [attribution] -> do+ ensure requirement (Just (K.replayAttributionEdge attribution) == requirement.expectedEdge) "replay-edge-attribution" ("replay selected a different edge; actual=" <> tshow (Just (K.replayAttributionEdge attribution)) <> " expected=" <> tshow requirement.expectedEdge)+ ensure requirement (K.replayAttributionMode attribution == expectedMode) "replay-mode-attribution" ("replay selected the wrong live/replay-only phase; actual=" <> tshow (K.replayAttributionMode attribution) <> " expected=" <> tshow expectedMode)+ ensure requirement (K.replayAttributionSource attribution == requirement.source) "replay-source-attribution" ("replay attribution starts at the wrong source; actual=" <> tshow (K.replayAttributionSource attribution) <> " expected=" <> tshow requirement.source)+ ensure requirement (Just (K.replayAttributionTarget attribution) == requirement.target) "replay-target-attribution" ("replay attribution ends at the wrong target; actual=" <> tshow (Just (K.replayAttributionTarget attribution)) <> " expected=" <> tshow requirement.target)+ ensure requirement (K.replayAttributionSpan attribution == K.ReplayEventSpan 0 eventCount) "replay-span-attribution" ("replay attribution did not consume the exact chunk; actual=" <> tshow (K.replayAttributionSpan attribution) <> " expected=" <> tshow (K.ReplayEventSpan 0 eventCount))+ _ -> failure requirement "replay-trace-cardinality" "expected exactly one completed-edge attribution"++settleHistory :: BehaviorRequirement -> Text -> [DeliveryStatusEvent] -> Either BehaviorFailure (K.ReplaySuccess DeliveryStatusRegs DeliveryStatusVertex)+settleHistory requirement label history = do+ decoded <- either (failure requirement (label <> "-codec-decode")) Right (decodeEvents history)+ case K.applyEventsDetailedEither deliveryStatusTransducer (DeliveryStatusPending, initialDeliveryStatusRegs) decoded of+ Left replayFailure -> failure requirement (label <> "-replay-failed") (tshow replayFailure)+ Right replaySuccess -> Right replaySuccess++decodeEvents :: [DeliveryStatusEvent] -> Either Text [DeliveryStatusEvent]+decodeEvents = traverse (\event -> parseDeliveryStatusEvent (Codec.eventType deliveryStatusCodec event) (encodeDeliveryStatusEvent event))++commandKind :: DeliveryStatusCommand -> Text+commandKind command = case command of+ RecordOutcome _ -> "RecordOutcome"++eventKind :: DeliveryStatusEvent -> Text+eventKind event = case Codec.eventType deliveryStatusCodec event of Codec.EventType tag -> tag++regsEqual :: K.RegFile DeliveryStatusRegs -> K.RegFile DeliveryStatusRegs -> Bool+regsEqual left right = (left K.! #finalOutcome) == (right K.! #finalOutcome)++proofStrength :: BehaviorRequirement -> Bool+proofStrength requirement =+ requirement.evidence == GeneratedAuthoritative+ && requirement.guardCoverage `elem` [GuardTotal, GuardNotApplicable]++behaviorWitnessKey :: BehaviorWitness -> BehaviorKey+behaviorWitnessKey witness = case witness of+ Pending key -> key+ LiveWitness { key = key } -> key+ ReplayWitness { key = key } -> key++isPending :: BehaviorWitness -> Bool+isPending Pending {} = True+isPending _ = False++ensure :: BehaviorRequirement -> Bool -> Text -> Text -> Either BehaviorFailure ()+ensure requirement condition code detail = if condition then Right () else failure requirement code detail+failure :: BehaviorRequirement -> Text -> Text -> Either BehaviorFailure failed+failure requirement code detail =+ Left+ ( BehaviorFailure+ requirement.key+ (tshow requirement.source <> " x " <> requirement.commandName <> ": " <> kindPhrase <> " (" <> BehaviorSourceMap.renderBehaviorSourceLocation (unBehaviorKey requirement.key) <> ")")+ code+ detail+ )+ where+ kindPhrase = case requirement.kind of+ LiveTransition -> "live transition"+ RequiredRejection -> "required rejection"+ ReplayTransition -> "replay-only transition"+sortedKeys :: [BehaviorKey] -> [BehaviorKey]+sortedKeys = sortOn unBehaviorKey+keyTexts :: [BehaviorKey] -> [Text]+keyTexts = map unBehaviorKey+countLine :: Text -> [BehaviorKey] -> Text+countLine label values = label <> ": " <> tshow (length values)+tshow :: Show value => value -> Text+tshow = T.pack . show
@@ -0,0 +1,64 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.Codec (+ deliveryStatusCodec,+ parseDeliveryStatusEvent,+ encodeDeliveryStatusEvent,+) where++import Generated.DeliveryOutcomes.DeliveryStatus.Domain+import Data.Aeson (Value, object, withObject, (.:), (.=))+import Data.Aeson.Types (parseEither)+import Data.List.NonEmpty (NonEmpty (..))+import Data.List.NonEmpty qualified as NonEmpty+import Data.Text (Text)+import qualified Data.Text as T+import Keiro.Codec (Codec (..), EventType (..))++++++deliveryStatusEventTypes :: NonEmpty EventType+deliveryStatusEventTypes = EventType "OutcomeRecorded" :| []++deliveryStatusCodec :: Codec DeliveryStatusEvent+deliveryStatusCodec =+ Codec+ { eventTypes = deliveryStatusEventTypes+ , eventType = \case+ OutcomeRecorded{} -> EventType "OutcomeRecorded"+ , schemaVersion = 1+ , encode = encodeDeliveryStatusEvent+ , decode = parseDeliveryStatusEvent+ , upcasters = []+ }++encodeDeliveryStatusEvent :: DeliveryStatusEvent -> Value+encodeDeliveryStatusEvent = \case+ OutcomeRecorded payload ->+ object+ [ "kind" .= ("OutcomeRecorded" :: Text)+ , "outcome" .= payload.outcome+ ]++parseDeliveryStatusEvent :: EventType -> Value -> Either Text DeliveryStatusEvent+parseDeliveryStatusEvent (EventType tag) = mapLeftText . parseEither (withObject "DeliveryStatusEvent" go)+ where+ go o = do+ case tag of+ "OutcomeRecorded" ->+ OutcomeRecorded+ <$> ( OutcomeRecordedData+ <$> o .: "outcome"+ )+ _ -> fail ("unknown event type " <> show tag <> "; expected one of: " <> renderExpectedEventTypes deliveryStatusEventTypes)++mapLeftText :: Either String b -> Either Text b+mapLeftText = either (Left . T.pack) Right++renderExpectedEventTypes :: NonEmpty EventType -> String+renderExpectedEventTypes =+ T.unpack+ . T.intercalate ", "+ . map (\(EventType eventTypeName) -> eventTypeName)+ . NonEmpty.toList
@@ -0,0 +1,42 @@+{-# LANGUAGE TemplateHaskell #-}+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.Domain where++import Data.Proxy (Proxy (..))+import Data.Text (Text)+import GHC.Generics (Generic)+import Keiki.Core (RegFile (..))+import Keiki.Generics.TH (deriveAggregateCtorsAll, deriveWireCtorsAll)++data DeliveryStatusVertex = DeliveryStatusPending | DeliveryStatusDelivered+ deriving stock (Generic, Eq, Ord, Show, Enum, Bounded)++data RecordOutcomeData = RecordOutcomeData+ { outcome :: !Text+ }+ deriving stock (Generic, Eq, Show)++data DeliveryStatusCommand = RecordOutcome !RecordOutcomeData+ deriving stock (Generic, Eq, Show)++data OutcomeRecordedData = OutcomeRecordedData+ { outcome :: !Text+ }+ deriving stock (Generic, Eq, Show)++data DeliveryStatusEvent = OutcomeRecorded !OutcomeRecordedData+ deriving stock (Generic, Eq, Show)++type DeliveryStatusRegs =+ '[ '("finalOutcome", Text)+ ]++initialDeliveryStatusRegs :: RegFile DeliveryStatusRegs+initialDeliveryStatusRegs =+ RCons (Proxy @"finalOutcome") "none" RNil++$(deriveAggregateCtorsAll ''DeliveryStatusCommand ''DeliveryStatusRegs)++++$(deriveWireCtorsAll ''DeliveryStatusEvent)
@@ -0,0 +1,81 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.EventStream+ ( deliveryStatusCategory+ , deliveryStatusCommandCategory+ , deliveryStatusEventStream+ , deliveryStatusEventStreamDef+ , DeliveryStatusEventStream+ , DeliveryStatusEventStreamDef+ , deliveryStatusDomainCommandHandler+ ) where++import Generated.DeliveryOutcomes.DeliveryStatus.Domain+import Generated.DeliveryOutcomes.DeliveryStatus.Codec (deliveryStatusCodec)+import Generated.DeliveryOutcomes.DeliveryStatus.Transducer (deliveryStatusTransducer)+import Generated.DeliveryOutcomes.Nominals (DeliveryNoOp (..), DeliveryRejection (..))+import Keiki.Core (EdgeRef (..), HsPred)+import Keiki.Core qualified as K+import Keiro.Command (DomainCommandHandler (..), SilentCommandContext (..), SilentDomainDecision (..))+import Keiro.EventStream (EventStream (..), SnapshotPolicy (..))+import Keiro.EventStream.Validate (ValidatedEventStream, mkEventStreamOrThrow)+import Keiro.Stream qualified as Stream++-- The validated aggregate stream category (hole-kind 5: referenced, never retyped).+-- Entity streams are '<category>-<id>' via Keiro.Stream.entityStream.+-- categoryUnsafe is safe here because this generated literal passed the DSL category proof.+deliveryStatusCategory :: Stream.StreamCategory DeliveryStatusEventStreamDef+deliveryStatusCategory = Stream.categoryUnsafe "deliveryStatus"++-- The same category text, typed for command envelopes such as PMCommand.+deliveryStatusCommandCategory :: Stream.StreamCategory DeliveryStatusCommand+deliveryStatusCommandCategory = Stream.categoryUnsafe "deliveryStatus"++type DeliveryStatusEventStreamDef =+ EventStream (HsPred DeliveryStatusRegs DeliveryStatusCommand) DeliveryStatusRegs DeliveryStatusVertex DeliveryStatusCommand DeliveryStatusEvent++type DeliveryStatusEventStream =+ ValidatedEventStream (HsPred DeliveryStatusRegs DeliveryStatusCommand) DeliveryStatusRegs DeliveryStatusVertex DeliveryStatusCommand DeliveryStatusEvent++deliveryStatusEventStreamDef :: DeliveryStatusEventStreamDef+deliveryStatusEventStreamDef =+ EventStream+ { transducer = deliveryStatusTransducer,+ initialState = DeliveryStatusPending,+ initialRegisters = initialDeliveryStatusRegs,+ eventCodec = deliveryStatusCodec,+ resolveStreamName = Stream.streamName,+ snapshotPolicy = Never,+ stateCodec = Nothing+ }++deliveryStatusEventStream :: DeliveryStatusEventStream+deliveryStatusEventStream =+ mkEventStreamOrThrow "DeliveryStatus" deliveryStatusEventStreamDef++deliveryStatusDomainCommandHandler+ :: DomainCommandHandler+ (HsPred DeliveryStatusRegs DeliveryStatusCommand)+ DeliveryStatusRegs+ DeliveryStatusVertex+ DeliveryStatusCommand+ DeliveryStatusEvent+ DeliveryRejection+ DeliveryNoOp+deliveryStatusDomainCommandHandler =+ DomainCommandHandler deliveryStatusEventStream deliveryStatusSilentDecision++deliveryStatusSilentDecision+ :: SilentCommandContext DeliveryStatusRegs DeliveryStatusVertex DeliveryStatusCommand+ -> SilentDomainDecision+ DeliveryRejection+ DeliveryNoOp+deliveryStatusSilentDecision (SilentCommandContext _ registers command (EdgeRef edgeSource edgeIndex)) =+ case edgeSource of+ DeliveryStatusDelivered ->+ case edgeIndex of+ 0 -> SilentNoOp (K.evalTerm (K.lit AlreadyFinal) registers command)+ _ -> outcomeInvariant edgeSource edgeIndex+ _ -> outcomeInvariant edgeSource edgeIndex+ where+ outcomeInvariant source index =+ error ("generated domain outcome invariant failed for aggregate DeliveryStatus edge " <> show source <> "#" <> show index)
@@ -0,0 +1,52 @@+{-# LANGUAGE OverloadedLabels #-}+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.Harness (harnessAssertions) where++import Generated.DeliveryOutcomes.DeliveryStatus.Domain+import Generated.DeliveryOutcomes.DeliveryStatus.Codec (encodeDeliveryStatusEvent, parseDeliveryStatusEvent, deliveryStatusCodec)+import Generated.DeliveryOutcomes.DeliveryStatus.Transducer (deliveryStatusTransducer)+import Keiki.Core (applyEventsEither, defaultValidationOptions, step, validateTransducer, (!))+import Keiro.Codec (eventType)++-- | (label, passed). A driver runs these and exits non-zero on any False,+-- naming the failing assertion. Filling a hole wrongly turns a specific+-- entry False; the scaffold cannot.+harnessAssertions :: [(String, Bool)]+harnessAssertions =+ [ ("validateTransducer is empty", null (validateTransducer defaultValidationOptions deliveryStatusTransducer))+ -- clock-free: spec samples no wall clock (verified at scaffold time)+ , ("golden round-trip: OutcomeRecorded", roundTrips sampleEventOutcomeRecorded)+ , ("accepts RecordOutcome from DeliveryStatusPending", acceptRecordOutcome)+ ]+ ++ forwardReplayRecordOutcome++roundTrips :: DeliveryStatusEvent -> Bool+roundTrips e = parseDeliveryStatusEvent (eventType deliveryStatusCodec e) (encodeDeliveryStatusEvent e) == Right e++sampleEventOutcomeRecorded :: DeliveryStatusEvent+sampleEventOutcomeRecorded = OutcomeRecorded (OutcomeRecordedData "sample-outcome")++acceptRecordOutcome :: Bool+acceptRecordOutcome =+ case step deliveryStatusTransducer (DeliveryStatusPending, initialDeliveryStatusRegs) (RecordOutcome (RecordOutcomeData "sample-outcome")) of+ Just (v, _, _) -> v == DeliveryStatusDelivered+ Nothing -> False++-- forward/replay equality (plan 147): cross the persisted codec boundary,+-- replay the emitted chain, and compare the final vertex and every register.+forwardReplayRecordOutcome :: [(String, Bool)]+forwardReplayRecordOutcome =+ case step deliveryStatusTransducer (DeliveryStatusPending, initialDeliveryStatusRegs) (RecordOutcome (RecordOutcomeData "sample-outcome")) of+ Nothing -> [(prefix <> "forward step accepted", False)]+ Just (forwardVertex, forwardRegs, emitted) ->+ case mapM (\event -> parseDeliveryStatusEvent (eventType deliveryStatusCodec event) (encodeDeliveryStatusEvent event)) emitted of+ Left _ -> [(prefix <> "emitted chain decodes", False)]+ Right decodedEvents ->+ case applyEventsEither deliveryStatusTransducer (DeliveryStatusPending, initialDeliveryStatusRegs) decodedEvents of+ Left _ -> [(prefix <> "replay succeeds", False)]+ Right (replayVertex, replayRegs) ->+ [ (prefix <> "final vertex", replayVertex == forwardVertex)+ , (prefix <> "register finalOutcome", (replayRegs ! #finalOutcome) == (forwardRegs ! #finalOutcome))+ ]+ where+ prefix = "forward/replay equality: RecordOutcome from DeliveryStatusPending -- "
@@ -0,0 +1,4 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.Projection () where++-- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -0,0 +1,61 @@+{-# LANGUAGE BlockArguments #-}+{-# LANGUAGE QualifiedDo #-}+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate DeliveryStatus; do not edit.+module Generated.DeliveryOutcomes.DeliveryStatus.Transducer+ ( deliveryStatusTransducer+ , deliveryStatusFoldFingerprint+ , BehaviorOwnership (..)+ , deliveryStatusPredicateVerifications+ ) where++import Generated.DeliveryOutcomes.DeliveryStatus.Domain+import Data.Text (Text)+import Keiki.Builder qualified as B+import Keiki.Core (HsPred, SymTransducer)+import Keiki.Core qualified as K+import Keiki.Symbolic qualified as S+import Keiki.Builder ((=:))++deliveryStatusTransducer+ :: SymTransducer+ (HsPred DeliveryStatusRegs DeliveryStatusCommand)+ DeliveryStatusRegs+ DeliveryStatusVertex+ DeliveryStatusCommand+ DeliveryStatusEvent+deliveryStatusTransducer =+ B.buildTransducer DeliveryStatusPending initialDeliveryStatusRegs isTerminal do+ B.from DeliveryStatusPending do+ B.onCmd inCtorRecordOutcome $ \d -> B.do+ B.slot @"finalOutcome" =: d.outcome+ B.emit wireOutcomeRecorded (OutcomeRecordedTermFields+ { outcome = d.outcome+ })+ B.goto DeliveryStatusDelivered+ B.from DeliveryStatusDelivered do+ B.onCmd inCtorRecordOutcome $ \_d -> B.do+ B.noEmit+ B.goto DeliveryStatusDelivered+ where+ isTerminal = \case++ _ -> False++deliveryStatusFoldFingerprint :: Text+deliveryStatusFoldFingerprint = "7398f8097d27f9b0969b30a5892cf1c2"++data BehaviorOwnership = GeneratedOwned | HoleOwned+ deriving stock (Eq, Show)++-- Every checked transition predicate is audited through Keiki's conservative+-- symbolic verifier. Opaque Hole terms remain explicitly unverified.+deliveryStatusPredicateVerifications :: IO [(Text, BehaviorOwnership, S.PredicateVerification)]+deliveryStatusPredicateVerifications = sequence+ [ verifyTransition "transition1PendingRecordOutcome" GeneratedOwned DeliveryStatusPending 0+ , verifyTransition "transition2DeliveredRecordOutcome" GeneratedOwned DeliveryStatusDelivered 0+ ]+ where+ verifyTransition label owner source edgeIndex =+ case drop edgeIndex (K.edgesOut deliveryStatusTransducer source) of+ K.Edge predicate _ _ _ _ : _ -> (\result -> (label, owner, result)) <$> S.verifyPredicate predicate+ [] -> pure (label, owner, S.UnverifiedSolverFailure "generated transition edge missing")
@@ -0,0 +1,47 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context delivery-outcomes inspection catalog; do not edit.+--+-- The complete read-only inspection catalog for this service: one aggregate+-- inspector per declared aggregate, the replay-audit targets and the projection+-- catalog. Mount them through Keiro.Ops.AppHooks; see docs/user/operations.md.+module Generated.DeliveryOutcomes.Inspection+ ( aggregateInspectorCatalog+ , aggregateInspectors+ , inspectionAuditTargets+ , inspectionProjectionCatalog+ ) where++import Data.Aeson (Value, object, (.=))+import Data.Text (pack)+import Generated.DeliveryOutcomes.DeliveryStatus.EventStream qualified as DeliveryStatus+import Generated.DeliveryOutcomes.ReplayAudit (auditTargets)+import Keiki.Core (RegFile)+import Keiro.EventStream (EventStream (..))+import Keiro.Inspection.Aggregate (AggregateInspectors, SomeAggregateInspector (..), aggregateInspector, displayViaStateCodec)+import Keiro.Inspection.Aggregate qualified+import Keiro.Projection.Catalog (ValidatedProjectionCatalog, Validation (..), emptyProjectionCatalog, validateProjectionCatalog)+import Keiro.ReplayAudit (SomeAuditTarget)+import Keiro.Stream (categoryText)++aggregateInspectorCatalog :: [SomeAggregateInspector]+aggregateInspectorCatalog =+ [ SomeAggregateInspector (aggregateInspector (categoryText DeliveryStatus.deliveryStatusCategory) DeliveryStatus.deliveryStatusEventStream DeliveryStatus.deliveryStatusCategory (displayFoldedState DeliveryStatus.deliveryStatusEventStreamDef))+ ]++aggregateInspectors :: AggregateInspectors+aggregateInspectors = case Keiro.Inspection.Aggregate.aggregateInspectors aggregateInspectorCatalog of+ Right inspectors -> inspectors+ Left message -> error ("keiro-dsl generated an invalid aggregate inspector catalog: " <> show message)++inspectionAuditTargets :: [SomeAuditTarget]+inspectionAuditTargets = auditTargets++inspectionProjectionCatalog :: ValidatedProjectionCatalog+inspectionProjectionCatalog = case validateProjectionCatalog emptyProjectionCatalog of+ Success catalog -> catalog+ Failure diagnostics -> error ("keiro-dsl generated an invalid empty projection catalog: " <> show diagnostics)++-- The aggregate's own state codec when its definition declares one (snapshot+-- aggregates), otherwise the vertex label.+displayFoldedState :: (Show s) => EventStream phi rs s ci co -> s -> RegFile rs -> Value+displayFoldedState EventStream {stateCodec = Just codec} = displayViaStateCodec codec+displayFoldedState EventStream {stateCodec = Nothing} = \state _ -> object ["state" .= pack (show state)]
@@ -0,0 +1,28 @@+{-# LANGUAGE DeriveAnyClass #-}+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context delivery-outcomes generated nominal declarations; do not edit.+module Generated.DeliveryOutcomes.Nominals where++import Data.Aeson (FromJSON, ToJSON)+import Data.Text (Text)+import GHC.Generics (Generic)+import Keiki.Shape (CanonicalTypeName)++data DeliveryNoOp = AlreadyFinal+ deriving stock (Generic, Eq, Ord, Show, Enum, Bounded)+ deriving anyclass (ToJSON, FromJSON)++instance CanonicalTypeName DeliveryNoOp++deliveryNoOpText :: DeliveryNoOp -> Text+deliveryNoOpText = \case+ AlreadyFinal -> "already-final"++data DeliveryRejection = NeverRejected+ deriving stock (Generic, Eq, Ord, Show, Enum, Bounded)+ deriving anyclass (ToJSON, FromJSON)++instance CanonicalTypeName DeliveryRejection++deliveryRejectionText :: DeliveryRejection -> Text+deliveryRejectionText = \case+ NeverRejected -> "never-rejected"
@@ -0,0 +1,23 @@+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context delivery-outcomes replay-audit assembly; do not edit.+--+-- Deployment contract:+-- * replay-neutral diff: no data audit is required;+-- * affected diff: run AuditTargeted with the emitted affected set+-- against a production copy under the candidate binary;+-- * one-time runtime cutover: run AuditFull;+-- * any non-zero audit exit blocks deployment.+module Generated.DeliveryOutcomes.ReplayAudit (auditTargets) where++import Generated.DeliveryOutcomes.DeliveryStatus.EventStream qualified as DeliveryStatus+import Keiro.ReplayAudit (AuditTarget (..), SomeAuditTarget (..), streamInCategory)+import Keiro.Stream qualified as Stream++auditTargets :: [SomeAuditTarget]+auditTargets =+ [ SomeAuditTarget+ AuditTarget+ { eventStream = DeliveryStatus.deliveryStatusEventStream+ , category = Stream.categoryText DeliveryStatus.deliveryStatusCategory+ , mkStream = streamInCategory (Stream.categoryText DeliveryStatus.deliveryStatusCategory)+ }+ ]
@@ -0,0 +1,132 @@+-- | Live conformance for a generated delegated intake whose downstream command+-- has a typed no-op edge. The generated 'runInboxIntake' drives the+-- hand-written handler against PostgreSQL: an accepted outcome is+-- acknowledged by its marker event, a typed no-op by one completed inbox row,+-- a redelivered no-op is a duplicate without dispatching, and the historical+-- untyped adapter still refuses the same silent edge.+module Main (main) where++import Control.Monad (unless)+import Data.Aeson (encode)+import Data.ByteString.Lazy qualified as LazyByteString+import Data.IORef (modifyIORef', newIORef, readIORef)+import Data.Text (Text)+import Data.Time (UTCTime (..), fromGregorian)+import Data.Vector qualified as Vector+import DeliveryOutcomes.DeliveryOutcomeInbox.DelegatedIntegration+import Effectful (liftIO)+import Effectful.Error.Static (runErrorNoCallStack)+import Generated.DeliveryOutcomes.Courier.Contract (CourierPayload (..), DeliveryOutcomeReportedData (..), encodeCourierPayload)+import Generated.DeliveryOutcomes.DeliveryOutcomeInbox.Inbox (inboxIdempotence)+import Generated.DeliveryOutcomes.Nominals (DeliveryNoOp (..))+import Keiro.Inbox.Delegated (DelegatedCommandError (..), DelegatedDomainResult (..), delegatedEventId, delegatedNoOpReceiptKey)+import Keiro.Inbox.Schema (listInbox, lookupInbox)+import Keiro.Command (CommandResult (..))+import Keiro.Inbox.Types (InboxIdempotence (..), InboxResult (..), InboxRow (..), InboxStatus (..))+import Keiro.Integration.Event (IntegrationContentType (..), IntegrationEvent (..))+import Keiro.Stream (streamName)+import Keiro.Test.Postgres (StoreRunner (..), withFreshResourceStore, withMigratedSuite)+import Kiroku.Store qualified as Store+import Kiroku.Store.Types (RecordedEvent (..), StreamVersion (..))+import System.Exit (exitFailure)++main :: IO ()+main =+ withMigratedSuite $ \fixture ->+ withFreshResourceStore fixture $ \(_storeHandle, StoreRunner runStore) -> do+ dispatches <- newIORef (0 :: Int)+ let countDispatch = liftIO (modifyIORef' dispatches (+ 1))+ typed event =+ runStore (runErrorNoCallStack @DeliveryIntakeFailure (runDeliveryOutcomeInbox event Nothing (typedDeliveryHandler countDispatch Nothing)))+ untyped event =+ runStore (runErrorNoCallStack @DeliveryIntakeFailure (runDeliveryOutcomeInbox event Nothing untypedDeliveryHandler))+ target = streamName (deliveryTarget "delivery-1")+ markerFor event = delegatedEventId consumerName event.source event.messageId target recordOutcomeOperation+ storedIds = do+ stored <- runStore (Store.readStreamForward target (StreamVersion 0) 10)+ pure (fmap (fmap (.eventId) . Vector.toList) stored)+ inboxRows = runStore (listInbox courierSource)++ let delivered = report "outcome-1" "delivered"+ accepted <- typed delivered+ idsAfterAccepted <- storedIds+ rowsAfterAccepted <- inboxRows+ let acceptedOk =+ ( case accepted of+ Right (Right (Right (InboxProcessed (DelegatedDomainAccepted _ result)))) -> result.eventsAppended == 1+ _ -> False+ )+ && idsAfterAccepted == Right [markerFor delivered]+ && rowsAfterAccepted == Right []++ let lateFailure = report "outcome-2" "failed"+ noOp <- typed lateFailure+ idsAfterNoOp <- storedIds+ rowsAfterNoOp <- inboxRows+ let noOpOk =+ ( case noOp of+ Right (Right (Right (InboxProcessed (DelegatedDomainNoOp AlreadyFinal result)))) -> result.eventsAppended == 0+ _ -> False+ )+ && idsAfterNoOp == Right [markerFor delivered]+ && fmap (fmap (\row -> (row.dedupeKey, row.status))) rowsAfterNoOp+ == Right [(delegatedNoOpReceiptKey (markerFor lateFailure), InboxCompleted)]++ dispatchesBeforeReplay <- readIORef dispatches+ replay <- typed lateFailure+ dispatchesAfterReplay <- readIORef dispatches+ let replayOk =+ replay == Right (Right (Right InboxDuplicate))+ && dispatchesBeforeReplay == 2+ && dispatchesAfterReplay == 2++ let untypedLateFailure = report "outcome-3" "failed"+ refused <- untyped untypedLateFailure+ idsAfterRefused <- storedIds+ rowsAfterRefused <- inboxRows+ rawRow <- runStore (lookupInbox courierSource untypedLateFailure.messageId)+ scopedRow <- runStore (lookupInbox courierSource (delegatedNoOpReceiptKey (markerFor untypedLateFailure)))+ let untypedOk =+ refused == Right (Left (UntypedAdapterFailed (DelegatedCommandWithoutReceipt target)))+ && idsAfterRefused == Right [markerFor delivered]+ && fmap length rowsAfterRefused == Right 1+ && rawRow == Right Nothing+ && scopedRow == Right Nothing++ let modeOk = inboxIdempotence == IdempotenceDelegated+ check "generated intake uses delegated idempotence" modeOk+ check "accepted delivery appends the marker event and writes no inbox row" acceptedOk+ check "typed no-op delivery is processed and records one completed inbox row" noOpOk+ check "redelivered no-op is a duplicate without dispatching the command" replayOk+ check "untyped silent success returns DelegatedCommandWithoutReceipt and leaves no receipt" untypedOk+ unless (and [modeOk, acceptedOk, noOpOk, replayOk, untypedOk]) exitFailure++check :: String -> Bool -> IO ()+check label ok = putStrLn (label <> ": " <> show ok)++courierSource :: Text+courierSource = "courier"++report :: Text -> Text -> IntegrationEvent+report messageId outcome =+ IntegrationEvent+ { messageId,+ source = courierSource,+ destination = "reputation",+ key = Just "delivery-1",+ eventType = "DeliveryOutcomeReported",+ schemaVersion = 1,+ contentType = ApplicationJson,+ schemaReference = Nothing,+ sourceEventId = Nothing,+ sourceGlobalPosition = Nothing,+ payloadBytes =+ LazyByteString.toStrict+ (encode (encodeCourierPayload (DeliveryOutcomeReported (DeliveryOutcomeReportedData "delivery-1" outcome)))),+ occurredAt = UTCTime (fromGregorian 2026 11 18) 0,+ causationId = Nothing,+ correlationId = Nothing,+ traceContext = Nothing,+ attributes = Nothing+ }+
@@ -0,0 +1,36 @@+-- keiro-dsl build manifest for keiro-dsl/test/fixtures/intake-delegated-noop.keiro+-- Paste the complete fragment below into the consuming Cabal stanza.+-- The generated layer is overwritten on every scaffold; hole modules are+-- create-if-absent (filled by hand).++default-language: GHC2024+default-extensions:+ DuplicateRecordFields+ NoFieldSelectors+ OverloadedRecordDot+ OverloadedStrings++other-modules:+ DeliveryOutcomes.DeliveryStatus.BehaviorHoles+ Generated.DeliveryOutcomes.BehaviorSourceMap+ Generated.DeliveryOutcomes.Courier.Contract+ Generated.DeliveryOutcomes.DeliveryOutcomeInbox.Inbox+ Generated.DeliveryOutcomes.DeliveryStatus.BehaviorContract+ Generated.DeliveryOutcomes.DeliveryStatus.Codec+ Generated.DeliveryOutcomes.DeliveryStatus.Domain+ Generated.DeliveryOutcomes.DeliveryStatus.EventStream+ Generated.DeliveryOutcomes.DeliveryStatus.Harness+ Generated.DeliveryOutcomes.DeliveryStatus.Projection+ Generated.DeliveryOutcomes.DeliveryStatus.Transducer+ Generated.DeliveryOutcomes.Inspection+ Generated.DeliveryOutcomes.Nominals+ Generated.DeliveryOutcomes.ReplayAudit++build-depends:+ , aeson+ , base+ , effectful-core+ , keiki+ , keiro+ , keiro-core+ , text
@@ -0,0 +1,40 @@+keiro-dsl scaffold record v1+spec: keiro-dsl/test/fixtures/intake-delegated-noop.keiro+module-root: (none)+layout: prefixed+source-language {"declaredLanguageVersion":6,"effectiveLanguageVersion":6,"sourceForm":"declared"}+semantic-contract {"languageSupport":"candidate","languageVersion":6,"runtimeSemantics":"keiro-dsl/runtime-semantics/5"}+naming-edition idiomatic-v2+module-role {"family":"BehaviorSourceMap","kind":"generated","ownerKind":"context","ownerName":"context delivery-outcomes behavior source map","path":"Generated/DeliveryOutcomes/BehaviorSourceMap.hs"}+module-role {"family":"Nominals","kind":"generated","ownerKind":"context","ownerName":"context delivery-outcomes generated nominal declarations","path":"Generated/DeliveryOutcomes/Nominals.hs"}+module-role {"family":"ReplayAudit","kind":"generated","ownerKind":"context","ownerName":"context delivery-outcomes replay-audit assembly","path":"Generated/DeliveryOutcomes/ReplayAudit.hs"}+module-role {"family":"Inspection","kind":"generated","ownerKind":"context","ownerName":"context delivery-outcomes inspection catalog","path":"Generated/DeliveryOutcomes/Inspection.hs"}+module-role {"family":"Contract","kind":"generated","ownerKind":"contract","ownerName":"contract courier (line 10)","path":"Generated/DeliveryOutcomes/Courier/Contract.hs"}+module-role {"family":"Inbox","kind":"generated","ownerKind":"intake","ownerName":"intake deliveryOutcomeInbox (line 20)","path":"Generated/DeliveryOutcomes/DeliveryOutcomeInbox/Inbox.hs"}+module-role {"family":"Domain","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/Domain.hs"}+module-role {"family":"Codec","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/Codec.hs"}+module-role {"family":"Transducer","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/Transducer.hs"}+module-role {"family":"BehaviorContract","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/BehaviorContract.hs"}+module-role {"family":"BehaviorHoles","kind":"hole","ownerKind":"aggregate","ownerName":"aggregate behavior witnesses DeliveryStatus (line 54)","path":"DeliveryOutcomes/DeliveryStatus/BehaviorHoles.hs"}+module-role {"family":"EventStream","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/EventStream.hs"}+module-role {"family":"Projection","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/Projection.hs"}+module-role {"family":"Harness","kind":"generated","ownerKind":"aggregate","ownerName":"aggregate DeliveryStatus (line 54)","path":"Generated/DeliveryOutcomes/DeliveryStatus/Harness.hs"}+generated Generated/DeliveryOutcomes/BehaviorSourceMap.hs+generated Generated/DeliveryOutcomes/Nominals.hs+generated Generated/DeliveryOutcomes/ReplayAudit.hs+generated Generated/DeliveryOutcomes/Inspection.hs+generated Generated/DeliveryOutcomes/Courier/Contract.hs+generated Generated/DeliveryOutcomes/DeliveryOutcomeInbox/Inbox.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/Domain.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/Codec.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/Transducer.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/BehaviorContract.hs+hole DeliveryOutcomes/DeliveryStatus/BehaviorHoles.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/EventStream.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/Projection.hs+generated Generated/DeliveryOutcomes/DeliveryStatus/Harness.hs+nominal-equality nominal-equality|name=DeliveryNoOp|contract=keiro-dsl/nominal-equality/1|key=Text|domain=finite-text:already-final|owner=generated+nominal-equality nominal-equality|name=DeliveryRejection|contract=keiro-dsl/nominal-equality/1|key=Text|domain=finite-text:never-rejected|owner=generated+behavior {"aggregate":"DeliveryStatus","command":"RecordOutcome","evidence":"generated-authoritative","key":"behavior-v1-ac132150262d872a","kind":"live-transition","outputs":[{"command":"RecordOutcome","ownership":"generated-command-identity"}],"source":"Pending"}+behavior {"aggregate":"DeliveryStatus","command":"RecordOutcome","evidence":"generated-authoritative","key":"behavior-v1-ac37ab6d84cb0fa7","kind":"live-transition","outputs":[],"source":"Delivered"}+semantic-impact {"declarations":[],"mappedSurfaceEvidenceVersion":1,"serviceInventory":[]}
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from contract emergency; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from contract emergency; do not edit. module Generated.HospitalCapacity.Emergency.Contract ( EmergencyPayload (..) , IncidentTransferNeedDeclaredData (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from intake incidentInbox; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from intake incidentInbox; do not edit. module Generated.HospitalCapacity.IncidentInbox.Inbox ( InboxFailure (..) , IncidentInboxOutcome (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from contract emergency; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from contract emergency; do not edit. module Generated.HospitalCapacity.Emergency.Contract ( EmergencyPayload (..) , IncidentTransferNeedDeclaredData (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from intake incidentInbox; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from intake incidentInbox; do not edit. module Generated.HospitalCapacity.IncidentInbox.Inbox ( InboxFailure (..) , IncidentInboxOutcome (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from contract emergency; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from contract emergency; do not edit. module Generated.HospitalCapacity.Emergency.Contract ( EmergencyPayload (..) , IncidentTransferNeedDeclaredData (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from intake incidentInbox; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from intake incidentInbox; do not edit. module Generated.HospitalCapacity.IncidentInbox.Inbox ( InboxFailure (..) , IncidentInboxOutcome (..)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context keyword-segments inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context keyword-segments inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue job_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue job_type; do not edit. module Generated.KeywordSegments.JobType.Queue ( JobTypePayload (..) , encodeJobTypePayload
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue job_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue job_type; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue job_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue job_type; do not edit. module Generated.KeywordSegments.JobType.QueuePolicy ( JobTypeOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context keyword-segments generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context keyword-segments generated nominal declarations; do not edit. module Generated.KeywordSegments.Nominals ( SubscriptionId , parseSubscriptionId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context keyword-segments generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context keyword-segments generated nominal ID internals; do not edit. module Generated.KeywordSegments.Nominals.Internal ( SubscriptionId , parseSubscriptionId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from projection-catalog keyword-segments; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from projection-catalog keyword-segments; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.KeywordSegments.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context keyword-segments structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context keyword-segments structural nominal leaves; do not edit. module Generated.KeywordSegments.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context keyword-segments structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context keyword-segments structural conformance; do not edit. module Generated.KeywordSegments.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit. module Generated.KeywordSegments.ValidateCustomType.QueryContract ( ValidateCustomTypeQueryInput , ValidateCustomTypeQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit. module Generated.KeywordSegments.ValidateCustomType.ReadModel ( validateCustomTypeReadModel , validateCustomTypeQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit. module Generated.KeywordSegments.ValidateCustomType.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.KeywordSegments.ValidateCustomType.ReadModel (validateCustomTypeReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel validate_custom_type; do not edit. module Generated.KeywordSegments.ValidateCustomType.ReadModelTable (validateCustomTypeQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from workqueue mapped_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from workqueue mapped_jobs; do not edit. module Generated.MappedQueue.MappedJobs.Queue ( MappedJob (..) , encodeMappedJob
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from workqueue mapped_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from workqueue mapped_jobs; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from workqueue mapped_jobs; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from workqueue mapped_jobs; do not edit. module Generated.MappedQueue.MappedJobs.QueuePolicy ( MappedJobsOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural JobMetadata; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural JobMetadata; do not edit. module Generated.MappedQueue.Structural.Shape.JobMetadata (JobMetadataShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural JobPayload; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural JobPayload; do not edit. module Generated.MappedQueue.Structural.Shape.JobPayload (JobPayloadShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context mapped-queue structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context mapped-queue structural conformance; do not edit. module Generated.MappedQueue.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context mapped-queue mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context mapped-queue mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel account_summary; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel account_summary; do not edit. module Generated.MappedReadmodel.AccountSummary.QueryContract ( AccountSummaryQueryInput , AccountSummaryQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel account_summary; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel account_summary; do not edit. module Generated.MappedReadmodel.AccountSummary.ReadModel ( accountSummaryReadModel , accountSummaryQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel account_summary; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel account_summary; do not edit. module Generated.MappedReadmodel.AccountSummary.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.MappedReadmodel.AccountSummary.ReadModel (accountSummaryReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from readmodel account_summary; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from readmodel account_summary; do not edit. module Generated.MappedReadmodel.AccountSummary.ReadModelTable (accountSummaryQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context mapped-readmodel inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context mapped-readmodel inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from projection-catalog mapped-readmodel; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from projection-catalog mapped-readmodel; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.MappedReadmodel.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural AccountLookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural AccountLookup; do not edit. module Generated.MappedReadmodel.Structural.Shape.AccountLookup (AccountLookupShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural AccountProfile; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural AccountProfile; do not edit. module Generated.MappedReadmodel.Structural.Shape.AccountProfile (AccountProfileShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural AccountSummary; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural AccountSummary; do not edit. module Generated.MappedReadmodel.Structural.Shape.AccountSummary (AccountSummaryShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural TenantKey; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural TenantKey; do not edit. module Generated.MappedReadmodel.Structural.Shape.TenantKey (TenantKeyShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from mapped structural UnusedFilter; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from mapped structural UnusedFilter; do not edit. module Generated.MappedReadmodel.Structural.Shape.UnusedFilter (UnusedFilterShape (..)) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context mapped-readmodel structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context mapped-readmodel structural conformance; do not edit. module Generated.MappedReadmodel.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 5) from context mapped-readmodel mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 5) from context mapped-readmodel mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-register-construction behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-register-construction behavior source map; do not edit. module Generated.MappedRegisterConstruction.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-register-construction inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-register-construction inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.MappedRegisterConstruction.Lifecycle.Codec (encodeLifecycleEvent, parseLifecycleEvent, lifecycleCodec)@@ -494,6 +495,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.Codec ( lifecycleCodec, parseLifecycleEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.EventStream ( lifecycleCategory , lifecycleCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.Harness (harnessAssertions) where import Generated.MappedRegisterConstruction.Lifecycle.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate Lifecycle; do not edit. module Generated.MappedRegisterConstruction.Lifecycle.Transducer ( lifecycleTransducer , lifecycleFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-register-construction replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-register-construction replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-register-construction structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-register-construction structural conformance; do not edit. module Generated.MappedRegisterConstruction.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-structural-enum-equality behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-structural-enum-equality behavior source map; do not edit. module Generated.MappedStructuralEnumEquality.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-structural-enum-equality inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-structural-enum-equality inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-structural-enum-equality replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-structural-enum-equality replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -18,6 +18,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.MappedStructuralEnumEquality.ScopeGate.Codec (encodeScopeGateEvent, parseScopeGateEvent, scopeGateCodec)@@ -362,6 +363,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.Codec ( scopeGateCodec, parseScopeGateEvent,
@@ -1,6 +1,6 @@ {-# LANGUAGE DeriveAnyClass #-} {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.Domain where import Data.Aeson (FromJSON, ToJSON)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.EventStream ( scopeGateCategory , scopeGateCommandCategory
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedLabels #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.Harness (harnessAssertions) where import Generated.MappedStructuralEnumEquality.ScopeGate.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,7 +1,7 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE OverloadedLabels #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from aggregate ScopeGate; do not edit. module Generated.MappedStructuralEnumEquality.ScopeGate.Transducer ( scopeGateTransducer , scopeGateFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural Request; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural Request; do not edit. module Generated.MappedStructuralEnumEquality.Structural.Shape.Request (RequestShape (..)) where import GHC.Generics (Generic)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from mapped structural RequiredScope; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from mapped structural RequiredScope; do not edit. module Generated.MappedStructuralEnumEquality.Structural.Shape.RequiredScope (RequiredScopeShape (..)) where import GHC.Generics (Generic)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-structural-enum-equality structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-structural-enum-equality structural conformance; do not edit. module Generated.MappedStructuralEnumEquality.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,5 +1,5 @@ {-# LANGUAGE TypeFamilies #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-structural-enum-equality mapped structural facade; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-structural-enum-equality mapped structural facade; do not edit. -- Equality witnesses are emitted for Text, Int, Bool, Natural, and UTCTime. -- Nominal ID and enum leaves carry exact canonical-text domains. -- Int, Natural, and UTCTime belong to Keiki's ordered subset.
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context transfer-routing behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context transfer-routing behavior source map; do not edit. module Generated.TransferRouting.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -2,11 +2,15 @@ module Generated.TransferRouting.Conformance ( runServiceConformanceChecks , serviceConformanceFacts+ , runServiceBehaviorChecks ) where import Generated.TransferRouting.Hospital.Harness qualified as Hospital import Generated.TransferRouting.HospitalLoad.ReadModelHarness qualified as HospitalLoad import Generated.TransferRouting.HospitalTransferRouter.RouterHarness qualified as HospitalTransferRouter+import Generated.TransferRouting.Hospital.BehaviorContract qualified as HospitalBehaviorContract+import TransferRouting.Hospital.BehaviorHoles qualified as HospitalBehaviorHoles+import Data.Text qualified as Text runServiceConformanceChecks :: IO [(String, Bool)] runServiceConformanceChecks =@@ -18,3 +22,9 @@ serviceConformanceFacts :: [(String, String)] serviceConformanceFacts = [("router/HospitalTransferRouter/" <> fact, value) | (fact, value) <- HospitalTransferRouter.routerHarnessValues]++runServiceBehaviorChecks :: IO [(String, Bool)]+runServiceBehaviorChecks =+ pure (+ [("aggregate/Hospital/behavior/" <> Text.unpack row, passed) | (row, passed) <- HospitalBehaviorContract.behaviorConformanceRows (HospitalBehaviorContract.behaviorCoverageReport HospitalBehaviorHoles.behaviorWitnesses)]+ )
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.BehaviorContract ( BehaviorKey (..) , unBehaviorKey@@ -17,6 +17,7 @@ , behaviorConformancePassed , behaviorConformancePassedWith , renderBehaviorConformanceText+ , behaviorConformanceRows ) where import Generated.TransferRouting.Hospital.Codec (encodeHospitalEvent, parseHospitalEvent, hospitalCodec)@@ -205,6 +206,32 @@ , countLine "verified" report.verified , countLine "unverified" report.unverified ] <> T.unlines ["FAIL " <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail | behaviorFailure <- report.failed]++-- | One single-line check row per pending, missing, duplicate, and stale key+-- and per failed witness, then one summary row carrying the report policy.+-- Unverified keys are not failures under 'behaviorConformancePassed'.+behaviorConformanceRows :: BehaviorConformanceReport -> [(Text, Bool)]+behaviorConformanceRows report =+ keyRows "pending" report.pending+ <> keyRows "missing" report.missing+ <> keyRows "duplicate" report.duplicate+ <> keyRows "stale" report.stale+ <> [("failed/" <> unBehaviorKey behaviorFailure.key <> " " <> behaviorFailure.subject <> " [" <> behaviorFailure.code <> "] " <> behaviorFailure.detail, False) | behaviorFailure <- report.failed]+ <> [(summary, behaviorConformancePassed report)]+ where+ keyRows category keys = [(category <> "/" <> unBehaviorKey key, False) | key <- keys]+ summary =+ "summary"+ <> countField "required" report.required+ <> countField "filled" report.filled+ <> countField "pending" report.pending+ <> countField "missing" report.missing+ <> countField "duplicate" report.duplicate+ <> countField "stale" report.stale+ <> " failed=" <> tshow (length report.failed)+ <> countField "verified" report.verified+ <> countField "unverified" report.unverified+ countField label values = " " <> label <> "=" <> tshow (length values) runWitness :: BehaviorRequirement -> BehaviorWitness -> Either BehaviorFailure () runWitness requirement witness = case witness of
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Codec ( hospitalCodec, parseHospitalEvent,
@@ -1,5 +1,5 @@ {-# LANGUAGE TemplateHaskell #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Domain where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.EventStream ( hospitalCategory , hospitalCommandCategory
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Harness (harnessAssertions) where import Generated.TransferRouting.Hospital.Domain
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Projection () where -- No projection declarations are present; this module keeps the generated manifest inventory total.
@@ -1,6 +1,6 @@ {-# LANGUAGE BlockArguments #-} {-# LANGUAGE QualifiedDo #-}--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from aggregate Hospital; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from aggregate Hospital; do not edit. module Generated.TransferRouting.Hospital.Transducer ( hospitalTransducer , hospitalFoldFingerprint
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.ReadModel ( hospitalLoadReadModel , hospitalLoadQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts) where import Generated.TransferRouting.HospitalLoad.ReadModel (hospitalLoadReadModel, hospitalLoadAsyncProjection)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from readmodel hospital_load; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from readmodel hospital_load; do not edit. module Generated.TransferRouting.HospitalLoad.ReadModelTable (hospitalLoadQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from router HospitalTransferRouter; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from router HospitalTransferRouter; do not edit. module Generated.TransferRouting.HospitalTransferRouter.Router ( hospitalTransferRouterName , hospitalTransferRouterWorkerOptions
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from router HospitalTransferRouter; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from router HospitalTransferRouter; do not edit. module Generated.TransferRouting.HospitalTransferRouter.RouterHarness (routerHarnessValues) where routerHarnessValues :: [(String, String)]
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context transfer-routing inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context transfer-routing inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context transfer-routing replay-audit assembly; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context transfer-routing replay-audit assembly; do not edit. -- -- Deployment contract: -- * replay-neutral diff: no data audit is required;
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-query-only inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-query-only inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-query-only generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-query-only generated nominal declarations; do not edit. module Generated.MappedNominalQueryOnly.Nominals ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-query-only generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-query-only generated nominal ID internals; do not edit. module Generated.MappedNominalQueryOnly.Nominals.Internal ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from projection-catalog mapped-nominal-query-only; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from projection-catalog mapped-nominal-query-only; do not edit. {-# LANGUAGE OverloadedStrings #-} module Generated.MappedNominalQueryOnly.ProjectionCatalog ( projectionCatalog
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-query-only structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-query-only structural conformance; do not edit. module Generated.MappedNominalQueryOnly.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit. module Generated.MappedNominalQueryOnly.TemplateLookup.QueryContract ( TemplateLookupQueryInput , TemplateLookupQueryResult
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit. module Generated.MappedNominalQueryOnly.TemplateLookup.ReadModel ( templateLookupReadModel , templateLookupQualifiedTable
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit. module Generated.MappedNominalQueryOnly.TemplateLookup.ReadModelHarness (readModelFacts, readModelFactResults, runReadModelFacts, catalogFactsAgainst) where import Generated.MappedNominalQueryOnly.TemplateLookup.ReadModel (templateLookupReadModel)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from readmodel template_lookup; do not edit. module Generated.MappedNominalQueryOnly.TemplateLookup.ReadModelTable (templateLookupQualifiedTable) where import Data.Text (Text)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-queue-only generated nominal declarations; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-queue-only generated nominal declarations; do not edit. module Generated.MappedNominalQueueOnly.Nominals ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-queue-only generated nominal ID internals; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-queue-only generated nominal ID internals; do not edit. module Generated.MappedNominalQueueOnly.Nominals.Internal ( TemplateId , parseTemplateId
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-queue-only structural nominal leaves; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-queue-only structural nominal leaves; do not edit. module Generated.MappedNominalQueueOnly.Structural.NominalLeaves where import Data.Aeson (Value (..), withText)
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from context mapped-nominal-queue-only structural conformance; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from context mapped-nominal-queue-only structural conformance; do not edit. module Generated.MappedNominalQueueOnly.StructuralConformance ( structuralConformanceAssertions ) where
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue template_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue template_work; do not edit. module Generated.MappedNominalQueueOnly.TemplateWork.Queue ( TemplateWork (..) , encodeTemplateWork
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue template_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue template_work; do not edit. -- | Versioned job payload envelope: @{\"v\",\"t\",\"data\"}@. -- -- Deploy workers before producers when raising its schema version. Do not
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 6) from workqueue template_work; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 6) from workqueue template_work; do not edit. module Generated.MappedNominalQueueOnly.TemplateWork.QueuePolicy ( TemplateWorkOutcome (..) , retryPolicy, jobOutcomeFor
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context nominal-scalars behavior source map; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context nominal-scalars behavior source map; do not edit. module Generated.NominalScalars.BehaviorSourceMap ( BehaviorSourceLocation (..) , behaviorSourceLocation
@@ -1,4 +1,4 @@--- @generated by keiro-dsl 0.25.1.0 (language keiro-dsl 4) from context nominal-scalars inspection catalog; do not edit.+-- @generated by keiro-dsl 0.26.0.0 (language keiro-dsl 4) from context nominal-scalars inspection catalog; do not edit. -- -- The complete read-only inspection catalog for this service: one aggregate -- inspector per declared aggregate, the replay-audit targets and the projection
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff
file too large to diff