activation: LE 429 duplicate-cert limit on rehearsal-c.idss.nz reds public-entry #941
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#941
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?
What red'd
verdict.jsonmarks the drive red with"firstRedLeg": "standing", andlegs.jsoncarries exactly two reds — thestandingumbrella leg (3904797 ms) and the leg inside it that actually threw,activation(644768 ms). Every other leg is green, includingpair(138 ms) anddeploy(11242 ms). Both reds carry the identical message:This is not the KNOWN frontier. The brief names the frontier as "pairing never flips — the own-VPS carrier issue named in legs.json's skip reasons".
legs.jsonin this run carries no skip reasons at all (verdict.json:"skip": 0), andpairis green. This red is a different, new failure.The drive also never reached its own subject: the leg list ends at
activation, so nodevice-*leg ran. The device droplet134.199.162.122(clan-lab-rehearsal-029c4887,24.04 (LTS) x64) sat as bare Ubuntu for the full 65 minutes —logs/device-units.txtshows nothing listening butsshdandsystemd-resolved, andlogs/device-caddy.txtis-- No entries --. The device-add journey was blocked by its standing-community prefix.The evidence chain
1. The product's own record says
public-entryis the only failed step.logs/founding-state.log(standup.deploy):The deploy log tail is 120 identical probes, ending:
120 × 5 s ≈ 600 s, which is the 644768 ms
activationleg.2. The gateway is otherwise healthy — the door just has no certificate.
logs/gateway-units.txtreportssystemctl --failedempty and Caddy bound on both ports:3. The real cause, from
logs/gateway-caddy.txt(first line after Caddy starts, 13:40:11):and the same for the bare apex:
That repeats for the whole run with growing backoff —
"attempt":1,"retrying_in":60at 13:40:11 through"attempt":8,"retrying_in":1200,"elapsed":2446at 14:20:56, against"max_duration":2592000. Caddy was never going to serve:443before the LE window rolls on 2026-08-29 ~17:44 UTC — long past any probe budget the drive could set.The 429 is decisive about what is broken and what is not:
too many certificates (5) already issuedmeans five orders for this exact identifier set succeeded in the previous 168 h. Issuance, and therefore the DNS-01 delegation, works in general. This drive's orders were refused atnew-order, before any challenge was ever attempted.4. The product's rendered explanation blames the wrong thing.
logs/founding-state.log,standup.deploy.failure:The classifier reached
kind: "delegation"from the symptom (nothing answers on 443) without reading Caddy's actual issuer error, and instructs the operator to go repair a delegation that is not the fault. That is a misdirection defect in its own right.Suspected layer
Two defects, both actionable:
A. Harness / infra (primary — this is what made the run red)
The rehearsal drive stands its community up under a fixed name.
founding-state.logshows"slug": "rehearsal-c","host": "rehearsal-c.idss.nz", andlogs/clan-config-snapshot.logsources state from a persistenttest-results/standing-rented/state/clan-config(HEAD: 704052e). Every drive therefore requests certificates for the same exact identifier set, and Let's Encrypt caps that at 5 per 168 h. The sixth-and-later drive in any week reds atpublic-entryno matter how correct the product is — this is a self-inflicted, calendar-driven flake with a ~24 h recovery time.B. Product (diagnostic quality — masked here, but it fires every time)
public-entry's failure classifier hard-codeskind: "delegation"for "nothing answered over TLS". It should read Caddy'stls.obtainerror and split at least three cases:urn:ietf:params:acme:error:rateLimited(surface the CA's ownretry afterand say resuming is pointless until then), a genuine DNS-01/delegation failure, and a cold start still in progress.C. Product (secondary, latent — worth its own ticket)
The acme-dns registration ran before acme-dns's API was listening, and reported success anyway.
logs/gateway-journal.txt:The curl lost a sub-second race against acme-dns binding
:8081(after 0 ms), and the unit still exitedFinished. The delegation gate then timed out and fail-opened:Whether the delegation was genuinely dead this run cannot be settled from these logs — the 429 refused every order before a challenge, so nothing ever exercised it. But a registration unit that swallows a connect-refused and reports success is a real readiness race regardless.
Also in the same journal, harmless but noted:
clan-switch-gateway-a7bac7d9.service: Main process exited, code=exited, status=4/NOPERMISSIONat 13:40:10 — the interrupted activate the drive already recovered from (enroll-activateis green: "the switch finished on the box after the interrupted activate — /run/current-system matches the built system").What plugging it needs
rehearsal-c-<runid>.idss.nz), or point rehearsal drives at the Let's Encrypt staging CA, or persist and reuse the issued cert/ACME account across drives. Any of the three removes the 5/168 h cliff. This is the fix that turns the drive back green.public-entryclassifier to read the issuer error. Parse Caddy'stls.obtainoutput; when it carrieserror:rateLimited, emitkind: "rate-limited"with the CA'sretry aftertimestamp, and fail fast instead of burning the full 600 s probe budget against a door that provably cannot open yet. The currentkind: "delegation"text sends an operator to repair a zone that is fine.127.0.0.1:8081until it answers (or order the unitAfter=acme-dns's socket readiness), and exit non-zero on curl failure rather thanFinished.What is absent
logs/gateway-do-forensics.txtanddevice-do-forensics.txtboth note the boxes still answer a fresh TCP connect, but I have no sanctioned way in and ran nothing against them.) I also could not enumerate sibling run directories to count priorrehearsal-cdrives — the sandbox confines reads to this run directory — so the "5 issued this week" count comes from Let's Encrypt's own 429, not from local run history.logs/droplet-journal.txtdoes not exist. This drive splits the harvest intologs/gateway-journal.txt(2029 lines) andlogs/device-journal.txt(1369 lines) instead.logs/broker-journal.txtis a harvest failure by design:dev@100.98.48.68: Permission denied (publickey)— off the admin mesh (ADR 0208, #681); the verdict does not depend on it.logs/state-logs.log:ERROR: no state logs directory at .../standing-rented/state/logs: ENOENT.guest-*.logfiles are empty or-- No entries --, andlogs/qemu.logshows no qemu process — VM mode was not used this run (artifacts/host.json:"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT","payloadMode": "/home/swarm/swarm/rehearsal-payload").logs/helper.logis zero bytes.drive
20260828T132108Zred atstanding: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/20260828T132108Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedRuling (ADR 0174) — not a code defect at
activation; the wall was reached by ghost re-foundingsThe 429 is real and stands until 2026-08-29 17:40 UTC for
rehearsal-c.idss.nz+*.rehearsal-c.idss.nz. No worker can fix that in code, so this ticket movesready-for-agent→ready-for-human.Root cause (landed
8ddfac9f, GOTCHAS #114):OC_BOOTSTRAP_AGENT_PATHSwasagent/ go.mod go.sum internal/and counted_test.go/testdata/.dcab019c— one//nolintline inagent/internal/trust/trust_test.go(#914) — read as agent-affecting, so the standing lib (ADR 0207) declared the founding SHA stale and re-founded the community on every following drive; each founding ordered two fresh certificates. Five foundings in a day = the whole 168h budget. The set now excludes**/*_test.goand**/testdata/**(git magic pathspecs, honoured by every consumer);bootstrap-staleness-test.shproves test-only churn is fresh and a source change beside it still parks.Remedy (Ben ruled "do both"): filter fix above + slug rotation
rehearsal-c→rehearsal-din elitebook-03's~/swarm/idss-env.shand retirement of therehearsal-cstanding home so the next drive founds fresh. The env edit is out-of-tree on the drive host — pending Ben's hands. This ticket closes when the firstrehearsal-ddrive clearsactivation.#942 was the same failure filed for the inner leg; closed as duplicate.
Closing: cause fixed (
8ddfac9f), slug rotated torehearsal-dand therehearsal-cstanding home retired on elitebook-03 (Ben, 2026-08-28). The old gateway595889348carriesidss-rental-expires-1788015009— the broker TTL reaps it 2026-08-29; not held.Verification is the next #854 drive: it founds
rehearsal-dfresh (earned this time) and must clearactivation. If it reds there again the reporter files anew with fresh evidence; holding this ticket open would only block the drive that proves it.