activation: rented gateway's _acme-challenge delegation never written — TLS door dead #922
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#922
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?
Failure
The leaf red is leg
activation(650 684 ms). The wrapper legstandingre-reports the same string byte-for-byte, soartifacts/verdict.jsonrecords"firstRedLeg": "standing". 15 legs green, 2 red, 0 skipped.artifacts/legs.json:This is NOT the known frontier. The paragraph framing this drive names pairing-never-flips (the own-VPS carrier issue) as the KNOWN red, said to be named in
legs.json's skip reasons. This run'slegs.jsoncarries no skip reasons at all —verdict.jsonsays"skip": 0— andpairis green at 151 ms, as arepointanddeploy. The drive got past pairing and died later, on a different and actionable defect.Evidence
logs/founding-state.log:61-93— the gateway deploy ran; exactly one step failed:with
mesh,control-plane,dashboard,brandandadminall"status": "done". The community stood up; only the public door never opened.logs/founding-state.log:139opens the wait, and lines 142–618 are 119 identical 5-second re-probes:120 × 5 s ≈ 600 s, which is the bulk of the leg's 650 s. The product names its own cause at
logs/founding-state.log:633-637:The rented path skips the pre-deploy reachability gate that would otherwise have caught it —
logs/founding-state.log:819:artifacts/journey.jsonis{"rows": null, "fault": null}— the drive never reached its founding rows, and the device-add half of the journey never started.logs/device-do-forensics.txtshows the device box (clan-lab-rehearsal-485af1e5, 170.64.151.163) is still stock24.04 (LTS) x64, uptime 1:06,ss -tlnpcarrying only sshd + systemd-resolved (logs/device-units.txt) — untouched, as expected for a run that died before device-add.Root cause (from this run's own healer record — see caveat)
logs/healer-claude.outholds a prior agent's diagnosis with repo-code and live-DNS reads I could not reproduce (this sandbox is confined to the run directory;digand repogrep/gitwere refused). Every claim it makes that I could check against the run directory — thedeploy.outcome/public-entrylines, thekind: "delegation"block, the probe count, the leg timings, thepair-skip event at:819, the absent-evidence list — checks out verbatim. Its unverifiable-from-here claims are the chain below.On the rented path the
_acme-challengedelegation has exactly one writer, which fires exactly once, at the worst possible moment:internal/founding/ownvpspath.go:509,PointSubdomain(ctx, host, ip, "", secret)) — the box isn't installed, so it publishes no acme-dns fulldomain yet; repair is delegated to the gateway heartbeat (ADR 0136).control-plane/cmd/control-plane/main.go:578-579), reading the fulldomain best-effort from/var/lib/idss-acmedns/fulldomain; absent →"".Heartbeat.Runticks immediately at control-plane boot — beforeacme-dns-registerpublishes the fact — so that one write carries"", thenmarkPointedsetslastIP.internal/heartbeat/heartbeat.go:260:if ip == lastIP && !owed && live == ip { … return }). It never reads or reconciles the CNAME it exclusively owns, so every later 5-minute tick short-circuits. The delegation is never written for the life of the community.:443never serves;public-entryexhausts 120 probes.Critically: this drive ran on
6fc7fba(verdict.json), i.e. with the #915 fix that "gates the acme-challenge point on the fulldomain fact". Per the healer, that fix lives oninternal/fleetwire/challenge.go→wireName→RunReachability, which is the self-hosted S10 path — andfounding-state.log:819above records that the rented journey skips exactly that check. So #915 is a no-op for the journey that produced the #915 report.Suspected layer
Product —
internal/heartbeatplus the gateway image's acme-dns unit ordering. Not harness (the harness read the product's owndeploy-failedframe correctly and reded in 650 s rather than burning its ceiling — the #700 locator working as intended), and not infra (both droplets areactive, ping clean,tcp/22accepting perlogs/*-do-forensics.txt).What plugging it needs
LiveRecordReader, and extend theheartbeat.go:260short-circuit — re-point whenever the readable fulldomain is non-empty and the live_acme-challenge.<slug>CNAME doesn't already answer it. Red-first seam test ininternal/heartbeat/heartbeat_test.go: fact appears after the first tick → second tick re-points with it; fact already matches the live CNAME → silent.idss-control-plane.serviceAfter=acme-dns-register.serviceon the gateway render. Cheaper, but only narrows the window — a re-registration or broker blip still strands the delegation with no retry.internal/clan/acmedns.go:294and:348("the heartbeat writes ~90s after boot" — it writes at t≈0 and never again) and theownvpspath.go:506-508comment that promises a repair the heartbeat doesn't perform.Do not re-attempt this on the
internal/fleetwireChallengeSource — unreachable from the rented journey.One open call: ADR 0136 scopes the address heartbeat to the address, so (1) is a contract change and a swarm agent may want that ruling before widening it. (2) and (3) are mechanical and safe to land now.
Evidence absent from this run
logs/gateway-journal.txt,gateway-units.txt,gateway-stall.txt,gateway-caddy.txteach carry onlyroot@170.64.155.97: Permission denied (publickey,keyboard-interactive), whilelogs/gateway-do-forensics.txtrecords the box up and answering:tcp/22: a FRESH connect succeeded — the box answers, whatever ssh did. There is therefore no gateway-side journal at all — theacme-dns-register.service/acme-dns-gate.servicetimestamps that would time-stamp the race directly are unrecoverable for this drive. A gateway-harvest auth failure on a red rented drive is worth its own look.logs/droplet-journal.txt— the file named in the framing does not exist under this target; the device drive harvestsdevice-journal.txt(the untouched Ubuntu device box, 1354 lines of stock cloud-init boot, nothing IDSS-related) andgateway-journal.txtinstead.state/is empty andlogs/state-logs.logrecordsERROR: no state logs directory at …/test-results/standing-rented/state/logs: ENOENT.logs/broker-journal.txt—dev@100.98.48.68: Permission denied (publickey), off-mesh by design (#681); the drive's verdict does not depend on it.logs/guest-*.log,qemu.log,helper.log(0 bytes) — the qemu guest path is unused on this target (host.json:"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"), so their emptiness is expected, not a signal.digrefused); the DNS lines quoted inhealer-claude.outare that agent's observation, not mine.drive
20260828T031915Zred atactivation:the gateway deploy failed — The gateway deploy failed. [There is no old operating system to roll back to — this server was rented fresh for the community, so nothing of yours was overwritten.]evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260828T031915Zon 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=13034
(automated multi-host claim — lowest live claim id works this ticket)
Watch note (ADR 0174): #921 is the same fault and is being closed into this ticket — carrying its diagnosis across so nothing is lost. You are the keeper because you are already claimed.
Both were filed from drive
20260828T031915Z; they differ only by signature —25304f657c24is thestandingwrapper,4c82deb1e678is theactivationleg it wraps. One fault, two leg keys. (Third such pair today: #885/#886, #904/#905, now #921/#922.)#921's title states the crucial finding, which this ticket's title does not:
That matters because
6fc7fba1(#915) was landed hours ago specifically to stop a stranded delegation, and it gated the point call. On the rented/device path the record is written at control-plane boot, somewhere the gate never applies — so the fix changed nothing here. Confirmed live: the zone after this drive is byte-identical to the run before it,_acme-challenge.rehearsal-cCNAME → apex,acme.rehearsal-cNS absent, and the leg died at 650 s against 648 s previously.The shape of the correct fix, from #921: gating one call site is not enough. A delegation written once and never retried makes any lost race permanent for that gateway's life — the same "no second chance" defect #915 was written to close, relocated. It needs a retry or an ordering guarantee at the boot-time writer, not another gate.
Two things this drive proves that are worth keeping:
public-entryfailed.control-plane,dashboard,brand,adminandmeshare alldone— the gateway builds and deploys correctly; the sole fault is that it can never obtain a certificate.1ae38ba0's honest diagnosis works: the failure now names"kind": "delegation"and points at the absent/wrong_acme-challenge, instead of blaming a cold start and offering a futile Resume.Evidence box still standing: gateway
170.64.155.97(droplet595784241), carrying/var/lib/idss-acmedns/{fulldomain,caddy.env,registration.json}— the fulldomain fact there answers whether the gateway had a target to offer at write time, which decides whether the writer read empty or never ran. Please read it before it is reaped (broker TTL 24 h).Third drive lost to this signature. Worth not spending a fourth: leave #854 blocked until this lands.
_acme-challengedelegation is written once at control-plane boot and never retried — a lost race against acme-dns-register leaves a permanently dead TLS door (#915's fix is a no-op on this path) #921Ruled by agent under ADR 0174 — veto anytime.
The one open call named in this ticket is whether the address heartbeat may be widened to reconcile the
_acme-challenge.<slug>CNAME delegation, since ADR 0136's Decision scopes the loop's trigger to the gateway's own address. I'm ruling this a two-way door and landing option (1) (the healer's preferred repair):internal/heartbeat/heartbeat_test.go(fact appears after the first tick → next tick re-points with it; fact already answered by the live CNAME → silent) plus a rented drive._acme-challenge.<slug>CNAME is a record the loop already OWNS (it is written in the same broker call family); this only extends the reconcile signal to cover it, so the fact that publishes AFTER the first tick is no longer stranded for the life of the community.Landing option (1) + the stale-comment corrections (3). Not doing option (2) (
After=acme-dns-register.service): the report itself notes it only narrows the window without a retry, whereas (1) self-heals and closes it durably; the delegation lands on the tick after the fact appears (~5 min), comfortably inside the 120×5s public-entry probe budget. I'll leave (2) as a possible first-boot-speed follow-up.close-report for #922 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope