You are reading documentation for 0.8.1. The latest release in the 0.8 line is 0.8.4.
Cache Generations and Restore Lineages
Identity model
Mammoth separates the cache family, ref lineage and immutable generation. A generation references one exact object key for every nonempty partition in its view. A positive object save alone is insufficient to publish a generation.
Cache family
The family is an opaque identifier beginning with mammoth-s1-gradle- or
mammoth-s1-maven-. The digest binds the configured cache-key-prefix, the build
tool’s internal cache schema, the family retention policy and the storage, wire and
local profiles. It excludes the partition layout, the local path, Java version and
runner platform.
Incompatible profiles or a schema bump start a new family. All cooperating workers and aggregators must use compatible Action revisions and partition inputs. An upgrade to the native v2 and worker TAR-v2 profiles starts cold against old backend objects. Keep the package version and the on-wire profile names distinct when planning an upgrade.
Partition compatibility
Each partition has its own compatibility key. It binds the partition’s includes, exclusions, purge rules, publication policy, writer and seed eligibility, the hard excludes, and the layout version of every classified cache surface its includes can reach. A generation records each partition’s key. Restore uses the entries whose key matches the job’s own and leaves the others cold. A recovery group goes cold as a whole when any member doesn’t match. So editing one custom partition, or a new layout in the Kotlin DSL caches, colds only the affected partitions: dependency caches keep restoring.
Ref lineage
The exact ref identity is hashed into its lineage. A prepare can search the
current ref and then the configured default ref within the same family.
cache-family-key, cache-lineage-prefix and restored-cache-key expose the
selected identities for diagnostics.
Immutable generation
The generation and partition keys bind their lineage and writer and include the decision identity. The published record controls which exact refs are restored. Restore can admit a partial view if some objects have expired, subject to complete-unit and snapshot requirements. Reusing an exact generation requires the observed base to remain unchanged. A lineage-only record can reuse existing partition refs.
See the native base protocol for the canonical tuples, hashing and key formulas.