…fest schemes (engine#3287)
v2026.47 ships its NPU sets INSIDE the payload (<engine dir>/npu/kernels, a real directory) and signs them
with a signed manifest (manifest, first line 'npumanifest 2') that carries no layout.json. sealed and
npu-kernels-beside-engine looked only at /data/npu/kernels for layout.json, so they failed on a boot whose
NPU chat passed at ~98 tok/s. Now: one helper finds the set root (in the payload beside the engine, else
/data/npu/kernels) and treats any directory with a manifest of either scheme as a set; sealed checks the
1BPKCRYP rule only for format-1 sets (signed-manifest sets ship plain ELFs by design) and keeps the
manifest and build-tree checks for both; npu-kernels-beside-engine passes when the sets ship in the
payload; sealed-sig skips, rather than passing over nothing, when only signed-manifest sets are present.
Measured: on the installed v2026.47 box npu-kernels-beside-engine PASSes (2 sets) and sealed now FAILs on
the 30 kernel build-tree entries the 0.6B set had shipped with (removed from the republished release); on
the clean payload both sets verify against their manifests and the root has no build tree. --self-test
gains three cases for the set discovery.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Part of #3287 (release-check rows 1 and 2 of 5).
Why: v2026.47 ships its NPU sets inside the payload (
<engine dir>/npu/kernels, a real directory) with a signed manifest (manifest,npumanifest 2) and nolayout.json.sealedandnpu-kernels-beside-engineonly looked forlayout.jsonunder/data/npu/kernels, so both failed on a boot whose NPU chat ran at ~98 tok/s.Change:
npu_engine_dir/npu_set_dirs/npu_sets_root: the set root is the payload'snpu/kernelswhen it holds sets, else/data/npu/kernels; a set is any directory with a manifest of either scheme (or the dev shape'slayout.json).sealed: the 1BPKCRYP rule only for format-1 sets (signed-manifest sets ship plain ELFs by design: integrity, not secrecy); the manifest check (seal_manifest_problems, both schemes) and the build-tree check for every set.npu-kernels-beside-engine: PASS when the sets ship in the payload beside the engine; the symlink logic stays for /data layouts.sealed-sig: SKIP with the reason when only signed-manifest sets exist (it used to PASS with "0 verified").--self-test: three cases for the discovery (payload root wins, a signed-manifest set without layout.json is one set, fallback to /data).Measured:
npu-kernels-beside-enginePASS (2 sets);sealedFAIL on 30 kernel build-tree entries that the Qwen3-0.6B set shipped with. That was a real leak; the release files were rebuilt without them and republished.sh -nclean,--self-testrc 0.🤖 Generated with Claude Code