Skip to content

fix: bump sdk to v0.2026241.2117 for the machine-venue home-token fix - #3

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/bump-sdk-home-token
Aug 29, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/bump-sdk-home-token

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

Bumps github.com/opencharly/sdk to v0.2026241.2117 (with the spec bump go mod tidy
pulls in) to deliver the machine-venue {{.Home}}-token fix to target: local host deploys.

This plugin walks deploy plans through kit.WalkPlans. Until sdk v0.2026241.2117 that walk
never resolved the deferred {{.Home}} token on a machine venue, so a candy's
home-relative copy: to: ${HOME}/... reached PutFile carrying the literal token and
landed in a directory named {{.Home}} in the venue home — silently, with no error,
while mkdir:, write: and command: from the same candy applied normally (those legs
render shell that expands $HOME on the venue).

The fix itself is opencharly/sdk#188. A plugin is built against its own pinned sdk, so
each plan-walking plugin has to repin for its venue to get the fix — this one covers
the operator workstation profiles that deploy onto a real host. Diff is go.mod + go.sum only.

Refs opencharly/charly#460.

How tested

Module gates on the committed tree:

$ GOWORK=off go build ./...   ok
$ GOWORK=off go test ./...    ok

The delivered behaviour is live-proven, on the sibling venue where a disposable bed can
exercise it without touching a real machine. A minimal candy — one mkdir:, one copy:,
one write: into the same directory — applied to a disposable Arch cloud-image VM bed:

Before the sdk bump:

FAIL  the copied file landed alongside the written one  [copyrepro-copy-landed]  exit=1
$ sudo find / -xdev -name copied.txt
/home/arch/{{.Home}}/copyprobe/copied.txt      # the literal token became a directory

After, full charly check run including the fresh-rebuild leg:

3 steps: 3 passed, 0 failed, 0 skipped   EXIT=0
PASS  the copied file landed alongside the written one  [copyrepro-copy-landed]  exit=0

Why the proof is on that venue and not this one: the code delivered by this bump is
byte-identical (the same kit.WalkPlans), and exercising this plugin's venue means
deploying onto a real host/pod rather than a disposable guest. Running a target: local
deploy against the operator's own workstation to demonstrate a dependency bump would be a
destructive test for no additional information, so the shared seam is proven where it can
be proven safely.

Rulebook compliance

  • R0 (skills) — /charly-internals:git-workflow (branch/PR/landing) and
    /charly-internals:plugin (the plugin's sdk-pin contract) loaded before the change.
  • R1 (RCA every anomaly) — the defect was root-caused before either change was
    written: the OCI target resolves the deferred token via spec.ResolveHome, the
    machine-venue walk had no equivalent. Evidence in copy: step is not applied on a target: vm deploy (mkdir/write/command from the same candy are) charly#460.
  • R2 (no "pre-existing" / "out of scope" split) — nothing is deferred: the fix landed
    upstream (fix: resolve the deferred {{.Home}} token on machine venues sdk#188) and this repin delivers it. The sibling plugins that walk
    plans through the same seam are repinned in their own PRs, not parked.
  • R3 (no duplication) — no code is added here at all; the fix lives once, in the sdk.
    The repin is how this module consumes it rather than carrying a local copy.
  • R4 (no workarounds) — no pin override, no replace, no vendored patch: a released
    upstream tag consumed normally.
  • R4a (fix the product first) — done in that order: the product fix is the sdk change;
    this is only its delivery.
  • R5 (hard cutover) — N/A — nothing is deprecated or replaced; a version pin moves
    forward with no old path left behind.
  • R6 (git safety) — git status inspected before staging (diff is exactly go.mod +
    go.sum); no force-push, no hook bypass, feature branch only.
  • R7 (prove the gate) — module gates plus a bed run, pasted above; not a green
    git status.
  • R9 (deployed binary matches source) — charly host-builds this plugin from the pinned
    candy source on connect, so the running provider is rebuilt from exactly this go.mod;
    the before/after bed pair demonstrates that rebuild changing behaviour.
  • R10 (fresh disposable proof) — the bed evidence comes from a charly check run
    including its fresh-rebuild leg, from the committed tree.
  • RDD — the one high-risk assumption (that the token, not the step, was the defect) was
    proved on a disposable VM before any code changed, by locating the delivered file at
    /home/arch/{{.Home}}/copyprobe/copied.txt.
  • ADE — N/A — no candy authored here; the reproducer candy's plan: carries the
    acceptance checks and lives with the issue.
  • SDD — N/A — no schema, CUE, or generated code touched.
  • Concurrency mandate — N/A — a single serial dependency bump; nothing parallelisable.
  • Architecture gate / placement — correct outermost layer: the behaviour fix belongs in
    the sdk seam every plan-walking plugin shares, and the only thing that belongs in this
    repo is the pin that consumes it. No core change.

Change classification

  • Change class: dependency bump (delivers an upstream bug fix); no source change here.
  • Verification gate: go build / go test on the module, plus the before/after
    charly check run R10 pair proving the delivered sdk behaviour.
  • Attribution tier: analysed on a live system — the delivered fix ran live with
    retained output on a disposable bed, but this plugin's own venue was not exercised (see
    above), so fully tested and validated would overstate it.

Assisted-by: Claude Code claude-opus-5[1m] (analysed on a live system)

This plugin walks deploy plans through kit.WalkPlans, which until sdk
v0.2026241.2117 never resolved the deferred {{.Home}} token on a machine venue. A
candy's home-relative copy: to: ${HOME}/... therefore reached PutFile carrying the
literal token and landed in a directory named "{{.Home}}" in the venue home -
silently, while the sibling mkdir/write/command verbs applied normally.

The fix is in the sdk (opencharly/sdk#188); this repin delivers it to target: local host deploys.

Refs opencharly/charly#460.

Claude-Session: https://claude.ai/code/session_016fnPmYiC6ZkqXSi6D8PAP6
@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: d88bc3c863ed (branch: fix/sdk-bump-home-token)

Security screen: PASS — dependency version bump only (go.mod/go.sum); no scope mismatch, no secrets/exfiltration, no weakened guardrails, no unexpected ref changes. The sdk/spec pins move to plausible released tags consistent with the stated upstream fix.

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body fully accounts for the diff (go.mod + go.sum only), names the dependency-bump gate, supplies pasted before/after bed output with fresh-rebuild leg, and claims analysed on a live system — correctly not overstating to fully tested and validated since this plugin's own venue (a real host) was not exercised. Ends with the *Assisted-by:* footer.
  • R1 — RCA provided for the defect (machine-venue walk lacked spec.ResolveHome); before/after bed shows FAIL→PASS, zero surviving warnings.
  • R2/R3/R4/R4a/R5 — Nothing deferred; no duplication (fix lives once in sdk); no workarounds (no replace/pin-override/vendored patch); product fixed first; N/A for hard cutover.
  • R6/R9/R10 — git status checked; host-rebuild-from-pinned-source asserted; disposable Arch VM bed with fresh charly check run, internally consistent output (3 steps: 3 passed, exit=0).
  • RDD/ADE/SDD — High-risk assumption proved on disposable VM; ADE/SDD N/A (no candy/schema authored).
  • Architecture gate — placement: CORRECT; the fix belongs in the shared sdk seam, the pin in this plugin; no core change, no aliases, no new core imports.
  • B18 — No Go source changed; N/A.

The sibling-venue proof is soundly justified: the delivered code is byte-identical (kit.WalkPlans), and exercising this plugin's target: local venue would be a destructive deploy against a real workstation — the shared seam is proven where it can be proven safely.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 21:25
@github-actions
github-actions Bot merged commit 1692689 into main Aug 29, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@aitrawog
aitrawog deleted the fix/bump-sdk-home-token branch September 25, 2026 19:22
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