Skip to content

WORKFLOW.md Sections 3, 4 and 6 Carry Statements the Tree Contradicts #1523

Description

@ptr727

Defect

A second round of whole-unit review of WORKFLOW.md sections 3, 4, and 6 while settling #1521 found these statements contradicted by the tree or by the document itself. None was introduced there, and #1522 holds the three from the first round. Each wants checking before it is fixed, since a finding against prose can be a reading the text does not intend.

Section 3, Architecture

  • The target list reads as a local edit. "Adding or dropping a target edits the orchestrator's surface: the enable_<target> inputs and the build-<target> job + its github-release and build-docker needs: entries in the release task". An adopting repo reaches the hub's release task by pin and carries no local copy (spec/divergences.json retires one), so only the enable_* inputs are its surface, and the release task's own comment says to subset "by disabling the target, not by editing this job". "Breaks the verbatim carry" under "The Seam Contract" rests on the same premise.
  • The add/drop surface omits the publisher's on.push.paths. For a NuGet or PyPI repo that list decides whether a bot push to main publishes at all, and "a shared paths filter" names a filter that nothing shares: each stub carries its own list, and publish-plan-task.yml has no paths logic.
  • "An unchanged version re-pushes nothing (no-op republish)" is false for a dispatch, which D4.4 says refreshes the release instead.

Section 4, Behavioral Contract

  • D3.3: "NBGV appends the git height as the patch, bumped only for a functional change by the maintainer." The patch moves on every commit, and what the maintainer bumps is the version.json floor.
  • D4.4: "nothing is re-pushed" and "Registry pushes are no-ops" contradict "Docker always re-pushes" in the same item. "the release-create step is skipped when the tag exists" names the wrong check, since the step reads gh release view, so a tag left behind by a deleted release does not skip it.
  • D5.1 (and the matching sentence in section 3): "An intermediate consumed only within the same run MAY instead rely on the retention-days: 1 backstop." Every cross-job artifact is consumed within its run, so the exception covers everything the rule does.
  • D6.4 (and section 3): "the build-<target> job" does not exist for the .NET target, whose job is dotnet-publish.
  • D3.2: "The default-branch literal in the gate, the prerelease expression, and version.json MUST all name the repo's real default branch." The first two are hardcoded main in the hub task an adopter reaches rather than carries, and publish-plan-task.yml holds further main literals the list omits.
  • D1.6: a cross-repository caller "names the secret it passes ... on its pull request path and its publisher path alike", but catalog/snippets/workflows/test-pull-request.yml calls the validator with no secrets: block. The fix belongs in the stub.
  • D1.2 / D1.6: "Input: a C# or Python repo that has tests for that type" is wider than what validate-task.yml detects, a *Tests*.csproj project or tests/** beside uv.lock or requirements*.txt, so a repo with tests in another shape gets none run and no coverage, silently.

Section 6, Per-Project-Type Test Walkthroughs

  • "The pattern: download (D6.1) and the cleanup jobs (D5.1 to D5.5) live in the release task" (also in the source-only row). Only the release-asset-* delete is there. The nuget-build-* and pypi-build-* deletes are in the caller's own publish jobs, and D5.4 sits on every upload.
  • "S7, S8, S10, plus S5, S6 and S9 wherever its own on: admits a push or a schedule": S5 and S6 are bot pushes, reached only by a push trigger.
  • S11: "rather than the merge itself, since D4.1 admits no publish from a human merge". On the default path the merge-bot merges with the App token, so that push is a bot push the release gate publishes, as D8.3 says.
  • "the build leaf MUST read that state file for the immutable tag instead of SemVer2": "tag" means the image or build version here, while D3.5 says NBGV still tags the release.
  • "diverges from D4.3, D6.1 and D6.3 alike": a differently named artifact that keeps its -<branch> suffix still meets D6.3.
  • The deploy hook's "all four of its inputs" are never named, nor its required path, so a repo holding only this section cannot write one.
  • "such a repo reaches S2 and S3 on every pull request": a config-only pull request matches neither scenario's input. What holds is that none reaches S1.

Activity

  1. ptr727 commented on Sep 11, 2026

    @ptr727
    OwnerAuthor

    Whole-unit review of WORKFLOW.md section 4 while settling #1522 found the D6.4 twin of this issue's first section 3 item, not introduced there.

    D6.4 lists a surface a pinned caller does not own, and omits the one it does. "adding or dropping a target updates all of: the enable_<target> input, the build-<target> job and its github-release and build-docker needs: entries". A caller reaching the release task by pin owns none of those, since they live in the hub's build-release-task.yml. The edit it does need is the enable_* value its own publisher passes in the publish job, which the list never names. Constructed example: a repository adding a Docker target by this list alone smoke-builds the image on pull requests, while its publisher still passes enable_docker: false, so no real publish ever builds it. Dropping a NuGet target the same way leaves enable_nuget at its true default on the publisher path.

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