Skip to content

Before the first release: licenses, CPU check, install docs, missing images - #12

Merged
sdumetz merged 6 commits into
mainfrom
pre-release
Nov 25, 2026
Merged

sdumetz merged 6 commits into
mainfrom
pre-release

Conversation

@sdumetz

@sdumetz sdumetz commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Easy deferred items, done before tagging v0.1.0.

  • Licenses in the binaries. cmake --install, and so the release tarballs, now put LICENSE in share/doc/meshtinker/, and each statically linked library's license in third-party/<library>/. That covers the vendored libraries, plus libaom (with PATENTS), libavif and libwebp from their extracted archives. cgltf, nlohmann/json and stb state their license in a header, so it is copied into a file beside each one (vendor/README.md).

  • ktx checks the CPU. basisu is built with SSE 4.1 on x86-64 and calls a kernel without checking. ktx now exits with 4 (cpu-unsupported) before encoding its first image, instead of dying of SIGILL. Inside optimize the step is left out with step-failed. This path is untested: no machine here lacks SSE 4.1.

  • README. Installing from a release comes first: download, checksum, extract into ~/.local, the x86-64-v2 note, and uninstalling. Building from source follows it. export --json's shape is now documented. export's text report gives sizes as 1.1 kB, as the other reports do since Pretty logs: readable sizes and times, --log-level and JSON logs #11.

  • Missing images are rejected by every command. The TODO said the missing-image handling past import was dead code, and running each command on the missing-image fixture showed it wasn't. Only import and inspect ran the analysis that rejects a missing image. The other commands, run on a file, accepted the model and wrote a reference with no file behind it; uv, ktx and avif warned image-missing, the rest said nothing. gltf::readNormalized now rejects it the way import does (missing-image, exit code 1). The writers refuse a missing image, and the handling in uv, dedup and texture::reencode is gone. Chains, and so optimize, are unaffected because import rejected the model first. Listed under pending decisions for review.

  • Docs cleanup.

    • The heap-budget handoff prompt is removed: its questions and model list now open heap-budget-results.md, and the text that file kept for pasting into TODO.md is gone.
    • Public docs no longer link to TODO.md, which isn't in the repository.
    • The README's "Architecture" section is now a short description of how the commands are organised today, instead of the original design pitch.
    • The experiment scripts no longer hard-code a home directory. They read the local models' folder from test/corpus.local.json through a new node tools/corpus.mjs root local, and heap-budget.sh takes its benchmark disks from SSD_OUT/SSD_DEVICE and HDD_OUT/HDD_DEVICE. Every relative link in the docs still resolves.
  • Local models by label only. The docs, experiment CSVs and scripts named the local models by their folder and file names. They now use public labels (collection-NN, scan-44m, statue-a, ...), which the gitignored test/corpus.local.json maps to the real names. Image file names in the CSVs became image-N-<role>. node tools/corpus.mjs leaks lists any tracked file that still holds one of those names, and docs/validation.md states the rule. sources.sh now takes its four local images as arguments.

Checks: the pre-commit build and ctest, and the ASan build and ctest, all pass. cmake --install was run to a staging prefix to check the 19 license files. Each command was run by hand on the missing-image fixture before and after the change.

🤖 Generated with Claude Code

gltf::readNormalized rejects a model with a missing or refused image
file (missing-image, exit code 1), as analysis::inspect does for import
and inspect. Commands run on a file used to write a reference without a
file, and uv, ktx and avif to warn image-missing. The writers now refuse
a missing image, and the handling for one in uv, dedup and
texture::reencode goes.
cmake --install, and so the release archives, put LICENSE in
share/doc/meshtinker/ and each library's license, vendored or
downloaded, in third-party/<library>/. cgltf, nlohmann/json and stb state
theirs in their headers: copied to license files beside them.
basisu is built with SSE 4.1 on x86-64 and calls a kernel without a CPU
check. The encoder now checks first and exits with 4.
export's text report gives sizes as the other reports do.
The heap-budget handoff goes: its questions and models move into the
results, which lose the text meant for TODO.md. Public docs no longer
point to TODO.md, which isn't in the repository. The README's
architecture section says how commands are organized today. The
experiment scripts read the local models' folder from
test/corpus.local.json (corpus.mjs root) and the benchmark disks from
the environment.
Docs, experiment CSVs and scripts named the local models by their
folder and file names. They now use labels (collection-NN, scan-44m,
statue-a ...) that test/corpus.local.json maps to those names, and
node tools/corpus.mjs leaks finds any name left in tracked files. The
benchmark sources script takes its local images as arguments.
@sdumetz
sdumetz merged commit 3c3a089 into main Nov 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant