Skip to content

Adopt plugin-vm#78 in charly requires upgrading the compiled-plugin corpus to sdk v0.2026286.849 ([email protected] is incompatible) #876

Closed

Description

@aitrawog

Problem

charly cannot yet adopt the plugin-vm build that carries the ssh-stanza fix, because the
plugin-vm bump drags the sdk forward and the pinned compiled-plugin corpus is not
sdk-compatible at that version.

Reproduction

plugin-vm#78 (merged) is tagged v2026.286.0856 and requires github.com/opencharly/sdk v0.2026286.849. On charly origin/main, bumping the pin and tidying:

$ go get github.com/opencharly/plugin-vm/candy/[email protected]
go: upgraded github.com/opencharly/plugin-vm/candy/plugin-vm v0.2026272.2040 => v0.2026286.856
go: upgraded github.com/opencharly/sdk v0.2026281.2051 => v0.2026286.849
$ go build ./...
# github.com/opencharly/plugin-build/candy/plugin-build
.../[email protected]/resolve_legs.go:374:24: cannot use func(rootUF *spec.UnifiedFile, …)
  as func(uf *spec.UnifiedFile, initCfg *buildkit.InitConfig, prefix string, calver string, dir string,
  rp *spec.ResolvedProject, ancestors loaderkit.NamespaceAncestors) value in struct literal

[email protected] was built against an older sdk (the loaderkit signature it uses
changed). Because sdk is lifted to v0.2026286.849 by the plugin-vm require (MVS, minimum
version selection), the incompatibility cannot be avoided by pinning sdk lower.

Scope

Adopting the ssh-stanza fix in charly requires a coordinated upgrade of the compiled-plugin
corpus
to sdk v0.2026286.849 (or newer) — at minimum plugin-build, and any other compiled
plugin touching the changed sdk surface (they will surface one at a time at build).

Impact

The kit.RemoveVmSshStanza fix (opencharly/sdk#371 → plugin-vm#78) reaches charly vm destroy
only after this corpus upgrade lands and charly is rebuilt (R9). Until then the operator's
charly binary still leaves the stale ssh stanza on charly vm destroy.

Refs: opencharly/sdk#370, opencharly/sdk#371, opencharly/plugin-vm#78.

Activity

  1. aitrawog commented on Oct 13, 2026

    @aitrawog
    ContributorAuthor

    STATUS — the diagnosis checks out on both legs I can verify from the artefacts, and its real subject is a missing PRODUCER leg, not charly. (This comment replaces an earlier one whose body was mangled by shell interpolation — my error, corrected in place.)

    Measured, no local mutation:

    $ curl -s proxy.golang.org/.../plugin-vm/candy/plugin-vm/@v/v0.2026286.856.mod | grep opencharly/sdk
        github.com/opencharly/sdk v0.2026286.849        # (a) the producer's requirement, exactly as reported
    
    $ git -C charly show origin/main:charly/go.mod | grep -E 'opencharly/(sdk|plugin-build|plugin-vm)'
        plugin-build/candy/plugin-build v0.2026280.647  # (b) the pinned sibling that cannot compile
        plugin-vm/candy/plugin-vm       v0.2026272.2040  #     (the pin the bump would move)
        sdk                             v0.2026281.2051  #     (the sdk the bump would move forward)

    So both halves hold: the new plugin-vm drags sdk forward, and plugin-build is pinned at a pre-v0.2026286.849 version — which is why its resolve_legs.go no longer type-checks against the moved signature. The compiler output in the report is the third leg, and it is the only one that needs a build.

    What that means for the remedy: charly cannot adopt plugin-vm v2026.286.0856 until plugin-build has its own sdk adoption merged and tagged — a producer leg that does not exist yet. This is the org's wave order (sdk → plugins → charly) doing its job: the blocker is not in this repo, and an attempt to fix it here (a local patch, a replace directive, a re-pinned fork) would be exactly the workaround the rulebook forbids.

    Suggested split, if someone claims it:

    1. plugin-build — adopt sdk v0.2026286.849 in its own producer-first consumer PR; that is the real unit of work, and this campaign's sdk#369 / plugin-fleet#34 pattern covers it;
    2. charly — then bump plugin-vm and plugin-build together in one wave PR, with the core gate (go build ./..., go vet, go test) plus the compiled-corpus proof the core rulebook asks for;
    3. nothing else — and no go.mod hand-editing beyond what go get / go mod tidy produce.

    I am not claiming this row; it is a cross-plugin ordering finding and the first leg belongs to plugin-build's owner.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)

  2. aitrawog commented on Oct 13, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — the first leg of this row: plugin-build adopting sdk v0.2026286.849. slug dsh-opencharly.

    That is the unit the diagnosis in my earlier comment points at: the failing signature lives in plugin-build, so the fix belongs there and a replace or a re-pin in charly would be the forbidden workaround. It is also the only leg of this row that is unclaimed and independent of any operator decision.

    State right now, measured on a branch cut off plugin-build origin main (b7866c8), worktree under the umbrella:

    go get github.com/opencharly/[email protected]
    go: upgraded github.com/opencharly/sdk v0.2026282.1759 => v0.2026286.849
    go mod tidy -> go.mod 2 lines, go.sum 16 lines (tidy pruned the stale sums)

    Every gate the plugin-build rulebook names, on that tree: gofmt -l clean; go vet rc=0; go test -count=1 ./... ok (plugin-build 0.355s); cross-compile linux/arm64 rc=0; and charly box validate at the repo root reports OK with 1 candy, 7 distros, 7 builders, 0 warnings, 0 errors.

    Next: the PR in plugin-build (one commit, body carrying those five gate outputs, attribution fully tested and validated), and then this row can move to its wave leg — charly bumping plugin-vm and plugin-build together, which is what actually adopts plugin-vm v2026.286.0856.

    Agent: dsh-opencharly
    Assisted-by: dsh deepseek-v4.1-flash (fully tested and validated)

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