Build Stack Review

Retiring the Setup README as a Build Artifact in Favor of a Declarative Entry Point

Executable manifests replace narrative setup instructions with versioned environment definitions.

· 8 min read
Cover illustration for “Retiring the Setup README as a Build Artifact in Favor of a Declarative Entry Point”
Reproducible Development Environments · November 7, 2026 · 8 min read · 1,863 words

Retiring the setup README as a build artifact means moving pinned dependencies, services, and configuration into a versioned declarative manifest supported on the target platforms. The README then explains the project and points to the command, while the manifest produces the environment.

Why a setup README is the wrong artifact for the job it is asked to do

Publira issue #4713, opened and closed October 22, 2026, found a problem with how a 242-line root README was organized. The file combined product vision with dependency services, host environment variables, database initialization, service URLs, secret keys, and distributed tracing walkthroughs. Development-environment reference had become narrative prose, duplicated across files without one authoritative version. The README was being asked to define machine state.

A setup README usually mixes imperative commands with version constraints, OS-specific conditions, and steps that people must carry out by hand. A person must interpret those instructions before they produce anything on a machine. A computational environment has a different structure. It is a directed graph of inputs, including packages, runtimes, environment variables, and service versions, whose relationships determine the resulting state. Prose can describe that graph, but it cannot instantiate or enforce it.

A document can be committed to version control, but committing its instructions does not atomically change the environment it describes. The document works only as far as the reader is willing and able to turn its words into actions, including running the dependency version it specifies. Treating that description as a build artifact assigns it a job it cannot perform.

How the category error produces drift, duplication, and onboarding failure

The first consequence is a synchronization problem. A database version changes in staging, a build flag changes in CI, or a dependency updates without a corresponding edit to the README. Nothing in the document enforces agreement with those changes. The instructions can remain readable and internally consistent while describing an environment that no longer exists. Drift therefore follows from the separation between the description and the system it purports to define.

Duplication makes that separation harder to manage. When an environment fact appears in the root README, CONTRIBUTING.md, package-specific READMEs, and wiki pages, each copy can diverge independently. The Publira issue found secrets, cache configuration, and service URLs described in three to four separate files. None was the single authoritative source. Editing one copy could not establish agreement across the others, because the format provided no enforcement path between them.

Even complete agreement among those documents would leave transitive dependencies unresolved. A README that names top-level tool versions does not necessarily pin the dependencies beneath them. A remote sub-dependency can change without any visible document change or signal to the developer. Documentation discipline alone cannot close that gap.

Onboarding exposes the accumulated uncertainty to someone least equipped to resolve it. In an illustrative fintech case from 2026, a fifteen-year-veteran engineer spent days determining which Kubernetes cluster to target from a “Getting Started” page that had not been updated in nearly a year. Experience did not supply the missing authority. The new developer’s task had become reconstructing operational knowledge.

What a declarative manifest actually encodes that prose cannot

A declarative manifest replaces instructions about state with an executable definition of state. Packages, runtimes, services, environment variables, and hooks become named inputs. An environment tool consumes that definition to produce the running environment. Removing interpretation as an onboarding step gives the artifact properties including executability, determinism, enforceability, and atomic versioning.

The devenv pattern makes the distinction concrete. A single devenv.nix file can declare Python 3.11 with Poetry, PostgreSQL 15, Redis, environment variables, helper scripts, and pre-commit hooks for black, ruff, and mypy. A collaborator enters that environment with one command, with PostgreSQL running and the hooks installed. These are parts of one declaration that replaces disconnected setup procedures and their supporting prose.

In this model, dependencies resolve to concrete store paths derived from their inputs, while devenv.lock pins dependencies to Git revisions and content hashes. The locked graph can be reproduced two years later, and macOS ARM, Linux x86-64, and CI use the same declared dependency graph without each having to interpret the version guidance.

Services also belong inside the environment boundary. PostgreSQL and Redis start inside the shell and shut down when the developer leaves, rather than depending on a separate remembered setup step. Because the definition is versioned, a commit can change the environment as one unit. Reverting that commit restores the earlier definition instead of asking a developer to reverse a procedure manually. This artifact model matters more than using one tool to the exclusion of all others.

The manifest as the new entry point: what the README becomes

Replacing the setup README keeps documentation for people in place. It separates orientation from execution so that each artifact has a clear responsibility. The README explains what the project does and where a reader should go next. The manifest defines the environment that contributors enter. CONTRIBUTING.md can explain the contributor workflow and point to that definition without becoming a competing source of environment state.

The Publira issue set a deliberately narrow target for the root README. It should be under about 50 lines, describe the product in plain terms, direct operators and contributors to their respective material, and include the license. The reassignment moves service tables, port assignments, environment variable blocks, and initialization commands out of the root entry point and into executable definitions or reference material for contributors.

Findability remains an explicit acceptance criterion. Every environment variable, port, and command named in the old README must still be available in CONTRIBUTING.md or the manifest, and links to old README headings must continue to resolve. Shortening the document must not erase knowledge. The test is whether a first-time visitor can understand what the project does today and find the appropriate next step without interpreting prose to establish machine state.

The issue also separated the tracing walkthrough from writing the full-workflow test it stood in for. An unwritten test can become a documented walkthrough, making an untested procedure look like an established capability. Moving environment state into executable artifacts clarifies that distinction, even though it does not itself write the missing test.

What the manifest makes possible that the README never could: CI parity, supply chain visibility, and rollback

When local development and CI consume the same pinned definition, environment divergence no longer depends on people noticing differences between setup instructions and pipeline configuration. The environment is defined once for both contexts. This removes the environment-mismatch cause of “passes locally, fails in CI,”. The claim is limited to parity of declared inputs.

A manifest and lockfile that identify every dependency at an exact, content-addressed path can support a deterministic Software Bill of Materials, or SBOM. The graph is already known from the inputs. It need not first be reconstructed by scanning a finished container image, and it includes dependencies that a top-level version list in a README would omit.

An environment’s input-derived hash can be attached to deployments and queried when a CVE is disclosed. Identifying deployments that use an affected version becomes a lookup against known environment inputs rather than a manual audit of build logs or image layers. Rollback uses the same version boundary. A commit revert returns the environment definition to a known-good state without reconstructing old instructions.

External requirements increase the value of this traceability. SBOM mandates, the EU Cyber Resilience Act, AI-specific transparency requirements under the EU AI Act, and ISO/IEC 42001 add pressure for dependable software and system documentation. These requirements do not make a README executable. A manifest-first approach provides known inputs for attestations and reduces the need to reconstruct dependency evidence downstream, although the manifest is not itself a complete compliance program.

AI agents expose the category error in a way human developers tolerate but machines cannot

Human developers often compensate for incomplete setup instructions by asking a colleague which version, service, or command is actually intended. That social repair mechanism conceals the artifact’s weakness. An AI coding agent does not gain a stable tool surface merely because it can process README text. It still lacks an enforceable definition of the environment against which its actions will run. For delegated work, that uncertainty is a blocker.

The shift from completion to delegation makes the distinction sharper. Finishing a line of code is different from taking responsibility for an issue, test, migration, refactor, or cleanup task. Delegation requires reliable tool invocation against a known environment. If versions or services are undefined, the same requested action can produce unpredictable results. More detailed natural-language instructions do not establish the missing runtime contract.

Anthropic released Model Context Protocol, or MCP, in November 2024 to give AI agents a uniform interface for communicating with external tools. MCP is now governed under the Agentic AI Foundation, a directed fund within the Linux Foundation. Its relevance here is the boundary between communication and execution. A uniform interface still needs a stable environment behind the tools it exposes. The manifest supplies that defined foundation.

For platform teams defining MCP surfaces, the practical implication is to use the manifest as the boundary. Specific actions with rules that govern their use should come from the environment’s declared capabilities and have names clear enough for a model to choose without guessing. This requires more than readable tool descriptions. Pinned versions, declared services, and a known exported environment give those actions a reproducible context, applying the same rigor that human onboarding needs but often tolerates doing without.

How should platform engineers standardize one-command setup across macOS, Linux, and WSL2?

Platform engineers should treat the transition as shared infrastructure work. The first step is to define and publish a base manifest for the common toolchain, including OS packages, language runtimes, linters, pre-commit hooks, and service dependencies. Project teams can then extend that base. The goal is one executable foundation consumed by developers and CI, with support for the target platforms made explicit.

This is the first mile of the golden path. Before a new contributor works with CI pipelines, Kubernetes manifests, or deployment configuration, a single command should produce a known development environment. The devenv modular composition pattern illustrates how shared declarations can accommodate different roles. Backend database tools or an ML Python stack can be composed on top of a common base without turning each team’s setup instructions into an independent authority.

Where environments are hosted and published by name, teams can pull a defined version on demand. The control plane replaces the wiki page as the place that determines which environment runs, while human documentation explains how contributors use that capability.

Every tool, service, environment variable, and runtime version previously named must be encoded in the manifest or findable through CONTRIBUTING.md pointing to it. The root README should still be the entry point and stay under 50 lines. Above all, running the manifest on a fresh machine must reproduce the environment without any more setup steps by hand.

Nix requires learning and upfront tooling investment. The platform team should absorb that complexity once and hide it behind intuitive primitives, rather than transferring it to every new developer through repeated interpretation failures. Its job is to make the right thing the easy thing.

More in Reproducible Development Environments