zccache Architecture

August 13, 2026 · View on GitHub

This document is the index for zccache's architecture specification. Each subsystem is documented in a separate file under docs/architecture/.

Documents

DocumentLinesWhat it covers
architecture/overview.md~280System diagram, all 9 component descriptions and key interfaces
architecture/data-flow.md~160Cache hit, cache miss, passthrough traces + rustc key-scope rules (env-deps, incremental, crate types)
architecture/ipc.md~100Transport abstraction, socket discovery, connection lifecycle, compile progress heartbeats, errors
architecture/metadata-cache.md~130In-memory cache data model, confidence levels, watcher integration
architecture/artifact-store.md~130Disk layout, bincode index schema, LRU eviction, corruption detection
architecture/rust-artifact-plan.md~120Rust plan ownership, thin/full semantics, restore hardening, backends, diagnostics, CLI contract
architecture/embedded-service.md~290Embedded service MVP boundary, audit continuity, soldr/fbuild integration design
architecture/target-cache.md~70Legacy action target snapshot ownership, outputs, and rust-plan boundary
architecture/runtime.md~130Concurrency model, correctness guarantees, failure modes, crash recovery
architecture/portability.md~200Platform differences, host-platform boundary (zccache-platform), path handling, file identity, future extensions

Cache-root lifecycle logs are verified by the shared zccache-audit catalog at perf and integration boundaries. This keeps CI policy in Rust and makes a failed cache-root audit retain its diagnostic JSONL evidence.

Quick Reference

See also: DESIGN_DECISIONS.md for rationale behind key choices, ROADMAP.md for implementation phases. For embedded mode, start with architecture/embedded-service.md, especially the MVP status table: Soldr integration is landed; fbuild remains open.