Rehearsal drive harness doesn't capture the broker's log — recurrences of #678's fault can't be pinned to a call site #681
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#681
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?
Follow-up from #678 / #680. #678 is blocked on the next raw-DO-404
occurrence's
d.domethod/path/status line (added by #677) naming/v2/dropletsvsensureSSHKeyas the culprit. #680 was exactly that nextoccurrence (drive
20260822T185236Z, same sig3b0b824f61b8as #677/#678'soriginal) — but it still couldn't pin the call site, because no broker
process log is captured anywhere in the run directory. Every
logs/*.login that run is either empty or a guest-side local-connection failure; there
is no broker stdout/stderr file at all.
Why: the broker is a remote, standing service (
IDSS_BROKER_URL,scripts/lib/rehearsal-droplet.sh:283) that the drive harness rents agateway from — it is never spawned locally by
scripts/smoke-private-path.sh/scripts/rehearsal-cycle.sh, unlike theguest unit, whose logs the harness already knows how to harvest into
logs/guest-*.log. So the existing "redirect this local process's stdoutinto the run dir" pattern those files follow doesn't apply — capturing the
broker's log needs either:
scp/ssh cata log file, orjournalctl -u <broker-unit> --since <drive-start>over the same SSH door the harness already uses for droplet ops) into
$run_dir/logs/broker.logafter (or during) the drive, orharness scrapes.
What this needs before it's actionable: confirming exactly where/how the
broker is deployed on Matou infra (host, systemd unit name or equivalent,
log location) — this session traced the client side (
IDSS_BROKER_URL+scripts/lib/rehearsal-droplet.sh) but not the broker's own deploy target,which is out of this ticket's originating ticket's (#680's) scope to chase
down blind.
Proposed default ruling (ADR 0174 rule 4): once the deploy target is
confirmed, wiring a log pull into the run directory is a two-way door
(revertible by commit/config, provable by inspecting a subsequent drive's
logs/broker.log) — a session may rule and implement it without Ben.Related: #678 (the evidence gap this unblocks), #680 (the recurrence that
hit this gap and filed this ticket).
Precision for whoever picks this up (confirmed independently this
session): no code anywhere under
.sandcastle/,scripts/, ortests/e2e/spawns the broker — it's a standing systemd service on Matou infra
(
broker/README.mddocuments its env vars,BROKER_STATE_DIRis itssystemd
StateDirectory;broker/cmd/broker/main.go:179). So this is not astdout-redirect-at-spawn fix.
The pattern to mirror already exists in this repo for exactly this shape —
a one-shot SSH/journalctl harvest of a remote long-running service into
the run directory:
scripts/lib/rehearsal-droplet.sh:341-345(and354-358,372-377) do this fordroplet-caddy.txt—ssh ... 'journalctl ...' > "$run_dir/logs/droplet-caddy.txt" 2>&1 || echo "note..." | tee -a .... The broker-log harvest just needs the same shapepointed at the broker's host/unit instead of the droplet's, writing to
$run_dir/logs/broker-journal.txt. Still blocked on knowing the broker'sactual host + systemd unit name, which this session did not chase down
(host inventory, not this repo).
Traced the broker's deploy target as far as this session's access allows — confirmed the what, hit a hard wall on the where.
Confirmed:
broker/, ADR 0047/0189) deploys to the mail droplet, reached atssh dev@100.98.48.68— the same doordocs/operator-app/rehearsal-drive.mdalready documents foridss-bootstrap.servicere-staging, and the one GOTCHAS #28/#50 describe Ben using for broker deploys/redeploys.no IDSS_CLOUDFLARE_TOKEN..."), the same shapeoc_droplet_evidence(scripts/lib/rehearsal-droplet.sh) already harvests on the droplet side (journalctl -u caddy -u acme-dns-register→logs/droplet-caddy.txt). Pullingjournalctl -u <broker-unit> --since <drive-start>over the same SSH door into$run_dir/logs/broker.logis the natural fit — no new pattern needed, just the unit name.Not confirmed — and this session cannot confirm it:
/usr/local/bin/idss-broker; GOTCHAS #50 (2026-08-22, today, #647's redeploy) calls it "the newourcloud-brokerbinary". Binary name and systemd unit name aren't guaranteed to match (idss-bootstrap.servicealready wraps a differently-named binary on the same host), and no.servicefile for the broker is checked into the repo to check against (unlikescripts/bootstrap-reseed/idss-reseed.service).--since <drive-start>pull needs any host-specific journal-retention allowance, or a--uservs system scope flag.Why I couldn't chase it down myself: this session runs on
matou-dev-server-01, a peer on the product's own Netbird mesh (docs/architecture/03-fleet-topology.md) —netbird statusshows it peered only with matou-dev-server-02/03 and cherese-macbook-main.100.98.48.68is a Tailscale address on a separate admin mesh;ip route get 100.98.48.68on this host resolves through the plain default route, andssh dev@100.98.48.68failsNetwork is unreachable. Perdocs/operator-app/rehearsal-drive.md, the mail droplet is reached from matou-workstation, a different host than this session runs on. A future session-runner attempt dispatched to this same host class hits the identical wall, so I'm not leaving this to rediscover on a second automatic attempt.Ruling: NOT ruling this two-way-door myself. ADR 0174 rule 1(b) requires a ruling be provable by an existing test/drive/probe — I can't prove the unit name from here, and guessing risks landing
journalctl -u <wrong-name>that silently harvests nothing, which is the exact evidence gap this ticket exists to close, just moved one layer down (ADR 0100 territory: never fabricate a working-looking capture).Relabelling
ready-for-human.Why human
Ben's hands — confirming the broker's current systemd unit name (and journal-vs-file log location) needs eyes/access on the mail droplet (
ssh dev@100.98.48.68), reachable only from Ben's own admin mesh; this session-runner host has no route to it. Once the unit name is posted here, wiringjournalctl -u <unit> --since <drive-start>into$run_dir/logs/broker.logbeside the existing droplet-side harvest is the two-way door this ticket already carries a proposed default ruling for — a session can implement it the moment the name lands.Ruled by agent under ADR 0174 — veto anytime.
Related: #678, #680 (unblocked once landed).
provision — DigitalOcean refused: Not Found#682provision — DigitalOcean refused: Not Found#682Unblocked — the unit name, confirmed live from Ben's laptop
The one fact this ticket waited on, read off the host directly (read-only; nothing changed):
dev@100.98.48.68—workspace.netbird.selfhosted.ourcloud-broker.service(unit file at/etc/systemd/system/ourcloud-broker.service; binary/usr/local/bin/ourcloud-broker). So GOTCHAS #50's "ourcloud-brokerbinary" is the accurate name and GOTCHAS #28's/usr/local/bin/idss-brokeris stale — the rebrand never reached this host.sudo journalctl -u ourcloud-broker. Thebroker bootedline (GOTCHAS #59) is there, so a--since <drive-start>pull gets what #678 needs.That makes the harvest exactly the shape the ticket proposed: mirror
oc_droplet_evidence's one-shot pull (scripts/lib/rehearsal-droplet.sh:341-345, thedroplet-caddy.txtpattern) atourcloud-broker.serviceondev@100.98.48.68, writing$run_dir/logs/broker-journal.txt.One constraint the implementer MUST honour — mesh reachability
The mail droplet sits on the admin mesh (
netbird.selfhosted, managementnetbird.matou.nz,100.98.0.0/16). Not every executor host is on it:matou-workstationis NOT a peer on that mesh (it is on the product's ownnetbird.dev.matou.nz,100.83.0.0/16) —ssh dev@100.98.48.68from there failsNetwork is unreachable, which is precisely why the 2026-08-22 session could not chase this down.elitebook-03IS a peer —elitebook-distributed-server-03.netbird.selfhosted,100.98.240.186, currently Connected. It is now a provisioned executor host (#659, closed 2026-08-25).So the harvest must degrade honestly rather than red the drive: on an unreachable broker host, write the
note:line intologs/broker-journal.txtand continue, exactly asoc_droplet_evidencealready does with its|| echo "note..." | tee -ashape. A drive onmatou-workstationwill legitimately harvest nothing; a drive onelitebook-03gets the log. Do not make the drive's verdict depend on it.Ruling
Adopting the ticket's own proposed default (ADR 0174 rule 4): with the deploy target confirmed, wiring the pull into the run directory is a two-way door — revertible by commit, provable by inspecting a subsequent drive's
logs/broker-journal.txt. Retaggingready-for-agent; no further human input needed.swarm-claim host=elitebook-distributed-server-03 run=10109
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #681 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
idss-rental-expires-tag on a LIVE rental once the broker actually deploys (#741's broker half is merged but not installed) #745rehearsal-cslug with no pre-rent reservation sweep, andoc_standing_teardownbins the claim secret on a red re-found — the name is now permanently wedged (GOTCHAS #80 / #757) #896rehearsal-cslug wedged, device target has no pre-rent sweep #897--password-store=basicdoes not make Electron's safeStorage available, so the ceremony's honest keychain refusal stops every drive (#788) #903sshd.service; the Ubuntu 24.04 droplet hasssh.service#912systemctl enable --now sshdfails: Ubuntu droplet's unit isssh#913systemctl enable --now sshdfails: Ubuntu droplet's SSH unit isssh#916sshdunit — Ubuntu 24.04 names itssh, enroll exits 1 #917_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) #921_acme-challengedelegation never written — TLS door dead #922curl | sh -s --doorway can't answer its own consent prompt #938whole(drive 20260828T201246Z, sig 4c82deb1e678) #954group.registry.<regk>404s #1001node node-req-0003 has no deploy target(drive 20260903T223815Z) #1206