deploy-services: the pinned apply dialled node-req-0003.clan — the defect is ALREADY FIXED on main by cf7c40b7 (landed after the drive); verify, close, re-drive #1209
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1209
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?
Summary
Drive
20260904T004019Z(--target device, 27 green / 1 red) redded atdeploy-services. The defect is diagnosed and confirmed below — and it is already repaired atorigin/main. The drive ran at commit1041a1d5(artifacts/verdict.json);cf7c40b7landed afterwards and fixes precisely this failure, naming this drive in its own message. No new code work is needed. Action: confirm the fix against this diagnosis, close, and re-arm the drive.The failure
Evidence:
artifacts/legs.json(legdeploy-services, red, 142154ms),artifacts/journey.json(fault),logs/gateway-journal.txt:1893(the in-guest control plane's ownprovision deploy failedrecord,device=node-req-0003),artifacts/journey.device-device-add--809eb-e-standing-rented-community/error-context.md.The error wraps as
provision: deploy <node>— theapplyRevisionpath (internal/provision/deploy.go:524) — notprovision: seed <node>(internal/provision/deploy.go:492). SoStepSeedClosurespassed andStepDeployServicesfailed. That split is the whole diagnosis.Root cause (as it stood at the drive commit
1041a1d5)deployServicesOnlyrecords the applied revision at the end of the selection-commit step —internal/provision/deploy.go:434(run.Revision = string(rev)).internal/provision/deploy.go:459(SetDeployTarget→m.Deploy.TargetHost,internal/clan/config.go:97). At1041a1d5the returned commit was discarded (if _, err := ...), sorun.Revisionstill pointed at the pre-capture commit.Supply.Seedresolves its door from the working tree (loadInventory(repo.Dir()),internal/clan/supply.go:26-38) and archives through the unpinned refflakeRef(dir, "")(internal/clan/supply.go:55). It therefore saw the just-capturedroot@<wt0>and succeeded — as did theRotateHostKeyhost-key learn at that same door (deploy.go:481-487).updateNodeapplies the pinned refflakeRef(dir, d.req.Revision)(internal/clan/adapter.go:633→git+file://<dir>?rev=<rev>,internal/clan/adapter.go:1199-1204). At that revision the machine had nodeploy.targetHost, so clan-cli fell back to its<name>.clanhostname and could not resolvenode-req-0003.clanwhile uploading the sops-nix secrets.Commit-then-apply (ADR 0102) is the mechanic: a config commit made after the revision is recorded is invisible to the apply. The seed/apply asymmetry (working tree vs. pinned rev) is exactly why this presented as "the door is fine, the deploy can't find it".
The fix already on main
cf7c40b7—internal/provision/deploy.go:459-473keeps the capture's commit and advancesrun.Revisionto it. The advance is monotone:ConfigRepo.Mutatereturns the current tip on a no-op apply (internal/clan/configrepo.go:80-84), so an unchanged target returns the standing tip rather than an empty revision.TestDeploy_VMModeDrivesClanDeployServicesOnlyNeverEnroll(internal/provision/deploy_test.go:227-241) now pinscommit-4— the capture inside the applied revision.Verified in this checkout at
432ffed1:CGO_ENABLED=0 go test ./internal/provision/→ok git.matou.nz/Matou/idss/internal/provision 0.014s. (Plaingo testbuild-fails here:gccnot in$PATH— a machine gap, not a code fault.)I reviewed the fix for gaps and found none: the advance is skipped only on the two branches that also skip the capture (
d.MeshAddress == "", and the gateway's founding-ownedroot@127.0.0.1self-target), and the gateway's own row was captured at founding (idss: deploy target for gateway re-captured as root@127.0.0.1:22,cc2a70din the harvested bundle), so it is an ancestor of every later revision. No other config mutation sits between the revision record and the apply.Evidence that was absent (stated for the record)
state/clan-config— the drive writesstate/clan-config-snapshot/(logs/clan-config-snapshot.log,config.bundle,HEAD,tree.txt).droplet-journal.txt— this drive harvestsgateway-journal.txt(621KB) anddevice-journal.txt(185KB) instead.logs/state-logs.logis an ENOENT record:no state logs directory at .../standing-rented/state/logs.captureConfigFlakesnapshotsclanConfigRepoDir(live)= the drive host's<stateDir>/clan-config(app/tests/e2e/fixtures/evidence.ts:249-262). On a post-flip--target devicedrive the failing deploy runs in the gateway droplet's in-guest control plane, whose config repo is on that box. The harvested bundle is 31 commits, all founding/gateway, with zeronode-req-0003commits — so the revision/targetHostordering could not be confirmed from the captured repo and had to be reconstructed from source. Worth considering as a follow-up in the same class as5996e36d(which made the guest probes target-aware but deliberately left the local state probes;evidence.ts:459-473). Not filed as a separate defect — it is an evidence-fidelity gap, not a fault that reds a leg.logs/guest-unit-file.log: no~/.config/systemd/user/idss-guest.service;logs/qemu.log: no qemu process;host.jsonrecordsqemu: ENOENT). That is the fault5996e36drepaired.Layer
Product code —
internal/provision(the commit-then-apply revision pin), not harness or fixture. No refusal rule fired; I am not healing because the defect is already fixed and no defective line remains in the checkout to edit.drive
20260904T004019Zred atdeploy-services:deploy failed (clean-retry): provision: deploy node-req-0003: clan: deploy failed on 1 node(s): node-req-0003: clan: connectivity on node-req-0003: could not reach the node: [node-req-0003] ssh: Couldevidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260904T004019Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=17512
(automated multi-host claim — lowest live claim id works this ticket)
Confirmed —
cf7c40b7(landed by session before this ticket was filed): the target capture now ADVANCESrun.Revision, so the pinned-flake apply evaluates a machine that knows its own door. The hot-path pin holdsrotate-hostkey → seed → deploywith the applied revision = the capture's commit. Closing so drive 12 fires.close-report for #1209 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope