lawspec 0.25.0 → 0.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +109 -1
- package/NORMALIZATION-LICENSES.txt +296 -0
- package/README.md +13 -4
- package/api.mjs +0 -8
- package/bin/lawspec.mjs +114 -79
- package/build.json +99 -117
- package/core.wasm +2 -2
- package/core_jsffi.js +5 -0
- package/doctor.mjs +14 -4
- package/examples/native-payments/clojure/lawspec.json +1 -1
- package/examples/native-payments/csharp/lawspec.json +1 -1
- package/examples/native-payments/elixir/lawspec.json +1 -1
- package/examples/native-payments/erlang/lawspec.json +1 -1
- package/examples/native-payments/fsharp/lawspec.json +1 -1
- package/examples/native-payments/gleam/lawspec.json +1 -1
- package/examples/native-payments/go/lawspec.json +1 -1
- package/examples/native-payments/groovy/lawspec.json +1 -1
- package/examples/native-payments/haskell/lawspec.json +1 -1
- package/examples/native-payments/java/lawspec.json +1 -1
- package/examples/native-payments/javascript/lawspec.json +1 -1
- package/examples/native-payments/kotlin/lawspec.json +1 -1
- package/examples/native-payments/prolog/lawspec.json +20 -0
- package/examples/native-payments/prolog/src/domain/payments.pl +23 -0
- package/examples/native-payments/prolog/tests/domain/payment_generators.pl +17 -0
- package/examples/native-payments/python/lawspec.json +1 -1
- package/examples/native-payments/rust/lawspec.json +1 -1
- package/examples/native-payments/scala/lawspec.json +1 -1
- package/examples/native-payments/swift/lawspec.json +1 -1
- package/examples/native-payments/typescript/lawspec.json +1 -1
- package/examples/packages/orders/lawspec.json +1 -1
- package/examples/packages/orders/orders.lawspec +27 -25
- package/examples/packages/shop-domain/src/domain.lawspec +15 -14
- package/examples/packages/shop-tax-1/src/api.lawspec +1 -0
- package/examples/packages/shop-tax-1/src/rates.lawspec +1 -0
- package/examples/packages/shop-tax-2/src/api.lawspec +1 -0
- package/examples/packages/shop-tax-2/src/rates.lawspec +1 -0
- package/examples/rc1/authorization-snapshots.lawspec +24 -23
- package/examples/rc1/banner-filenames.lawspec +7 -6
- package/examples/rc1/bit-codec.lawspec +12 -11
- package/examples/rc1/bounded-witness-search.lawspec +52 -45
- package/examples/rc1/conflicting-requirements.lawspec +8 -7
- package/examples/rc1/constructive-witnesses.lawspec +40 -33
- package/examples/rc1/documentary-review.lawspec +9 -8
- package/examples/rc1/empty-domains.lawspec +16 -15
- package/examples/rc1/finite-integer-domains.lawspec +24 -23
- package/examples/rc1/law-metadata.lawspec +6 -5
- package/examples/rc1/native-payments.lawspec +17 -16
- package/examples/rc1/nesting/rrr.lawspec +4 -3
- package/examples/rc1/nesting/rru.lawspec +7 -6
- package/examples/rc1/nesting/rur.lawspec +7 -6
- package/examples/rc1/nesting/ruu.lawspec +10 -9
- package/examples/rc1/nesting/urr.lawspec +7 -6
- package/examples/rc1/nesting/uru.lawspec +10 -9
- package/examples/rc1/nesting/uur.lawspec +10 -9
- package/examples/rc1/nesting/uuu.lawspec +13 -12
- package/examples/rc1/order-workflow.lawspec +18 -17
- package/examples/rc1/parcel-measurements.lawspec +14 -13
- package/examples/rc1/picture-records.lawspec +6 -5
- package/examples/rc1/picture-tuples.lawspec +6 -5
- package/examples/rc1/record-payloads.lawspec +12 -11
- package/examples/rc1/recursive-records.lawspec +11 -10
- package/examples/rc1/refund-conformance.lawspec +7 -6
- package/examples/rc1/refund-policy.lawspec +15 -14
- package/examples/rc1/requirement-composition.lawspec +26 -25
- package/examples/rc1/structural-records.lawspec +13 -12
- package/examples/rc1-authoring.lawspec +6 -5
- package/examples/specs/abilities.lawspec +67 -65
- package/examples/specs/ability_imports.lawspec +58 -57
- package/examples/specs/actors.lawspec +23 -22
- package/examples/specs/algebra.lawspec +142 -141
- package/examples/specs/approvals.lawspec +19 -18
- package/examples/specs/async_bindings.lawspec +10 -9
- package/examples/specs/async_fetch.lawspec +12 -11
- package/examples/specs/atoi_codec.lawspec +16 -15
- package/examples/specs/boolean_flags.lawspec +10 -9
- package/examples/specs/builtins.lawspec +73 -72
- package/examples/specs/canonical_url.lawspec +14 -13
- package/examples/specs/collections.lawspec +153 -154
- package/examples/specs/composition.lawspec +70 -66
- package/examples/specs/concurrent_collections.lawspec +8 -7
- package/examples/specs/consistency.lawspec +4 -3
- package/examples/specs/contracts.lawspec +80 -79
- package/examples/specs/crypto.lawspec +26 -25
- package/examples/specs/ctc.lawspec +148 -0
- package/examples/specs/currying.lawspec +32 -31
- package/examples/specs/data_types.lawspec +50 -49
- package/examples/specs/distribution.lawspec +57 -56
- package/examples/specs/domain_modeling.lawspec +68 -47
- package/examples/specs/durations.lawspec +39 -38
- package/examples/specs/equivalent.lawspec +25 -24
- package/examples/specs/failures.lawspec +64 -63
- package/examples/specs/finite_data.lawspec +32 -31
- package/examples/specs/flow_stack.lawspec +64 -63
- package/examples/specs/gadt_expressions.lawspec +50 -49
- package/examples/specs/generation.lawspec +115 -114
- package/examples/specs/handler_bindings.lawspec +42 -40
- package/examples/specs/handles.lawspec +2 -1
- package/examples/specs/harness.lawspec +45 -43
- package/examples/specs/harness_testing.lawspec +18 -13
- package/examples/specs/indexed_arithmetic.lawspec +401 -126
- package/examples/specs/indexed_families.lawspec +182 -66
- package/examples/specs/keywords.lawspec +22 -21
- package/examples/specs/limits.lawspec +7 -6
- package/examples/specs/list_contracts.lawspec +121 -120
- package/examples/specs/list_refinements.lawspec +43 -42
- package/examples/specs/lists.lawspec +45 -44
- package/examples/specs/matchers.lawspec +79 -78
- package/examples/specs/matching.lawspec +43 -42
- package/examples/specs/mixed_inputs.lawspec +25 -24
- package/examples/specs/models.lawspec +44 -43
- package/examples/specs/parse_port.lawspec +28 -27
- package/examples/specs/payments.lawspec +55 -54
- package/examples/specs/railway.lawspec +59 -58
- package/examples/specs/records.lawspec +149 -148
- package/examples/specs/records_inner.lawspec +5 -4
- package/examples/specs/recursive_refinements.lawspec +30 -29
- package/examples/specs/refined_definitions.lawspec +24 -23
- package/examples/specs/refinements.lawspec +58 -57
- package/examples/specs/resilience.lawspec +161 -160
- package/examples/specs/resources.lawspec +61 -60
- package/examples/specs/scalar_adapters.lawspec +60 -59
- package/examples/specs/scalar_catalog.lawspec +165 -164
- package/examples/specs/scalars.lawspec +78 -77
- package/examples/specs/scheduling_order.lawspec +8 -7
- package/examples/specs/scheduling_overlap.lawspec +5 -4
- package/examples/specs/sequences.lawspec +66 -65
- package/examples/specs/sessions.lawspec +13 -12
- package/examples/specs/slug.lawspec +16 -15
- package/examples/specs/sum_refinements.lawspec +42 -41
- package/examples/specs/tables.lawspec +29 -28
- package/examples/specs/total_functions.lawspec +71 -70
- package/examples/specs/workflows.lawspec +101 -100
- package/examples-command.mjs +7 -7
- package/explain.mjs +6 -4
- package/expression-presentation.mjs +8 -8
- package/files.mjs +1 -1
- package/index.d.ts +10 -528
- package/launcher.mjs +9 -2
- package/lsp.mjs +10 -6
- package/native-evidence.mjs +25 -12
- package/native-examples.mjs +3 -3
- package/package.json +2 -1
- package/starter-rc1.lawspec +6 -5
- package/starter.lawspec +16 -15
- package/templates.mjs +88 -5
- package/test-command.mjs +40 -4
- package/migrate.mjs +0 -135
- package/migration-bindings.mjs +0 -86
- package/migration-cases.mjs +0 -45
- package/migration-collections.mjs +0 -54
- package/migration-correspondence.mjs +0 -275
- package/migration-generation.mjs +0 -99
- package/migration-laws.mjs +0 -102
- package/migration-records.mjs +0 -166
- package/migration-source.mjs +0 -247
- package/migration-write.mjs +0 -156
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,112 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [0.27.0] - 2026-10-21
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- The `prolog` program target uses SWI-Prolog and Janus with checked schemas,
|
|
14
|
+
native functions and handlers, Hypothesis generator factories, PLUnit
|
|
15
|
+
selection, replay and structured incomplete execution evidence. Its reference
|
|
16
|
+
page records supported interfaces and remaining acceptance work.
|
|
17
|
+
- Prolog native bindings support qualified record/variant/unit representations,
|
|
18
|
+
resolved nested field layouts, retained native handle tokens, constructors,
|
|
19
|
+
methods and typed native exception mappings, including message products.
|
|
20
|
+
- The `hcl`, `yaml`, `antlr4` and `make` artifact targets emit checked
|
|
21
|
+
configuration, schemas, syntax grammars and ordered CLI pipelines. Missing
|
|
22
|
+
inputs and unsupported constraints remain explicit; artifact generation
|
|
23
|
+
does not claim application law execution.
|
|
24
|
+
- Generated Rust handlers expose supported construction and state
|
|
25
|
+
snapshot/restoration methods for embedding checked reference models.
|
|
26
|
+
- `lawspec evidence --attestation` links each law `lawspec test` recorded
|
|
27
|
+
under the attestation's run id to that run as completed, with its outcome
|
|
28
|
+
and the run's exit code. An attestation whose `execution.status` is
|
|
29
|
+
`wired` or `running` stays planned and says why.
|
|
30
|
+
- Evidence reports a completed run's architecture, topology and application
|
|
31
|
+
identities and, per dependency, its node, edge, contract, implementation
|
|
32
|
+
and whether the real provider or a fixture implemented it, with the
|
|
33
|
+
history it ran against (the completed history digest, else the
|
|
34
|
+
stand-in's). Each law lists its providers.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- BEAM workflow acceptance checks observe overlapping checks within their own
|
|
39
|
+
runtime instead of a host-speed deadline. Sequential and unrelated-runtime
|
|
40
|
+
mutants must fail the concurrency law. Erlang's hedge check observes the
|
|
41
|
+
winning attempt and cancellation of its stalled predecessor, with an explicit
|
|
42
|
+
missing-hedge control.
|
|
43
|
+
- Cached `lawspec evidence` keeps explicit running or wired environment
|
|
44
|
+
attestations planned. Passing native tests no longer relabel an unfinished
|
|
45
|
+
environment as executed wiring. Completed documents retain their outcomes;
|
|
46
|
+
older receipts without execution states keep their existing meaning.
|
|
47
|
+
|
|
48
|
+
- ANTLR includes concrete declaration inputs and exports typed EOF parser
|
|
49
|
+
entries with exact schema references. Overlapping generic representations
|
|
50
|
+
retain their expected type; closed indexed inputs remain explicitly unsupported.
|
|
51
|
+
- Prolog application and generator modules retain qualified predicate names
|
|
52
|
+
without conflicting imports into the global `user` module.
|
|
53
|
+
- Prolog retains the host harness's seeded ordering, parallel execution and
|
|
54
|
+
shared-resource scopes in one selected test session. Per-slot reports keep
|
|
55
|
+
incomplete worker results distinct from failures and successful cases.
|
|
56
|
+
- Cancelling an async Prolog waiter releases timeouts and losing hedges
|
|
57
|
+
without joining still-running native work at event-loop shutdown. Worker
|
|
58
|
+
contexts and structured incomplete results remain attached to their calls.
|
|
59
|
+
- Cached network replies tolerate a caller that already closed, as original
|
|
60
|
+
replies do. Duplicate requests still reuse their recorded result.
|
|
61
|
+
- Prolog uses plain assertions and standard Python tracebacks for large
|
|
62
|
+
generated suites. Optimized Python is rejected before native execution or
|
|
63
|
+
cache reuse, so removed assertions cannot produce successful law evidence.
|
|
64
|
+
- A complete empty input domain retains its Core evidence without planning a
|
|
65
|
+
nonexistent native test. Unexpected empty native discovery still fails.
|
|
66
|
+
- A stand-in's history digest, and other observations of a run, no longer
|
|
67
|
+
make attested results stale; results are keyed by wiring only.
|
|
68
|
+
- An environment attestation stored inside the project is no longer a
|
|
69
|
+
project input, so rewriting it as the run completes leaves results fresh.
|
|
70
|
+
- A refinement alias in an ability operation's signature elaborates, and its
|
|
71
|
+
implied result law is generated; a type that cannot reach Core is reported
|
|
72
|
+
at the declaration that uses it.
|
|
73
|
+
|
|
74
|
+
## [0.26.0] - 2026-10-19
|
|
75
|
+
|
|
76
|
+
### Added
|
|
77
|
+
|
|
78
|
+
- Mandatory named endings for every block, including units, ability law groups,
|
|
79
|
+
harness law groups, let expressions and generator binds. Handler clauses use
|
|
80
|
+
explicit `operation` openers and `end operation` closers.
|
|
81
|
+
- Grammar profile `1.0-rc.2`, shared by compiler and authoring consumers.
|
|
82
|
+
|
|
83
|
+
### Fixed
|
|
84
|
+
|
|
85
|
+
- Formatter source spans survive wrapping and indentation changes, preserving
|
|
86
|
+
line-scoped generator expressions and phrase names on repeated formatting.
|
|
87
|
+
- Source formatting indents continued applications and expectations, aligns
|
|
88
|
+
record fields and closers, and keeps long phrase declarations together.
|
|
89
|
+
- Both Chapter 6 entry points use the current grammar with readable nested
|
|
90
|
+
cases, conditionals, records and expectation tables.
|
|
91
|
+
- Harness strategies expand parameterized refinements and retain dependent
|
|
92
|
+
predicates during generation and shrinking.
|
|
93
|
+
- Generated Kotlin registrations fit JVM method limits, and Haskell test
|
|
94
|
+
components avoid excessive optimization of large generated test expressions.
|
|
95
|
+
- Large JVM suites share assertion bodies and Scala registration traits retain
|
|
96
|
+
every case without exceeding class-size limits. Haskell boundary helpers
|
|
97
|
+
retain fresh symbol contexts, checked inputs and per-case handler execution.
|
|
98
|
+
- Explicit BEAM harness strategies supply observations alongside finite checks;
|
|
99
|
+
coverage uses actual strategy trials, and known failures cannot bypass their
|
|
100
|
+
strategy validation or coverage checks.
|
|
101
|
+
- Closed record handler initializers preserve distinct local bindings.
|
|
102
|
+
- Indexed generation traverses intervening structural records while preserving
|
|
103
|
+
constructor guards and dependent restrictions.
|
|
104
|
+
- WASM transfers generated JSON directly as UTF-8 and reclaims transport
|
|
105
|
+
buffers between serialized calls; the host queue releases completed responses.
|
|
106
|
+
- Large Groovy and Clojure exports release Java conversion inputs earlier.
|
|
107
|
+
Shared WASM startup uses GHC's in-place compaction within wasm32's address
|
|
108
|
+
limit, preserving the complete generated projects and test domains.
|
|
109
|
+
|
|
110
|
+
### Removed
|
|
111
|
+
|
|
112
|
+
- Pre-1.0 migration tooling, APIs and compatibility grammars. Active source and
|
|
113
|
+
consumers are updated directly until the API is stable.
|
|
114
|
+
|
|
9
115
|
## [0.25.0] - 2026-10-18
|
|
10
116
|
|
|
11
117
|
### Added
|
|
@@ -1699,7 +1805,9 @@ A maintenance release. The language, generated code and API are unchanged from
|
|
|
1699
1805
|
machine-sized bindings reject an architecture mismatch. Rust adapters take
|
|
1700
1806
|
owned values.
|
|
1701
1807
|
|
|
1702
|
-
[Unreleased]: https://github.com/brain-fuel/lawspec/compare/v0.
|
|
1808
|
+
[Unreleased]: https://github.com/brain-fuel/lawspec/compare/v0.27.0...HEAD
|
|
1809
|
+
[0.27.0]: https://github.com/brain-fuel/lawspec/compare/v0.26.0...v0.27.0
|
|
1810
|
+
[0.26.0]: https://github.com/brain-fuel/lawspec/compare/v0.25.0...v0.26.0
|
|
1703
1811
|
[0.25.0]: https://github.com/brain-fuel/lawspec/compare/v0.24.0...v0.25.0
|
|
1704
1812
|
[0.24.0]: https://github.com/brain-fuel/lawspec/compare/v0.23.0...v0.24.0
|
|
1705
1813
|
[0.23.0]: https://github.com/brain-fuel/lawspec/compare/v0.22.0...v0.23.0
|
|
@@ -0,0 +1,296 @@
|
|
|
1
|
+
Normalization dependencies used by the HCL artifact emitter.
|
|
2
|
+
Source packages: https://hackage.haskell.org/package/unicode-data-0.6.0 and https://hackage.haskell.org/package/unicode-transforms-0.4.0.1
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
unicode-data-0.6.0 / LICENSE
|
|
6
|
+
|
|
7
|
+
Apache License
|
|
8
|
+
Version 2.0, January 2004
|
|
9
|
+
http://www.apache.org/licenses/
|
|
10
|
+
|
|
11
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
12
|
+
|
|
13
|
+
1. Definitions.
|
|
14
|
+
|
|
15
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
16
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
17
|
+
|
|
18
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
19
|
+
the copyright owner that is granting the License.
|
|
20
|
+
|
|
21
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
22
|
+
other entities that control, are controlled by, or are under common
|
|
23
|
+
control with that entity. For the purposes of this definition,
|
|
24
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
25
|
+
direction or management of such entity, whether by contract or
|
|
26
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
27
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
28
|
+
|
|
29
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
30
|
+
exercising permissions granted by this License.
|
|
31
|
+
|
|
32
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
33
|
+
including but not limited to software source code, documentation
|
|
34
|
+
source, and configuration files.
|
|
35
|
+
|
|
36
|
+
"Object" form shall mean any form resulting from mechanical
|
|
37
|
+
transformation or translation of a Source form, including but
|
|
38
|
+
not limited to compiled object code, generated documentation,
|
|
39
|
+
and conversions to other media types.
|
|
40
|
+
|
|
41
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
42
|
+
Object form, made available under the License, as indicated by a
|
|
43
|
+
copyright notice that is included in or attached to the work.
|
|
44
|
+
|
|
45
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
46
|
+
form, that is based on (or derived from) the Work and for which the
|
|
47
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
48
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
49
|
+
of this License, Derivative Works shall not include works that remain
|
|
50
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
51
|
+
the Work and Derivative Works thereof.
|
|
52
|
+
|
|
53
|
+
"Contribution" shall mean any work of authorship, including
|
|
54
|
+
the original version of the Work and any modifications or additions
|
|
55
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
56
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
57
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
58
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
59
|
+
means any form of electronic, verbal, or written communication sent
|
|
60
|
+
to the Licensor or its representatives, including but not limited to
|
|
61
|
+
communication on electronic mailing lists, source code control systems,
|
|
62
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
63
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
64
|
+
excluding communication that is conspicuously marked or otherwise
|
|
65
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
66
|
+
|
|
67
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
68
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
69
|
+
subsequently incorporated within the Work.
|
|
70
|
+
|
|
71
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
72
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
73
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
74
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
75
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
76
|
+
Work and such Derivative Works in Source or Object form.
|
|
77
|
+
|
|
78
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
79
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
80
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
81
|
+
(except as stated in this section) patent license to make, have made,
|
|
82
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
83
|
+
where such license applies only to those patent claims licensable
|
|
84
|
+
by such Contributor that are necessarily infringed by their
|
|
85
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
86
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
87
|
+
institute patent litigation against any entity (including a
|
|
88
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
89
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
90
|
+
or contributory patent infringement, then any patent licenses
|
|
91
|
+
granted to You under this License for that Work shall terminate
|
|
92
|
+
as of the date such litigation is filed.
|
|
93
|
+
|
|
94
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
95
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
96
|
+
modifications, and in Source or Object form, provided that You
|
|
97
|
+
meet the following conditions:
|
|
98
|
+
|
|
99
|
+
(a) You must give any other recipients of the Work or
|
|
100
|
+
Derivative Works a copy of this License; and
|
|
101
|
+
|
|
102
|
+
(b) You must cause any modified files to carry prominent notices
|
|
103
|
+
stating that You changed the files; and
|
|
104
|
+
|
|
105
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
106
|
+
that You distribute, all copyright, patent, trademark, and
|
|
107
|
+
attribution notices from the Source form of the Work,
|
|
108
|
+
excluding those notices that do not pertain to any part of
|
|
109
|
+
the Derivative Works; and
|
|
110
|
+
|
|
111
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
112
|
+
distribution, then any Derivative Works that You distribute must
|
|
113
|
+
include a readable copy of the attribution notices contained
|
|
114
|
+
within such NOTICE file, excluding those notices that do not
|
|
115
|
+
pertain to any part of the Derivative Works, in at least one
|
|
116
|
+
of the following places: within a NOTICE text file distributed
|
|
117
|
+
as part of the Derivative Works; within the Source form or
|
|
118
|
+
documentation, if provided along with the Derivative Works; or,
|
|
119
|
+
within a display generated by the Derivative Works, if and
|
|
120
|
+
wherever such third-party notices normally appear. The contents
|
|
121
|
+
of the NOTICE file are for informational purposes only and
|
|
122
|
+
do not modify the License. You may add Your own attribution
|
|
123
|
+
notices within Derivative Works that You distribute, alongside
|
|
124
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
125
|
+
that such additional attribution notices cannot be construed
|
|
126
|
+
as modifying the License.
|
|
127
|
+
|
|
128
|
+
You may add Your own copyright statement to Your modifications and
|
|
129
|
+
may provide additional or different license terms and conditions
|
|
130
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
131
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
132
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
133
|
+
the conditions stated in this License.
|
|
134
|
+
|
|
135
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
136
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
137
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
138
|
+
this License, without any additional terms or conditions.
|
|
139
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
140
|
+
the terms of any separate license agreement you may have executed
|
|
141
|
+
with Licensor regarding such Contributions.
|
|
142
|
+
|
|
143
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
144
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
145
|
+
except as required for reasonable and customary use in describing the
|
|
146
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
147
|
+
|
|
148
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
149
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
150
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
151
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
152
|
+
implied, including, without limitation, any warranties or conditions
|
|
153
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
154
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
155
|
+
appropriateness of using or redistributing the Work and assume any
|
|
156
|
+
risks associated with Your exercise of permissions under this License.
|
|
157
|
+
|
|
158
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
159
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
160
|
+
unless required by applicable law (such as deliberate and grossly
|
|
161
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
162
|
+
liable to You for damages, including any direct, indirect, special,
|
|
163
|
+
incidental, or consequential damages of any character arising as a
|
|
164
|
+
result of this License or out of the use or inability to use the
|
|
165
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
166
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
167
|
+
other commercial damages or losses), even if such Contributor
|
|
168
|
+
has been advised of the possibility of such damages.
|
|
169
|
+
|
|
170
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
171
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
172
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
173
|
+
or other liability obligations and/or rights consistent with this
|
|
174
|
+
License. However, in accepting such obligations, You may act only
|
|
175
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
176
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
177
|
+
defend, and hold each Contributor harmless for any liability
|
|
178
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
179
|
+
of your accepting any such warranty or additional liability.
|
|
180
|
+
|
|
181
|
+
END OF TERMS AND CONDITIONS
|
|
182
|
+
|
|
183
|
+
-------------------------------------------------------------------------------
|
|
184
|
+
This distribution includes portions of code from the "unicode-transforms"
|
|
185
|
+
package (https://github.com/composewell/unicode-transforms/) which is
|
|
186
|
+
available under BSD-3-Clause license as described below.
|
|
187
|
+
-------------------------------------------------------------------------------
|
|
188
|
+
|
|
189
|
+
Copyright (c) 2016, Harendra Kumar
|
|
190
|
+
All rights reserved.
|
|
191
|
+
|
|
192
|
+
Redistribution and use in source and binary forms, with or without
|
|
193
|
+
modification, are permitted provided that the following conditions are met:
|
|
194
|
+
|
|
195
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
196
|
+
list of conditions and the following disclaimer.
|
|
197
|
+
|
|
198
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
199
|
+
this list of conditions and the following disclaimer in the documentation
|
|
200
|
+
and/or other materials provided with the distribution.
|
|
201
|
+
|
|
202
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
203
|
+
may be used to endorse or promote products derived from this software without
|
|
204
|
+
specific prior written permission.
|
|
205
|
+
|
|
206
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
207
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
208
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
209
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
210
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
211
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
212
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
213
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
214
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
215
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
216
|
+
|
|
217
|
+
-------------------------------------------------------------------------------
|
|
218
|
+
This distribution includes portions of code from the "unicode-transforms"
|
|
219
|
+
package (https://github.com/composewell/unicode-transforms/)
|
|
220
|
+
which included portions of code from the "prose"
|
|
221
|
+
(https://github.com/llelf/prose) package available under BSD-3-Clause
|
|
222
|
+
license as described below.
|
|
223
|
+
-------------------------------------------------------------------------------
|
|
224
|
+
|
|
225
|
+
Copyright (c) 2014–2015, Antonio Nikishaev
|
|
226
|
+
|
|
227
|
+
All rights reserved.
|
|
228
|
+
|
|
229
|
+
Redistribution and use in source and binary forms, with or without
|
|
230
|
+
modification, are permitted provided that the following conditions are met:
|
|
231
|
+
|
|
232
|
+
* Redistributions of source code must retain the above copyright
|
|
233
|
+
notice, this list of conditions and the following disclaimer.
|
|
234
|
+
|
|
235
|
+
* Redistributions in binary form must reproduce the above
|
|
236
|
+
copyright notice, this list of conditions and the following
|
|
237
|
+
disclaimer in the documentation and/or other materials provided
|
|
238
|
+
with the distribution.
|
|
239
|
+
|
|
240
|
+
* Neither the name of Antonio Nikishaev nor the names of other
|
|
241
|
+
contributors may be used to endorse or promote products derived
|
|
242
|
+
from this software without specific prior written permission.
|
|
243
|
+
|
|
244
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
245
|
+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
246
|
+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
247
|
+
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
248
|
+
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
249
|
+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
250
|
+
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
251
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
252
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
253
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
254
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
unicode-data-0.6.0 / NOTICE
|
|
258
|
+
unicode-data
|
|
259
|
+
Copyright 2020 Composewell Technologies and Contributors
|
|
260
|
+
|
|
261
|
+
This product includes software developed at
|
|
262
|
+
Composewell Technologies (http://www.composewell.com).
|
|
263
|
+
|
|
264
|
+
The Initial Developer of some parts of the code, which are copied from
|
|
265
|
+
https://github.com/composewell/unicode-transforms/, is Andrew Lelechenko
|
|
266
|
+
(https://github.com/Bodigrim).
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
unicode-transforms-0.4.0.1 / LICENSE
|
|
270
|
+
Copyright (c) 2016, Harendra Kumar
|
|
271
|
+
All rights reserved.
|
|
272
|
+
|
|
273
|
+
Redistribution and use in source and binary forms, with or without
|
|
274
|
+
modification, are permitted provided that the following conditions are met:
|
|
275
|
+
|
|
276
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
277
|
+
list of conditions and the following disclaimer.
|
|
278
|
+
|
|
279
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
280
|
+
this list of conditions and the following disclaimer in the documentation
|
|
281
|
+
and/or other materials provided with the distribution.
|
|
282
|
+
|
|
283
|
+
3. Neither the name of the copyright holder nor the names of its contributors
|
|
284
|
+
may be used to endorse or promote products derived from this software without
|
|
285
|
+
specific prior written permission.
|
|
286
|
+
|
|
287
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
288
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
289
|
+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
290
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
291
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
292
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
293
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
294
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
295
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
296
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
package/README.md
CHANGED
|
@@ -78,16 +78,17 @@ atoi :: Text -> Int32
|
|
|
78
78
|
law "|round trip| is
|
|
79
79
|
definition :
|
|
80
80
|
apply law "|left inverse| atoi itoa
|
|
81
|
-
end
|
|
81
|
+
end definition
|
|
82
82
|
description :
|
|
83
83
|
"applying {itoa} and then {atoi} recovers the original integer"
|
|
84
|
-
end
|
|
84
|
+
end description
|
|
85
85
|
example "|negative integers use a minus sign and round-trip unchanged| :
|
|
86
86
|
x = -42
|
|
87
87
|
expect itoa x = "-42"
|
|
88
88
|
expect atoi (itoa x) = -42
|
|
89
|
-
end
|
|
90
|
-
end
|
|
89
|
+
end example
|
|
90
|
+
end law
|
|
91
|
+
end unit
|
|
91
92
|
```
|
|
92
93
|
|
|
93
94
|
`lawspec explain` shows the final property:
|
|
@@ -115,6 +116,14 @@ configure.
|
|
|
115
116
|
|
|
116
117
|
See the [target guides](docs/how-to/targets/index.md).
|
|
117
118
|
|
|
119
|
+
The [Prolog target](docs/reference/prolog.md) uses SWI-Prolog 10+, Janus and
|
|
120
|
+
Python 3.13+, with PLUnit slots over pytest and Hypothesis. Its public interfaces
|
|
121
|
+
are implemented; the full shared native acceptance matrix remains open.
|
|
122
|
+
|
|
123
|
+
The [artifact targets](docs/reference/artifact-targets.md) generate HCL
|
|
124
|
+
variables and values, YAML configuration and schemas, ANTLR data grammars,
|
|
125
|
+
and Make pipelines. These targets emit no application law tests.
|
|
126
|
+
|
|
118
127
|
## Documentation
|
|
119
128
|
|
|
120
129
|
The [documentation](docs/index.md) has tutorials, how-to guides, a reference
|
package/api.mjs
CHANGED
|
@@ -11,13 +11,5 @@ export async function createCompiler() {
|
|
|
11
11
|
call({schemaVersion: 5, ...input, method: 'proofTasks'}),
|
|
12
12
|
planGeneration: (input) =>
|
|
13
13
|
call({schemaVersion: 5, ...input, method: 'planGeneration'}),
|
|
14
|
-
migrationBaseline: (input) =>
|
|
15
|
-
call({schemaVersion: 5, ...input, method: 'migrationBaseline'}),
|
|
16
|
-
migrationComparison: (input) =>
|
|
17
|
-
call({schemaVersion: 5, ...input, method: 'migrationComparison'}),
|
|
18
|
-
migrationBindings: (input) =>
|
|
19
|
-
call({schemaVersion: 5, ...input, method: 'migrationBindings'}),
|
|
20
|
-
migrationGeneration: (input) =>
|
|
21
|
-
call({schemaVersion: 5, ...input, method: 'migrationGeneration'}),
|
|
22
14
|
};
|
|
23
15
|
}
|