diff --git a/.github/workflows/merge-train.yml b/.github/workflows/merge-train.yml index 1d4cc2c6..890cba90 100644 --- a/.github/workflows/merge-train.yml +++ b/.github/workflows/merge-train.yml @@ -95,7 +95,7 @@ jobs: test: name: test the train against main runs-on: ubuntu-24.04 - timeout-minutes: 90 + timeout-minutes: 240 outputs: accepted: ${{ steps.train.outputs.accepted }} main: ${{ steps.train.outputs.main }} @@ -133,6 +133,7 @@ jobs: image=$(sed -n 's/.*"sdk_image":"\([^"]*\)".*/\1/p' prismpm.lock) [[ $image =~ ^[a-z0-9.-]+(:[0-9]{1,5})?/[a-z0-9./_-]+@sha256:[0-9a-f]{64}$ ]] scratch=$(mktemp -d) + export scratch image trap 'rm -rf "$scratch"' EXIT fast_gates() { node bootstrap/brand-sync.mjs --check && @@ -155,20 +156,83 @@ jobs: --env SDK_IMAGE="$image" \ "$image" bash -c 'set -euo pipefail; mkdir -p "$HOME"; just fmt-check model template-check lint test' } + # The browser acceptances on the merged tree, as the page job runs them on a + # pull request alone (CO-01 and the timing budgets failed on main after #145 and + # #161 were each green): a holo built from this tree, without the proof that + # main's own run binds, the page assembled around it, then every runner and + # every suite once. In a worktree of its own (the gates' own tests need git), so the train's tree stays what it merges, and in a + # shell of its own, because bash ignores errexit inside an if. + acceptances() { + local copy=$RUNNER_TEMP/accept + git worktree remove --force "$copy" 2>/dev/null || rm -rf "$copy" + git worktree add -q --detach "$copy" HEAD + mkdir -p "$scratch/prismpm-home/.docker" + printf '{}\n' >"$scratch/prismpm-home/.docker/config.json" + ( + cd "$copy" + shopt -s nullglob globstar + docker run --rm \ + --user "$(id -u):$(id -g)" \ + --group-add "$(stat -c '%g' /var/run/docker.sock)" \ + --volume "$scratch:/tmp" \ + --volume "$PWD:$PWD" \ + --volume /var/run/docker.sock:/var/run/docker.sock \ + --workdir "$PWD" \ + --env DOCKER_CONFIG=/tmp/prismpm-home/.docker \ + --env BUILDX_CONFIG=/tmp/prismpm-buildx \ + --env HOME=/tmp/prismpm-home \ + --env PRISMPM_EPHEMERAL_HOME=1 \ + --env SDK_IMAGE="$image" \ + "$image" bash -c 'set -euo pipefail; prismpm --project app build --no-provenance' + holos=(app/.prism/build/*/*.holo) + [[ ${#holos[@]} -eq 1 ]] + fingerprint=$(node -e 'process.stdout.write(JSON.parse(require("fs").readFileSync(process.argv[1], "utf8")).archive_fingerprint)' "$(dirname "${holos[0]}")/application/holo-identities.json") + "$RUNNER_TEMP/draw/bin/python" -I bootstrap/og.py + "$RUNNER_TEMP/draw/bin/python" -I bootstrap/icons.py + cp "${holos[0]}" site/app.holo + cp -r try/vendor site/vendor + rm -rf site/vendor/prism-code/fixtures site/vault/test + node -e ' + const { readFileSync, writeFileSync } = require("node:fs"); + const [id, url] = process.argv.slice(1); + const app = JSON.parse(readFileSync("site/app.json", "utf8")); + app.attestations ??= {}; + app.attestations.build = { id, url }; + writeFileSync("site/app.json", `${JSON.stringify(app, null, 2)}\n`); + ' "$fingerprint" "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" + node bootstrap/page.mjs site + for objects in bootstrap/*-objects.mjs; do node "$objects" site; done + node bootstrap/precache.mjs site + export NODE_PATH="$(npm root --global)" + runners=(test/*/run.mjs) + suites=(test/**/*.test.mjs) + for runner in "${runners[@]}"; do node "$runner"; done + node --test "${suites[@]}" + ) + } ready=() + : >"$RUNNER_TEMP/refused" while read -r number head draft fork; do [[ $draft == false && $fork == false ]] || continue ok=true for name in "page / gates" "acceptance / ubuntu-24.04"; do state=$(gh api "repos/$REPO/commits/$head/check-runs" -f check_name="$name" -X GET --jq '[.check_runs[] | .conclusion][0] // "pending"') [[ $state == success ]] || ok=false + # A check that ended without passing is said once, so a pull request is never left waiting in silence. + case $state in success | pending) ;; *) printf '%s %s %s\n' "$number" "$head" "its check \"$name\" ended $state on this head, so it is not green; push to this branch to run it again" >>"$RUNNER_TEMP/refused" ;; esac done if $ok; then ready+=("$number:$head"); fi done < <(gh api "repos/$REPO/pulls?state=open&base=main&sort=created&direction=asc&per_page=50" \ --jq '.[] | "\(.number) \(.head.sha) \(.draft) \(.head.repo.full_name != .base.repo.full_name)"') echo "ready: ${ready[*]:-none}" + # What the acceptances need on the runner, installed once and before any pull request's code runs. + if [[ ${#ready[@]} -gt 0 ]]; then + npm install --no-audit --no-fund --global playwright@1.56.1 + playwright install --with-deps chromium + python3 -m venv "$RUNNER_TEMP/draw" + "$RUNNER_TEMP/draw/bin/pip" install --quiet --no-deps --only-binary :all: --require-hashes -r bootstrap/draw-requirements.txt + fi accepted=() - : >"$RUNNER_TEMP/refused" for entry in "${ready[@]}"; do number=${entry%%:*} head=${entry#*:} @@ -180,12 +244,12 @@ jobs: continue fi # The pull request's own code runs without the token. - if (unset GH_TOKEN; fast_gates) >"$RUNNER_TEMP/gates-$number.log" 2>&1; then + if (unset GH_TOKEN; fast_gates && bash -euo pipefail -c "$(declare -f acceptances); acceptances") >"$RUNNER_TEMP/gates-$number.log" 2>&1; then accepted+=("$number:$head") - echo "#$number $head: the fast gates pass on main and the train before it" + echo "#$number $head: the fast gates and the browser acceptances pass on main and the train before it" else tail -n 40 "$RUNNER_TEMP/gates-$number.log" - printf '%s %s %s\n' "$number" "$head" "the fast gates refuse it merged with main ($main) and the pull requests the train takes before it; see run $GITHUB_RUN_ID" >>"$RUNNER_TEMP/refused" + printf '%s %s %s\n' "$number" "$head" "the fast gates or the browser acceptances refuse it merged with main ($main) and the pull requests the train takes before it; see run $GITHUB_RUN_ID" >>"$RUNNER_TEMP/refused" git reset -q --hard "$before" fi done diff --git a/app/specs/guests/dest/dest.json b/app/specs/guests/dest/dest.json new file mode 100644 index 00000000..7280e598 --- /dev/null +++ b/app/specs/guests/dest/dest.json @@ -0,0 +1,10 @@ +{ + "id": "dest", + "wasm": "site/dest/guest/dest.wasm", + "pin": "site/dest/guest.mjs", + "modules": [ + "PrismDest" + ], + "dispatch": "PrismDest::prismDestDispatch", + "vectors": "dest" +} diff --git a/app/specs/guests/dest/dest.lock.json b/app/specs/guests/dest/dest.lock.json new file mode 100644 index 00000000..a1e41b14 --- /dev/null +++ b/app/specs/guests/dest/dest.lock.json @@ -0,0 +1,4 @@ +{ + "source": "0e4ba9643dc6685aada912a12ab706103b4110da33622ef5f743ec9204d7d998", + "wasm": "120af6631a1f193f474d128132a9900fb48b88b6e522ff83de8acd4f3e6a39fc" +} diff --git a/app/specs/guests/device/folder.json b/app/specs/guests/device/folder.json new file mode 100644 index 00000000..ef4a77d4 --- /dev/null +++ b/app/specs/guests/device/folder.json @@ -0,0 +1,10 @@ +{ + "id": "folder", + "wasm": "site/device/guest/folder.wasm", + "pin": "site/device/device.mjs", + "modules": [ + "PrismFolder" + ], + "dispatch": "PrismFolder::prismFolderDispatch", + "vectors": "folder" +} diff --git a/app/specs/guests/device/folder.lock.json b/app/specs/guests/device/folder.lock.json new file mode 100644 index 00000000..0614c692 --- /dev/null +++ b/app/specs/guests/device/folder.lock.json @@ -0,0 +1,4 @@ +{ + "source": "35fea3ce12cea4435b9042807ace72888309f752f90307f74f503c5b447599de", + "wasm": "b8b3429d5838113b9da2bb6cbb6f0437e8076b2c54ff614e952967000a7211ec" +} diff --git a/app/specs/guests/device/host.json b/app/specs/guests/device/host.json new file mode 100644 index 00000000..3891e416 --- /dev/null +++ b/app/specs/guests/device/host.json @@ -0,0 +1,10 @@ +{ + "id": "host", + "wasm": "site/device/guest/host.wasm", + "pin": "site/device/device.mjs", + "modules": [ + "PrismHost" + ], + "dispatch": "PrismHost::prismHostDispatch", + "vectors": "host" +} diff --git a/app/specs/guests/device/host.lock.json b/app/specs/guests/device/host.lock.json new file mode 100644 index 00000000..78f195c9 --- /dev/null +++ b/app/specs/guests/device/host.lock.json @@ -0,0 +1,4 @@ +{ + "source": "49be66268cc52c35098d8762427170803e108934d0885f3616494e4d6fec29b7", + "wasm": "7c641243d6cfb2037d52e8a2a74086cd108634374f2827cb9f8b411faf11a601" +} diff --git a/app/specs/guests/device/source.json b/app/specs/guests/device/source.json new file mode 100644 index 00000000..c49ff671 --- /dev/null +++ b/app/specs/guests/device/source.json @@ -0,0 +1,10 @@ +{ + "id": "source", + "wasm": "site/device/guest/source.wasm", + "pin": "site/device/device.mjs", + "modules": [ + "PrismSource" + ], + "dispatch": "PrismSource::prismSourceDispatch", + "vectors": "source" +} diff --git a/app/specs/guests/device/source.lock.json b/app/specs/guests/device/source.lock.json new file mode 100644 index 00000000..f4a9717a --- /dev/null +++ b/app/specs/guests/device/source.lock.json @@ -0,0 +1,4 @@ +{ + "source": "99f4e998fa31ba62d036bb2cf485674c27cf5fc85de1c6dd3d18642917f51c31", + "wasm": "3eb18b9c693628c7b91459112095908ee1ae7801f3cd0c62236dddfbf2a82e2b" +} diff --git a/app/specs/guests/google/google-link.json b/app/specs/guests/google/google-link.json new file mode 100644 index 00000000..0a0e9df0 --- /dev/null +++ b/app/specs/guests/google/google-link.json @@ -0,0 +1,11 @@ +{ + "id": "google-link", + "wasm": "site/google/guest/link.wasm", + "pin": "site/google/guest.mjs", + "modules": [ + "PrismGoogleLink" + ], + "dispatch": "PrismGoogleLink::prismGoogleLinkDispatch", + "vectors": "google-link", + "as": "link" +} diff --git a/app/specs/guests/google/google-link.lock.json b/app/specs/guests/google/google-link.lock.json new file mode 100644 index 00000000..25c763bb --- /dev/null +++ b/app/specs/guests/google/google-link.lock.json @@ -0,0 +1,4 @@ +{ + "source": "45ce2f3e218cf2cbb7b88b4ae5ea6bbe0eb5f1fdb877536518d4a58c35cd4961", + "wasm": "860598541175e25f40f426caadd819d037912bc88b60bb76eeac96e4c9d4b256" +} diff --git a/app/specs/guests/google/google.json b/app/specs/guests/google/google.json new file mode 100644 index 00000000..8a955a40 --- /dev/null +++ b/app/specs/guests/google/google.json @@ -0,0 +1,11 @@ +{ + "id": "google", + "wasm": "site/google/guest/google.wasm", + "pin": "site/google/guest.mjs", + "modules": [ + "PrismGoogle" + ], + "dispatch": "PrismGoogle::prismGoogleDispatch", + "vectors": "google", + "as": "call" +} diff --git a/app/specs/guests/google/google.lock.json b/app/specs/guests/google/google.lock.json new file mode 100644 index 00000000..eeebeb95 --- /dev/null +++ b/app/specs/guests/google/google.lock.json @@ -0,0 +1,4 @@ +{ + "source": "6856bfc0b998f580dbe3fca4c4a11ed3db139e8cec40960584edca57a5a199f2", + "wasm": "786318f1de81844b1b4d8870d30b702a11292aa3f49583ade01bfd980d346365" +} diff --git a/app/specs/guests/holon/curate.json b/app/specs/guests/holon/curate.json new file mode 100644 index 00000000..426cc706 --- /dev/null +++ b/app/specs/guests/holon/curate.json @@ -0,0 +1,11 @@ +{ + "id": "curate", + "wasm": "site/holon/guest/curate.wasm", + "pin": "site/holon/guest.mjs", + "modules": [ + "PrismCurate" + ], + "dispatch": "PrismCurate::prismCurateDispatch", + "vectors": "curate", + "as": "curate" +} diff --git a/app/specs/guests/holon/curate.lock.json b/app/specs/guests/holon/curate.lock.json new file mode 100644 index 00000000..a5d8cb4f --- /dev/null +++ b/app/specs/guests/holon/curate.lock.json @@ -0,0 +1,4 @@ +{ + "source": "ea35a6deee2fd10a7c5e14ac0ee099771e908f9e2160c2bc53399183ce98cf01", + "wasm": "179460b7245420f86606498bcf1c3c8cda13db42b1410c28d926a90da3040699" +} diff --git a/app/specs/guests/holon/holon.json b/app/specs/guests/holon/holon.json new file mode 100644 index 00000000..b089027c --- /dev/null +++ b/app/specs/guests/holon/holon.json @@ -0,0 +1,11 @@ +{ + "id": "holon", + "wasm": "site/holon/guest/holon.wasm", + "pin": "site/holon/guest.mjs", + "modules": [ + "PrismHolon" + ], + "dispatch": "PrismHolon::prismHolonDispatch", + "vectors": "holon", + "as": "holon" +} diff --git a/app/specs/guests/holon/holon.lock.json b/app/specs/guests/holon/holon.lock.json new file mode 100644 index 00000000..19fc6eaa --- /dev/null +++ b/app/specs/guests/holon/holon.lock.json @@ -0,0 +1,4 @@ +{ + "source": "2f4f29999435c04d8ec486c93bf39a77d5f60c158a09f0807ddbd6a0996503e0", + "wasm": "fade24dea47dfebfe3a77599dcf019681cba60c678f58d113eb87383e0f5bb13" +} diff --git a/app/specs/guests/kappa/kappa.json b/app/specs/guests/kappa/kappa.json new file mode 100644 index 00000000..d99c48d2 --- /dev/null +++ b/app/specs/guests/kappa/kappa.json @@ -0,0 +1,16 @@ +{ + "id": "kappa", + "wasm": "site/kappa/guest/kappa.wasm", + "pin": "site/kappa/guest.mjs", + "modules": [ + "PrismKappa", + "PrismKappaLabel" + ], + "dispatch": "PrismKappaLabel::kappaLabelDispatch", + "vectors": "spec:kappa", + "limits": [ + 146, + 32, + 292 + ] +} diff --git a/app/specs/guests/kappa/kappa.lock.json b/app/specs/guests/kappa/kappa.lock.json new file mode 100644 index 00000000..c6c8ac8b --- /dev/null +++ b/app/specs/guests/kappa/kappa.lock.json @@ -0,0 +1,4 @@ +{ + "source": "6c14eae7b1593ee6db20fda54c5625d5bf516e16c3c4ed00f3b0c8390b2f299b", + "wasm": "7669ac89bb82c76c6d7fd32a0e229f6f6a988a9d17d014e6a6bfda9627375c8f" +} diff --git a/app/specs/guests/lock.json b/app/specs/guests/lock.json deleted file mode 100644 index bd2ec595..00000000 --- a/app/specs/guests/lock.json +++ /dev/null @@ -1,82 +0,0 @@ -{ - "holon": { - "source": "2f4f29999435c04d8ec486c93bf39a77d5f60c158a09f0807ddbd6a0996503e0", - "wasm": "fade24dea47dfebfe3a77599dcf019681cba60c678f58d113eb87383e0f5bb13" - }, - "curate": { - "source": "ea35a6deee2fd10a7c5e14ac0ee099771e908f9e2160c2bc53399183ce98cf01", - "wasm": "179460b7245420f86606498bcf1c3c8cda13db42b1410c28d926a90da3040699" - }, - "kappa": { - "source": "6c14eae7b1593ee6db20fda54c5625d5bf516e16c3c4ed00f3b0c8390b2f299b", - "wasm": "7669ac89bb82c76c6d7fd32a0e229f6f6a988a9d17d014e6a6bfda9627375c8f" - }, - "google": { - "source": "6856bfc0b998f580dbe3fca4c4a11ed3db139e8cec40960584edca57a5a199f2", - "wasm": "786318f1de81844b1b4d8870d30b702a11292aa3f49583ade01bfd980d346365" - }, - "google-link": { - "source": "45ce2f3e218cf2cbb7b88b4ae5ea6bbe0eb5f1fdb877536518d4a58c35cd4961", - "wasm": "860598541175e25f40f426caadd819d037912bc88b60bb76eeac96e4c9d4b256" - }, - "boundary": { - "source": "7ed698ab9cfaadbb4933701e3e1f16617f035aea049ff51709a1a19448860581", - "wasm": "1c78a602a06f7e02ac13c9f266f8560d21f9192f3bfac3245044a9aa98395237" - }, - "vault-store": { - "source": "e6ac97d7770c806f60f5bdf505a01577d60b711f0e86636d29589e361b630eea", - "wasm": "5df72cb97284cd74e29b1884a48d5fc4ccb8b45d6440d28d964ffca30ba0e748" - }, - "vault-restore": { - "source": "89f39d47e8f34f78543eea5f6e8c7e52c9fdd80e8db288cb963e68b1d344c0a5", - "wasm": "3b2164237a4ff60afbf4a0e6818c79a500ce022f6221d216279d975d0dc6aa7e" - }, - "dest": { - "source": "0e4ba9643dc6685aada912a12ab706103b4110da33622ef5f743ec9204d7d998", - "wasm": "120af6631a1f193f474d128132a9900fb48b88b6e522ff83de8acd4f3e6a39fc" - }, - "resonance": { - "source": "0a777073aaed94165015ef795b0104c4e99135b61a69f4268db3ca54c2064a19", - "wasm": "414b65defa7673ff811e6cf3e5a4da67e51152ace0535f95feebd342a1a2cd64" - }, - "uorc": { - "source": "c37ce1e19e88df697721ded9d947954b42dce25c43af61716208bc78c0528168", - "wasm": "e6308cf83f46588b52ae2da650d8286e20cbcf58915aea691611bf1fdce94009" - }, - "folder": { - "source": "35fea3ce12cea4435b9042807ace72888309f752f90307f74f503c5b447599de", - "wasm": "b8b3429d5838113b9da2bb6cbb6f0437e8076b2c54ff614e952967000a7211ec" - }, - "source": { - "source": "99f4e998fa31ba62d036bb2cf485674c27cf5fc85de1c6dd3d18642917f51c31", - "wasm": "3eb18b9c693628c7b91459112095908ee1ae7801f3cd0c62236dddfbf2a82e2b" - }, - "host": { - "source": "49be66268cc52c35098d8762427170803e108934d0885f3616494e4d6fec29b7", - "wasm": "7c641243d6cfb2037d52e8a2a74086cd108634374f2827cb9f8b411faf11a601" - }, - "scxml": { - "source": "a750ed179881021cf764cb8a0d1018a32effce3a81e5c213662a5131d06d44c9", - "wasm": "9c56712c97c9779bf629d367c7156978cc7a33ec1cdecefbd0da9af5d529321e" - }, - "senses": { - "source": "a467567e91ed21b471cab44a836fd0f353cbd2259e55d57ff3493097e1879265", - "wasm": "e31ae067109de3f64f30c481aebdd384664f5e5ebffa460cdb4e1f93f5c3d035" - }, - "vcard": { - "source": "99caf1137d7129a93f3cedfaefb05944fe3bead810b0e7530dea0233051a8862", - "wasm": "48780c76070326bab5ebd1853dc497e1ed5940aae4fec6be0cea6a0967f28bdc" - }, - "grammar-mail": { - "source": "e3e0426ee5f47bd9b921fa5ecddff89255e7976c4a36327397ff88d2da5c3347", - "wasm": "94064e50ebacbad172e68d984d80e44d2775d908ce4e772f437d433b87858ec4" - }, - "message": { - "source": "43a37f0c401fc013b17ccc8fc0f55f1f27b3bd8adc4a51da2345a79f6fb5ac5b", - "wasm": "ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513" - }, - "message-rules": { - "source": "dc30c797fe3c1f8fe99b21b51dd536ab231e09afed94564f0a48893aa5f19467", - "wasm": "ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513" - } -} diff --git a/app/specs/guests/message/message-rules.json b/app/specs/guests/message/message-rules.json new file mode 100644 index 00000000..0f279f82 --- /dev/null +++ b/app/specs/guests/message/message-rules.json @@ -0,0 +1,21 @@ +{ + "id": "message-rules", + "wasm": "site/message/guest/message.wasm", + "pin": "site/message/guest.mjs", + "modules": [ + "PrismMessage" + ], + "dispatch": "PrismMessage::mfDispatch", + "vectors": "spec:message/rules", + "limits": [ + 3072, + 8192, + 6144 + ], + "memory": [ + 2048, + 1048576 + ], + "as": "rules", + "sync": true +} diff --git a/app/specs/guests/message/message-rules.lock.json b/app/specs/guests/message/message-rules.lock.json new file mode 100644 index 00000000..c6fffe97 --- /dev/null +++ b/app/specs/guests/message/message-rules.lock.json @@ -0,0 +1,4 @@ +{ + "source": "dc30c797fe3c1f8fe99b21b51dd536ab231e09afed94564f0a48893aa5f19467", + "wasm": "ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513" +} diff --git a/app/specs/guests/message/message.json b/app/specs/guests/message/message.json new file mode 100644 index 00000000..440960da --- /dev/null +++ b/app/specs/guests/message/message.json @@ -0,0 +1,21 @@ +{ + "id": "message", + "wasm": "site/message/guest/message.wasm", + "pin": "site/message/guest.mjs", + "modules": [ + "PrismMessage" + ], + "dispatch": "PrismMessage::mfDispatch", + "vectors": "spec:message", + "limits": [ + 3072, + 8192, + 6144 + ], + "memory": [ + 2048, + 1048576 + ], + "as": "message", + "sync": true +} diff --git a/app/specs/guests/message/message.lock.json b/app/specs/guests/message/message.lock.json new file mode 100644 index 00000000..0b5da993 --- /dev/null +++ b/app/specs/guests/message/message.lock.json @@ -0,0 +1,4 @@ +{ + "source": "43a37f0c401fc013b17ccc8fc0f55f1f27b3bd8adc4a51da2345a79f6fb5ac5b", + "wasm": "ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513" +} diff --git a/app/specs/guests/read/grammar-mail.json b/app/specs/guests/read/grammar-mail.json new file mode 100644 index 00000000..c4691f66 --- /dev/null +++ b/app/specs/guests/read/grammar-mail.json @@ -0,0 +1,22 @@ +{ + "id": "grammar-mail", + "wasm": "site/read/guest/grammar-mail.wasm", + "pin": "site/read/guest.mjs", + "as": "mail", + "modules": [ + "Abnf", + "PrismGrammarMail" + ], + "dispatch": "PrismGrammarMail::prismGrammarMailDispatch", + "vectors": "spec:grammar", + "sync": true, + "memory": [ + 16384, + 16777216 + ], + "limits": [ + 4096, + 131072, + 8192 + ] +} diff --git a/app/specs/guests/read/grammar-mail.lock.json b/app/specs/guests/read/grammar-mail.lock.json new file mode 100644 index 00000000..e834a710 --- /dev/null +++ b/app/specs/guests/read/grammar-mail.lock.json @@ -0,0 +1,4 @@ +{ + "source": "e3e0426ee5f47bd9b921fa5ecddff89255e7976c4a36327397ff88d2da5c3347", + "wasm": "94064e50ebacbad172e68d984d80e44d2775d908ce4e772f437d433b87858ec4" +} diff --git a/app/specs/guests/read/vcard.json b/app/specs/guests/read/vcard.json new file mode 100644 index 00000000..d463eebe --- /dev/null +++ b/app/specs/guests/read/vcard.json @@ -0,0 +1,18 @@ +{ + "id": "vcard", + "wasm": "site/read/guest/vcard.wasm", + "pin": "site/read/guest.mjs", + "as": "vcard", + "sync": true, + "modules": [ + "PrismVcardTable", + "PrismVcard" + ], + "dispatch": "PrismVcard::vcardDispatch", + "vectors": "spec:vcard", + "limits": [ + 4096, + 8192, + 8192 + ] +} diff --git a/app/specs/guests/read/vcard.lock.json b/app/specs/guests/read/vcard.lock.json new file mode 100644 index 00000000..2f40e52b --- /dev/null +++ b/app/specs/guests/read/vcard.lock.json @@ -0,0 +1,4 @@ +{ + "source": "99caf1137d7129a93f3cedfaefb05944fe3bead810b0e7530dea0233051a8862", + "wasm": "48780c76070326bab5ebd1853dc497e1ed5940aae4fec6be0cea6a0967f28bdc" +} diff --git a/app/specs/guests/resonance/resonance.json b/app/specs/guests/resonance/resonance.json new file mode 100644 index 00000000..b7923fb4 --- /dev/null +++ b/app/specs/guests/resonance/resonance.json @@ -0,0 +1,10 @@ +{ + "id": "resonance", + "wasm": "site/resonance/guest/resonance.wasm", + "pin": "site/resonance/guest.mjs", + "modules": [ + "PrismResonance" + ], + "dispatch": "PrismResonance::prismResonanceDispatch", + "vectors": "resonance" +} diff --git a/app/specs/guests/resonance/resonance.lock.json b/app/specs/guests/resonance/resonance.lock.json new file mode 100644 index 00000000..e1dc464a --- /dev/null +++ b/app/specs/guests/resonance/resonance.lock.json @@ -0,0 +1,4 @@ +{ + "source": "0a777073aaed94165015ef795b0104c4e99135b61a69f4268db3ca54c2064a19", + "wasm": "414b65defa7673ff811e6cf3e5a4da67e51152ace0535f95feebd342a1a2cd64" +} diff --git a/app/specs/guests/scxml/scxml.json b/app/specs/guests/scxml/scxml.json new file mode 100644 index 00000000..ed071fd2 --- /dev/null +++ b/app/specs/guests/scxml/scxml.json @@ -0,0 +1,19 @@ +{ + "id": "scxml", + "wasm": "site/scxml/guest/scxml.wasm", + "pin": "site/scxml/guest.mjs", + "modules": [ + "PrismScxml" + ], + "dispatch": "PrismScxml::prismScxmlDispatch", + "vectors": "spec:scxml", + "limits": [ + 3072, + 16, + 6144 + ], + "memory": [ + 2048, + 1048576 + ] +} diff --git a/app/specs/guests/scxml/scxml.lock.json b/app/specs/guests/scxml/scxml.lock.json new file mode 100644 index 00000000..9241bc76 --- /dev/null +++ b/app/specs/guests/scxml/scxml.lock.json @@ -0,0 +1,4 @@ +{ + "source": "a750ed179881021cf764cb8a0d1018a32effce3a81e5c213662a5131d06d44c9", + "wasm": "9c56712c97c9779bf629d367c7156978cc7a33ec1cdecefbd0da9af5d529321e" +} diff --git a/app/specs/guests/senses/senses.json b/app/specs/guests/senses/senses.json new file mode 100644 index 00000000..f3cd853d --- /dev/null +++ b/app/specs/guests/senses/senses.json @@ -0,0 +1,20 @@ +{ + "id": "senses", + "wasm": "site/senses/guest/senses.wasm", + "pin": "site/senses/guest.mjs", + "modules": [ + "PrismSosaTable", + "PrismSenses" + ], + "dispatch": "PrismSenses::prismSensesDispatch", + "vectors": "spec:senses", + "limits": [ + 3328, + 12288, + 6656 + ], + "memory": [ + 2048, + 1048576 + ] +} diff --git a/app/specs/guests/senses/senses.lock.json b/app/specs/guests/senses/senses.lock.json new file mode 100644 index 00000000..25c4ac3c --- /dev/null +++ b/app/specs/guests/senses/senses.lock.json @@ -0,0 +1,4 @@ +{ + "source": "a467567e91ed21b471cab44a836fd0f353cbd2259e55d57ff3493097e1879265", + "wasm": "e31ae067109de3f64f30c481aebdd384664f5e5ebffa460cdb4e1f93f5c3d035" +} diff --git a/app/specs/guests/spec.json b/app/specs/guests/spec.json index 8686bf40..20ee65b8 100644 --- a/app/specs/guests/spec.json +++ b/app/specs/guests/spec.json @@ -1,278 +1,5 @@ { "name": "guests", "title": "The page's standalone decision guests", - "purpose": "Every proved decision the page's Node suites run without the holo, as the core wasm prismpm builds from the very modules the Prism compiles. Each guest is pinned by SHA-256 where the page opens it, and locked to the digest of the modules it was built from, so a guest older than its modules fails GU-01.", - "guests": [ - { - "id": "holon", - "wasm": "site/holon/guest/holon.wasm", - "pin": "site/holon/guest.mjs", - "modules": [ - "PrismHolon" - ], - "dispatch": "PrismHolon::prismHolonDispatch", - "vectors": "holon", - "as": "holon" - }, - { - "id": "curate", - "wasm": "site/holon/guest/curate.wasm", - "pin": "site/holon/guest.mjs", - "modules": [ - "PrismCurate" - ], - "dispatch": "PrismCurate::prismCurateDispatch", - "vectors": "curate", - "as": "curate" - }, - { - "id": "kappa", - "wasm": "site/kappa/guest/kappa.wasm", - "pin": "site/kappa/guest.mjs", - "modules": [ - "PrismKappa", - "PrismKappaLabel" - ], - "dispatch": "PrismKappaLabel::kappaLabelDispatch", - "vectors": "spec:kappa", - "limits": [ - 146, - 32, - 292 - ] - }, - { - "id": "google", - "wasm": "site/google/guest/google.wasm", - "pin": "site/google/guest.mjs", - "modules": [ - "PrismGoogle" - ], - "dispatch": "PrismGoogle::prismGoogleDispatch", - "vectors": "google", - "as": "call" - }, - { - "id": "google-link", - "wasm": "site/google/guest/link.wasm", - "pin": "site/google/guest.mjs", - "modules": [ - "PrismGoogleLink" - ], - "dispatch": "PrismGoogleLink::prismGoogleLinkDispatch", - "vectors": "google-link", - "as": "link" - }, - { - "id": "boundary", - "wasm": "site/vault/test/guests/boundary.wasm", - "pin": "site/vault/test/guests.mjs", - "modules": [ - "PrismBoundary" - ], - "dispatch": "PrismBoundary::prismBoundaryDispatch", - "vectors": "boundary" - }, - { - "id": "vault-store", - "wasm": "site/vault/test/guests/vault-store.wasm", - "pin": "site/vault/test/guests.mjs", - "modules": [ - "PrismVaultStore" - ], - "dispatch": "PrismVaultStore::prismVaultStoreDispatch", - "vectors": "vault-store" - }, - { - "id": "vault-restore", - "wasm": "site/vault/test/guests/vault-restore.wasm", - "pin": "site/vault/test/guests.mjs", - "modules": [ - "PrismVaultRestore" - ], - "dispatch": "PrismVaultRestore::prismVaultRestoreDispatch", - "vectors": "vault-restore" - }, - { - "id": "dest", - "wasm": "site/dest/guest/dest.wasm", - "pin": "site/dest/guest.mjs", - "modules": [ - "PrismDest" - ], - "dispatch": "PrismDest::prismDestDispatch", - "vectors": "dest" - }, - { - "id": "resonance", - "wasm": "site/resonance/guest/resonance.wasm", - "pin": "site/resonance/guest.mjs", - "modules": [ - "PrismResonance" - ], - "dispatch": "PrismResonance::prismResonanceDispatch", - "vectors": "resonance" - }, - { - "id": "uorc", - "wasm": "site/uorc/guest/uorc.wasm", - "pin": "site/uorc/guest.mjs", - "modules": [ - "PrismUorc" - ], - "dispatch": "PrismUorc::prismUorcDispatch", - "vectors": "uorc" - }, - { - "id": "folder", - "wasm": "site/device/guest/folder.wasm", - "pin": "site/device/device.mjs", - "modules": [ - "PrismFolder" - ], - "dispatch": "PrismFolder::prismFolderDispatch", - "vectors": "folder" - }, - { - "id": "source", - "wasm": "site/device/guest/source.wasm", - "pin": "site/device/device.mjs", - "modules": [ - "PrismSource" - ], - "dispatch": "PrismSource::prismSourceDispatch", - "vectors": "source" - }, - { - "id": "host", - "wasm": "site/device/guest/host.wasm", - "pin": "site/device/device.mjs", - "modules": [ - "PrismHost" - ], - "dispatch": "PrismHost::prismHostDispatch", - "vectors": "host" - }, - { - "id": "scxml", - "wasm": "site/scxml/guest/scxml.wasm", - "pin": "site/scxml/guest.mjs", - "modules": [ - "PrismScxml" - ], - "dispatch": "PrismScxml::prismScxmlDispatch", - "vectors": "spec:scxml", - "limits": [ - 3072, - 16, - 6144 - ], - "memory": [ - 2048, - 1048576 - ] - }, - { - "id": "senses", - "wasm": "site/senses/guest/senses.wasm", - "pin": "site/senses/guest.mjs", - "modules": [ - "PrismSosaTable", - "PrismSenses" - ], - "dispatch": "PrismSenses::prismSensesDispatch", - "vectors": "spec:senses", - "limits": [ - 3328, - 12288, - 6656 - ], - "memory": [ - 2048, - 1048576 - ] - }, - { - "id": "vcard", - "wasm": "site/read/guest/vcard.wasm", - "pin": "site/read/guest.mjs", - "as": "vcard", - "sync": true, - "modules": [ - "PrismVcardTable", - "PrismVcard" - ], - "dispatch": "PrismVcard::vcardDispatch", - "vectors": "spec:vcard", - "limits": [ - 4096, - 8192, - 8192 - ] - }, - { - "id": "grammar-mail", - "wasm": "site/read/guest/grammar-mail.wasm", - "pin": "site/read/guest.mjs", - "as": "mail", - "modules": [ - "Abnf", - "PrismGrammarMail" - ], - "dispatch": "PrismGrammarMail::prismGrammarMailDispatch", - "vectors": "spec:grammar", - "sync": true, - "memory": [ - 16384, - 16777216 - ], - "limits": [ - 4096, - 131072, - 8192 - ] - }, - { - "id": "message", - "wasm": "site/message/guest/message.wasm", - "pin": "site/message/guest.mjs", - "modules": [ - "PrismMessage" - ], - "dispatch": "PrismMessage::mfDispatch", - "vectors": "spec:message", - "limits": [ - 3072, - 8192, - 6144 - ], - "memory": [ - 2048, - 1048576 - ], - "as": "message", - "sync": true - }, - { - "id": "message-rules", - "wasm": "site/message/guest/message.wasm", - "pin": "site/message/guest.mjs", - "modules": [ - "PrismMessage" - ], - "dispatch": "PrismMessage::mfDispatch", - "vectors": "spec:message/rules", - "limits": [ - 3072, - 8192, - 6144 - ], - "memory": [ - 2048, - 1048576 - ], - "as": "rules", - "sync": true - } - ] + "purpose": "Every proved decision the page's Node suites run without the holo, as the core wasm prismpm builds from the very modules the Prism compiles. Each guest is pinned by SHA-256 where the page opens it, and locked to the digest of the modules it was built from, so a guest older than its modules fails GU-01. Each guest is one file, app/specs/guests//.json, with its lock beside it as .lock.json, so two guests never meet in one file." } diff --git a/app/specs/guests/uorc/uorc.json b/app/specs/guests/uorc/uorc.json new file mode 100644 index 00000000..1d5ccb99 --- /dev/null +++ b/app/specs/guests/uorc/uorc.json @@ -0,0 +1,10 @@ +{ + "id": "uorc", + "wasm": "site/uorc/guest/uorc.wasm", + "pin": "site/uorc/guest.mjs", + "modules": [ + "PrismUorc" + ], + "dispatch": "PrismUorc::prismUorcDispatch", + "vectors": "uorc" +} diff --git a/app/specs/guests/uorc/uorc.lock.json b/app/specs/guests/uorc/uorc.lock.json new file mode 100644 index 00000000..31d6c573 --- /dev/null +++ b/app/specs/guests/uorc/uorc.lock.json @@ -0,0 +1,4 @@ +{ + "source": "c37ce1e19e88df697721ded9d947954b42dce25c43af61716208bc78c0528168", + "wasm": "e6308cf83f46588b52ae2da650d8286e20cbcf58915aea691611bf1fdce94009" +} diff --git a/app/specs/guests/vault/boundary.json b/app/specs/guests/vault/boundary.json new file mode 100644 index 00000000..88d8e8fb --- /dev/null +++ b/app/specs/guests/vault/boundary.json @@ -0,0 +1,10 @@ +{ + "id": "boundary", + "wasm": "site/vault/test/guests/boundary.wasm", + "pin": "site/vault/test/guests.mjs", + "modules": [ + "PrismBoundary" + ], + "dispatch": "PrismBoundary::prismBoundaryDispatch", + "vectors": "boundary" +} diff --git a/app/specs/guests/vault/boundary.lock.json b/app/specs/guests/vault/boundary.lock.json new file mode 100644 index 00000000..1286d712 --- /dev/null +++ b/app/specs/guests/vault/boundary.lock.json @@ -0,0 +1,4 @@ +{ + "source": "7ed698ab9cfaadbb4933701e3e1f16617f035aea049ff51709a1a19448860581", + "wasm": "1c78a602a06f7e02ac13c9f266f8560d21f9192f3bfac3245044a9aa98395237" +} diff --git a/app/specs/guests/vault/vault-restore.json b/app/specs/guests/vault/vault-restore.json new file mode 100644 index 00000000..3a9fe233 --- /dev/null +++ b/app/specs/guests/vault/vault-restore.json @@ -0,0 +1,10 @@ +{ + "id": "vault-restore", + "wasm": "site/vault/test/guests/vault-restore.wasm", + "pin": "site/vault/test/guests.mjs", + "modules": [ + "PrismVaultRestore" + ], + "dispatch": "PrismVaultRestore::prismVaultRestoreDispatch", + "vectors": "vault-restore" +} diff --git a/app/specs/guests/vault/vault-restore.lock.json b/app/specs/guests/vault/vault-restore.lock.json new file mode 100644 index 00000000..aa5ad8fa --- /dev/null +++ b/app/specs/guests/vault/vault-restore.lock.json @@ -0,0 +1,4 @@ +{ + "source": "89f39d47e8f34f78543eea5f6e8c7e52c9fdd80e8db288cb963e68b1d344c0a5", + "wasm": "3b2164237a4ff60afbf4a0e6818c79a500ce022f6221d216279d975d0dc6aa7e" +} diff --git a/app/specs/guests/vault/vault-store.json b/app/specs/guests/vault/vault-store.json new file mode 100644 index 00000000..1362d4b2 --- /dev/null +++ b/app/specs/guests/vault/vault-store.json @@ -0,0 +1,10 @@ +{ + "id": "vault-store", + "wasm": "site/vault/test/guests/vault-store.wasm", + "pin": "site/vault/test/guests.mjs", + "modules": [ + "PrismVaultStore" + ], + "dispatch": "PrismVaultStore::prismVaultStoreDispatch", + "vectors": "vault-store" +} diff --git a/app/specs/guests/vault/vault-store.lock.json b/app/specs/guests/vault/vault-store.lock.json new file mode 100644 index 00000000..1acb2d23 --- /dev/null +++ b/app/specs/guests/vault/vault-store.lock.json @@ -0,0 +1,4 @@ +{ + "source": "e6ac97d7770c806f60f5bdf505a01577d60b711f0e86636d29589e361b630eea", + "wasm": "5df72cb97284cd74e29b1884a48d5fc4ccb8b45d6440d28d964ffca30ba0e748" +} diff --git a/app/specs/pipeline/workflows/merge-train.yml.json b/app/specs/pipeline/workflows/merge-train.yml.json index 9498b9db..1027b1d5 100644 --- a/app/specs/pipeline/workflows/merge-train.yml.json +++ b/app/specs/pipeline/workflows/merge-train.yml.json @@ -31,7 +31,7 @@ "test": { "name": "test the train against main", "runs-on": "ubuntu-24.04", - "timeout-minutes": 90, + "timeout-minutes": 240, "permissions": { "contents": "read", "pull-requests": "read", @@ -60,7 +60,7 @@ "GH_TOKEN": "${{ github.token }}", "REPO": "${{ github.repository }}" }, - "run": "set -euo pipefail\ngit config user.name \"merge train\"\ngit config user.email \"merge-train@train.invalid\"\nmain=$(git rev-parse HEAD)\necho \"main=$main\" >>\"$GITHUB_OUTPUT\"\nimage=$(sed -n 's/.*\"sdk_image\":\"\\([^\"]*\\)\".*/\\1/p' prismpm.lock)\n[[ $image =~ ^[a-z0-9.-]+(:[0-9]{1,5})?/[a-z0-9./_-]+@sha256:[0-9a-f]{64}$ ]]\nscratch=$(mktemp -d)\ntrap 'rm -rf \"$scratch\"' EXIT\nfast_gates() {\n node bootstrap/brand-sync.mjs --check &&\n python3 -I bootstrap/brand-fonts.py --check &&\n node bootstrap/frame-sync.mjs --check &&\n python3 -I tools/realize/gate.py --check &&\n python3 -I tools/standards/gate.py --check --base \"$main\" &&\n { [[ ! -f tools/parts/gate.py ]] || python3 -I tools/parts/gate.py; } &&\n { [[ ! -f tools/product/gate.py ]] || python3 -I tools/product/gate.py; } &&\n python3 -I tools/guests/gen.py check &&\n sh tools/generators/run.sh --check &&\n python3 -I tools/handwritten/gate.py --check --base \"$main\" &&\n docker run --rm \\\n --user \"$(id -u):$(id -g)\" \\\n --volume \"$scratch:/tmp\" \\\n --volume \"$PWD:$PWD\" \\\n --workdir \"$PWD\" \\\n --env HOME=/tmp/prismpm-home \\\n --env PRISMPM_EPHEMERAL_HOME=1 \\\n --env SDK_IMAGE=\"$image\" \\\n \"$image\" bash -c 'set -euo pipefail; mkdir -p \"$HOME\"; just fmt-check model template-check lint test'\n}\nready=()\nwhile read -r number head draft fork; do\n [[ $draft == false && $fork == false ]] || continue\n ok=true\n for name in \"page / gates\" \"acceptance / ubuntu-24.04\"; do\n state=$(gh api \"repos/$REPO/commits/$head/check-runs\" -f check_name=\"$name\" -X GET --jq '[.check_runs[] | .conclusion][0] // \"pending\"')\n [[ $state == success ]] || ok=false\n done\n if $ok; then ready+=(\"$number:$head\"); fi\ndone < <(gh api \"repos/$REPO/pulls?state=open&base=main&sort=created&direction=asc&per_page=50\" \\\n --jq '.[] | \"\\(.number) \\(.head.sha) \\(.draft) \\(.head.repo.full_name != .base.repo.full_name)\"')\necho \"ready: ${ready[*]:-none}\"\naccepted=()\n: >\"$RUNNER_TEMP/refused\"\nfor entry in \"${ready[@]}\"; do\n number=${entry%%:*}\n head=${entry#*:}\n before=$(git rev-parse HEAD)\n git fetch -q origin \"$head\"\n if ! git merge -q --no-ff --no-edit \"$head\" >/dev/null 2>&1; then\n git merge --abort || true\n printf '%s %s %s\\n' \"$number\" \"$head\" \"it conflicts with main ($main) and the pull requests the train takes before it\" >>\"$RUNNER_TEMP/refused\"\n continue\n fi\n # The pull request's own code runs without the token.\n if (unset GH_TOKEN; fast_gates) >\"$RUNNER_TEMP/gates-$number.log\" 2>&1; then\n accepted+=(\"$number:$head\")\n echo \"#$number $head: the fast gates pass on main and the train before it\"\n else\n tail -n 40 \"$RUNNER_TEMP/gates-$number.log\"\n printf '%s %s %s\\n' \"$number\" \"$head\" \"the fast gates refuse it merged with main ($main) and the pull requests the train takes before it; see run $GITHUB_RUN_ID\" >>\"$RUNNER_TEMP/refused\"\n git reset -q --hard \"$before\"\n fi\ndone\necho \"accepted=${accepted[*]:-}\" >>\"$GITHUB_OUTPUT\"\n# The refusals travel to the merge job as an output: a run cannot download its\n# own artifacts while it is still running.\ncat \"$RUNNER_TEMP/refused\"\necho \"refused=$(base64 -w0 <\"$RUNNER_TEMP/refused\")\" >>\"$GITHUB_OUTPUT\"\n", + "run": "set -euo pipefail\ngit config user.name \"merge train\"\ngit config user.email \"merge-train@train.invalid\"\nmain=$(git rev-parse HEAD)\necho \"main=$main\" >>\"$GITHUB_OUTPUT\"\nimage=$(sed -n 's/.*\"sdk_image\":\"\\([^\"]*\\)\".*/\\1/p' prismpm.lock)\n[[ $image =~ ^[a-z0-9.-]+(:[0-9]{1,5})?/[a-z0-9./_-]+@sha256:[0-9a-f]{64}$ ]]\nscratch=$(mktemp -d)\nexport scratch image\ntrap 'rm -rf \"$scratch\"' EXIT\nfast_gates() {\n node bootstrap/brand-sync.mjs --check &&\n python3 -I bootstrap/brand-fonts.py --check &&\n node bootstrap/frame-sync.mjs --check &&\n python3 -I tools/realize/gate.py --check &&\n python3 -I tools/standards/gate.py --check --base \"$main\" &&\n { [[ ! -f tools/parts/gate.py ]] || python3 -I tools/parts/gate.py; } &&\n { [[ ! -f tools/product/gate.py ]] || python3 -I tools/product/gate.py; } &&\n python3 -I tools/guests/gen.py check &&\n sh tools/generators/run.sh --check &&\n python3 -I tools/handwritten/gate.py --check --base \"$main\" &&\n docker run --rm \\\n --user \"$(id -u):$(id -g)\" \\\n --volume \"$scratch:/tmp\" \\\n --volume \"$PWD:$PWD\" \\\n --workdir \"$PWD\" \\\n --env HOME=/tmp/prismpm-home \\\n --env PRISMPM_EPHEMERAL_HOME=1 \\\n --env SDK_IMAGE=\"$image\" \\\n \"$image\" bash -c 'set -euo pipefail; mkdir -p \"$HOME\"; just fmt-check model template-check lint test'\n}\n# The browser acceptances on the merged tree, as the page job runs them on a\n# pull request alone (CO-01 and the timing budgets failed on main after #145 and\n# #161 were each green): a holo built from this tree, without the proof that\n# main's own run binds, the page assembled around it, then every runner and\n# every suite once. In a worktree of its own (the gates' own tests need git), so the train's tree stays what it merges, and in a\n# shell of its own, because bash ignores errexit inside an if.\nacceptances() {\n local copy=$RUNNER_TEMP/accept\n git worktree remove --force \"$copy\" 2>/dev/null || rm -rf \"$copy\"\n git worktree add -q --detach \"$copy\" HEAD\n mkdir -p \"$scratch/prismpm-home/.docker\"\n printf '{}\\n' >\"$scratch/prismpm-home/.docker/config.json\"\n (\n cd \"$copy\"\n shopt -s nullglob globstar\n docker run --rm \\\n --user \"$(id -u):$(id -g)\" \\\n --group-add \"$(stat -c '%g' /var/run/docker.sock)\" \\\n --volume \"$scratch:/tmp\" \\\n --volume \"$PWD:$PWD\" \\\n --volume /var/run/docker.sock:/var/run/docker.sock \\\n --workdir \"$PWD\" \\\n --env DOCKER_CONFIG=/tmp/prismpm-home/.docker \\\n --env BUILDX_CONFIG=/tmp/prismpm-buildx \\\n --env HOME=/tmp/prismpm-home \\\n --env PRISMPM_EPHEMERAL_HOME=1 \\\n --env SDK_IMAGE=\"$image\" \\\n \"$image\" bash -c 'set -euo pipefail; prismpm --project app build --no-provenance'\n holos=(app/.prism/build/*/*.holo)\n [[ ${#holos[@]} -eq 1 ]]\n fingerprint=$(node -e 'process.stdout.write(JSON.parse(require(\"fs\").readFileSync(process.argv[1], \"utf8\")).archive_fingerprint)' \"$(dirname \"${holos[0]}\")/application/holo-identities.json\")\n \"$RUNNER_TEMP/draw/bin/python\" -I bootstrap/og.py\n \"$RUNNER_TEMP/draw/bin/python\" -I bootstrap/icons.py\n cp \"${holos[0]}\" site/app.holo\n cp -r try/vendor site/vendor\n rm -rf site/vendor/prism-code/fixtures site/vault/test\n node -e '\n const { readFileSync, writeFileSync } = require(\"node:fs\");\n const [id, url] = process.argv.slice(1);\n const app = JSON.parse(readFileSync(\"site/app.json\", \"utf8\"));\n app.attestations ??= {};\n app.attestations.build = { id, url };\n writeFileSync(\"site/app.json\", `${JSON.stringify(app, null, 2)}\\n`);\n ' \"$fingerprint\" \"$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID\"\n node bootstrap/page.mjs site\n for objects in bootstrap/*-objects.mjs; do node \"$objects\" site; done\n node bootstrap/precache.mjs site\n export NODE_PATH=\"$(npm root --global)\"\n runners=(test/*/run.mjs)\n suites=(test/**/*.test.mjs)\n for runner in \"${runners[@]}\"; do node \"$runner\"; done\n node --test \"${suites[@]}\"\n )\n}\nready=()\n: >\"$RUNNER_TEMP/refused\"\nwhile read -r number head draft fork; do\n [[ $draft == false && $fork == false ]] || continue\n ok=true\n for name in \"page / gates\" \"acceptance / ubuntu-24.04\"; do\n state=$(gh api \"repos/$REPO/commits/$head/check-runs\" -f check_name=\"$name\" -X GET --jq '[.check_runs[] | .conclusion][0] // \"pending\"')\n [[ $state == success ]] || ok=false\n # A check that ended without passing is said once, so a pull request is never left waiting in silence.\n case $state in success | pending) ;; *) printf '%s %s %s\\n' \"$number\" \"$head\" \"its check \\\"$name\\\" ended $state on this head, so it is not green; push to this branch to run it again\" >>\"$RUNNER_TEMP/refused\" ;; esac\n done\n if $ok; then ready+=(\"$number:$head\"); fi\ndone < <(gh api \"repos/$REPO/pulls?state=open&base=main&sort=created&direction=asc&per_page=50\" \\\n --jq '.[] | \"\\(.number) \\(.head.sha) \\(.draft) \\(.head.repo.full_name != .base.repo.full_name)\"')\necho \"ready: ${ready[*]:-none}\"\n# What the acceptances need on the runner, installed once and before any pull request's code runs.\nif [[ ${#ready[@]} -gt 0 ]]; then\n npm install --no-audit --no-fund --global playwright@1.56.1\n playwright install --with-deps chromium\n python3 -m venv \"$RUNNER_TEMP/draw\"\n \"$RUNNER_TEMP/draw/bin/pip\" install --quiet --no-deps --only-binary :all: --require-hashes -r bootstrap/draw-requirements.txt\nfi\naccepted=()\nfor entry in \"${ready[@]}\"; do\n number=${entry%%:*}\n head=${entry#*:}\n before=$(git rev-parse HEAD)\n git fetch -q origin \"$head\"\n if ! git merge -q --no-ff --no-edit \"$head\" >/dev/null 2>&1; then\n git merge --abort || true\n printf '%s %s %s\\n' \"$number\" \"$head\" \"it conflicts with main ($main) and the pull requests the train takes before it\" >>\"$RUNNER_TEMP/refused\"\n continue\n fi\n # The pull request's own code runs without the token.\n if (unset GH_TOKEN; fast_gates && bash -euo pipefail -c \"$(declare -f acceptances); acceptances\") >\"$RUNNER_TEMP/gates-$number.log\" 2>&1; then\n accepted+=(\"$number:$head\")\n echo \"#$number $head: the fast gates and the browser acceptances pass on main and the train before it\"\n else\n tail -n 40 \"$RUNNER_TEMP/gates-$number.log\"\n printf '%s %s %s\\n' \"$number\" \"$head\" \"the fast gates or the browser acceptances refuse it merged with main ($main) and the pull requests the train takes before it; see run $GITHUB_RUN_ID\" >>\"$RUNNER_TEMP/refused\"\n git reset -q --hard \"$before\"\n fi\ndone\necho \"accepted=${accepted[*]:-}\" >>\"$GITHUB_OUTPUT\"\n# The refusals travel to the merge job as an output: a run cannot download its\n# own artifacts while it is still running.\ncat \"$RUNNER_TEMP/refused\"\necho \"refused=$(base64 -w0 <\"$RUNNER_TEMP/refused\")\" >>\"$GITHUB_OUTPUT\"\n", "#": { "": [ "Ready: open, from this repository, not a draft, and both required", diff --git a/app/specs/product/quality/QR-03.json b/app/specs/product/quality/QR-03.json index fecac4a6..edc876e4 100644 --- a/app/specs/product/quality/QR-03.json +++ b/app/specs/product/quality/QR-03.json @@ -7,7 +7,7 @@ "measures": [ { "key": "labeling-ms-per-100", - "says": "milliseconds to read, take apart, learn from and label 100 items, from a cold start over ten copies of the specifications' mail and calendar examples", + "says": "milliseconds to read, take apart, learn from and label 100 items, from a cold start over ten copies of the specifications' mail and calendar examples, the slowest of three cold starts", "direction": "atMost", "threshold": 250, "gate": "test/router/labels.test.mjs" diff --git a/crates/conformance/tests/guests.rs b/crates/conformance/tests/guests.rs index 09b18bf4..e5aea9b5 100644 --- a/crates/conformance/tests/guests.rs +++ b/crates/conformance/tests/guests.rs @@ -1,9 +1,9 @@ //! The `guests` suite: every standalone decision guest is as current as the model. //! -//! app/specs/guests/spec.json lists the core wasm guests the page's Node suites +//! app/specs/guests//.json names each core wasm guest the page's Node suites //! open and the app modules each is built from. `tools/guests/build.sh` builds //! each in the locked SDK and `tools/guests/gen.py record` keeps the SHA-256 of -//! its project and of its wasm in app/specs/guests/lock.json and in its pin. +//! its project and of its wasm beside it, in .lock.json, and in its pin. //! `GU-01` fails when a guest's modules, vectors or limits changed since it was //! built, when its wasm is not the one recorded, or when its pin says otherwise. diff --git a/generators/guests/bin/prism-generators b/generators/guests/bin/prism-generators index 7e288314..4a16540e 100755 Binary files a/generators/guests/bin/prism-generators and b/generators/guests/bin/prism-generators differ diff --git a/generators/guests/lock.json b/generators/guests/lock.json index 8a2d1c7d..b79c2469 100644 --- a/generators/guests/lock.json +++ b/generators/guests/lock.json @@ -1,5 +1,5 @@ { "comment": "Written by tools/generators/build.sh. GN-01 fails when generators/guests or its program no longer match.", - "sources": "b35ac2b498838c92cc132941cb52b190b2971533af4f59ef07ecc57c1ffc7ba1", - "program": "5326c677584d24304b18ac59dddd321267f92904c64730ff598eb912b384712e" + "sources": "35aa266943615126e42f16c5b5187f7e92d68dcdd1a0be5d143e59b92fcfb7fc", + "program": "dd425c57a0d5aa7b97471ff2bfb239962d7d018f8de3fda49015f39221350213" } diff --git a/generators/guests/src/GenGuests.lex.tex b/generators/guests/src/GenGuests.lex.tex index 1f2cd30a..03f5fe1c 100644 --- a/generators/guests/src/GenGuests.lex.tex +++ b/generators/guests/src/GenGuests.lex.tex @@ -91,9 +91,9 @@ definition{ name: ggSha, - parameters: [lock : Bytes, gid : Bytes], + parameters: [lock : Bytes], result: Bytes, - body: (Foundation.Json::textAt lock (Foundation.Json::memberAt lock (Foundation.Json::memberAt lock (Foundation.Json::root lock) gid) 0x7761736d)), + body: (Foundation.Json::textAt lock (Foundation.Json::memberAt lock (Foundation.Json::root lock) 0x7761736d)), axioms: [Quot.sound, propext] } @@ -101,7 +101,7 @@ name: ggRow, parameters: [spec : Bytes, lock : Bytes, e : Nat, here : Bytes], result: Bytes, - body: (let wasm : Bytes := (ggField spec e "wasm"); (ggApp (ggApp (ggApp (ggApp 0x7b20706174683a2027 (ggSpan wasm ((ggLen here) + 1) (ggLen wasm))) 0x272c207368613235363a2027) (ggSha lock (ggField spec e "id"))) 0x27207d)), + body: (let wasm : Bytes := (ggField spec e "wasm"); (ggApp (ggApp (ggApp (ggApp 0x7b20706174683a2027 (ggSpan wasm ((ggLen here) + 1) (ggLen wasm))) 0x272c207368613235363a2027) (ggSha lock)) 0x27207d)), axioms: [Quot.sound, propext] } @@ -109,7 +109,7 @@ name: ggFaulty, parameters: [spec : Bytes, lock : Bytes, e : Nat, here : Bytes], result: Bool, - body: (let wasm : Bytes := (ggField spec e "wasm"); ((not (ggSame (ggSpan wasm 0 ((ggLen here) + 1)) (ggApp here 0x2f))) || ((ggLen (ggSha lock (ggField spec e "id"))) =? 0))), + body: (let wasm : Bytes := (ggField spec e "wasm"); ((not (ggSame (ggSpan wasm 0 ((ggLen here) + 1)) (ggApp here 0x2f))) || ((ggLen (ggSha lock)) =? 0))), axioms: [Quot.sound, propext] } @@ -135,33 +135,67 @@ } definition{ - name: ggFoldFrom, + name: ggIsGuest, + parameters: [name : Bytes], + result: Bool, + body: (let n : Nat := (ggLen name); (if (n 0x + | Option.some lock => lock), + axioms: [Quot.sound, propext] +} + +definition{ + name: ggGuestPiece, parameters: [ + archive : Bytes, + name : Bytes, spec : Bytes, - lock : Bytes, - gs : (Option Nat), target : Bytes, here : Bytes, mode : Nat, - i : Nat, + acc : Bytes + ], + result: Bytes, + body: (match (Foundation.Json::root spec) + | Option.none => acc + | Option.some e => (if (ggSame (ggField spec e "pin") target) then (ggPiece spec (ggLockOf archive name) e here mode acc) else acc)), + axioms: [Quot.sound, propext] +} + +definition{ + name: ggFoldFrom, + parameters: [ + archive : Bytes, + target : Bytes, + here : Bytes, + mode : Nat, + header : Nat, acc : Bytes, fuel : Nat ], result: Bytes, body: (match fuel | Nat.zero => acc - | Nat.succ rest => (match (Foundation.Json::elementAt spec gs i) + | Nat.succ rest => (if ((ggAt archive header) =? 0) then acc else (let name : Bytes := (Foundation.Tar::entryName archive header); (let size : Nat := (Foundation.Tar::entrySize archive header); (ggFoldFrom archive target here mode ((header + 512) + (Foundation.Tar::padded size)) (if (ggIsGuest name) then (match (Foundation.Bytes::sliceBytes archive (header + 512) size) | Option.none => acc - | Option.some e => (ggFoldFrom spec lock gs target here mode (i + 1) (if (ggSame (ggField spec e "pin") target) then (ggPiece spec lock e here mode acc) else acc) rest))), + | Option.some spec => (ggGuestPiece archive name spec target here mode acc)) else acc) rest))))), axioms: [Quot.sound, propext], recursive_argument: fuel } definition{ name: ggFold, - parameters: [spec : Bytes, lock : Bytes, target : Bytes, here : Bytes, mode : Nat], + parameters: [archive : Bytes, target : Bytes, here : Bytes, mode : Nat], result: Bytes, - body: (ggFoldFrom spec lock (Foundation.Json::memberAt spec (Foundation.Json::root spec) 0x677565737473) target here mode 0 0x (ggLen spec)), + body: (ggFoldFrom archive target here mode 0 0x (ggLen archive)), axioms: [Quot.sound, propext] } @@ -351,9 +385,9 @@ definition{ name: ggRender, - parameters: [spec : Bytes, lock : Bytes, target : Bytes], + parameters: [archive : Bytes, target : Bytes], result: (Option Bytes), - body: (let k : Nat := (ggLastSlash target); (let here : Bytes := (ggSpan target 0 k); (let facet : Bytes := (ggSpan here ((ggLastSlash here) + 1) k); (let n : Nat := (ggLen (ggFold spec lock target here 3)); (if (((n =? 0) || (0 (ctor Option.none [Bytes]) - | Option.some spec => (match (Foundation.Tar::find archive 0x6170702f73706563732f6775657374732f6c6f636b2e6a736f6e) - | Option.none => (ctor Option.none [Bytes]) - | Option.some lock => (ggRender spec lock target))), + body: (ggRender archive target), axioms: [Quot.sound, propext] } \end{semanticmodule} diff --git a/generators/guests/src/Generators.lex.tex b/generators/guests/src/Generators.lex.tex index e5233e12..731b628b 100644 --- a/generators/guests/src/Generators.lex.tex +++ b/generators/guests/src/Generators.lex.tex @@ -13,7 +13,7 @@ name: application, parameters: [], result: Foundation.View.Text.V3.Model::TextApplication, - body: (record Foundation.View.Text.V3.Model::TextApplication {profile := "prismpm/text-application/3", name := "Prism generators", cargoName := "prism-generators", cargoVersion := "0.1.0", cargoDescription := "Writes the guest loaders of the Prism of its owner from its guest model.", cargoRepository := "https://github.com/afflom/me", cargoHomepage := "https://afflom.github.io/me/", libraryRoots := (cons "PrismGenerators.Generators.dispatch" (nil String)), acceptanceVectors := (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x, response := 0x696e76616c6964}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x63617420646f63732f612e7478740a646f63732f612e7478740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003030303036343400303030303030300030303030303030003030303030303030303033003030303030303030303030003030373634370020300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075737461720030300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068690a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, response := 0x7772697474656e0a68690a}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x677565737470696e20736974652f686f6c6f6e2f67756573742e6d6a730a6170702f73706563732f6775657374732f6c6f636b2e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303032363600303030303030303030303000303133303033002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a202022686f6c6f6e223a207b0a2020202022736f75726365223a202232663466323939393934333563303464386563343836633933626633396137376435663630633135386130396630383037646462643661303939363530336530222c0a20202020227761736d223a202266616465323464656134376466656266653361373735393964636630313936383163626136306336373866353864313133656238373338336530663562623133220a20207d0a7d0a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006170702f73706563732f6775657374732f737065632e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303034363000303030303030303030303000303133303031002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a2020226e616d65223a2022677565737473222c0a202022677565737473223a205b0a202020207b0a202020202020226964223a2022686f6c6f6e222c0a202020202020227761736d223a2022736974652f686f6c6f6e2f67756573742f686f6c6f6e2e7761736d222c0a2020202020202270696e223a2022736974652f686f6c6f6e2f67756573742e6d6a73222c0a202020202020226d6f64756c6573223a205b0a202020202020202022507269736d486f6c6f6e220a2020202020205d2c0a202020202020226469737061746368223a2022507269736d486f6c6f6e3a3a707269736d486f6c6f6e4469737061746368222c0a20202020202022766563746f7273223a2022686f6c6f6e222c0a202020202020226173223a2022686f6c6f6e220a202020207d0a20205d0a7d0a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, response := 0x7772697474656e0a2f2f2047656e6572617465642062792067656e657261746f72732f6775657374732066726f6d206170702f73706563732f677565737473202847552d3031293a20746865207374616e64616c6f6e650a2f2f206775657374206f6620507269736d486f6c6f6e2c206275696c7420627920746f6f6c732f6775657374732f6275696c642e73682066726f6d20746865206d6f64756c6573207468650a2f2f20507269736d20636f6d70696c65732c20736f20746865204e6f6465207375697465732072756e206576657279207265717565737420776974686f75742074686520686f6c6f2e20456163680a2f2f206578706f72747320686f6c6f5f616c6c6f63286c656e2920616e6420686f6c6f5f72756e287074722c206c656e29202d3e20286f7574507472203c3c203332207c206f75744c656e293b0a2f2f2062797465732077686f7365205348412d323536206973206e6f74207468652070696e6e6564206f6e65206172652072656675736564206265666f7265207468657920636f6d70696c652e0a0a6578706f727420636f6e7374204755455354203d207b20706174683a202767756573742f686f6c6f6e2e7761736d272c207368613235363a20276661646532346465613437646665626665336137373539396463663031393638316362613630633637386635386431313365623837333833653066356262313327207d3b0a0a636f6e737420686578203d2028753829203d3e2041727261792e66726f6d2875382c20286229203d3e20622e746f537472696e67283136292e706164537461727428322c2027302729292e6a6f696e282727293b0a636f6e737420656e636f646572203d206e65772054657874456e636f64657228293b0a636f6e7374206465636f646572203d206e657720546578744465636f64657228277574662d38272c207b20666174616c3a2074727565207d293b0a0a6173796e632066756e6374696f6e20636f6d70696c652862797465732c2073686132353629207b0a2020636f6e737420676f74203d20686578286e65772055696e743841727261792861776169742063727970746f2e737562746c652e64696765737428275348412d323536272c2062797465732929293b0a202069662028676f7420213d3d2073686132353629207468726f77204f626a6563742e61737369676e286e6577204572726f722860677565737420726566757365643a2066696e6765727072696e7420247b676f747d206973206e6f7420247b7368613235367d60292c207b20636f64653a2027686f6c6f6e2e677565737427207d293b0a202072657475726e20576562417373656d626c792e636f6d70696c65286279746573293b0a7d0a0a66756e6374696f6e2072756e28782c206c696e6529207b0a2020636f6e737420696e707574203d20656e636f6465722e656e636f6465286c696e65293b0a2020636f6e737420707472203d20782e686f6c6f5f616c6c6f6328696e7075742e6c656e677468293b0a20206e65772055696e7438417272617928782e6d656d6f72792e6275666665722c207074722c20696e7075742e6c656e677468292e73657428696e707574293b0a2020636f6e7374207061636b6564203d20426967496e742e617355696e744e2836342c20426967496e7428782e686f6c6f5f72756e287074722c20696e7075742e6c656e6774682929293b0a202072657475726e206465636f6465722e6465636f6465286e65772055696e7438417272617928782e6d656d6f72792e6275666665722c204e756d626572287061636b6564203e3e2033326e292c204e756d626572287061636b6564202620307866666666666666666e2929293b0a7d0a0a2f2f204120667265736820696e7374616e63652070657220726571756573743a20746865206775657374277320616c6c6f6361746f72206e657665722066726565732c20616e64206e6f2073746174652063617272696573206f7665722e0a6578706f7274206173796e632066756e6374696f6e206f70656e47756573742862797465732c2073686132353629207b0a2020636f6e7374206d6f64756c65203d20617761697420636f6d70696c652862797465732c20736861323536293b0a202072657475726e206173796e6320286c696e6529203d3e2072756e2828617761697420576562417373656d626c792e696e7374616e7469617465286d6f64756c652c207b7d29292e6578706f7274732c206c696e65293b0a7d0a}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x677565737470696e20736974652f686f6c6f6e2f6f746865722e6d6a730a6170702f73706563732f6775657374732f6c6f636b2e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303032363600303030303030303030303000303133303033002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a202022686f6c6f6e223a207b0a2020202022736f75726365223a202232663466323939393934333563303464386563343836633933626633396137376435663630633135386130396630383037646462643661303939363530336530222c0a20202020227761736d223a202266616465323464656134376466656266653361373735393964636630313936383163626136306336373866353864313133656238373338336530663562623133220a20207d0a7d0a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006170702f73706563732f6775657374732f737065632e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303034363000303030303030303030303000303133303031002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a2020226e616d65223a2022677565737473222c0a202022677565737473223a205b0a202020207b0a202020202020226964223a2022686f6c6f6e222c0a202020202020227761736d223a2022736974652f686f6c6f6e2f67756573742f686f6c6f6e2e7761736d222c0a2020202020202270696e223a2022736974652f686f6c6f6e2f67756573742e6d6a73222c0a202020202020226d6f64756c6573223a205b0a202020202020202022507269736d486f6c6f6e220a2020202020205d2c0a202020202020226469737061746368223a2022507269736d486f6c6f6e3a3a707269736d486f6c6f6e4469737061746368222c0a20202020202022766563746f7273223a2022686f6c6f6e222c0a202020202020226173223a2022686f6c6f6e220a202020207d0a20205d0a7d0a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, response := 0x726566757365643a206e65656473206170702f73706563732f6775657374732f737065632e6a736f6e20616e64206c6f636b2e6a736f6e2c20616e6420616e206f757470757420736974652f3c66616365743e2f67756573742e6d6a7320746861742070696e73206174206c65617374206f6e6520677565737420756e64657220697473206f776e206469726563746f7279}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x7878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878, response := 0x696e76616c6964}) (nil Foundation.View.Text.V1.Model::AcceptanceVector)))))), entryRoot := "PrismGenerators.Generators.dispatch", coreContract := "hologram:guest/core-wasm@1", requestMaximum := (32768 : UInt32), responseMaximum := (65536 : UInt32), guestAllocationMaximum := (32768 : UInt32), coreMemoryPages := (ctor Option.some [UInt32] (512 : UInt32)), coreStackBytes := (ctor Option.some [UInt32] (1048576 : UInt32)), capabilitiesEmpty := true, fatArchive := true, primaryLayer := (0 : UInt8), viewLayer := (1 : UInt8), view := (record Foundation.View.Text.V1.Model::TextView {title := "Prism generators", heading := "Prism generators", inputLabel := "Request", submitLabel := "Run", outputLabel := "Report", inputError := "Invalid request", responseError := "Invalid response"}), cli := (record Foundation.View.Text.V3.Model::TextCli {command := "run", description := "Runs one of the Prism generators over a ustar archive of its inputs and prints the file it writes.\n", usageCode := (64 : UInt8), ioCode := (74 : UInt8), limitCode := (ctor Option.none [UInt8]), outcomes := (cons (record Foundation.View.Text.V3.Model::TextCliOutcome {name := "written", prefix := "written", exitCode := (0 : UInt8)}) (cons (record Foundation.View.Text.V3.Model::TextCliOutcome {name := "refused", prefix := "refused: ", exitCode := (1 : UInt8)}) (cons (record Foundation.View.Text.V3.Model::TextCliOutcome {name := "error", prefix := "invalid", exitCode := (2 : UInt8)}) (nil Foundation.View.Text.V3.Model::TextCliOutcome)))), sections := (cons (record Foundation.View.Text.V3.Model::TextCliSection {title := "REQUEST", body := "The first line names a generator and its output path, then a POSIX ustar archive of its inputs follows.\n"}) (cons (record Foundation.View.Text.V3.Model::TextCliSection {title := "REPORT", body := "written and a newline, then the output file; or refused: and the reasons; or invalid.\n"}) (nil Foundation.View.Text.V3.Model::TextCliSection))), examples := (cons (record Foundation.View.Text.V3.Model::TextCliExample {name := "unknown", text := "nothing\n"}) (nil Foundation.View.Text.V3.Model::TextCliExample))}), workbench := (ctor Option.none [Foundation.View.Text.V3.Model::WorkbenchView])}) + body: (record Foundation.View.Text.V3.Model::TextApplication {profile := "prismpm/text-application/3", name := "Prism generators", cargoName := "prism-generators", cargoVersion := "0.1.0", cargoDescription := "Writes the guest loaders of the Prism of its owner from its guest model.", cargoRepository := "https://github.com/afflom/me", cargoHomepage := "https://afflom.github.io/me/", libraryRoots := (cons "PrismGenerators.Generators.dispatch" (nil String)), acceptanceVectors := (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x, response := 0x696e76616c6964}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x63617420646f63732f612e7478740a646f63732f612e7478740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003030303036343400303030303030300030303030303030003030303030303030303033003030303030303030303030003030373634370020300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000075737461720030300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000068690a000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, response := 0x7772697474656e0a68690a}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x677565737470696e20736974652f686f6c6f6e2f67756573742e6d6a730a6170702f73706563732f6775657374732f686f6c6f6e2f686f6c6f6e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303033333200303030303030303030303000303134333033002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a2020226964223a2022686f6c6f6e222c0a2020227761736d223a2022736974652f686f6c6f6e2f67756573742f686f6c6f6e2e7761736d222c0a20202270696e223a2022736974652f686f6c6f6e2f67756573742e6d6a73222c0a2020226d6f64756c6573223a205b0a2020202022507269736d486f6c6f6e220a20205d2c0a2020226469737061746368223a2022507269736d486f6c6f6e3a3a707269736d486f6c6f6e4469737061746368222c0a202022766563746f7273223a2022686f6c6f6e222c0a2020226173223a2022686f6c6f6e220a7d0a0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006170702f73706563732f6775657374732f686f6c6f6e2f686f6c6f6e2e6c6f636b2e6a736f6e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303032343100303030303030303030303000303135323331002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a202022736f75726365223a202232663466323939393934333563303464386563343836633933626633396137376435663630633135386130396630383037646462643661303939363530336530222c0a2020227761736d223a202266616465323464656134376466656266653361373735393964636630313936383163626136306336373866353864313133656238373338336530663562623133220a7d0a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, response := 0x7772697474656e0a2f2f2047656e6572617465642062792067656e657261746f72732f6775657374732066726f6d206170702f73706563732f677565737473202847552d3031293a20746865207374616e64616c6f6e650a2f2f206775657374206f6620507269736d486f6c6f6e2c206275696c7420627920746f6f6c732f6775657374732f6275696c642e73682066726f6d20746865206d6f64756c6573207468650a2f2f20507269736d20636f6d70696c65732c20736f20746865204e6f6465207375697465732072756e206576657279207265717565737420776974686f75742074686520686f6c6f2e20456163680a2f2f206578706f72747320686f6c6f5f616c6c6f63286c656e2920616e6420686f6c6f5f72756e287074722c206c656e29202d3e20286f7574507472203c3c203332207c206f75744c656e293b0a2f2f2062797465732077686f7365205348412d323536206973206e6f74207468652070696e6e6564206f6e65206172652072656675736564206265666f7265207468657920636f6d70696c652e0a0a6578706f727420636f6e7374204755455354203d207b20706174683a202767756573742f686f6c6f6e2e7761736d272c207368613235363a20276661646532346465613437646665626665336137373539396463663031393638316362613630633637386635386431313365623837333833653066356262313327207d3b0a0a636f6e737420686578203d2028753829203d3e2041727261792e66726f6d2875382c20286229203d3e20622e746f537472696e67283136292e706164537461727428322c2027302729292e6a6f696e282727293b0a636f6e737420656e636f646572203d206e65772054657874456e636f64657228293b0a636f6e7374206465636f646572203d206e657720546578744465636f64657228277574662d38272c207b20666174616c3a2074727565207d293b0a0a6173796e632066756e6374696f6e20636f6d70696c652862797465732c2073686132353629207b0a2020636f6e737420676f74203d20686578286e65772055696e743841727261792861776169742063727970746f2e737562746c652e64696765737428275348412d323536272c2062797465732929293b0a202069662028676f7420213d3d2073686132353629207468726f77204f626a6563742e61737369676e286e6577204572726f722860677565737420726566757365643a2066696e6765727072696e7420247b676f747d206973206e6f7420247b7368613235367d60292c207b20636f64653a2027686f6c6f6e2e677565737427207d293b0a202072657475726e20576562417373656d626c792e636f6d70696c65286279746573293b0a7d0a0a66756e6374696f6e2072756e28782c206c696e6529207b0a2020636f6e737420696e707574203d20656e636f6465722e656e636f6465286c696e65293b0a2020636f6e737420707472203d20782e686f6c6f5f616c6c6f6328696e7075742e6c656e677468293b0a20206e65772055696e7438417272617928782e6d656d6f72792e6275666665722c207074722c20696e7075742e6c656e677468292e73657428696e707574293b0a2020636f6e7374207061636b6564203d20426967496e742e617355696e744e2836342c20426967496e7428782e686f6c6f5f72756e287074722c20696e7075742e6c656e6774682929293b0a202072657475726e206465636f6465722e6465636f6465286e65772055696e7438417272617928782e6d656d6f72792e6275666665722c204e756d626572287061636b6564203e3e2033326e292c204e756d626572287061636b6564202620307866666666666666666e2929293b0a7d0a0a2f2f204120667265736820696e7374616e63652070657220726571756573743a20746865206775657374277320616c6c6f6361746f72206e657665722066726565732c20616e64206e6f2073746174652063617272696573206f7665722e0a6578706f7274206173796e632066756e6374696f6e206f70656e47756573742862797465732c2073686132353629207b0a2020636f6e7374206d6f64756c65203d20617761697420636f6d70696c652862797465732c20736861323536293b0a202072657475726e206173796e6320286c696e6529203d3e2072756e2828617761697420576562417373656d626c792e696e7374616e7469617465286d6f64756c652c207b7d29292e6578706f7274732c206c696e65293b0a7d0a}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x677565737470696e20736974652f686f6c6f6e2f67756573742e6d6a730a6170702f73706563732f6775657374732f686f6c6f6e2f686f6c6f6e2e6a736f6e00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000303030303634340030303030303030003030303030303000303030303030303033333200303030303030303030303000303134333033002030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007573746172003030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007b0a2020226964223a2022686f6c6f6e222c0a2020227761736d223a2022736974652f686f6c6f6e2f67756573742f686f6c6f6e2e7761736d222c0a20202270696e223a2022736974652f686f6c6f6e2f67756573742e6d6a73222c0a2020226d6f64756c6573223a205b0a2020202022507269736d486f6c6f6e220a20205d2c0a2020226469737061746368223a2022507269736d486f6c6f6e3a3a707269736d486f6c6f6e4469737061746368222c0a202022766563746f7273223a2022686f6c6f6e222c0a2020226173223a2022686f6c6f6e220a7d0a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000, response := 0x726566757365643a206e656564732065616368206775657374206f6620746865206f7574707574206173206170702f73706563732f6775657374732f3c66616365743e2f3c69643e2e6a736f6e207769746820697473203c69643e2e6c6f636b2e6a736f6e2c20616e6420616e206f757470757420736974652f3c66616365743e2f67756573742e6d6a7320746861742070696e73206174206c65617374206f6e6520677565737420756e64657220697473206f776e206469726563746f7279}) (cons (record Foundation.View.Text.V1.Model::AcceptanceVector {request := 0x7878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878787878, response := 0x696e76616c6964}) (nil Foundation.View.Text.V1.Model::AcceptanceVector)))))), entryRoot := "PrismGenerators.Generators.dispatch", coreContract := "hologram:guest/core-wasm@1", requestMaximum := (32768 : UInt32), responseMaximum := (65536 : UInt32), guestAllocationMaximum := (32768 : UInt32), coreMemoryPages := (ctor Option.some [UInt32] (512 : UInt32)), coreStackBytes := (ctor Option.some [UInt32] (1048576 : UInt32)), capabilitiesEmpty := true, fatArchive := true, primaryLayer := (0 : UInt8), viewLayer := (1 : UInt8), view := (record Foundation.View.Text.V1.Model::TextView {title := "Prism generators", heading := "Prism generators", inputLabel := "Request", submitLabel := "Run", outputLabel := "Report", inputError := "Invalid request", responseError := "Invalid response"}), cli := (record Foundation.View.Text.V3.Model::TextCli {command := "run", description := "Runs one of the Prism generators over a ustar archive of its inputs and prints the file it writes.\n", usageCode := (64 : UInt8), ioCode := (74 : UInt8), limitCode := (ctor Option.none [UInt8]), outcomes := (cons (record Foundation.View.Text.V3.Model::TextCliOutcome {name := "written", prefix := "written", exitCode := (0 : UInt8)}) (cons (record Foundation.View.Text.V3.Model::TextCliOutcome {name := "refused", prefix := "refused: ", exitCode := (1 : UInt8)}) (cons (record Foundation.View.Text.V3.Model::TextCliOutcome {name := "error", prefix := "invalid", exitCode := (2 : UInt8)}) (nil Foundation.View.Text.V3.Model::TextCliOutcome)))), sections := (cons (record Foundation.View.Text.V3.Model::TextCliSection {title := "REQUEST", body := "The first line names a generator and its output path, then a POSIX ustar archive of its inputs follows.\n"}) (cons (record Foundation.View.Text.V3.Model::TextCliSection {title := "REPORT", body := "written and a newline, then the output file; or refused: and the reasons; or invalid.\n"}) (nil Foundation.View.Text.V3.Model::TextCliSection))), examples := (cons (record Foundation.View.Text.V3.Model::TextCliExample {name := "unknown", text := "nothing\n"}) (nil Foundation.View.Text.V3.Model::TextCliExample))}), workbench := (ctor Option.none [Foundation.View.Text.V3.Model::WorkbenchView])}) } definition{ @@ -76,7 +76,7 @@ parameters: [value : Bytes], result: Bytes, body: (let n : Nat := (Foundation.Bytes::byteLength value); (let eol : Nat := (lineEnd value 0 n); (if (n (refused 0x6e65656473206170702f73706563732f6775657374732f737065632e6a736f6e20616e64206c6f636b2e6a736f6e2c20616e6420616e206f757470757420736974652f3c66616365743e2f67756573742e6d6a7320746861742070696e73206174206c65617374206f6e6520677565737420756e64657220697473206f776e206469726563746f7279) + | Option.none => (refused 0x6e656564732065616368206775657374206f6620746865206f7574707574206173206170702f73706563732f6775657374732f3c66616365743e2f3c69643e2e6a736f6e207769746820697473203c69643e2e6c6f636b2e6a736f6e2c20616e6420616e206f757470757420736974652f3c66616365743e2f67756573742e6d6a7320746861742070696e73206174206c65617374206f6e6520677565737420756e64657220697473206f776e206469726563746f7279) | Option.some file => (written file)) else 0x696e76616c6964)))))))))), axioms: [Quot.sound, propext] } diff --git a/generators/guests/steps.json b/generators/guests/steps.json deleted file mode 100644 index 2d5df3c7..00000000 --- a/generators/guests/steps.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "comment": "The steps of the guests program (generators/guests/), run in order by tools/generators/run.sh: each writes one site//guest.mjs, the loader of the guests app/specs/guests/spec.json pins there, from that spec and its lock.", - "steps": [ - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/dest/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/google/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/holon/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/kappa/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/read/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/resonance/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/uorc/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/scxml/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/senses/guest.mjs" - }, - { - "generator": "guestpin", - "inputs": [ - "app/specs/guests/lock.json", - "app/specs/guests/spec.json" - ], - "output": "site/message/guest.mjs" - } - ] -} diff --git a/generators/guests/steps/dest.json b/generators/guests/steps/dest.json new file mode 100644 index 00000000..29be0ab1 --- /dev/null +++ b/generators/guests/steps/dest.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/dest/*.json" + ], + "output": "site/dest/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/google.json b/generators/guests/steps/google.json new file mode 100644 index 00000000..21b06471 --- /dev/null +++ b/generators/guests/steps/google.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/google/*.json" + ], + "output": "site/google/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/holon.json b/generators/guests/steps/holon.json new file mode 100644 index 00000000..93aff4ff --- /dev/null +++ b/generators/guests/steps/holon.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/holon/*.json" + ], + "output": "site/holon/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/kappa.json b/generators/guests/steps/kappa.json new file mode 100644 index 00000000..7a668b1d --- /dev/null +++ b/generators/guests/steps/kappa.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/kappa/*.json" + ], + "output": "site/kappa/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/message.json b/generators/guests/steps/message.json new file mode 100644 index 00000000..4789437c --- /dev/null +++ b/generators/guests/steps/message.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/message/*.json" + ], + "output": "site/message/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/read.json b/generators/guests/steps/read.json new file mode 100644 index 00000000..bd37ce83 --- /dev/null +++ b/generators/guests/steps/read.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/read/*.json" + ], + "output": "site/read/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/resonance.json b/generators/guests/steps/resonance.json new file mode 100644 index 00000000..1fae9547 --- /dev/null +++ b/generators/guests/steps/resonance.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/resonance/*.json" + ], + "output": "site/resonance/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/scxml.json b/generators/guests/steps/scxml.json new file mode 100644 index 00000000..b0b25f74 --- /dev/null +++ b/generators/guests/steps/scxml.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/scxml/*.json" + ], + "output": "site/scxml/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/senses.json b/generators/guests/steps/senses.json new file mode 100644 index 00000000..8357ee90 --- /dev/null +++ b/generators/guests/steps/senses.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/senses/*.json" + ], + "output": "site/senses/guest.mjs" + } + ] +} diff --git a/generators/guests/steps/uorc.json b/generators/guests/steps/uorc.json new file mode 100644 index 00000000..6bf0d40d --- /dev/null +++ b/generators/guests/steps/uorc.json @@ -0,0 +1,11 @@ +{ + "steps": [ + { + "generator": "guestpin", + "inputs": [ + "app/specs/guests/uorc/*.json" + ], + "output": "site/uorc/guest.mjs" + } + ] +} diff --git a/site/google/guest.mjs b/site/google/guest.mjs index 0ee7e2f4..cc578ddf 100644 --- a/site/google/guest.mjs +++ b/site/google/guest.mjs @@ -1,12 +1,12 @@ // Generated by generators/guests from app/specs/guests (GU-01): the standalone -// guests of PrismGoogle, PrismGoogleLink, built by tools/guests/build.sh from the modules the +// guests of PrismGoogleLink, PrismGoogle, built by tools/guests/build.sh from the modules the // Prism compiles, so the Node suites run every request without the holo. Each // exports holo_alloc(len) and holo_run(ptr, len) -> (outPtr << 32 | outLen); // bytes whose SHA-256 is not the pinned one are refused before they compile. export const GUESTS = { - call: { path: 'guest/google.wasm', sha256: '786318f1de81844b1b4d8870d30b702a11292aa3f49583ade01bfd980d346365' }, link: { path: 'guest/link.wasm', sha256: '860598541175e25f40f426caadd819d037912bc88b60bb76eeac96e4c9d4b256' }, + call: { path: 'guest/google.wasm', sha256: '786318f1de81844b1b4d8870d30b702a11292aa3f49583ade01bfd980d346365' }, }; const hex = (u8) => Array.from(u8, (b) => b.toString(16).padStart(2, '0')).join(''); diff --git a/site/holon/guest.mjs b/site/holon/guest.mjs index c53b3df6..4b872f69 100644 --- a/site/holon/guest.mjs +++ b/site/holon/guest.mjs @@ -1,12 +1,12 @@ // Generated by generators/guests from app/specs/guests (GU-01): the standalone -// guests of PrismHolon, PrismCurate, built by tools/guests/build.sh from the modules the +// guests of PrismCurate, PrismHolon, built by tools/guests/build.sh from the modules the // Prism compiles, so the Node suites run every request without the holo. Each // exports holo_alloc(len) and holo_run(ptr, len) -> (outPtr << 32 | outLen); // bytes whose SHA-256 is not the pinned one are refused before they compile. export const GUESTS = { - holon: { path: 'guest/holon.wasm', sha256: 'fade24dea47dfebfe3a77599dcf019681cba60c678f58d113eb87383e0f5bb13' }, curate: { path: 'guest/curate.wasm', sha256: '179460b7245420f86606498bcf1c3c8cda13db42b1410c28d926a90da3040699' }, + holon: { path: 'guest/holon.wasm', sha256: 'fade24dea47dfebfe3a77599dcf019681cba60c678f58d113eb87383e0f5bb13' }, }; const hex = (u8) => Array.from(u8, (b) => b.toString(16).padStart(2, '0')).join(''); diff --git a/site/message/guest.mjs b/site/message/guest.mjs index 1705856c..1fcca8e8 100644 --- a/site/message/guest.mjs +++ b/site/message/guest.mjs @@ -5,8 +5,8 @@ // bytes whose SHA-256 is not the pinned one are refused before they compile. export const GUESTS = { - message: { path: 'guest/message.wasm', sha256: 'ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513' }, rules: { path: 'guest/message.wasm', sha256: 'ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513' }, + message: { path: 'guest/message.wasm', sha256: 'ac7c15750106d23bf6f3ccf0f2ea0be62e9c21fad2b1e31c5d67987ff4ee0513' }, }; const hex = (u8) => Array.from(u8, (b) => b.toString(16).padStart(2, '0')).join(''); diff --git a/site/read/guest.mjs b/site/read/guest.mjs index fc1b2c67..033e35eb 100644 --- a/site/read/guest.mjs +++ b/site/read/guest.mjs @@ -1,12 +1,12 @@ // Generated by generators/guests from app/specs/guests (GU-01): the standalone -// guests of PrismVcardTable, PrismVcard, Abnf, PrismGrammarMail, built by tools/guests/build.sh from the modules the +// guests of Abnf, PrismGrammarMail, PrismVcardTable, PrismVcard, built by tools/guests/build.sh from the modules the // Prism compiles, so the Node suites run every request without the holo. Each // exports holo_alloc(len) and holo_run(ptr, len) -> (outPtr << 32 | outLen); // bytes whose SHA-256 is not the pinned one are refused before they compile. export const GUESTS = { - vcard: { path: 'guest/vcard.wasm', sha256: '48780c76070326bab5ebd1853dc497e1ed5940aae4fec6be0cea6a0967f28bdc' }, mail: { path: 'guest/grammar-mail.wasm', sha256: '94064e50ebacbad172e68d984d80e44d2775d908ce4e772f437d433b87858ec4' }, + vcard: { path: 'guest/vcard.wasm', sha256: '48780c76070326bab5ebd1853dc497e1ed5940aae4fec6be0cea6a0967f28bdc' }, }; const hex = (u8) => Array.from(u8, (b) => b.toString(16).padStart(2, '0')).join(''); diff --git a/test/router/labels.test.mjs b/test/router/labels.test.mjs index 023e7e0a..eada8199 100644 --- a/test/router/labels.test.mjs +++ b/test/router/labels.test.mjs @@ -9,6 +9,7 @@ // is computed here and held to its own threshold. // usage: node test/router/labels.test.mjs import assert from "node:assert/strict"; +import { execFileSync } from "node:child_process"; import { readFileSync } from "node:fs"; import { judge, FIELDS, GUARANTEES } from "../../site/router/table.mjs"; import { learn, labelAll } from "../../site/router/labels.mjs"; @@ -37,6 +38,11 @@ const started = performance.now(); const bulk = many.map(({ media, raw }, i) => readItem({ address: `m${i}`, outcome: "restore", bytes: encoder.encode(raw), meta: { about: { media, domain: 4, at: i } } })); await labelAll(bulk, { line, halted: () => "no" }); const ms = performance.now() - started; +// A cold start happens once in a process, so two more processes time one each and the +// measure is the slowest of the three: one lucky sample must not pass a slow change +// (#145 doubled this figure and merged on one). +if (process.env.LABELING_SAMPLE) process.exit(console.log(ms) ?? 0); +const slowest = Math.max(ms, ...[1, 2].map(() => Number(execFileSync(process.execPath, [GATE], { env: { ...process.env, LABELING_SAMPLE: "1", NODE_TEST_CONTEXT: "" }, encoding: "utf8" })))); const items = itemsOf(); await labelAll(items, { line, halted: () => "no" }); @@ -61,7 +67,7 @@ const measured = { "kind-accuracy": share(wrong.kind), "party-accuracy": share(wrong.party), "unlabeled-items": items.filter((item) => !item.labels).length, - "labeling-ms-per-100": Math.ceil((ms * 100) / many.length), + "labeling-ms-per-100": Math.ceil((slowest * 100) / many.length), "topic-coverage": Math.floor((100 * topicsShown) / items.length), "lead-accuracy": Math.floor((100 * (leads.length - wrongLead.length)) / leads.length), }; diff --git a/tools/generators/run.sh b/tools/generators/run.sh index 4e6c8fcb..18b2e841 100755 --- a/tools/generators/run.sh +++ b/tools/generators/run.sh @@ -1,6 +1,8 @@ #!/bin/sh # Runs every step of generators//steps.json through its program, the -# programs in name order. Request bounds are in generators/pipeline.json. +# programs in name order. A program may keep its steps one file each instead, as +# generators//steps/*.json in name order, so two changes that each add a +# step never meet in one file. Request bounds are in generators/pipeline.json. # Each program is a LexLean text/3 application, generators//, built by # `prismpm build` and pinned by tools/generators/build.sh. Their Foundation is # one module set, generators/foundation/, copied byte for byte into each. @@ -20,7 +22,7 @@ mode=${1:-write} # A program is pinned to its sources: a change to generators// needs build.sh. digest() { # digest PROGRAM - sources=$(git ls-files --others --cached --exclude-standard "generators/$1" | grep -v -e "^generators/$1/bin/" -e "^generators/$1/lock.json$" -e "^generators/$1/steps.json$" | sort) + sources=$(git ls-files --others --cached --exclude-standard "generators/$1" | grep -v -e "^generators/$1/bin/" -e "^generators/$1/lock.json$" -e "^generators/$1/steps.json$" -e "^generators/$1/steps/" | sort) printf '{\n "comment": "Written by tools/generators/build.sh. GN-01 fails when generators/%s or its program no longer match.",\n "sources": "%s",\n "program": "%s"\n}\n' \ "$1" "$(sha256sum $sources | sha256sum | cut -c1-64)" "$(sha256sum "generators/$1/bin/prism-generators" | cut -c1-64)" } @@ -64,10 +66,10 @@ run() { # run GENERATOR OUTPUT STAGE PATHS... -> appends the written file to $wo tail -c +9 "$work/report" >> "$work/out" } -for steps_file in generators/*/steps.json; do -program=$(basename "$(dirname "$steps_file")") +for lock in generators/*/lock.json; do +program=$(basename "$(dirname "$lock")"); steps_file="generators/$program/steps.json" : > "$work/made" -js .steps < "$steps_file" | while read -r step; do +for f in "$steps_file" "generators/$program"/steps/*.json; do [ ! -e "$f" ] || js .steps < "$f"; done | while read -r step; do gen=$(echo "$step" | js .generator); out=$(echo "$step" | js .output); ins=$(echo "$step" | js .inputs) for f in $ins; do case $f in .gen/*) grep -qxF "$f" "$work/made" || { diff --git a/tools/guests/gen.py b/tools/guests/gen.py index 7c66832b..d0a4a1fe 100644 --- a/tools/guests/gen.py +++ b/tools/guests/gen.py @@ -5,7 +5,7 @@ python3 -I tools/guests/gen.py write ID DIR the scratch project that builds guest ID python3 -I tools/guests/gen.py record ID WASM take a built core wasm in: copy, pin, lock -app/specs/guests/spec.json lists every guest: the core wasm the page's Node +app/specs/guests//.json is one guest: the core wasm the page's Node suites open, the file that pins it by SHA-256, the app modules it is built from (each with its proofs), the dispatch it answers with, and where its acceptance vectors come from (the builder's prompt, or a spec whose examples @@ -15,7 +15,7 @@ the locked SDK with no network (lexlean lock, fmt, lock, verify, then prismpm build) and records `.prism/build//core-wasm/*.wasm`. -app/specs/guests/lock.json holds, per guest, the SHA-256 of the project `write` +app/specs/guests//.lock.json holds, for that guest, the SHA-256 of the project `write` lays out (every input byte the build reads) and of the wasm built from it. `check` fails when a guest's modules, vectors or limits changed since it was built, when its wasm is not the one recorded, or when its pin says otherwise: @@ -32,9 +32,9 @@ ROOT = pathlib.Path(__file__).resolve().parents[2] APP = ROOT / "app" -SPEC = json.loads((APP / "specs/guests/spec.json").read_text()) -LOCK = APP / "specs/guests/lock.json" -GUESTS = {g["id"]: g for g in SPEC["guests"]} +FILES = {p: json.loads(p.read_text()) for p in sorted((APP / "specs/guests").glob("*/*.json"))} +GUESTS = {g["id"]: g for p, g in FILES.items() if not p.name.endswith(".lock.json")} +LOCKS = {g["id"]: p.with_name(f"{g['id']}.lock.json") for p, g in FILES.items() if not p.name.endswith(".lock.json")} def pascal(s): @@ -153,8 +153,7 @@ def pin_line(g): sys.exit(f"{g['pin']} pins no {base}") -def lock(): - return json.loads(LOCK.read_text()) if LOCK.exists() else {} +HELD = {gid: FILES[p] for gid, p in LOCKS.items() if p in FILES} def problems(gid, held): @@ -181,16 +180,12 @@ def main(argv): line, old = pin_line(g) pin = ROOT / g["pin"] pin.write_text(pin.read_text().replace(line, line.replace(old, digest))) - held = lock() - held[argv[1]] = {"source": source(argv[1]), "wasm": digest} - LOCK.write_text(json.dumps({k: held[k] for k in GUESTS if k in held}, indent=2) + "\n") + LOCKS[argv[1]].write_text(json.dumps({"source": source(argv[1]), "wasm": digest}, indent=2) + "\n") print(f"{argv[1]}: {digest}") elif argv == ["stale"]: - held = lock() - print(" ".join(gid for gid in GUESTS if problems(gid, held))) + print(" ".join(gid for gid in GUESTS if problems(gid, HELD))) elif argv == ["check"]: - held = lock() - bad = {gid: p for gid in GUESTS if (p := problems(gid, held))} + bad = {gid: p for gid in GUESTS if (p := problems(gid, HELD))} for gid, p in bad.items(): print(f"{gid}: {'; '.join(p)}") if bad: diff --git a/tools/standards/gate.py b/tools/standards/gate.py index cf0b9f0f..8f6bac96 100644 --- a/tools/standards/gate.py +++ b/tools/standards/gate.py @@ -125,7 +125,7 @@ def generated(standard, inv, refusals): if not vendored.exists() or hashlib.sha256(vendored.read_bytes()).hexdigest() != source["sha256"]: refusals.append(f"{key}: {inv['vendored']} is not {source['url']} at the pinned {source['sha256']}") return [] - steps = [step for f in sorted(ROOT.glob("generators/*/steps.json")) for step in load(f)["steps"]] + steps = [step for pattern in ("generators/*/steps.json", "generators/*/steps/*.json") for f in sorted(ROOT.glob(pattern)) for step in load(f)["steps"]] if not any(step["output"] == inv["generated"] for step in steps): refusals.append(f"{key}: no step of a generators//steps.json writes {inv['generated']}") return []