Packages

From Generous-Corp/pulp · View interactive version

Packages is an AI agent skill from the GitHub repository Generous-Corp/pulp. Search, suggest, add, and browse third-party audio packages. Handles "suggest packages", "add a package", "what packages are available", "search for pitch detection", and package browsing.

How to use this skill

Skill file

Package Manager Skill

Help users discover, evaluate, and add third-party audio libraries to their Pulp projects.

When to Use

Package Discovery

Search the registry for packages matching a need:

./build/pulp search "<query>"
./build/pulp search "<query>" --refresh
./build/pulp suggest --description "<what the user needs>"
./build/pulp suggest --description "<what the user needs>" --include-license-gated

pulp suggest hides packages that require license review or a commercial

override by default. Add --include-license-gated only when the user explicitly

wants to inspect those candidates; otherwise prefer permissive defaults.

Or read the registry directly for full details:

cat tools/packages/registry.json | python3 -m json.tool

Remote registry signing (registry owner)

pulp search reaches the remote registry

(default_remote_registry_url() in tools/cli/package_registry.hpp) only

when the project has no tools/packages/registry.json. The CLI trusts that

remote registry.json only with a verified registry.json.sig beside it: an

Ed25519 signature over `"pulp-package-registry-sig-v1\n" + sha256_hex(bytes)

tools/cli/package_registry_trust.hpp. Enforcement is keyed on that pin:

while it is empty (no key pinned yet) the registry is used unsigned and

pulp search prints a one-line notice; once a key is pinned, unsigned or

mismatching registries are refused (--allow-unsigned-registry overrides for

one run, loudly), and a cached copy is reused only while the

registry-cache.json.sig cached beside it still verifies against the pinned

key (re-checked on every load, so writing the cache directory cannot forge

trust).

Pinning the key is therefore the switch that turns verification on; ship it

only after registry.json.sig is published.

Owner steps, once per registry change, with nothing but Python:

# once: create the seed (private; back it up) and pin the printed public key
python3 tools/scripts/sign_package_registry.py keygen --out ~/.config/pulp/secrets/package-registry.seed
#   -> paste the public key into kPinnedRegistrySignerPublicKeyHex and ship that CLI

# every change: sign the exact bytes you publish, then publish both files
python3 tools/scripts/sign_package_registry.py sign --key ~/.config/pulp/secrets/package-registry.seed registry.json
#   -> registry.json.sig next to registry.json, same URL prefix

# optional: prove the pair before publishing
python3 tools/scripts/sign_package_registry.py verify --public-key <hex> registry.json registry.json.sig

Sign the bytes as served: any re-serialisation (pretty-printing, CRLF) after

signing invalidates the signature. Rotating the key means pinning the new

public key in a CLI release first, then signing with the new seed; CLIs still

pinned to the old key will refuse the newly signed registry. The helper's

test_sign_package_registry.py and the C++ registry tests share one fixed

vector so the two implementations cannot drift apart silently.

Package Categories

| Category | Packages | What They Provide |

|----------|----------|-------------------|

| dsp | aubio, btrack, cycfi-q, daisysp, essentia, fftw, fluidsynth, freeverb, kfr, kissfft, libpd, pffft, rnnoise, rubber-band, signalsmith-dsp, signalsmith-stretch, soundtouch, speexdsp, stk, tinysoundfont | Pitch/time stretch, filters, FFT, pitch detection, physical modeling, noise reduction, synthesis |

| audio-io | alac, dr-libs, fdk-aac, lame, libflac, libsamplerate, libsndfile, libvorbis, miniaudio, oboe, opus, r8brain-free-src | File codecs, sample-rate conversion, device/audio I/O |

| music-theory | mts-esp, sst-tuning-library | Optional microtuning client integration, direct Scala SCL/KBM file parsing |

| ml | rtneural | Real-time neural network inference |

| ui | fontaudio | Audio icon font |

| utilities | libremidi, rtmidi | MIDI I/O helpers |

Custom design-import controls (P8)

A package that provides a custom control for the design importer declares it

under the optional design_controls array on its registry entry

(registry-schema.json → design-control). Each entry is FLAT — a Figma identity

(component_set_key — authoritative — or name_prefix — fallback) at the top

level alongside factory_id (NOT nested under a match object). This shape is in

lockstep with the TS DesignControlEntry (library-registry.ts) and the flat

library-manifest.json convention; the schema's anyOf requires at least one

identity field. Each entry maps that identity to

a factory_id the package's pulp::view::View registers at host startup via

register_design_control_factory (see the import-design skill, P7 Tier-3).

End-to-end the importer consumes these fragments automatically: when it resolves

a design, it discovers the project's packages.lock.json + registry.json,

gathers each installed package's design_controls into the recognition merge

layer (RecognitionResolver::add_source, one source per package), and when an

imported node's identity matches, emits a kind=custom interactive element

carrying that factory_id. DesignFrameView::build_overlays then builds the

package's control; an unregistered factory renders inert + diagnoses (never a

silent knob). With no custom-control package installed, nothing is gathered and

import behavior is unchanged. The TS resolver customControlFactoryId in

library-registry.ts mirrors the same flat-entry shape for the in-Figma plugin

lane. This is the "give-back" path's long tail: an obvious common control is

promoted into core pulp::view + the shipped library-manifest.json instead.

Adding a Package

./build/pulp add <package-id>

This will:

  1. Check license compatibility and require explicit review for restricted licenses
  2. Check platform support against project targets
  3. Warn about overlaps with Pulp built-ins
  4. Pin the registry git_tag to a full commit and an archive integrity (fails

closed: a package it cannot pin is not added)

  1. Generate cmake/pulp-packages.cmake with FetchContent declarations by commit
  2. Update packages.lock.json, DEPENDENCIES.md, NOTICE.md
  3. Print usage instructions (target_link_libraries + #include)

Registry pins and the lock

validate_registry.py rejects branch names (master, main, ...) and

abbreviated commits; a repo with no tags is pinned by full commit, and the

short form goes in version (see alac, tinysoundfont). Verify against the

upstream with git ls-remote before pinning: tinysoundfont's old master

pin had silently stopped resolving when upstream renamed the branch to main.

(sha256- + sha256 of git ls-tree -r -z --full-tree <commit>), license,

and license_acceptance when an override was used. The generated CMake

requires HEAD == commit, a clean git status, and the same digest, and

refuses otherwise (a FETCHCONTENT_SOURCE_DIR_<NAME> override downgrades

failures to loud warnings).

core.autocrlf/tar.umask, or an upstream export-subst placeholder (which

expands differently in a shallow fetch and a full clone) all change its bytes.

configure, with a warning; pulp update --apply re-pins them.

Source-backed FetchContent packages

Registry entries can describe packages where upstream does not export the exact

CMake target Pulp wants. Use cmake.sources for source files that should be

compiled into a generated static target after FetchContent populates the source

tree. Keep cmake.include_dir rooted at the fetched source directory and make

the generated target position-independent so plugins can link it safely.

mts-esp is the reference pattern: it fetches ODDSound's source, compiles

Client/libMTSClient.cpp into mts_esp_client, links ${CMAKE_DL_LIBS} when

needed, and stays opt-in. When adding another source-backed package, update the

registry schema, package-command generation tests, dependency manifest,

DEPENDENCIES.md, NOTICE.md, and docs/reference/licensing.md together.

Header-only packages whose upstream CMake builds tools/tests instead of a

consumer-ready target can set cmake.add_subdirectory=false; the generated

pulp-packages.cmake uses FetchContent_MakeAvailable() with an inert

SOURCE_SUBDIR so the source tree is populated without adding upstream

tools/tests, then creates the declared interface target. sst-tuning-library

is the reference pattern for source-only SCL/KBM parsing.

Tag-pinned FetchContent dependencies need a checked-in commit

The Vellum closure gate (tools/scripts/vellum_closure.py) refuses any input

whose dependency has no checked-in 40-hex commit, and compares every row against

that commit. A dependency fetched by tag (SDL3, yaml-cpp, Yoga, SheenBidi) records

the peeled commit as upstream.commit in tools/deps/manifest.json; it wins

over the setup.sh hash, which may be an annotated-tag object rather than a

commit. When you bump such a tag, update upstream.commit in the same change

(git ls-remote <repo> 'refs/tags/<tag>^{}' gives the peeled commit), or the

gate fails on every row from that dependency.

An upstream that tags more than one product needs `tag_pattern`

audit.py --check-upstream reports latest= from the GitHub releases API, else

the highest semver tag. A repository that also tags sub-crates or side products

can win with the wrong tag. Add "tag_pattern": "<regex>" to the row's

upstream (full-match against the tag name): tags outside it are ignored, and a

releases-API answer outside it is discarded and reported as a "tag-order guess".

A declared pattern also disables the year-shaped-major filter, so date-versioned

projects (mise) work. An invalid regex flags only that row; the rest of the audit

still runs.

Overlap Awareness

Before suggesting a package, check if Pulp's built-in core/signal/ already covers the need:

when enabled. muFFT is compiled from the pinned source files only; its

upstream CMake tests and FFTW-linked tools are never built or shipped.

The real-time FFT admission rule applies to the largest single allocation,

and every transform path must remain allocation-free on the audio thread.

Browsing Guides

The hand-written guide set covers the original curated packages. The registry is

larger, so use pulp search <query> or inspect tools/packages/registry.json

for the full inventory:

docs/guides/packages/index.md          — category overview
docs/guides/packages/<package-id>.md   — per-package guide

Read these to answer questions about specific packages.

License Policy

MIT/BSD/Apache/ISC/zlib/BSL/public-domain packages install without prompts.

MPL-2.0 and other unlisted licenses require manual review. GPL/LGPL/AGPL

packages are restricted: the CLI blocks until the user explicitly accepts the

package SPDX with --accept-license <SPDX> or declares a commercial-license

basis with --license-override commercial. SSPL and proprietary packages are

blocked by default, but the current CLI also accepts

--license-override commercial for them, records a compliance warning, and

leaves distribution responsibility with the project. Prefer permissive

alternatives from the registry when available.

A registry `license` must name the license the project actually ships

Read the project's own LICENSE file at the pinned commit before writing the

license field; "BSD-like" is not BSD-3-Clause. PFFFT was listed as

BSD-3-Clause for months, although its LICENSE.txt is the FFTPACK license from

UCAR, with its own wording. A permissive license with no SPDX identifier gets a

LicenseRef-<Name> token and a license_note stating its conditions. The CLI

then reports it for review, instead of calling it allowed under a name it does

not carry.

Check a pinned annotated tag on a full clone, or with

git ls-remote <repo> 'refs/tags/<tag>^{}'. A `git clone --depth 1 --branch

<tag>` can print "is not a commit!" for an annotated tag that resolves fine.

The package's test stub under tools/packages/test-stubs/ is the install-path

check: configure, build and run it.

Attribution Audit

tools/deps/audit.py runs four invariants; the first two are --strict,

the last two also need --verify-licenses (both are in gates.sh):

  1. Consistency — every manifest.json entry must appear in

DEPENDENCIES.md, NOTICE.md, and docs/reference/licensing.md.

  1. Completeness — every dep declared in a real manifest source

(requirements-docs.txt, mkdocs.yml, external/<dir>/, and every fetch

in any CMake file or setup/bootstrap script: FetchContent_Declare,

ExternalProject_Add, file(DOWNLOAD), execute_process running

curl/wget, curl/wget/git-clone and the ensure_shared_* helpers; and

curl/wget in any shell script under tools/ or hooks/) must be represented in

manifest.json, or be listed with a reason in KNOWN_UNLISTED_FETCHES

(printed every run as a follow-up; a stale entry fails --strict). A fetch

that names its upstream is matched by URL (repository or an artifacts

URL), never by its local FetchContent label, so choc_wclap is covered by

CHOC's repository and a familiar name from a different repo is not. Keep

aliases to genuine spellings of the same dependency: an alias naming a

different upstream (WebGPU-distribution once listed wgpu-native) hides

that upstream from this check. A URL built at run time is invisible to it;

say so in review rather than assume coverage.

  1. Truthfulness — the attribution text must match the license actually on

disk: no NOTICE entry may reproduce a truncated permission notice, and no

checked-out tree may offer a copyleft alternative while the manifest

declares something permissive.

  1. Offline fetch — an entry marked "offline_fetch": {"cache_name": ...}

(WebGPU-distribution today) must download only through FetchContent_Declare,

never a raw file(DOWNLOAD): changed-surface bounded runs configure their

base with FETCHCONTENT_FULLY_DISCONNECTED=ON, which governs nothing else.

Its tree is found as <cache_name>-<pin>... in the shared FetchContent cache.

Checks 1 and 2 only ask whether a dep is named in each file. That is why

both of these passed a green --strict run for months: NOTICE.md reproduced

MIT without its warranty disclaimer for 21 entries, and the VST3 SDK was

labeled MIT on all four surfaces while the pinned tree (v3.7.12) was

"Steinberg VST3 License OR GPLv3". **A name being present says nothing about

the text being right** — when a license claim matters, read the tree.

A single-file library vendored inside another dependency's directory is its own entry

external/dr_libs/ holds stb_vorbis.c (nothings/stb, MIT or Unlicense) next

to the dr_libs headers (mackron, Unlicense or MIT-0). They are different

projects with different licenses and patch histories, and the audit's

consistency check walks manifest.json entries, so a file that was never

given an entry is invisible to it. When you vendor or patch a file, check that

the project that owns it has its own entry, not the directory it happens to live

in. The control is to list external/*/ and name the upstream of every file

whose header credits a different author than the directory's entry; a patch

in tools/deps/patches.json must hang off the entry for the project the

patch edits.

Digest-pinned release assets (`artifacts`)

A dependency shipped as prebuilt release assets records each one in its

manifest row: {"name", "url", "sha256", "tree_sha256"}. sha256 is the

archive; tree_sha256 is the extracted tree (one "<path> <sha256>" line per

file, sorted), which is what lets configure re-check a shared cache that holds

only extracted files. wgpu-native is the first user:

tools/cmake/PulpWgpuNative.cmake and setup.sh both read these pins and

refuse a mismatch. Record new digests with

python3 -I tools/deps/wgpu_native_digests.py <fresh-empty-dir>/*.zip after

downloading the assets yourself; a release that publishes no digest of its own

means the download you hash is the only evidence, so download twice into

separate empty directories and compare.

Writing a NOTICE entry

Copy the license **verbatim from the dependency's own tree or pinned upstream

ref** — never paste a template. MIT looks like boilerplate but is not uniform

in practice: of 21 deps audited, mkdocs-material writes NON-INFRINGEMENT

where the rest write NONINFRINGEMENT, and Catch2's Boost license has a

materially different disclaimer ("TITLE AND NON-INFRINGEMENT", "ANYONE

DISTRIBUTING THE SOFTWARE"). The entry must carry the whole notice —

permission grant, inclusion condition, and warranty disclaimer.

Traps when extending the checks:

a newline as often as not ("to deal\nin the Software"). Raw matching

reports entries as missing clauses they plainly contain — use

audit.flatten().

so identify a family by a phrase unique to it, and note the conditions are

worded differently ("shall" vs "must be included in all copies").

gPluginFactory. Match "General Public License" — and note v3.7.12 words it

"General Public License (GPL) Version 3", never "GNU General Public License".

reference the nearest LICENSE.

/external/*/ is ignored, with one !/external/<dir>/ exception per

vendored tree. Without it git status shows nothing, the build passes

locally, and the push ships without the sources. One directory may hold

several deps (external/lilv holds lilv, serd, sord, sratom, and zix): give

each its own manifest, DEPENDENCIES, NOTICE, and licensing row, and record

each release-tarball SHA-256 in the directory's README.

build compiles; the cache accumulates every ref ever fetched, so a stale

cache dir can shadow the real tree and get the audit verifying a version the

repo does not use. A cache hit must match the pinned version.

When adding a dep, always touch all four attribution files (manifest,

DEPENDENCIES, NOTICE, licensing) plus — if the CMake / pip / vendored

alias differs from the canonical name — add the alias to

DEFAULT_ALIASES in tools/deps/audit.py or the external_names

list on the manifest entry.

Material embedded inside a fixture is redistribution too. A

self-contained HTML test fixture (a Claude standalone bundle, a panel with an

inlined design pack) can carry base64 fonts and whole script builds such as

React or @babel/standalone. Nothing scans for them, so --strict stays green

while the repo ships them undeclared. Decode the bundle's assets and read each

font's name table (IDs 0, 5, 13, 14) and each script's banner before

committing. Then give every one the four attribution entries above (category

test-fixture) and ship the license text beside the fixture. The

holdout/ panels under test/fixtures/import-differential/ are the worked

example. For an MIT script, fetch the package's own LICENSE from its

registry tarball instead of reusing another entry's text: @babel/standalone

wraps the same words on different lines from React's.

Edit tools/deps/manifest.json as text, not with json.dump. The file is

hand-formatted, with one-line upstream objects and inline lists, so a

load-and-dump round trip rewrites every entry. A one-entry change then becomes

a ~500-line diff. Splice the new block in, then json.loads the result to

confirm it still parses.

Bundled Toolchain Pins

Some prebuilt toolchains carry bundled third-party components that are not

separate source directories in external/. For example, the Skia prebuilt

toolchain used by visual tests bundles Dawn, HarfBuzz, and ICU through Skia's

DEPS file. Track those exact nested revisions in the parent manifest entry

with a structured field such as determinism.bundled_pins, and mirror the

human-readable version in DEPENDENCIES.md, external/<toolchain>/VERSION.md,

and any relevant reference doc.

Do not add a separate manifest entry for a nested toolchain component unless

Pulp fetches, vendors, or redistributes it independently. Otherwise the audit

will require standalone NOTICE/licensing rows for something whose license and

distribution boundary are already covered by the parent prebuilt.

An independently redistributed runtime is different from a nested toolchain

component. The pinned three.js payload is fetched or supplied through

PULP_THREEJS_RUNTIME_DIR when PULP_ENABLE_THREEJS_RUNTIME=ON (the default

with GPU support) and is staged under share/pulp/threejs for installed-SDK

consumers. Treat a change to that install boundary as a dependency-inventory

change: keep tools/deps/manifest.json, DEPENDENCIES.md, NOTICE.md, and

docs/reference/licensing.md truthful together, even when the revision and

license themselves do not change.

Same rule for Skia modules (e.g. skottie/sksg, linked only when the opt-in

PULP_LOTTIE CMake option is enabled): they ship inside the existing Skia

prebuilt under the same Skia BSD-3-Clause entry — clarify their use in the Skia

row of DEPENDENCIES.md, do not add a separate dependency/NOTICE entry.

A prebuilt's *slices* are not interchangeable — record what differs

One manifest row can cover several published binaries of the same dependency,

and they are not required to have the same contents. The Skia wasm slice is

the live example: it is Ganesh on WebGL2 (no Dawn, no Graphite) and it

excludes skottie/sksg, so Lottie is simply unavailable there even though the

same DEPENDENCIES.md row says the modules exist. Note per-slice divergences in

the row rather than letting a reader generalize from the native slice — the

alternative is someone enabling PULP_LOTTIE for wasm and getting an

undefined-skjson link failure with no explanation.

Toolchains that *consume* a prebuilt are pins too

A prebuilt binary is only reproducible against the toolchain it was validated

with. The Skia wasm slice is verified against a specific Emscripten and wasi-sdk

version, recorded as determinism.web_toolchain in tools/deps/manifest.json

and mirrored in the Skia row of DEPENDENCIES.md. This is not bookkeeping:

.github/workflows/web-plugins.yml **reads the slice's URL + sha256 out of the

manifest** and keys its cache on the manifest hash, so the audit and the CI lane

physically cannot disagree about which binary is in use — and a pin bump

self-invalidates the cache. When you bump either the slice or the toolchain,

bump them in the manifest, never by editing a URL into a workflow.

The Skia toolchain itself is pinned at chrome/m158 via the

danielraffel/skia-builder fork (see tools/deps/manifest.json →

determinism.skia_builder_fork). The fork tracks upstream

olilarkin/skia-builder's tag pattern and additionally publishes iOS

device, iOS simulator, visionOS device, visionOS simulator, mac-x86_64,

and Skia.xcframework slices upstream does not. While upstream stays on

m144, this fork is the active dependency; revisit when upstream catches up.

Skia/Dawn and V8 are independently consumable prebuilts. If Skia advances while

the complete matched V8 release is unavailable, keep V8's structured

paired_skia / paired_dawn fields describing the V8 artifact that was

actually built; record the newer active Skia/Dawn provider and temporary mixed

selection in the human-readable dependency notes. Never relabel old V8 bytes

as matched to the new Skia milestone.

iOS-specific layout gotcha: unlike the mac / linux / windows slices, the iOS

zips ship libs under a per-arch subdir

(build/ios-gpu/lib/Release/{device-arm64,simulator-arm64,simulator-x86_64}/libskia.a)

because the device and fat-simulator zips would otherwise collide on

identical lib names when unpacked into one tree. FindSkia.cmake picks

the right subdir based on CMAKE_OSX_SYSROOT + CMAKE_OSX_ARCHITECTURES;

tools/scripts/fetch_skia_for_release.py keeps the subdir intact for

ios-device-arm64 and ios-simulator-arm64-x86_64 matrix slices via

_IOS_PRESERVE_ARCH_SUBDIR. Do not extend the flatten step to iOS, and

do not register a single combined iOS slice without per-arch handling.

Multi-arch simulator builds (-DCMAKE_OSX_ARCHITECTURES=arm64;x86_64,

the default in tools/cmake/ios.toolchain.cmake with

ONLY_ACTIVE_ARCH=NO) are intentionally rejected by FindSkia.cmake

because each Skia archive is single-arch — silently picking

simulator-arm64 would arch-mismatch the x86_64 link. The fix is

either to build a single arch (-DCMAKE_OSX_ARCHITECTURES=arm64

with ONLY_ACTIVE_ARCH=YES) or to pre-fatten the two simulator

archives with lipo into a combined simulator/libskia.a upstream

of find_package(Skia). The default Pulp iOS smoke (pulp-ios-sim,

Apple Silicon dev machines) only needs arm64.

The V8 toolchain follows the same prebuilt-pin pattern (added 2026-06).

It is the optional JS engine backend (PULP_JS_ENGINE=v8), a sealed

embeddable libv8 pinned at tag v8-m158-15.8.62.6-38351a002e2c via the

danielraffel/v8-builder fork (tools/deps/manifest.json → V8 entry,

determinism.release_assets per-platform URL + sha256). Fetched by

tools/scripts/fetch_v8_for_release.py into external/v8-build/<platform>/

and resolved by tools/cmake/FindV8.cmake. Like Skia, it bundles

third-party components internally — ICU, zlib, and Abseil — so it gets one

manifest row for V8 (BSD-3-Clause) plus the bundled-component NOTICE

attribution (ICU/zlib/Abseil), NOT separate manifest rows for the nested

libs (their distribution boundary is the parent libv8). Re-verify the

NOTICE list against the v8-builder source and artifact evidence when the V8 pin

bumps; the m153, m157 and m158 assets do not carry a separate third-party manifest, so absence

of that file is not evidence of an empty bundled dependency set. iOS publishes

an actual jitless simulator V8.framework marked library: false: Pulp

validates its provenance and headers but has no device/AUv3 runtime acceptance

or packaging contract, so QuickJS remains the default and JSC remains opt-in.

Full rollout/governance:

planning/2026-06-06-v8-sealed-libv8-provider-migration-plan.md.

Bundled Fonts (and similar opt-in compile-time assets)

Bundled fonts under external/fonts/*.ttf (Inter, JetBrains Mono,

Noto Color Emoji) are first-class manifest entries with category: fonts

and a SHA-256 in the notes field. They are NOT the same as the

"bundled-toolchain" pattern above — each font is fetched / vendored

independently and Pulp redistributes it directly.

Add a new bundled font the same way as any other dep:

  1. Vendor the file under external/fonts/<Name>.ttf. .gitignore has an

!/external/fonts/ exception; before it existed the tracked fonts had all

been git add -f'd past /external/*/, so a new one looked ignored while

its siblings were tracked.

  1. Add a row in external/fonts/README.md with the SHA-256, source URL,

and any gating notes (e.g. Noto Color Emoji is gated by

PULP_BUNDLE_NOTO_COLOR_EMOJI and ships in its own

pulp_add_binary_data static lib so macOS/Windows release builds

can drop the payload).

  1. Insert alphabetically into DEPENDENCIES.md, NOTICE.md, and

tools/deps/manifest.json.

  1. Wire CMake: add a pulp_add_binary_data(...) block in

core/canvas/CMakeLists.txt, register the resulting target in

PULP_SDK_TARGETS (parent CMakeLists.txt), and add the

accompanying C++ TU that calls

pulp::canvas::register_font(...) or

pulp::canvas::register_emoji_fallback(...) at startup.

bundled_blobs() in core/canvas/src/bundled_fonts.cpp is an

std::array<BundledBlob, N> — grow N, and bump the bundled_font_count()

expectation in test/test_canvas_fonts.cpp, which exists to catch an

accidental drop.

Bundling a face does not make it PAINT. There are two resolution paths and

they are bridged separately. FontResolver (measurement, and make_font) sees

the bundled faces; SkParagraph — which is what fill_text actually draws

through — resolves from a FontCollection built in

core/canvas/src/text_font_context.cpp. Until 2026-08-02 that collection only

learned the bundled faces when the platform had no font database of its own, so

on macOS a bundled family measured correctly and painted as a system fallback.

The symptom is silent and looks like anything but a font bug: correct advances,

correct wrap points, one universal painted face. If you add a font and the

render does not change, measure the painted ink per family rather than trusting

the resolver — four families that measure four widths and paint one is the

signature.

Gate large bundles (≥ 1 MB) behind a CMake option that defaults OFF

where the platform provides a usable equivalent (e.g. emoji typefaces

on macOS / Windows) and ON for headless / CI / Linux / Android.

Synthetic missing-dep test: `tools/deps/test_audit.py::

ManifestSourceScannerTests::test_uncovered_detection_catches_missing_pip_dep`

— don't delete it. If the completeness gate regresses, this is the

regression test that catches it.

Importer tool-registry fields (pulp import)

tools/packages/tool-registry.json ToolDescriptor carries optional importer

fields — frameworks[], spi_min/spi_max, sdk_min/sdk_max,

capabilities[], health_check — for category: "importer" tools (the

framework→Pulp project importers resolved by pulp import). They're parsed by

tools/cli/tool_registry.cpp and ignored for non-importer tools. The importers

themselves install via the tool lane (pulp tool install <importer>), never as

project packages.lock.json dependencies.

Managed tools must declare an update/override path

tools/packages/validate_registry.py also validates tool-registry.json: its

validate_tool_registry rule fails if any managed_by_pulp tool ships without

a non-empty pinned_version. That pin is the anchor for pulp tool update and

for the user version override (--version / PULP_TOOL_<ID>_VERSION /

$PULP_HOME/tool-overrides.json), so a managed tool without it would be one

users can't update or override. When you add a managed_by_pulp entry, include

its pinned_version in the same change. Rule + rationale:

extending-pulp.md.

The check runs anywhere validate_registry.py runs (its

test_package_validation_tools.py unit suite covers the new rule).

The same validator fails any binary_sources entry without a lowercase 64-hex

sha256 of its release asset at the pin, and fails a trace-processor or

chrome-for-testing digest that no longer appears in the Rust fetcher that

verifies it. A binary source therefore needs an immutable, versioned URL; a

"latest" redirect cannot hold a digest. Recording digests and the

unverified-version override behavior: the installable-tools skill.

bundleable: true is refused unless the tool's license can only resolve to

an allowed permissive license. The validator parses SPDX properly: parentheses

group, AND binds tighter than OR, an OR needs one permitted branch and an

AND needs both. GPL, AGPL, LGPL, prose terms, WITH exceptions, an empty

license and anything that does not parse are not bundleable (it fails closed). Record

the license of the build actually pinned, not of the upstream project: FFmpeg's

source is LGPL, but every prebuilt Pulp pins is configured --enable-gpl, so

the registry says GPL and bundleable: false. Read a binary's configuration

with strings <binary> | grep -- --enable-gpl (look for --enable-nonfree

too, which makes a build unredistributable) rather than trusting a download

page.

For python_pip tools, the managed venv manifest is also the installed-version

authority. pulp tool install may reuse an existing venv only when its wrapper

exists and manifest.json records the current registry pin; a missing or stale

manifest must reinstall. Never report the registry pin as the installed version

without checking that manifest, or a pin bump can leave users running old code

while the CLI claims they are current.

Related extend surfaces

packages, kits, content, and installable-tools are Pulp's four ways to

extend a project or machine, and they share one lifecycle contract: **add is

validated, remove is confirmed + confined to the surface's own area + names what

it deleted, and both add and remove ship tests.** Pick the right surface and read

the shared contract in

extending-pulp.md.

Realtime FFT dependency boundary

Pulp's optional muFFT backend is a pinned, MIT-licensed FetchContent dependency

used by FftT on non-Apple targets. Its C shim and plans preserve the

audio-thread allocation contract: admission accounts for the largest single

backend allocation, and Apple continues to use byte-identical vDSP admission.

muFFT's own FFTW-linked benchmark and test targets are never built or shipped.

JS-engine attribution in the dependency inventory

DEPENDENCIES.md, NOTICE.md, and tools/deps/manifest.json describe which JS

engine a build actually links, so their wording is an attribution claim rather

than a description. Keep them on the real contract: QuickJS is the default,

JSC is opt-in on Apple (PULP_JS_ENGINE=jsc) and is a system framework that

must never be implied by "Apple" alone, and V8 is an optional sealed prebuilt

that is unavailable on iOS because JIT is forbidden there. Phrasing such as

"default is QuickJS, JSC on Apple" or "iOS is JSC-only" overstates what is

linked and misattributes a framework the build may not use at all. When the

engine contract changes, update all three together; `python3 tools/deps/audit.py

--strict` checks pins and notice coverage, not whether the prose matches the

build.

Linked dependencies need `link_targets` for plug-in notices

pulp_add_plugin() writes ThirdPartyNotices.json/.txt into every bundle

from the bundle's link closure, using the notices manifest

tools/deps/notices.py generates from tools/deps/manifest.json. Only entries

with link_targets (the CMake targets that carry the dependency's code) take

part, so a new dependency that plug-ins link needs that field, an optional

link_feature when an option compiles it in or out, and a ## <name> section

in NOTICE.md; the generator fails the configure without the section. Use the

target the code lands in: a vendored source compiled into pulp-runtime is

claimed by pulp-runtime, not by a target name that never exists.

audit.py --strict does not check link_targets; the

plugin-third-party-notices ctest checks what the bundles name, and the

unattributed_targets list in the build-directory report

(<build>/pulp-notices/<format target>/ThirdPartyNotices.report.json, never in the

bundle) shows closure targets no entry claims.

Prebuilt platform slices

When a prebuilt Skia release gains a Windows platform slice, keep the exact

asset URL and SHA-256 in tools/deps/manifest.json and mirror the digest in

external/skia-build/VERSION.md; a dependency inventory entry alone is not a

complete platform publication.

Developer-tool inventory and mise boundary

When documenting a build tool such as mise in DEPENDENCIES.md, keep the

inventory truthful: mise is developer-installed and its locked profile describes

Pulp's build tools, but it is not redistributed by Pulp and does not belong in

NOTICE.md. Reproducibility-sensitive builds and disposable Windows VM probes

should run through MISE_ENV=toolchain mise exec -- ...; a host-toolchain run

must be identified as such. Update docs/reference/licensing.md with the same

boundary when the dependency row changes.

The vellum-gpu-runtime row is derived from pulp.lock: its version and commit

must match the lock's Vellum tag and sha, and audit.py --strict fails when they

differ. Edit the lock and the row together.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.