Repository navigation
Description
Why
The same maintenance tasks are written again in each repository, each time a little differently, and what they should be is carried by whoever writes the prompt that day. Surveyed on 2026-11-22 across fourteen spin-stack repositories:
- Eight have a
versions.yaml. Three haveversionsandbumptasks (go-tools, shipset, spin). brand, website, spin-machine, spin-ami and devcontainer-cli pin in the file and have no task that says what is behind. - "What CI runs" is
checkin brand, blog, runbooks and ci,lintplustestin the Go repositories, andgatein website and spin-ami. - A release is
release:build,release:name,release:publishin go-tools, and since consumers: the table of who draws Spinbox, a report of which brand each is on, and a release to pin brand#54 areleasetask in brand with its own copy of the naming rule (v<YYYYMMDD>.<NN>) incmd/release, becauseinternal/release's name is not exported. - brand#54 also added
consumers.tomlandcmd/consumers(who copies this repository's outputs, and which commit each is on). go-tools has the same question about every repository, and shipset answers part of it.
go-tools already holds the commands (versions, proven, taskgate, sfw) and go tool task already puts them on every Taskfile's PATH. What is not shared is the task that calls them: its name, its arguments and its description are retyped per repository.
A skill does not fix this. A skill is instructions an agent reads, so it is the same prompt in a more permanent place, and two repositories can still differ after it ran. The rule belongs where a check can fail.
What
- The common tasks ship with
go tool task. One Taskfile in go-tools with the tasks every repository has under the same names and contracts:versions(what is behind),bump,release(the name, the green-main refusal throughproven, the tag),lint:workflows, andconsumerswhere a repository has aconsumers.toml.cmd/taskalready unpacks go-tools' release into the cache: it makes that Taskfile available to a repository's own, which includes it. To find out first: which of Task's include forms (a path from an environment variable the wrapper sets, a flattened include) works at the pinned Task version without a second file in each repository. - A repository states only what differs, in one place it already has (
versions.yaml, or a small block in its Taskfile'svars): its gate workflow and job, whether it releases, where its consumers table is. - A gate.
taskgate(or a sibling) fails a repository that lacks a common task, defines one of those names itself, or has aversions.yamland noversionstask. One name for "what CI runs" is decided here and the gate holds it. - The commands that were copied move here. brand's
cmd/releaseandcmd/consumersbecome go-tools commands (the release name exported, the consumers report reading any repository's table), and brand keeps the table and deletes the code. - Then a skill, a thin one.
versions-reviewis the model: it runs the report in every checkout and proposes the changes at once. Extended, or a sibling beside it, to run the gate of item 3 across the repositories and open one PR each. The skill decides nothing the gate does not already say.
Order
Item 1's question, then 1 and 4 together in go-tools with brand as the first repository to take them (it has all four tasks today), then the gate, then the rollout with the skill.
Done when
go tool task versions,bumpandreleasemean the same thing, with the same flags, in every repository that has aversions.yamlor cuts releases, and no repository's Taskfile defines them.- A repository that drifts fails its own lint.
Activity
aledbf commentedon Nov 22, 2026
Item 1's question is answered and items 1 and 4 are up as #136. This comment is what the rollout needs, so it is mechanical.
The mechanism
A flattened include of a path
go tool taskputs in the environment. Run under Task 3.54.0: the tasks keep their names, show in--listwith their descriptions, run with the repository'scwdandROOT_DIRfrom any subdirectory, and a repository that defines one of the names is refused by Task (Found multiple tasks (versions) included by "common", exit 203). Two-tflags, a root Taskfile in the cache and a remote include each lost; #136's Tradeoffs has what each printed.Order
release.ymlreleases it on its own once CI passes on main. This is the first run of the changedrelease.yml(it publishes withtask releasenow), so somebody should look at that run. If it fails nothing is published or tagged, and every repository stays on the previous release.tasks.yml,releaseandconsumers, and its module versionv0.<YYYYMMDD>.<N>carries thecmd/taskthat setsGO_TOOLS_TASKS. Both are needed: the archive reaches every repository at its next run, butcmd/taskis compiled from each repository's owngo.mod.go get github.com/spin-stack/go-tools@latest, or take the Dependabot PR into the same branch), add the include, delete the repository's own definitions. The three must be one commit: the include without the newcmd/taskisinclude cycle detected, and the include beside the old definitions isFound multiple tasks.No repository's release is needed for any of this. brand's next release is simply the first one cut with the shared task.
brand
cmd/release/whole andcmd/consumers/main.go.cmd/consumers/main_test.gokeeps one test,TestTheTableIsOfThisRepository, reading the table withconsumers.Load("../../consumers.toml")fromgithub.com/spin-stack/go-tools/consumersand ranging over.Consumers. The rest of that file moved to go-tools. It can live in any package of brand;cmd/paletteis the natural one oncecmd/consumersholds nothing else.go.mod: go-tools at the new module version, and a direct requirement now (the test imports it).github.com/BurntSushi/tomlleaves the direct requirements.fontsline readspackages, and-brand <dir>is-dir <dir>.lint:workflowstocheckis optional for the rollout and is what the gate will ask for.Behaviour that changes for brand:
task releasealso sets--title, and resolves the repository fromgh repo viewwhere it was a literal. Nothing else.shipset
vars.VERSIONSstays:lintstill reads{{.VERSIONS}} ref golangci-lint.go.mod: go-tools fromv0.20261120.2to the new module version.GATE_*: shipset has no release tag, sotask releaseanswersmissing required variables: GATE_WORKFLOW, GATE_JOBS.bumptakesTO=where it tookVERSION=. Nothing in the repository calls it withVERSION=(grepped at main).spin
lintinTaskfile.ymlcallslint:stepsbesidelint:workflows. The namestepsis a suggestion; the two commands are spin's own and must not be lost with the task.tools:actionlintintaskfiles/tools.yml,ACTIONLINT_VERSIONinTaskfile.yml, andtools:actionlintin thetoolsdeps go: the common task runs actionlint withgo run ...@<pin>, from the sameversions.yamlentry (v1.7.12, kindmodule, already there).go.mod: go-tools fromv0.20261119.2to the new module version.GATE_*. spin releases through itsrelease:*namespace, which coexists with a task namedrelease(checked: a namespacereleaseand a flattenedreleaselist side by side). So in spintask releaseexists and refuses for want of a gate. Whether spin's release moves onto the common task is a separate decision, and a bigger one: it builds, signs and scans before it tags.refreshandgit:appstay spin's.What this work showed about the issue's text
versions.yaml, or a small block in its Taskfile'svars)": neither.versions.yamlis a list of pins every reader parses, and Task gives a Taskfile's root var precedence over the command line inside an included task (spin'sVERSIONcomment says the same). The parameters are the include's ownvars.bump's version argument isTO=everywhere, which is spin's spelling, not go-tools' or shipset's.releaseandconsumers, and noversions,bumporlint:workflows. It also pins noactionlint, so takinglint:workflowsmeans a new pin there.excludes: [versions]on the include lets a repository replace a task quietly. The gate has to read where each task is defined (task --list-all --jsongiveslocation.taskfile), not Task's exit status.internal/releasestays internal;release <commit>is what a Taskfile calls.check/lint+test/gate" naming is untouched. That name is the gate PR's to decide.consumers: which commit of a repository each place that copies from i…
task: the tasks every repository has are written once, and ship with …
aledbf commentedon Nov 22, 2026
Rollout findings, 1: shipset (spin-stack/ship-it#42, open, green, held)
The plan's diff for shipset (include, three deletions, go.mod) was right about the repository and still left
task testred. What the first real use found:Two defects in go-tools
versions/gatedoes not see the include.TestVersionsYAMLIsTheOnlyPinfails withversions.yaml pins actionlint, and nothing reads it: the onlyversions version actionlintline was in the deletedlint:workflows, and the reader now lives intasks.yml, outside the repository. The PR passes only because a comment beside the include spells the read. That is a text match satisfying a gate and must go. The gate should count the pins the shared tasks read as used when a Taskfile includes{{.GO_TOOLS_TASKS}}, and require theactionlintentry then. Every repository with this gate and anactionlintpin hits it.toolcachetrustslatestfor ten minutes. With a stamp from just before the release,cmd/taskunpacked the previous archive, which has notasks.yml, and every task,--listincluded, failed withNo Taskfile found at .../tasks.yml(exit 100).cmd/taskshould ask for the latest release again when the unpacked one has notasks.yml.Missing from the docs
go.mod(which pins onlycmd/task): a later release changes these tasks in a repository with no commit there. Said in one clause in the plan, not stated as a consequence on the tasks page.releaseandconsumersappear in--listin a repository with neither a gate nor a table, and refuse (exit 206, exit 201).include cycle detectedandFound multiple tasksare documented.What should be a check
bumprefusesVERSION=on the command line with a message namingTO=, so an old caller fails loudly.location.taskfileis notGO_TOOLS_TASKS, and a go-tools requirement older than the version that sets it.Small things that cost time
gh issue view --commentsfails here with a GraphQL deprecation error (repository.issue.projectCards);gh api repos/<owner>/<repo>/issues/<n>/commentsworks.ship-it; the local directory isshipset. Readgit remote -vbeforegh -R.aledbf commentedon Nov 22, 2026
Rollout findings, 2: brand (spin-stack/brand#59, open, green, held)
Twelve files, +100 −808: brand's
cmd/releaseandcmd/consumersare gone and its five common tasks come from here. Held because theconsumersreport lost a fact in the move.Defects in go-tools
consumersscope is an exact match. brand's command held packages by the prefix@fontsource; this one matchesscope + "/". The report no longer says@fontsource-variable/inter ^5.3.0 is no package brand pinsfor the agent client, the line that says the fork installs the wrong Inter.No Taskfile found at .../tasks.yml), same cause. Two repositories in a row: it is the first thing a person meets.releasehas no dry mode. Proving it meant runningproven releaseandrelease <sha>by hand from a cache directory named by a sha256, because the plain task would have cutv20261122.02.The plan was wrong or silent about
go mod tidyaftergo get: the moved test made go-tools a direct requirement andgo.yaml.in/yaml/v3indirect, and only tidy writes that.BurntSushi/tomlstays direct in brand (the plan said it leaves) and moved to v1.6.0 because go-tools requires it.actionlintpin;lint:workflowsneeds one (kind: module).GATE_JOBSnames a job by the start of its display name (Gate), not its key (build).consumers.toml's header, a sentence independabot.ymlabout go-tools being an indirect requirement, the README. None was in the planned diff.lint:workflowshad to be added to the task CI runs (check).fonts/facetopackages/package).What should be a check (beyond shipset's)
actionlintpin.lint:workflowsnot reachable from the task a workflow runs.GATE_JOBSnaming a jobGATE_WORKFLOWdoes not have: todayproven -ranfinds it only at release time.cmd/<name>named in a comment, TOML or YAML that does not exist.How to test
releasewithout releasing (until the dry mode exists):SHA=<a commit already released>gives the refusalis released already, as <name>; never the plain task on a proven, unreleased main.aledbf commentedon Nov 22, 2026
Rollout findings, 3: the blog (aledbf/blog#7, open, green), a repository that had never used go-tools
Astro and pnpm, no Go, every task in Docker. It now runs
go tool taskwith the include, the website's arrangement unchanged:go tool taskon the host, each task's work in Docker, no Go in the image. The production build is byte-identical before and after (101 files,diff -rempty).The stale window, a third time. Same message, same ten minutes. Three repositories of three.
What
start.mdandtasks.mddo not say, for a repository with no Gogo.modat all:go mod init, what to name the module, that it exists only for thetoolline.taskpin.go tool task bumpcannot run untiltaskis pinned, and the pin's hashes are whatbumpcomputes. What worked: the entry with placeholder hashes, thengo run github.com/spin-stack/go-tools/cmd/versions@<module version> bump -file versions.yaml task <version>.actionlint(kindmodule) must be pinned beforelint:workflowsruns.toolchainline:go get -toolleavesgo 1.27.0and no toolchain, andsetup-gowithgo-version-filethen installs 1.27.0.go get toolchain@go<newest>fixes it.actions/setup-gowithgo-version-file: go.modin place ofgo-task/setup-task,GITHUB_TOKENat workflow level, every stepgo tool task X.Moving the callers is most of the diff. Every
task Xa person would type becamego tool task X: README, AGENTS.md, ROADMAP.md, comments in the Dockerfile and a script, and one string inside a built page. Found by grep, not by any check. Plaintasknow stops atinclude cycle detected, and the README says so.lint:workflowsfound something on its first run: bothuses:lines of the blog's workflow lacked the version comment. It would have failed on main.What should be a check
taskpin with no include, or the include with notaskpin.run:that starts with baretask, or ago-task/setup-taskstep (taskgate).`task X`where X is a task (refsalready reads AGENTS.md against the task list).toolline with notoolchainline.lint:workflows.Cost, one sample: the PR's CI run took 2 min 21 s against 1 min 20 s before (cold Go cache, compiling
cmd/taskand actionlint).aledbf commentedon Nov 22, 2026
Rollout findings, 4: website (spin-stack/website#140, open, green, held), the repository nobody planned for
It defined none of the five names, so the diff is small: the include, the
actionlintpin, go-tools from a two-week-old pseudo-version tov0.20261122.4, andlint:workflowsingate. The findings are about what it already had.A repository with its own bump, stricter than the shared one.
sources:bump(itstools/sources) and the sharedbumprewrite the sameversions.yamlentries with the same function, and agree today on every entry (measured). Butsources:bumpdoes four thingsbump NAME=spindoes not:versions bump spin v20261024.01moved it back, exit 0);After a plain
bumpof a source,reference:checkfails untiltask referenceruns, and nothing inbump's output says so. Sosources:bumpstays, and the only thing stopping someone from runningbump NAME=spinhere is two sentences of prose. The shared file has no way to say "this entry moves with another task". This is a design question for go-tools, not a bug.Defects in go-tools
versions checkdoes not count an entry it could not read. WithoutGITHUB_TOKEN, the private upstream's row isreleases/latest answered 404 Not Foundand the summary says1 behindwhere there are 2. A missing token can look like "nothing behind".versionstask sets no token;releasedoes. A repository with a private upstream needsGITHUB_TOKEN=$(gh auth token)by hand.versions"exits 1 when any is". Through Task it exits 201.versions/gateand the include (second repository:versions.yaml pins actionlint, and nothing reads it, passed here too only by a comment that spells the read).Two copies of the same logic at two versions.
tools/sourceslinks go-tools'upstreampackage at the version ingo.mod; the shared tasks run theversionsbinary from the latest release. Here they were two weeks apart. Nothing holdsgo.mod's go-tools near the release: Dependabot is configured for it weekly and has never opened a PR for go-tools in this repository (cause not investigated).For whoever does the next one: read what a pull request run publishes before pushing. Here every same-repository PR gets a public preview.
versions/gate: a repository that includes the common tasks reads the …
task: the release go tool task runs is never one from before its own
consumers: the table lists the npm scopes it holds, each one whole
task: release RELEASE_DRY=1 refuses what a release would, and release…
site: the common tasks page says which tasks refuse where, and what e…
consumers: the table lists both scopes, and the variable Inter is nam…
tasks: the include's comment stops naming a read for the gate
tasks: versions, bump, release, lint:workflows and consumers are go-t…
10 remaining items
site: what seven repositories had to find out to take the common tasks
versions: tests for what these changes put in the mutation gate's reach
task: versions, bump, release, lint:workflows and consumers are go-to…
tasks: versions, bump and lint:workflows are go-tools', taken by one …
tasks: the include's comment stops naming a read for the gate
tasks: the include states how brand is released
aledbf commentedon Nov 22, 2026
Rollout findings, 8: v20261122.06 (#138), taken first by brand (spin-stack/brand#60, merged)
RELEASEas a map holds. In brand,go tool task release RELEASE_DRY=1askedpages.ymland printedwould be released to spin-stack/brand as v20261122.02, and is not, exit 0. WithRELEASEandRELEASE_PROOFforged on the command line it still askedpages.ymland gave the same answer.The version floor does not hold in the first two minutes after a release. Measured, 49 s to about 110 s after v20261122.06 was published (17:45:25Z), in brand with
cmd/taskbuilt from module v0.20261122.6 (go version -mconfirms it):go tool task release RELEASE_DRY=1answeredmissing required variables: GATE_WORKFLOW, GATE_JOBS: the previous release's task.latestsaidv20261122.05, and its time moved on every run: the floor did make it ask again each time.XDG_CACHE_HOME) at 17:47:08Z it still unpackedv20261122.05, whilecurl -I https://github.com/spin-stack/go-tools/releases/latestin the same minute redirected to.06. At 17:47:35Z the same empty-cache run took.06./releases/latestredirect answered the old release to some requests for about two minutes after the new one was published, andlatestTagrecords and serves whatever it is told, even a release beforesince. The floor's rule ("never one from before its own") is not enforced on the answer.sinceis not an answer. Ask again a few times, and failing that say that the release this command is of is not visible yet, and stop, instead of running tasks from before it. Not fixed.This is the same class as report 5: a repository's first minutes on a new go-tools are its least reliable, and the error a person sees is about a variable, not about a release.
aledbf commentedon Nov 22, 2026
Rollout findings, 9: the third round in the repositories that do not release (ship-it#44 merged; website#141 and aledbf/blog#8 open, green, one commit each)
ship-it#42, website#140 and blog#7 had been merged before this round started, so each got a new one-commit PR that moves go-tools to v0.20261122.6 and states
RELEASE: {none: ...}.The statement holds. In all three,
release RELEASE_DRY=1refuses withthis repository does not release. Its Taskfile says why (RELEASE's none): <the sentence>, exit 201, and so does every forgery tried:ci.yml/Gate(ship-it really has that workflow and job), the site's realpages.yml/Gate, the blog's realdeploy.yml/deploy, on the command line and in the environment.Again, a release changed a repository with no commit. On each untouched head,
release RELEASE_DRY=1already answeredstates no RELEASE. And in the website,versions' last line advisedgo tool task bump NAME=<name>for exactly the two rows that must not be moved that way.The
bump:field works where the repository's own command is built on the library. website's three source entries saybump: go tool task sources:bump.go tool task bump NAME=spinis refused and names the command, withBACK=1too;versionsshows the rows as moved by it;actionlintstill bumps. The site's owntools/sourcescallsupstream.Checkandupstream.Bump, and the refusal is incmd/versions, so its own bump is not refused (run against a copy: it moved two pins and kept the field).Docs
tasks.mdcontradicts itself on spin-ami: "cuts no release at all", then listed among those that "release that way, each by a workflow of its own".noneagainstelsewherewhen a workflow deploys main on every push. A release is defined only implicitly, as a tag.noneis printed after(RELEASE's none):: a sentence with its own colon or a capital reads badly. Not said.start.md.release RELEASE_DRY=1is recommended only where the task releases; it was the one command that showed the new release's effect in a repository that does not.bump:refusal, andversions.mdnever mentions the field.reference.mdsaysgo tool taskreadsversions.yamlwith the go-toolsgo.modrequires;tasks.mdsays the tasks are the latest release's. Both are true and nothing reconciles them.versionsrow runs its notes together:behind moved by `...` main is now bc30....For whoever runs a round: read the PR's state first. All three were merged, and the brief assumed they were open. And the blog is a fifth name mismatch: its remote says
spin-stack/blog, GitHub resolves it toaledbf/blog.task: the include states that release.yml releases this repository
build(tasks): the include states that release.yml releases this repos…
aledbf commentedon Nov 22, 2026
Rollout findings, 10: the third round in the repositories that release by their own workflow (machine#530, ami#213, devcontainer-cli#86, all merged)
The earlier PRs (#529, #212, #85) had been merged before this round, so each got a new one-commit PR on v0.20261122.6 that states
RELEASE: {elsewhere: release.yml}.The hole is closed. In all three, plain
release RELEASE_DRY=1, the forgery that used to work (GATE_WORKFLOW=ci.yml GATE_JOBS=Gate, and the new names) on the command line, and the same in the environment, all answerthis repository releases, but not with this task: release.yml does, exit 201. Release and tag lists byte-identical before and after.qemu's11.2.0-rc0is read now.bump:cannot be added where the repository's own command shells out toversions. Measured in spin-machine:spin-machine-dev bump <entry>runsgo tool versions bump, and with the field planted on an entry the repository's own command is refused by its own field (<entry> is moved by `spin-machine-dev bump` ... and not by this command, exit 1). Itsrefresh kernel|systemd|opensshrunsgo tool versions refresh -propose, which refuses a marked entry too, so markingkernelwould break the daily refresh. devcontainer-cli'srefresh nodeis the same case. So the field is in spin-ami (spin-os upgradeis built onupstream.Bump:alloy,grafana,victoriametrics, proven both ways) and in the website, and not in spin-machine or devcontainer-cli, where only prose still stopsgo tool task bump NAME=qemu.reference.mdstates as fact that all three named commands are built on the library; that is wrong for spin-machine.elsewhereholds one file and spin-ami has two release workflows (release.ymlfor a spin release's AMIs, which tags nothing here;metal-iso.ymlfor themetal-v<version>GitHub releases). The map names the first and a comment the second, which no check reads.A repository's own pin command lags the shared ones.
spin-os upgradeandoutdateddo not take gh's token (404 on the private upstream untilGH_TOKENis set), and refuse a dirty tree, so "the own command still works" can only be shown after the commit.For whoever runs a round
gh pr view --json statefirst: all three were merged. After a rebase merge, "merge main into the branch" makes a duplicate-commit history: start a fresh branch from main.missing required variables ... exit 206).Docs: what "releases" means is never said (a tag here, or anything published?); nothing on two release workflows; nothing on the
bump:value's form, on which module version first reads it, or thatversions refreshon a marked entry breaks a scheduled refresh; only the flow map is shown (block form works);versions.mdnever mentionsbump:.aledbf commentedon Nov 22, 2026
Rollout findings, 11: spin (spin-stack/spin#1577, open, one commit, gate red for a reason that is main's)
Ten files, +49 −62.
task --dryof every task before and after: 218 tasks before, 220 after; of the 217 names in both, 212 are byte-identical and the 5 that differ areversionsandlint:workflows(go-tools' now) andlint,tools,setupthrough them. spin'slint:workflowsdid more than the shared one (a Task pin equality test,taskgate); that part islint:tasksnow.RELEASE: {elsewhere: release.yml}: the forgeries all refuse, release and tag lists identical.New, and the one a ninth repository will not expect: a repository's own code reads its Taskfile's includes as files. spin's
hack/lanesparses the Taskfile and opens each include:{{.GO_TOOLS_TASKS}}, included as common: open ../../../{{.GO_TOOLS_TASKS}}: no such file or directory.task lintand the root tests were green with it. Only a targetedgo testof the packages that mentionTaskfile.ymlfound it, and on main it would have brokenkvm-hourly.yml, which no pull request lane runs: red every hour, after the merge.New: a namespace makes a collision the docs do not describe.
taskfiles/lint.yml'sworkflowsislint:workflowsthrough its namespace. Task reports it under the namespace, with a stray quote:Found multiple tasks (lint:workflows) included by "lint"", exit 203, for every task. The docs speak of a root task and showincluded by "common".bump:could be added to no entry. spin has no pin command built on the library:refreshrunsversions refresh -propose, andmachine:proposerunshack/machine, which shells out toversions bump spin-machine. Planted on a copy, the field makes that command refuse itself, which would breakmachine.yml. Third repository where the field cannot go (spin-machine, devcontainer-cli, spin), against two where it can (spin-ami, website). Andversions' last line still advisesgo tool task bump NAME=<name>for those rows.The gate.
ci/lanesfailed onchecks:internal/runner/qemu/checkpoint.go:324:69: unknown field Fast in struct literal of type machine.LoadOptions.origin/main(4f1459fd0, spin#1572, merged with its ownci/lanesfailed) prints the same line in a clean worktree. The branch was rebased onto that commit one minute after it landed, with selected tests and no build, and pushed. Ago build ./...after the rebase would have shown it. Cost: one checks lane.Small things: the disk was full at the start (0.4 GB of 915);
AGENTS.mdhad 10 bytes of its budget left and naming the new task cost 15; the forgery cannot be written as an environment prefix in bash (RELEASE={proof: ...}: command not found), it needsenv 'RELEASE=...';task toolsno longer installs actionlint and a stale.tools/bin/actionlintstays;core.hooksPathis not set in the bare repository's worktrees, so the pre-push hook did not run.What should be a check
Taskfile.ymlortaskfiles/, and every task a scheduled workflow on main runs, dried at the PR's head.bump:planted on a copy for each entry a repository's own command moves, and that command run: library-built or shell-out, by measurement.toolcache: an answer from before the caller's release is asked again,…
versions: -by names the command running bump or refresh, and an entry…
taskgate: -common holds a repository to the common tasks, go-tools first