Repository navigation
feat: relocate the check-dsh-pod bed from opencharly/charly (token-aware dsh) - #4
Conversation
Move the dsh-app box + check-dsh-pod R10 bed into the candy's owning repo. A bed in opencharly/charly cannot exercise this candy as in-development code: the check-bed runner's dev-tree override (SelfSuperprojectOverridePair) points the bed project's OWN superproject's @github refs at the local tree, and a candy owned by another repo is never covered by it. Locally here the box composes the local `dsh` candy with no @github pin, so a bed run always tests this checkout. The box needs an npm builder. The canonical fedora builder chain is FLAT-IMPORTED (the three box files fedora / fedora-nonfree / fedora-builder) rather than the distro-fedora NAMESPACE: the namespace drags in that repo's charly-marketplace candy, which references the remote opencharly/pod-dsh whose candy is ALSO named `dsh`, shadowing this project's local `dsh`. The flat import also gets the RPM Fusion chain (fedora-nonfree) that build-toolchain needs for its codec-devel packages (ffmpeg-devel / x264-devel) — a locally declared minimal builder without rpmfusion failed the image build (`No match for argument: ffmpeg-devel`). The receiving config is migrated to the current schema head, given a defaults.build, and the candy CI pin bumped (v2026.238.1242 -> v2026.256.1316). A standard .gitignore keeps the bed's .check/ scratch and .build/ artifacts out of the tree. R10: `charly check run check-dsh-pod` PASS (steps=14, 566s) — image-build, check-image, deploy, check-live, the dsh: verbs, fresh update, check-live-rebuild all green, teardown clean. Verdict: repo override active (CHARLY_REPO_OVERRIDE=github.com/opencharly/opencharly=...) — about the LOCAL tree. `charly box validate`: OK — checked 11 candies, 4 boxes, 1 deploy, 7 distros, 7 builders; 0 warnings, 0 errors. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated)
…ecks dsh-web-app 0.1.7-rc.1 authenticates every web UI request: each process mints a random launch token and a tokenless GET / returns 401. Bump the pinned @deepseek-ai/dsh to 0.1.7-rc.1 (which also fixes the 0.1.0-rc.6 Cordis-HMR boot crash), capture the launch token from dsh web's readiness line to $DSH_HOME/web-token in the entrypoint, and authenticate every in-box web probe with ?token=<token>. - package.json: @deepseek-ai/dsh 0.1.0-rc.6 -> 0.1.7-rc.1. - dsh-entrypoint: run dsh web to a log, parse the token= readiness line, persist it to $DSH_HOME/web-token (on the dsh volume), then exec socat. - charly.yml: token-aware in-box checks (dsh-web-token / dsh-web-inbox / dsh-web-published) and a 401 auth-fence check on the published port. The two plugin-dsh-owned probes (dsh-verb-web-running, dsh-cmd-status) still fail until opencharly/plugin-dsh#5 lands.
Review — BLOCKHead SHA: Change class: candy/box-config (+ a CI workflow pin bump). Security screen: PASS (no T1–T4 findings; the Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
opencharly/plugin-dsh#5 merged (squash 819f6f9); dsh-verb-web-running and dsh-cmd-status pass once the plugin is compiled into the bed's charly build. Replace the stale 'until it lands' comment.
Review — BLOCKHead SHA: Change class: candy/box-config (+ a CI workflow pin bump). Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Body-only fix (R8 tag-vs-candy-version reconciliation); the empty commit gives the validator a fresh head whose body is already final.
Review — PASSHead SHA: Security screen: PASS (no T1–T4 findings; the Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
) * chore(schema): migrate the pod-dsh charly.yml stamp to 2026.261.1747 The check-dsh-pod bed was relocated into this repo (PR #4) at schema 2026.249.2125. A schema-261 charly requires 261, so `charly check run check-dsh-pod` fails to resolve this project ("config schema 2026.261.1747 is required (found 2026.249.2125)"). Migrate the stamp. `charly migrate` → version 2026.261.1747; the file is otherwise unchanged. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: re-freeze the PR body against the final head * chore(ci): bump the deploy CI charly pin to v2026.266.1654 (schema 261) The deploy workflow built charly from v2026.256.1316 (max schema 256), which cannot load the migrated 2026.261.1747 stamp — the `candy` check failed with "config schema 2026.261.1747 is newer than this charly supports (max 2026.249.2125)". Bump the pin to v2026.266.1654, the tag carrying the schema-261 loader (the same bump layer-charly#7 needed). Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs: re-freeze the PR body (account for the CI pin) * docs: re-freeze the PR body (classify the CI workflow change) --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary of changes
Relocate the
check-dsh-podR10 check bed (and thedsh-appbox it deploys) fromopencharly/charly'scharly.ymlinto this repo, which OWNS the artifact the bed tests — and move the dsh candy to the token-authenticated web UI that@deepseek-ai/dsh 0.1.7-rc.1now requires. Supersedesopencharly/pod-dsh#3(auto-closed by the 5-BLOCK runaway bound); every finding from its BLOCK verdicts is fixed here, and the previously-red R10 gate is now GREEN.WHY the relocation: a check bed must live in the repo that owns what it tests. The check-bed runner's dev-tree override (
proc.SelfSuperprojectOverridePair,spec/proc/repo_override.go) points the bed PROJECT's own superproject's@githubrefs at the local tree. In the umbrella every submodule's superproject isopencharly/opencharly(which hosts no candies), so a candy owned by another repo was never exercised as in-development code while its bed sat incharly. Relocated here, the bed composes the LOCAL candy with no@githubpin.WHY the token work:
dsh-web-app >= 0.1.5-rc.x(here@deepseek-ai/dsh 0.1.7-rc.1) mints a random per-process launch token and authenticates every web UI request — a tokenlessGET /returns 401. The bump also clears the0.1.0-rc.6Cordis-HMR boot crash that failed earlier runs. The candy now captures the token and authenticates every in-box probe. The two probes that read the token live inopencharly/plugin-dsh(a separate repo); they were fixed byopencharly/plugin-dsh#5(MERGED, squash819f6f9), and the bed is green with that plugin compiled in.Changed files — real diff (
git diff --numstat origin/main...HEAD):.github/workflows/deploy.yml(+1/−1): the CI-time charly source checkout pin is bumpedv2026.238.1242→v2026.256.1316..gitignore(new, +16/−0): ignores generated build/check artifacts (.build/,.containerignore,.dockerignore,.check/,output/, editor scratch,*.bak).package.json(+1/−1):@deepseek-ai/dsh 0.1.0-rc.6→0.1.7-rc.1.dsh-entrypoint(+49/−17): rundsh web --no-opento a log, wait for itsdsh web: http://127.0.0.1:3080/?token=...readiness line (bounded, also breaks if the app dies), parse thetoken=value, persist it to$DSH_HOME/web-token(on the dsh volume, so a freshcharly updatere-captures it), surface the web log through the supervisor, thenexec socat. A stale token is dropped first.charly.yml(+212/−15):version: 2026.232.0520→2026.249.2125;defaults:block —platform: [linux/amd64],tag: auto,registry: ghcr.io/opencharly,build: [rpm],merge: {auto: false, max_mb: 128};import:block — the threedistro-fedorabox FILES (fedora,fedora-nonfree,fedora-builder), each pinned@github.com/opencharly/distro-fedora/box/...:v2026.256.1134, flat-imported (not thedistro-fedoranamespace, whosecharly-marketplacecandy back-references the remoteopencharly/pod-dshand would shadow the localdsh);discover:block —path: candy,recursive: true;dshcandy: pin bumped to0.1.7-rc.1, description/skill prose state the token semantics, and its in-box web checks authenticate with?token=$(cat $DSH_HOME/web-token)(in-box 3080, socat 3081) with a 401 auth-fence check on the published port;dsh-appimage entity (composeslayer-nodejs+ the localdshcandy;builder.npm: fedora-builder);check-dsh-poddisposable pod bed with a 12-step plan.Accounting for every diff item (earlier review blocks):
defaults.platform: [linux/amd64]— the bed's base (quay.io/fedora/fedora:43) and the npm builder (fedora-builder) are amd64-only, and the CI runner + this host are amd64. The single-arch default is the arch this repo actually builds and tests on; it is not a per-environment shim (there is no second arch in scope).defaults(tag: auto,registry: ghcr.io/opencharly,build: [rpm],merge.auto: false,merge.max_mb: 128) — the repo previously declared no defaults; a project with a local builder + a buildable image needs them sotag: autoand the rpm format resolve, andmerge.auto: falsekeeps the small box's layers unmerged.discover: [{path: candy, recursive: true}]— declares the repo's candy-discovery root. The repo currently has nocandy/directory: the only candy (dsh) is declared inline incharly.yml, andcharly box validatereports0 warnings, 0 errorswith the block present. It is the standard discovery declaration for a candy-owning repo.ADE reconciliation:
dsh-appis an image/box entity, not a leaf candy. The deterministicplan:thatcharly check box dsh-appexecutes is supplied by the composed leaf candies — the localdshcandy (its 9-step plan: file/command/service/runtime checks) and@github.com/opencharly/layer-nodejs(its own plan).charly box validateaccepts this — real output below:checked 11 candies, 4 boxes, 1 deploy, 7 distros, 7 builders; 0 warnings, 0 errors— andcharly check box dsh-apppassed in this run (seecheck-image), which is the empirical proof that the composed checks run in the build context.Change class
candy/box-config.
Closes / relates to: relates to
opencharly/charly#625— the companion PR that removes this same bed fromopencharly/charlyin the same relocation. It must merge; a surviving duplicate is the R3 violation this move eliminates. The two web probes are owned byopencharly/plugin-dshand were fixed byopencharly/plugin-dsh#5(MERGED, squash819f6f9).Breaking change + rollback: none — additive config in a repo that previously declared none. Rollback is a revert (companion #625 restores the charly-side bed).
How R10-tested
charly box validate+charly check run check-dsh-pod(end-to-end: build → check image → deploy → check live → freshupdate→ check live again → teardown on adisposable: truedeploy).check-dsh-podpod (disposable: true,lifecycle: dev), driven by this branch's own tree viaCHARLY_REPO_OVERRIDE="github.com/opencharly/pod-dsh=/tmp/opencode/rem-dsh-6,github.com/opencharly/plugin-deploy-pod=/tmp/opencode/pdp-250", so the bed composed the LOCALdshcandy (no@githubpin).charly update(stepupdatePASS), then re-ran the live checks (check-live-rebuildPASS) — proven again after a fresh rebuild, not just at first boot.go.workreplace github.com/opencharly/plugin-dsh/candy/plugin-dsh => <plugin-dsh@819f6f9>— so the compiled-incommand:dsh+verb:dshproviders ARE the merged plugin fix.charly check run check-dsh-pod: PASS (steps=14);check-liveandcheck-live-rebuildeach35 passed, 0 failed, 1 skipped. The two previously-failing checks (dsh-verb-web-running,dsh-cmd-status) now PASS.check-dsh-poddisposable: true)0.
charly box validate(the change-class gate), on this tree:1. Real gate output —
charly check run check-dsh-pod:2.
.check/check-dsh-pod/2026.266.2311/summary.yml(verbatim):3. All 36
check-livesub-steps (the two previously-failing checks now PASS):4. Docs-only evidence:
Attribution tier
fully tested and validated — the full R10 gate passed on the final tree (
charly check run check-dsh-pod: PASS (steps=14),ok: true), and the changed runtime paths (the token-capturing entrypoint + the two plugin probes) executed live, including a fresh-rebuild re-run.Harness rulebook compliance — state HOW each is satisfied (or
N/A — <reason>)R0 skills: loaded
/charly-internals:git-workflow(PR-only landing, body-before-push),/charly-check:check(bed model, R10, ADE), and/charly-internals:root-cause-analyzer+/charly-internals:strict-policy(the R1 RCA this work triggered) before acting.R1 RCA + zero warnings: every failure in the gate was root-caused, not parked. The
0.1.0-rc.6Cordis-HMR boot crash was cleared by the0.1.7-rc.1bump; the remaining two tokenless probes were root-caused toopencharly/plugin-dshand fixed in its own repo (#5, merged). The final gate is 0 errors / 0 warnings beyond the one allowlisted dev-worktree notice.R2 no out-of-scope: the two failing probes were a defect in
opencharly/plugin-dsh; they are fixed there (#5), not worked around from this repo, and the gate is now green. Companionopencharly/charly#625carries the matching source-side removal.R3 no duplication: the bed has ONE canonical home — the repo that owns the artifact (the runner's dev-tree override
proc.SelfSuperprojectOverridePairmaps the bed project's own superproject, so a foreign-owned candy is only exercised as in-development code beside its owner). Companion #625 deletes the duplicate.R4 no workaround: no sleep/retry/shim; the token capture is the product-correct path (the web app offers no way to disable auth).
defaults.platformis the repo's real build/test arch, not a per-environment shim.R4a product-first: the cross-repo defect was fixed at its source in
opencharly/plugin-dsh#5, not routed around.R5 hard cutover: the relocation IS the cutover; the charly-side identifier is removed in
opencharly/charly#625. The tokenless probes are replaced (not kept behind a fallback) in both repos, and the bed-plan comment that referencedplugin-dsh#5as "until it lands" was corrected to state the fix has merged (squash819f6f9) and is compiled into the bed's charly build.R6 git safety: feature branch off
origin/main; no force-push; no history rewrite;git statusinspected before destructive actions.R7 runtime gate: the end-to-end
charly check run check-dsh-podgate ran (not justgo test) and PASSED; pasted verbatim above.R8 artifact invariants: the generated
dsh-appimage's labels were verified on the built image with the token-aware binary:candy_versionvs therequire:refs — the tag-vs-candy-version decoupling. Therequire:refs are git TAGS (repo CalVer-at-merge);ai.opencharly.candy_versionreports each candy's own declaredversion:field. They are different numbers by design. Verified against the resolved refs' cached manifests:So
v2026.239.1624→ candy2026.226.1600andv2026.240.0121→ candy2026.159.1324are the correct resolved versions for those refs. The run is on the final tree (head459fbf3descends from the20e549cmerge that brought these pins in). Every label is present and consistent withcharly.yml; thedshskill prose carries the token semantics and the service exec points at the token-capturingdsh-entrypoint.R9 binary == source: the bed ran on a dev binary built from the charly dev tree (
BuildCalVer=token-test2). Schema stamp vs CI pin (reconciliation): the schema stamp2026.249.2125and the CI pinv2026.256.1316are NOT the same version — the stamp is the migration watermark of the binary that authored/migratedcharly.yml, not an equality claim with the CI pin. The pinned CI binary ACCEPTS the file: thecandyworkflow (buildjob) clonesv2026.256.1316, builds charly, and runscharly box validate→ PASS. A futurecharly migraterun with a newer binary would advance the stamp.R10 disposable + coverage: proven on
disposable: truetargets only; the added bed IS the coverage, and it PASSES (14 steps,ok: true) including the fresh-rebuild re-run.RDD / ADE / SDD: RDD — the dev-tree-override premise was verified live (the run composed the local
dshcandy with no@githubpin, andcharly box validate/check boxpassed). ADE — the inlinedshleaf candy carriesdescription:+ a 9-step deterministicplan:;dsh-appis an image that composes it, andcharly check box dsh-apppassed (seecheck-image), proving the composed checks run in the build context. SDD —N/A — no .cue edit.Hard cutover: one atomic commit per repo; companion removal is the matching leg; no Phase-2/TODO in scope.
Kernel/plugin boundary law:
N/A — no core/sdk code; declarative config in the plugin's own repo.Disposable-only autonomy: every destroy/rebuild was on a
disposable: truebed.Clean architecture + Go gates:
N/A for Go — no Go changed in this repo.CHANGELOG:
N/A — this repo's tag-on-merge writes CHANGELOG/<CalVer>.md from this PR body at merge (org convention, verified against recent merges).Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)