You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
runtime: the image recipe defaults DSH_VERSION to 0.2.2-rc.1 while the pin installs 0.2.2-rc.5 #3489
agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a templateagent-workingAn agent has claimed this issue (the claim comment names the branch)
Dockerfile:35 then runs npm install -g "@deepseek-ai/dsh@${DSH_VERSION}", i.e. rc.1, while the repository claims rc.5. docs/COMPOSE_MANAGER.md:24 tells operators they can build the image from runtime/flybot-image/, and nothing in the recipe or tests catches a build that omits the arg.
Expected vs actual
Expected: a build without --build-arg DSH_VERSION either fails loudly or produces the pinned version.
Actual: it succeeds and produces an image whose DSH version contradicts the pin, with no warning.
Static reading only: this machine has no Docker daemon, so the build was not executed; the claim is from the recipe's own ARG default, not from a built image.
Suggested slice
Make the recipe refuse to build without an explicit version (drop the default, or default it from the pin at build time), and add a check to runtime/flybot-image/test/ that greps the recipe for a hardcoded default that contradicts the pin. Do not touch the shipped license records here (docs/reuse-audit/shipped-pins.json, NOTICE:22/:66) — those are a separate slice.
Claimed. Branch dev/3489-image-recipe-dsh-version-default from main 4b8d4216781201383b34fcf84f86efed071527bb; pull request #3491, head c01eb3b99f598c5b8ec004407550258ce639a17b, tree ccd25ec43fa95a0e71a4b60df24c4164cfb0f3c0, single parent, 3 files +47/−4.
What the slice does, beyond the issue text: dropping the default alone would have been worse than keeping it, because an empty "@deepseek-ai/dsh@" resolves to * (npm-package-arg reports fetchSpec="*"), which is further from the pin than rc.1 was. So both stages now declare ARG DSH_VERSION with no default and each fails fast on an empty value before its first install; test/recipe.test.js rejects a baked default, requires the guard to run before first use in both stages that install DSH packages, and requires the workflow, docs/GETTING_STARTED.md and runtime/flybot-image/README.md to read the version from the pin instead of a literal. docs/COMPOSE_MANAGER.md now says to pass --build-arg DSH_VERSION=<dsh in runtime/ds-bot-upstream.pin.json>.
Out of scope here: NOTICE:22/:66 and docs/reuse-audit/shipped-pins.json still name 0.2.2-rc.1; those are a separate slice.
Note on local evidence: this host has no Docker daemon, so no image build was executed. The recipe test suite is 12/12 on the replayed tree, and npm test in runtime/flybot-image is 28/29 because test/model-api.test.js:80 reads this host's real /run/secrets/flybot-workspace-model-api.json; that red exists on the parent commit too and is filed as #3490.
a062ba2158261ed0e5e5e217723e19df290ff02a — squash of #3491, single parent 3d4cb42a, tree 3f164e11a3bf79f8707ae1e250d7e686689cce38, 3 files +47/-4.
Both build stages now declare ARG DSH_VERSION with no default value and fail fast with test -n "$DSH_VERSION" before the first use (install at :41, version check at :102). runtime/flybot-image/test/recipe.test.js asserts that no ARG DSH_VERSION= default is baked into the recipe, so a bare docker build can no longer silently install the old 0.2.2-rc.1. The build instructions in docs/COMPOSE_MANAGER.md (24-27), docs/GETTING_STARTED.md and runtime/flybot-image/README.md now pass --build-arg DSH_VERSION=<pin>.
Local check on the replayed tree: recipe.test.js 12/12 and the top-level tests/*.test.mjs suite 974/974 rc 0; putting the default back turns exactly the new assertion red. No docker on this host, so the guard semantics were exercised with sh -c, not a real image build.
agent-readyMaintainer-approved spec: an agent may take it. Only maintainers set this; never in a templateagent-workingAn agent has claimed this issue (the claim comment names the branch)
Activity
Birfy commentedon Dec 2, 2026
Claimed. Branch
dev/3489-image-recipe-dsh-version-defaultfrom main4b8d4216781201383b34fcf84f86efed071527bb; pull request #3491, headc01eb3b99f598c5b8ec004407550258ce639a17b, treeccd25ec43fa95a0e71a4b60df24c4164cfb0f3c0, single parent, 3 files +47/−4.What the slice does, beyond the issue text: dropping the default alone would have been worse than keeping it, because an empty
"@deepseek-ai/dsh@"resolves to*(npm-package-argreportsfetchSpec="*"), which is further from the pin than rc.1 was. So both stages now declareARG DSH_VERSIONwith no default and each fails fast on an empty value before its first install;test/recipe.test.jsrejects a baked default, requires the guard to run before first use in both stages that install DSH packages, and requires the workflow,docs/GETTING_STARTED.mdandruntime/flybot-image/README.mdto read the version from the pin instead of a literal.docs/COMPOSE_MANAGER.mdnow says to pass--build-arg DSH_VERSION=<dsh in runtime/ds-bot-upstream.pin.json>.Out of scope here:
NOTICE:22/:66anddocs/reuse-audit/shipped-pins.jsonstill name0.2.2-rc.1; those are a separate slice.Note on local evidence: this host has no Docker daemon, so no image build was executed. The recipe test suite is 12/12 on the replayed tree, and
npm testinruntime/flybot-imageis 28/29 becausetest/model-api.test.js:80reads this host's real/run/secrets/flybot-workspace-model-api.json; that red exists on the parent commit too and is filed as #3490.Birfy commentedon Dec 2, 2026
Implemented and merged.
a062ba2158261ed0e5e5e217723e19df290ff02a— squash of #3491, single parent3d4cb42a, tree3f164e11a3bf79f8707ae1e250d7e686689cce38, 3 files +47/-4.Both build stages now declare
ARG DSH_VERSIONwith no default value and fail fast withtest -n "$DSH_VERSION"before the first use (install at:41, version check at:102).runtime/flybot-image/test/recipe.test.jsasserts that noARG DSH_VERSION=default is baked into the recipe, so a baredocker buildcan no longer silently install the old0.2.2-rc.1. The build instructions indocs/COMPOSE_MANAGER.md(24-27),docs/GETTING_STARTED.mdandruntime/flybot-image/README.mdnow pass--build-arg DSH_VERSION=<pin>.Local check on the replayed tree:
recipe.test.js12/12 and the top-leveltests/*.test.mjssuite 974/974 rc 0; putting the default back turns exactly the new assertion red. No docker on this host, so the guard semantics were exercised withsh -c, not a real image build.Related #3491