the device drive's gateway evidence harvest resolves the rent-operator key under the run dir, which on a standing-home drive never holds it #933
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.
Blocks
Reference
Matou/idss#933
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?
Failure
On drive
20260828T071107Z(targetdevice) all four gateway-side evidence files landed with nothing but a permission-denied line, on a box the same harvest proved was up:logs/gateway-journal.txt:root@168.144.175.167: Permission denied (publickey,keyboard-interactive)+note: gateway evidence gather failed (gateway unreachable?)logs/gateway-stall.txt,logs/gateway-units.txt: the same denial and their ownnote: … harvest failedmarkerslogs/gateway-caddy.txt: 137 bytes, same shapeMeanwhile
logs/gateway-do-forensics.txtrecordstcp/22: a FRESH connect succeeded — the box answers, whatever ssh did, 0% ping loss, and the dropletidss-gateway-rehearsal-c-24fa(id 595821419)active, created 07:12:33Z by this very drive —artifacts/standing-founded.jsonshows it re-founded ("ip": "168.144.175.167"). The drive's own founding legs (enroll-copy,enroll-activate,deploy,activation) are all green inartifacts/legs.json, so the app half reached that box over SSH throughout. Only the harvest half was locked out.This is exactly the blindness class #894 and #926 exist to close, and it is not the red this drive died on — the drive red at
decline-resumefor an unrelated UI-navigation reason (healed atc67a6925). It is a separate defect that survives that heal.Evidence
oc_droplet_evidenceresolves the per-run identity the rented box trusts atscripts/lib/rehearsal-droplet.sh:447:and
oc_device_evidencehands it the DRIVE run dir for the gateway box (scripts/lib/rehearsal-droplet.sh:1353):But a device drive launches the app on the STANDING home, not the per-run state dir (ADR 0208;
journey.device.spec.ts:276—launchApp({ stateDir: standingStateDir() })), so the broker mints the rent-operator key into the standing home. Checked on the executor just now:The run's own logs corroborate that the standing home is the app's state dir:
logs/state-logs.logreadsno state logs directory at /home/swarm/swarm/Matou/idss/test-results/standing-rented/state/logs, andlogs/clan-config-snapshot.logreadssource: /home/swarm/swarm/Matou/idss/test-results/standing-rented/state/clan-config. The run dir'sstate/holds only the harvestedclan-config-snapshot/.Honest caveat on scope.
artifacts/verdict.jsonrecords this drive ran at9ea7e9e8, i.e. one commit BEFORE #926 (6b3a3261) landed — so this run's denial is not by itself proof that #926 fails. The proof is the path check above: #926's identity expression cannot resolve on the device drive no matter which commit runs it, because the key is never written under$run_dir. The next drive carries #926 and will still harvest four empty gateway files.Suspected layer
The rehearsal harness's evidence layer —
scripts/lib/rehearsal-droplet.sh, the identity resolution at :447 and the gateway call site at :1353. Not the app, not the product, not the box.oc_rented_certs_worker(scripts/lib/rehearsal-droplet.sh:996) uses the same$run_dir/state/rent-operator/id_ed25519expression, but it runs on the RENTED drive, whose run dir IS the app's state dir — so it is correct there. Only the device path's gateway dial has the two dirs diverge, which is why #926 reads correct and still misses.What plugging it needs
Make the identity a resolved input rather than a
$run_dir-derived guess, so the caller that knows which state home the app ran on supplies it. Two shapes worth weighing (a design call for whoever picks it up):oc_droplet_evidencea third argument — an identity directory — defaulting to$run_dir/stateso the rented and create-trap callers stay byte-for-byte unchanged, and haveoc_device_evidencepass the standing home (${REHEARSAL_STANDING_DIR:-$root/test-results/standing-rented}/state, perscripts/lib/rehearsal-standing-lib.sh:39) for its gateway dial.Either way the device dial should keep its current ambient-key behaviour (the member droplet is clan-lab-created and trusts the executor's own key —
logs/device-journal.txtharvested 141 KB fine this run), and the host-key policy must stay untouched (ADR 0126).Targeted check:
bash scripts/tests/device-evidence-order-test.sh(which already asserts the gateway/device harvest split and thenote: … unreachablemarkers) plusbash scripts/tests/droplet-evidence-order-test.shfor the unchanged default path. A new case should pin that the gateway dial offers an identity resolved from the STANDING home while the default/rented path still resolves under the run dir — the assertion that fails today.drive
20260828T071107Zred atdecline-resume:expect(locator).toBeVisible() failed Locator: locator('[data-field="pending-device"]') Expected: visible Timeout: 60000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 6000evidence:
/home/swarm/swarm/Matou/idss/test-results/drive-device/20260828T071107Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=elitebook-distributed-server-03 run=13122
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #933 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope