Verify the idss-rental-expires- tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745
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.
Depends on
Reference
Matou/idss#745
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?
The rented-gateway expiry tag from #741 is merged and unit-proven, but it is not live, and cannot be until the broker's auto-deploy rail actually runs.
Evidence (2026-08-24, from #741's session):
broker-deploy'sdeployjob has run exactly once in the last 11,639 Forgejo action tasks.publish-brokersucceeds on every broker-touching push (29 runs), so the binary is published and nothing installs it.451d2c52, landed 2026-08-23 16:49Z): the account carried six per-rental SSH keys namedidss-gateway-idss-gateway-rehearsal-rentfail-<ts>-<rand>, minted at 17:07, 19:34, 21:35, 23:44, 00:35 and 01:33 — all after the fix that stopped the doubled prefix. Only pre-fix code writes that name. (Those six keys are now swept.)ready-for-human: #690 — the droplet one-time setup (deploy user + sudoers + install script + theBROKER_DEPLOY_SSH_KEYrepo secret). The workflow's own header says a run before that lands fails at the ssh step.So this ticket is the loop-closer for #741's broker half, once #690's hands step lands:
journalctl -u ourcloud-broker | grep 'broker booted'(GOTCHAS #59) — it must be at or past2af75c50.idss-rental-expires-<epoch>:doctl compute droplet list --tag-name idss-rental -o json | jq '.[].tags'.scripts/rental-reap.shto sweep, not stripped from a live droplet.Not urgent, not blocking a drive. Filed from #741 rather than done there because it needs a live broker deploy that does not exist yet.
Drive-side datapoint (from #743, ruled by agent under ADR 0174 — veto anytime).
A live observation while watching #743's drive 2, offered as evidence for this ticket rather than a fix:
idss-gateway-rehearsal-c-0f29(s-2vcpu-4gb), rented by the broker at 2026-08-24T13:41:38Z for rented drive20260824T134042Z, carried tags["idss-gateway", "idss-rental"]and nothing else — noidss-rental-expires-<epoch>.idss-gateway(1),idss-rental(1),idss-gateway-build(0),idss-707-probe(0). Theidss-rental-expires-*tag family does not exist at all yet.So this ticket's premise is confirmed live: #741's broker half is merged but the broker that actually rents the drive's gateway has not been redeployed, and every rental minted between now and that deploy is invisible to the sweep #741 built. (The box above was released cleanly by the drive's own
releaseleg at ~14:41Z, so nothing leaked this time — but that was the drive tearing down its own box, not the sweep.)Read-only DO API list; nothing was tagged, retagged or destroyed.
seamis cancelled — the newest published broker binary is b9a3adfd (2026-08-24), two broker commits behind main #864Session report (ADR 0174 session, unattended). Ruled by agent under ADR 0174 — veto anytime.
Half of this ticket is DONE and live-proven; the other half is blocked on a door that does not exist. Routing to
ready-for-humanwith the residue named below.What landed — the tag is live-proven against real DigitalOcean (
64110f29)The ticket's steps 2 and 3 are settled on live infra, just not through the production broker. New live-gated probe
broker/internal/broker/rentals_expiry_live_test.go(IDSS_RENTAL_EXPIRY_LIVE=1, the #713 harness shape — skips by default) builds abroker.Rentalsover the realDigitalOceanprovider, rents ones-2vcpu-4gbinsyd1, and asserts the three thingsFakeProviderstructurally cannot:idss-rental-expires-1787793713is exactly the ledger'sExpires(2026-08-27T01:21:53Z), alongside theidss-gateway/idss-rentalfleet tags the drive's own fallback reap selects on (GOTCHAS #48).DigitalOcean.Retag's real create→apply→remove dance, not a fake's bookkeeping.And the loop actually closes, live:
The
idss-rental-expires-*tag family now exists on the account for the first time (the 2026-08-24 comment on this ticket found it absent entirely) — created by a rent, moved by a renew, swept byrental-reap.sh.Nothing leaked. Afterwards: zero
idss-rentaldroplets, zeroidss-*SSH keys (so #708's key reap held live too), and the onlyidss-rental*tag left is the fleet tag itself. Two droplets were rented in total (a first run caught a probe bug, below); both destroyed. Cost ≈ $0.01.One hazard fell out. DO's droplet GET lags its own accepted DELETE: an
Existsfired immediately after a successfulReleaseanswered 200 (still live) while the very next DELETE on that same id answered 404 (already gone). That is GOTCHAS #2/#60's lesson read backwards — the provider's record is a delayed story about the droplet in both directions — so the probe now polls gone-ness over a bounded window instead of sampling once. GOTCHAS #60 extended.What did NOT land — the rail cannot deploy, for two independent reasons
Step 1 of this ticket ("confirm the live version is at or past
2af75c50") is unreachable. #690's droplet-side setup landed correctly on 2026-08-25; the rail still does not work. I dispatchedbroker-deployon the newest published sha to find out why, and there are two holes:(a) There is no ssh door.
broker-deploydialsdeploy@100.98.48.68from thematou-workstationrunner. That runner is DO dropletmatou-workstation(hostnamematou-dev-server-01), and its Netbird mesh isnetbird.dev.matou.nz's100.83.0.0/16—100.98.48.68is not a peer on it. The dispatched run (task 23021):Same from a shell on that box. The mail droplet's public IP
143.198.134.168answers on 443 (the broker serves/v1/gateways/offerfine) but times out on 22, so there is no fallback door either. The installer's rollback discipline held: nothing on the live broker was touched.(b) There is no published sha to deploy anyway.
publish-brokerneeds: seam, and aseamcancelled by a newer push takes it down; the next successful ci then diffs only its owngithub.event.before, which is already past the cancelled push's commits, so the broker change is never published and never backfilled. Probing the registry for every one of the last 120 commits onmain: the newest published binary isb9a3adfd(2026-08-24 22:49Z), although1aabd431(#813, the front-door probe) andbfd7b76b(rehearsal-5) both landed after it. Filed as #864 (bug,ready-for-session—.forgejo/is a protected path, #445), and added as a blocker of this ticket.Why human
A one-way-door ruling (ADR 0174 §3). Giving
broker-deploya route to the mail droplet means one of:matou-workstationinto the mesh that reaches100.98.48.68— needs a Netbird/Tailscale setup key, i.e. a credential only Ben holds; or134.199.154.244(the runner's public IP) — a deliberate security-posture widening on a production mail server, explicitly on the one-way-door list; orAny of the three is Ben's. Everything downstream of it is two-way and ready: the sha only needs #864 fixed, the installer is offline-proven with rollback, and the probe above is the acceptance test waiting to be re-run against the production broker.
Proposed default ruling (so a future session can adopt it if Ben rules the shape rather than doing it): put the mail droplet on
netbird.dev.matou.nzand changebroker-deploy.yml's ssh target to its address on that mesh — it keeps the door mesh-only (no public 22), matches how every other runner-reachable box works here, and is revertible by removing the peer.Not urgent, still. As this ticket already said: the sweep's drive wall needs no tag and no broker, and it is what catches a leaked box that is still healthy (GOTCHAS #76). Billing safety is unaffected — this remains the precision half. What the rail's breakage does block is every other broker fix reaching production: #756, #754, #813 and the rehearsal-5 broker work are all merged-and-not-live today.
Ledger
64110f29— live probe + GOTCHAS #59/#60 amendments + STATUS.md.seamis cancelled).TestRentalExpiryTag_LivePASS (58.8s); brokergo test ./...green;gofmt/go vetclean;rental-reap.shdry-run + real run;doctlconfirms zero leaked droplets/keys/tags.broker-deployrun failed at TCP connect and never reached the droplet.ready-for-humanwith the residue above; not closed, because its own acceptance (the tag observed through the production broker) is genuinely unmet.seamis cancelled — the newest published broker binary is b9a3adfd (2026-08-24), two broker commits behind mainThe one-way door was not one — the rail was pointed at a runner on the WRONG NETBIRD MESH
Ben ruled this "fix the runner and deploy" today. Reporting what the diagnosis actually found, because it is not any of the three options the previous session laid out.
None of the three proposed human acts was needed
The previous comment framed the residue as: enrol
matou-workstationon the mesh reaching100.98.48.68, or open the mail droplet's:22to the runner's public IP, or hands on the droplet. None of those is required. Verified read-only from Ben's laptop, which is already a peer on the relevant mesh:deployuser exists —uid=995(deploy) gid=985(deploy)/etc/sudoers.d/idss-broker-deploypresent/usr/local/sbin/idss-broker-installpresent (Aug 25 20:46)deploy'sauthorized_keyscarriesidss-broker-deploy— ED25519SHA256:jEIPxXqDLGBhSQ01rew+gysbMGJ3+1hjglgagD9nW6kBROKER_DEPLOY_SSH_KEYexistsSo #690's droplet side landed correctly and completely. The rail's own credential and target are fine.
The actual cause: two meshes that look identical from the runner registry
Matou runs two separate Netbird meshes, and they do not peer:
netbird.matou.nz(netbird.selfhosted)100.98.0.0/16workspace,100.98.48.68), Ben's laptop, the macs,clan-a/b/c,elitebook-distributed-server-01/02/03netbird.dev.matou.nz100.83.0.0/16matou-workstation(matou-dev-server-01), perdocs/architecture/03-fleet-topology.mdbroker-deploy.ymlsaidruns-on: matou-workstation— product mesh — while its ssh target is on the admin mesh. The droplet's public:22is shut, so there is no fallback door and the failure is always a timeout, never a refusal. That is why this looked like a missing credential for weeks.elitebook-03is an admin-mesh peer (100.98.240.186) and an active org runner. Both runners carry the sameswarmlabel and both read as "the swarm" from the registry, which is exactly why the split stayed invisible.What landed —
4c00fe0cbroker-deploy.yml:runs-on: matou-workstation→elitebook-03, with the mesh constraint recorded in the job header so it does not regress.note:line rather than red the drive). It also corrects GOTCHAS #28, which is stale: the unit isourcloud-broker.serviceand the binary/usr/local/bin/ourcloud-broker— the rebrand never reached this host.#864 is real but is NOT currently blocking
The previous comment added #864 as a blocker on the grounds that the newest published broker binary was
b9a3adfd(Aug 24 22:49Z). That is no longer true —64110f29published successfully at 2026-08-26 01:35Z (this ticket's own live-probe commit, minutes after that comment was written). Registry contents:0763e143,2af75c50,e6cfb526,b9a3adfd,64110f29.And
64110f29is the tip of all broker work —git log 64110f29..origin/main -- broker/is empty. Because the published artifact is a whole binary rather than an increment, one deploy of64110f29lands all ten commits the live broker is missing: #708, #741, #749, #751, #752, #754, #756, #813 and rehearsal-5's lease/carrier work. #864 stays open as a genuine latent bug; it is not in the way today.Residue — the dispatch itself
The production deploy has not run yet. The first
workflow_dispatchreturned HTTP 204 but created no task (Forgejo accepted it and registered nothing — the same shape as the known "dispatch silently no-ops until the workflow file is re-registered" behaviour), and the retry was refused by this session's own permission guard, which I am not routing around.To finish it, dispatch
broker-deployon64110f296a5089bf327a132c71c854060f8bd045— from the Forgejo UI, or:Then confirm live:
ssh dev@100.98.48.68 'sudo journalctl -u ourcloud-broker | grep "broker booted" | tail -1'(GOTCHAS #59) — currently pinned at Aug 23 04:17.This ticket's own acceptance (steps 2 and 3 — the tag observed and moved) is already live-proven against real DigitalOcean by
TestRentalExpiryTag_Live; what remains is step 1, observing it through the production broker, which needs the deploy above plus one rental.idss-broker-installis a hand-placed copy that nothing re-places or checks #872A second wall stood behind the mesh fix. Found, fixed in-repo, red/green proven — but the deploy still needs one hands step.
Moving
broker-deploytoelitebook-03(GOTCHAS #90) was a real fix and it changed no observable outcome: thedeployjob stayed red on all three dispatches after it (runs10866,10982,11014).Ruling out the obvious first
elitebook-03registered and active, labels['elitebook-03','swarm'].64110f29's binary returns200anonymously, so the skip-leg setsgo=1.elitebook-03: the host reaches100.98.48.68:22, and so does a Docker container on it. The runner isforgejo-runner-swarm.service("rootless docker"), so this mattered.~/.ssh/idss_broker_deployfingerprintsSHA256:jEIPxXqDLGBhSQ01rew+gysbMGJ3+1hjglgagD9nW6k, exactly what the droplet'sdeployuser authorizes.This Forgejo build exposes no job-log API (every
actions/runs/.../logsvariant 404s; the web endpoint needs a session cookie, not a token), so the rail could not be asked why it died. Running the install by hand answered instead:The accusation is false in every particular
filesays ELF 64-bit, statically linked — a real broker.strings /tmp/bp.bin | grep -c alpha-rentals→1.The defect is the SHAPE of the check
grep -qexits at the first match.stringsis then still writing the rest of ~9MB into a pipe with no reader, takes SIGPIPE, and dies 141.pipefailsurfaces that as the pipeline's status. Measured on the droplet:It is a race decided by payload size — which is exactly why it hid. On a real 9MB broker it loses nearly always (the install step succeeded once in 11,639 tasks). On the offline test's ~40-byte fake binary it wins always, so
scripts/tests/broker-install-test.shwas green throughout. The fake was smaller than production and so could not model it.What landed
scripts/broker/idss-broker-install.sh— the reader now drains (grep -F … >/dev/null);-qbought nothing, the redirect already silences it.scripts/tests/broker-install-test.sh— case 9: a production-shaped payload whose fakestringskeeps writing after the reader stops (FAKE_STRINGS_TAIL). Red against the pre-fix installer, green after. Cases 1–8 cannot reproduce this and never could.pipefailpipeline withgrep -qon a large producer) and its sharper half (a fake smaller than production does not model production).Residue — one hands step, then this ticket can close
The droplet's
/usr/local/sbin/idss-broker-installis a hand-placed copy (broker/README.md, "one-time setup"), so the repo fix is not live. On100.98.48.68as root:Then the deploy of
64110f29runs (that sha is main's broker — no broker-affecting commit has landed since), and this ticket's steps 1–3 can be checked. Live broker is still pinned at 2026-08-23 04:17.That copy is the deeper finding and is now #872: a rail whose own installer can only be updated by hand cannot ship a fix to itself, and every future installer defect wears this shape.
Ruled by agent under ADR 0174 — veto anytime.
scripts/tests/has ever run in ci — the seam does not reference a single one #873workflow_runevent here, and all 4 broker-deploy runs in history were manual #874waiting, oldest 23h; ci, healer, triage, resume-asks and broker-deploy are all starved #878seamis cancelled — the newest published broker binary is b9a3adfd (2026-08-24), two broker commits behind main #864idss-broker-installis a hand-placed copy that nothing re-places or checks #872Unblocked: the broker rail deployed for the first time — run 24074,
b186b7eblive on the droplet 2026-08-27 03:17Z (sha-verified; see #872's close-out and GOTCHAS #100 for why every earlier deploy died at ssh auth). The live broker now carries #741'sidss-rental-expires-tag; the next rented-gateway drive can verify it against the DO account.Verified live 2026-08-29/30 — all three steps green, closing
Verified against the DO account (broker's token) with the standing rental up, no new drive needed:
ourcloud-broker.serviceunit description reads buildb186b7ebc9, journal showsbroker booted … version=0.2.0-alpha-rentals(last boot 2026-08-27 22:34Z) — at/past2af75c50, carrying #741's tag half.idss-gateway-rehearsal-e-1244(created 2026-08-29 23:29Z) tags =idss-gateway, idss-rental, idss-rental-expires-1788135002.idss-rental-expires-1788135164(+162 s). The heartbeat is renewing every healthy pass (~120 s cadence, 17 successive epochs in the tag list). And the old tag objects are left behind, not stripped from a live droplet: 17 orphanidss-rental-expires-*tag objects atdroplets=0awaitingscripts/rental-reap.sh, exactly the contract.The precision half of #741's expiry story is live and behaving. Loop closed.