Repository navigation
fix(check): the ephemeral-register-roundtrip assertion is pre-Cutover-C (W3) - #649
Conversation
…-C (W3 RCA) The bed `check-sidecar-pod`'s `ephemeral-register-roundtrip` step asserted the DOTTED address for `check-sidecar-pod-ephvm` (timer prefix `…-check-sidecar-pod-check-sidecar-pod-ephvm`, `deploy_address: check-sidecar-pod.check-sidecar-pod-ephvm`). That member is authored at 4-space indent — a SIBLING of the `pod:` key, i.e. a DEPLOY-LEVEL member. Cutover C (spec #103 / charly #550, 2026-09-06) made deploy-level members TOP-LEVEL addressable entries addressed by their BARE name (sdk/loaderkit/deploy_load.go:81-92; FoldMembers promotes them to `uf.Deploy[<bare>]`); only IN-SUBSTRATE members (entity keys inside the kind body) are addressed `root.child`. A VM member is necessarily deploy-level (it cannot deploy INTO the pod's venue), so `BringUpMembers` dispatches `deploy add check-sidecar-pod-ephvm` with the bare key BY DESIGN (sdk/deploykit/deploy_members.go:92), and the bare address propagates through `lifecycleParams.Name` into `EphemeralRegisterRequest.Name`. The assertion landed 2026-07-21 (d35a0fd), BEFORE Cutover C reclassified the member, and was never swept. No product change: the address computation is faithful — the bare `check-sidecar-pod-ephvm` IS the CLI-addressable identity (`charly deploy del check-sidecar-pod-ephvm`). This corrects the assertion + the step/member comments to the Cutover C contract. R10: `charly check run check-sidecar-pod` on a fresh rebuild — `[check-live] PASS`, `ephemeral-register-roundtrip` exit=0, 24 passed/0 failed/6 skipped. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: config/test — the Comment intake: the thread is empty ( Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…re address exactly
Validator round 2 on the W3 fix:
- sweep the step description's remaining "NESTED" framing (the member is
DEPLOY-LEVEL — the step text now says so);
- cure the parking framing in the very lines this PR rewrites ("PRE-EXISTING,
universal gap unrelated to this cutover, registered to the bed-robustness
batch" → the bare statement of the gap, no deferral);
- tighten the deploy_address conjunct to the BARE form
(`deploy_address: check-sidecar-pod-ephvm`), dropping the `.*` that also
matched the stale dotted form and so could not distinguish the two.
No product change.
Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: config/test — the Comment intake: one prior comment ( Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
validator INCONCLUSIVE — no review verdict was produced (not a BLOCK; no code finding)The gate could not obtain a review verdict on this run, so it produced no code finding. This is not a BLOCK and the PR is not being rejected — but the required check stays RED on purpose: unreviewed code must never merge.
Root cause. The review plan produced no Verdict line, and this log carries NONE of the recognised signatures: no completed turn 1, no stall marker, and no HTTP rejection. The gate therefore REPORTS the class instead of inventing a cause. Durable remedy.
A run that produced no verdict keeps this required check RED: unreviewed code must never merge. Diagnostics (tail of the review log) |
…d: in backticks Round-2's "sibling of the pod: key" put a raw `: ` inside an unquoted YAML scalar, so `charly.yml` failed to parse at line 1211 (`mapping values are not allowed in this context`), reddening TestCueKinds_Corpus + TestCharlyDevCandyDeclared. RCA: the edit added a colon-space mid-scalar and the local `charly box validate` was not re-run after the round-2 edit. The backtick form `pod:` has no colon-space and parses. `charly box validate`: OK — 628 candies, 0 warnings, 0 errors. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: config/test — the Comment intake: prior comment 1 (head Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
…re alias now Validator round 4 block 2: the step description's RCA #4 still said the timer conjunct greps SanitizeUnitName(fullDottedDeployName) "applied to the FULL dotted deploy address, not the leaf name" and that "the pre-fix pattern used the leaf name alone and could never match" — while the conjunct now greps exactly the bare charly-deploy-del-check-sidecar-pod-ephvm. The two cannot both hold. Swept to the post-Cutover-C contract: the conjunct greps the deploy's CLI-addressable identity, which for this deploy-level member is the BARE name. charly box validate: OK — 628 candies, 0 warnings, 0 errors. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: config/test — the Comment intake:
Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS — diff is a bed-plan assertion + description/comment text in Change class: config/test (the Checklist: All applicable rules PASS or NA. Gate matches class ( Comment intake:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Fixes the W3 defect flagged on #633: the
check-sidecar-podbed'sephemeral-register-roundtripstep asserted a dotted address for the ephemeral VM membercheck-sidecar-pod-ephvm. That assertion encodes the pre-Cutover-C addressing contract and is stale — the address the product computes is correct.The member is DEPLOY-LEVEL, not in-substrate.
check-sidecar-pod-ephvm:is authored at 4-space indent — a sibling of the`pod:`key, not an entity inside thepod:body. Cutover C (spec#103/ charly#550, merged 2026-09-06) made deploy-level members top-level addressable entries addressed by their BARE name (sdk/loaderkit/deploy_load.go:81-92: "DEPLOY-LEVEL members (siblings of the kind key) are addressed by their BARE name … IN-SUBSTRATE members (entity keys inside the kind body) are addressedrootName.child";FoldMemberspromotes them touf.Deploy[p.key]). Only in-substrate members get the dotted form.A VM member is necessarily deploy-level — it cannot deploy into a pod's venue — so
sdk/deploykit/deploy_members.go:64-115(BringUpMembers) dispatchesdeploy add <memberKey>with the bare key by design (deploy_members.go:92). The bare address propagates:BringUpMembersbarememberKey→ResolveNodePathtreats it as a folded top-level root →walkpath=check-sidecar-pod-ephvm→DeployName→pluginDeployTarget.name→dispatch req.Name→lifecycleParams.Name→dispatchVmEphemeralRegister→EphemeralRegisterRequest.Name.plugin-fleet/ephemeral.gorecords exactly the address it is given. No product change is required.RCA. The assertion landed 2026-07-21 (
d35a0fd0, FINAL/K5 unit 6); Cutover C reclassified member positions 2026-09-06. The bed was not exercised against the post-Cutover-C addressing since, so the stale expectation survived.The 1-file diff (
charly.yml); every branch commit accounted for:6e76e59aephemeral-register-roundtripassertion to the bare address; fix the member comment; first RCA #8 note7b3b2b00deploy_addressexactly (drop.*)9979c6fbea20b588main(the PR was BEHIND;gh pr update-branch)685b00ffpod: keyraw colon-space broke YAML; wrap in backticksea7cef31ephemeral-register-roundtripassertion corrected to the bare address, anchored exactly (deploy_address: check-sidecar-pod-ephvm, no.*);`pod:`key";SanitizeUnitName(fullDottedDeployName)"applied to the FULL dotted deploy address, not the leaf name", contradicting the now-bare grep);Content tree:
ea7cef31(the last content commit; the branch head is empty body-refresh no-op commits). The R10 run below was taken on that content tree with binary2026.267.2048. Thecommand:block this PR asserts is byte-identical at that commit and the head.Sweep — executed on the final tree
Only the historical CHANGELOGs still name the pre-Cutover-C dotted form; every live assertion is on the bare form.
How tested
R10 — a fresh rebuild + live run on the
disposable: truebedcheck-sidecar-pod, content treeea7cef31(the branch head is empty body-refresh commits), binary2026.267.2048:The decisive step's own verdict, in BOTH the initial and rebuild passes:
The two step counts are different layers, not a contradiction: the bed runner reports
PASS (steps=17)— the 17 bed-level stages (image-build, deploy-add, check-live, update, …); eachcheck-live/check-live-rebuildstage then runs the deploy's ownplan:, whose tally is30 steps: 24 passed, 0 failed, 6 skipped(the 6 skipped are the plan steps gated to other contexts). The decisiveephemeral-register-roundtripis one of the 24 passed in eachcheck-livepass.This run's tag (
2026.267.2050) is AFTER headea7cef31(the head commit changed only the step DESCRIPTION — the RCA #4 text — not thecommand:block), so it exercised the exactdeploy_address: check-sidecar-pod-ephvmconjunct this PR asserts. Host load was ≈16.The disambiguation the tightening buys. The bare conjunct tells the two forms apart; the old
.*form matched both:Fail-without-the-change: the pre-fix assertion grepped the dotted prefix
…-check-sidecar-pod-check-sidecar-pod-ephvm; the live registration writes the bare prefixcharly-deploy-del-check-sidecar-pod-ephvm(the now-passing timer conjunct). The old pattern cannot match — exactly the red step the bed roster reported.RCA of the round-2 YAML break (R1). Commit
7b3b2b00introduceda sibling of the pod: key— a raw colon-space inside an unquoted YAML scalar — socharly.ymlfailed to parse at line 1211 (mapping values are not allowed in this context), reddeningTestCueKinds_Corpus+TestCharlyDevCandyDeclaredin CI. Root cause: the edit added the:mid-scalar and I did not re-runcharly box validateafter that edit before pushing. Fixed in685b00ff(backticks); thegocheck is now green on that head:Block 1 — the concurrent-load failures: RCA + named batch (#650)
When other sessions' beds ran concurrently (load 100–152) I saw failures that were not assertion failures — they were never-hang-ceiling kills (
sdk/kit'sProbeNeverHang) — and I did NOT dismiss them.RCA: the never-hang ceiling is a hang safety net, but it is also the de-facto per-probe timeout for any step that does not declare its own
timeout:. A probe that is legitimately slow under host load (charly status --json's per-container fan-out — the cost already tracked astask #26in this file) or that performs a cold network fetch (charly box pull) is indistinguishable from a hang at the ceiling. Concurrent full-roster runs on one host drive load to 100–150 and slow every probe together.Named fix vehicle: #650 — "batch: bed steps under concurrent-host load — the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls", filed with the retained
.check/evidence and the concrete direction (explicit per-steptimeout:for load-sensitive steps as the bed already does forsidecar-pod-roundtrip-final; make the ceiling load-aware; or bound the roster's safe parallelism). A product-side remediation owned by its own change — not a lower-load re-run as proof. The R10 run above is at load ≈16.Project-rulebook rule-compliance
/charly-internals:go,/charly-check:check,/charly-internals:git-workflow,/charly-internals:root-cause-analyzerloaded first.loaderkitprobe + the addressing-law source); the concurrent-load kills (the never-hang ceiling, filed as batch: bed steps under concurrent-host load — the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls #650); and the round-2 YAML break (a raw colon-space scalar, fixed). None dismissed.gh pr update-branchmerge); the main checkout and other sessions' worktrees untouched.deploy_addressartifact (charly deploy show), now anchored exactly.task build:binary(2026.267.2048) and invoked through the worktree'sbin/charly;go.work.sumunchanged.charly check run check-sidecar-podon the headea7cef31tree: full PASS (17/17),[check-live]+[check-live-rebuild]both green,ephemeral-register-roundtripexit=0.eval-vmaredisposable: true; no unrelated target was mutated.Change classification
Test-assertion + comment correction (the bed's
plan:), no product code. Verification gate:charly check run check-sidecar-pod(full PASS, 17/17) +charly box validate(0 warnings). Attribution tier:fully tested and validated.Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)