Repository navigation
Description
Decision needed (away-mode backlog burndown, 2026-11-24, round 2, group 1), parking #1727.
Question: When the Docker lint images move to a Dependabot-tracked digest manifest per #1727's recorded answer, how should a carrier's docker_lint.py behave while its carried catalog/snippets/hub_fetch_run.py is still an older copy that fetches the script alone, with no manifest beside it?
The 2026-11-01 answer on #1727 (option 1) says one manifest feeds validate-task.yml, repo_gate.py, and scripts/docker_lint.py. For the reusable workflow and repo_gate.py, the python-tool-pins precedent (#3640) settles how the manifest is reached. For docker_lint.py in a carrier it does not. A carrier runs docker_lint.py through its carried hub_fetch_run.py, which fetches the script fresh from hub main with COMPANIONS["scripts/docker_lint.py"] = (), so the script arrives alone. Adding the manifest to that tuple fixes new copies. Every existing carried copy keeps fetching the script alone until that carrier resyncs, and the moment the change reaches main, the fresh docker_lint.py finds no manifest.
Options, recommended first:
- Fail loudly and name the resync (recommended).
docker_lint.pyexits non-zero when the manifest is not beside it, and its message says to resynchub_fetch_run.pyfrom the hub. Reason: it matches the fetcher's own stance that a fetch failure fails the caller loudly rather than silently skipping a gate, and it keeps one copy of the pins. CI is unaffected, since the reusable workflow and the repo gate read the manifest at the hub pin. Cost: every carrier's local Docker lint tasks (the VS Code EditorConfig, Workflows, Markdown, Spelling, ShellCheck, and shfmt tasks) fail until that carrier'shub_fetch_run.pyis resynced. - Fall back to unpinned tags with a warning. When the manifest is absent,
docker_lint.pyprints a WARN and pulls the moving tags as it does today. Reason against: the tags then live in two places, the manifest and a fallback copy indocker_lint.py, and the fallback copy is the kind of pin nothing keeps current. Local runs in a stale carrier silently differ from CI until it resyncs.
What each option does to the parked work: neither changes the planned design below. It decides only docker_lint.py's missing-manifest branch and its tests. Nothing is committed yet. Branch burndown/docker-lint-digest-pins has no commits and no pull request.
Planned design (unchanged by the choice above):
- The manifest: a new composite action
.github/actions/docker-lint-pins/holding a never-builtDockerfile. It has oneFROM <registry>/<image>:<version-tag>@sha256:<digest> AS <linter>line per image: editorconfig-checker, shellcheck, shfmt, and powershell, plus the local-only actionlint, markdownlint-cli2, and cspell thatdocker_lint.pyalso runs. - The readers: the action's
action.ymlreads the Dockerfile from$GITHUB_ACTION_PATHand outputs one image reference per stage, likepython-tool-pins.validate-task.ymlreaches it as$/.github/actions/docker-lint-pins, drops--pull=always, and wraps each pull in a bounded retry.repo_gate.pyreads the sibling Dockerfile from the hub tree its action runs from.docker_lint.pyreads it at its hub-relative path, also with a bounded retry arounddocker pull. - Dependabot: a
dockerecosystem pair, main and develop, on/.github/actions/docker-lint-pins. - Version tags pinned alongside digests, not
latest, so Dependabot's docker ecosystem has a version to compare. The tags read live on 2026-11-24 include ghcr editorconfig-checker4.0.2, mirror.gcr.io shellcheckv0.11.0, and mirror.gcr.io shfmtv3.14.1. MCR powershell publishes suffixed tags only. - The carrier fetch:
catalog/snippets/hub_fetch_run.pyCOMPANIONS["scripts/docker_lint.py"]gains the manifest path, so a fetched tree carries it beside the script. - Risk: mirror.gcr.io's tag list holds only the tags it has cached, so a Dependabot bump of a mirror.gcr.io image may lag upstream releases.
Files the design needs beyond #1727's claim:
.github/actions/docker-lint-pins/action.yml, a second new file beside the manifest.catalog/snippets/hub_fetch_run.py(carried content) andtests/test_hub_fetch_run.py.
Carried and host docs the change makes false, to update with it:
catalog/snippets/husky/README.md:30("Docker at:latest").catalog/snippets/pre-commit/README.md:55("Docker at:latest").host-setup/linux/README.md:188, which names theshellcheck:stableandshfmt:latestcontainers.
Blocks: #1727. No pull request is open for it.
🤖 Generated with Claude Code
Activity
ptr727 commentedon Nov 24, 2026
Maintainer's answer, 2026-11-24 (recorded at the session handoff): option 1. Fail loudly and name the resync:
docker_lint.pyexits non-zero when the manifest is not beside it, and its message says to resynchub_fetch_run.pyfrom the hub. Carriers' local Docker lint tasks fail until each one resyncs, which is accepted. #1727 resumes on the design in this issue.