Skip to content

fix(charly): re-pin plugin-dsh for the token-aware web probe - #641

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/repin-plugin-dsh
Sep 24, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/repin-plugin-dsh

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Summary

Re-pins the compiled-in plugin-dsh so the command:dsh / verb:dsh surface carries the token-aware web probe (and, as the intended side effect, advances charly's dependency set to trigger the next charly release).

  • charly/charly/go.mod: github.com/opencharly/plugin-dsh/candy/plugin-dsh v0.2026237.1419 → v0.2026266.2321 — the merged tag candy/plugin-dsh/v0.2026266.2321 (squash 819f6f9) of fix: authenticate the dsh web probes with the launch token plugin-dsh#5.
  • charly/charly/go.sum: the two matching checksum lines (old pair removed).
  • No Go source changed; plugins_generated.go and the repo-root go.work are name-only and regenerate byte-identically (the pluginsgen step of task build:binary was run and left the tree clean).

What the new pin carries (opencharly/plugin-dsh#5): verbWebRunning and DshStatusCmd.Run now read the launch token the dsh candy's entrypoint persists to $DSH_HOME/web-token and authenticate with ?token=<token>. Before it, the stale probe hit the token-fenced web UI without one.

Closes/relates to: opencharly/plugin-dsh#5 (the plugin change), opencharly/pod-dsh#4 (the bed relocation + token-aware checks).

Breaking/rollback: none — a dependency version bump. Rollback = revert this commit.

How tested

1. Pin + tidy (real output):

$ grep -n plugin-dsh charly/go.mod
28:	github.com/opencharly/plugin-dsh/candy/plugin-dsh v0.2026266.2321

$ (cd charly && go mod tidy)
go: downloading github.com/opencharly/plugin-dsh/candy/plugin-dsh v0.2026266.2321
(exit 0)

$ git diff --stat origin/main...HEAD
 charly/go.mod | 2 +-
 charly/go.sum | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

2. Stamped build + compiled-in probe string (final tree, bin/charly):

$ CALVER=$(bash scripts/calver.sh)   # 2026.267.0012
$ (cd charly && go build -buildvcs=false -ldflags "-X main.BuildCalVer=$CALVER" -o ../bin/charly .)
(exit 0)

$ ./bin/charly version
2026.267.0012

$ go version -m bin/charly | grep plugin-dsh/candy
	dep	github.com/opencharly/plugin-dsh/candy/plugin-dsh	v0.2026266.2321	h1:7R9a52AY87U9MKlsa6/7YVqPUImTh2sP+FRjTMBdclg=

$ strings bin/charly | grep -m1 web-token
proto3T="$(cat "${DSH_HOME:-$HOME/.dsh}/web-token" 2>/dev/null)"; if [ -z "$T" ]; then echo "no dsh web token at ${DSH_HOME:-$HOME/.dsh}/web-token

$ strings bin/charly | grep -oE '\?token=[^"]{0,20}' | head -1
?token=$T

3. Go gates (final tree):

$ (cd charly && go build ./...)   # exit 0
$ (cd charly && go vet ./...)     # exit 0
$ (cd charly && gofmt -l .)       # (empty)

4. R10 — charly check run check-dsh-pod on a charly built from the FINAL tree (2026.267.0012), full PASS:

charly check run check-dsh-pod: [image-build] PASS after 1m19.057s [allowlisted=1 cache=139/150]
charly check run check-dsh-pod: [check-image] PASS after 40.223s [allowlisted=1]
charly check run check-dsh-pod: [deploy-add] PASS after 4.868s [allowlisted=1]
charly check run check-dsh-pod: [config] PASS after 5.823s [allowlisted=1]
charly check run check-dsh-pod: [start] PASS after 4.963s [allowlisted=1]
charly check run check-dsh-pod: [bring-up-members] PASS after 96ms
charly check run check-dsh-pod: [check-live] PASS after 46.047s [allowlisted=1]
charly check run check-dsh-pod: [feature-run] PASS after 25.645s [allowlisted=1]
charly check run check-dsh-pod: [update] PASS after 21.976s [allowlisted=5]
charly check run check-dsh-pod: [rebuild-ready] PASS after 2.542s
charly check run check-dsh-pod: [check-live-rebuild] PASS after 43.115s [allowlisted=1]
charly check run check-dsh-pod: [feature-run-rebuild] PASS after 25.43s [allowlisted=1]
charly check run check-dsh-pod: [cleanup] PASS after 23.337s [allowlisted=1]
charly check run check-dsh-pod: [cleanup-members] PASS after 0s
charly check run check-dsh-pod: PASS (steps=14)

The two steps this PR exists to fix, from the live run (.check/check-dsh-pod/2026.267.0014/check-live.log, and identically in check-live-rebuild.log after the fresh charly update):

  PASS  check the dsh web-running verb probes the web UI in-box  [dsh-verb-web-running]  dsh web UI answers on 127.0.0.1:3080 with the launch token
  PASS  check the compiled-in charly dsh status command reaches the deployed box over the reverse channel  [dsh-cmd-status]  exit=0
...
36 steps: 35 passed, 0 failed, 1 skipped

dsh-cmd-status asserts stdout contains web UI: HTTP 200 on 127.0.0.1:3080; the single skip is the verify-only mutating install step (charly check live is verify-only by design).

The bed was run from an opencharly/pod-dsh main checkout. The only local adaptation was charly migrate bumping that checkout's charly.yml schema 2026.249.2125 → 2026.261.1747 — a mechanical one-line version bump the fresh charly's schema floor requires, with no behavioral change (the compiled-in plugin under test lives in the charly binary, not in pod-dsh's manifest).

Rulebook compliance

  • R0 — loaded /charly-internals:git-workflow, /charly-check:check, /charly-tools:dsh-cli.
  • R1 — the stale pin v0.2026237.1419 was the root cause; the bump adopts the merged tag.
  • R3 — plugin-dsh is the single implementation; charly consumes it by pin.
  • R4 — no workaround; the version bump is the sanctioned adoption.
  • R5 — only the stale pin changes; nothing else is touched.
  • R6 — fix/repin-plugin-dsh branched off origin/main, rebased onto current origin/main (b607c1a) after feat(deps): re-pin plugin-build v0.2026266.1755 + plugin-clean v0.2026266.2221 #640 merged; no force-push.
  • R7 / R7a — the consuming build is green and the live R10 bed passed on the final committed tree.
  • R10 — charly check run check-dsh-pod PASS (steps=14) on a charly built from this tree.

Change classification

  • Change class: charly-or-sdk Go (dependency pin of a compiled-in plugin).
  • Verification gate: go build / go vet / gofmt + module-buildinfo + the live check-dsh-pod R10 bed.
  • Attribution tier: fully tested and validated (the changed runtime path — the compiled-in command:dsh — executed live in the bed; full gate green on the final tree).

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Bump github.com/opencharly/plugin-dsh/candy/plugin-dsh v0.2026237.1419 -> v0.2026266.2321 (the merged tag of opencharly/plugin-dsh#5). verbWebRunning + DshStatusCmd.Run now read $DSH_HOME/web-token and authenticate with ?token=<token>.

go mod tidy updates go.sum. The charly binary builds green and its module buildinfo carries the new pin; the compiled-in probe string (web-token / ?token=$T) is present in the binary.

R10 (live, charly rebuilt against the bumped pin):
- check-dsh-pod: PASS (steps=14); dsh-verb-web-running and dsh-cmd-status PASS pre- and post-rebuild.

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 6e02bbca45226886ea1ab4c0c09f1516bbd7e9ea (branch: fix/repin-plugin-dsh)

Security screen: PASS — no embedded directives, no secrets/egress, no guardrail weakening; the only supply-chain change is the intended plugin-dsh pin bump, and the diff's h1: hash matches the body's buildinfo output.
Checklist: All applicable rules PASS or NA. Diff is a minimal, atomic 2-file pin bump (go.mod/go.sum) matching the body's accounting; the R10 bed (check-dsh-pod) exercises the changed compiled-in command:dsh path (dsh-verb-web-running, dsh-cmd-status) on a fresh tree build; evidence is internally consistent (go.sum/buildinfo h1:7R9a52…, module version v0.2026266.2321, ?token=$T string). No comments to reconcile.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 24, 2026 00:24
@github-actions
github-actions Bot merged commit 11944e0 into main Sep 24, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 24, 2026
@aitrawog
aitrawog deleted the fix/repin-plugin-dsh branch September 25, 2026 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants