Versioned Environment Intent With Manifest.toml Across Every SDLC Stage
Committing one resolved manifest makes every stage run the same environment.

A versioned, fully resolved manifest.toml should be the unit of promotion across the software development lifecycle. It records the environment that development, CI, staging, and production must instantiate, rather than constraints each stage resolves independently. When the record includes the required runtime and platform inputs, promoting the same pinned environment makes promotion atomic and auditable.
Why environment drift is a supply chain problem, not just a developer inconvenience
A dependency is updated on a laptop, an environment variable exists only on one machine, or CI resolves a different transitive package. The divergence stays silent until a later stage exposes it through a broken build or an unreproducible test. A local pass and a staging failure can therefore describe different environments, even when the code is unchanged. This is an organizational failure of environment control.
The security consequence follows from that missing record. A team cannot attest to the inputs of a build if it never recorded the environment that produced it. An untracked dependency set leaves the same evidentiary gap as an unsigned artifact. It also weakens the software bill of materials, or SBOM, because the inventory cannot reliably describe a deployment whose dependencies have drifted. When a CVE is disclosed, the missing record becomes an operational cost, forcing teams to rescan images and search logs to discover which services contain the affected version.
What a manifest file actually records, and why the distinction between intent and resolution matters

A dependency declaration and a dependency resolution answer different questions. The declaration states what versions a project accepts, while the resolution records what it actually uses. Julia makes this distinction explicit through Project.toml and Manifest.toml. Developers set the direct dependencies and version constraints in the project file, and the generated manifest records the resolved dependency graph, including transitive packages. The broader principle applies to any system that separates constraint declaration from lockfile resolution.
A minimal illustration is a caret constraint accepting compatible versions versus a resolved entry naming one exact package version and its content hash. The constraint leaves the resolver a choice. The resolved entry records the choice already made, while the rest of the manifest fixes the transitive dependencies needed to reproduce it. Two developers who install from the same project file on different days may therefore get different graphs. Instantiating the same committed manifest removes that source of variation.
The scope of the record determines its guarantee. A package manifest pins packages, but a fully resolved environment record must also cover the runtime and platform inputs on which the environment depends. Multi-platform manifests can record derivations, hashes, and system-specific outputs for Linux and macOS, x86-64 and ARM.
Why committing the manifest to version control is the foundational act, and what it unlocks
A manifest kept on one laptop provides only local reproducibility. Committing it makes the environment a shared property of the repository, with a history that follows the application code. Without that record, every clone or CI installation can independently resolve a new dependency set. In Julia, the reproducible workflow commits both project and manifest files, activates the environment, and runs Pkg.instantiate(). Instantiation reads the manifest and installs the package versions it specifies.
That history changes how teams investigate regressions. A historical checkout can bring back the ecosystem state that went with the code, rather than test old code against newly resolved dependencies. Git-bisect-style debugging can then isolate whether a behavior changed with the application or with its environment. The environment becomes part of the evidence. Without a committed manifest, what looks like a code regression may come from dependencies that did not exist when the historical commit was tested.
Merge conflicts are a real but narrower objection. Because the manifest is generated, the prescribed response is to resolve project-file conflicts and regenerate the manifest. The more substantive objection concerns libraries, whose downstream consumers need flexibility to resolve compatible dependencies. In Julia, those consumers resolve from the project file when they add a package. The manifest instead serves contributors who clone and instantiate that library’s exact development environment.
This distinction permits two separate forms of CI. Instantiate-then-test checks whether the pinned environment still passes, while update-then-test checks compatibility with the current ecosystem. Applications need the former to preserve deployment reproducibility, and library maintainers can use both without imposing their contributor environment on consumers. These tests answer different questions about compatibility. Without the committed record, the pinned baseline is lost, leaving only the newly resolved environment to test.
How does a versioned manifest make CI match local development and become the unit of promotion?
A CI runner must restore the inputs the developer resolved rather than run the developer’s resolution process again. Otherwise, an upstream publication can change the environment between a local test and a pipeline execution. The committed manifest provides the bridge between them. CI instantiates the pinned graph, so a dependency change becomes an explicit version-control diff rather than a silent consequence of installation time.
QuantEcon’s Julia CI guide connects specified dependencies and versions with reproducible local and automated testing across operating systems and Julia versions. A fully resolved environment extends that discipline to the platform-specific inputs recorded in the manifest. Where content hashes and derivations are pinned, a CI matrix can validate the recorded environment for each supported platform. The matrix tests code against declared platform resolutions. It does not ask an unconstrained resolver to choose a new ecosystem for every runner.
Instead of rebuilding from constraints for staging and again for production, the pipeline promotes the same resolved environment record. For teams seeking a readable promotion artifact rather than a container image alone, the manifest exposes the pinned dependency and environment choices to review. That does not make a package list a complete environment by itself. The record must include the inputs needed to substantiate the claim that production receives what CI validated.
An environment hash derived from the inputs links each deployment to that pinned state. The readable manifest shows what is in the environment, while the hash identifies which environment the deployment uses. A changed dependency then produces a changed record that can be reviewed and tested before promotion. The next stage receives an approved state to use as resolved. This is promotion without rebuild, with the declarative manifest as the unit of promotion.

How a pinned manifest becomes the foundation of an auditable software supply chain
Promotion without rebuild preserves the relationship between the tested environment and its security evidence. SBOM tools can inspect manifests, container images, or compiled binaries, but a pinned manifest supplies a stable dependency record rather than a reconstruction of an untracked installation. Its completeness still depends on what it covers. When the same recorded environment moves through the pipeline unchanged, its dependency inventory still describes it at each stage. A stage-specific rebuild would require evidence for whatever that rebuild actually produced.
SLSA v1.2, approved November 2025, defines levels of provenance assurance for build artifacts. Its Build track addresses where an artifact came from through cryptographically verifiable attestations. The environment record gives those attestations concrete inputs to describe, although pinning alone does not establish every provenance assurance. The specification also promotes the Source track from experimental to approved, covering source history and tamper protection. A committed manifest brings environment changes into that source history.
Sigstore complements this provenance framework with artifact signing. It uses ephemeral key signing tied to OIDC identities and verification through the Rekor transparency log, so there is less work to do in managing signing keys. Signing makes what was signed and when auditable, while the manifest records the resolved environment to which the evidence refers. A dependency record with gaps still has those gaps after a signature or an attestation is added.
The operational benefit appears when a vulnerability is disclosed. Deployments tagged with input-derived environment hashes can be matched to the manifests containing an affected package version. Exposure discovery becomes a lookup against recorded deployment state rather than an attempt to reconstruct that state through scans and logs. This supports a precise response to a specific CVE. It gives the response process a pinned inventory against which to act.
Extending manifest-based environments to AI coding agents, which amplify drift risk if left unmanaged
AI coding agents also use the same environment contract. They can modify dependencies, generate build instructions, and invoke package managers without human review, allowing drift to develop quickly and with less visibility. Without a pinned manifest and an immutable environment, successive sessions can silently operate on different dependency graphs. The existing discipline therefore becomes a containment requirement.
Package selection exposes a specific limit of that containment. Agents can hallucinate package names or attribute paths, causing an installation to fail or select an unintended package. Instantiation against an approved manifest with content-hash verification checks what is installed against the pinned record. This prevents silent substitution outside that record. It does not establish that a newly proposed dependency is appropriate merely because the agent placed it in a manifest, so the distinction between approved state and proposed change remains essential.
In ML/AI stacks, an agent-initiated installation that changes a compiler or CUDA runtime can invalidate reproducibility even when the application dependencies appear unchanged. Environment-level pinning and immutability keep those changes from silently propagating into the build. Recovery then follows the recorded environment history. An atomic rollback returns to the last known-good generation instead of requiring manual reconstruction of the dependencies an agent altered.
Structured manifests also remove ambiguity from agent setup. An agent can instantiate a machine-readable environment definition rather than infer required steps from prose instructions. The platform recommendation is to version and share environments by name so that agents receive the same pinned stacks as human developers. Both consumers then work from one environment contract. A new session retrieves the selected environment rather than whatever the resolver happens to produce at invocation time.
How platform engineering teams surface manifest-based environments as the default path for every SDLC stage
Platform engineering turns this discipline into the default workflow. The clearest test is onboarding, where a new developer should be able to clone a repository and instantiate the team’s environment with a single command. Named, versioned base environments let developers get a complete pinned stack instead of putting it together from a multi-step README. The same entry point can serve an agent without creating a separate interpretation of the required environment.
The policy must extend beyond that first installation. CI should instantiate the committed manifest, while ecosystem-update testing remains a distinct mode with a different purpose. Staging and production should get the named, versioned environment hash that passed validation. This preserves the link between testing and deployment. Because the definition is human-readable and versioned, platform-as-code workflows can review, approve, and roll back environment changes with the same tooling used for application code.
Golden paths should expose structured workflows and machine-readable environment contracts. That lets both developers and agents use the approved route instead of each having to work out what to do from documentation. Base environments that teams can extend and share through a hosted control plane let platform teams publish updates without making every team rebuild. Teams pull the updated environment hash, validate it in CI, and promote it. The manifest diff shows what changed, and a recorded prior generation provides the target for an atomic, one-command rollback.
The organizational commitment is broader than a file format. Environment state must be spelled out, versioned, and open to audit from the first clone through the production audit record. A manifest supplies the resolved record, but the platform layer enforces its use at each handoff.
Sources
- 13. Packages, Testing, and Continuous Integration — Quantitative Economics with Julia
- About checking a package/library `Manifest.toml` into control version (again) - General Usage - Julia Programming Language
- How to use Manifests for a clean environment for reproducibility - General Usage - Julia Programming Language


