Skip to content

fix(deploy-pod): advance the spec/sdk pins and name a failed project connect - #2

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/spec-sdk-pin-skew
Aug 29, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/spec-sdk-pin-skew

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

plugin-deploy-pod pinned spec v0.2026232.521 and sdk v0.2026236.18 while charly has advanced to day-241 spec. Because deployKeyToBoxLocal degrades to "" on any connect/load failure, that pin skew did not present as a version error — it presented as a bogus missing image:

charly: error: command "config": deploy:pod config: InvokeProvider deploy:pod op=config-setup:
  rpc error: code = Unknown desc = image not found in local storage:
  check-devops-layer:check-devops-layer-2026.241.0938

That ref was never built. The image that was built is devops-layer-app:check-devops-layer-2026.241.0938 — the box name had silently degraded to the deploy key, because the project-fallback leg (hostBuild → LoadUnifiedViaExecutor → ProjectFleetConfig) failed on the wire-shape skew and returned "", which resolveDeployBoxNameLocal cannot distinguish from "this project declares no entry".

Three changes:

  1. Advance the pins to spec v0.2026241.931 / sdk v0.2026241.933.

  2. Name the cause where it is known. A genuine transport/decode failure is not the same as "no entry declared"; conflating them is what turned a pin skew into a misleading image not found. The two error legs now warn with the deploy key, the underlying error, and the fact that a pin skew is the usual cause. The no-entry paths stay silent, so no existing quiet fallback becomes noisy. The two executor-backed legs become package-level vars (the seam idiom the sibling config_setup paths already use) so the failure branches are reachable from a test.

  3. Tests and one required migration. New resolve_ref_connect_failure_test.go drives both failure branches and pins the no-entry path silent. candy_by_name_test.go is repointed from spec.CandyMapKey to specfleet.CandyMapKey — the helper moved to the spec/fleet package in the spec this branch advances to, so the package does not compile at the new pins without it.

How tested

A disposable: true pod bed (check-devops-layer) on a fresh rebuild, run two ways on the same machine and fixture — the only difference is whether this branch supplies the plugin.

Control — plugin at its released pins (v2026.239.1640), i.e. the skew:

charly check run check-devops-layer: [image-build] PASS after 24.555s [warnings=2 cache=49/77]
charly check run check-devops-layer: [check-image] PASS after 16.481s [warnings=1]
charly check run check-devops-layer: [deploy-add] PASS after 1.473s [warnings=1]
charly check run check-devops-layer: [config]     FAIL after 1.03s: exit 1
charly check run check-devops-layer: FAIL (steps=4)

with, in deploy-add.log, the correct image already resolved and persisted:

Overlay image ready: devops-layer-app:check-devops-layer-2026.241.0938

— proving the image existed and only the read-back was wrong.

This branch (CHARLY_REPO_OVERRIDE=github.com/opencharly/plugin-deploy-pod=<checkout>):

stage                    ok     errors  warnings  allowlisted
image-build              true   0       0         1
check-image              true   0       0         1
deploy-add               true   0       0         1
config                   true   0       0         1
start                    true   0       0         1
bring-up-members         true   0       0         1
feature-run              true   0       0         1
update                   true   0       0         5
check-live-rebuild       true   0       0         1
feature-run-rebuild      true   0       0         1
cleanup                  true   0       0         1
cleanup-members          true   0       0         15

total warnings: 0
charly check run check-devops-layer: PASS (steps=13)

The [update] stage is charly's destroy-and-rebuild leg, so the pass covers a fresh rebuild, not a warm reuse. errors=0 and warnings=0 across all 13 stages; the allowlisted entries are the dev/worktree-build notice (plugin-check v0.2026241.920), one per charly invocation.

The diagnostic branches, driven directly. The warnings only fire on a transport/decode fault, which a passing bed cannot reach — so they are proved by tests that drive those branches, with a two-way control showing each fails without the code:

=== WITHOUT the warning code ===
--- FAIL: TestDeployKeyToBoxLocal_ConnectFailureIsNamed (0.00s)
    stderr does not name "Warning:"
    stderr does not name "check-devops-layer"
    stderr does not name "wire shape mismatch"
    stderr does not name "spec/sdk pins"
--- FAIL: TestDeployKeyToBoxLocal_LoadFailureIsNamed (0.00s)
    stderr does not name "Warning:"
    stderr does not name "check-devops-layer"

=== WITH it restored ===
ok  github.com/opencharly/plugin-deploy-pod/candy/plugin-deploy-pod

A third test, TestDeployKeyToBoxLocal_NoEntryStaysSilent, pins the ordinary no-entry path SILENT, so projects without a fleet entry do not start emitting warnings. All three assert the degraded return value is unchanged — this PR changes what is reported, not what is returned.

Full suite and vet at the new pins:

$ go build ./... && go test ./... && go vet ./...
ok  github.com/opencharly/plugin-deploy-pod/candy/plugin-deploy-pod  0.712s

That suite pass required one migration: spec.CandyMapKey moved to the spec/fleet package in the spec this branch advances to, so candy_by_name_test.go is repointed at specfleet.CandyMapKey. Without it the package does not compile at the new pins.

Rulebook compliance

  • R1 — the failure was root-caused before remediation, and the first hypothesis was discarded on evidence: the fixture's stale version: was ruled out by migrating it to 2026.240.1943 and re-running, which reproduced the failure unchanged. A spec regression was ruled out by bisect (charly's own pinned spec passes). The pin skew is what the two-way control isolates.
  • R2 — no parking. The surfaced diagnostic defect (silent degradation) is fixed in this PR, not deferred.
  • R3 — no duplication; the warning uses the file's established fmt.Fprintf(os.Stderr, "Warning: …") idiom.
  • R4 — no workaround: the pins are advanced rather than the symptom papered over.
  • R6 — no force-push, no direct push to main, no hook bypass.
  • R7/R10 — the gate is the bed run above, re-run on the FINAL COMMITTED TREE (run 2026.241.0951, PASS (steps=13), 0 errors / 0 warnings).
  • B12 — the three new tests each fail without the behavior they cover; the failure output is pasted above.

Change classification

  • Change class: code/config — dependency pin advance + a diagnostic message on two existing error legs.
  • Verification gate: charly check run check-devops-layer, a disposable: true pod bed, fresh rebuild, PASS (steps=13) at zero errors and zero warnings, with a two-way control isolating this branch as the variable.
  • Attribution tier: analysed on a live system — capped deliberately, and the cap is the honest one. The pin advance did execute live on a disposable target against a fresh rebuild with a two-way control (PASS (steps=13), 0 errors / 0 warnings, run 2026.241.0951). The diagnostic branches did not: they fire only on a transport/decode fault, so a passing bed cannot reach them, and they are covered by unit tests with their own two-way control rather than by live bed execution. Unit coverage is not the bed gate, so the whole change takes the lower tier.

Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)

…connect

The plugin pinned spec v0.2026232.521 / sdk v0.2026236.18 while charly has
advanced to day-241 spec. Because deployKeyToBoxLocal degrades to "" on ANY
connect/load failure, that skew presented as a bogus

  image not found in local storage: <deploy-key>:<deploy-key>-<calver>

naming a ref nothing ever built -- the box name had silently degraded to the
deploy key. Advance the pins, and name the cause where it is known instead of
conflating a transport failure with "this project declares no entry".

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

Copy link
Copy Markdown

Review — BLOCK

Head SHA: d28809edad13 (branch: fix/deploy-pod-pin-advance)

Change class: code/config — dependency pin advance (spec/sdk) + diagnostic warnings on two error legs in resolve_ref.go.

Security screen: PASS — no scope mismatch (all three files accounted for in the body), no secrets/exfiltration, no weakened guardrails, no supply-chain concern beyond the stated pin advance.

Blocks

  1. A3 — inflated attribution tier. The body claims fully tested and validated, but the NEW/CHANGED code paths in this PR — the two if err != nil { fmt.Fprintf(os.Stderr, "Warning: …") } branches added in candy/plugin-deploy-pod/resolve_ref.go — never executed live. They only fire on a connect/load failure, and the passing bed run (PASS (steps=13), errors=0) had no such failure; the control run used the released pins, not this branch's code, so it exercised the old (pre-warning) path. Per A3, "a change whose changed branch never ran live is at most analysed on a live system". The pin advance itself is fully validated, but the diagnostic code is not. Downgrade the tier to analysed on a live system (or add evidence that the warning branches executed against the fresh rebuild).

Verdict: BLOCK


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

View action run

The two diagnostic warnings only fire on a transport/decode fault, which a
passing bed cannot reach. Hold the two executor-backed legs as vars -- the seam
idiom the sibling config_setup paths already use -- so a test can drive their
failure branches directly, and assert the cause is named while the degraded
return value is preserved. A third test pins the no-entry path SILENT so
ordinary projects without a fleet entry do not start warning.

Also migrate candy_by_name_test.go onto spec/fleet.CandyMapKey: the helper moved
package in the spec advanced by this branch, so the pin bump does not compile
without it.

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

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 89e86476d7f767b55b08a990532dbb15ebded095 (branch: fix/deploy-pod-pin-advance)

Change class: code/config — spec/sdk pin advance + diagnostic warnings on two error legs in resolve_ref.go + unit tests.

Blocks

  1. A3 — inflated attribution tier (survives re-derivation). The body still claims fully tested and validated and the footer repeats (fully tested and validated), but the NEW/CHANGED code paths — the two if err != nil { fmt.Fprintf(os.Stderr, "Warning: …") } branches added in candy/plugin-deploy-pod/resolve_ref.go — never executed live against a fresh rebuild. The bed run passed with errors=0/warnings=0, so neither failure branch fired; the control run used the released pins, not this branch's code. The new resolve_ref_connect_failure_test.go drives the branches via the seam vars, which is good R10 unit coverage, but it is not live bed execution. Per A3, a change whose changed branch never ran live is at most analysed on a live system. Downgrade the tier (and the footer) accordingly.

  2. A1 — body does not account for every diff item. The body's Summary names only the pin advance and the diagnostic warnings. It omits the new candy/plugin-deploy-pod/resolve_ref_connect_failure_test.go and the candy/plugin-deploy-pod/candy_by_name_test.go change (spec.CandyMapKey → specfleet.CandyMapKey). Add both to the summary.

Comment intake

  • github-actions[bot] A3 block (id 5461634822): verified-blocking — re-derived against the current body/diff; the added unit test does not satisfy A3's live-execution requirement, so the tier remains inflated.

Verdict: BLOCK


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

View action run

@atrawog

atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor Author

Independent corroboration on a second bed, in a different repo

The body's evidence uses one fixture bed. The same defect has now reproduced on an unrelated bed (check-pod) in distro-fedora, driven by the five in-flight schema migrations rather than by anything I constructed — which rules out the fixture as the source.

With the released plugin (v2026.239.1640), against a tree stamped at the new schema:

charly check run check-pod: [image-build]  PASS after 2m15.808s [allowlisted=1 cache=23/138]
charly check run check-pod: [check-image]  PASS
charly check run check-pod: [deploy-add]   PASS
charly check run check-pod: [config]       FAIL after 3.513s: exit 1
charly check run check-pod: FAIL (steps=4)

deploy:pod config: InvokeProvider deploy:pod op=config-setup:
  resolving project-declared volumes: .../charly.yml:
  config schema 2026.240.1943 is newer than this charly supports (max 2026.232.0520).

That is this plugin's own spec pin (v0.2026232.521, ceiling 2026.232.0520) refusing a project the rest of the toolchain has already moved past — exactly the skew this PR closes.

This also sharpens why the diagnostic half of the change is worth having. The two legs behave differently on the same underlying fault:

leg behaviour on the schema-ceiling fault
volume resolution reports it plainly, naming the schema and the ceiling — actionable
box-name resolution (deployKeyToBoxLocal) swallowed it, degraded the box name to the deploy key, and surfaced image not found in local storage: <deploy-key>:<deploy-key>-<calver> — a ref nothing ever built

I spent real effort chasing the second message before the first one turned up on another bed and named the cause outright. The warnings added here make the second leg say what the first already says. The tier stays analysed on a live system: this corroboration is more live evidence that the pin advance is right, but it still does not execute the new warning branches on a bed, which is what a higher tier would require.

Landing order: this PR must merge and tag before distro-arch#30, distro-cachyos#32, distro-debian#20, distro-fedora#43 and distro-ubuntu#20, or every pod deploy in those repos fails at charly config. That constraint is now recorded on all five.

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 89e86476d7f767b55b08a990532dbb15ebded095 (branch: fix/deploy-pod-pin-advance)

Security screen: PASS — no scope mismatch (all 5 diff files accounted for in the body), no secrets/exfiltration, no weakened guardrails, no supply-chain concern (pin advance is within the opencharly org's own sdk/spec modules).

Checklist: All applicable rules PASS or NA.

  • A1 — body accounts for every diff item (pin advance, diagnostic warnings, new test file, candy_by_name_test.go migration); How-tested names the gate, disposable target, fresh rebuild, pasted output, and two-way control; footer ends with the exact *Assisted-by: Claude Code Anthropic Opus 5 (analysed on a live system)* line.
  • A2/A3 — code/config gate met with a fresh-rebuild disposable: true bed (check-devops-layer, PASS (steps=13), 0 errors/0 warnings). Tier analysed on a live system is the honest cap: the pin advance executed live, the diagnostic branches (unreachable from a passing bed) are unit-tested with a two-way control — not inflated.
  • B5/B6 — R1 RCA thorough (pin skew → box-name degradation → bogus image not found), first hypothesis ruled out on evidence; R2 no parking, defect fixed in-tree.
  • B12 — disposable-only, fresh rebuild ([update] destroy-and-rebuild leg), zero warnings, three new tests each fail without the behavior (pasted two-way control). Internally consistent.
  • B16 — placement CORRECT: all changes live in the candy (plugin layer); seam vars are a test idiom, no core import of sdk kits, no alias file.
  • B18 — gofmt-clean, no dead code, imports used.

Comment intake:

  • github-actions[bot] A3 inflated tier (id 5461634822): stale-superseded — body downgraded to analysed on a live system.
  • github-actions[bot] A3 + A1 (id 5461656928): stale-superseded — tier downgraded; body now accounts for the test file and candy_by_name_test.go.
  • atrawog second-bed corroboration (id 5461675702): verified-non-blocking — consistent with the body; tier stays analysed on a live system.

Verdict: PASS


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

View action run

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