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
19 changes: 19 additions & 0 deletions app/specs/guests/snapshot/snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"id": "snapshot",
"wasm": "site/snapshot/guest/snapshot.wasm",
"pin": "site/snapshot/guest.mjs",
"modules": [
"PrismSnapshot"
],
"dispatch": "PrismSnapshot::prismSnapshotDispatch",
"vectors": "spec:snapshot",
"limits": [
2048,
512,
4096
],
"memory": [
2048,
1048576
]
}
4 changes: 4 additions & 0 deletions app/specs/guests/snapshot/snapshot.lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"source": "04f0ba50de79f2d0cc6090edd1250cf3750847a85e12587739e7912e86cd33d5",
"wasm": "041b56c0ddcb4a2525259b4e03dbb6de493832e4903bb3d59f3ae03c6db39768"
}
8 changes: 8 additions & 0 deletions app/specs/parts/spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,14 @@
],
"site/prov/guest.mjs": [
"how"
],
"app/src/PrismSnapshot.lex.tex": [
"why",
"when",
"how"
],
"site/snapshot/guest.mjs": [
"how"
]
}
}
Expand Down
96 changes: 96 additions & 0 deletions app/specs/snapshot/spec.json

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions app/specs/standards/debt/rfc6901.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
"rfc6901-4-a29c85e1",
"rfc6901-5-3520c6ca",
"rfc6901-7-c1ea989d"
]
15 changes: 15 additions & 0 deletions app/specs/standards/debt/rfc6902.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[
"rfc6902-4-174d230e",
"rfc6902-4-30dabaa7",
"rfc6902-4.1-ae9fcb99",
"rfc6902-4.1-dd5c908f",
"rfc6902-4.2-2b1ef42f",
"rfc6902-4.3-2b1ef42f",
"rfc6902-4.3-460c075d",
"rfc6902-4.4-8bf2ea5e",
"rfc6902-4.4-96f491da",
"rfc6902-4.4-c85200d6",
"rfc6902-4.5-2c90fd3c",
"rfc6902-4.5-c85200d6",
"rfc6902-4.6-dca29c99"
]
16 changes: 16 additions & 0 deletions app/specs/standards/debt/rfc8785.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
"rfc8785-3-4f497a80",
"rfc8785-3.1-14f3ad1b",
"rfc8785-3.1-321d353e",
"rfc8785-3.1-95a5d7cd",
"rfc8785-3.1-b5bb857d",
"rfc8785-3.1-ffeae857",
"rfc8785-3.2.2.2-2eedd5b0",
"rfc8785-3.2.2.3-2f82800e",
"rfc8785-5-a93c4d93",
"rfc8785-5-f7ceb343",
"rfc8785-B-f6a97ac2",
"rfc8785-D-c076c308",
"rfc8785-E-0ee0bc2a",
"rfc8785-E-cc549aff"
]
26 changes: 26 additions & 0 deletions app/specs/standards/register/rfc6901.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"key": "rfc6901",
"title": "RFC 6901 JavaScript Object Notation (JSON) Pointer",
"issuer": "IETF",
"text": {
"url": "https://www.rfc-editor.org/rfc/rfc6901.txt",
"sha256": "12f9f4fc13d686aa4fbe7d144d70166cd3fcd4ab89174c2b13bda8f4b55e49da"
},
"inventories": [
{
"generated": "test/standards/generated/rfc6901.jsonl",
"vendored": "app/specs/standards/texts/12f9f4fc13d686aa4fbe7d144d70166cd3fcd4ab89174c2b13bda8f4b55e49da",
"source": {
"url": "https://www.rfc-editor.org/rfc/rfc6901.txt",
"sha256": "12f9f4fc13d686aa4fbe7d144d70166cd3fcd4ab89174c2b13bda8f4b55e49da"
}
}
],
"governs": [
"app/src/PrismSnapshot.lex.tex",
"site/snapshot/guest.mjs"
],
"realizedBy": [
"ST-01"
]
}
48 changes: 48 additions & 0 deletions app/specs/standards/register/rfc6902.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"key": "rfc6902",
"title": "RFC 6902 JavaScript Object Notation (JSON) Patch",
"issuer": "IETF",
"text": {
"url": "https://www.rfc-editor.org/rfc/rfc6902.txt",
"sha256": "ded8fa1754ab1566fd72611c9d5bcde931cd2bdf8351889e2ef5b50efdf1eed4"
},
"inventories": [
{
"generated": "test/standards/generated/rfc6902.jsonl",
"vendored": "app/specs/standards/texts/ded8fa1754ab1566fd72611c9d5bcde931cd2bdf8351889e2ef5b50efdf1eed4",
"source": {
"url": "https://www.rfc-editor.org/rfc/rfc6902.txt",
"sha256": "ded8fa1754ab1566fd72611c9d5bcde931cd2bdf8351889e2ef5b50efdf1eed4"
}
}
],
"governs": [
"app/src/PrismSnapshot.lex.tex",
"site/snapshot/guest.mjs"
],
"realizedBy": [
"ST-01"
],
"enforcedBy": {
"rfc6902-4-5d946f07": {
"suite": "crates/conformance/tests/guests.rs",
"how": "json-patch-tests spec_tests.json (RFC 6902 Appendix A) case A.13, an operation with two op members, is answered by refusal; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc6902-4-d4abf196": {
"suite": "crates/conformance/tests/guests.rs",
"how": "json-patch-tests spec_tests.json (RFC 6902 Appendix A) case A.11, an add with the undefined member xyz, is answered by the document the add alone gives; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc6902-4.1-06d0e10d": {
"suite": "crates/conformance/tests/guests.rs",
"how": "json-patch-tests spec_tests.json (RFC 6902 Appendix A) case A.12 and the 4.1 missing-object case, adds whose target's parent does not exist, are answered by refusal; A.1, A.2, A.10 and A.16 by the added documents; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc6902-4.6-159a78dd": {
"suite": "crates/conformance/tests/guests.rs",
"how": "json-patch-tests spec_tests.json (RFC 6902 Appendix A) case A.8 is answered by the unchanged document, A.9 (a different string) and A.15 (number against string) by refusal; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc6902-5-ec058a4b": {
"suite": "crates/conformance/tests/guests.rs",
"how": "json-patch-tests spec_tests.json (RFC 6902 Appendix A) case A.9, A.12, A.13, A.15 and 4.1, patches with an operation that fails or a document that violates the RFC, are answered by refusal of the whole patch, not a partial document; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
}
}
}
77 changes: 73 additions & 4 deletions app/specs/standards/register/rfc8785.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,79 @@
"key": "rfc8785",
"title": "RFC 8785 JSON Canonicalization Scheme",
"issuer": "IETF",
"text": null,
"unpinned": "pinning with the bcp14 extractor and its test vectors",
"governs": [],
"text": {
"url": "https://www.rfc-editor.org/rfc/rfc8785.txt",
"sha256": "63d52294eb0e3f0014174288186d388b4ddbf2c67d1ce8af1d9726eb0c3ab240"
},
"inventories": [
{
"generated": "test/standards/generated/rfc8785.jsonl",
"vendored": "app/specs/standards/texts/63d52294eb0e3f0014174288186d388b4ddbf2c67d1ce8af1d9726eb0c3ab240",
"source": {
"url": "https://www.rfc-editor.org/rfc/rfc8785.txt",
"sha256": "63d52294eb0e3f0014174288186d388b4ddbf2c67d1ce8af1d9726eb0c3ab240"
}
}
],
"governs": [
"app/src/PrismSnapshot.lex.tex",
"site/snapshot/guest.mjs"
],
"realizedBy": [
"ST-01"
]
],
"enforcedBy": {
"rfc8785-3.1-19737ffb": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) unicode.json: the unnormalized A\\u030a is serialized as those two code points, not normalized; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.1-89b727e4": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) unicode.json: the unnormalized A\\u030a is serialized as those two code points, not normalized; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.1-f7828dcb": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) every input, whitespace between tokens included, is answered by its output byte for byte, which has none; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.2.1-d73f46ac": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) values.json: [null, true, false] is answered as [null,true,false]; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.2.2-4e479461": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) values.json and weird.json: non-control code points are written as is, and \\\\ and \\\" as escapes; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.2.2-5658b4ab": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) values.json: U+000F is written \\u000f and U+000A as \\n; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.2.2-7e32fd81": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) values.json, weird.json, french.json: every string and property name is answered byte for byte as the output serializes it; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.2.2-bdf9de0e": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) every string of every output is enclosed in double quotes, byte for byte; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.2.3-44488107": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) values.json: 333333333.33333329, 1E30, 4.50, 2e-3 and 1e-27 are answered as ECMAScript serializes them; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.3-0281d99a": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) weird.json and french.json: properties are sorted by UTF-16 code units, the surrogate pair of U+1F602 before U+FB33, not by locale; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.3-36b63a1b": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) arrays.json: the object inside the array has its properties sorted and the array keeps its order; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.3-8ee23ccb": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) structures.json: child objects have their properties sorted at every depth; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
},
"rfc8785-3.2.4-42882237": {
"suite": "crates/conformance/tests/guests.rs",
"how": "the RFC 8785 author's test data (cyberphone/json-canonicalization) weird.json, french.json and values.json: the answer is the UTF-8 bytes of the output file; prismpm build runs every acceptance vector of the snapshot guest (app/specs/snapshot/spec.json, written from the oracles by generators/snapshot) and GU-01 holds the pinned wasm to those vectors"
}
}
}
Loading
Loading