Repository navigation
feat(deploy): ship the del target's ancestor chain so the teardown keeps its venue — charly#765 - #31
Conversation
…eps its venue
`charly deploy del <root>.<member>` shipped no venue at all: the del dispatch
carried `Node` but no ancestor context, so the host fell back to
specexec.RootExecutorForDeployNode(node) — the OPERATOR'S HOST for an
in-substrate member carrying no `host:` field — and replayed the member's
reversible ops (a `package:` list's `pacman -R`) against the workstation while
its `add` had landed correctly in the guest.
The `add` half never had this problem: the walk threads the target's ROOT-FIRST
ancestor path/node lists to the resolve-target-add seam
(candy/plugin-fleet/walk.go), the host reconstructs the parentExec chain from
them (spec.ReconstructParentExec) and hands it to `Add` as the venue. `del` now
ships the same lists on the deploy-node-del-dispatch seam.
`walkDeployNodePath` is the ONE dotted-path walk (R3 — one resolution, two
consumers): resolveDeployNodeByPath takes the leaf, delAncestorChain takes the
whole chain. The chain EXCLUDES the target (including it would derive the
target's own executor, one hop too deep) and is EMPTY for a top-level or
synthetic target ("host", a bare name, a "vm:" address with no tree entry, a
ref-based pod artifact) — those keep the host's previous
RootExecutorForDeployNode behaviour untouched.
Bumps the spec pin to v0.2026276.1103, the release carrying the two ancestor
fields on #DeployNodeDelDispatchRequest (opencharly/spec#190); the module builds
and its tests pass standalone against the RELEASED spec, no workspace overlay.
The third variant of the #627/#680 mechanism. A check bed's cleanup step forks
a FRESH `charly deploy del` process, so the in-process venue carry between add
and del never applied there either.
Refs opencharly/charly#765
…ust the chain The validator's block 2: `delAncestorChain` was unit-tested, but nothing asserted that the chain reaches the `deploy-node-del-dispatch` request — the population in `DeployDelCmd.Run` was new behaviour with no test that would fail without it, so the `fully tested and validated` tier rested on an unsupported claim. Fixed by extraction, not by a comment: the request literal moves out of `Run` into the pure `delDispatchRequest`, and `TestDelDispatchRequest_ShipsTheChainAndTheCleanIdentity` asserts the WIRE SHAPE — the ROOT-FIRST chain on the request, the `vm:` prefix stripped from the shipped identity while the chain is resolved against the stripped path, the node carried through, and every teardown gate mapped. A refactor that computed the chain and then dropped it from the literal now fails here. Also covered: a top-level target ships no chain at all, so the host keeps its previous RootExecutorForDeployNode behaviour for everything that had no ancestors before this change. Refs opencharly/charly#765
Review — BLOCKHead SHA: Change class: plugin Go code (runtime/code) plus a dependency pin bump ( Security screen: PASS — no secrets/egress, no guardrail weakening, no new endpoints, no unexpected Blocks
Tool-limited: the sibling Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS — both blocks answered on the next head; block 2 is fixed in code, block 1's deferral is the operator's own ruling and is cited below. Block 2 — fixed by extraction, not by a commentThe finding was right: Fixed in
A refactor that computes the chain and then drops it from the literal now fails there. The Block 1 — the bed cannot exist for this leg, and that deferral is the operator's decision, not mineThe rule is quoted correctly: the "proof that cannot exist yet" exemption needs an explicit maintainer/operator sign-off, and this thread had none. Here it is, and here is why it is structural rather than convenient. Structural. The operator's ruling. On 2026-10-03 the operator was asked to choose between pushing So the exemption is not self-granted: it is the sequencing the operator chose, and the bed is named ( And the deferral is not being used to avoid a bed I could run. State
Agent: |
Review — PASSHead SHA: Security screen: PASS — no secrets/egress, no guardrail weakening, no scope mismatch; the only dependency delta is the stated spec pin ( Comment dispositions (re-derived against the current diff/body):
The A2 bed is genuinely not-yet-observable for this leg (producer ships the chain; the host consumer is leg 3, so a bed run today exercises the old plugin and would not go green); the changed path is exercised live by the new corpus; the deferral is named, owned, and operator-sanctioned. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Leg 2 of 3 of the producer chain that fixes
opencharly/charly#765. Leg 1 (the wire) merged as opencharly/spec#190, releasedv0.2026276.1103; this PR consumes it.charly deploy del <root>.<member>shipped the target node but no ancestor context, so the host could not rebuild theparentExecchain theaddhalf used and the teardown replayed the member's reversible ops (apackage:list'spacman -R) on the operator's workstation while itsaddhad landed correctly in the guest.This leg ships the missing DATA: the del dispatch now carries the target's ROOT-FIRST ancestor path/node lists.
candy/plugin-fleet/del_resolve.gowalkDeployNodePath— the ONE dotted-path walk (R3: one resolution, two consumers).resolveDeployNodeByPathtakes the leaf;delAncestorChaintakes the whole chain;delDispatchRequestis the pure request buildercandy/plugin-fleet/walk.goDeployDelCmd.RunshipsdelDispatchRequest(tree, node, c)— the request literal it used to inlinecandy/plugin-fleet/del_resolve_ancestors_test.gocandy/plugin-fleet/go.mod/go.sumv0.2026273.203→v0.2026276.1103The chain EXCLUDES the target and is ROOT-FIRST, because
spec.ReconstructParentExecpairs the two lists by index and walks root-first; including the target would derive the target's own executor, one hop too deep. It is EMPTY for a top-level or synthetic target (host, a bare name, avm:address with no tree entry, a ref-based pod artifact) — a requirement, not a fallback: the host then leavesRootExecutorForDeployNodein place and behaves exactly as before this chain existed.TestDelAncestorChain_NoAncestorsKeepThePreviousBehaviourpins all six of those cases.vm:is stripped once, in the walk, not twice. The address prefix is an addressing hint, never an identity —delDispatchRequeststrips it, and the chain is resolved against the stripped path so both halves agree on the identity.No new machinery. The
addwalk has threaded these same lists to theresolve-target-addseam since the K4-C walk port; the del half simply had no equivalent. No executor plumbing is added: nothing live crosses the wire, the host re-derives.No
plugin-checkchange is needed — the bed's cleanup step forks a freshcharly deploy delprocess, and that fresh process is exactly what now receives the chain.How tested
Run in
/home/atrawog/Sync/Atrapub/lo/opencoder/opencharly/.worktrees/readme-truth/plugin-fleet-venue/candy/plugin-fleeton the committed head08e0b5a, withGOWORK=off— the module's own pinned deps, resolving the released specv0.2026276.1103from the module proxy. No workspace overlay.The gates, verbosely
The
nil treecase is not hypothetical: the del path's ownresolveDelNodeexplicitly handles a tree-absent project, anddelAncestorChainmust not panic or invent an ancestor there.Disposition of the previous review's blocks
Both were raised against
cd9d883, and both are landed on08e0b5a:STATUS, 2026-10-03).delDispatchRequestandTestDelDispatchRequest_ShipsTheChainAndTheCleanIdentityasserts the shipped shape (chain present and root-first for a nested member; no chain at all for a top-level target; thevm:prefix stripped; the gates mapped). A refactor that computes the chain and drops it from the literal now fails here.What this cannot reach — stated, not hidden
The chain is on the wire but nothing reads it yet: the host half that consumes it is leg 3, folded into the open charly#762. So the disposable R10 bed for this chain runs once, at leg 3, where the chain is assembled — the re-run of
check-kind-host-vm, the bed whose cleanup step replayedpacman -Ron the host. Its output lands on#762and is linked back here.Rulebook compliance
/charly-internals:git-workflow,/charly-internals:go,/charly-internals:root-cause-analyzer,/charly-check:checkwere read before the first edit.Delis the only deploy verb whose seam carried no venue; the teardown is a fresh forked process), and that RCA is what makes this a three-repo chain rather than a pin bump — a pin bump was verified to fix nothing before any code was written.resolveDeployNodeByPathwas refactored onto it rather than duplicated beside it, andTestResolveDeployNodeByPath_StillResolvesTheLeafpins that the refactor changed nothing for the leaf.main; the branch isfeat/del-venue-765. The fix for the review's block 2 is a new commit on the pushed head, never an amend.git status --porcelainempty) with-count=1, and is pasted verbatim.charly#762; this leg's changed path is executed by the new tests. The deferral is sanctioned by the operator's recorded ruling, cited above and on the thread — no waiver is self-granted, and the bed is named rather than parked.Change classification
-count=1) plusgo mod verify, on the committed tree, resolving the released spec; the changed path executed live by the new corpus, including the request the wire carries.fully tested and validated— the module gate,go mod verifyand the new gates all pass on the committed tree, and the changed path (the walk, the request it builds, and its wire population) is exercised live by that corpus. The end-to-end venue proof is the assembled-bed run oncharly#762, named above and sanctioned by the operator's ruling, not assumed.Refs
opencharly/charly#765. Consumesopencharly/spec#190.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (fully tested and validated)