Skip to content

feat(dsh): add the deepseek-harness candy + plugin-dsh management plugin; raise the nodejs floor to Node 22 - #271

Merged
atrawog merged 5 commits into
mainfrom
feat/dsh-candy
Aug 14, 2026
Merged

atrawog merged 5 commits into
mainfrom
feat/dsh-candy

Conversation

@atrawog

@atrawog atrawog commented Aug 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Add the deepseek-harness (dsh) candy + plugin-dsh management plugin to charly, and raise the nodejs floor to Node 22 LTS.

The dsh candy (candy/dsh/)

Installs the deepseek-harness dsh CLI (npm package @deepseek-ai/dsh 0.1.0-rc.6, pinned) into a box via the npm builder, and runs the dsh web Web UI as a supervised service.

The loopback-only web UI + socat forwarder. dsh-web-app 0.1.0-rc.6 hard-rejects --host 0.0.0.0 (RCE safety) and binds 127.0.0.1:3080 only. A container's published port maps to eth0, not loopback — so the charly-owned dsh-entrypoint runs dsh web in the background and execs a socat forwarder on 0.0.0.0:3081 → 127.0.0.1:3080. socat cannot share port 3080 (Linux forbids a wildcard + specific listener pair on one port — verified empirically in the pod), so the candy declares port: [3081] and the published-port checks use ${HOST_PORT:3081}.

The plugin-dsh management plugin (candy/plugin-dsh/)

A compiled-in command:dsh + verb:dsh plugin (the agentteams pattern):

  • charly dsh status / profile list / plugin list reach a deployed box over the pod-lifecycle reverse channel (plugin-cmd pattern).
  • The dsh: check verb (version / web-running / profile-list / plugin-list) probes in-box via cc.Exec().RunCapture — the one place plugin-dsh diverges from plugin-agentteams' host-based cc.ResolveEndpoint.

The nodejs floor bump (Node 22 LTS)

The nodejs candy's Ubuntu + Debian sections now install NodeSource node 22.x (was 20.x) — the dsh floor (^22.19.0 || >=24.0.0). Debian drops the separate apt npm (NodeSource bundles npm; the apt package pulls conflicting node-* deps). Fedora/Arch unchanged. A real exit-status check asserts node >= 22.19.0 (no ${...} — charly's variable substitution would silently skip the step).

Skills + marketplace

charly marketplace generate regenerated the dsh + dsh-cli marketplace skills and updated the nodejs skill's DEB row. The plugins gitlink bumps to the merged dsh-skills commit (opencharly/marketplace#166).

Change class

code/config — new candies (candy/dsh/, candy/plugin-dsh/), a nodejs candy floor bump, the compiled-in plugin registration, and the R10 beds. The R10 gate is the beds that compose the changed entities.

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: charly check run <bed> on the disposable beds that compose the changed entities — check-dsh-pod (composes nodejs + dsh) and check-docs (composes nodejs; the Astro build runs on Node 22).
  • Eval beds run:
    • check-dsh-pod | pod | ok | 13 steps | ~6m — the full R10 sequence on a fresh charly update
    • check-docs | pod | ok | 13 steps | ~5m — the full R10 sequence on a fresh charly update
  • Fresh rebuild: the worktree-local binary was rebuilt (task build:binary, charly version = 2026.226.1306) and the beds ran on a fresh charly update, at ZERO warnings.
  • Did the CHANGED code path execute live? yes — the dsh service, the web UI in-box AND through the socat forwarder (${HOST_PORT:3081}), the node floor check, the four dsh: verb methods, and the compiled-in charly dsh status command all executed live in the pod.
  • Concurrency: N/A — no shared-state path (loader/discover/deploy-ledger/podman-store/arbiter) is touched.
# check-dsh-pod — the full R10 sequence (fresh charly update), PASS (steps=13)
charly check run check-dsh-pod: [image-build] PASS after 1m20.547s
charly check run check-dsh-pod: [check-image] PASS after 20.777s
charly check run check-dsh-pod: [deploy-add] PASS after 25.432s
charly check run check-dsh-pod: [config] PASS after 19.162s
charly check run check-dsh-pod: [start] PASS after 15.878s
charly check run check-dsh-pod: [bring-up-members] PASS after 49ms
charly check run check-dsh-pod: [check-live] PASS after 47.848s
charly check run check-dsh-pod: [feature-run] PASS after 19.077s
charly check run check-dsh-pod: [update] PASS after 1m27.925s
charly check run check-dsh-pod: [check-live-rebuild] PASS after 49.829s
charly check run check-dsh-pod: [feature-run-rebuild] PASS after 20.394s
charly check run check-dsh-pod: [cleanup] PASS after 7.052s
charly check run check-dsh-pod: [cleanup-members] PASS after 0s
charly check run check-dsh-pod: PASS (steps=13)

# the critical socat-forwarder checks passed:
#   [plan:candy:dsh:7] status=200 (web UI HTTP 200 in-box on 127.0.0.1:3080)
#   [dsh-web-published] status=200 (HTTP 200 through the socat forwarder via ${HOST_PORT:3081})

# check-docs — the nodejs floor bump (docs-site requires nodejs; Astro build on Node 22), PASS (steps=13)
charly check run check-docs: [image-build] PASS ...
charly check run check-docs: [check-live] PASS after 35.003s
charly check run check-docs: [update] PASS after 1m35.621s
charly check run check-docs: [check-live-rebuild] PASS after 34.93s
charly check run check-docs: PASS (steps=13)

Attribution tier

fully tested and validated — every runtime standard + fresh-rebuild R10 on every affected disposable target (check-dsh-pod + check-docs, both PASS at zero warnings on a fresh charly update); the changed paths (dsh service, socat forwarder, node floor, dsh verbs, dsh command) executed live.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: /charly-image:layer (candy authoring), /charly-internals:plugin (the plugin block), /charly-check:check (the plan/check steps + R10 gate), /charly-internals:git-workflow (landing) loaded and honored.
  • R1 RCA + zero warnings: the RDD finding that socat cannot share port 3080 (wildcard + specific listener pair) was root-caused empirically in the pod and fixed by moving the forwarder to 3081; both R10 beds passed at ZERO warnings.
  • R2 no out-of-scope: the round-1 plugins FAIL surfaced a dangling /charly-coder:mcporter ref root-caused to this candy's skill: entity — fixed in commit 8becf1bc (same cutover); nothing parked.
  • R3 no duplication: plugin-dsh mirrors the agentteams pattern (one shared abstraction); the socat forwarder is the single charly-owned entrypoint.
  • R4 no workaround: the socat forwarder is the designed mechanism (the upstream hard-rejects --host 0.0.0.0); the node floor check is a real exit-status check, no ${...}.
  • R5 hard cutover + grep: the stale /charly-coder:mcporter form is swept — git grep returns no matches outside CHANGELOG.
  • R6 git safety: no destructive git action; the branch advances only by added commits.
  • R7 runtime gate: the end-to-end bed gate ran (charly check run check-dsh-pod + check-docs), not just go test.
  • R8 artifact invariants: N/A — no generation of Containerfile/labels in this change (the marketplace skills are regenerated and drift-clean).
  • R9 binary == source + deps: the worktree-local binary was rebuilt (task build:binary, charly version = 2026.226.1306) and the beds ran on it; socat is a distro package (in the candy's package: list).
  • R10 disposable + coverage: proven on disposable: true targets only (check-dsh-pod, check-docs), fresh rebuild, zero warnings; the bed ships 10 checks that fail without the change (dsh service, web UI in-box + published, node floor, the four dsh: verbs, the dsh command).
  • RDD / ADE / SDD: RDD — the socat/port-3080 assumption was proven on the disposable pod (the first bed run surfaced the EADDRINUSE race; the fix was verified). ADE — both new candies ship description: + plan: with ≥1 deterministic check: (charly box validate passes). SDD — the plugin's schema/dsh.cue is the single source; params/cue_types_gen.go is generated; task cue:gen is a no-op.
  • Hard cutover: one atomic commit per repo; the fix commit 8becf1bc addresses the round-1 plugins FAIL in the same cutover.
  • Kernel/plugin boundary law: the new capability (command:dsh + verb:dsh) is a plugin candy (candy/plugin-dsh/), compiled-in via compiled_plugins:; no core change.
  • Disposable-only autonomy: all destroy/rebuild happened on disposable: true beds.
  • Clean architecture + Go gates: per-tree go build ./... + full go test ./... pass; gofmt clean; the plugin imports only the SDK.
  • CHANGELOG: CHANGELOG/2026.226.1600.md staged (placeholder CalVer — the pr-validator finalizes it).

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)

…gin; raise the nodejs floor to Node 22

The dsh candy (candy/dsh/) installs the deepseek-harness dsh CLI
(@deepseek-ai/dsh 0.1.0-rc.6, pinned) via the npm builder and runs the
dsh web UI as a supervised service. The web app binds 127.0.0.1:3080 only
(dsh-web-app hard-rejects --host 0.0.0.0 for RCE safety), so the
charly-owned dsh-entrypoint runs dsh web in the background and exec's a
socat forwarder on 0.0.0.0:3081 -> 127.0.0.1:3080; socat cannot share port
3080 (Linux forbids a wildcard + specific listener pair on one port), so
the published port maps the auto-allocated host port to container 3081.

The plugin-dsh management plugin (candy/plugin-dsh/) is a compiled-in
command:dsh + verb:dsh plugin (the agentteams pattern): charly dsh
status/profile list/plugin list reach a deployed box over the pod-lifecycle
reverse channel; the dsh: check verb (version/web-running/profile-list/
plugin-list) probes in-box via cc.Exec().RunCapture.

The nodejs candy's Ubuntu + Debian sections now install NodeSource node
22.x (the dsh floor ^22.19.0 || >=24.0.0); Debian drops the separate apt
npm (NodeSource bundles it). A real exit-status check asserts node >=
22.19.0. Fedora/Arch unchanged.

R10: check-dsh-pod (nodejs + dsh) and check-docs (nodejs) both PASS at
zero warnings on a fresh charly update.

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
atrawog added a commit to opencharly/marketplace that referenced this pull request Aug 14, 2026
…NGELOG PR number

- tools/skills/dsh/SKILL.md: /charly-coder:mcporter -> /charly-tools:mcporter
  (regenerated from the corrected candy skill: entity; mcporter is a
  tools-family skill, so the docs-build link resolver hard-errors on the
  old ref)
- CHANGELOG/2026.226.1600.md: the dsh cutover is opencharly/charly#271,
  not #270 (charly#270 is the already-merged agentteams-cli gitlink bump)

Addresses the pr-validator's FAIL on plugins#166 (dangling cross-reference
+ CHANGELOG factual error).

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
…dy skill: entity

/charly-coder:mcporter -> /charly-tools:mcporter (mcporter is a tools-family
skill; the docs-build link resolver hard-errors on the unresolvable ref).
The regenerated SKILL.md rides in the plugins PR (plugins#166).

Addresses the pr-validator's FAIL on plugins#166 (dangling cross-reference
root-caused to this candy's skill: entity).

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
atrawog added a commit to opencharly/marketplace that referenced this pull request Aug 14, 2026
…r the Node 22 floor

Add the dsh + dsh-cli marketplace skills and update the nodejs skill for the Node 22 floor — the skills leg of the dsh cutover (opencharly/charly#271).

- tools/skills/dsh/SKILL.md — the dsh candy's skill: the npm-installed deepseek-harness CLI + the socat-exposed web service (loopback-bound dsh web on 127.0.0.1:3080, socat forwarder on 0.0.0.0:3081).
- tools/skills/dsh-cli/SKILL.md — the plugin-dsh management plugin's skill: the compiled-in charly dsh command tree + the dsh: check verb methods.
- coder/skills/nodejs/SKILL.md — the DEB row now names the NodeSource node 22.x install (npm bundled by NodeSource, the separate apt npm dropped) — the deepseek-harness dsh floor.

All regenerated via charly marketplace generate from the candies' skill: entities; regeneration is a no-op on a clean tree. The round-1 pr-validator FAIL findings (dangling /charly-coder:mcporter ref; CHANGELOG citing charly#270) are corrected in the fix commit.

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
plugins#166 merged as 8eeef66 (tag v2026.226.2115) — the dsh + dsh-cli
marketplace skills and the nodejs skill's Node 22 floor row. The gitlink
moves from the unmerged PR head 890f5242 to the merged main SHA.

Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
@atrawog

atrawog commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

charly/pr-validator — PASS

Fresh independent validation of #271 (feat/dsh-candy @ a3522e9d, base main). All 18 checklist items verified. Verdict: PASS — merge authorized.

Per-item checklist

# Item Verdict Evidence
0 Security (T1–T4) PASS No exfiltration, no scope mismatch, no weakened gate, no supply-chain manipulation; no prompt-injection or coercion attempts
1 PR description PASS Full org template; change summary, motivation, R10 evidence pasted, test plan, footer
2 Change class → gate PASS Code/config class; check-dsh-pod + check-docs beds both ran fresh on final code
3 Attribution PASS fully tested and validated justified — changed runtime paths executed live, both beds fresh at zero warnings
4 R0 skills PASS Skills named and spot-checked against the changed surface
5 R1 RCA + zero warnings PASS EADDRINUSE race (bed 2026.226.1515) RCA'd and fixed (socat → 3081); both final beds zero-warning
6 R2 no pre-existing PASS mcporter dangling ref fixed in same cutover (8becf1b)
7 R3 no duplication PASS agentteams pattern reused as shared abstraction
8 R4 no workarounds PASS socat forwarder is a designed mechanism (loopback-only web bind + wildcard forwarder); bounded readiness probe is legitimate
9 R5 delete legacy PASS mcporter grep self-test clean; no stale references
10 R6/R8/R9 PASS R8 N/A (no Containerfile/label generation); R9 binary rebuilt, version matches source
11 R10 fresh disposable proof PASS Disposable-only, fresh-rebuild, zero-warning; coverage fails without the change
12 RDD/ADE/SDD PASS task cue:gen no-op verified; ADE satisfied (description + ≥1 check per candy); CUE single-source
13 Concurrency N/A No shared-state path touched
14 Hard cutover PASS One atomic squash commit
15 Architecture PASS Placement CORRECT — plugin candy, compiled-in; only charly/*.go change is regenerated plugins_generated.go; no alias, no kit import
16 Disposable-only PASS All destroy/rebuild on disposable: true targets only
17 Go gates PASS gofmt clean, golangci-lint 0 issues, go vet clean, go test green, names unique
18 CHANGELOG PASS Placeholder CHANGELOG/2026.226.1600.md — filename format OK, H1 byte-equal, not on main, no tag collision

Comments considered

None — no review comments were outstanding at validation time.

Cross-PR interactions

Placement verdict

CORRECT — the dsh capability ships as a plugin candy (candy/plugin-dsh/), compiled-in via compiled_plugins:, with the kernel/plugin boundary law respected (regenerated plugins_generated.go only, zero github.com/opencharly/sdk imports in charly/).

R10 evidence

  • check-dsh-pod bed: PASS, 13 steps, 394s, zero warnings (.check/check-dsh-pod/2026.226.1532/summary.yml ok:true)
  • check-docs bed: PASS, 13 steps, 389s, zero warnings (.check/check-docs/2026.226.1543/summary.yml ok:true)
  • RDD finding documented: first bed run 2026.226.1515 (ok:false) surfaced the EADDRINUSE race; fixed and re-verified in 2026.226.1532.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
@atrawog
atrawog merged commit 565e504 into main Aug 14, 2026
@atrawog
atrawog deleted the feat/dsh-candy branch August 14, 2026 21:37
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.

1 participant