activation: rented gateway's _acme-challenge delegation never written — TLS door dead #922

Closed
opened 2026-08-28 04:36:47 +00:00 by matou-build-agent · 4 comments

Failure

The leaf red is leg activation (650 684 ms). The wrapper leg standing re-reports the same string byte-for-byte, so artifacts/verdict.json records "firstRedLeg": "standing". 15 legs green, 2 red, 0 skipped.

artifacts/legs.json:

{ "leg": "activation", "status": "red", "ms": 650684,
  "error": "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.]" }

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's legs.json carries no skip reasons at all — verdict.json says "skip": 0 — and pair is green at 151 ms, as are point and deploy. 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:

"outcome": "failed" … {"id": "public-entry", "label": "Public entry — secure connections live", "status": "failed"}

with mesh, control-plane, dashboard, brand and admin all "status": "done". The community stood up; only the public door never opened.

logs/founding-state.log:139 opens the wait, and lines 142–618 are 119 identical 5-second re-probes:

"[id.rehearsal-c.idss.nz rehearsal-c.idss.nz] not answering yet (probe 119/120) — re-probing in 5s (Caddy still gated behind acme-dns registration / issuance, #499, #524)"

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:

"kind": "delegation", "headline": "The gateway deploy failed."
"detail": "neither id.rehearsal-c.idss.nz or rehearsal-c.idss.nz answered over TLS across the whole first-boot budget — Caddy's :443 stays gated until the gateway's acme-dns registration AND the DNS-01 delegation resolve, so a door that never even begins to answer points at an absent or wrong \_acme-challenge.` delegation, not a slow cold start (GOTCHAS #27/#28, ADR 0014, #508/#554). Resuming only re-probes the same dead delegation; the delegation must be repaired on the broker/zone — the five-record PutRecords set, with `_acme-challenge.` at the gateway's acme-dns fulldomain — before a retry can go live."`

The rented path skips the pre-deploy reachability gate that would otherwise have caught it — logs/founding-state.log:819:

"paired — the community name was aimed at the server before install, so the public reachability check is skipped; the gateway deploy begins"

artifacts/journey.json is {"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.txt shows the device box (clan-lab-rehearsal-485af1e5, 170.64.151.163) is still stock 24.04 (LTS) x64, uptime 1:06, ss -tlnp carrying 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.out holds a prior agent's diagnosis with repo-code and live-DNS reads I could not reproduce (this sandbox is confined to the run directory; dig and repo grep/git were refused). Every claim it makes that I could check against the run directory — the deploy.outcome/public-entry lines, the kind: "delegation" block, the probe count, the leg timings, the pair-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-challenge delegation has exactly one writer, which fires exactly once, at the worst possible moment:

  1. The pre-install point writes the challenge empty by design (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).
  2. The gateway heartbeat is the sole writer (control-plane/cmd/control-plane/main.go:578-579), reading the fulldomain best-effort from /var/lib/idss-acmedns/fulldomain; absent → "".
  3. Heartbeat.Run ticks immediately at control-plane boot — before acme-dns-register publishes the fact — so that one write carries "", then markPointed sets lastIP.
  4. The heartbeat re-points only on address drift (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.
  5. The #554 delegation gate fails open after ~5 min, so Caddy starts and burns DNS-01 orders against a delegation-less name; :443 never serves; public-entry exhausts 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 on internal/fleetwire/challenge.go → wireName → RunReachability, which is the self-hosted S10 path — and founding-state.log:819 above 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/heartbeat plus the gateway image's acme-dns unit ordering. Not harness (the harness read the product's own deploy-failed frame correctly and reded in 650 s rather than burning its ceiling — the #700 locator working as intended), and not infra (both droplets are active, ping clean, tcp/22 accepting per logs/*-do-forensics.txt).

What plugging it needs

  1. Make the heartbeat delegation-aware (the healer's preferred repair): give it a challenge reader and a live-CNAME reader alongside LiveRecordReader, and extend the heartbeat.go:260 short-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 in internal/heartbeat/heartbeat_test.go: fact appears after the first tick → second tick re-points with it; fact already matches the live CNAME → silent.
  2. Or order idss-control-plane.service After=acme-dns-register.service on the gateway render. Cheaper, but only narrows the window — a re-registration or broker blip still strands the delegation with no retry.
  3. Either way, correct the stale comments at internal/clan/acmedns.go:294 and :348 ("the heartbeat writes ~90s after boot" — it writes at t≈0 and never again) and the ownvpspath.go:506-508 comment that promises a repair the heartbeat doesn't perform.

Do not re-attempt this on the internal/fleetwire ChallengeSource — 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

  • No live-box section was appended to this task, so I diagnosed from harvested logs alone — and in this case there was no gateway to ask anyway: all four gateway harvests failed authentication. logs/gateway-journal.txt, gateway-units.txt, gateway-stall.txt, gateway-caddy.txt each carry only root@170.64.155.97: Permission denied (publickey,keyboard-interactive), while logs/gateway-do-forensics.txt records 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 — the acme-dns-register.service / acme-dns-gate.service timestamps 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.
  • No logs/droplet-journal.txt — the file named in the framing does not exist under this target; the device drive harvests device-journal.txt (the untouched Ubuntu device box, 1354 lines of stock cloud-init boot, nothing IDSS-related) and gateway-journal.txt instead.
  • state/ is empty and logs/state-logs.log records ERROR: 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.
  • Live DNS could not be re-checked from this sandbox (dig refused); the DNS lines quoted in healer-claude.out are that agent's observation, not mine.

drive 20260828T031915Z red at activation: 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/20260828T031915Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure The leaf red is leg **`activation`** (650 684 ms). The wrapper leg `standing` re-reports the same string byte-for-byte, so `artifacts/verdict.json` records `"firstRedLeg": "standing"`. 15 legs green, 2 red, **0 skipped**. `artifacts/legs.json`: ```json { "leg": "activation", "status": "red", "ms": 650684, "error": "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.]" } ``` **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's `legs.json` carries **no skip reasons at all** — `verdict.json` says `"skip": 0` — and `pair` is green at 151 ms, as are `point` and `deploy`. 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: > `"outcome": "failed"` … `{"id": "public-entry", "label": "Public entry — secure connections live", "status": "failed"}` with `mesh`, `control-plane`, `dashboard`, `brand` and `admin` all `"status": "done"`. The community stood up; only the public door never opened. `logs/founding-state.log:139` opens the wait, and lines 142–618 are 119 identical 5-second re-probes: > `"[id.rehearsal-c.idss.nz rehearsal-c.idss.nz] not answering yet (probe 119/120) — re-probing in 5s (Caddy still gated behind acme-dns registration / issuance, #499, #524)"` 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`: > `"kind": "delegation"`, `"headline": "The gateway deploy failed."` > `"detail": "neither id.rehearsal-c.idss.nz or rehearsal-c.idss.nz answered over TLS across the whole first-boot budget — Caddy's :443 stays gated until the gateway's acme-dns registration AND the DNS-01 delegation resolve, so a door that never even begins to answer points at an absent or wrong \`_acme-challenge.<apex>\` delegation, not a slow cold start (GOTCHAS #27/#28, ADR 0014, #508/#554). Resuming only re-probes the same dead delegation; the delegation must be repaired on the broker/zone — the five-record PutRecords set, with \`_acme-challenge.<slug>\` at the gateway's acme-dns fulldomain — before a retry can go live."` The rented path skips the pre-deploy reachability gate that would otherwise have caught it — `logs/founding-state.log:819`: > `"paired — the community name was aimed at the server before install, so the public reachability check is skipped; the gateway deploy begins"` `artifacts/journey.json` is `{"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.txt` shows the device box (`clan-lab-rehearsal-485af1e5`, 170.64.151.163) is still stock `24.04 (LTS) x64`, uptime 1:06, `ss -tlnp` carrying 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.out` holds a prior agent's diagnosis with repo-code and live-DNS reads I could not reproduce (this sandbox is confined to the run directory; `dig` and repo `grep`/`git` were refused). Every claim it makes that I *could* check against the run directory — the `deploy.outcome`/`public-entry` lines, the `kind: "delegation"` block, the probe count, the leg timings, the `pair`-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-challenge` delegation has exactly one writer, which fires exactly once, at the worst possible moment: 1. The pre-install point writes the challenge **empty by design** (`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). 2. The gateway heartbeat is the sole writer (`control-plane/cmd/control-plane/main.go:578-579`), reading the fulldomain best-effort from `/var/lib/idss-acmedns/fulldomain`; absent → `""`. 3. `Heartbeat.Run` ticks **immediately at control-plane boot** — before `acme-dns-register` publishes the fact — so that one write carries `""`, then `markPointed` sets `lastIP`. 4. The heartbeat re-points only on **address** drift (`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.** 5. The #554 delegation gate fails open after ~5 min, so Caddy starts and burns DNS-01 orders against a delegation-less name; `:443` never serves; `public-entry` exhausts 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 on `internal/fleetwire/challenge.go` → `wireName` → `RunReachability`, which is the **self-hosted** S10 path — and `founding-state.log:819` above 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/heartbeat` plus the gateway image's acme-dns unit ordering. Not harness (the harness read the product's own `deploy-failed` frame correctly and reded in 650 s rather than burning its ceiling — the #700 locator working as intended), and not infra (both droplets are `active`, ping clean, `tcp/22` accepting per `logs/*-do-forensics.txt`). ## What plugging it needs 1. **Make the heartbeat delegation-aware** (the healer's preferred repair): give it a challenge reader and a live-CNAME reader alongside `LiveRecordReader`, and extend the `heartbeat.go:260` short-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 in `internal/heartbeat/heartbeat_test.go`: fact appears after the first tick → second tick re-points with it; fact already matches the live CNAME → silent. 2. **Or order `idss-control-plane.service` `After=acme-dns-register.service`** on the gateway render. Cheaper, but only narrows the window — a re-registration or broker blip still strands the delegation with no retry. 3. Either way, correct the stale comments at `internal/clan/acmedns.go:294` and `:348` ("the heartbeat writes ~90s after boot" — it writes at t≈0 and never again) and the `ownvpspath.go:506-508` comment that promises a repair the heartbeat doesn't perform. Do **not** re-attempt this on the `internal/fleetwire` ChallengeSource — 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 - **No live-box section was appended to this task**, so I diagnosed from harvested logs alone — and in this case there was no gateway to ask anyway: all four gateway harvests failed authentication. `logs/gateway-journal.txt`, `gateway-units.txt`, `gateway-stall.txt`, `gateway-caddy.txt` each carry only `root@170.64.155.97: Permission denied (publickey,keyboard-interactive)`, while `logs/gateway-do-forensics.txt` records 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** — the `acme-dns-register.service` / `acme-dns-gate.service` timestamps 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. - **No `logs/droplet-journal.txt`** — the file named in the framing does not exist under this target; the device drive harvests `device-journal.txt` (the untouched Ubuntu device box, 1354 lines of stock cloud-init boot, nothing IDSS-related) and `gateway-journal.txt` instead. - `state/` is empty and `logs/state-logs.log` records `ERROR: 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. - Live DNS could not be re-checked from this sandbox (`dig` refused); the DNS lines quoted in `healer-claude.out` are that agent's observation, not mine. drive `20260828T031915Z` red at `activation`: `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/20260828T031915Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 4c82deb1e678 -->
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=13034
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=13034 (automated multi-host claim — lowest live claim id works this ticket)
Owner

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 — 25304f657c24 is the standing wrapper, 4c82deb1e678 is the activation leg 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:

the _acme-challenge delegation 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

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-c CNAME → apex, acme.rehearsal-c NS 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:

  • Only public-entry failed. control-plane, dashboard, brand, admin and mesh are all done — 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 (droplet 595784241), 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.

**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 — `25304f657c24` is the `standing` wrapper, `4c82deb1e678` is the `activation` leg 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:** > the `_acme-challenge` delegation 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** 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-c` CNAME → apex, `acme.rehearsal-c` NS 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:** - Only `public-entry` failed. `control-plane`, `dashboard`, `brand`, `admin` and `mesh` are all `done` — 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` (droplet `595784241`), 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.
Author
Member

Ruled 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):

  • Revertible — a single later commit reverts the new reader wiring; nothing is destroyed and no external state is one-way.
  • Provable by a test I can run — red-first seam tests in 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.
  • Not on the one-way-door list — no credential, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend.
  • In the spirit of ADR 0136 — the ADR already says "the heartbeat rewrites every address-bearing record, glue included" and the #642 amendment already made it "reconciliation, not just change-detection." The _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.

**Ruled 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): - **Revertible** — a single later commit reverts the new reader wiring; nothing is destroyed and no external state is one-way. - **Provable by a test I can run** — red-first seam tests in `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. - **Not on the one-way-door list** — no credential, no security-posture widening, no member-facing trust accept, no data destruction, no non-routine spend. - **In the spirit of ADR 0136** — the ADR already says "the heartbeat rewrites every address-bearing record, glue included" and the #642 amendment already made it "reconciliation, not just change-detection." The `_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.
Author
Member

close-report for #922 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 922,
  "status": "success",
  "commits": [
    "bd9796b"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "internal/clan/acmedns.go",
    "internal/dns/authoritative.go",
    "internal/founding/ownvpspath.go",
    "internal/heartbeat/heartbeat.go",
    "internal/heartbeat/heartbeat_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/heartbeat/... ./internal/dns/...",
      "exit_code": 0
    },
    {
      "command": "go test ./... (main module)",
      "exit_code": 0
    },
    {
      "command": "cd broker && go build/vet/test ./...",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./... (main + broker)",
      "exit_code": 0
    },
    {
      "command": "go build -tags dev ./... && go vet -tags dev ./...",
      "exit_code": 0
    }
  ],
  "criteria": {
    "Make the heartbeat delegation-aware: challenge reader + live-CNAME reader; re-point when the readable fulldomain is non-empty and the live _acme-challenge.<slug> CNAME does not answer it": "internal/heartbeat/heartbeat.go — new ChallengeReader/LiveChallengeReader interfaces, WithDelegationReconcile option, delegationOwed() extends Tick's no-op short-circuit (heartbeat.go:260 branch now `&& !h.delegationOwed(ctx)`); production wired in control-plane/cmd/control-plane/main.go via readAcmeChallenge + dns.AuthoritativeReader.ReadCNAME (internal/dns/authoritative.go)",
    "Red-first seam test: fact appears after the first tick -> second tick re-points with it": "internal/heartbeat/heartbeat_test.go TestTick_DelegationFactAppearingAfterTheFirstTickRepointsWithIt — passes (verified: log 'community record re-pointed' on 2nd tick)",
    "Red-first seam test: fact already matches the live CNAME -> silent": "internal/heartbeat/heartbeat_test.go TestTick_DelegationAlreadyLiveIsSilentNoOp (+ trailing-dot FQDN) and TestTick_UnreadableLiveCNAMEDoesNotThrashARepoint — pass",
    "Correct the stale comments (acmedns.go and ownvpspath.go 'heartbeat writes ~90s after boot')": "internal/clan/acmedns.go (renderAcmeDNSGate doc + acmednsGateScript comment) and internal/founding/ownvpspath.go pointOwnVPSName comment now describe the post-boot-fact / next-tick reconcile (ADR 0136 amendment, #922)"
  },
  "summary": "The control-plane address heartbeat now reconciles the rented gateway's _acme-challenge.<slug> CNAME delegation once the acme-dns fulldomain fact publishes post-boot, so the TLS door opens instead of reding at activation.",
  "reason": "",
  "blockers": []
}
**close-report** for #922 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 922, "status": "success", "commits": [ "bd9796b" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "internal/clan/acmedns.go", "internal/dns/authoritative.go", "internal/founding/ownvpspath.go", "internal/heartbeat/heartbeat.go", "internal/heartbeat/heartbeat_test.go" ], "tests": [ { "command": "go test ./internal/heartbeat/... ./internal/dns/...", "exit_code": 0 }, { "command": "go test ./... (main module)", "exit_code": 0 }, { "command": "cd broker && go build/vet/test ./...", "exit_code": 0 }, { "command": "golangci-lint run ./... (main + broker)", "exit_code": 0 }, { "command": "go build -tags dev ./... && go vet -tags dev ./...", "exit_code": 0 } ], "criteria": { "Make the heartbeat delegation-aware: challenge reader + live-CNAME reader; re-point when the readable fulldomain is non-empty and the live _acme-challenge.<slug> CNAME does not answer it": "internal/heartbeat/heartbeat.go — new ChallengeReader/LiveChallengeReader interfaces, WithDelegationReconcile option, delegationOwed() extends Tick's no-op short-circuit (heartbeat.go:260 branch now `&& !h.delegationOwed(ctx)`); production wired in control-plane/cmd/control-plane/main.go via readAcmeChallenge + dns.AuthoritativeReader.ReadCNAME (internal/dns/authoritative.go)", "Red-first seam test: fact appears after the first tick -> second tick re-points with it": "internal/heartbeat/heartbeat_test.go TestTick_DelegationFactAppearingAfterTheFirstTickRepointsWithIt — passes (verified: log 'community record re-pointed' on 2nd tick)", "Red-first seam test: fact already matches the live CNAME -> silent": "internal/heartbeat/heartbeat_test.go TestTick_DelegationAlreadyLiveIsSilentNoOp (+ trailing-dot FQDN) and TestTick_UnreadableLiveCNAMEDoesNotThrashARepoint — pass", "Correct the stale comments (acmedns.go and ownvpspath.go 'heartbeat writes ~90s after boot')": "internal/clan/acmedns.go (renderAcmeDNSGate doc + acmednsGateScript comment) and internal/founding/ownvpspath.go pointOwnVPSName comment now describe the post-boot-fact / next-tick reconcile (ADR 0136 amendment, #922)" }, "summary": "The control-plane address heartbeat now reconciles the rented gateway's _acme-challenge.<slug> CNAME delegation once the acme-dns fulldomain fact publishes post-boot, so the TLS door opens instead of reding at activation.", "reason": "", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Matou/idss#922
No description provided.