You are reading documentation for 0.2.0. The latest release in the 0.2 line is 0.2.2.
The latest stable release is 0.8.4.
Bootstrap Process
Prepare and post share provider-neutral bootstrap and build-tool adapters. Gradle provisions verified
wrapper JARs and installs result hooks; Maven requires no wrapper provisioning. Orchestration lives
in src/phases/prepare/cutoff-flow.ts and src/phases/finalize/flow.ts.
Prepare
The single-run guard claims ownership. Bootstrap derives configuration, Java identity, partitions and model, then writes a pending local journal before provisioning/restore. Optional cleanup pins re-restore to the matched key; validated worker envelopes are applied. After all prepare reads and writes, it records C. No upfront cache inventory/content hashes are captured.
Successful cache-disabled prepare writes an explicit disabled CI record. Failed prepare establishes no valid cutoff; the post guard skips publication. Superseding prepare invalidates older journals.
Finalize read boundary
Post first checks duplicate, owner and prepare-failure CI state. Skipped invocations do not inspect the journal/configuration or initialize providers. Enabled invocations load recorded identity and bounded journal, scan metadata and durably freeze upsert/used/GC decisions. Only then are SDKs, config resolvers, adapters and orchestration dynamically imported. This covers import-time event reads when event/config/Java files overlap a custom cache partition.
Finalize consumes a one-use receipt, bootstraps and reconciles full model, execution and policy. Direct core callers preflight before bootstrap too. Drift fails before reports, deletion or upload. Reporting can read content after freeze; transient Gradle scripts and report scratch are excluded.
Replay permits Mammoth’s own atime changes while checking other native metadata. Finalize executes
frozen GC, publishes a sealed worker completion envelope or eligible immutable generation, and
replaces the summary with upsert/used/GC and save results. Adapters retain build failures/scan links.
src/phases/finalize/reporting.ts remains side-effect-free and creates no content inventory.
See Base cache design and Delta protocol for details.