google/capsem/asset-pipeline

Claude Code and agent skill by google/capsem

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Asset manifests, hash verification, and boot-time resolution for Capsem VM images. Use when debugging boot failures, manifest issues, or hash mismatches.

Install

npx vskill@latest install google/capsem/asset-pipeline

SKILL.md

The same SKILL.md was published earlier as google/capsem/asset-pipeline.

Asset Pipeline

How VM assets (kernel, initrd, rootfs) are built, checksummed, resolved, and verified at boot.

Reference routing

  • Read references/manifest-and-storage.md before changing the v2 manifest

schema, digest generation or enrichment, corporate/local manifest inputs, installed asset layout, package manifest metadata, or cache naming.

  • Read references/release-channel-publication.md before changing channel

graph generation, binary/runtime publication, channel switching, deployment, Cloudflare readiness, evidence or attestation checks, or cache headers.

Manifest Authority

The selected manifest is the bible: if an artifact is not in that manifest, it does not exist for the release, update, cache, or boot path. Never infer membership from a cache directory, release attachment, filename, channel name, or prior run. Fetch mutable manifests fresh. Cache only immutable artifact bytes, address each cache entry directly by the digest recorded in the manifest, and re-verify that digest before every use. Artifact cache identity is channel-independent; the manifest decides which digest set belongs to a channel at that moment.

For published application EROFS roots, keep the verified file descriptor through kernel loop setup. mount -o loop /proc/self/fd/N canonicalizes the name and reopens it; a read-only VirtioFS share can deny that second open even while the verified descriptor remains readable. The guest launcher uses LOOP_CONFIGURE with that descriptor, read-only and auto-clear flags, and a read-only loop handle held through unmount. A writable loop handle conflicts with exclusive mounting. tests/fixtures/oci/test_launch_loop.py guards descriptor identity and cleanup; the saved-session Ironbank test proves create, reopen, preserved state and resize.

Versioning

Binary and asset versions are independent:

  • Binary: 1.3.{unix_timestamp} on the current release line -- changes every build
  • Assets: YYYY.MMDD.patch -- changes only on kernel/rootfs/initrd rebuilds

The manifest tracks both with compatibility ranges (min_binary, min_assets). Runtime asset selection enforces both directions: older binaries do not hydrate asset releases whose min_binary requires a newer binary, and new session/download selection skips releases marked deprecated: true.

Key Commands

CommandWhen to use
just _build-assetsFull rebuild: kernel + rootfs + checksums (slow, needs docker)
just shellDaily driver: repack initrd, build, sign, boot (~10s)
just shell "capsem-doctor"Verify VM boots correctly after changes

On macOS, just _build-assets, just _pack-initrd, and any Docker-backed asset recipe depend on Colima. If Docker cannot connect but Colima appears to be running, follow /dev-setup's Colima recovery discipline before treating the asset build as blocked: check colima list, docker version, and colima ssh -- docker ps; then try colima stop && colima start once and rerun the failing recipe.

File Locations

WhatWhere
Runtime source configconfig/docker/image/
Guest artifactsguest/artifacts/
Built assets (dev)cache/target/assets/{arch}/vmlinuz, initrd.img, rootfs.erofs
Installed assets~/.capsem/assets/{name}-{hash16}.{ext} (flat, hash-based)
Manifestcache/target/assets/manifest.json
Asset channel deploy rootcache/target/release/distribution/
Asset channel manifestcache/target/release/distribution/assets/<channel>/manifest.json
Asset channel human sitebuild_system/release_site/ Astro app, built from cache/target/release/distribution/ JSON
Checksumscache/target/assets/B3SUMS
Manifest generatorcapsem-admin manifest generate <assets_dir>
Asset types + cleanupcrates/capsem-core/src/asset_manager.rs
Hash extraction for build.rscrates/capsem-core/src/manifest_compat.rs

Boot-Time Resolution

  1. Dev mode: Service detects arch subdirs, passes --kernel cache/target/assets/{arch}/vmlinuz etc. to capsem-process
  2. Installed mode: Service reads v2 manifest, resolves ManifestV2::resolve(binary_version, arch, base_dir) to get hash-based file paths, passes --kernel, --initrd, --rootfs individually to capsem-process
  3. Hash check at boot: VmConfig::builder().build() verifies BLAKE3 against compile-time hashes if available

Cleanup

cleanup_unused_assets(base_dir, manifest) removes hash-named files not referenced by any non-deprecated asset release. Also removes legacy v*/ directories. Existing VM pins are preserved by the VM pinning rail; deprecation blocks new selection rather than rewriting running VMs.

Persistent resume boots the registry entry's own asset pins, never the current runtime set. A runtime image advance and a deprecated pin preserve the VM; an explicit installed-manifest revocation, a missing pinned asset, invalid rootfs geometry, or a registry entry from before profiles were removed blocks it. The active policy is re-materialized from current settings and corp config at every boot. Any cached resume verdict must fingerprint the installed manifest, rootfs metadata, and pinned asset metadata so a revocation or repair is visible immediately.

Common Issues

Hash mismatch at boot: Assets on disk don't match the hashes baked into the binary. Fix: just shell (repacks initrd, regenerates manifest, touches build.rs to force recompile).

Hash mismatch where expected and actual look identical: the two values differ only by an algorithm tag. Digests reach boot in two spellings — asset manifests carry bare hex, release-graph digests and the runtime pins derived from them carry blake3:<hex>.

VmConfigBuilder::verify_hash resolves both, in the one place that decides what an expected hash means, and refuses a non-blake3 algorithm outright rather than letting a sha256: pin masquerade as corruption it can never match. Do not add a second reconciliation at a call site.

Log pins in full, never truncated. A 16-character slice renders both spellings as plausible prefixes (blake3:de1d58193 looks like a hash), so a truncated audit line hides exactly the mismatch it exists to catch.

Boot verifies the *booting runtime's* pins. The caller passes expected_asset_hashes for the runtime image set it is starting; nothing infers them from a cache directory or channel name. Absent is a hard error, not permission to boot unverified.

Hashes silently skipped: If build.rs can't extract hashes (manifest missing, wrong format), option_env!() returns None and verification is skipped.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 15 Nov 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
56
Repository forks
8
7-day trend score
20

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/google/capsem/asset-pipeline/badge)](https://verified-skill.com/skills/google/capsem/asset-pipeline)

Something wrong with this skill or its page? Tell us.