Phase 0 / Asset Pipeline / Asset pipeline v0 (formats, codecs, cooker, async loader)#20
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Brief
briefs/m0.6-assets.md(M0.6 — Asset pipeline v0). Status: CLOSED (2026-06-04).Summary
Phase 0 asset pipeline v0: frozen on-disk formats + handle/registry, native DEFLATE+PNG/glTF/WAV codecs, importers/cookers, BLAKE3-keyed local cache, and an async runtime loader. Delivered across one branch / one PR with five review gates (E1–E5) plus an E4 uuid complement and E1/E2/E4 cleanups.
Stages
<type>.asset.etchschema, runtime.<type>.bin40-byte header (comptime offset guards, explicit LE),AssetHandle,Registry(refcount + generation).foundation/simd/skeleton +adler32kernel.paeth_filter_decodekernel, depths 1/2/4/8, palette+tRNS, Adam7) → RGBA8; glTF static viastd.json; WAV RIFF PCM.cook_settings+ mandatoryextracted.blob).std.Io(io.concurrent, never blocks the main thread) + lifecycle (load/retain/release/forced-unload/reload); plus the E1/E2/E4 cleanups (inflate over-totalguard + 3 negative tests, adler32/hash comment fixes).Recorded deviations (all in the brief)
.binheader 32 → 40 bytes (calibration error;_reservedu32 @28,@sizeOf == 40).cached == cooked+miss ≫ hit); absolutes logged, not asserted.std.Io, not the Chase-Lev job system (avoids widening its ECS-shaped surface — the brief's own Case 2 gate).weld_etch).Acceptance / CI
zig buildclean ·zig build testgreen (Debug + ReleaseSafe) ·zig fmt --check·zig build lintzig build cook-demoproduces 3.bin; re-run = cache HIT, uuids preserved.Documentation files modified
briefs/m0.6-assets.mdonly.README.mdandCLAUDE.mdwere NOT modified (the §3.4 CLAUDE.md update is left to the merge/tag step, at Guy's discretion).Files beyond the brief's "Files to create or modify" (all justified, journaled)
src/foundation/root.zig(foundation module root, needed for@import("foundation")).src/modules/asset_pipeline/{hash.zig, uuid.zig}(shared BLAKE3 util; UUIDv7 — the E4 Claude.ai complement).src/modules/asset_pipeline/importers/{common.zig, root.zig},cookers/common.zig,codecs/root.zig(shared helpers + namespace roots within listed dirs).tools/asset_cook/main.zig(the thin offline cook entry the brief's Observable behavior + Out-of-scope call for).🤖 Generated with Claude Code