# Ownership, licences and distribution

## Original work

At the owner's direction, the wholly owned, independently authored Rust page
controller, JavaScript adapter, HTML/CSS shell, tests, documentation and build
orchestration in this repository are offered under `LICENSE-MIT.txt` (MIT).
`Cargo.toml` describes this original Rust package, **not the combined game**.
This permission does not relicense imported material or remove existing rights
under earlier distributions. Git history identifies the original shell work;
the pinned upstream archives identify the engine and game data separately.

## Imported work — retain its own terms

- Doom / Chocolate Doom / Cloudflare doom-wasm: upstream GPLv2; the exact
  `COPYING.md` is shipped as `licenses/doom-GPL-2.0.md`. `LICENSE.md` preserves
  the repository's existing GPLv2 text unchanged. Source headers may grant
  GPLv2-or-later; this document does not narrow those grants or relabel them MIT.
- Freedoom Phase 1 0.13.0: its BSD-style `COPYING.txt`, contributors and music
  credits are distributed unchanged. Music playback is disabled, but the data
  archive and its music notices remain included.
- JetBrains Mono: the bundled OFL notices and font provenance remain intact.
- Rust: exact Cargo.lock sources are vendored using Cargo, including build and
  target dependencies. `rust-controller.html` and `rust-tools.html` are generated
  with cargo-about for the WASM controller and native packager respectively.
  MIT is selected where a dependency grants that option; other required terms
  (including Unicode and Apache/LLVM terms) are not replaced.
- Emscripten 3.1.71: the pinned image supplies its runtime/system sources and
  MIT/NCSA, musl and LLVM-family notices. SDL2, SDL2_net and SDL2_mixer have
  zlib-style terms; Ogg/Vorbis have BSD-style terms. All port source notices,
  including optional backends not necessarily linked, are retained in the
  archive and the `licenses/engine/` tree. Disabling music is not evidence that
  the linker eliminated every music library. Use the offline build's verbose
  link command and link map to inspect actual linked objects.
- static-web-server and its container dependencies are a separate pinned
  serving program/image, not relabelled by the shell MIT permission. The
  inspected image labels identify 2.44.0. Its upstream MIT OR Apache-2.0 grant
  and unchanged MIT notice remain under `web/licenses/`. Corrected notices
  under `web/licenses/server/` cover all 264 packages in the conservative
  locked-source, five-target recipe graph, with native-source, Rust 1.97.1
  library and musl notices, source references and SHA-256 manifests. MIT is
  preferred where valid; actual BSD alternatives and AND obligations remain.
  http-serde uses its declared Apache-2.0 alternative, with its unchanged
  manifest attribution and Apache terms, not an invented MIT copyright.
  The runtime now uses a separate controlled Rust 1.97.1 amd64-musl build,
  offline and locked with Brotli/gzip features and defaults disabled.
  `controlled-build.json` records its binary hash, immutable builder, recipe
  and actual compiled package/feature units. `runtime-inputs.json` verifies
  the Rust target libraries against the authentic distribution; the compressed
  link map identifies the self-contained libc/CRT/unwind inputs. The full
  notice graph is checked to cover every compiled package, but remains a
  conservative superset rather than proof of which objects survive linking.
  The prior official executable was built unlocked and is retained only as
  historical baseline evidence; its provenance is not substituted for this build.
  See `web/licenses/server/README.md` for reproduction and remaining limits;
  distribution obligations still apply.

## Distribution is not ownership

MIT permission on the original shell does **not** turn a GPL-derived combined
work into an MIT-only product. Distribution of the engine and any combined work
subject to GPL must satisfy the applicable GPL terms; all independent material
retains its notices. The accompanying archive includes the shell, exact locked
Rust sources, pinned engine/data inputs, Emscripten ports/runtime sources and
build instructions. Its inventory records hashes, not a legal conclusion.

The archive is not a hermetic compiler/OS distribution: Rust/rust-std,
wasm-bindgen-cli, Docker and the pinned Emscripten builder image are
prerequisites. The Emscripten builder supplies Node and its native build tools.
Offline tests exercise builds after those tools are available;
they do not certify source-delivery compliance, ownership of third-party work,
all optional backends, public rollout, or every supported platform.
