Skip to content

Provenance

Where every file this repository took from elsewhere comes from, what became of it here, and the license it ships under. The imported tree and the pinned binaries are recorded file by file, with their SHA-256s. NOTICE names everything the built site ships, with its license, and licenses/ holds the texts; ADR 0001 records the decisions behind this shape.

Upstream

  • Repository: SeungheonOh/plfa-playground, MIT (its license is kept verbatim as LICENSE.plfa-playground).
  • Commit: ae0aa84c24363a8d6dadc292b6eb8f88f7f38705, by Seungheon Oh, 2026-08-31 20:50 -0500 (2026-09-01 in UTC), "Use the official Agda mark for the favicon": the head of upstream's master on 2026-10-04, when it was imported.
  • How: a snapshot, not a history merge. The commit "Import plfa-playground at ae0aa84c, without its binaries" holds 89 of upstream's 128 files, byte for byte, and none of upstream's history.
  • The records, in upstream/:
  • plfa-playground.sha256: every file of upstream's tree at that commit, with its SHA-256, exactly as scripts/upstream-record.sh <commit> prints it;
  • unchanged.sha256: the imported files that are still upstream's, byte for byte, at their paths here (make provenance-check verifies them);
  • assets.sha256: the pinned binaries, which the flake fetches and make assets-check verifies.

The README's "Syncing with upstream" uses these records to bring in a later upstream commit.

What became of each upstream file

Upstream path Here Why
README.md README.plfa-playground.md, unchanged This repository has its own README.
LICENSE LICENSE.plfa-playground, unchanged This repository's LICENSE is William DeMeo's; it names upstream's.
.github/workflows/ci.yml .github/workflows/app.yml, changed, then removed This repository's ci.yml lints the plan; site.yml replaced it (#5).
.gitignore not imported Its lines are merged into this repository's .gitignore.
wrangler.jsonc not imported Upstream's Cloudflare account and route; hosting is #6.
NOTICE.md imported, then removed NOTICE supersedes it and carries its text verbatim.
35 binaries under static/ not imported; pinned Fetched by hash (below); 33 of them still ship.
static/als-2.8ext.wasm not imported; pinned, then retired The fork's compiler, for Agda 2.8.0. The page runs this repository's build of Agda 2.9.0 instead (below, #58); the pin stays in the flake, unshipped, until that compiler passes #13's gate (below).
static/agda-stdlib-2.3.zip not imported; pinned, then retired The standard library 2.3, which does not check under Agda 2.9.0; the page shipped it patched instead (#58), and ships the release 2.4.1 since [#108] (below).
static/agda-data.zip not imported; pinned, then replaced Upstream's held Agda 2.7.0.1's builtin library, which the shipped Agda rejects; the flake builds one instead (below, #49).
static/als-2.8ext.wasm.gz not imported; not pinned The build makes its own (below).
src/lib/worker/proxy-wasi-drive.ts, src/lib/worker/patch-wasi.ts, src/lib/worker/wrap-poll-oneoff.ts, src/lib/worker/util-base64.js imported, then removed They proxied the drive's calls to the drive worker through shared memory, and read the language server's standard input from it; the server's reactor build, with the drive in its worker, needs neither (#59).
src/lib/stdlib.ts imported, then removed Its blocking reads and writes served only the rings in shared memory, which the page no longer has (#59).
static/coi-serviceworker.js imported, then removed The service worker that isolated the page on a host that cannot send headers; the page shares no memory between threads, so it needs no isolation (#59).
src/lib/worker/als.ts, src/lib/worker/drive.ts, src/lib/worker/types.d.ts packages/engine/src/browser/worker/als.ts, drive.ts and protocol.ts, changed The worker and the drive are the engine package's browser transport's, which every host imports (#62); src/lib/worker/als.ts is now the page's one-line entry that bundles it.
src/lib/agda/transport.js, src/lib/agda/lsp.js, src/lib/agda/schema.js, src/lib/index.js imported, then removed The engine package does what they did: its browser transport holds the language server's session, acknowledges the server's requests and starts the worker, and its core validates Agda's answers; the byte-stream framing they needed is gone with the byte streams (#62).
every other file (72) same path, unchanged unless listed below Listed in upstream/unchanged.sha256.

Every change made here to an imported file is listed under Changes to upstream files, and a file that can carry a comment says so in a header naming the upstream file and commit.

Pinned binaries

The flake fetches each file from https://raw.githubusercontent.com/SeungheonOh/plfa-playground/ae0aa84c24363a8d6dadc292b6eb8f88f7f38705/<path>, one fixed-output fetch per file, by the SHA-256 in upstream/assets.sha256, so a fetched file that differs by a byte fails the fetch. make assets copies the set into static/, and make build checks every file there against the same SHA-256 before it builds. The 33 files total 13,648,557 bytes. Each group below says where upstream got the files (checked 2026-10-04) and their license. Two more were pinned until #58 replaced them (below).

JuliaMono

The JuliaMono 0.060 web fonts, byte-identical to webfonts/ in cormullion/juliamono at tag v0.060 (commit 5908c8613863806b3f053859e35049780c9c4784), the Latin subsets included. License: SIL Open Font License 1.1, with Reserved Font Name JuliaMono; the fonts carry the notice in their metadata, and licenses/juliamono.txt carries the license text.

Path Bytes SHA-256
static/JuliaMono-Bold.woff2 1,037,992 91b10c2fabdada8552b9d774dbc80a0ec3459238af265af7bc421246fb9f7af8
static/JuliaMono-BoldItalic.woff2 1,086,692 327b8fa8cc789a68694a92b33cdfa4ce8557b74d04041e33d179e2b5fb0fdcbc
static/JuliaMono-BoldLatin.woff2 28,776 7a89ae8c9d793aa45afd00896bbfebd1c52a8eadeefffdd4615047e9ad98126d
static/JuliaMono-Regular.woff2 1,038,424 3ce46801cd7d8b181f3ed792111afef2ef23fed42ebbaf1279a5cad55dc0708d
static/JuliaMono-RegularItalic.woff2 1,087,352 14a4aa0a860d60aacf3be59038915fceccc8e93a6d48e42d458b0244fb69c70b
static/JuliaMono-RegularLatin.woff2 27,644 b6246bb7c907f1bdc165f8642aa1a776387c8a9d47d85e05e388ea274f3bf9f3

The favicon

Upstream's 128-pixel raster of its static/favicon.svg, which adapts Agda's official mark, doc/user-manual/agda.svg in agda/agda (designed by Miƫtek Bak, adopted in Agda 2.6.1). The mark ships in the Agda package as one of its extra-doc-files, under the package's MIT license; agda/agda states no other terms for it, and no trademark policy. License: MIT (Agda's, and upstream's for the adaptation).

Path Bytes SHA-256
static/favicon.png 3,276 11e142dff8309670762d34d7bedb718c8172267c20e95ebbf25ada02abf489e1

PLFA

Programming Language Foundations in Agda, from plfa/plfa.github.io at 870f9bb12d61927cdea3311cedcbbc48ac3fc422 (2026-08-21), as upstream's scripts package it: project.zip holds the chapters' sources, plfa.agda-lib and upstream's two adapter modules (plfa/browser/*.agda; scripts/sync-plfa.mjs), and each interface archive holds the Agda 2.8.0 interfaces of one chapter's closure, the standard-library modules it imports among them (scripts/precompile-plfa.mjs). License: CC BY 4.0 for PLFA (static/plfa/LICENSE, identical to the book's LICENSE at that commit); MIT for the standard library's interfaces and for upstream's adapters. Removing PLFA is #20.

Path Bytes SHA-256
static/plfa/project.zip 220,347 7425dcef3ae92fcfda2d4b583abe4d52d1ff420ac84de5545af7b10be1f6c5ac
static/plfa/interfaces/part1/Connectives.zip 130,099 22c5c51c070e7c4646606155e080344fa35055edc2268ca23f1f68ca55b42c6f
static/plfa/interfaces/part1/Decidable.zip 106,475 d997769a7d6eb436eee193969c61bf0a2fdbf79e754926f9d2c46de219e09295
static/plfa/interfaces/part1/Equality.zip 74,401 25e01d4daa7d267ef7f592e60363699c9da679d62e63ea5943e7265f384741f6
static/plfa/interfaces/part1/Induction.zip 93,709 8182378c6efc86c199016a19cb5700720ca13ecb65fa756f3a0ffc531dea43bb
static/plfa/interfaces/part1/Isomorphism.zip 85,476 0f4ebee903ee7abb133b7eddf8b30ce19f231fc109920476be5b33e24843f1fc
static/plfa/interfaces/part1/Lists.zip 176,356 582cb09195af2304b515d22d3df7d36486f8ef12a6e732513f56570f7aefab06
static/plfa/interfaces/part1/Naturals.zip 2,410,017 f6c56f7cd39d3fb0043aa672329d72d405abae86f0458ea2d20a31c337e058db
static/plfa/interfaces/part1/Negation.zip 399,290 4ba68b802d4cee11b15b145f7a07e3dc7a798e7fe33877328183ec46436f427b
static/plfa/interfaces/part1/Quantifiers.zip 87,482 dbf96928c086d2690b1d9a2c899f1d6457fd9a87489f182b3acc4a4a87c0a423
static/plfa/interfaces/part1/Relations.zip 110,045 a2c4c568ef0dc405e6e6f1f20f4f9ef09acadcc23f8873cca8550756a5129623
static/plfa/interfaces/part2/BigStep.zip 135,406 c059a3a643225d14d91ccc8cfff0abb3c5f25cc06db3413aadac133799ecd6b2
static/plfa/interfaces/part2/Bisimulation.zip 98,296 51491dfac864bddc4c8227f6635e7531de6fd8ffcea39525415aec354dbc0e70
static/plfa/interfaces/part2/Confluence.zip 162,932 9fc55a393d1221522d4e6e83080b9c8890b2e305d94f65f7a37a023bb3155c6f
static/plfa/interfaces/part2/DeBruijn.zip 174,849 9a3fbb95a136f6f0d7520c3723f55beb0ba51d72c9df03378b63928d4783da6c
static/plfa/interfaces/part2/Inference.zip 232,730 fd8063b448b43cd44eae67a65d68cac9d3647250f05d21b8b57c8cc959418faf
static/plfa/interfaces/part2/Lambda.zip 2,275,060 02a67ba070a00d8e31cf27b975d2738ed8fd606f2d45ec3ee62f2492a5467221
static/plfa/interfaces/part2/More.zip 246,118 47e61cfb16b1a2a3d53d3ef692147fffd2f25902ae0261b186079587653eca87
static/plfa/interfaces/part2/Properties.zip 244,700 7048c751a59c247adc6038934c23d7baa11e963567655be9e506e20f277458a2
static/plfa/interfaces/part2/Substitution.zip 243,384 dc3c17d3b5883ec0d67a17ab8f67994d78e435673d8b6f110c3990b808c8c234
static/plfa/interfaces/part2/Untyped.zip 145,052 b78c74984e2c81c4789dcef66afa39d7474c8938a93022e1ea63d7ab274fcce0
static/plfa/interfaces/part3/Adequacy.zip 305,750 f838f18ada51f109db278e146791c027ea4a5ae01a1d6e80fa7be7ed1a952bad
static/plfa/interfaces/part3/Compositional.zip 154,696 5dfc518d2ab399e07a9401fc7d16ee5d115df98d5fc2269fdd74ebf002e4ce52
static/plfa/interfaces/part3/ContextualEquivalence.zip 49,886 78d08b2342f872d9b710475effa9bb65085b8ff4d23d54b9022aa867d7afeafc
static/plfa/interfaces/part3/Denotational.zip 704,375 c4c8f8ad5ecdedeed6557e8a35b0a84e48be498ea65bd35a1b51be8dc7026987
static/plfa/interfaces/part3/Soundness.zip 271,470 c725f51822615c4f60e52a5948fd4fb692d0cb47ad6e3ecadfb3be610df28f82

The compiler, built here

The Agda Language Server for Agda 2.9.0, and Agda 2.9.0 itself, compiled to WASI by this repository's recipe, compiler/build-agda-2.9.0.sh, in the dev shell that pins its toolchain (nix develop .#compiler), from the releases ([#108]): agda/agda da046d6903b7f587f5add669650e52f378f57834 (tag v2.9.0, 2026-11-13); agda/agda-language-server 2aab2ac66bee78fcc7b6d4f5d7cef74dfbbe51f4 (tag v11, 2026-11-20), its submodules at the commits that tag records, and the two patches in compiler/patches/; ghc-wasm-meta 58260711fd5c8ffbb81f4ac56e40323ff509d43b (GHC 9.10.3.20260731, the commit Agda's flake.lock names at the tag); the Hackage index at 2026-11-13T06:53:39Z, the tag's time. compiler/agda-2.9.0.sha256 pins the four files it writes, and the flake fetches them by those hashes (nix build .#compiler, mkCompiler) from the release agda-2.9.0-da046d6-als-11 of formalverification/agda-wasm-builds. .github/workflows/compiler.yml rebuilds them with the recipe and checks the bytes against the pins. Built twice here on 2026-11-25, the second time from an empty work directory at the same path, it gave the same files and plans, byte for byte (35 and 32 minutes on 20 cores).

From 2026-10-07 to 2026-11-24 the files were built by the same recipe from the pre-release Agda da66a8c75f11d10699a6b38b261efdf244b66f2a (the nightly of 2026-10-05) and the server's v8 (0f77a209243185cb8e36a11bfc7b6ab47f5125b4) with a patch for Agda 2.9.0's API, at the index state 2026-10-05T16:41:29Z (#58), and published as the release agda-2.9.0-da66a8c-als-8; their bytes are the second column below. The server's v11 carries that patch's port itself, so only its import for the reactor remains (agda-language-server-reactor-setup.patch).

  • als-reactor.wasm, the language server's reactor build, and its glue, als-reactor.js, are the compiler the page runs, since #59: packages.assets installs them as static/als-reactor-2.9.0.wasm and static/als-reactor-2.9.0.js, and the build ships the module gzipped (below) and the glue as it is.
  • als.wasm, the same server as a command module, is not shipped since #59; the page ran it from #58 until then.
  • agda.wasm, the plain agda, is not shipped: the flake runs it under wasmtime to build Agda's builtin library (below).

License: NOTICE section 3 names everything the server links and the license of each.

File Bytes Bytes at da66a8c SHA-256
agda.wasm 34,508,797 34,277,969 64ce7ae30de134ff4753cdb7c43a8de1498de666101241b098d9d78789d01155
als.wasm 36,179,686 35,880,158 b63bd689e88a1ae6e363dd9ff5289bec8a32f509336ee0c5e207c938e0af22a1
als-reactor.wasm 36,112,189 35,817,413 085a34edc69cc8e39c23f6713ecc7e3db28f9f91cac0cb63baf15a2ca2006622
als-reactor.js 5,044 5,044 c782dbaca349830299055c71ec9c4f72ec543c0d612d08b7c40fbb364e601dce

At da66a8c the first three were da2f1efc6b13e0d8b8a69311511c8ed6fbfbc2759bd8ec299004580fcfba1eb1, b1f45936329c529b5677e38bc0e8d22d7a1c9c47277e8f77146f5667c76228e4 and a0c7ae5741dd3f11c6be9e9fac4281889f2861ec2b53b5379452d11a4a23e8c9; the glue came out the same file, byte for byte.

The standard library, built here

static/agda-stdlib-2.4.1.zip is the Agda standard library 2.4.1, as released: agda/agda-stdlib at v2.4.1 (ac7c79b24ecf16cf82decc872d2690c2ee9d8498, 2026-11-17, its "compatibility release with Agda 2.9.0", fetched by its NAR hash), unchanged ([#108]). Its library is named standard-library-2.4, the name agda-algebras depends on. The flake builds it (nix build .#stdlib, mkStdlib in flake.nix). The archive holds what the page's drive takes, src/ (1,187 modules) and standard-library.agda-lib, and the library's LICENCE, under agda-stdlib-2.4.1/: 1,189 files, deflated, every entry dated 1980-01-01 and in a fixed order, so nix build .#stdlib --rebuild finds no difference. License: MIT, the library's (LICENCE; licenses/agda-stdlib.txt is the same text, Copyright (c) 2007-2026).

Path Bytes SHA-256
static/agda-stdlib-2.4.1.zip 1,590,359 be7ca5d03db81c08c2047ecdb41132f598b541b5fda319a908d8630bb0bcbf68

From 2026-10-07 to 2026-11-24 the page shipped static/agda-stdlib-2.3-patched.zip instead (1,536,421 bytes, SHA-256 773c59515bf4cd2ebf6d86aed6d57ec4493333538b28c1ace55509ece7e7aacd): v2.3 (8326c7475af1fa456ca04a0203c168d5d7ff842b) with the five patches of stdlib/patches/, since no released version checked under Agda 2.9.0 (#61, #58). Those patches were agda-stdlib's own 1896499f and 1b7f26af from its agda-master branch, its 39631ce9 ported to v2.3, and its fbf6ce16 and b0d29e13 from its master branch; the archive's 1,156 files equaled the tag v2.3-agda-2.9.0 of formalverification/agda-stdlib (fb5d1840). stdlib/patches/ is retired with [#108]: 2.4.1 is a release made for Agda 2.9.0, and it checks whole under it unpatched (all 1,187 modules, agda --build-library with the native Agda at the tag, exit 0, 209 s, 2026-11-25), so the page ships no library patched here.

agda-algebras' sources, built here

static/agda-algebras-sources.zip is agda-algebras at ualib/agda-algebras 66c324f89de176c2d5b4d3513d76034e4ffff2dd (its master on 2026-11-25, the merge of its PR 642, which moved it to Agda 2.9.0 and the standard library 2.4.1, its issue 597; d32f045f, of 2026-10-15, until [#108]), unchanged: agda-algebras.agda-lib, src/, and the license texts its NOTICE names for them (LICENSE, LICENSE-data, NOTICE), under agda-algebras/, 348 files (356 at d32f045f). The flake builds it (mkAgdaAlgebrasSources in flake.nix) from the commit agdaAlgebras pins, fetched by its NAR hash, deflated, with every entry dated 1980-01-01 and in a fixed order, so that its bytes depend on the commit alone; the same derivation is the input of agda-algebras' interfaces and their index (#12), which records this digest, and the page mounts it at /agda-algebras, a library the playground's project depends on (#11). License: Apache-2.0, the library's own for src/ (LICENSE, with its NOTICE); licenses/agda-algebras/ holds both, copied from the archive.

Path Bytes SHA-256
static/agda-algebras-sources.zip 1,006,145 79fd84ddaae69f76c71acd99911157f5027bdcaf71993cab088445b890ff07eb

static/agda-algebras-modules.json is the list of the modules in that archive, which the Explorer shows (#9): each module's dotted name, its path on the page's drive, and the title of its front matter, with the library's name, its include path and the commit. The flake writes it from the archive (mkAgdaAlgebrasModules, running scripts/library-modules.mjs), and make assets-check writes it again from the archive in static/ and refuses a list that differs. It is derived from the sources the section above names, under their license.

Path Bytes SHA-256
static/agda-algebras-modules.json 58,528 9aa69bbec967e0a55aa51f00de1e62fbd2616f760b00b9eb344d64e689527dfb

agda-algebras' interface archives, built here

static/agda-algebras/ holds agda-algebras' archive index, index.json, and its 392 interface archives, interfaces/*.zip (398 at d32f045f), as nix build .#agda-algebras-archives writes them (#12), copied by make assets and the site's derivation (#14). The interfaces are built in the Nix sandbox by the compiler's own plain agda.wasm from the sources above and the standard library 2.4.1, and packed with their index from Agda's own dependency graph; the build reproduces byte for byte, here and on GitHub's runner (docs/notes/library-archives.md). make assets-check compares the directory with the flake's, and the site's build refuses an archive whose bytes are not the SHA-256 the index records for it, so the index's digest, below, names every archive. Licenses: agda-algebras' interfaces are Apache-2.0, like its sources, since an interface holds its module's source text; the standard library's are MIT, like its sources; the index is a machine-extracted representation under agda-algebras' LICENSE-data (Apache-2.0 or CC0-1.0), which licenses/agda-algebras/ holds, copied from the sources archive.

Path Bytes SHA-256
static/agda-algebras/index.json 281,652 5250de96b2ffad06771512da6d0b0893c1ea709eaaa7251eb7709e96228374d3
static/agda-algebras/interfaces/ 73,285,365 (392 files) each the index's

Retired pins

Pinned from upstream until #58 replaced them; no longer shipped. The compiler's pin stays in the flake (nix build .#compiler-2_8_0, fetched as before) with its recipe, compiler/build-agda-wasm.sh, until the 2.9.0 compiler passes #13's gate; the standard library's is gone from the flake.

The 2.8.0 compiler

The Agda Language Server compiled to WASI, with Agda's JSON interaction mode. Upstream built it from pinned sources with compiler/build-agda-wasm.sh (agda-web/agda-language-server e65419f89e3152c2922e948b3e4d24580172bc6a, agda-web/agda e2f8c69414fa115328280ecc4de1d2b7a23be7fa, ghc-wasm-meta c3f44696d29aaeadd755d69c51735954bfcd59db with the 9.10 flavour, which is GHC 9.10.3.20250924), and compiler/README.md records the same SHA-256. These bytes were committed in upstream's 8a03ddaf (2026-08-31) and are unchanged at ae0aa84c. They are not a release asset of any repository (#4), so upstream's git tree is the one source; a mirror and a rebuild are #4's open half.

The binary statically links the language server (MIT), Agda (MIT), GHC's runtime and boot libraries (the Glasgow Haskell Compiler License), GMP 6.3.0 (LGPL-3.0-or-later or GPL-2.0-or-later), and the Hackage packages of its build plan.

Path Bytes SHA-256
static/als-2.8ext.wasm 32,996,332 53c62b0ad569a9d123f744b192c13780c494ade0cddef4daaa00db41ecd7f7a1

The standard library 2.3

The Agda standard library 2.3, sources only. Its 1,391 files are agda/agda-stdlib v2.3's, entry for entry (equal CRC-32s against GitHub's archive of the tag); upstream repacked them with 642 directory entries, an empty _build/2.8.0/agda/src/ tree among them. License: MIT, carried in the archive as agda-stdlib-2.3/LICENCE, identical to the tag's.

Path Bytes SHA-256
static/agda-stdlib-2.3.zip 1,997,897 7468c113272425ce3223a33b233a31c7e90ae0758cdb1538584be6560bc86cf0

Agda's builtin library, built here

static/agda-data.zip is Agda's lib/prim, whole: the sources of the Agda.Primitive and Agda.Builtin modules, agda-builtins.agda-lib, and the interfaces of every module under _build/<version>/agda/. The flake builds it (nix build .#agda-data, mkAgdaData in flake.nix) from the compiler's plain agda (above), Agda 2.9.0 at agda/agda's tag v2.9.0 (da046d69; at da66a8c7 until [#108]), run under nixpkgs' wasmtime with the build's root as its own (agdaWasm in flake.nix), as follows:

  • that Agda writes its own data files into a throwaway data directory (agda --setup), and builds its lib/prim in place there (agda --build-library), naming no other library and no option;
  • the whole directory goes into the archive at the root the page's server reads it from, lib/prim (the server is built without Agda's use-xdg-data-home flag, and src/lib/worker/als.ts sets Agda_datadir to /);
  • the zip is stored, its entries sorted, and every entry dated 1980-01-01, so its bytes depend on the input alone: nix build .#agda-data --rebuild finds no difference, where the same build with the files' own times fails it.

agdaDataInput in flake.nix names the input, the Agda and the root. The Agda must be the one the page's server embeds, since an interface is accepted only by the Agda version that wrote it, and the server writes its own copy of the sources before it starts; and under Agda 2.9.0 it must be a wasm32 Agda, since 2.9.0 writes an interface at its machine's word size and the wasm32 server cannot read a 64-bit Agda's (#58). Until 2026-10-07 the input was the nixpkgs Agda 2.8.0 at nixpkgs b6018f87da91d19d0ab4cf979885689b469cdd41 (an archive of 681,730 bytes, SHA-256 37063713ccc641ee11f30895ddee4542e24b1529e55f22aa85a8dfddbb875203: 36 sources, 36 interfaces of header version 202507030, and the library file). Since then the archive holds 83 entries: 41 sources, 41 interfaces (little-endian, with a zstd payload) and the library file. The interfaces' header version was 202610030 at the nightly (580,637 bytes, SHA-256 b250cb2154c15efb882139c6698b5b4c3514a3fb1e361bbde58f58a2eed943c0), and is 202610261 at the tag, in all 41 ([#108]). License: Agda's (MIT), as of agda/agda v2.9.0 (licenses/agda-builtins.txt, Agda's LICENSE at that tag, Copyright (c) 2005-2026).

Path Bytes SHA-256
static/agda-data.zip 581,641 e10fc08c349a1ee4b5841982172769d75600444c7822521b93a6d3a4d76e6307

Upstream's archive, a pin until #49 replaced it, held Agda 2.7.0.1's lib/prim: 37 sources, 37 interfaces of header version 202406290, which Agda 2.8.0 rejects and checks again, and agda-builtins.agda-lib. It was byte-identical to static/agda-data.zip of agda-web/als-demo (branch public, last changed in 291b135bec22e976e0e018609fc34dc8e0898267, 2025-10-09): 591,281 bytes, SHA-256 27d81d0987fa692e4a811851b23e5cd9e28b01d11f0ea3b30ee35be309259ea3.

The compiler's gzip

The page fetches the compiler gzipped, and no gzip is pinned, because the build writes its own, as follows:

  • npm run build gzips the raw compiler in build/ (node's zlib at level 9) and deletes the raw copy (scripts/prepare-cloudflare-assets.mjs, which takes the compiler's name from scripts/asset-manifest.mjs). On 2026-10-08 als-reactor-2.9.0.wasm.gz was 11,095,997 bytes and inflated to the pinned als-reactor.wasm's SHA-256; on 2026-10-07 the command module's, als-2.9.0.wasm.gz, was 11,119,315 bytes, and on 2026-10-04 the fork's compiler's 10,154,917 bytes.
  • npm run dev serves the gzip itself: vite.config.js answers its URL with the raw compiler in static/ compressed (node's zlib at level 1, once per version of the file), since the page fetches only the gzip (#8). On 2026-10-08 the dev server's gzip, 12,931,645 bytes, inflated to the pinned als-reactor.wasm's SHA-256, and the page checked Main.agda (two open goals, not cross-origin isolated; headless Chromium 149). Until then the page fell back to the raw compiler when the .gz was missing, which only the dev server could serve.
  • Upstream committed static/als-2.8ext.wasm.gz (10,188,407 bytes, SHA-256 ea79dbb12144db68ef7aeb56bdebc10c143d76d3a3af89056276d4015cb2b32f), and it was never pinned here.

Third-party files among the imported text

These came in with the import; they are text, so they are in git, unchanged.

Path Origin License
static/coi-serviceworker.js (removed by #59) Byte-identical to gzuidhof/coi-serviceworker at 509a799daa6583b83b2a70b4dd1898c7e5a902dd (2023-12-05), the sixth commit to the file after the v0.1.7 release, whose version its header still names MIT, Copyright (c) 2021 Guido Zuidhof
static/plfa/content/**/*.lagda.md PLFA's chapters at 870f9bb1 (scripts/sync-plfa.mjs) CC BY 4.0
static/plfa/LICENSE Byte-identical to plfa/plfa.github.io's LICENSE at 870f9bb1 The CC BY 4.0 text
static/favicon.svg Upstream's adaptation of agda/agda's doc/user-manual/agda.svg (its own comment says so) MIT
src/, scripts/, packages/engine/src/browser/worker/; in part packages/engine/src/browser/index.ts (the startup and the acknowledgment of the server's requests), packages/engine/src/core/give-rule.ts (the give rule) and packages/views/src/*.svelte (the inspector's components); the rest Upstream's own code; its NOTICE.md says the WASI worker, the virtual filesystem, the highlighting, the input method and the transport began from agda-web/als-demo, whose LICENSE is byte-identical to upstream's MIT

Changes to upstream files

Each change is its own commit, named here by its subject.

File Change Commit
.github/workflows/app.yml (upstream's ci.yml) Installs Nix, materializes the pinned binaries (make assets) and builds with make build; uses the dev shell's node; runs on pushes to main; the deploy job removed (hosting is #6) "Build the app workflow from the pinned binaries"
.github/workflows/app.yml Removed: .github/workflows/site.yml replaces it, with its npm steps as make test and make check and its build as nix build .#site (#5) "Check Main.agda in headless Chromium, in CI"
package.json The deploy script (npm run build && wrangler deploy) removed. JSON carries no comment, so this row is the record. "Remove the deploy script from package.json"
package.json, package-lock.json The wrangler dev dependency removed, with the 84 other lockfile entries only it brought in (workerd, miniflare, sharp, undici, and esbuild, which vite takes only as an optional peer). The lockfile is upstream's with those 85 entries deleted, nothing else re-resolved, and the built site is byte-identical (#3). JSON carries no comment, so this row is the record. "Remove wrangler, and the packages only it brings in"
package-lock.json devalue 5.9.2 to 5.9.4, the newest release inside SvelteKit's and Svelte's ^5.8.1, which fixes the six advisories npm audit reported against it; only its entry changed. The page does not bundle devalue, so the built site is byte-identical (#3). "Update devalue to 5.9.4"
svelte.config.js kit.version.name is SITE_REVISION, the source revision the Makefile and the flake pass in, rather than the time of the build, so that two builds of one commit are identical (#3) "Name the build by its source revision"
vite.config.js The commit a build records is SITE_REVISION when it is set, before falling back to git describe, which finds no .git in the Nix sandbox (#3) "Name the build by its source revision"
src/lib/controller.svelte.ts The ?cache= tokens of the compiler's, the standard library's and PLFA's project URLs, the compiler's length in bytes (32_996_332), and the drive's cache namespace (a string naming the PLFA commit) come from src/lib/assets.ts, which the build derives from the files (scripts/asset-manifest.mjs), instead of being maintained by hand; agda-data.zip's URL, which had no token, gains one (#3) "Derive the cache tokens, the compiler's length and the cache namespace"
src/routes/+page.svelte The ?cache= token of PLFA's interface manifest and archives comes from src/lib/assets.ts instead of being maintained by hand (#3) "Derive the cache tokens, the compiler's length and the cache namespace"
vite.config.js Defines AGDA_ASSETS for src/lib/assets.ts: the cache tokens, the compiler's length and the drive's cache namespace, which scripts/asset-manifest.mjs derives from the files in static/; a build hook refuses to build without them, while the dev server, vitest and svelte-check run without them (#3) "Derive the cache tokens, the compiler's length and the cache namespace"
NOTICE.md Removed; NOTICE names everything the site ships and quotes it in full (its section 1) "Remove upstream's NOTICE.md, which NOTICE supersedes"
src/lib/worker/drive.ts The drive's root directory answers its lookups from an index of the drive's paths (src/lib/worker/drive-index.ts), built once the drive is constructed and kept in step with Agda's calls and with the drive worker's own writes (message types 3 and 4), instead of scanning every key per lookup; Runno's methods still compute every result (#50) "Index the drive's lookups"
src/lib/controller.svelte.ts The map of compiler versions keeps only 2.8.0, the one the site ships. The 2.6.4.3 and 2.7.0.1 entries named compilers (als-2.6.wasm, als-2.7ext.wasm) that are in neither the site nor upstream's tree, and shared agda-data.zip, which is now built for the shipped Agda (#49) "Keep only the shipped compiler in the version map"
src/lib/worker/drive.ts Agda's builtin library is extracted as it comes: the callback that moved its interfaces under lib/prim/_build/2.8.0/agda/ is removed, since the flake builds the archive with them already there, under the building Agda's own version (#49) "Build agda-data.zip from an Agda's own lib/prim"
src/lib/controller.svelte.ts The one compiler in the version map is this repository's build of Agda 2.9.0, als-2.9.0.wasm; the server starts with --raw, without which it does not answer in the raw format the transport reads; --setup runs for 2.9.0; and the standard library's URL is the patched archive's (#58) "Run the page on the 2.9.0 compiler"
src/routes/+page.svelte The page runs Agda 2.9.0, and its status bar shows the version the language server reports in place of a literal "Agda 2.8" (#58) "Run the page on the 2.9.0 compiler"
src/app.html The description names Agda 2.9.0, the version the page runs (#58) "Run the page on the 2.9.0 compiler"
scripts/prepare-cloudflare-assets.mjs The compiler's name comes from scripts/asset-manifest.mjs, which names the file the page fetches, instead of a literal (#58) "Run the page on the 2.9.0 compiler"
src/lib/worker/als.ts The worker hosts the language server's reactor build and the drive: it compiles the reactor and imports its JavaScript glue, lays out the drive as its own WASI drive, starts GHC's runtime with _initialize (Runno's initialize), runs the reactor's run_setup in place of a throwaway --setup instance, and drives the server with send_message and recv_message, one JSON message per call. The --version instance, the standard input and output in shared memory, and the drive's proxy are gone (#59) "Host the reactor and the drive in the language server's worker"
src/lib/worker/drive.ts No longer a worker: a module of the language server's worker, whose WASI drive it lays out and indexes. The message loop over shared rings is gone, and the page's writes, archive extraction and the IndexedDB cache are functions that worker exposes; the cache reads each dirty file from the drive's own record, so files at paths made after startup are persisted too (#59) "Host the reactor and the drive in the language server's worker"
src/lib/worker/types.d.ts The worker takes a message port and the glue's URL in place of shared buffers, and the drive worker's types are removed (#59) "Host the reactor and the drive in the language server's worker"
src/lib/worker/proxy-wasi-drive.ts, src/lib/worker/patch-wasi.ts, src/lib/worker/wrap-poll-oneoff.ts, src/lib/worker/util-base64.js Removed (#59) "Host the reactor and the drive in the language server's worker"
src/lib/index.js The page reaches the language server's worker through a message port, framing and unframing each message for the router, where it read and wrote the server's standard input and output in shared memory; the drive worker, and the functions that wrote to it under a lock, are removed (#59) "Talk to the language server through a message port"
src/lib/controller.svelte.ts The controller starts the server's reactor build, and reaches the drive through the worker's functions; it asks Agda for its version with Cmd_show_version when the server is first ready, since the reactor has no --version, and lets the page see the server ready once Agda has answered (#59) "Talk to the language server through a message port"
src/routes/+page.svelte The page allocates no SharedArrayBuffer, and its status bar shows the version Agda reports (#59) "Talk to the language server through a message port"
src/lib/stdlib.ts Removed (#59) "Talk to the language server through a message port"
package.json, package-lock.json spsc, which only the rings in shared memory used, removed; the lockfile is upstream's with its one entry deleted, nothing else re-resolved (#59). JSON carries no comment, so this row is the record. "Talk to the language server through a message port"
src/lib/worker/als.ts, src/routes/+page.svelte Their checks that the page is cross-origin isolated are removed (#59) "Serve the page without cross-origin isolation"
src/app.html The script tag of coi-serviceworker.js is removed (#59) "Serve the page without cross-origin isolation"
static/_headers The three headers that isolated every route (Cross-Origin-Opener-Policy, Cross-Origin-Embedder-Policy, Cross-Origin-Resource-Policy) are removed; the cache rules stay (#59) "Serve the page without cross-origin isolation"
vite.config.js The dev and preview servers no longer send the isolation headers (the coi-plugin is removed) (#59) "Serve the page without cross-origin isolation"
static/coi-serviceworker.js Removed, with its license text, licenses/coi-serviceworker.txt (#59) "Serve the page without cross-origin isolation"
src/lib/controller.svelte.ts The editor takes its text as the one Agda's positions refer to only when the page sends Cmd_load, not after every write to the drive, since after a give Agda's ranges stay those of the text it loaded; the lock on the drive's writes goes, since they are messages handled in order (#59) "Take the editor's text as Agda's only when Agda loads it"
src/lib/controller.svelte.ts A failure to start Agda (to fetch the compiler or an archive, to decompress or compile the compiler, to lay out the drive, to run the setup) rejects the start with a message saying which step failed, where it was swallowed or left the page saying "Agda ready"; the fallback to the raw compiler, dead in the built site since #3, is removed (#8) "Say so when the page cannot run, or Agda cannot start"
src/routes/+page.svelte Before it starts Agda, the page checks what the browser needs (src/lib/support.ts) and, when something is missing, says what and names the browsers it is tested in; when Agda cannot start, the banner, the inspector's heading and the status bar say so, never "Agda ready" (#8) "Say so when the page cannot run, or Agda cannot start"
vite.config.js The dev server serves the compiler's gzip, compressing the raw compiler in static/, since the page no longer falls back to the raw file (#8) "Say so when the page cannot run, or Agda cannot start"
src/lib/controller.svelte.ts The server starts without the fork's +RTS -A64m -RTS, which the reactor's runtime takes and which made no check faster while it grew the heap by 70 to 90 MiB (#59) "Start the language server without +RTS -A64m -RTS"
src/lib/controller.svelte.ts, src/routes/+page.svelte, src/lib/worker/drive.ts A body that breaks off while an archive is read names the archive; a server that fails or exits of its own accord is reported ("Agda stopped"), where the page went on saying "Agda ready"; a browser that refuses IndexedDB by throwing leaves the drive uncached rather than failing the start (#59's review) "Report a broken archive, a stopped server and a refused cache"
src/app.css, src/app.html, src/routes/+page.svelte, src/lib/agda/color-scheme.js, src/lib/codemirror/theme.ts, src/lib/codemirror/symbol-input.js Literal colors become shared CSS tokens, preserving both system schemes during extraction (#17) "Extract the workbench color tokens"
src/app.css, src/app.html, src/routes/+page.svelte, src/lib/agda/color-scheme.js, src/lib/agda/index.js, src/lib/codemirror/theme.ts, src/lib/codemirror/symbol-input.js The page and editor use the light and dark tokens in static/theme.css, follow the system or the saved theme choice, and share contrast-checked highlighting (#17) "Follow the system or saved workbench theme"
src/lib/worker/als.ts, src/lib/worker/drive.ts, src/lib/worker/types.d.ts Moved into the engine package's browser transport, as packages/engine/src/browser/worker/als.ts, drive.ts and protocol.ts, with their imports named as node and TypeScript's NodeNext resolution need them; the drive also reads a source back, which the engine compares with what it wrote (#62) "Add the engine package: Agda's interaction protocol behind one interface"
src/lib/controller.svelte.ts The page's host of the engine: it starts Agda through @agda-native-ide/engine/browser, checks the buffer through the engine's session (which sends each command, validates each answer, and decides by the give rule between a give and a load), asks the inspector's questions through @agda-native-ide/tools, and keeps the page's state, the editor, persistence and the PLFA conversion; its startup, the version query, the router and the give rule moved into the engine. A check after a case split loads the module, where it said "Already checked" (#62) "Make the repository a workspace, and run the page on its packages"
src/lib/agda/handlers.js Applies Agda's answers to the editor as the engine delivers them, validated, in Agda's own JSON; the decoding of the language server's own forms, which a server started with --raw never sends, is gone, and a give's and a case split's replacements are the engine's rule (#62) "Make the repository a workspace, and run the page on its packages"
src/lib/agda/highlight.js Its highlighting item's type is the engine's (#62) "Make the repository a workspace, and run the page on its packages"
src/lib/agda/transport.js, src/lib/agda/lsp.js, src/lib/agda/schema.js, src/lib/index.js Removed: the engine package does what they did (#62) "Make the repository a workspace, and run the page on its packages"
src/routes/+page.svelte The PLFA manifests are read through @agda-native-ide/manifest, which validates them and plans a chapter's archives, and the inspector's goal list, result and problem list are @agda-native-ide/views' components, with their styles (#62) "Make the repository a workspace, and run the page on its packages"
vite.config.js The unit tests include the packages' (#62) "Make the repository a workspace, and run the page on its packages"
src/routes/+page.svelte The PLFA interface manifest is checked against the corpus the page loaded, so a chapter's archive that is not a chapter refuses the manifest, naming the field, and a chapter then mounts every chapter's archives up to it, where the page requested the missing archive and failed (#62's review) "Check the PLFA interface manifest against the loaded corpus"
package.json, package-lock.json The repository is an npm workspace of the page, the four packages and the companion, whose own lockfile is folded into this one; @andy0130tw/vscode-jsonrpc-esm, which only the removed router used, is removed. npm 10 dropped the libc field of ten platform bindings from the lockfile it rewrote, and those fields are restored as they were, so the lockfile only gains entries, but for the one removed (#62). JSON carries no comment, so this row is the record. "Make the repository a workspace, and run the page on its packages"
packages/engine/src/browser/worker/drive.ts Reading a source back keeps its byte order mark, as node's reading does, so a source that starts with one loads in the page as natively (#62's self-review) "Keep a source's byte order mark when the drive reads it back"
src/lib/agda/handlers.js A case split's edit is the engine's caseSplitEdit, which keeps the line's indentation for every clause and in an extended lambda replaces only the goal's clause, as Agda's Emacs mode does (#62's self-review) "Close the session's corners a self-review found"
src/lib/controller.svelte.ts, src/routes/+page.svelte Infer and Normalize check the file on screen first when Agda holds another; replacing the editor's text makes the next check a load, and an answer about another file is not applied; the drive is ready for archives once the session has opened; a mount counts and flags only the archives it lacks; the inspector asks about the goal named (#62's self-review) "Answer Infer and Normalize in the file on screen, and keep the page's state its own"
vite.config.js The build refuses node's built-in modules in the page and in its worker, which Vite would replace with empty ones (#62's self-review) "Refuse node's built-in modules in the browser's bundle"
package-lock.json The companion's entry declares @agda-native-ide/engine and @agda-native-ide/tools (links in the workspace) and rolldown 1.2.6 (already locked, as Vite's bundler), as its manifest does; edited by hand, since npm 10 rewrites the file with fields lost, and nothing is re-resolved: the lockfile gains those five lines alone, and npm ci accepts it. The flake's npmDepsHash changes with it (#64). JSON carries no comment, so this row is the record. "Host the native engine in the companion"
packages/engine/src/browser/worker/drive.ts, packages/engine/src/browser/worker/protocol.ts, packages/engine/src/browser/index.ts (its startup), src/lib/controller.svelte.ts The drive is laid out with a list of libraries, each an archive extracted at the root, its .agda-lib on the drive and its name, and writes Agda's libraries and defaults files from that list after the standard library, where it took PLFA's archive alone and wrote fixed text; the startup fetches each library, and names one it cannot fetch in the host's words, where it fetched one project archive; the page passes PLFA as one library, so its drive is as it was (#13) "Lay out the drive from a list of libraries"
packages/engine/src/browser/worker/drive.ts, packages/engine/src/browser/worker/protocol.ts, src/lib/controller.svelte.ts, src/routes/+page.svelte The drive starts with the files the host names, where it held an empty /Main.agda; the playground's buffer is /play/Main.agda, beside /play/play.agda-lib, which the page names, a library depending on the standard library and agda-algebras, whose sources archive joins the drive's libraries; the buffer is kept under a localStorage key named by its path (#11) "Put the playground in a project of its own, over agda-algebras"
src/routes/+page.svelte, src/lib/controller.svelte.ts The default Main.agda carries agda-algebras' options line, {-# OPTIONS --without-K --exact-split --safe #-}, imports only builtins, and opens one goal; after a load that leaves goals, the controller asks for the selected goal's context, so the inspector shows it with the goal (#11) "Open the playground under agda-algebras' options, with one goal and its context"
packages/engine/src/browser/worker/drive.ts, packages/engine/src/browser/worker/als.ts, packages/engine/src/browser/worker/protocol.ts The host's files are written over what the drive's cache restores, in prepareDrive, rather than before it, so a cached copy never stands in for one; they are part of the mount, not of the archives the drive is laid out from (#11, its review) "Write the host's files over what the drive's cache restores"
src/routes/+page.svelte The Explorer is one tree, @agda-native-ide/views' ExplorerTree, of three sections: the playground's Main.agda, every module of agda-algebras from the list the build writes (agda-algebras-modules.json), and PLFA's chapters by part, where it was two hard-coded levels; its rows stay enabled while Agda is busy (a file the page cannot open then is aria-disabled), which rows are expanded is kept in localStorage, and the open file is revealed and marked current; the Explorer's styles leave the page with its rows (#9) "Show the Explorer as one tree, with every module of agda-algebras"
scripts/benchmark-plfa.mjs The benchmark opens PLFA's parts and finds its chapters by the Explorer's tree rows ([role="treeitem"], by data-id), where it clicked the fork's .tree-part and .chapter-row buttons, which the tree replaced (#9's review) "Drive the PLFA benchmark through the Explorer's tree"
packages/engine/src/browser/worker/drive.ts, packages/engine/src/browser/worker/als.ts, packages/engine/src/browser/worker/protocol.ts A mounted archive's files leave the drive's cache (neither persisted nor restored again), the drive says which paths it holds, its database closes when a newer page deletes it, and its name's prefix is shared with the page (#14) "Keep the mounted archives by their digests, and drop stale drive caches"
packages/engine/src/browser/index.ts (its mount), src/lib/controller.svelte.ts, src/routes/+page.svelte Before a check of the playground's Main, the page plans the archives its imports need from agda-algebras' index, mounts those the browser keeps, and states the bytes of the rest and asks before it fetches them; the transport fetches at most six at once with their progress, checks each against its SHA-256 and keeps it; the PLFA mount's labels are general; a stop is an outcome; the abort key reaches a command under way (#14) "Mount what a check's imports need, after stating the bytes and asking"
src/routes/+page.svelte, src/lib/controller.svelte.ts, src/lib/codemirror/theme.ts Each open file has an editor state of its own, which the controller keeps while another is shown and shows with setState, so undo never crosses files, where setDocument replaced one state's text; each file's edits are saved under its own key, and what waits is saved when the page is left; the open files are tabs; the editor's color scheme compares the theme with the scheme of the state on screen (#10) "Keep an editor state per open file"
src/routes/+page.svelte, src/lib/controller.svelte.ts, src/lib/codemirror/lsp-hover.ts A module of agda-algebras opens read-only from the Explorer, loaded with the session's load of its path, which writes nothing, after the archives of its own closure are mounted, with a line that says it is the checked library and links its page; hover sends its position, and reads its answer's range, in code points, which the language server counts, where CodeMirror's client sent UTF-16 code units (#10) "Open agda-algebras' modules read-only, loaded as the drive holds them"
src/routes/+page.svelte, src/lib/controller.svelte.ts A module of agda-algebras, or a selection in it, is copied into a file of the playground's project, named by its path, listed in the Explorer and kept in the browser, and written to the drive when Agda starts; a name Agda finds already is refused; open import of the module is added to Main (#10) "Copy a library module, or a selection, into the playground"
src/routes/+page.svelte, src/lib/controller.svelte.ts A file shown again that Agda does not hold shows no goals, and a goal command there is refused; the playground's files are the keys of their text; a copy is refused under a playground file's name, Main's among them; a library module open already is shown after Agda stops; a chapter shown again keeps its scroll (#10's review) "Close the corners an adversarial review found"
src/routes/+page.svelte PLFA's index, its interface manifest and archives, and its chapters' sources are fetched through asset(), where the page fetched them by root-absolute URLs, so that the site works under a path, as GitHub Pages serves it at play/ of the project's website (#96) "Fetch PLFA's files through the base path, for the playground under play/"