eutaxy 0.7.0 → 0.8.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/README.md +19 -5
- package/dist/bin.mjs +2 -2
- package/dist/cli-BT7zv5TL.mjs +2 -0
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cloudflare.d.mts +1 -1
- package/dist/cloudflare.mjs +1 -1
- package/dist/{combinators-B7tV5fM_.d.mts → combinators-Bsd9HKtw.d.mts} +8 -2
- package/dist/combinators-Bsd9HKtw.d.mts.map +1 -0
- package/dist/{combinators-N4LmG4p4.mjs → combinators-CVjxodAJ.mjs} +3 -2
- package/dist/combinators-CVjxodAJ.mjs.map +1 -0
- package/dist/{explore-DhfREiX9.d.mts → explore-Rwe1PPqX.d.mts} +8 -1
- package/dist/explore-Rwe1PPqX.d.mts.map +1 -0
- package/dist/index.d.mts +4 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/spec.d.mts +1 -1
- package/dist/spec.mjs +1 -1
- package/dist/{src-CMoBPQuE.mjs → src-B9L96rZW.mjs} +1374 -84
- package/dist/src-B9L96rZW.mjs.map +1 -0
- package/dist/{src-DzpZxvQi.mjs → src-BZtuuu_j.mjs} +354 -70
- package/dist/src-BZtuuu_j.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/cli-CL28yx3H.mjs +0 -2
- package/dist/combinators-B7tV5fM_.d.mts.map +0 -1
- package/dist/combinators-N4LmG4p4.mjs.map +0 -1
- package/dist/explore-DhfREiX9.d.mts.map +0 -1
- package/dist/src-CMoBPQuE.mjs.map +0 -1
- package/dist/src-DzpZxvQi.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ named; `refines` checks that the Worker carries out the core's decisions
|
|
|
20
20
|
on state that was still current.
|
|
21
21
|
|
|
22
22
|
**Status: 0.7, early.** The design is in
|
|
23
|
-
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
24
|
-
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
23
|
+
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.8.0/docs/design.md); the phases and their gates are in
|
|
24
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.8.0/docs/roadmap.md).
|
|
25
25
|
|
|
26
26
|
## Verdicts
|
|
27
27
|
|
|
@@ -72,7 +72,7 @@ Write a scenario beside your Worker and run the check:
|
|
|
72
72
|
eutaxy check ./payments.sim.ts
|
|
73
73
|
```
|
|
74
74
|
|
|
75
|
-
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
75
|
+
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.8.0/examples/payments-queue) is a complete, runnable
|
|
76
76
|
version of this: a queue consumer with a bug the check finds, and the fixed
|
|
77
77
|
Worker it reports `BOUNDED` for.
|
|
78
78
|
|
|
@@ -112,6 +112,20 @@ violation writes `payments.regression.test.ts`, which fails while the bug
|
|
|
112
112
|
exists and passes once it is fixed. It exits 0 for `BOUNDED`, 1 for
|
|
113
113
|
`VIOLATED` or a `REFUTED` spec, 2 for `UNSUPPORTED`, and 3 on an error.
|
|
114
114
|
|
|
115
|
+
To see every spec in a project at once, without a scenario:
|
|
116
|
+
|
|
117
|
+
```sh
|
|
118
|
+
eutaxy report ./src --prover smt
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
It finds every spec file under the directory, runs each property through
|
|
122
|
+
`TESTED` and, with `--prover`, `PROVEN`, and prints the verdicts by module
|
|
123
|
+
with a count (or `--json`). No scenario runs, so nothing is `CHECKED`, and
|
|
124
|
+
the modules are loaded in Node, so one that only loads inside workerd stays
|
|
125
|
+
`UNKNOWN` until an engine reads it; so does a module whose properties do
|
|
126
|
+
not finish within 60 seconds. It exits 1 for a `REFUTED` or `CONFLICT`
|
|
127
|
+
spec and 0 otherwise.
|
|
128
|
+
|
|
115
129
|
## Developing
|
|
116
130
|
|
|
117
131
|
Requires Node 24 and pnpm.
|
|
@@ -121,8 +135,8 @@ pnpm install
|
|
|
121
135
|
pnpm check # lint, typecheck, test
|
|
122
136
|
```
|
|
123
137
|
|
|
124
|
-
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
138
|
+
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.8.0/CONTRIBUTING.md).
|
|
125
139
|
|
|
126
140
|
## License
|
|
127
141
|
|
|
128
|
-
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
142
|
+
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.8.0/LICENSE).
|
package/dist/bin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { N as main } from "./src-
|
|
3
|
-
import "./cli-
|
|
2
|
+
import { N as main } from "./src-B9L96rZW.mjs";
|
|
3
|
+
import "./cli-BT7zv5TL.mjs";
|
|
4
4
|
// packages/eutaxy/src/bin.ts
|
|
5
5
|
process.stdout.on("error", (err) => {
|
|
6
6
|
if (err.code === "EPIPE") process.exit(process.exitCode ?? 0);
|
package/dist/cli.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.mts","names":[],"sources":["../../cli/src/main.ts"],"mappings":"A,
|
|
1
|
+
{"version":3,"file":"cli.d.mts","names":[],"sources":["../../cli/src/main.ts"],"mappings":"A,UAiCiB;WACN;WACA,SAAS;WACT,SAAS;;wBAGE,KAAK,yBAAyB,IAAI,KAAK"}
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { N as main } from "./src-
|
|
2
|
-
import "./cli-
|
|
1
|
+
export { N as main } from "./src-B9L96rZW.mjs";
|
|
2
|
+
import "./cli-BT7zv5TL.mjs";
|
package/dist/cloudflare.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as StateQuery, E as EffectSelector, S as RowCondition, T as Refines, a as PlatformData, b as Implies, c as WorkerRef, h as Invariant, i as ExternalDecl, k as JsonValue, n as Platform, o as ScenarioSpec, p as AtLeastOnce, r as Bounds, s as ScriptedResponse, w as Unique, x as References, y as EveryRow } from "./platform-Bpnav0kn.mjs";
|
|
2
2
|
import { n as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-DfPkJL0Q.mjs";
|
|
3
|
-
import { c as ModuleSpecs, g as Violated, m as ScenarioVerdict, t as ExploreOptions } from "./explore-
|
|
3
|
+
import { c as ModuleSpecs, g as Violated, m as ScenarioVerdict, t as ExploreOptions } from "./explore-Rwe1PPqX.mjs";
|
|
4
4
|
interface CloudflareRegressionOptions {
|
|
5
5
|
/** Import path of the scenario module, relative to the emitted file. */
|
|
6
6
|
readonly scenarioPath: string;
|
package/dist/cloudflare.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-hmhwh_qD.mjs";
|
|
2
|
-
import { A as snapshotD1, C as r2Rows, D as workflow, E as unique, M as expectHolds, O as workflowRows, P as cloudflareRegressionTest, S as r2Op, T as refines, _ as httpResponse, a as d1Param, b as queueAck, c as d1Schema, d as durableObject, f as durableObjectRows, g as http, h as fetchCall, i as atLeastOncePerMessage, j as check, k as workflowStep, l as d1Write, m as external, n as runDifferential, o as d1Read, p as everyRow, r as createCloudflarePlatform, s as d1Rows, t as checkInWorkerd, u as defineScenario, v as implies, w as references, x as r2Bucket, y as queue } from "./src-
|
|
2
|
+
import { A as snapshotD1, C as r2Rows, D as workflow, E as unique, M as expectHolds, O as workflowRows, P as cloudflareRegressionTest, S as r2Op, T as refines, _ as httpResponse, a as d1Param, b as queueAck, c as d1Schema, d as durableObject, f as durableObjectRows, g as http, h as fetchCall, i as atLeastOncePerMessage, j as check, k as workflowStep, l as d1Write, m as external, n as runDifferential, o as d1Read, p as everyRow, r as createCloudflarePlatform, s as d1Rows, t as checkInWorkerd, u as defineScenario, v as implies, w as references, x as r2Bucket, y as queue } from "./src-B9L96rZW.mjs";
|
|
3
3
|
export { atLeastOnce, atLeastOncePerMessage, atMostOncePerKey, check, checkInWorkerd, cloudflareRegressionTest, createCloudflarePlatform, d1Param, d1Read, d1Rows, d1Schema, d1Write, defineScenario, durableObject, durableObjectRows, everyRow, expectHolds, external, fetchCall, http, httpResponse, implies, queue, queueAck, r2Bucket, r2Op, r2Rows, references, refines, runDifferential, snapshotD1, unique, workflow, workflowRows, workflowStep };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What a spec file writes: `forall(f, { when, ensures })` and `total(f)`.
|
|
2
|
+
* What a spec file writes: `forall(f, { sample, when, ensures })` and `total(f)`.
|
|
3
3
|
* Both return plain data holding the function itself, so the user's
|
|
4
4
|
* compiler types the arrows' parameters as `f`'s and a spec that does not
|
|
5
5
|
* match its function does not compile. Nothing here runs a check: the
|
|
@@ -12,10 +12,15 @@ type Fn = (...args: never[]) => unknown;
|
|
|
12
12
|
* A universally quantified claim: for every input of `fn`'s parameter
|
|
13
13
|
* types where `when` holds, `ensures` holds. `ensures` is evaluated only
|
|
14
14
|
* where `when` does, so a guard such as `c !== null` protects what follows.
|
|
15
|
+
* `sample` is not part of the claim: it limits the inputs the `TESTED`
|
|
16
|
+
* rung draws (to keep each evaluation small, say), and the verdict says
|
|
17
|
+
* so; inputs the simulator passed are checked whatever it says, and an
|
|
18
|
+
* engine proves the claim for every input.
|
|
15
19
|
*/
|
|
16
20
|
interface Forall<F extends Fn> {
|
|
17
21
|
readonly kind: "forall";
|
|
18
22
|
readonly fn: F;
|
|
23
|
+
readonly sample?: (...args: Parameters<F>) => boolean;
|
|
19
24
|
readonly when?: (...args: Parameters<F>) => boolean;
|
|
20
25
|
readonly ensures: (...args: Parameters<F>) => boolean;
|
|
21
26
|
}
|
|
@@ -26,6 +31,7 @@ interface Total<F extends Fn> {
|
|
|
26
31
|
}
|
|
27
32
|
type Spec = Forall<Fn> | Total<Fn>;
|
|
28
33
|
declare function forall<F extends Fn>(fn: F, property: {
|
|
34
|
+
readonly sample?: (...args: Parameters<F>) => boolean;
|
|
29
35
|
readonly when?: (...args: Parameters<F>) => boolean;
|
|
30
36
|
readonly ensures: (...args: Parameters<F>) => boolean;
|
|
31
37
|
}): Forall<F>;
|
|
@@ -33,4 +39,4 @@ declare function total<F extends Fn>(fn: F): Total<F>;
|
|
|
33
39
|
/** Whether a spec file's export is one of the two spec shapes. */
|
|
34
40
|
declare function isSpec(value: unknown): value is Spec;
|
|
35
41
|
export { forall as a, Total as i, Forall as n, isSpec as o, Spec as r, total as s, Fn as t };
|
|
36
|
-
//# sourceMappingURL=combinators-
|
|
42
|
+
//# sourceMappingURL=combinators-Bsd9HKtw.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinators-Bsd9HKtw.d.mts","names":[],"sources":["../../spec/src/combinators.ts"],"mappings":";;;;;;;;;KAUY,SAAS;;;;;;;;;;UAWJ,OAAO,UAAU;WACvB;WACA,IAAI;WACJ,aAAa,MAAM,WAAW;WAC9B,WAAW,MAAM,WAAW;WAC5B,aAAa,MAAM,WAAW;;;UAIxB,MAAM,UAAU;WACtB;WACA,IAAI;;KAGH,OAAO,OAAO,MAAM,MAAM;iBAEtB,OAAO,UAAU,IAC/B,IAAI,GACJ;WACW,aAAa,MAAM,WAAW;WAC9B,WAAW,MAAM,WAAW;WAC5B,aAAa,MAAM,WAAW;IAExC,OAAO;iBAUM,MAAM,UAAU,IAAI,IAAI,IAAI,MAAM;;iBAKlC,OAAO,iBAAiB,SAAS"}
|
|
@@ -3,6 +3,7 @@ function forall(fn, property) {
|
|
|
3
3
|
return {
|
|
4
4
|
kind: "forall",
|
|
5
5
|
fn,
|
|
6
|
+
...property.sample === void 0 ? {} : { sample: property.sample },
|
|
6
7
|
...property.when === void 0 ? {} : { when: property.when },
|
|
7
8
|
ensures: property.ensures
|
|
8
9
|
};
|
|
@@ -19,8 +20,8 @@ function isSpec(value) {
|
|
|
19
20
|
const v = value;
|
|
20
21
|
if (typeof v.fn !== "function") return false;
|
|
21
22
|
if (v.kind === "total") return true;
|
|
22
|
-
return v.kind === "forall" && typeof v.ensures === "function" && (v.when === void 0 || typeof v.when === "function");
|
|
23
|
+
return v.kind === "forall" && typeof v.ensures === "function" && (v.when === void 0 || typeof v.when === "function") && (v.sample === void 0 || typeof v.sample === "function");
|
|
23
24
|
}
|
|
24
25
|
export { isSpec as n, total as r, forall as t };
|
|
25
26
|
|
|
26
|
-
//# sourceMappingURL=combinators-
|
|
27
|
+
//# sourceMappingURL=combinators-CVjxodAJ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinators-CVjxodAJ.mjs","names":[],"sources":["../../spec/src/combinators.ts"],"sourcesContent":["/**\n * What a spec file writes: `forall(f, { sample, when, ensures })` and `total(f)`.\n * Both return plain data holding the function itself, so the user's\n * compiler types the arrows' parameters as `f`'s and a spec that does not\n * match its function does not compile. Nothing here runs a check: the\n * simulator's rungs evaluate the arrows on inputs, and the engines read\n * the spec file's text.\n */\n\n/** Any function; `never[]` so that every parameter list is accepted. */\nexport type Fn = (...args: never[]) => unknown;\n\n/**\n * A universally quantified claim: for every input of `fn`'s parameter\n * types where `when` holds, `ensures` holds. `ensures` is evaluated only\n * where `when` does, so a guard such as `c !== null` protects what follows.\n * `sample` is not part of the claim: it limits the inputs the `TESTED`\n * rung draws (to keep each evaluation small, say), and the verdict says\n * so; inputs the simulator passed are checked whatever it says, and an\n * engine proves the claim for every input.\n */\nexport interface Forall<F extends Fn> {\n readonly kind: \"forall\";\n readonly fn: F;\n readonly sample?: (...args: Parameters<F>) => boolean;\n readonly when?: (...args: Parameters<F>) => boolean;\n readonly ensures: (...args: Parameters<F>) => boolean;\n}\n\n/** The claim that `fn` terminates on every input of its parameter types. */\nexport interface Total<F extends Fn> {\n readonly kind: \"total\";\n readonly fn: F;\n}\n\nexport type Spec = Forall<Fn> | Total<Fn>;\n\nexport function forall<F extends Fn>(\n fn: F,\n property: {\n readonly sample?: (...args: Parameters<F>) => boolean;\n readonly when?: (...args: Parameters<F>) => boolean;\n readonly ensures: (...args: Parameters<F>) => boolean;\n },\n): Forall<F> {\n return {\n kind: \"forall\",\n fn,\n ...(property.sample === undefined ? {} : { sample: property.sample }),\n ...(property.when === undefined ? {} : { when: property.when }),\n ensures: property.ensures,\n };\n}\n\nexport function total<F extends Fn>(fn: F): Total<F> {\n return { kind: \"total\", fn };\n}\n\n/** Whether a spec file's export is one of the two spec shapes. */\nexport function isSpec(value: unknown): value is Spec {\n if (typeof value !== \"object\" || value === null) return false;\n const v = value as {\n kind?: unknown;\n fn?: unknown;\n ensures?: unknown;\n when?: unknown;\n sample?: unknown;\n };\n if (typeof v.fn !== \"function\") return false;\n if (v.kind === \"total\") return true;\n return (\n v.kind === \"forall\" &&\n typeof v.ensures === \"function\" &&\n (v.when === undefined || typeof v.when === \"function\") &&\n (v.sample === undefined || typeof v.sample === \"function\")\n );\n}\n"],"mappings":";AAqCA,SAAgB,OACd,IACA,UAKW;CACX,OAAO;EACL,MAAM;EACN;EACA,GAAI,SAAS,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,SAAS,OAAO;EACnE,GAAI,SAAS,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,MAAM,SAAS,KAAK;EAC7D,SAAS,SAAS;CACpB;AACF;AAEA,SAAgB,MAAoB,IAAiB;CACnD,OAAO;EAAE,MAAM;EAAS;CAAG;AAC7B;;AAGA,SAAgB,OAAO,OAA+B;CACpD,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,MAAM,IAAI;CAOV,IAAI,OAAO,EAAE,OAAO,YAAY,OAAO;CACvC,IAAI,EAAE,SAAS,SAAS,OAAO;CAC/B,OACE,EAAE,SAAS,YACX,OAAO,EAAE,YAAY,eACpB,EAAE,SAAS,KAAA,KAAa,OAAO,EAAE,SAAS,gBAC1C,EAAE,WAAW,KAAA,KAAa,OAAO,EAAE,WAAW;AAEnD"}
|
|
@@ -83,6 +83,11 @@ type SpecType = {
|
|
|
83
83
|
} | {
|
|
84
84
|
readonly kind: "union";
|
|
85
85
|
readonly members: readonly SpecType[];
|
|
86
|
+
} |
|
|
87
|
+
/** `T[]`, `readonly T[]`, `Array<T>` or `ReadonlyArray<T>`: a JavaScript array, read-only or not. */
|
|
88
|
+
{
|
|
89
|
+
readonly kind: "array";
|
|
90
|
+
readonly element: SpecType;
|
|
86
91
|
} | {
|
|
87
92
|
readonly kind: "unknown";
|
|
88
93
|
readonly text: string;
|
|
@@ -143,6 +148,8 @@ interface Property {
|
|
|
143
148
|
readonly kind: "forall" | "total";
|
|
144
149
|
/** The parameters, named as `ensures` names them (the function's own names past its arity). */
|
|
145
150
|
readonly binders: readonly Binder[];
|
|
151
|
+
/** Where the `TESTED` rung draws inputs; not part of the claim (see `Forall`). */
|
|
152
|
+
readonly sample?: Arrow;
|
|
146
153
|
readonly when?: Arrow;
|
|
147
154
|
readonly ensures?: Arrow;
|
|
148
155
|
/**
|
|
@@ -223,4 +230,4 @@ interface ExploreOptions {
|
|
|
223
230
|
declare function replay(spec: ScenarioSpec, platform: Platform, schedule: Schedule): Promise<EffectLog>;
|
|
224
231
|
declare function explore(scenario: ScenarioSpec, platform: Platform, options: ExploreOptions): Promise<ScenarioVerdict>;
|
|
225
232
|
export { describeVerdict as _, Binder as a, ModuleSpecs as c, SpecType as d, Bounded as f, Violated as g, Unsupported as h, Arrow as i, Property as l, ScenarioVerdict as m, explore as n, FunctionSpec as o, BoundsReached as p, replay as r, Hint as s, ExploreOptions as t, SpecError as u };
|
|
226
|
-
//# sourceMappingURL=explore-
|
|
233
|
+
//# sourceMappingURL=explore-Rwe1PPqX.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore-Rwe1PPqX.d.mts","names":[],"sources":["../../core/src/verdict.ts","../../spec/src/ir.ts","../../engine/src/explore.ts"],"mappings":";UAOiB;WACN;WACA;WACA;WACA;;;;;;;WAOA;aACE;aACA;aACA;;;UAIH;WACC;WACA;WACA,SAAS;WACT;;UAGM;WACN;WACA;WACA;;UAGM,iBAAiB;WACvB;WACA,WAAW;;WAEX,OAAO;WACP,UAAU;;WAEV;WACA,QAAQ;;UAGF,gBAAgB;WACtB;WACA,QAAQ;;KAGP;UAMK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,kBAAkB,WAAW,UAAU;;iBAGnC,gBAAgB,GAAG;;;;;;;;;;;KC1DvB;WACG;;WACA;;WACA;;WACA;;WACA;WAA0B;;WAC1B;;WACA;;WAEA;;WAEA;WACA,iBAAiB;;WAEjB;WAAwB,kBAAkB;;;;WAE1C;WAAwB,SAAS;;WACjC;WAA0B;;UAExB;WACN;WACA,MAAM;;;UAIA;WACN;WACA;;;;;;;UAQM;WACN;WACA,QAAQ;WACR,QAAQ;WACR;aAAmB;aAA0B;;;;UAIvC;;WAEN;WACA,MAAM;;;UAIA;WACN;WACA,MAAM;WACN,OAAO;;;UAID;;WAEN;;WAEA;WACA;;WAEA;;;;;;;UAQM;;WAEN;WACA;;WAEA,kBAAkB;;WAElB,SAAS;WACT,OAAO;WACP,UAAU;;;;;WAKV;aAA6B;aAAwB;;;WAErD;;WAEA;;;UAIM;WACN;WACA,iBAAiB;WACjB,qBAAqB;;WAErB;;WAEA;;;UAIM;WACN;WACA;WACA;;;UAIM;WACN,oBAAoB;WACpB,iBAAiB;;UClGX;WACN;;WAEA;;;;;;;;WAQA;;;;;;;WAOA;;WAEA;;WAEA;;;;;;WAMA;;;;;;;;WAQA;aAAkC;;;;iBAqKvB,OACpB,MAAM,cACN,UAAU,UACV,UAAU,WACT,QAAQ;iBAIW,QACpB,UAAU,cACV,UAAU,UACV,SAAS,iBACR,QAAQ"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { C as StateQuery, D as EffectLog, E as EffectSelector, O as EffectRecord, S as RowCondition, T as Refines, _ as checkInvariant, b as Implies, d as FaultKind, f as Schedule, g as Violation, h as Invariant, l as validateScenario, m as AtMostOncePerKey, n as Platform, o as ScenarioSpec, p as AtLeastOnce, r as Bounds, t as EventRef, u as FaultDecision, v as checkInvariants, w as Unique, y as EveryRow } from "./platform-Bpnav0kn.mjs";
|
|
2
|
-
import { _ as describeVerdict, a as Binder, c as ModuleSpecs, d as SpecType, f as Bounded, g as Violated, h as Unsupported, i as Arrow, l as Property, m as ScenarioVerdict, n as explore, o as FunctionSpec, p as BoundsReached, r as replay, s as Hint, t as ExploreOptions, u as SpecError } from "./explore-
|
|
3
|
-
import { n as Forall, t as Fn } from "./combinators-
|
|
2
|
+
import { _ as describeVerdict, a as Binder, c as ModuleSpecs, d as SpecType, f as Bounded, g as Violated, h as Unsupported, i as Arrow, l as Property, m as ScenarioVerdict, n as explore, o as FunctionSpec, p as BoundsReached, r as replay, s as Hint, t as ExploreOptions, u as SpecError } from "./explore-Rwe1PPqX.mjs";
|
|
3
|
+
import { n as Forall, t as Fn } from "./combinators-Bsd9HKtw.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* Spec verdicts: what is known about one property of one pure function.
|
|
6
6
|
* Kept apart from scenario verdicts in every report. The ladder runs
|
|
@@ -125,6 +125,8 @@ export declare function testedRung(input: TestedInput): SpecVerdict;
|
|
|
125
125
|
interface LadderOptions {
|
|
126
126
|
/** Run the `TESTED` rung with these options; `false` stops the ladder at `CHECKED`. */
|
|
127
127
|
readonly tested?: TestedOptions | false;
|
|
128
|
+
/** `false` when no scenario ran (`eutaxy report`): the ladder starts at `TESTED`, which it then needs. */
|
|
129
|
+
readonly checked?: false;
|
|
128
130
|
}
|
|
129
131
|
/** One property through the ladder's rungs. */
|
|
130
132
|
export declare function specLadder(input: CheckedInput, options?: LadderOptions): SpecVerdict;
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../core/src/spec-verdict.ts","../../prover/src/checked.ts","../../prover/src/tested.ts","../../prover/src/ladder.ts","../../prover/src/provers.ts","../../engine/src/observe.ts","../../engine/src/shrink.ts","../../report/src/regression.ts","../../report/src/render.ts"],"mappings":";;;;;;;;;;UAQU;;WAEC;WACA;;WAEA;;WAEA;WACA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;;;UAIM,eAAe;WACrB;;WAEA;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN;aAA6B;aAAuB;;;WAEpD;;WAEA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;aAAoB;aAAuB;;WAC3C,gBAAgB;;;UAIV,eAAe;WACrB;WACA;aAAmB;aAAuB;;;WAE1C;;WAEA;;;UAIM,iBAAiB;WACvB;WACA;aAAmB;aAAuB;;WAC1C;aACE;aACA;aACA,iBAAiB;;;KAIlB;UAEK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,cAAc,UAAU,SAAS,SAAS,UAAU,WAAW;;wBAG3D,oBAAoB,GAAG;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../core/src/spec-verdict.ts","../../prover/src/checked.ts","../../prover/src/tested.ts","../../prover/src/ladder.ts","../../prover/src/provers.ts","../../engine/src/observe.ts","../../engine/src/shrink.ts","../../report/src/regression.ts","../../report/src/render.ts"],"mappings":";;;;;;;;;;UAQU;;WAEC;WACA;;WAEA;;WAEA;WACA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;;;UAIM,eAAe;WACrB;;WAEA;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN;aAA6B;aAAuB;;;WAEpD;;WAEA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;aAAoB;aAAuB;;WAC3C,gBAAgB;;;UAIV,eAAe;WACrB;WACA;aAAmB;aAAuB;;;WAE1C;;WAEA;;;UAIM,iBAAiB;WACvB;WACA;aAAmB;aAAuB;;WAC1C;aACE;aACA;aACA,iBAAiB;;;KAIlB;UAEK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,cAAc,UAAU,SAAS,SAAS,UAAU,WAAW;;wBAG3D,oBAAoB,GAAG;UCzBtB;WACN;WACA,IAAI;WACJ,UAAU;;WAEV;aAA2B;;;WAE3B,MAAM,OAAO;;WAEb;;wBAGK,YAAY,OAAO,eAAe;UCvDjC;;WAEN;;WAEA;;UAGM,oBAAoB;WAC1B;WACA,IAAI;WACJ,UAAU;;WAEV,MAAM,OAAO;;wBAGR,WAAW,OAAO,cAAc;UC1B/B;;WAEN,SAAS;;WAET;;;wBAIK,WAAW,OAAO,cAAc,UAAS,gBAAqB;UCL7D;WACN;WACA;;KAGC;WACG;WAAyB,QAAQ;WAAmB;;WAEpD;WACA,QAAQ;WACR,iBAAiB;WACjB;;WAGA;WACA;WACA;;UAGE;WACN;;WAEA;WACA,SAAS;;UAGH;WACN,kBAAkB;;WAElB,qBAAqB;;UAGf;;WAEN;;WAEA,OAAO;;WAEP;;WAEA;WACA;;UAGM;WACN;;EAET,aAAa;aAAmB;;aAA+B;;EAC/D,MAAM,OAAO,aAAa,QAAQ;;;UAInB;WACN;WACA,QAAQ;;;;;;;;;;;wBAYH,UACd,gBACA,mBAAmB,eACnB,kBAAkB,iBACjB;;;;;;;;;;;;;;UCnEc;WACN;;WAEA;WACA;;UAGM;WACN,gBAAgB;;WAEhB;cAA0B;;;EAEnC;;wBAGc,YAAY,mBAAmB,+BAA+B;;wBCK9D,aACd,UAAU,UACV,MAAM,cACN,6BACC;UC7Bc;;WAEN;;WAEA;;WAEA;;WAEA;WACA;;;;;;WAMA;aACE;aACA;;;wBAIG,mBAAmB,SAAS,UAAU,SAAS;;;;;wBCf/C,WAAW,SAAS,iBAAiB,iBAAgB;;wBAarD,YAAY,gBAAgB;;wBA6G5B,YAAY,KAAK,WAAW;;wBAuB5B,WAAW,SAAS"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as explore, b as checkInvariants, o as replay, s as restrictSpec, t as observeCore, v as validateScenario, y as checkInvariant } from "./src-BO7I3f-1.mjs";
|
|
2
|
-
import { a as
|
|
2
|
+
import { a as renderText, b as describeVerdict, c as aggregate, d as testedRung, i as renderSpecs, o as renderTrace, p as checkedRung, s as emitRegressionTest, t as renderJson, u as specLadder } from "./src-BZtuuu_j.mjs";
|
|
3
3
|
// packages/core/src/spec-verdict.ts
|
|
4
4
|
/** One line per spec verdict, for error messages; full rendering lives in `report`. */
|
|
5
5
|
function describeSpecVerdict(v) {
|
package/dist/spec.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as forall, i as Total, n as Forall, o as isSpec, r as Spec, s as total, t as Fn } from "./combinators-
|
|
1
|
+
import { a as forall, i as Total, n as Forall, o as isSpec, r as Spec, s as total, t as Fn } from "./combinators-Bsd9HKtw.mjs";
|
|
2
2
|
export { type Fn, type Forall, type Spec, type Total, forall, isSpec, total };
|
package/dist/spec.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as forall, n as isSpec, r as total } from "./combinators-
|
|
1
|
+
export { t as forall, n as isSpec, r as total } from "./combinators-CVjxodAJ.mjs";
|