Skip to content

task: what the first two rollouts found: the gate sees the include, no release older than the command, scopes, a dry release - #137

Merged
aledbf merged 5 commits into
mainfrom
task/rollout-fixes
Nov 22, 2026
Merged

aledbf merged 5 commits into
mainfrom
task/rollout-fixes

Conversation

@aledbf

@aledbf aledbf commented Nov 22, 2026

Copy link
Copy Markdown
Member

Why

The maintenance tasks every spin-stack repository has must mean the same thing everywhere, with nothing left to a comment or a prompt's wording. The first two repositories to take the shared tasks (shipset in spin-stack/ship-it#42, brand in spin-stack/brand#59) found defects here, and this fixes them so the rollout PRs can be clean.

What changed

One commit per fix.

  • versions/gate sees the include. A repository whose Taskfile has an includes entry with '{{.GO_TOOLS_TASKS}}' as its taskfile reads the pins the common tasks read. The include is found by parsing the Taskfile as YAML, so a comment that spells the read counts for nothing. What the tasks read is derived from tasks.yml itself, a task at a time, with the patterns the gate already reads files with. A repository that includes the tasks and lacks a pin fails with Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads actionlint: versions: there is no actionlint in versions.yaml. To be linked into another repository's test the file has to be embedded by an importable package, so cmd/task/tasks.yml and its tests moved to internal/tasks. The release still carries it as tasks.yml.
  • go tool task never runs a release from before its own. cmd/task reads the module version it was compiled from (v0.20261122.4), which is a release's tag (v20261122.04), and hands it to toolcache.Latest as a floor. A stamp that names an earlier release is asked again, however fresh. When the release to be had still has no tasks.yml (GitHub unreachable, or a build of no release), go tool task prints one line before Task's No Taskfile found, with the directory, what fails and when to run it again, and runs Task all the same.
  • consumers takes scopes, a list of whole npm scopes. scope = "@fontsource" matched one scope exactly and lost @fontsource-variable/inter ^5.3.0 is no package brand pins. A list reads as what is held and cannot match by accident. A prefix would also hold @fontsourcery/x, which an existing test says is nobody's. An entry that is not a scope is refused at load, and so is the old scope field.
  • release RELEASE_DRY=1. The task runs the fetch, proven, the name and a listing of RELEASE_FILES, prints RELEASE_DRY: <sha> would be released to <repo> as <name>, and is not, and stops before gh release create.
  • Docs. tasks.md gains: which release the tasks are from and what that means for a repository, that go get moves shared modules and needs go mod tidy, the tasks that are listed everywhere and refuse (exit 206, 201), the dry release, and a table of every failure message with what to do. consumers.md says the report's words are packages/package where brand's said fonts/face.

bump does not refuse VERSION=, by observation. Under the pinned Task 3.54.0, with a probe task in an included file printing {{.VERSION}} and $VERSION:

Taskfile with a root VERSION: root-value
  task probe              tmpl VERSION=[root-value]   env VERSION=[<unset>]
  task probe VERSION=v9   tmpl VERSION=[root-value]   env VERSION=[<unset>]
Taskfile with no root VERSION
  task probe              tmpl VERSION=[]             env VERSION=[<unset>]
  task probe VERSION=v9   tmpl VERSION=[v9]           env VERSION=[<unset>]
  VERSION=fromenv task probe   tmpl VERSION=[fromenv] env VERSION=[fromenv]

In spin the two calls are indistinguishable, so a refusal would refuse every bump there and catch no stale caller. Without a root var it would also refuse a shell that merely exports VERSION. The fix is left out and the page says so.

Scope

Not here: the larger gate of #135 item 3 (a common name defined by the repository, a go-tools requirement too old). No change to what versions, bump, lint:workflows and consumers run, beyond scopes.

Tradeoffs

  • A version floor, not a list of files the release must carry. Asking again when tasks.yml is missing would fix this file and need a new entry for the next one. The floor covers any file or command a later release adds, provided a repository requires that release in the commit that uses it. The cost: a go tool task built from no release (a checkout, a pseudo-version) has no floor and keeps the ten-minute window. It gets the warning line.
  • The gate knows the tasks of go.mod's go-tools, and the tasks run are the latest release's. If a release makes a task read a new pin, the task says so when run, and the gate says so after go.mod moves.
  • excludes on the include is not read. A repository that excludes lint:workflows is still asked for actionlint. None does, and item 3's gate is where that belongs.
  • scopes replaces scope with no bridge. One open PR uses the old field.
  • The warning prints on every run on a machine that is offline with a cache older than v20261122.04 and a new go.mod, including in a repository that does not include the tasks.
  • RELEASE_DRY is also read from the environment, as every Task var is: a shell that exports it gets a dry release, which prints that it released nothing.

Blast Radius

Merging releases this to every repository within minutes: the archive (commands and tasks.yml) at each repository's next go tool task, cmd/task and versions/gate only when a repository moves its go.mod.

A repository that has not taken the shared tasks:

  • At merge: nothing it runs changes. consumers on its PATH reads scopes, and no such repository has a consumers.toml read by it (brand's main still runs its own command).
  • When its go.mod moves to this release: go tool task asks GitHub once more when its cache names an older release, and its gate is unchanged, since it has no include.

A repository that has (ship-it#42 and brand#59, both open; go-tools itself, by path):

  • At merge: release accepts RELEASE_DRY=1. Without it the task runs the same commands as before, which the existing release tests hold.
  • brand#59: go tool task consumers refuses its table (scope is no field of the table) until it says scopes = ["@fontsource", "@fontsource-variable"], and its test reads the table with the consumers package from go.mod, so the table change and the go.mod move are one commit.
  • ship-it#42: once go.mod requires this release, the comment that spells versions version actionlint can go.

cmd/task/tasks.yml is internal/tasks/tasks.yml in this repository. task release:build copies it from there, and the four archives built locally from this branch each carry tasks.yml, byte for byte the tree's.

Verification

  • task test: exit 0, coverage 85.93% of what CI runs.
  • task lint: exit 0.
  • task mutate BASE=origin/main: 92 planned, 66 refused, 0 survived, 26 did not build. Nothing to answer.
  • task release:build: exit 0, tasks.yml in all four archives.
  • The gate on ship-it#42's head with the comment deleted, in a scratch clone: versions.yaml pins actionlint, and nothing reads it with go-tools v0.20261122.4, ok with this branch, and the lint:workflows reads actionlint failure above once the actionlint entry is removed.
  • Build info: go version -m of the go tool task a scratch module built with go-tools v0.20261122.4 required says mod github.com/spin-stack/go-tools v0.20261122.4.
  • TestAReleaseFromBeforeThisCommandIsNotRunForBeingFresh: a cache whose stamp is fresh and whose archive has no tasks.yml.
  • Task's refusals and exit codes on the page were read from the pinned Task against this branch's tasks.yml.
  • Not run: task site. The pages workflow builds it.

Part of #135

🤖 Generated with Claude Code

aledbf and others added 5 commits November 22, 2026 13:24
…pins they read

The first repository to take the common tasks (spin-stack/ship-it#42) deleted its
own lint:workflows and failed its gate: "versions.yaml pins actionlint, and nothing
reads it". The read is in tasks.yml, which is in go-tools' release and in no file
of the repository. It passed by a comment that spells the read, which is a text
match and not a read.

The gate now knows the include: a Taskfile whose `includes` has an entry with
'{{.GO_TOOLS_TASKS}}' as its taskfile - parsed as YAML, so a comment or a page that
shows the include is none. Each entry a common task reads is then read, and a
repository without one fails with the task that wants it:

    Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads
    actionlint: versions: there is no actionlint in versions.yaml

What the tasks read is not a list: it is found in tasks.yml itself, a task at a
time, with the patterns the gate reads every file with. A test of another
repository has to link that file, and a file beside package main links into
nothing, so tasks.yml and its tests move to internal/tasks, which embeds it. The
release still carries it as tasks.yml and nothing a repository writes changes.

The gate is compiled from go.mod's go-tools and the tasks are the latest release's:
a repository gets this when it requires the release that carries it.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
toolcache takes the name of the latest release as true for ten minutes. A cache
stamped seconds before v20261122.04 came out went on unpacking v20261122.03, which
has no tasks.yml, and in a repository that had just taken the include every task,
--list too, failed with Task's `No Taskfile found at ".../tasks.yml"` (exit 100)
until the stamp aged (spin-stack/ship-it#42).

go tool task is compiled from the module version a go.mod requires, and a module
version is a release's tag (v0.20261122.4 is v20261122.04). So the command is proof
that its own release exists: a recorded name before it is not the latest, however
fresh, and is asked again. That holds for what the next release adds as well - a
command, a second file - with no list here of what a release must carry; a
repository that takes something new requires its release in the same commit, which
the include already needed. A command of no release (a checkout's build, a
pseudo-version) and a machine that cannot ask go on with the release they have.

When that release has no tasks.yml, go tool task says so before Task does, with
the directory, what fails, and when to run it again. It runs Task all the same:
only a Taskfile that includes the file needs it.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
brand's own command held a consumer to every package whose name began with
"@fontsource". Moved here, the table's `scope` matched one scope exactly, and the
report lost the line that says the agent client installs the wrong Inter
(spin-stack/brand#59):

    @fontsource-variable/inter ^5.3.0 is no package brand pins

`scopes` is a list, and each entry a whole scope, the name before a package's
slash: brand writes ["@fontsource", "@fontsource-variable"]. A prefix would bring
the line back and also hold @fontsourcery/x, which a test here already says is
nobody's; a list says what is held and matches nothing by accident. An entry that
is not a scope ("@fontsource/", "fontsource") is refused when the table is read,
and so is `scope`, as any field the table does not know: a table that still says
it is not silently held to less.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…s nothing

brand took the common release task with a main that was proven and not yet
released, and the only way to try the task without cutting a release was to run
`proven release` and `release <sha>` by hand from the cache (spin-stack/brand#59).

RELEASE_DRY=1 runs the task up to the release: the fetch, proven, the name, and a
listing of RELEASE_FILES, so a glob that matches nothing is refused as gh would
refuse it. Then it prints the name and stops before `gh release create`. The var
is RELEASE_DRY and not DRY for the reason bump's is TO: a Taskfile's own var of
the same name answers before the command line's in an included task.

That same order is why bump does not refuse VERSION=, the spelling three
repositories had. Under Task 3.54.0, in a repository with a root VERSION, an
included task reads the root's value for `task bump` and for `task bump
VERSION=v9` alike, and the environment's VERSION where there is no root one. A
refusal would be every bump in spin and none of the stale callers there. The page
says so, and that the line bump prints names the version it pinned.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ach failure means

Every repository that includes the tasks lists all five, and the ones that do not
apply refuse: release with no gate (exit 206), consumers with no table (exit 201).
The page had two of the failures a person meets, `include cycle detected` and
`Found multiple tasks`; it has the others now, each with what happened and what to
do, as the pinned Task and the gate print them.

Part of #135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@aledbf
aledbf merged commit 63ed0d2 into main Nov 22, 2026
3 checks passed
@aledbf
aledbf deleted the task/rollout-fixes branch November 22, 2026 16:33
aledbf added a commit to spin-stack/brand that referenced this pull request Nov 22, 2026
…ed again

go-tools' reader takes `scopes`, a list of whole npm scopes
(spin-stack/go-tools#137), and refuses `scope`. With `@fontsource` alone the
report stopped saying, of the agent client, that `@fontsource-variable/inter
^5.3.0` is no package brand pins: that package is the wrong Inter the fork
comes with, and the reason the row is held to packages at all. Both scopes are
listed, and the report says every fact this repository's own command said.

go.mod requires go-tools v0.20261122.5 in the same commit: the test that holds
the table to the tree reads it with that module's consumers.Load, which is the
first to know `scopes`, and the tasks are the latest release's, which no
longer knows `scope`.

The Taskfile's comment names the shared file where go-tools has it.

Part of spin-stack/go-tools#135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf added a commit to spin-stack/website that referenced this pull request Nov 22, 2026
go-tools v0.20261122.5 (spin-stack/go-tools#137) taught versions/gate that a
Taskfile including go-tools' tasks reads the pins those tasks read, so
versions.yaml's actionlint counts as read through the include. The sentence
that spelled `versions version actionlint` beside it existed only for the gate
to match, and is deleted. What the comment says of bump and sources:bump stays.

With the pin removed tools/sources' gate test now fails naming the task:
`Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads
actionlint: versions: there is no actionlint in versions.yaml`.

Part of spin-stack/go-tools#135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf added a commit to spin-stack/brand that referenced this pull request Nov 22, 2026
…ed again

go-tools' reader takes `scopes`, a list of whole npm scopes
(spin-stack/go-tools#137), and refuses `scope`. With `@fontsource` alone the
report stopped saying, of the agent client, that `@fontsource-variable/inter
^5.3.0` is no package brand pins: that package is the wrong Inter the fork
comes with, and the reason the row is held to packages at all. Both scopes are
listed, and the report says every fact this repository's own command said.

go.mod requires go-tools v0.20261122.5 in the same commit: the test that holds
the table to the tree reads it with that module's consumers.Load, which is the
first to know `scopes`, and the tasks are the latest release's, which no
longer knows `scope`.

The Taskfile's comment names the shared file where go-tools has it.

Part of spin-stack/go-tools#135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
aledbf added a commit to spin-stack/website that referenced this pull request Nov 22, 2026
go-tools v0.20261122.5 (spin-stack/go-tools#137) taught versions/gate that a
Taskfile including go-tools' tasks reads the pins those tasks read, so
versions.yaml's actionlint counts as read through the include. The sentence
that spelled `versions version actionlint` beside it existed only for the gate
to match, and is deleted. What the comment says of bump and sources:bump stays.

With the pin removed tools/sources' gate test now fails naming the task:
`Taskfile.yml includes go-tools' tasks, and its task lint:workflows reads
actionlint: versions: there is no actionlint in versions.yaml`.

Part of spin-stack/go-tools#135

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant