Skip to content

WORKFLOW.md Sections 4 and 6 Carry Further Statements the Tree Contradicts, Found Settling #1522 #1527

Closed

Description

@ptr727

Defect

Whole-unit review of WORKFLOW.md while settling the ordering item of #1522 found these statements contradicted by the tree or by the document itself. None was introduced there, and #1522, #1523, and #1524 hold the earlier rounds' findings. Each wants checking before it is fixed, since a finding against prose can be a reading the text does not intend.

Section 6, the hugo row

  • The secret-mapping rationale is inverted. "because the task's own job is where the environment resolves, the caller maps the crossing secrets explicitly under secrets: ... so the explicit mapping is what supplies the value the task's environment-bound job then reads." deploy-site-task.yml says the job's own environment binding is what determines the real value, and docs/reusable-workflows.md "Deploy-site." says the mapping is needed only because the task declares the secret required: true, the value the job reads being governed by the task's environment:. A reader who maps a different value at the caller expects the task to use it, and it does not.
  • The accepted environment names are never stated. The row says the task "re-asserts the environment name in a job of its own" and that "any ref may reach a non-production environment", but not what the name is checked against. deploy-site-task.yml accepts exactly production and staging, so a repo naming its non-production environment anything else passes everything the row describes and fails at the name assertion.
  • The deploy hook's contract is short of what the task asserts. Beyond the four inputs WORKFLOW.md Sections 3, 4 and 6 Carry Statements the Tree Contradicts #1523 already names, the row gives neither the hook's required path, .github/actions/deploy/action.yml, nor what its build invocation must produce, ${RUNNER_TEMP}/bundle/releases/<id>/ and bundle/current, both of which the task hard-asserts. Naming only the inputs still leaves a hook that fails.

Section 6, the library row

  • It names a trigger its own shape does not carry. "S9 on a scheduled re-run skips release-create and the asset-delete". Section 3 and D4.1 give the weekly schedule to Docker alone, the library shape carries no Docker target, and the section's own reading rule takes triggers from the publisher's on: block rather than from the type. A push re-run is the S9 path this example reaches.
  • It cites a stub a carrying repository cannot locate. "as D1.2 and the hub's release-with-smoke stub both have it" names no path, and that stub lives only inline in the hub's docs/reusable-workflows.md, which records that no catalog snippet carries it yet. D1.2 alone already supports the rule.

Section 4, Behavioral Contract

  • D9.1's "sole exception" omits local-path calls. "Every action SHA-pinned with a version comment (sole exception: the documented lagging-tag tool)." A local uses: ./.github/workflows/validate-task.yml or ./.github/actions/docker-prepare cannot take a SHA pin, and the hub's own workflows carry many, so read literally the item marks them defects. GOVERNANCE.md "Workflow YAML Conventions", which D9.1 points to, has the same gap.
  • D4.1 names plan the first job, which the hub's own publisher contradicts. "A first plan job (publish-plan-task.yml) decides once and every job gates on it". .github/workflows/publish-release.yml runs assert-dispatch-ref first with plan needing it, and its own comment calls plan redundant with that job in practice, while catalog/snippets/workflows/publish-release.yml does start with plan. An auditor reading the output literally fails the hub's publisher.

Activity

  1. ptr727 commented on Sep 11, 2026

    @ptr727
    OwnerAuthor

    A second whole-unit round over the same sections, after the ordering claim was dropped, found these further statements in text that change did not touch.

    Section 6

    • The eda row contradicts itself on whether it has a build leaf. "Adds a file target: distribution is a GitHub release data zip that a local EDA install pulls, supplied by the repo's own release task", and then "such a repo has no leaf for S1 to smoke-build", with a test line naming S2, S3 and S7 but not S1, while the homeassistant row it points to says "S1 smoke-builds the zip". A reader cannot tell whether an eda repo carries the build-target construct that decides whether S1 and S4 apply, and nothing named uploads the release-asset-* zip S7 attaches. The same sentence says generation "and its version injection are deterministic from the design inputs", where the version comes from NBGV per section 3 "Versioning" and D3.3.
    • The docker row's test line undercounts the develop leg's tags. "Non-default pushes the develop tag (amd64 only)." .github/actions/docker-prepare-default/action.yml tags the develop leg with both develop and the SemVer2 version, as the build-docker-task.yml header says every image carries its moving tag plus a version tag, so a trace built from this row predicts one tag where the leaf pushes two.

    Section 4

    • D6.3 requires a suffix where D6.1 places the branch mid-name. "Output: artifact names are branch-suffixed so a branch's artifacts do not collide with another branch's." D6.1's required release-asset-<branch>-<target>, which the NuGet and dotnet-publish default leaves emit, carries the branch in the middle, so read literally D6.3 flags D6.1's own name. The property that matters is that the name carries the branch.
    • D6.2 forbids the only branch source a push-triggered publisher has. "Output: branch-derived config reads inputs.branch, never github.ref_name." A top-level publisher started by push has no inputs.branch, and catalog/snippets/workflows/publish-release.yml and the publish-pypi stub in docs/reusable-workflows.md read github.ref_name for the branch they pass and the artifact they download and delete. The rule reads as scoped to called workflows without saying so.
    • D9.3 does not say whether a one-line run: is a block. "Bash run: blocks start set -Eeuo pipefail." The hub's workflows and actions carry single-line run: steps without it, such as run: uv sync --all-groups --frozen, so either they break D9.3 or the rule should say one-line steps are exempt.
    • D1.1 states one filter shape as the general case. "A filter written the other way round, as a negation of the paths that must not build, marks a docs-only change as a target change: it satisfies D1.4 and violates this item." That holds for a negation of the workflow path alone, the stub's '!.github/workflows/**'. Under dorny/paths-filter's default some mode a negation of both docs and .github/workflows/** also marks a workflow-only change, violating D1.4 instead, and under every mode a negation listing docs does not mark a docs-only change at all. The unit names neither the tool nor the mode, so a reader cannot check the claim.
    • D7.3 gives an output the input's reason. "A job or step output is a string for the same reason and takes the same == 'true'". The reason before it is that a composite action's inputs are strings whatever the caller passed, while outputs are strings because GitHub stores them as strings. The instruction is right and the stated cause is not.
  2. ptr727 commented on Sep 11, 2026

    @ptr727
    OwnerAuthor

    A third whole-unit round over section 4, after D3.4's Prevents clause was corrected, found these further statements in text that change did not touch.

    • D1.6 binds only the Python leg to fail on an absent report, for a reason that holds for both. "The Python leg fails its test step when no report was written, since nothing downstream of it can tell an absent report from an uploaded one." The C# leg's Codecov upload is best-effort too, and .github/workflows/validate-task.yml's rename loop skips a missing report with [ -e "$report" ] || continue, so a test project whose coverage extension is absent or below the version floor writes no report and the step passes. Either the requirement covers both legs or the reason should be one that only holds for Python.
    • D1.6's threshold override binds to the wrong noun. "...excluding intentionally-untested, non-shipped code (an example or benchmark project) from the denominator via ignore, which a repo may override where its quality bar requires a threshold." Read literally, "which" is the ignore exclusion, while the setting that relates to a threshold is the earlier informational: true on the project and patch statuses, so the sentence never says a repo may turn informational off to set one.
    • D4.5's "nothing publishes" cannot hold for a multi-image or build-base Docker repo. "Input: a real publish where one enabled build fails. Output: nothing publishes." .github/workflows/build-docker-task.yml pushes inside each build-docker matrix leg through docker/build-push-action, and docker-build-base pushes the shared base before any product leg builds, with no job that pushes only after every leg succeeds. One image leg can fail after a sibling leg or the base has reached the registry, and github-release then skips on its needs:, leaving pushed images with no tag or release, the partial publish D4.5's Prevents line rules out. fail-fast cancels only legs still running. A single-image repo without build-base is unaffected.
  3. ptr727 commented on Sep 11, 2026

    @ptr727
    OwnerAuthor

    One more section 4 statement the tree contradicts, found by whole-unit review of .agents/skills/workflow-ci-contract/references/d-guarantees.md (the generated include of section 4) while settling #1522, and not introduced there. It sits beside #1369 item 9, which covers the same item's Prevents clause rather than its heading.

    D5.2's heading and opening sentence contradict its own package-job rule. "Gate the delete to the condition that made the artifact redundant" and "the delete runs exactly when the consumption it follows happened". For a package publish job the item then gates the delete on the download having succeeded rather than on the push, as !cancelled() && steps.<download-step-id>.outcome == 'success', which the catalog publisher stub ships. On a failed push that delete runs although the consumption it follows, the push, never happened, which the item itself concedes a few sentences later ("costs the run its Re-run failed jobs route"). A reader held to the heading flags the shipped stub as non-conforming, and one who writes the delete to match the heading gates it on the push and strands the artifact the Prevents clause rules out.

  4. ptr727 commented on Sep 24, 2026

    @ptr727
    OwnerAuthor

    One more section 4 cross-reference the tree contradicts, found while carrying hub 03ed883 into ptr727/aiopurpleair.

    D4.1 cites D7.3 for a rule D7.3 does not state. D4.1 (as reworded in #1673) says "A gate on an output takes the compared form D7.3 requires rather than a bare truthiness test." D7.3 is "A github.event.inputs boolean is compared as a string" and speaks only of github.event.inputs.<name> and the inputs context. It says nothing about job outputs such as needs.plan.outputs.publish, so a reader following the pointer finds no rule about outputs at all.

    • Expected: D4.1 either states the output rule itself (a job output is always a string, so it is compared against 'true'), or D7.3 is widened to cover job outputs and D4.1 keeps the pointer.
    • Actual: the pointer resolves to an inputs-only rule. The same text is carried in .github/skills/workflow-ci-contract/references/d-guarantees.md.
    • Evidence: hub main at 03ed883, WORKFLOW.md D4.1 and D7.3. Audit run stamp audit run 2026-09-24T22:35:30Z | hub 03ed883.

    The downstream copy (an intent-fidelity WORKFLOW.md) states the output comparison directly instead of citing D7.3, as a local adaptation.

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