rented drives: oc_droplet_assert_zero_obtain greps a caddy journal that the release leg already destroyed — a 2-line file makes #559's guard always say "the seed took" #747
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.
Dependencies
No dependencies set.
Reference
Matou/idss#747
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?
Live-confirmed on drive
20260824T132520Z(#743). On the RENTED targetlogs/droplet-caddy.txtis 2 lines long, and both are the harvest's own failurenote — so
oc_droplet_assert_zero_obtain's grep runs against a journal that containsnothing, returns zero matches, and prints:
on every green rented drive, whether or not the seed took. It is a guard that cannot
fail. #724's own headline proof — and #743's, which asks for
grep -c 'creating new order' logs/droplet-caddy.txtto be 0 — is therefore vacuous onexactly the drives it was written for.
Why the journal is empty
scripts/lib/rehearsal-droplet.sh:409harvests Caddy's journal over ssh to$OC_E2E_DROPLET_IPat evidence-gather time, inside droplet cleanup. On the rentedpath the journey's own
releaseleg destroys the box first (ADR 0189) — so the sshfails and the
|| echo "note: droplet caddy harvest failed (droplet unreachable?)"fallback is the entire file. This is #724's own root cause one level up: #724 fixed the
cert STORE being released with the box, and left the EVIDENCE being released with it.
Proof it is not merely quiet: drive
20260824T132520Zheld no store, so it ordered — andCert Spotter has the pair
rehearsal-c.idss.nz+*.rehearsal-c.idss.nz, LE notBefore2026-08-24T12:39:21Z(LE backdates notBefore ~1h, so issued ~13:39Z, the minute thatdrive greened). Two real orders; the journal that is supposed to see them says nothing.
Shape of a fix
The rented cert worker already asks the live box this exact question: Phase C's
probe_cmdrunsjournalctl -u caddy | grep -c "creating new order"over ssh while thebox is still alive, and uses the count to decide the harvest skip
(
oc_rented_certs_worker, same file). It just throws the number away unless it takes theskip branch. Two candidate fixes, both small:
logs/droplet-caddy.txt(or alogs/caddy-rented.txtbeside it) on its last successful probe, so the file theassertion greps is a real journal captured while the box lived; or
logs/cert-rented.txton every path (italready writes the "zero new orders" prose only on the skip), and have
oc_droplet_assert_zero_obtainprefer that number on the rented path.Either way the assertion must refuse to claim a negative from a journal with no TLS
activity in it — say INCONCLUSIVE, not "the seed took".
scripts/rented-cert-evidence.sh(
67754bcd) already applies that rule when reading the same file, andscripts/tests/rented-cert-evidence-test.shhas the offline case.Until then
For the rented path, Certificate Transparency is the working oracle: a drive that ordered
nothing adds no new issuance for the slug. Mind LE's ~1h notBefore backdating and CT's own
indexing delay — compare against a baseline taken before the drive, not a snapshot after.
Cert Spotter (
api.certspotter.com/v1/issuances?domain=idss.nz&include_subdomains=true)answers when crt.sh is 502ing, which it was all of 2026-08-24.
Filed by an agent session under ADR 0174 while working #743 (rule 1: file follow-ups, do
not widen the ticket).
Verified against the current code:
oc_droplet_assert_zero_obtainstill grepslogs/droplet-caddy.txt, which is only populated by an ssh harvest that runs after the rented path'sreleaseleg has already destroyed the box — so on the rented path the file is always the unreachable-fallback note, and the assertion's "the seed took" branch is unconditionally true. The claim holds. Not on the one-way-door list (a test/log-behavior fix, revertible by commit, provable offline) — proceeding toready-for-agent.Agent Brief
Category: bug
Summary: The rented-drive cert-seed verification (
oc_droplet_assert_zero_obtain) always reports "the seed took" on the rented path, because the caddy journal it greps is captured after the box that would contain evidence is already destroyed.Current behavior:
On the rented drive path, the release leg destroys the droplet before the evidence-gather step's ssh-based caddy-journal harvest runs. The harvest's ssh fails, a fallback note is written in its place, and the zero-new-orders assertion greps that empty/fallback file — it can never see a "certs were ordered" case, so it always passes, even when the seed did not take.
Desired behavior:
The rented path's cert-seed verification reflects a caddy journal that was actually captured while the box was alive (e.g. via the worker's own live probe during Phase C, which already runs the equivalent
journalctl | grep -c "creating new order"check before the box is destroyed). When no live-captured evidence exists for a given drive, the assertion must say so explicitly (an inconclusive/skipped verdict) rather than defaulting to "the seed took."Key interfaces:
oc_droplet_assert_zero_obtain(or its caller) — must distinguish "verified zero from live-captured evidence" from "no evidence available," and only claim "the seed took" in the former case.scripts/rented-cert-evidence.sh) already applies an analogous no-claim-without-evidence rule reading the same file — align with that precedent rather than inventing a new convention.Acceptance criteria:
scripts/tests/rented-cert-evidence-test.sh) covers all three cases above without needing a live drive.Out of scope:
swarm-claim host=elitebook-distributed-server-03 run=10601
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #747 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope