eutaxy 0.11.0 → 0.12.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 +13 -6
- package/dist/bin.mjs +2 -2
- package/dist/cli-BFTyLLRF.mjs +2 -0
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cloudflare.mjs +1 -1
- package/dist/index.d.mts +14 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/src-CWVQEhTr.mjs.map +1 -1
- package/dist/{src-BYm3aLWV.mjs → src-DIG0_CjU.mjs} +665 -25
- package/dist/src-DIG0_CjU.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/cli-CMJqrBq-.mjs +0 -2
- package/dist/src-BYm3aLWV.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ on state that was still current.
|
|
|
21
21
|
|
|
22
22
|
**Status: early.** The documentation is at
|
|
23
23
|
[eutaxy.dev](https://eutaxy.dev). The design is in
|
|
24
|
-
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
25
|
-
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
24
|
+
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/docs/design.md); the phases and their gates are in
|
|
25
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/docs/roadmap.md).
|
|
26
26
|
|
|
27
27
|
## Verdicts
|
|
28
28
|
|
|
@@ -74,7 +74,7 @@ Write a scenario beside your Worker and run the check:
|
|
|
74
74
|
eutaxy check ./payments.sim.ts
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
77
|
+
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/examples/payments-queue) is a complete, runnable
|
|
78
78
|
version of this: a queue consumer with a bug the check finds, and the fixed
|
|
79
79
|
Worker it reports `BOUNDED` for.
|
|
80
80
|
|
|
@@ -128,7 +128,14 @@ with a count (or `--json`). No scenario runs, so nothing is `CHECKED`, and
|
|
|
128
128
|
the modules are loaded in Node, so one that only loads inside workerd stays
|
|
129
129
|
`UNKNOWN` until an engine reads it; so does a module whose properties do
|
|
130
130
|
not finish within 60 seconds. It exits 1 for a `REFUTED` or `CONFLICT`
|
|
131
|
-
spec and 0 otherwise.
|
|
131
|
+
spec and 0 otherwise. `--goals` writes the properties the Lean engine
|
|
132
|
+
could not prove beside each spec file as a proof file with every proof
|
|
133
|
+
open, for a proof to be supplied.
|
|
134
|
+
|
|
135
|
+
A coding agent runs all of this through one tool: `eutaxy mcp` serves the
|
|
136
|
+
Model Context Protocol over stdio, with `check`, `report`, `goals`,
|
|
137
|
+
`prove` and `prover_status`, each returning the JSON report. Verdicts
|
|
138
|
+
depend only on files in the repository; nothing in Eutaxy calls a model.
|
|
132
139
|
|
|
133
140
|
## Developing
|
|
134
141
|
|
|
@@ -139,8 +146,8 @@ pnpm install
|
|
|
139
146
|
pnpm check # lint, typecheck, test
|
|
140
147
|
```
|
|
141
148
|
|
|
142
|
-
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
149
|
+
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/CONTRIBUTING.md).
|
|
143
150
|
|
|
144
151
|
## License
|
|
145
152
|
|
|
146
|
-
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
153
|
+
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/LICENSE).
|
package/dist/bin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { R as main } from "./src-
|
|
3
|
-
import "./cli-
|
|
2
|
+
import { R as main } from "./src-DIG0_CjU.mjs";
|
|
3
|
+
import "./cli-BFTyLLRF.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,UAkDiB;WACN;WACA,SAAS;WACT,SAAS;;wBAGE,KAAK,yBAAyB,IAAI,KAAK"}
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { R as main } from "./src-
|
|
2
|
-
import "./cli-
|
|
1
|
+
export { R as main } from "./src-DIG0_CjU.mjs";
|
|
2
|
+
import "./cli-BFTyLLRF.mjs";
|
package/dist/cloudflare.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-Br29H7Rg.mjs";
|
|
2
|
-
import { A as serviceCall, C as r2Op, D as rpc, E as refines, F as snapshotD1, I as check, L as expectHolds, M as workflow, N as workflowRows, O as rpcResponse, P as workflowStep, S as r2Bucket, T as references, _ as http, a as cron, b as queue, c as d1Rows, d as defineScenario, f as durableObject, g as fetchCall, h as external, i as atLeastOncePerMessage, j as unique, k as service, l as d1Schema, m as everyRow, n as runDifferential, o as d1Param, p as durableObjectRows, r as createCloudflarePlatform, s as d1Read, t as checkInWorkerd, u as d1Write, v as httpResponse, w as r2Rows, x as queueAck, y as implies, z as cloudflareRegressionTest } from "./src-
|
|
2
|
+
import { A as serviceCall, C as r2Op, D as rpc, E as refines, F as snapshotD1, I as check, L as expectHolds, M as workflow, N as workflowRows, O as rpcResponse, P as workflowStep, S as r2Bucket, T as references, _ as http, a as cron, b as queue, c as d1Rows, d as defineScenario, f as durableObject, g as fetchCall, h as external, i as atLeastOncePerMessage, j as unique, k as service, l as d1Schema, m as everyRow, n as runDifferential, o as d1Param, p as durableObjectRows, r as createCloudflarePlatform, s as d1Read, t as checkInWorkerd, u as d1Write, v as httpResponse, w as r2Rows, x as queueAck, y as implies, z as cloudflareRegressionTest } from "./src-DIG0_CjU.mjs";
|
|
3
3
|
export { atLeastOnce, atLeastOncePerMessage, atMostOncePerKey, check, checkInWorkerd, cloudflareRegressionTest, createCloudflarePlatform, cron, d1Param, d1Read, d1Rows, d1Schema, d1Write, defineScenario, durableObject, durableObjectRows, everyRow, expectHolds, external, fetchCall, http, httpResponse, implies, queue, queueAck, r2Bucket, r2Op, r2Rows, references, refines, rpc, rpcResponse, runDifferential, service, serviceCall, snapshotD1, unique, workflow, workflowRows, workflowStep };
|
package/dist/index.d.mts
CHANGED
|
@@ -154,10 +154,24 @@ interface PropertyProof {
|
|
|
154
154
|
readonly property: string;
|
|
155
155
|
readonly outcome: ProofOutcome;
|
|
156
156
|
}
|
|
157
|
+
/** A property an engine gave up on, with the statement it tried to prove, for a proof to be supplied. */
|
|
158
|
+
interface OpenGoal {
|
|
159
|
+
readonly function: string;
|
|
160
|
+
readonly property: string;
|
|
161
|
+
/** The statement in the engine's language, as it emitted it. */
|
|
162
|
+
readonly statement: string;
|
|
163
|
+
/** Why the engine gave up: its own words, first line. */
|
|
164
|
+
readonly reason: string;
|
|
165
|
+
}
|
|
157
166
|
interface ModuleProofs {
|
|
158
167
|
readonly results: readonly PropertyProof[];
|
|
159
168
|
/** Specs that did not read: properties asked for and never checked. */
|
|
160
169
|
readonly specErrors: readonly SpecError[];
|
|
170
|
+
/**
|
|
171
|
+
* The properties given up on that a supplied proof could close, when the engine takes supplied proofs
|
|
172
|
+
* and answered (empty when it closed every one; absent when it could not run or finish).
|
|
173
|
+
*/
|
|
174
|
+
readonly goals?: readonly OpenGoal[];
|
|
161
175
|
}
|
|
162
176
|
interface ProveInput {
|
|
163
177
|
/** The module's source text. */
|
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;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;;
|
|
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;;;UAIH;WACN;WACA;;WAEA;;WAEA;;UAGM;WACN,kBAAkB;;WAElB,qBAAqB;;;;;WAKrB,iBAAiB;;UAGX;;WAEN;;WAEA,OAAO;;WAEP;;WAEA;;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;;;;;;;;;;;;;;UCpFc;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"}
|