IDIP drive reds at S6a — --password-store=basic does not make Electron's safeStorage available, so the ceremony's honest keychain refusal stops every drive (#788) #903
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#903
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
Drive
20260827T154850Z(targetidip, commit8fe49aea) reds on leg create after 60.8s:artifacts/legs.jsonleg 3,artifacts/verdict.jsonfirstRedLeg: "create". Legswizard-precheckandclaimare green.The timeout is
app/tests/e2e/fixtures/idip.ts:68—expect(page.locator('[data-status="install-machine"]')).toBeVisible({timeout: 60_000})after the S6a create click atidip.ts:67. The S7b install-method screen never arrives.Why — the app is behaving correctly; the harness is not
The accessibility snapshot in
artifacts/journey.idip-*/error-context.mdshows the ceremony still on screen (Create · 6 of 7, twelve words, the three prove-it boxes filled) with an error paragraph:That is verbatim
app/src/lib/keri/keychainStore.ts:66-70— the deliberate fail-loud guard (ADR 0195 / ADR 0100) reached viaapp/src-electron/electron-main.ts:377(safeStorage.isEncryptionAvailable()), surfaced through the{ok:false,error}envelope atelectron-main.ts:391-400and the preload throw atapp/src-electron/electron-preload.ts:66-70. The product is right: the headless drive host has no OS keyring, so it refuses to persist the derived passcode.The defect: the previous heal is inert
cc82fc3d("e2e: launch Electron with--password-store=basic") added the flag atapp/tests/e2e/fixtures/launch.ts:99-101, with a comment atlaunch.ts:93-98claiming "the basic store gives safeStorage a backend on such a host". That claim is false. Probed on this drive host against the exact nix Electron 33.4.11 the drive stages (scripts/stage-e2e-electron.sh,/nix/store/j435aq85r1rly0ad8a21spsshdqafgrm-electron-33.4.11):getSelectedStorageBackend()isEncryptionAvailable()encryptStringbasic_text--password-store=basicbasic_text--password-store=basic+safeStorage.setUsePlainTextEncryption(true)basic_textThe host already selected
basic_texton its own; the flag changes nothing. Since Electron ≥25 the plaintext backend counts as unavailable unless the app explicitly opts in viasafeStorage.setUsePlainTextEncryption(true)(seeapp/node_modules/electron/electron.d.ts:10781-10787). Socc82fc3dnever addressed the red it was written for, and this drive re-fired straight into it.Also probed: the opt-in works after
app.whenReady(), and even after an earlierisEncryptionAvailable()returned false — so a harness-sideapp.evaluate(...)inlaunch.ts(beside the existingshell.openExternalstub atlaunch.ts:~128) is technically sufficient; no production code change is needed to make it effective.Suspected layer
E2E harness / drive-host provisioning. Not the app:
keychainStore.ts,electron-main.tsand the S6a ceremony all behave to contract. No droplet fault —logs/droplet-do-forensics.txtshows the box created, active and answering (tcp/22: a FRESH connect succeeded); the drive never got as far as installing on it. (logs/broker-journal.txtis an expected off-mesh harvest miss, #681;logs/state-logs.logreports nostate/logsdir — also downstream of never founding.)What plugging it needs — one ruling, then a small change
Everything except this choice is settled. The ruling: may the rehearsal drive skip real keychain persistence for an identity secret?
app/tests/e2e/fixtures/launch.ts, replace the inert flag withawait app.evaluate(({ safeStorage }) => safeStorage.setUsePlainTextEncryption(true))right afterelectron.launch, and correct the now-wrong comment atlaunch.ts:93-98. One file, ~6 lines. Cost: the drive then persists the founder passcode under Electron's hardcoded in-memory key, and the rehearsal stops proving the realsafeStoragepath an operator's desktop takes — the S6a refusal atkeychainStore.ts:66becomes unreachable on every drive.dbus-run-sessionwithgnome-keyring-daemonunlocked sognome_libsecretis genuinely selected. Keeps the drive honest end-to-end; needs a package installed on matou-workstation (gnome-keyring-daemonis absent — only/usr/bin/dbus-run-sessionis present), i.e. infra state outside this checkout, plus a change to thenix develop .#e2e/ xvfb wrapper.Whichever way it goes,
cc82fc3d's flag and its comment should be removed or corrected — as written they assert a behaviour this host disproves, and they will mislead the next reader of this red.Not self-healed because
A is a security-shaped fidelity decision under ADR 0195 / ADR 0100 (whether the rehearsal may store an identity secret under a hardcoded key), B touches infra outside this checkout — and no targeted check on this machine reaches S6a:
s6aRecoveryPhraseAndCreateis used only byapp/tests/e2e/journey.idip.spec.ts:264, whose verification is a paid droplet drive. The unit seamapp/tests/unit/keri/s6aCeremony.test.ts:152-157asserts the refusal and is green either way.drive
20260827T154850Zred atcreate:expect(locator).toBeVisible() failed Locator: locator('[data-status="install-machine"]') Expected: visible Timeout: 60000ms Error: element(s) not found Call log: - Expect "toBeVisible" with timeout 60evidence:
/home/dev/swarm/Matou/idss/test-results/drive-idip/20260827T154850Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedFixed on
mainat41504d60: the e2e launcher setsIDSS_E2E_PLAINTEXT_KEYCHAIN=1and the main process then callssafeStorage.setUsePlainTextEncryption(true)— the only thing that makesisEncryptionAvailable()true on a keyring-less Linux host (--password-store=basicdoes not, as this ticket found). The product default stays fail-loud (ADR 0195). Closing; #788 re-drives on the fix.