Skip to content

A root README change costs every open pull request its end-to-end runs: root prose files are inputs #550

Done

Description

@napkinstack-agent

What happened

On a consumer project with checks: attested: a pull request's rows were verified at X, which has a passing record. The head merges the default branch, whose new commits changed only another module's folder and the root README.md. T4: "Not kept by its inputs — what its modules read changed between X and the head: README.md". The module's checks read nothing from the root README, and a full end-to-end replay, about an hour, was due for a line of prose.

Verified: between the two commits, the only path outside the other module's folder is README.md. The module's references to a README are to its own.

Cause

ADR-0006 decision 2 puts every tracked path outside the module folders into the inputs digest. D242 (#441) took out the project's records (docs/project/, docs/adr/, docs/pdr/), which no module check is meant to read, and kept the rest of the root docs/: a downstream end-to-end run checks a page there. The repository's root prose files stayed inputs, though they are a record of the same kind: what a person reads about the project.

Market

Turborepo hashes a task's package files and only the root files declared as global dependencies. Nx hashes the project's files plus named shared inputs. Neither hashes a root README by default.

Triage

  • Proposed: the Markdown files at the repository's root (README.md, CHANGELOG.md, CONTRIBUTING.md, AGENTS.md, …, no slash in the path) join the records left out of the digest. An amendment of ADR-0006 decision 2, like D242's, with the same rule: a check that does read one is an undeclared input, bounded by the freshness bound.
  • Kept: the root docs/ stays an input, for the reason D242 gave. contracts/, platform/, lockfiles, workflows and .nstack/ stay inputs.
  • Not taken: a manifest field declaring the root files a module reads, as Turborepo and Nx let a task do. The declared graph is meant to be the whole of what a module reads (02-modules.md §8). A field would be a second declaration of it, for a case no module has shown.

Tests: a merge that changes only the root README.md keeps the row (with a record, and with none, after #548); a change to docs/x.md or .nstack/ still refuses it.

Activity

  1. napkinstack-agent commented on Nov 26, 2026

    @napkinstack-agent
    ContributorAuthor

    Published in v0.34.13 (D296, #551): the Markdown files at the repository's root are records, out of the inputs digest and of what T4 names. The root docs/, .nstack/, contracts/, platform/, lockfiles, Markdown under a folder and symbolic links stay inputs. ADR-0006 amended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions