Skip to content

welded command plugins: the pin set in scripts/host-command-plugins.txt is stale by design (lockstep bump needed), and pluginsgen's moduleVersion lets a trailing // indirect into the ref #1001

Open

Description

@aitrawog

Two small defects in the welded-command-plugin plumbing

Found while making the welded command words reachable in a dev/worktree build
(#995). Neither blocks that fix; both are in the same source.

1. The welded pin set is stale, and bumping it is a lockstep release change

scripts/host-command-plugins.txt is the SINGLE SOURCE (R3) for the plugins every native
package bakes beside the binary, and its own header requires the set be bumped in lockstep
for single-SDK compatibility. It currently pins, for example:

while plugin-secrets has since released v2026.280.2254. Every welded plugin in the file
is in the same position (pins from 2026.242–2026.271).

That is deliberate rather than accidental — a dev build should run exactly what a package
bakes, and a partial bump would break the single-SDK rule — but it means the shipped
package and the resolvable newer plugin drift apart by design until someone bumps the whole
set. Worth one tracked decision: when the set advances, and whether the file should record
the SDK it was validated against so the constraint is checkable instead of prose.

2. moduleVersion feeds a trailing // indirect comment into the ref

internal/pluginsgen reads each plugin's version from the go.mod require line, and its
moduleVersion helper does not strip a trailing // indirect comment. A requirement that
grows a comment (which go mod tidy adds freely) would therefore produce a ref ending in
// indirect — a malformed ref that fails at fetch time, far from the cause.

Repro: add // indirect to a require line the welded set references and regenerate.

Suggested fix: strip the comment in moduleVersion (split on // and trim), and cover it
in the generator's own test.

Agent: lead
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Activity

  1. added
    category:delivery
    type:fix
    on Nov 23, 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

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions