Expand description
Cache-key derivation from workspace state for haz.
The seam between haz-cache’s pure cache-key serialisation and
the workspace state a key is derived from. build_cache_key
gathers a task’s resolved inputs, its hard-predecessor stream
hashes, and its environment from the validated workspace, and
folds them into a haz_cache::CacheKey; resolve_input_files
exposes just the input-resolution step for read-only consumers.
The derivation is pure and synchronous (no tokio runtime), so
both the executor (haz-exec) and the read-only haz why
introspection path depend on this crate without either pulling
the other in.
pattern_walk is the shared path-pattern projection and
recursive filesystem walker that input resolution builds on; the
executor reuses the same walker for output materialisation.
Modules§
- pattern_
walk - Shared kernel for resolving a task’s
InputSpec/OutputSpecpatterns against the filesystem.
Structs§
- Owned
Input File - One file resolved from a task’s
inputspatterns, paired with the hash of its content under the active hash function. - Predecessor
Stream Hashes - Hashes of one hard-edge predecessor’s captured stdout and stderr,
as recorded by its prior successful run (
CACHE-007).
Enums§
- Build
KeyError - Failure modes of
build_cache_key.
Functions§
- build_
cache_ key - Derive the cache key for one task in
workspaceperCACHE-001..009. - resolve_
input_ files - Resolve every
InputSpecdeclared on a task againstfsand hash the bytes of each matched file underalgo.