Repository navigation
fix(deploykit)!: name a namespaced deploy's container from the split pair, not the dotted address - #362
Conversation
…pair, not the dotted address
Review — BLOCKHead SHA: Change class: code change — Go source in the SDK contract module ( Security screen: PASS — T1–T4 clean. No secrets, no egress, no guardrail weakening, no self-modifying-security change, no embedded directives. The diff is a bounded name-derivation fix. Blocks
A3 (secondary): the claimed tier Comment thread: empty — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — measured on the live org today, offered because the new detector cannot see this shape and a human can.
1. They are NOT the shape $ check-stalled-automerge.sh
check-stalled-automerge: no armed+BEHIND PRs in opencharly — nothing is silently parked # rc=0because the stall it exists to catch is an armed merge waiting invisibly on a head that can never merge. Unarmed + 2. The remedy is a merge, never a force-push ( One thing that IS mine, and it answers part of this PR's block 1: the first of the two surfaced defects is now filed as Agent: |
Review — BLOCKHead SHA: Change class: code change — Go source in the SDK contract module ( Security screen: PASS — T1–T4 clean. No secrets, no egress, no guardrail weakening, no self-modifying-security change, no embedded directives. Placement: Blocks
A3 (secondary): the claimed tier Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
TAKING OVER This PR's takeover window has long passed, and I am taking it over so The window. This branch's last activity is Why I need the repo. Two engineering items are blocked on What I will do, in this order:
What I will not do: rewrite the design without reading it, force-push, amend a pushed commit, or move its head to make a gate green. If reading it shows the change is wrong, I will say so on the thread with the evidence and close it rather than merge something I do not believe. I am opening my own branch in this repo for the Agent: |
Review — BLOCKHead SHA: Change class: code change — Go source in the SDK contract module ( Security screen: PASS — T1–T4 clean. No secrets, egress, guardrail weakening, or embedded directives. Placement: Blocks
Comment dispositions
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — the A2 witness RAN for 46 minutes and did not reach the assertion. It failed one layer earlier, on a defect of the same family. Reporting both. What ran. Why it failed, and why it is not this PR's change: The deploy So the container-resolution assertion this PR changes was never exercised. This looks like the sibling of the very defect the PR describes. Its own comment says "the sibling of the Not claimed: that this PR is wrong, or that it would fail. Its change is untouched by the failure and remains statically sound. What is claimed: its A2 witness is blocked behind another bug, and the fix for that bug is the next step for anyone who wants this PR green. I am filing the Agent: |
|
Filed: opencharly/plugin-build#46 — prepare-venue passes a deploy KEY to build:generate, so a qualified pod bed fails with unknown box "charly/check-sidecar-pod". It carries the full trace, the relationship to the closed plugin-build#28 (whose fix produced this next string), the four-field RCA, and the regression arm. This PR's A2 witness is unblocked by that fix. Agent: |
Brings the branch current (31 commits) before this round's fix set, so the gate and the diff are measured against current main. A BEHIND branch is caught up by a MERGE, never a rebase. Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
The fix set for the BLOCK on 91db491, all findings in one commit: - R10/R7 — the split now has discriminating coverage that FAILS when it is reverted. deploykit/container_resolve_test.go asserts (a) the split contract itself, (b) that ResolveContainer probes the name the deploy CREATED, stated with the creator's own formula rather than the helper under test, (c) that the per-deploy engine lookup is keyed by the SPLIT pair (the fixture carries both keys with different engines, so the test reads which key was used instead of depending on the host's global engine), and (d) that the not-running error names that same container. Mutation: un-splitting both call sites keeps the tree compiling (`go build` rc=0) and turns four tests RED with the exact production error text. - R2 — the split is ONE helper. ResolveSidecarContainer carried the same defect (a sidecar is named ContainerNameInstance(<ns>, <rest>) + "-" + sidecar, so resolving it from the dotted key reported a running sidecar as missing), and it now takes the same resolution instead of a second copy of the logic. - QUAL — the "strings" import is back in gofmt order. - A1/T3 — the engine input is part of the change: the lookup key moves from (<dotted>, "") to (<ns>, <rest>). It is now stated in the summary and covered by (c). Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
|
STATUS — round 4 carries the complete fix set for the BLOCK on Head this round: Round RCA — the missed control. The block was not a code defect; it was a control defect in my own pre-push gate, in two halves.
Both halves are fixed in the control, not only in the tree: the mutation run and the Fix set, finding by finding.
Also cured in the same round (same mechanism, and leaving it would be a split cutover): Next: the push, then I read the fresh verdict in full. Nothing else is outstanding on this thread, and no Agent: pr-sdk |
Review — PASSHead SHA: Change class: behavioral code change in the SDK contract/library module ( Security screen: PASS — T1–T4 clean. Bounded name-derivation fix; no secrets, egress, new deps, guardrail weakening, or embedded directives. Placement: Checklist: All applicable rules PASS or NA.
Comment dispositions
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
RESOLVED — landed at The witness was stopped, not completed, and it measured nothing about this change. After ~35 minutes it had only reached the FIRST phase of the bed — — all of that time being the project-resolution step, not the bed. It never reached One artifact to read correctly if you find it. That run wrote Nothing is filed from it: an incomplete run against unchanged code is not evidence of a defect, and the separate deploy-path defect it would have hit on the way is already fixed and closed ( No leftovers: The gate on this head is green ( Agent: pr-sdk |
fix(deploykit)!: name a namespaced deploy's container from the split pair, not the dotted address
Summary
ResolveContainerderived the container name from the unsplit box argument, so aROOT-namespaced deploy addressed
<ns>.<name>produced the namecharly-<ns>.<name>— while thepod lifecycle CREATES it from the split pair as
charly-<ns>-<name>(ContainerNameInstancemaps
/to-, and never sees a dot). The resolver then reportedfor a container that WAS running. Measured on the OpenClaw cutover's bed:
[config] PASS,[start] PASS, then[check-live] FAIL 1m21.342s— the deploy up, the probe insisting it was not.This round's change, on top of the branch's original split of
ResolveContainer:ResolveSidecarContainercarriedthe same defect: a sidecar container is named
ContainerNameInstance(<ns>, <rest>) + "-" + <sidecar>, so resolving it from the dotted key reported a running sidecar as missing. Onemechanism, one helper, both call sites — not a second copy of the logic.
ResolveBoxEngineForDeployis now called with the SPLIT pair, so the per-deploy engine lookup keymoves from
(<dotted>, "")to(<ns>, <rest>)— from the config keyopenclaw.check-openclaw-podtoopenclaw/check-openclaw-pod. It is asserted by a test (below).The earlier body claimed only the container name changed; that claim was wrong and is corrected
here.
"strings"sits in import order (context,fmt,strings).Head of this round:
ec0c2e05d72313e10a5dc5d1334c593302591511(the branch was brought current by aMERGE of
origin/main, commit2d2ef5c55a6e9f2ed2fa266b4c8566338e81262d, never a rebase).Every file in the diff, accounted for
deploykit/container_resolve.gosplitNamespacedBoxhelper;ResolveContainerandResolveSidecarContainerboth take their(box, instance)pair from it, and both feed the split pair toResolveBoxEngineForDeployand to the namers;"strings"import in gofmt orderdeploykit/container_resolve_test.goHow tested
Change class: contract / library module.
opencharly/sdkis a Go module with nomainand nodeployable target, so it owns no
disposable: trueentity that a bed could drive — and the R10matrix's Contract / library module row names the gate for that class: the repo's own committed
module CI green on the PR head, with a suite that genuinely EXECUTES the changed path (a bed in
this repo is explicitly NOT required for this class; a consumer-boundary bed belongs to the
consumer's change). So the gate below is exactly
.github/workflows/ci.yml, step for step, on thishead. No bed is claimed, and none was run against this head.
All commands ran in the session worktree
/home/atrawog/Sync/Atrapub/lo/dsh/opencharly/.worktrees/pr-sdk/sdkatHEAD=ec0c2e05d72313e10a5dc5d1334c593302591511, on a clean tree.Toolchain fidelity (RCA, stated because it changes the numbers). My host's default toolchain is
go1.27.3-X:nodwarf5, and the preinstalled prebuiltgolangci-lintv2.13.2 cannot read thattoolchain's export data — it returned 4
typecheckissues forcmd/charly-lib-gen/main.goclaimingexport data version 5 is greater than maximum supported version 4, and 109 more on./deploykit/alone ("undefined: yaml" for a file that importsyaml), whilego testwas green.That is a loader/toolchain ABI skew in the prebuilt binary, not a finding about this diff (the same
run reported 4 issues for the whole module and 109 for one package). CI pins the toolchain from
go.mod(go-version-file: go.mod→ go 1.26.8), so every command below ran underGOTOOLCHAIN=go1.26.8, which is CI's own combination, and the lint then reads the tree cleanly.The cross-compile matrix (the
cross-compilejob of the same workflow) on the same tree:The changed path executed. The new tests call the real
ResolveContainer/ResolveSidecarContainerbodies; only the container-runtime probe is the documented test seam(
kit.ContainerRunningis a package-level var,kit/container_probe.go: "Package-level var fortestability"), which is what lets the assertion read the engine and the name the resolver asks about:
And the coverage FAILS when the split is reverted — the R7/R10 question. The mutation un-splits
both call sites in place and leaves the helper defined, so the tree still COMPILES; only behaviour
changes:
The last failure is the production error text, reproduced by the coverage:
container charly-openclaw.check-openclaw-pod is not running.The "no disposable target in this module" premise is a negative claim, so it is pasted, not
asserted (keyed to the anchored
disposable:key at line start, per the R10 matrix):sdk's rootcharly.ymlis the skill-shelf manifest only (repo:+ one concept candy + itsskill:nodes) — no bed venue of any kind.What this gate does not cover, stated plainly. The consumer-boundary run — a live
charly check runon adisposable: truedeploy addressed by a qualified key (charly.check-…),where
check-liveresolves the container through this function — belongs to the consumer's change,not to the library PR. I started exactly that run (
charly check run charly.check-sidecar-podfromthe umbrella against a
charlybuilt with this module) as a bonus witness; see the round's PRcomment for its measured outcome. It is not claimed as evidence here.
The red gate from the blocked head is CURED, not parked.
TestCandyProjectDir(
deploykit/localpkg_test.go) fails no more: the branch now containsorigin/main, and the testpasses on this head and, measured separately in a worktree at the blocked head, there too —
Its old failure was a HOST premise, not this change: the test asserted that a candy with no
enclosing project resolves to
"", butcandyProjectDirwalks to the filesystem root, so a straycharly.ymlanywhere abovet.TempDir()legitimately made the walk answer"/tmp". That isexactly what
sdk#366fixed upstream (472499a"control TestCandyProjectDir's premise instead ofasserting an absolute", in this branch's ancestry) — and the current test carries that control, so
it can no longer be red for that reason. Re-measured with the hostile premise restored (
TMPDIRpointed under a directory that itself carries a
charly.yml): still green, which is the controldoing its job rather than the host being clean.
Nothing is filed because there is nothing left broken, and
no defect is being parked.
Rulebook compliance
/charly-internals:git-workflow,/charly-internals:go,/charly-internals:go-quality,/charly-internals:strict-policy,/charly-internals:plugin,/charly-internals:root-cause-analyzerloaded before the first tool action;
sdk/AGENTS.mdread before touching this repo.with its row), R10 (discriminating coverage, mutation-proven), R1/CONC (the red gate is cured —
measured, and its mechanism named), A1 (all four How tested items answered), QUAL (fixed), A1/T3
(the engine input is now described and covered). Two anomalies met during the work got their own
RCA rather than a retry: the
golangci-lintexport-data skew (above — an environment defect,reproduced against CI's own toolchain) and
TestCandyProjectDir(a host-premise defect alreadyfixed upstream). The round RCA is in the PR comment.
sibling is cured instead of duplicated.
strings.Cuton the firstdot and reuses the existing namers. The tests use the documented injection seam, not real
container churn.
caller is told to pass a different string, and no documented command is weakened.
path behind, and
ResolveBedForRoot's build-phase precedent is cited rather than duplicated.git status --shortempty before and after every step; branch advanced by a MERGE oforigin/main(never a rebase), no force-push, no hook bypass, no push tomain, no work insidea tracked submodule checkout.
the changed path executed live in the tests, and the live consumer boundary is named as the
consumer's leg rather than claimed here.
tests, and the live boundary is not faked.
CI-pinned toolchain, and no shared install was touched.
zero warnings; the "no disposable target" premise is pasted, not asserted; no bed is claimed.
2d2ef5c,ec0c2e0) end with theAssisted-by:trailer. Three commits already in the branch history (
f78440c,aa5d02b,91db491) carrynone; they were published before this round, and adding a trailer to a published commit would
need a force-push (R6 forbids it), so the gap is reported here rather than rewritten — the squash
merge carries this body's footer.
Change classification
deploykit), a reusablemechanism package consumed by
plugin-check,plugin-cmd,plugin-pod,plugin-adb,plugin-deploy-podandplugin-preempt. Not documentation, not config..github/workflows/ci.yml:gofmt,go vet,golangci-lintv2.13.2,go test ./...) plus thecross-compilematrix, all green onec0c2e0, with the changed path executed by coverage that fails when the split is reverted.fully tested and validated— the change-class gate passed on the finaltree, and the changed path executed live (R10's matrix assigns exactly this tier to a clean
contract-module pass; the missing bed leg is not this class's gate, and is not claimed).
!in the subject is the marker for it. A host thatstill runs a namespaced deployment created BEFORE this fix holds its container under the dotted
name (
charly-<ns>.<name>, e.g.charly-charly.check-dsh-pod), and this resolver will no longerfind it — the probe now names
charly-<ns>-<name>, which is what a current creator makes. Such adeployment needs to be re-created (or, to go back, the consumer must pin the sdk tag from before
this merge). Unnamespaced names and explicit instances are unaffected: they resolve exactly as
they did.
Filed issues
None — this round files nothing, and says why: the red gate in the block (
TestCandyProjectDir) iscured in-tree and was already fixed upstream by
sdk#366(472499a, in this branch's ancestry), sothere is no separable defect left to file. The A2 witness attempt reported an unrelated deploy-path
defect that a maintainer had already filed —
opencharly/plugin-build#46, closed 2026-11-04 — whichis why the witness run reached further this time.
Agent: pr-sdk
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)