deploy-archive: a mid-clone TCP reset fetching the pinned clan-cli (git+…/clan-core) is stolen by the generic eval case and filed config_eval — the one-shot transport retry never fires and the operator is told to fix a flake that is fine #1272
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
Matou/idss#1272
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
Drive
20260906T084213Z(run dir/home/swarm/swarm/Matou/idss/test-results/private-path/20260906T084213Z) redded atdeploy-archiveafter 70.8 s, 6 legs green before it (artifacts/legs.json,artifacts/verdict.json→firstRedLeg: deploy-archive, commit742e00c0). Signature5401f695e3a1.Evidence
logs/guest-control-plane.log:145— the fault is raised by the gateway's own control plane (idss-control-plane-start[2885],msg="provision deploy failed"), 08:58:02, its first clan invocation of the drive (the plane came up 08:56:36, line 144).artifacts/provision-archive.live-*/error-context.md— the Playwright leg dies on the same text wrapped asdeploy failed (clean-retry).logs/guest-failed-units.log— 0 failed units;logs/guest-journal.logshows no OOM and no network fault. The guest was healthy; only the forge transfer died.state/clan-config/flake.lock— every input (clan-core,data-mesher,nix-select,nixpkgs) is pinned"type": "tarball". Nothing in the community flake fetches a git repository, so the 98,281-object clone can only be the toolpin.The chain
internal/clan/vmguest.go:779— theidss-control-planeunit'spath = [ pkgs.bash pkgs.git pkgs.nix pkgs.openssh ]. Noclanon PATH, deliberately (the comment atvmguest.go:765-768names "the pinned clan CLI's nix-run fallback").internal/clan/toolpin.go:37-45—resolveTooltherefore resolvesToolClantonix run <PinnedClanRef> --, wherePinnedClanRef(toolpin.go:29) isgit+https://git.clan.lol/clan/clan-core?rev=d098fa2e…#clan-cli. Agit+httpsref: nix clones the whole clan-core repo (~20 MiB, 98,281 objects) over the guest's link before the CLI can run. This is the first deploy on the box, so nothing is warm in its store or git cache.internal/clan/errors.go—Classifyreads it: the ssh/connectivity case (:167-176) matches nothing (connection refused/timed out/no route to host/ssh:); the substituter-DNS case (:186-194) matches nothing (could not resolve host/temporary failure in name resolution); the exit-255 transport case (:220-227) does not apply (nix exits 1). It lands in the generic eval case aterrors.go:285-293on the bareerror:substring →FailConfigEval, summary "the node's config does not evaluate", remedy "fix the config so the node evaluates, then retry".updateNode's one-shot transport retry (internal/clan/adapter.go:648-654) is gated onf.Kind == FailConnectivity.config_eval→ no retry. The deploy is idempotent and a second attempt would very likely have cloned clean.isTransientFlakeFetch(adapter.go:1040-1048) overtransientFetchSignatures(adapter.go:1028-1032:timeout was reached,resolving timed out,failed to open archive) — all three are cold-resolver DNS shapes from #542. A mid-transferRecv failure: Connection reset by peeron a warm resolver matches none, so no warm-up hold either.Net: a transient forge transfer reset is reported to the operator as a broken community config, with a remedy that cannot possibly help, and the retry machinery the codebase already owns sits idle.
Suspected layer
The clan seam's failure classifier and its retry gating —
internal/clan/errors.go(Classify) andinternal/clan/adapter.go(transientFetchSignatures/isTransientFlakeFetch,updateNode). Not the harness, not the fixtures, not the config: the config evaluates fine, and the same code path has succeeded on prior drives.This is the fourth occurrence of the documented bare-substring theft in this classifier — #374 (disk), #563 (transport), #1210 (secrets), all narrated at
internal/clan/errors.go:196-283— and the third time the genericerror:case has been the thief.Two candidate fixes — this needs a ruling on which
(a) Narrow — classify and retry the shape. Add a git/HTTP transfer-death case to
Classifyahead of the generic eval case (anchored on self-identifying phrases that a Nix evaluation never prints:rpc failed,recv failure,failed to fetch git repository,bytes of body are still expected) returningFailConnectivitywith the existing resumable reconnect-and-retry remedy — which re-armsupdateNode's one-shot retry for free — and/or widentransientFetchSignatureswith the same markers. Cheap, in the grain of the #563 fix, and GOTCHAS #36's standing rule (docs/GOTCHAS.md:1032-1038) already says "widen the signature list" for this family. Wants a hazard entry and the usual seam tests (a reset-mid-clone log must classify connectivity, a genuineattribute … missingmust still red terminal within seconds — never spin on a real config fault).(b) Root — stop cloning a 20 MiB git repo from an external forge on the critical path of every gateway deploy. The community flake pins clan-core as a tarball (
state/clan-config/flake.lock), butPinnedClanRef(toolpin.go:29) pins the CLI asgit+https, which is the expensive and fragile form. Options: pin the CLI through the same archive URL the lock already uses; or carry theclan-cliclosure in the ADR 0133 warm store the control plane already holds (adapter.go:642-643notes the plane holds that store), so a real community's first co-host deploy does not depend on a healthy forge transfer at that moment. This is the fault a real community hits on a bad link, not just the drive.(a) and (b) are not exclusive — (a) is the honest-fault fix regardless of (b).
Why the healer refused
Refusal rule 3 — product-behaviour surface. Both candidate fixes reach into
internal/clan, the seam that drives real deploys: (a) changes what a deploy does (a gateway deploy that reds today would hold and retry) and what a community's operator sees (the S5 fault card's summary and remedy flip from "your config does not evaluate" to a connectivity fault). (b) is a supply-chain/pinning decision. Neither is harness, fixture,scripts/or test plumbing. Filed for a ruling rather than healed in-lane;confident: falsebecause the choice between (a), (b), or both is a design call, not a mechanical one.No edits were made — the checkout is clean at
742e00c0.drive
20260906T084213Zred atdeploy-archive:deploy failed (clean-retry): provision: deploy gateway: clan: deploy failed on 1 node(s): gateway: clan: config_eval on gateway: the node's config does not evaluate: Receiving objects: 0% (1/98281) Reevidence:
/home/swarm/swarm/Matou/idss/test-results/private-path/20260906T084213Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedClose-report — ruled and landed by agent under ADR 0174 (veto anytime).
Ruling on the two candidates: adopted (a) now (the honest-fault classifier fix — a two-way door: revertible commit, seam-unit-proven), and filed (b) as follow-up #1273 (
needs-triage). (a) is the honest-fault fix regardless of (b), exactly as the ticket notes. (b) is a supply-chain / pinning decision whose only real proof is a live gateway deploy drive, and mis-pinningPinnedClanRefwould break every deploy — too large a blast radius to land unproven in an unattended session, so it is routed to a session with lab-drive access rather than self-authorized here.What landed (commit
1592694bonmain):internal/clan/errors.go—Classifygains a git/HTTP transfer-death case AHEAD of the eval/disk/secret cases, anchored onrpc failed/recv failure/bytes of body are still expected/failed to fetch git repository(phrases a Nix evaluation never prints) →FailConnectivitywith the resumable reconnect-and-retry remedy. This re-armsupdateNode's one-shot transport retry (adapter.go, gated onFailConnectivity) for free — the absorber that was disarmed by theconfig_evalmisclassification.internal/clan/adapter.go—transientFetchSignaturesgains the same four markers, so a reset during the eval-preflight (evalReadiness) or the enroll-activate apply also takes the warm-up/retry (GOTCHAS #36's standing rule for this family: widen the signature list).docs/GOTCHAS.md— new entry #178 (the fourth bare-substring theft; #374/#563/#1210 the prior three).STATUS.md— new lead.Proof (red-first, TDD):
internal/clan/errors_gitfetch_test.go(+3 tests): a reset-mid-clone log (the exact drive20260906T084213Zshape) classifies connectivity, notconfig_eval; each transfer-death phrase classifies connectivity in isolation; and a genuineattribute … missingfault still classifiesconfig_evalterminal — the fail-loud guard (never spin on a real config fault;updateNode's retry is one-shot andevalReadiness's is bounded).go build ./...,go vet ./internal/clan,go test ./internal/clan ./internal/provisionall green;gofmtclean.Scope honesty: this makes the transient survivable (a re-clone on a warm/recovered link succeeds); it does not remove the 20 MiB forge clone from the deploy critical path. That root fix is #1273.
Signature
5401f695e3a1. Closing.