Skip to content

NOTICE names dsh@0.2.2-rc.1 as what the image installs; the recipe builds the pinned 0.2.2-rc.5 #3495

Done

Description

@Birfy

Problem

NOTICE still tells readers that the runtime image installs @deepseek-ai/dsh@0.2.2-rc.1, but the image no longer installs that version. On b380e626fdc4bcb879c0d3c4af85167200e3c0fe (tree c6a01ad43494362edca297e5f1ba3f6097835171):

  • .github/workflows/flybot-runtime-image.yml:46 reads dsh from runtime/ds-bot-upstream.pin.json (0.2.2-rc.5), :55 exports DSH_VERSION, :62 passes it as a build-arg.
  • runtime/flybot-image/Dockerfile installs @deepseek-ai/dsh@${DSH_VERSION}, and since runtime: require DSH_VERSION as an explicit build-arg #3491 an empty DSH_VERSION fails the build instead of falling back.
  • NOTICE:22 still says the recipe "additionally installs ... @deepseek-ai/dsh@0.2.2-rc.1 and its production direct dependencies".
  • NOTICE:66 still says the reviewed @deepseek-ai/dsh@0.2.2-rc.1 npm tarball correspondence "remains explicitly unverified", without saying that what ships is 0.2.2-rc.5.

docs/reuse-audit/shipped-pins.json was corrected by #3494 (image_recipe.dsh = 0.2.2-rc.5, dsh_audit_snapshot = 0.2.2-rc.1, shipped_version_audited: false). The root NOTICE was not.

No check catches this: scripts/verify-reuse-audit-pins.py asserted six fixed phrases in the root NOTICE and never compared its version string with the pin; the root NOTICE also has no sha256 pin of its own (the 94f05bc4 entry in shipped-pins.json is runtime/flybot/NOTICE). A NOTICE that names a version the image does not install is a licensing statement, not just stale prose, so it should fail a check.

Repro

grep -n '0.2.2-rc' NOTICE                  # 22, 66 -> rc.1
node -p "require('./runtime/ds-bot-upstream.pin.json').dsh"   # 0.2.2-rc.5
grep -n 'DSH_VERSION' .github/workflows/flybot-runtime-image.yml runtime/flybot-image/Dockerfile

Slice 1 (this issue, PR #3496)

  • NOTICE:22 names @deepseek-ai/dsh and points at runtime/ds-bot-upstream.pin.json for the version, naming 0.2.2-rc.5 as the version at this notice.
  • NOTICE:66 keeps the rc.1 review as the audited snapshot and states that the image now builds the pinned 0.2.2-rc.5, whose npm tarball correspondence is unverified.
  • scripts/verify-reuse-audit-pins.py fails when @deepseek-ai/dsh@<pin dsh> is absent from the root NOTICE, so a pin bump can no longer leave the NOTICE behind.

Slice 2 (follow-up, not in this PR)

The same "current = rc.1" claim survives in four more places, none of them covered by the new gate:

  • docs/reuse-audit/README.md:15 ("当前运行时钉扎的 DSH 为 0.2.2-rc.1") and :93
  • docs/reuse-audit/pins.json:163 (dsh_pin_in_runtime.version)
  • docs/reuse-audit/SHIPPED.md:50 (installs rc.1 globally) — the rc.1 audit sections at :52-:123 stay as historical evidence, but must be labelled as the audited snapshot next to the shipped rc.5
  • docs/reuse-audit/INVENTORY.md:14 and :62 ("DSH 0.2.2-rc.1 再分发义务仍待核")

Slice 3 (follow-up, not in this PR)

A third version in the same file is stale for a different reason: NOTICE:13 says the vendored tree is "(unmodified Fei2411/DS-Bot v0.3.10)", while runtime/ds-bot-upstream.pin.json pins tag v0.4.3 at 5a9dc8d3dc9e2dc22679a97e7028476ace62640c. That is the DS-Bot tag, not the DSH version, so it gets its own slice: name the pinned tag in the NOTICE and gate it the same way (DS-Bot <pin tag> must appear in the root NOTICE).

Acceptance

  • scripts/verify-reuse-audit-pins.py exits 0 and prints OK root NOTICE names the shipped DSH version @deepseek-ai/dsh@0.2.2-rc.5.
  • Removing that version string from the NOTICE makes the script exit 1.
  • tests.test_shipped_licenses stays green.
  • Nothing in the NOTICE claims the shipped rc.5 was audited, and nothing claims the image is a public redistributable release.

Related #3494

Activity

  1. added
    agent-ready
    agent-working
    on Dec 2, 2026
  2. Birfy commented on Dec 2, 2026

    @Birfy
    CollaboratorAuthor

    Claimed. Branch dev/3495-notice-shipped-dsh-version, cut from b380e626fdc4bcb879c0d3c4af85167200e3c0fe; commit 5f8fb7b2, tree aacdf8ea, 2 files +12/-4 (the NOTICE and the gate).

    Slice 2 in this issue (the four docs/reuse-audit files that still call rc.1 current) is deliberately not in this PR.

  3. Birfy commented on Dec 3, 2026

    @Birfy
    CollaboratorAuthor

    Already fixed on main; closing as completed. Checked at main e1dd1b25928f91e542f2c864bf61eea7719cd724 (tree 2224f5b358c00d4444c93282c6a5f1a4d4de81bc), rebuilt from codeload at that commit, 2,579 entries.

    • NOTICE:24 names the recipe's installed pin @deepseek-ai/dsh@0.2.2-rc.5.
    • NOTICE:69-70 keeps @deepseek-ai/dsh@0.2.2-rc.1 as the audited snapshot and records that the rc.5 tarball's correspondence with the git tag's compiled output is still unverified — that retention is deliberate, not a leftover.
    • scripts/verify-reuse-audit-pins.py on this tree: rc 0, ending with all reuse-audit pin checks passed, including the shipped-vs-audited snapshot assertion.

    Landed in 0bdbbfbe (PR #3496).

  4. removed
    agent-ready
    agent-working
    on Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions