Repository navigation
Description
Rescoped twice. Originally "hold the
ubuntu-26.04bump" (devkit-only);
then "ship a managedactionlint.yaml". Investigation showed the config alone
is dead weight — no consumer runsactionlintat all — so the scope is now
the capability that makes it worth having: ship the workflow-lint hook to
consumers, with the config as its enabler. The corrected findings are in
Diagnosis; one claim in the previous revision was wrong and is
retracted there.
Chore Type
CI / Build change
Description
actionlint has been in the vigOS toolchain since #995 — nix/devtools.nix:63,
so it is on PATH in the dev-shell, the image, and the vigos.packages home
module — but the prek hook that runs it is deliberately devkit-only
(.pre-commit-config.yaml L103–L107). Consumers therefore ship GitHub Actions
workflows that nothing ever lints: verified zero actionlint hooks across
vig-os, exo-pet, MorePET and exoma-ch, and no CI or justfile
invocation anywhere.
That is the gap worth closing. shellcheck is the exact precedent: same
toolchain SSoT (nix/devtools.nix:48), same language: system form, and it
already ships to consumers (consumer template L79). actionlint is no harder to
deliver than a hook the scaffold has shipped for releases.
Shipping the hook creates a second requirement. actionlint rejects any
literal runs-on: label absent from its built-in list, and a repo cannot
teach it one without an actionlint.yaml declaring self-hosted-runner.labels.
Two label sources matter:
- Hosted labels the built-in list lags.
ubuntu-26.04is a live runner —
PR ci(actions): update dependency ubuntu to v26 #1658'sBuild Container Imagejob ran onImage: ubuntu-26.04/
20260907.131.1and passed — butactionlintv1.7.12 does not know it.
v1.7.12 is the latest upstream release, published 2026-03-30, months
before that image shipped, so no pin bump closes it. ci(actions): update dependency ubuntu to v26 #1658 bumps the scaffold
templates too, so consumers would render a literalubuntu-26.04. - Self-hosted labels, only where they appear literally. See the retraction
in Diagnosis — this is narrower than the previous revision claimed, and is not
on its own a justification.
So: hook + config + the knobs to opt out of both and to extend the label list.
Trade-off to accept explicitly: a label in self-hosted-runner.labels is a
label actionlint will no longer flag as a typo. The list stays minimal — the
labels the scaffold actually renders — and shrinks when upstream catches up.
Diagnosis
Retraction. The previous revision claimed DEVKIT_CI_RUNNER gives consumers
an unfixable runner-label failure. That is false, verified three ways:
actionlintflags only literal labels.runs-on: ${{ fromJSON(...) }}is
skipped entirely — tested directly: a literalmeatgrindererrors, the
fromJSONform produces nothing.DEVKIT_CI_RUNNERreachesruns-ononly through that expression
(assets/workspace/.github/workflows/ci.ymlL210/251/292/442/512/599), so its
labels are invisible toactionlint.- Only one repo sets the knob —
exo-pet/exo-fleet
(self-hosted,linux,x64,ci-vm) — and it is unaffected for that reason.
Self-hosted labels still matter once a consumer writes one literally in a
workflow of their own, which the hook would newly lint. That is a real case, just
not the standing breakage previously described.
Measured on PR #1658 head 8da4317e (run 35549998329, job
106182834232, step 3):
- 43
[runner-label]findings across 19 devkit workflows: 42 ×ubuntu-26.04,
1 ×ubuntu-26.04-arm. Reproduced locally at 43/43. actionlintwas the only failing prek hook; the other 30 passed.
Test Summaryis the aggregator echoingProject Checks: failure.- The composite
test-projectaction runsbats tests/bats/in the same shell
step asprek run --all-filesunderset -euo pipefail, so prek's exit 1
aborted the step before bats ran. The bats suite fails too — all 7actionlint
tests over the rendered templates.
A .github/actionlint.yaml was then tested in a throwaway worktree at that commit:
| Target | Result |
|---|---|
| devkit's own 19 workflows | ✅ exit 0 |
smoke templates (linted by path from $PROJECT_ROOT) |
✅ bats test 7 passes |
| the 6 rendered-mode bats tests | ❌ still fail |
The six rendered tests cd into a freshly git init'd temp workspace and run
bare actionlint, so a devkit-root config is invisible there — the same reason a
real consumer repo needs its own copy.
Acceptance Criteria
The hook
-
assets/workspace/.pre-commit-config.yamlships anactionlinthook in the
shellcheckidiom:repo: local,language: system,entry: actionlint,
files: ^\.github/workflows/.*\.ya?ml$,pass_filenames: false - The hook passes on a freshly scaffolded workspace in every mode
(devcontainer, direnv, bare, both) and under both workflow models - Adoption path for existing consumers decided and implemented (see the open
question below) —.pre-commit-config.yamlis inPRESERVE_FILES, so a new
hook does not reach an existing repo on upgrade
The config
-
assets/workspace/.github/actionlint.yamlships as a managed template
renderingself-hosted-runner.labels - Baseline labels carry their reason inline, so a later reader knows when to
delete one; the list stays in lockstep with what the scaffold renders - New knob
DEVKIT_ACTIONLINT_LABELS(comma-separated, whitespace-tolerant,
empty default) appends labels, validated and round-tripped to.vig-os
likeDEVKIT_FEATURES_DISABLED - Labels named by
DEVKIT_CI_RUNNERare included automatically — that knob
is already their SSoT — so a consumer who writes one literally is covered
without restating it - Consumer override:
.github/actionlint.yamlinPRESERVE_FILES, same class
as.yamllint/.pymarkdown/.typos.toml, with
print_preserved_template_diffkeeping template evolution visible
Opt-out
- A new
actionlintgroup inDEVKIT_FEATURES_DISABLEDdisables both
halves: the config viafeature_paths()copy-exclude + prune, and the hook
via a render-time conditional (a hook inside a preserved file cannot be
path-pruned —.pre-commit-config.yamlis already knob-rendered, cf.
--refs-optional-types, so the block is omitted at render) - Validation error-message subset list updated; preview classification correct
- Empty/absent knobs leave existing consumers byte-identical apart from the
new file
devkit itself + gates
- devkit's own
.github/actionlint.yamladded (its workflows are not scaffolded) -
actionlintover.github/workflows/passes on devkit with ci(actions): update dependency ubuntu to v26 #1658 applied - All 7
actionlintbats tests pass in every mode - New bats coverage: hook present/absent per opt-out, default config render,
DEVKIT_ACTIONLINT_LABELSappend,DEVKIT_CI_RUNNERderivation, feature
opt-out + prune, preserved-file override, manifest write-back - TDD per repo rules: failing test committed before implementation
-
docs/MIGRATION.mdknob rows + a section,.vig-oscomment block,
CHANGELOG.md## Unreleased - ci(actions): update dependency ubuntu to v26 #1658 rebased/re-cut and merged with both gates green
Implementation Notes
Target files: assets/workspace/.pre-commit-config.yaml,
assets/workspace/.github/actionlint.yaml (new), .github/actionlint.yaml (new),
assets/init-workspace.sh, assets/workspace/.vig-os,
tests/bats/init-workspace.bats, docs/MIGRATION.md, CHANGELOG.md.
assets/init-workspace.sh touch points: knob read (~L346), validation
(~L460–L520), feature_paths() (~L1602), PRESERVE_FILES (~L73), a render
function, write-back (~L3202). render_license() (#1651, ~L1548) is the closest
structural precedent, including its three-state write logic — already-our-output
→ silent no-op; absent or stock copy → render; anything else → consumer-owned,
leave with a notice — and the chmod u+w the read-only /nix/store assets need.
Open question — adoption for existing consumers. .pre-commit-config.yaml is
preserved (#878/#913/#1099), so an upgrade never adds the hook to an existing
repo. Three candidates:
- New repos only. The fix(workspace): scaffold upgrade replaces .pre-commit-config.yaml, silently clobbering repo-specific hook config #878
print_preserved_template_diffsurfaces the new
hook on upgrade and the consumer folds it in. This is what the Upgrade can't fold hook fixes into a preserved .pre-commit-config.yaml — warn on the pre-#1170 jackdewinter/pymarkdown block #1652 table's
own comment says is correct: that table is for blocks the template retired
because they break — "never for ordinary drift" — and it names the fix(workspace): scaffold upgrade replaces .pre-commit-config.yaml, silently clobbering repo-specific hook config #878 diff
as "the right tool for 'a new hook was added'". Cheapest, and consistent with
the documented split. - Append-repair, the fix(workspace): scaffold upgrade strands base recipes — justfile.project is preserved but now owns sync/precommit/test, breaking the shipped ci.yml #877 pattern used for
justfile.projectbase recipes:
detect the missing hook and append it from the template. Actually lands the
hook everywhere, at the cost of writing into a file the consumer owns. - Hook ships disabled, consumer opts in via the knob. Safest rollout, but it
means the capability is off by default in every existing repo.
(1) is the documented default and (2) is the only one that actually delivers
linting to existing repos; worth settling before implementation, since it changes
both the code and the risk.
Second open point: whether a consumer whose preserved config has the hook but
whose .github/actionlint.yaml is stale deserves a signal. The #1652 known-bad
table is explicitly not for this; the #878 diff covers it.
Related Issues
Blocks #1658. Builds on actionlint adoption #995 and its shellcheck integration
#1003. Mechanisms reused: feature opt-outs #1284, preserved lint configs
#878 / #913 / #1099, preserved-file repair #877, knob + managed-file precedent
#1651, known-bad blocks #1652, DEVKIT_CI_RUNNER #1173. Prior runner bump: #544.
Priority
Medium
Changelog Category
Added
Additional Context
actionlint in the current toolchain is 1.7.12 (nix/devtools.nix), with an
overrideAttrs'd variant for the image (flake.nix, #1107). All measurements
above were taken in a throwaway worktree at PR #1658 head 8da4317e, since
removed.
Consumer survey (2026-09-21): .pre-commit-config.yaml carries no actionlint
hook in any repo of the four orgs; DEVKIT_CI_RUNNER is set only in
exo-pet/exo-fleet.
Activity
[-][CHORE] Hold the ubuntu-26.04 runner bump: actionlint 1.7.12 has no such label[/-][+][CHORE] Ship a managed actionlint.yaml: no repo can teach actionlint a runner label (ubuntu-26.04, DEVKIT_CI_RUNNER self-hosted)[/+][-][CHORE] Ship a managed actionlint.yaml: no repo can teach actionlint a runner label (ubuntu-26.04, DEVKIT_CI_RUNNER self-hosted)[/-][+][FEATURE] Ship a managed actionlint.yaml: no repo can teach actionlint a runner label (ubuntu-26.04, DEVKIT_CI_RUNNER self-hosted)[/+]12 remaining items
c-vigo commentedon Sep 21, 2026
Done — merged to
devand verified there.Shipped (PR #1661, merged
43cce748):actionlinthook scaffolded to consumers viascaffold = trueon the hookDef innix/hooks.nix(the one definition both configs render from; the drift gate rejects hand-edits to the template)..github/actionlint.yamlwith theubuntu-26.04/ubuntu-26.04-armbaseline, in the scaffold and in devkit itself (its workflows are not scaffolded).PRESERVE_FILES, so the provenance-banner pass stamps the yours to edit variant and upgrades never overwrite it.actionlintgroup forDEVKIT_FEATURES_DISABLEDtaking both halves — the config as afeature_paths()entry, the hook by sentinel-bracketed excision (render_actionlint_optout), since a hook inside a preserved file cannot be path-pruned.docs/MIGRATION.md, the.vig-osknob comment,CHANGELOG.md.The blocked bump is unblocked (PR #1658, merged
d5d99e96):actionlintover.github/workflows/went from 43[runner-label]findings to exit 0, and all 7 rendered-template bats tests pass. #1658 also needed a companion commit (1c58a6ff) moving the hosted default to 26.04 — Renovate rewritesruns-on:literals only, and could not seeCI_RUNNER="${CI_RUNNER:-ubuntu-24.04}", a shell default inside arun:block.Verified on
dev:actionlintexit 0, 12/12 actionlint bats tests, and on the branch before mergeprek run --all-filesexit 0, pytest 1649 passed, bats 296/296.Superseded criteria:
DEVKIT_ACTIONLINT_LABELSand theDEVKIT_CI_RUNNERlabel derivation were dropped (see the scope-reduction comment above) — a preserved file is not re-rendered, so such a knob would apply only at first scaffold.Known gap, deliberate: existing consumers do not receive the hook on upgrade, because
.pre-commit-config.yamlis preserved; it surfaces through the #878 template diff to fold in by hand. If that proves too passive, the closest existing machinery is #1654 (auto-fold a byte-exact block in a preserved hook config) — a sibling problem worth solving there rather than here.c-vigo commentedon Sep 21, 2026
Follow-up recorded: #1654 is extended to cover this issue's one deliberate gap — existing consumers never receive the new hook, because their
.pre-commit-config.yamlis preserved.#1654 now carries two cases: folding a byte-exact retired block (its original scope) and inserting a hook the consumer never received (this gap, with
actionlintas the first instance). The second is strictly weaker on safety — Case 1 can byte-match what it replaces, Case 2 can only infer what it adds, since a missing hook may equally mean a deliberate deletion. The proposal there gates insertion onPREVIOUS_PINpredating the release that introduced the hook, mirroringretired_paths()(#1348), and requires honouring theDEVKIT_FEATURES_DISABLED=actionlintopt-out this issue shipped.feat(workspace): fold the release just recipes into the release featu…
test(workspace): cover preserved hook-config reconciliation
feat(workspace): reconcile a preserved pre-commit config on upgrade
feat(workspace): reconcile a preserved pre-commit config on upgrade (#…
chore: release 1.16.0 (#1672)
fix(lint): declare ubuntu-26.04 runner labels for actionlint
fix(lint): declare ubuntu-26.04 runner labels for actionlint (#243)
feat(hooks): shellcheck the run bodies of composite actions (#1718)
fix(init): anchor a preserved-hook insert on the nearest present pred…
fix(init): match devkit sentinel ids exactly (#1729)
fix: actionlint opt-out leaves two blank lines that fail the consumer…
feat(ci): run a rendered-consumer variant matrix in PR CI (#1803)