Update Pulp's pinned Skia, Dawn, and optional V8 prebuilts as one milestone-matched
render-toolchain release. Use for requests such as "update Skia/Dawn", "move to
chrome/mNNN", "find the matching V8", "update the GPU toolchain", or "use the
Skia/Dawn/V8 tuple that goes together". Distinguishes milestone-matched V8 releases
from v8-builder's newer weekly LKGR releases, verifies exact upstream provenance and
asset hashes, updates every Pulp mirror, and runs the provider-identity/ODR gates.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Render Toolchain Update?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/danielraffel-render-toolchain-update)
---
name: render-toolchain-update
description: |
Update Pulp's pinned Skia, Dawn, and optional V8 prebuilts as one milestone-matched
render-toolchain release. Use for requests such as "update Skia/Dawn", "move to
chrome/mNNN", "find the matching V8", "update the GPU toolchain", or "use the
Skia/Dawn/V8 tuple that goes together". Distinguishes milestone-matched V8 releases
from v8-builder's newer weekly LKGR releases, verifies exact upstream provenance and
asset hashes, updates every Pulp mirror, and runs the provider-identity/ODR gates.
---
# Update the matched render toolchain
Pulp's signal FFT backend is a separate dependency surface from the Apple
render toolchain: Apple uses vDSP, while non-Apple builds may use the pinned
MIT muFFT source. Keep muFFT's exact commit and source-file allowlist in the
dependency manifest when touching cross-platform build inputs. Its transform
path is audio-thread code, so the per-allocation admission ceiling is checked
against the largest single allocation and must not be relaxed to permit
per-transform allocation.
The desktop source fallback in `tools/build-skia.sh` publishes only into a
real checkout-owned `external/skia-build` directory. It refuses a symlink into
the shared immutable cache and removes fetcher asset/generation receipts after
publishing source-built bytes; those receipts authenticate release archives,
not source builds. Keep the source-fallback negative controls in
`tools/scripts/test_build_skia_source_pin.py` green when changing this path.
This procedure expects `ghapp` and `python3`, and operates on
`tools/deps/manifest.json`, `tools/scripts/fetch_skia_for_release.py`, and
`tools/scripts/fetch_v8_for_release.py`.
Pulp's default is a milestone-matched, provider-validated set: the published
`skia-builder` release, the Dawn revision that Skia itself built from, and the V8
revision from the same Chromium milestone branch. Chromium's raw Skia/Dawn DEPS pins
may differ from the later published Skia branch head; that is valid only when the
v8-builder release records both generations, binds `built_skia`/`built_dawn` to the
published provider, and passes the combined provider-identity/ODR gate. `v8-builder` may also publish
newer weekly LKGR releases; those remain valid opt-in V8 choices, but they are not the
default pin for a milestone update.
## Truth model
Keep these values distinct in notes and manifests:
- `skia`: exact commit at `refs/heads/chrome/mNNN` used by skia-builder.
- `built_dawn`: Dawn from that Skia commit's own `DEPS`; this is the Dawn actually
compiled into the Skia/Dawn artifacts.
- `v8`: V8 from Chromium `refs/branch-heads/<branch>` DEPS for milestone NNN, after
recording Chromium's raw Skia revision separately from the provider generation
validated by the matched release.
- `dawn`: Chromium's Dawn pin. It can differ from `built_dawn`; record the mismatch.
Do not claim all three are one identical Chromium DEPS tuple when it differs.
`v8-builder/tools/milestone_pin.py` resolves and enforces this contract. For example:
```bash
python3 ../v8-builder/tools/milestone_pin.py 157 \
--skia-release-tag chrome/m157 > /tmp/m157-render-lock.json
python3 -m json.tool /tmp/m157-render-lock.json
```
The result must have the requested `milestone`, `skia_release_tag`, exact Chromium
`skia`/`v8`/`dawn` SHAs, and exact `built_skia`/`built_dawn` provider SHAs. False
`skia_matches_chromium` or `dawn_matches_chromium` values are disclosed provenance,
not failures: acceptance instead requires `validated_skia_release` to equal the
active Skia version, `built_skia`/`built_dawn` to equal Pulp's active provider, every
asset's embedded pair to agree, and the combined provider-identity/ODR gate to pass.
## Release lanes
- `skia-builder` publishes `chrome/mNNN`, then dispatches
`skia_milestone_published` to v8-builder.
- v8-builder's `matched-milestone.yml` resolves the lock, skips an exact release that
already exists, and dispatches the sealed all-platform build with publication on.
- v8-builder's `release-watch.yml` continues its weekly LKGR cadence independently.
For a historical Skia release or recovery, manually start the same idempotent lane:
```bash
ghapp workflow run matched-milestone.yml \
--repo danielraffel/v8-builder \
-f milestone=157 \
-f skia_release_tag=chrome/m157
```
Do not update Pulp's V8 pin until that matched release is published and every requested
platform asset is present. Never substitute the newest weekly V8 merely because it is
newer.
## Matched release collection
Present the Skia/Dawn and V8 release URLs together as the milestone collection, then
download only the assets the user needs:
```bash
ghapp release view chrome/m157 --repo danielraffel/skia-builder --json url
ghapp release list --repo danielraffel/v8-builder --limit 100 --json tagName \
--jq '.[] | select(.tagName | startswith("v8-m157-")) |
"https://github.com/danielraffel/v8-builder/releases/tag/\(.tagName)"'
```
The collection is a provenance and compatibility convenience, not one combined archive:
Skia/Dawn, V8, or both may be consumed independently.
## Realtime FFT backend boundary
The optional muFFT FetchContent dependency is separate from the Apple render
toolchain. It supplies the float `FftT` backend only off Apple; Apple remains on
vDSP with byte-identical admission. Keep muFFT's Pulp-owned shim allocation-free
after preparation and do not build or ship its FFTW-linked upstream tools.
## Independent Skia/Dawn advance
`fetch_v8_for_release.py` binds a milestone-matched V8 archive to Pulp's active
Skia release, Skia commit, and built Dawn. Moving Skia/Dawn ahead of the pinned
V8 therefore fails the V8 fetch, and there is no manifest flag that waives it.
Prefer moving the whole tuple together. When the matched V8 is missing an asset
or fails Pulp's gates, hold the whole render update until that V8 is fixed
rather than pairing a new Skia with an older V8.
If a mixed selection is ever genuinely needed, it requires a reviewed fetcher
change in that same PR that:
1. Names the exact active Skia release, commit, and built Dawn the older V8 is
allowed to run against, so the exception goes stale and fails closed the
next time Skia moves.
2. Still binds the embedded pair to the V8 entry's own `paired_*` fields; do not
rewrite V8's historical `skia_release_tag`, `paired_skia`, or `paired_dawn`
to the newer active Skia values.
3. Ships tests for the declared, stale, and undeclared cases, and keeps the
sealed V8 provider-identity/ODR gate in the required release-path CI surface
against the new Skia/Dawn provider while the mixed selection is active. A
successful one-off local or Skia-only build does not prove mixed-provider
safety.
4. States the mixed selection in `DEPENDENCIES.md` and the V8 manifest notes,
with an exit condition, and removes the exception in the change that
restores a matched tuple.
## Pulp update checklist
For the canonical executable validation and machine-readable result, run:
```bash
python3 tools/deps/validate_hosts.py --render-toolchain
```
The local native arm64 leg performs the full mixed-provider proof. Configured
Unix remotes populate and verify their own immutable generation, run the
capability probe, and require the second fetch to be a no-download hit. The
underlying `validate_render_update.py` JSON records platform, asset SHA,
generation receipt, capability result, cache result, and mixed-provider result;
retain those fields in the PR/landing evidence.
1. Work from current `origin/main` in a clean worktree. Read release notes from M+1
through the target and search Pulp for removed APIs. The notes live on the
branch itself; this prints every milestone between the old and new pin:
```bash
curl -sSfL "https://skia.googlesource.com/skia/+/refs/heads/chrome/mNEW/RELEASE_NOTES.md?format=TEXT" \
| base64 -d | awk '/^Milestone NEW/,/^Milestone OLD/'
rg -n 'RemovedApi|OtherRemovedApi' core apple examples tools test
```
Empty milestones are normal. Grep `tools/scripts/verify_skia_m153_capabilities.py`
too: its probe compiles real Skia API, so a removed API breaks it before it
breaks a product build (m157 removed the `SkExecutor` thread-pool factories
it used). Recompile the probe source against the new headers by hand before
pushing, and compile it once with the old API as a negative control.
Release notes do not list every break. Skia stages API changes behind
`SK_LEGACY_*` guards whose default selects the old form, then deletes the
guard a few milestones later, silently. m157 dropped
`SK_LEGACY_DESERIAL_IMAGE_PROC`, so `SkDeserialImageProc` gained a
`std::optional<SkAlphaType>` argument and `test/test_skia_surface.cpp` stopped
compiling, with no release-note entry. Before pushing, diff the guard set and
the header list between the old and new materialized generations:
```bash
comm -23 <(grep -rhoE 'SK_LEGACY_[A-Z0-9_]+' "$OLD/build/include" | sort -u) \
<(grep -rhoE 'SK_LEGACY_[A-Z0-9_]+' "$NEW/build/include" | sort -u)
comm -23 <(cd "$OLD/build/include" && find . -name '*.h' | sort) \
<(cd "$NEW/build/include" && find . -name '*.h' | sort)
```
Then grep `core`, `test`, `tools`, `examples` and `apple` for each hit. Test
files count: CI compiles them on every lane.
2. Inspect the published Skia release with `ghapp release view chrome/mNNN --repo
danielraffel/skia-builder --json assets,publishedAt`. Update every platform URL and
SHA-256 in `tools/deps/manifest.json`; do not omit Windows, Linux ARM64, Apple device
and simulator slices, WASM, or XCFramework coverage.
3. Inspect one native archive and `external/skia-build/VERSION.md`. Confirm the exact
Skia and built-Dawn SHAs, deployment floors, and optional archives such as Skottie,
`jsonreader`, and `skresources`. For Windows ARM64EC and ARM64X consumers, also
verify that the producer archive contains the matching
`build/win-gpu/lib/Release/arm64ec/` or `arm64x/` slice; pure `arm64/` and flat
x64 libraries are not compatible substitutes. Record the exact producer run and
archive digest, and keep the consumer provider decision fail-closed when the
requested slice is missing.
4. Inspect the matched v8-builder release manifests. All assets must agree on
`pair.pair_kind=chromium-milestone`, `pair.milestone`, `pair.skia`, `pair.v8`,
`pair.built_dawn`, and `pair.validated_skia_release`.
5. Update the V8 entry, all asset URLs/hashes, `DEPENDENCIES.md`, V8 provider comments,
`tools/cmake/FindV8.cmake`, `tools/cmake/PulpV8Windows.cmake`, test fixtures, and
`tools/deps/min_os.json` only from measured release facts.
6. Update the Skia/Dawn mirrors: `external/skia-build/VERSION.md`, visual-harness pins,
build-script defaults, docs/support matrix, and manifest fixtures.
7. Run the manifest mirror/audit tests and both fetch-script suites. Fetch a real native
Skia asset and matched V8 asset, configure with GPU + Lottie + V8, and run the
provider-identity/ODR validation. A pixel-only test is insufficient.
Configure that validation lane with `PULP_VALIDATE_CAPTURE_STRICT=ON`
alongside `PULP_VALIDATE_V8_PROVIDER_STRICT=ON`. The default Three.js native
demo capture tests tolerate a build without V8, or a host without a native
Dawn adapter, as a skipped PNG assertion, so a toolchain pin that quietly
broke the V8 link or the Dawn adapter still shows them green. The strict
variants turn both skips into failures, which is what you want from the one
lane whose job is to prove the new pins actually render.
For m153+, run `python3 tools/scripts/verify_skia_m153_capabilities.py
--platform <matching-native-desktop-platform> --skia-dir
<materialized-generation>`. Run each architecture on its matching host; the
compile-and-execute probe intentionally rejects mobile, WASM, Windows, and
cross-architecture assets. The
probe must reject a directory unless its verified asset stamp matches that
platform's manifest digest and both Skia and Dawn archives are materialized.
It proves the new API and exported-symbol surface against the exact provider;
actual Graphite executor dispatch belongs to the integration's measured
behavior gate, not this toolchain probe.
A `darwin-universal` provider is the deliberate aggregate exception: run it
on darwin-arm64 so the probe compile/links/runs arm64 natively and x86_64
explicitly through Rosetta. Its single JSON result binds both records to the
same universal asset digest, generation receipt, probe source, and Pulp
source SHA. A universal build/lipo check without that dual-slice receipt is
not m153 capability evidence.
8. Measure every Apple slice actually selected by the manifest. A same-tag asset can
leak a higher deployment target than its universal sibling. Measure the exact
thin archive when the manifest selects a thin archive; evidence from a
universal sibling is not interchangeable. Use the verified selected asset or
rebuild rather than publishing a false minimum-OS claim.
9. Re-bake CI goldens when either prebuilt pin changes, then ship only after required CI
and cross-platform asset coverage are green.
10. Exercise the shared-cache publication path with
`--cache-lock-timeout`: a pin-stale or cold cache must be populated only by
the lock owner in a private sibling staging directory, then renamed into an
immutable platform-plus-asset-SHA-plus-receipt-schema generation. A waiter must recheck the
winner's exact stamp plus platform library before it skips downloading, and
a pin bump must preserve the prior generation for bound consumers. Never
seed the canonical cache by rsyncing a checkout merely because
`external/skia-build/build` exists. Keep release x64/universal destinations
isolated from the host arm64 cache.
11. Revalidate the independently pinned three.js runtime used by native WebGPU
consumers. When `PULP_ENABLE_THREEJS_RUNTIME=ON`, Pulp fetches or accepts
`PULP_THREEJS_RUNTIME_DIR` and stages the verified payload under
`share/pulp/threejs`; it is not test-only. A render-toolchain change that
alters this compatibility or install boundary must update the dependency
manifest, attribution surfaces, runtime manifest, and installed-SDK proof.
12. After merge, prewarm every active build host through the fetcher's normal
immutable cache-owner path. On each macOS host, from an up-to-date checkout:
```bash
for i in 1 2; do python3 tools/scripts/fetch_skia_for_release.py darwin-arm64 \
--cache-root "${PULP_SKIA_CACHE_ROOT:-$HOME/.cache/pulp/skia}" --cache-lock-timeout 300; done
python3 tools/scripts/fetch_skia_for_release.py darwin-arm64 \
--cache-root "${PULP_SKIA_CACHE_ROOT:-$HOME/.cache/pulp/skia}" --print-cache-dest
```
Windows builders run the same fetch with `windows-x64` or `windows-arm64`,
and V8 consumers add `fetch_v8_for_release.py <platform>`. The previous
generation stays in place for consumers still bound to it, so a prewarm
never breaks an in-flight build. For each M3, M5, M1, Mac mini, and Mac Pro host,
record the exact asset SHA, materialized `libskia.a` plus
`libdawn_combined.a`, and a second invocation that reports the complete
generation and performs no download. Skip or defer a host only with an
explicit offline/retired disposition; never copy a checkout cache between
machines.
13. Tell the people and agents building on other machines, especially Windows
builders and the GPU/front-end lanes: the new tags, what moved in the
release notes, the prewarm commands above, and any new toolchain floor. A
pin that lands silently strands a Windows VM on an old cache until its next
link fails. Golden VMs re-bake through tartci; until then a gate job fetches
the new generation at configure time, which is correct but slower.
14. Treat missing provenance as a cold cache. A materialized library plus a
tracked `VERSION.md` digest is not proof that those bytes came from that
archive: without the exact fetcher-written asset stamp, re-download and
verify before publication. Source fallbacks must likewise pin the builder
revision, build the manifest's immutable `skia_commit` itself (skia-builder
`-revision`, or `fetch --depth 1 <sha>` + `checkout --detach`), and fail
before copying output unless the built Skia HEAD equals `skia_commit` and
the synced Dawn HEAD equals `built_dawn`. Never compare against or build a
milestone branch head: Chromium release branches keep moving after the pin,
so a branch-head check breaks every pinned release.
15. Treat any provider release marked `release_immutable: false` as mutable until
its publishing workflow is terminal. Record the exact publisher run and
release `updated_at`, collect every asset ID/digest plus metadata and pair
digests, then re-query the same release immediately before publication. If
any asset, metadata, pair field, or release timestamp changed, invalidate the
prior validation, repin the complete platform set, and rerun the provider and
cache gates. A successful earlier fetch proves only the bytes that existed at
that time; it does not authorize landing after the release was replaced.
## Common traps
- **Skia and its Dawn archive are invisible to CMake's dependency provider.**
They come from `fetch_skia_for_release.py`, not from `find_package()` or
FetchContent, so `PulpDependencies.cmake` and `PulpSkiaDawnProvider.cmake`
call `dependency_request_recorder_note(PULP_PROVISION Skia|Dawn)` where the
configure asks for them. If you move or rename the Skia acquisition, move
that note with it. Otherwise the `Dependency requests` workflow's GPU control
stops seeing Skia, and its Pulp-only "no Skia" result can no longer be
trusted.
- **A Skia bump can move the ICU Pulp ships.** Skia's `libskunicode_icu.a`
carries ICU code and data (`icudt<NN>_dat`; `icuver.res` names the exact
version, 78.2 for `chrome/m153` and `chrome/m157`). When the symbol or version changes, update
the ICU entry in NOTICE.md from that release's `LICENSE` (verbatim, shipped
sections only), the ICU rows in DEPENDENCIES.md, `docs/reference/licensing.md`
and `tools/deps/manifest.json`, and re-check that
`tools/cmake/scripts/icu_data_subset.py` still rewrites the new archive
(`icu-data-subset-deterministic`, `pulp-test-icu-data-breaks`).
- **A `pulp_register_fetchcontent_source(... REF <sha>)` pin is enforced at configure.** `pulp_materialize_mutable_fetchcontent_source` fails closed when the shared-cache git checkout's HEAD is not the registered commit, so a `GIT_TAG` must be the same full SHA (CHOC is the first consumer). The cache directory name is only a key, not proof of the commit. Symbolic refs and tarball sources skip the check. Selftest: `tools/scripts/test_setup_source_cache.sh`.
- **Some Pulp workarounds exist only for one Skia defect, and are retired by
the bump that fixes it.** Graphite emits a runtime shader's `main` with a
coordinate parameter named `pos`; before `chrome/m158` an author local named
`pos` in `main` redefined or shadowed it (a Graphite pipeline compile failure
and crash, or black output), and `RuntimeEffectCache` refused such sources.
On m158 they render correctly on Graphite, so the refusal is gone and
`pulp-test-runtime-effect-names-gpu` requires those shaders to match a
control ramp on a real adapter. If a later Skia fails that test, the collision
is back: restore a refusal rather than loosening the comparison. The suite
SKIPs without a GPU adapter, so prove it on a Mac with Metal, not a VM.
- **QuickJS has its own manifest row** even though it rides inside CHOC's `choc_javascript_QuickJS.h`; its version is the embedded `CONFIG_VERSION`. Bumping CHOC must update that row.
- A V8 bump can break choc's V8 bridge without any Pulp change: the release-path
cube capture is the canary, and the m153 to m157 move tripped it. V8 15.4
(commit `3186b30e34b4`) runs the `v8::Array::Iterate` callback inside its own
`HandleScope`, so choc's `v8ToChoc`, which stored property values from that
callback and converted them afterwards, read freed handles and SIGBUSed in
`KeyAccumulator::CollectOwnElementIndices` on any object whose early members
are objects or functions. `tools/cmake/PulpPatchChoc.cmake` replaces the
`Iterate` walk with an index loop, and `test/test_js_engine.cpp` "converts an
object whose early members are objects" covers it on every engine. When the
capture crashes after a V8 bump, split the providers first (old V8 against new
Skia/Dawn on the same host), then read V8's `src/api/api.cc` history for the
API choc uses before suspecting Pulp.
- A V8 bump can change the provider's `consumer_defines` (the `manifest.json`
list of macros the library was built with: embedder field counts, cppgc
caging and pointer compression, target arch). `FindV8.cmake` applies that
list verbatim to `v8::v8` through `PulpV8ConsumerDefines.cmake`, and fails
configure when a sealed provider's manifest is missing, unsealed, or holds
anything but `NAME`/`NAME=VALUE` tokens. A consumer compiled without the
defines still links and then disagrees with the library about object layout,
so never work around that configure failure by dropping the list. The legacy
`V8_INCLUDE_DIR`/`V8_LIB_DIR` override has no manifest and gets no defines;
on Windows `PulpV8Windows.cmake` adds `V8_COMPRESS_POINTERS` itself only in
that case. `cmake-v8-consumer-defines` covers both paths with fixture
providers.
- On Windows ARM64, a Ninja build using the ARM-hosted x64 MSVC compiler has
an empty `CMAKE_GENERATOR_PLATFORM` and an ARM64 host processor. Choose the
Skia release/cache key and wgpu-native asset from
`pulp_windows_target_arch()`, which reads the compiler target. The x64 Skia
release may place libraries under `build/win-gpu/lib/Release/x64/`; older
releases can be flat. Test a fresh x64 configure on ARM64 without an explicit
`SKIA_DIR` as well as an explicit nested archive.
- The renderer pin is written once, in gpu-runtime's `gpu-runtime/renderer-lock.json`
(the Vellum repository); Pulp's manifest repeats it for its own fetch.
`tools/deps/audit.py --strict` reads that lock at the commit named by the Skia
entry's `vellum_renderer_drift_check`, which must equal the
`vellum-gpu-runtime` entry's `upstream.commit` (the gpu-runtime Pulp builds
against, `tools/cmake/PulpGpuRuntime.cmake`), and fails unless the lock's
`macos-arm64.sha256` and `milestone` equal Pulp's
`release_assets.mac-universal.sha256` and Skia `version`. The lock pins one
macOS asset, and every macOS build forwards to gpu-runtime, so the audit also
requires every `mac-*` key (`mac-arm64`, `mac-x86_64`) to carry that universal
digest. Never point `mac-x86_64` back at the thin x86_64 archive: its objects
are byte-identical to the universal x86_64 slice, but its `.a` digests are not,
so every Intel build (the `darwin-x64` release leg) fails gpu-runtime's Dawn
check at configure. A milestone bump
therefore lands in Vellum's lock first, then one Pulp change moves the Skia
entry, the drift-check commit and the gpu-runtime pin together; pointing
either commit elsewhere is the negative control. The read is fail-closed (no
network means `--strict` fails); `PULP_VELLUM_CHECKOUT=<vellum clone>` reads
the same commit from a local clone.
- macOS builds forward the GPU device layer to gpu-runtime by default
(`PULP_USE_GPU_RUNTIME=ON`, `tools/cmake/PulpGpuRuntime.cmake`); `OFF` builds
Pulp's own device sources there too, the mode every other platform still
uses. A renderer bump has to compile in both: configure a second build dir
with `-DPULP_USE_GPU_RUNTIME=OFF` and build `pulp-test-gpu-device-only-consumer`.
`gpu-runtime-mode-consistency` fails when a mode's `PULP_GPU_RUNTIME` define
is missing or leaks.
gpu-runtime's renderer lock has one macOS platform, `macos-arm64`, pinned to
the universal skia-build asset's Dawn. Every Apple target forwards to
gpu-runtime, including an x86_64-only one (release-cli's `darwin-x64`
cross-compile, or a native Intel build): it resolves the same universal asset
and links its x86_64 slice, so there is one GPU device path for Intel and
Apple Silicon. Do not reintroduce an architecture opt-out that drops x86_64
to Pulp's own device sources; `gpu-runtime-apple-targets` fails if any Apple
target shape returns before reaching gpu-runtime. A renderer bump must
therefore keep gpu-runtime compiling for x86_64, so run the release dry-run's
`darwin-x64` leg on it.
Vellum's GPU mirror build pins the archive and header digests of the Pulp
commit it was exported from, so its renderer bump can only pass after Pulp's
lands.
- The Vellum closure gate identifies Skia inputs by `determinism.skia_commit` and
by the asset digest sealed in the cache generation's
`.skia-generation-manifest.json`, which must be one of
`determinism.release_assets[*].sha256`. Each closure file must match its digest
in that receipt. Bump `skia_commit` and the asset digests together, or every
Skia row in the closure goes unresolved.
- `release-path-pr-gate.yml`'s darwin runner resolver runs
`resolve_release_runners.py --apply-class-label pulp-release-pr-gate` after a
sparse checkout. With `PULP_RELEASE_CLASS_TOKENS` unset the selector is
verbatim; set, a self-hosted selector gains `pulp-release-pr-gate`, so a gate
run that never starts may be an unserved class, not a toolchain failure. A
fork pull request ignores these variables and runs its darwin-arm64 leg on
hosted `macos-15` (`--fork-pr-gate-route`), so a fork PR's macOS timing is
not evidence about the self-hosted gate.
- A macOS Skia pin and Vellum's gpu-runtime renderer lock move in the SAME
PR. At configure, gpu-runtime hashes the archive and `libdawn_combined.a`
against its lock and stops with `libdawn_combined.a does not match the
lock` on any difference. So a Skia-only move that `audit.py --strict`
accepts through `tools/deps/pin_transition.json` still breaks every macOS
GPU configure. Move the Skia selectors first in the tree, then run
`tools/deps/pulp_lock_update.py --tag <vellum tag>`. It refuses a lock
change the Skia pin does not already follow, and once both move, the
audit matches directly. A transition entry reads old = Pulp's pinned
digest, new = the digest Vellum's lock names. Check its prose against
the archive bytes: one entry once called the unpatched archive "the
corrected" one. A release tag is no proof of content either. The
chrome/m158 universal asset was replaced in place and then restored
(see the release's replacement ledger), so compare the
`ShaderModuleMTL.mm.o` disassembly, or the published lock's
`builder_commit`, before you claim an archive carries a Dawn patch.
- A Skia milestone name alone does not select a V8 revision. Resolve through Chromium's
milestone branch, preserve its raw Skia SHA, and separately prove the release's
validated `built_skia`/`built_dawn` pair equals Pulp's active provider.
- Skia's Dawn pin and Chromium's Dawn pin are separate dependency surfaces.
- The SDK's `share/pulp/runtime-pins.json` (embedded in every bundle's
`pulp-build-info.json`) is DERIVED, not edited: `PulpRuntimePins.cmake` parses
`**Release:**`, the "Skia branch tip is `<sha>`" sentence, and
`**skia-builder ref:**` out of `VERSION.md`, decodes `kDawnVersion` from the
linked `dawn/dawn_version.h`, and takes wgpu-native from the single
`PULP_WGPU_NATIVE_VERSION` in `PulpDependencies.cmake`. Rewording those
VERSION.md lines turns the pins into `null`; the
`cmake-bundle-build-info-contract` ctest compares them with the manifest's
Skia version and Dawn notes (`DEPS file at <sha>`, `Dawn SHA1 <sha>`), so keep
those phrasings too. A wgpu-native bump edits that one variable,
`WGPU_NATIVE_VERSION` in `setup.sh`, `shared-source-contract.txt`, and the
`wgpu-native` row of `tools/deps/manifest.json`: its version and every
`artifacts` entry's `sha256` (the zip) and `tree_sha256` (the extracted tree).
Download each asset into a new empty directory and run
`python3 -I tools/deps/wgpu_native_digests.py <dir>/*.zip`. Configure and
`setup.sh` refuse any archive whose digest differs, and configure re-checks
the shared cache against `tree_sha256`, so a missed digest fails loudly
rather than fetching unpinned bytes.
- `PulpDependencies.cmake` sets `CMAKE_DISABLE_PRECOMPILE_HEADERS ON` around
SDL3's `FetchContent_MakeAvailable` only. SDL3 precompiles `src/SDL_internal.h`
into every object, and ccache refuses to cache a TU compiled against a PCH
unless `pch_defines` sloppiness is on (measured on 3.2.12: 188 of 214 SDL3
calls "could not use precompiled header"). Keep the scope tight when bumping
SDL3: the save/restore of the previous value is what keeps a later PCH user
(the Catch2 test carriers in `PulpTestSuite.cmake`) unaffected. The
`test-pch-wiring` ctest asserts `SDL3-static` compiles with no PCH.
- GitHub release tags containing `/` must remain correctly URL-encoded/handled.
- Linux x64 Skia and V8 assets must retain the portable glibc floor; do not replace
their portable releases with a normal ubuntu-latest artifact.
- `fetch_skia_for_release.py` platform keys must match the manifest exactly (notably
`wasm-wasm32`).
- After a Skia pin bump, the gate VMs download the new archive until each tartci
host's artifact cache holds it (`scripts/artifact-cache.sh add --url <asset>
--sha256 <pin>` in tartci). That is a speed loss only: the fetcher prefers
`$TARTCI_ARTIFACT_CACHE/sha256/<pin>` and falls back to the network on a miss.
- `fetch_skia_for_release.py` retries the asset download, but only for failures a
second attempt can fix: 408/425/429 and 5xx, plus `URLError`, `TimeoutError`,
`ConnectionError` and `IncompleteRead`, with exponential backoff from 2s capped at
30s and a numeric `Retry-After` taking precedence. A 403/404 is not retried,
because spending the backoff first buries that error under minutes of silence.
For a GitHub release URL, either outcome then moves to a second source: the REST
API asset endpoint for the same tag and asset name, with the same retries and the
same sha256 check. The token, if any, is sent only to the API host and never
follows the redirect to storage. Only when both sources fail does the fetch fail,
and the error names both; a 404 from both means the pin names an asset that is
not there. A host whose `--cache-root` already holds a valid generation for the
pin skips every source and makes no request. A bare
`OSError` is deliberately not transient either: it is what a full disk raises on
the write side, and retrying re-downloads hundreds of megabytes to fill the same
disk. When a pin bump fails here, read which class it was before assuming the
network.
- Keep release-fetch progress output ASCII-safe. Windows release runners can use a
cp1252 console, where decorative Unicode arrows raise `UnicodeEncodeError` before
an asset download starts; exercise the full Windows fetch path with cp1252 stdout.
- Compare extracted-generation receipts in a host-independent canonical path order.
Windows `Path` ordering is case-insensitive while ZIP member names use POSIX,
case-sensitive ordering; directly comparing those sorted lists can reject an
otherwise byte-identical authenticated archive (for example `SkBlendMode.h` and
`SkBlender.h`). Keep path/hash/size integrity checks exact, but canonicalize both
projections by their serialized archive path before comparing them.
- JS-engine wording in `tools/deps/manifest.json`, `tools/deps/min_os.json`, and
`tools/cmake/FindV8.cmake` describes a *selection contract*, not just prose.
The contract is: `auto`/`quickjs` compile QuickJS only; `jsc` additionally
compiles `core/view/src/js_jsc_engine.mm` and links
`JavaScriptCore.framework` on Apple; `v8` selects the sealed prebuilt. JSC is
**opt-in**, never implied by "Apple". Older text said "default is QuickJS, JSC
on Apple", which reads as JSC being automatic on Apple platforms and is wrong.
Likewise iOS is no longer "JSC-only": Pulp has no device/AUv3 V8 runtime
acceptance or packaging contract. The pinned V8 release includes a jitless
simulator framework only for provider/header provenance validation; it is not
selectable as an iOS runtime. QuickJS is the default and JSC stays opt-in.
When a pin or min-OS note is edited, keep these three files saying the same
thing — they are the only place the engine contract is written down outside
the CMake modules.
- Matched V8 cold-fetch validation resolves the immutable builder tag through
the GitHub API. CI callers must expose their read-only `${{ github.token }}`
as `GH_TOKEN`; otherwise a valid sealed asset can fail after download when
the unauthenticated API budget is exhausted. The fetcher deliberately sends
that credential only to `https://api.github.com` and refuses redirects; it is
never forwarded to release-asset or cross-origin targets.
- A source dependency pinned by per-file SHA-256 must be checked out with EOL
conversion off, or Windows breaks it before anything builds. Git for Windows
defaults to `core.autocrlf=true`, so every LF becomes CRLF on checkout, every
digest in `tools/cmake/threejs-runtime-manifest.json` mismatches, and
`PulpDependencies.cmake` hard-fails with "Three.js runtime file does not match
pinned revision". Three.js opts in by passing `verbatim-eol` to
`ensure_shared_git_source` in `setup.sh`, which expands to
`-c core.autocrlf=false -c core.eol=lf` on the clone and pins both keys
repo-locally; the `FetchContent_Declare` carries a matching `GIT_CONFIG` for
the no-shared-cache path. Never fix this by normalizing bytes before hashing —
the digest's whole job is to prove the shipped files are upstream's exact
bytes. Any future digest-pinned *source* dependency needs the same opt-in.
Note that `GIT_CONFIG` on `FetchContent_Declare` alone is not enough on the
release path: `pulp_register_fetchcontent_source` short-circuits FetchContent
whenever the shared cache exists, and the release leg primes that cache with
`./setup.sh --ci --deps-only` first.
- Repairing an already-converted cache with `git checkout --force -- .` silently
does nothing. Git decides a file is current from the index's cached stat data
and never reads the bytes, and the bad checkout recorded its own stat when it
was written; `--force` means "overwrite local modifications", and by the stat
cache there are none. `git checkout-index -a -f` and `git read-tree --reset -u`
fail the same way. The primitive that works is dropping `.git/index` and then
`git reset --hard` (gitattributes(5)'s own renormalisation recipe), which needs
no network even on a `--filter=blob:none` partial clone. This trap is not
specific to line endings — any repair phrased as "check the worktree out again"
hits it. A test written the obvious way (poison, immediately repair, assert)
will certify the broken primitive, because git distrusts a stat inside its own
timestamp granularity and falls back to comparing content; settle the fixture
with `touch -t 202001010000` plus `git update-index --refresh` or the test
grades its own homework.
- The visual harness has two raster pins on two different version lines, and
"re-bake CI goldens" only means one of them. The C++ Skia archive rasterizes
nothing in `tools/harness/visual/`: its committed PNG golden is produced by the
`skia-python` wheel, pinned separately as `determinism.skia_python_smoke_version`
in `tools/deps/manifest.json` (mirrored into `pins.SKIA_PYTHON_SMOKE_VERSION`
and the Dockerfile `ARG`, cross-checked by `check_skia_pin.py`). That wheel
deliberately trails the C++ milestone, so a Skia/Dawn milestone bump leaves the
PNG golden and `pins.RASTER_GOLDEN_SHA256` correct and untouched, while bumping
only the wheel invalidates both without moving a single release-asset digest.
When changing the wheel, regenerate through
`python3 -m tools.harness.visual.runner --generate --all --surface canvas2d`
and update the recorded sha256 in the same commit: a golden regenerated without
its digest fails `tests/test_raster_golden.py` before any raster runs.
`pins.RASTER_GOLDEN_VERIFIED_PLATFORMS` records which hosts that identity was
actually measured on, so add a platform key only after a run on that platform
reported the matching digest.
- The design importer browser runtime is split across
`bin/browser_capture-v1` and `bin/jsx-runtime`. Release workflow tests must
stage and verify both roots because `capture.mjs` resolves the materialized
binding contract through the sibling path. Keep the source module canonical
under `tools/import-design/jsx-runtime` and test the missing sibling as a
failure.
## Windows GPU slices
Read each Windows archive's `build/win-gpu/msvc-toolchain.json` before pinning
and copy its `runtime.consumer_requirement` into `external/skia-build/VERSION.md`.
The static libraries leave MSVC STL `__std_*` helpers for the consumer's
runtime to supply, so the consumer must link with that MSVC toolset or newer.
x64 and ARM64 are built on different runner images and can differ: m157 x64
needs MSVC 14.44 (VS 2022) while m157 ARM64 needs 14.51 (VS 18), and a VS 2022
ARM64 VM fails at link. A receipt with `unknown` fields proves nothing.
To confirm every slice came from one Skia revision, compare the shipped
headers across archives after normalising line endings: Windows archives
carry CRLF headers, so a byte compare reports every header as different.
```python
a.read(n).replace(b"\r\n", b"\n") == b.read(n).replace(b"\r\n", b"\n")
```
Expect exactly one difference from m158 on: both Windows archives carry
skia-builder's ARM64EC guard in `include/private/SkFeatures.h`
(`&& !defined(_M_ARM64EC)` on the x86 CPU test). Any other differing header is a
second revision, not a builder patch.
For Windows GPU consumers, record separate `windows-x64` and `windows-arm64`
release assets in the manifest. Select the slice from the CMake target
architecture (`CMAKE_GENERATOR_PLATFORM` when cross-compiling) and mirror each
release digest in `external/skia-build/VERSION.md` before running the fetcher and
host validation gates.
The shared Windows Skia cache contains target-selected `skia.lib`, not Unix
`libskia.a`. The x64 fetcher can publish a flat `build/win-gpu/lib/Release/`
layout, while ARM64 slices use architecture subdirectories. After auto-fetch,
resolve the archive with `pulp_windows_local_skia` so the same target-aware
selection applies to checkout-local and shared-cache providers.
Even a published fork release can be clobbered. A Windows backfill lane
re-uploads its slice with `gh release upload --clobber` under the existing
`chrome/mNNN` tag, so the pinned digest stops matching and the release CLI
fails at `fetch_skia_for_release.py <platform>` with `sha256 mismatch`. Because
the release job needs the whole build matrix, every platform's release stops
publishing. Do not bump the digest blindly. Recover the superseded bytes from
the fork's Actions artifact for the run that produced the old pin, unzip both,
and compare the libraries member by member, ignoring COFF `TimeDateStamp`. A
rebuild of the same source that differs only in timestamps can be repinned as
is, and its provenance belongs in `VERSION.md`. Any other content difference is
a toolchain change and needs a full Windows build and smoke before the pin
moves.
## Plug-in notices follow the render targets
Skia, ICU and Dawn reach plug-in bundles' `ThirdPartyNotices` through the
`link_targets` of their `tools/deps/manifest.json` entries: `skia::skia` for
Skia and ICU, `gpu-runtime-dawn` and `skia::dawn` for Dawn. If a toolchain update
renames those imported targets or moves Dawn onto another one, update the
fields in the same change, or every GPU editor bundle silently stops naming
the renderer. The `plugin-third-party-notices` ctest is the check: its
FULL_EDITOR control must name Skia and Dawn. Libraries the new archives bundle
(HarfBuzz, libpng and the rest) are credited inside the Skia `NOTICE.md`
section, which is the text that ships.
## One Skia identity across every platform
Pulp records a single Skia identity for all platforms (manifest, V8 pairing,
runtime-pins build info, visual-harness pin). Never pin platforms at different
milestones: a Linux bundle left on the old milestone would carry the new
milestone's stamp over old bytes, a false provenance record. When one platform's
assets for the new milestone fail (for example Linux archives that do not link),
re-cut that platform's assets and re-pin its digests in the same change rather
than splitting the identity. skia-builder has issues disabled, so track the
failure as a `PARKED/<platform>` issue on Pulp, linked from the PR; a
Linux-only failure does not block the macOS landing.
A consumer that locks a renderer milestone can also refuse a closure exported
against a different Skia archive, so the Pulp side must be on the new milestone
before a downstream re-export.
The Skia and V8 fetchers download through the shared `tools/scripts/download_retry.py`
policy (6 attempts, 5-60s jittered backoff, 5xx/timeouts only; 4xx and sha256
mismatches fail at once). A test that copies `fetch_skia_for_release.py` into a
scratch tree must copy `download_retry.py` beside it.
## The Vellum release lives in `pulp.lock`
`pulp.lock` names the Vellum release Pulp builds against: tag, resolved commit,
and the sha256 of the SDK and gpu-runtime archives. `PulpVellumLock.cmake` reads
it and fails closed on a malformed field or a digest mismatch, and
`PulpGpuRuntime.cmake` takes its commit from it rather than a second copy. When
the release moves, do not hand-edit: run
```bash
python3 tools/deps/pulp_lock_update.py --tag v0.2.4 [--dry-run] # or --latest
```
It reads the release read-only (`--ghread` routes the API calls through the
`ghread` wrapper), requires the published `SHA256SUMS` to list the SDK archive,
downloads the SDK and gpu-runtime archives into a temporary directory and hashes
them (never extracting), dereferences the tag to its commit, and hashes
`gpu-runtime/renderer-lock.json` at that commit. gpu-runtime's digest comes from
`SHA256SUMS` when it lists the archive, else from `vellum-gpu-runtime.sha256`; if
neither has it, or both disagree, it refuses. This is a same-origin integrity check (the archives match the
checksums published in the same release), not proof of authenticity: it does not
check the release's immutable flag, per-asset API digests or attestation, so the
reviewer of the bump PR is the second check. Only after every check passes does it
write `pulp.lock` and the mirrors the strict audit requires to agree with it (the
`vellum-gpu-runtime` and `vellum-sdk` entries and the Skia
`vellum_renderer_drift_check.commit` in `tools/deps/manifest.json`,
`DEPENDENCIES.md`, `NOTICE.md`), then re-runs the lock validator and the audit's
agreement checks on the result. It refuses a downgrade, a prerelease, a
non-semver tag, or a `lock_digest` change the Skia pin does not already follow
(that is a render-toolchain update: advance Vellum's renderer lock, then Pulp's
Skia pin, then the lock). `.github/workflows/vellum-pin-bump.yml` runs it every
few hours and opens one `chore(deps): pin Vellum <tag>` PR per release
(`tools/ci/vellum_pin_bump_pr.py`: one branch per tag, a closed PR is not reopened,
an older open bump PR is closed as superseded). `python3 tools/deps/audit.py
--strict` reports any disagreement between the lock and the manifest. A gpu-runtime release can rename its imported
targets (0.2.0 exports `VellumGpuRuntime::Dawn`), so regenerate the consumption
census after a bump.
### One version, one fetcher
`pulp.lock` is the only file that may name the Vellum version a reader copies
from. `setup.sh`, `PulpVellumResolve.cmake`, templates and docs derive it from the
lock, and `tools/scripts/vellum_version_gate.py` (ctest `vellum-version-gate`)
fails when the pinned tag appears in setup.sh, CMake, templates, skills or docs.
The audit's agreement files (`tools/deps/manifest.json`, `DEPENDENCIES.md`,
`NOTICE.md`) and history (CHANGELOG, reports) are outside its scope. So a bump
edits the lock and those agreement files, nothing else.
`setup.sh` and configure stage the SDK through the same helper,
`tools/scripts/bundle_vellum_sdk.py --vellum pinned|latest|vX.Y.Z`, into the same
places (`~/.cache/pulp/vellum-sdk`, `~/.local/share/pulp/vellum/<tag>`). Release
lookup and checksum verification live in `tools/deps/vellum_release.py`, shared
with the pin updater, so a release is judged the same way when it is pinned and
when it is consumed. Gotchas:
- A pinned fetch downloads `SHA256SUMS` by URL, not through the GitHub API, and
needs it to agree with `vellum.sdk_digest`; a release that re-publishes its SDK
archive is refused until the lock moves. `latest` spends one API call, at most
once a day per build directory (`_PULP_VELLUM_LATEST_TAG` and
`_PULP_VELLUM_LATEST_AT` in the cache). Only a real lookup moves
`_PULP_VELLUM_LATEST_AT`; re-fetching a remembered tag must not, or the answer
never expires. `-DPULP_VELLUM_REFRESH=ON` forces a lookup and turns itself off.
- `read_release` refuses a release that is not `immutable` or whose assets lack
GitHub's `sha256:` digest, and cross-checks that digest against SHA256SUMS. A
test fake must publish both, as real releases do; the updater's fake in
`tools/deps/test_pulp_lock_update.py` and the resolver's in
`tools/scripts/test_vellum_resolve.py` do.
- Only the integration options request an SDK (the list is
`_PULP_VELLUM_REQUEST_OPTIONS`). A sub-option such as
`PULP_ENABLE_PULP_VELLUM_SCRIPTED` defaults ON and is cache-sticky; matching a
`PULP_ENABLE_PULP_VELLUM*` pattern made `-DPULP_ENABLE_PULP_VELLUM=OFF` still
fetch. A new integration option goes in that list.
- Staging is serialised by a `flock` the helper takes on the staging root, so
`setup.sh` and configure share it. The selftest's transport is swapped with
`PULP_VELLUM_TEST_FETCHER` (a Python file defining `Fetcher`); there is no
command override, so the verifier always runs.
- Configure records the SDK it chose in `_PULP_VELLUM_RESOLVED_DIR` and treats a
`Vellum_DIR` equal to it as its own. Without that, find_package's cached
`Vellum_DIR` would read as a developer override on the next configure and pin
the build to the first release it resolved.
- A completed staging is the `pulp-sdk-digest.txt` marker with no
`.vellum-sdk-publish-pending` beside it; CMake reads that marker directly, so a
cached configure starts no Python and makes no network call.
### What the lock's digests enforce
`vellum.sha` pins the FetchContent source build of gpu-runtime; no archive is
involved there, so the archive digests do not apply to it. `gpu_runtime_digest`
covers a prebuilt package: `PULP_GPU_RUNTIME_PREFIX` also needs
`PULP_GPU_RUNTIME_ARCHIVE` (the archive it was extracted from), and configure
stops unless that archive hashes to the lock, the prefix's
`gpu-runtime-artifact.json` equals the archive's, every file it lists hashes as
recorded, and the prefix holds nothing else. The installed prefix carries no
archive digest of its own, which is why the archive must be supplied. `sdk_digest`
is checked when configure or `setup.sh` stages the pinned SDK (see above) and
when a caller passes `PULP_VELLUM_SDK_ARCHIVE`.