Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,7 @@ sdk/npm/**/*.lock text eol=lf
schemas/**/*.json text eol=lf
# The matrix is generated and compared byte for byte; the corpus is hashed (#287).
COMPLIANCE.md text eol=lf
# The developer view's glossary page is rendered by its model and compared byte for byte (#347).
docs/developer-glossary.md text eol=lf
sdk/npm/conformance/corpus/*.holo binary
crates/prismpm/src/generate/core-wasm.wit text eol=lf
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ To move to 1.0, read the [migration guide](docs/site/migration/to-1-0.md).
## [Unreleased]

### Features Added
- The developer view of #346 is a LexLean model (#347, experimental): `bindings/src/Foundation/Views/V1/Developer.lex.tex` declares the developer glossary once, each Docker-aligned term over the canonical term it names, the other words of the surface and the deprecated aliases. Its certified export runs in `cargo xtask check-developer-view` (part of `cargo xtask validate`), which checks every verb, flag, namespace and method of the `prism-code` surface against it and renders [docs/developer-glossary.md](docs/developer-glossary.md). Canonical model terms, schema identifiers, predicate URIs and error codes do not change; the renamed `prism-code` spellings are in its own changelog.
- `COMPLIANCE.md` shows the Rust runtime (#449, #298): `sdk/npm/conformance/runtimes.json` registers `prism-conformance-shim`, the npm conformance suite job builds it and runs the suite against it beside prism-code, and the matrix shows both runtimes passing all 24 `verify` checks. `prism.verify.pullClosure` makes every trust decision a pull needs, and signing moves to `auth` (`auth.identities.from`), so the pending `auth.mjs` to `attest.mjs` cut in `model/modules.toml` is made; see the prism-code CHANGELOG.
- `prismpm generate <path.holo> --lang <js|python|rust> --out <dir>` (#289, experimental): the Rust CLI writes the same bindings and typed client as `prism-code generate`, byte for byte apart from the generator each file header names, beside the same `prism-generate.json` record, and a run whose record and files are in place writes nothing. Every decision is the LexLean model `bindings/src/Foundation/Bindings/V1`: the new `Source.lex.tex` reads the WIT world and the model document into the code model (the WIT subset, the world's exports and memory, the application's class name, the numeric profile's operations), and `Generate.lex.tex` joins it to the JS, Python and Rust writers. `cargo xtask bindings-package` exports the three roots and vendors them into the crate, so the published `prismpm` carries them and the unpublished `prism-bindings` crate is gone. A holo generate cannot bind is `PP3201`; an output directory holding a file generate did not write is `PP3202`.
- `prismpm verify` writes the proof statement of a verified application (#266, #582): `proof-statement.json` in the verified directory, an unsigned in-toto statement with the predicate `https://uor.foundation/prism/proof/v1`. Its subject is the guest; it lists every theorem of the model with its verdict and axiom audit, the verifier, the model's identities, the named TCB and the evidence digests. The statement is the output of a LexLean model, `bindings/src/Foundation/Proof/V1/Statement.lex.tex`, exported by `cargo xtask bindings-package` into the `prismpm` crate; it writes the calculator statement of `docs/proposals/266-proof-predicate.md` byte for byte. A model with no theorem, or a project with no `prismpm.lock`, gets no statement and a line on stderr that says why. `prism-code attest --statement` signs it into the holo.
Expand Down
4 changes: 4 additions & 0 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ validate:
check-modules:
cargo run --package xtask -- check-modules

# Check the prism-code surface against the developer view's glossary (#347)
check-developer-view:
cargo run --package xtask -- check-developer-view

# Run conformance test suite by category (contracts, core, holo-stdlib, desktop-browser, system-oci, verification-schemas, or all)
conformance category="all":
cargo run --package xtask -- conformance {{category}}
Expand Down
6 changes: 3 additions & 3 deletions STABILITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,12 @@ A flag marked planned is named here so you can plan for it; its spelling may cha
| `generate --lang python`: a package that imports only the standard library, with `world.Guest`, `world.dispatch` and the typed client | [#289](https://github.com/UOR-Foundation/PrismPM/issues/289) | On main |
| `generate <path.holo> --lang <js\|python\|rust> --out <dir>` in the Rust CLI, its `prismpm/generate-result/1` result and the same `prism-generate.json` record | [#289](https://github.com/UOR-Foundation/PrismPM/issues/289) | On main |
| `prism-code run <holo>` gated on `check`, `--policy <file>`, `--allow-unverified`; the policy member `effects` and the `policy.effects` reason | [#282](https://github.com/UOR-Foundation/PrismPM/issues/282) | On main |
| `prism-code replay <history \| dir>... --holo <holo>`, `--statement <file>`, `--json` and exit codes 0, 1, 2; `prism-code check --replay <file>` | [#284](https://github.com/UOR-Foundation/PrismPM/issues/284) | On main |
| `prism-code history <holo>`, `--output <file>`; `prism-code run --record <file>` | [#284](https://github.com/UOR-Foundation/PrismPM/issues/284) | On main |
| `prism-code replay <recording \| dir>... --image <holo>` (`--holo` deprecated, removed in 0.9.0), `--statement <file>`, `--json` and exit codes 0, 1, 2; `prism-code check --replay <file>` | [#284](https://github.com/UOR-Foundation/PrismPM/issues/284) | On main |
| `prism-code record <holo>` (`history` deprecated, removed in 0.9.0), `--output <file>`; `prism-code run --record <file>` | [#284](https://github.com/UOR-Foundation/PrismPM/issues/284) | On main |
| `replay <history \| dir>... --holo <holo>`, `--statement <file>` in the Rust CLI, exit codes 0, 1, 2 | [#284](https://github.com/UOR-Foundation/PrismPM/issues/284) | On main |
| `prism-code run <holo> <input>`, `--input`, `--rm`; `prism-code inspect <container>`; `prism-code rm <container>`; the exit codes of `EXIT_CODES`; `PRISM_HOME` | [#348](https://github.com/UOR-Foundation/PrismPM/issues/348) | On main |
| `prism-code init [<dir>]`, `--name`, `--template`, `--sdk-image`, `--force`; `npm create prism-code` | [#281](https://github.com/UOR-Foundation/PrismPM/issues/281) | On main |
| `prism-code dev [<dir>]`, `--port`, `--no-open`, `--policy <file>`, `--build <command>`, `--holo <path>`; the studio on port 4100, its Check and Replay tabs and the `prism/dev-state/1` state it reads | [#288](https://github.com/UOR-Foundation/PrismPM/issues/288) | On main |
| `prism-code dev [<dir>]`, `--port`, `--no-open`, `--policy <file>`, `--build <command>`, `--image <path>` (`--holo` deprecated, removed in 0.9.0); the studio on port 4100, its Check and Replay tabs and the `prism/dev-state/1` state it reads | [#288](https://github.com/UOR-Foundation/PrismPM/issues/288) | On main |
| `prism-code manifest [<dir>]`, `--target <browser\|node>`, `--json` | [#280](https://github.com/UOR-Foundation/PrismPM/issues/280) | On main |
| `prism-code providers <up\|down> [<dir>]`, `--target <browser\|node>`, `--json`; the `prism-provider-kv` binary, its flags and file layout | [#294](https://github.com/UOR-Foundation/PrismPM/issues/294) | On main |
| The provider wire protocol: `prism-provider-<type>` on the PATH, its arguments, the `info`, `debug`, `error` and `setenv` messages, `PRISM_PROVIDER_MESSAGES`; the `provider-` prefix reserved from plugin names | [#294](https://github.com/UOR-Foundation/PrismPM/issues/294) | On main |
Expand Down
2 changes: 1 addition & 1 deletion bindings/generated/prism_bindings_js/package.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/generated/prism_bindings_js/provenance.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"98ab423f0774d8ee780133ab30a1da8158dd9a8dc264cb05397cab4301988866","src/lib.rs":"f80086330586e815c2e7e1523fba27c91b4c7fb2baf929f45b360ad365953103"},"name":"prism_bindings_js","profile":"rust-std","program":"a64e014c6f759855ad7d12d538b1ac9ab68dd40b8a8dd966176300496965036d","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["b04761725a4e7978863d025fc91c4888e21380dd93f0889fddf9ad785e0616d6"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"98ab423f0774d8ee780133ab30a1da8158dd9a8dc264cb05397cab4301988866","src/lib.rs":"f80086330586e815c2e7e1523fba27c91b4c7fb2baf929f45b360ad365953103"},"name":"prism_bindings_js","profile":"rust-std","program":"a64e014c6f759855ad7d12d538b1ac9ab68dd40b8a8dd966176300496965036d","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["0da7ff43d9a42cee8f2e627448abc457087654dc19ddd7dd4f091ae32a63db3f"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
2 changes: 1 addition & 1 deletion bindings/generated/prism_bindings_python/package.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/generated/prism_bindings_python/provenance.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"685c22deab06866c3dc358115592c077b06d81d8c7c77103af1c2ba1b868423a","src/lib.rs":"1484465a0e22a4313b05a7b420effe6bacb058609b179def874df4f1792465d7"},"name":"prism_bindings_python","profile":"rust-std","program":"0c141b7d9fb43716ce72effd935116ca230e276f4eb5e17d26299b01cf2198c1","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["b04761725a4e7978863d025fc91c4888e21380dd93f0889fddf9ad785e0616d6"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"685c22deab06866c3dc358115592c077b06d81d8c7c77103af1c2ba1b868423a","src/lib.rs":"1484465a0e22a4313b05a7b420effe6bacb058609b179def874df4f1792465d7"},"name":"prism_bindings_python","profile":"rust-std","program":"0c141b7d9fb43716ce72effd935116ca230e276f4eb5e17d26299b01cf2198c1","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["0da7ff43d9a42cee8f2e627448abc457087654dc19ddd7dd4f091ae32a63db3f"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
2 changes: 1 addition & 1 deletion bindings/generated/prism_bindings_rust/package.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bindings/generated/prism_bindings_rust/provenance.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"6f39e8d23068e508581c91e82958f2bbc1e7b5faca28194ddcd25d88210984db","src/lib.rs":"e92ffbdd00500cfd3a225a124449b6a609a4b72a356bf6b432f87e212166bd97"},"name":"prism_bindings_rust","profile":"rust-std","program":"d21f2165a32387aca02e013f0a8f6600c55e6aef3e116dca07df6951682b8cc9","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["b04761725a4e7978863d025fc91c4888e21380dd93f0889fddf9ad785e0616d6"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"6f39e8d23068e508581c91e82958f2bbc1e7b5faca28194ddcd25d88210984db","src/lib.rs":"e92ffbdd00500cfd3a225a124449b6a609a4b72a356bf6b432f87e212166bd97"},"name":"prism_bindings_rust","profile":"rust-std","program":"d21f2165a32387aca02e013f0a8f6600c55e6aef3e116dca07df6951682b8cc9","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["0da7ff43d9a42cee8f2e627448abc457087654dc19ddd7dd4f091ae32a63db3f"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
25 changes: 25 additions & 0 deletions bindings/generated/prism_developer_view/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
[package]
name = "prism_developer_view"
version = "0.1.0"
edition = "2021"
publish = false

[lib]
path = "src/lib.rs"

[lints.rust]
unsafe_code = "forbid"
warnings = "deny"

[lints.clippy]
all = { level = "deny", priority = -1 }
type_complexity = "allow"
too_many_arguments = "allow"
large_enum_variant = "allow"
result_large_err = "allow"
result_unit_err = "allow"
single_match = "allow"
manual_unwrap_or = "allow"
manual_unwrap_or_default = "allow"
manual_map = "allow"
manual_ok_err = "allow"
1 change: 1 addition & 0 deletions bindings/generated/prism_developer_view/package.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions bindings/generated/prism_developer_view/provenance.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"compiler_semantics":"1427f8b629013648a480454d67202788f2303f5396f1d7c70a7c350ddab6f694","effects":["allocation","overflow","recursion"],"exports":[{"function":0,"name":"run"}],"files":{"Cargo.toml":"b153860b8b85c016f1769175bdb9c3cca000a7cb024f1e5f5519229873ff86f1","src/lib.rs":"fa243f70a69f1ca12257cee35e2423261dd29988d27e29e87ff7f610f727b2c7"},"name":"prism_developer_view","profile":"rust-std","program":"e17d925526a88761a1e90922d03ef7c2084938594f62c7bbb50841609919a148","runtime":"4bb6ab6dc7e2fc1a587876290fac070f499170ff7609aee0fd924aa8fd7bcab7","sources":["0da7ff43d9a42cee8f2e627448abc457087654dc19ddd7dd4f091ae32a63db3f"],"spec":"lexlean/rust-provenance/1","version":"0.1.0"}
Loading
Loading