IDIP/S6a headless-keychain fix: land the GOTCHAS entry + fail-fast S6a diagnosis (follow-up to #900) #901

Closed
opened 2026-08-27 15:43:16 +00:00 by matou-build-agent · 2 comments

Follow-up to #900 (closed at cc82fc3d). The primary red is fixed — the e2e launcher now passes --password-store=basic so safeStorage has a backend on the headless drive host and S6a can persist the derived passcode. But #900's body called for two further deliverables that the fix commit (launch.ts only) did not land. Both are two-way doors; neither needs a session's standing, so this is ready-for-agent.

1. docs/GOTCHAS.md entry — headless Electron ⇒ safeStorage unavailable ⇒ S6a blocks founding

CLAUDE.md mandates a GOTCHAS entry "appended in the same commit as the fix"; cc82fc3d skipped it, and no existing entry names this hazard (grep for keychain/safeStorage/password-store finds nothing). Add a numbered Symptom → Cause → Rule entry:

  • Symptom: an IDIP drive hangs at S6a (Create · 6 of 7); the ceremony shows keri/keychain: the OS keychain is unavailable — refusing to persist an identity secret in plaintext and founding never starts.
  • Cause: the drive host is a headless Linux box with no OS keyring (no dbus session, no gnome-keyring/secret-tool), so Electron's safeStorage.isEncryptionAvailable() is false and requireKeychain() (app/src/lib/keri/keychainStore.ts:65-71) fails loud by design (ADR 0195 / ADR 0100).
  • Rule: the e2e launcher passes --password-store=basic (app/tests/e2e/fixtures/launch.ts) to give safeStorage a backend on such hosts; a real operator desktop has its keyring and never needs the flag. Note the fidelity trade recorded in #900 (route 2a: the drive no longer exercises the real libsecret backend).

2. Secondary — s6aRecoveryPhraseAndCreate waits blind on the success locator

app/tests/e2e/fixtures/idip.ts:68 waits only on [data-status="${expectStatus}"] and reports a bare element(s) not found after 60s, discarding the ceremony's own error paragraph that names the cause (this is exactly why #900 took a full 60s ceiling to diagnose). identityRowsDone in the same file (lines 82-91) already has the right shape: race the success locator against a failure locator and throw its detail text. Give S6a the same treatment so a future refusal reds in seconds with its reason. Verifiable against app/tests/e2e/fixtures/idip.test.ts.

Filed by an agent session under ADR 0174 — #900 was already closed with a human stand-down directive, so this preserves the residue rather than reopening it.

Follow-up to #900 (closed at `cc82fc3d`). The primary red is fixed — the e2e launcher now passes `--password-store=basic` so `safeStorage` has a backend on the headless drive host and S6a can persist the derived passcode. But #900's body called for two further deliverables that the fix commit (launch.ts only) did not land. Both are two-way doors; neither needs a session's standing, so this is `ready-for-agent`. ## 1. `docs/GOTCHAS.md` entry — headless Electron ⇒ `safeStorage` unavailable ⇒ S6a blocks founding CLAUDE.md mandates a GOTCHAS entry "appended in the same commit as the fix"; `cc82fc3d` skipped it, and no existing entry names this hazard (grep for `keychain`/`safeStorage`/`password-store` finds nothing). Add a numbered Symptom → Cause → Rule entry: - **Symptom:** an IDIP drive hangs at S6a (`Create · 6 of 7`); the ceremony shows `keri/keychain: the OS keychain is unavailable — refusing to persist an identity secret in plaintext` and founding never starts. - **Cause:** the drive host is a headless Linux box with no OS keyring (no dbus session, no gnome-keyring/secret-tool), so Electron's `safeStorage.isEncryptionAvailable()` is false and `requireKeychain()` (`app/src/lib/keri/keychainStore.ts:65-71`) fails loud by design (ADR 0195 / ADR 0100). - **Rule:** the e2e launcher passes `--password-store=basic` (`app/tests/e2e/fixtures/launch.ts`) to give `safeStorage` a backend on such hosts; a real operator desktop has its keyring and never needs the flag. Note the fidelity trade recorded in #900 (route 2a: the drive no longer exercises the real libsecret backend). ## 2. Secondary — `s6aRecoveryPhraseAndCreate` waits blind on the success locator `app/tests/e2e/fixtures/idip.ts:68` waits only on `[data-status="${expectStatus}"]` and reports a bare `element(s) not found` after 60s, discarding the ceremony's own error paragraph that names the cause (this is exactly why #900 took a full 60s ceiling to diagnose). `identityRowsDone` in the same file (lines 82-91) already has the right shape: race the success locator against a failure locator and throw its detail text. Give S6a the same treatment so a future refusal reds in seconds with its reason. Verifiable against `app/tests/e2e/fixtures/idip.test.ts`. _Filed by an agent session under ADR 0174 — #900 was already closed with a human stand-down directive, so this preserves the residue rather than reopening it._
Author
Member

swarm-claim host=elitebook-distributed-server-03 run=12791
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=elitebook-distributed-server-03 run=12791 (automated multi-host claim — lowest live claim id works this ticket)
Author
Member

close-report for #901 — status success

✅ close-report gates passed — every claim verified against main; issue closed.

envelope
{
  "issue": 901,
  "status": "success",
  "commits": [
    "6d81bdec8bf25d61da1d7e0aa60639dfe139aef3"
  ],
  "changed_files": [
    "app/tests/e2e/fixtures/idip.ts",
    "docs/GOTCHAS.md"
  ],
  "tests": [
    {
      "command": "npx vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    },
    {
      "command": "npx eslint tests/e2e/fixtures/idip.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "GOTCHAS entry — headless Electron safeStorage unavailable blocks S6a founding (Symptom/Cause/Rule)": "docs/GOTCHAS.md entry #109 added, Symptom→Cause→Rule, cites keychainStore.ts:65-71, ADR 0195/0100, launch.ts, #900 fidelity trade",
    "s6aRecoveryPhraseAndCreate races success vs failure locator and throws its detail": "app/tests/e2e/fixtures/idip.ts:67-77 now races [data-status=expectStatus] against ceremony [data-status=recovery-error] and throws its textContent, mirroring identityRowsDone"
  },
  "summary": "Landed the headless-keychain GOTCHAS entry (#109) and gave the S6a fixture a fail-fast diagnosis racing the ceremony's recovery-error paragraph.",
  "blockers": []
}
**close-report** for #901 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 901, "status": "success", "commits": [ "6d81bdec8bf25d61da1d7e0aa60639dfe139aef3" ], "changed_files": [ "app/tests/e2e/fixtures/idip.ts", "docs/GOTCHAS.md" ], "tests": [ { "command": "npx vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 }, { "command": "npx eslint tests/e2e/fixtures/idip.ts", "exit_code": 0 } ], "criteria": { "GOTCHAS entry — headless Electron safeStorage unavailable blocks S6a founding (Symptom/Cause/Rule)": "docs/GOTCHAS.md entry #109 added, Symptom→Cause→Rule, cites keychainStore.ts:65-71, ADR 0195/0100, launch.ts, #900 fidelity trade", "s6aRecoveryPhraseAndCreate races success vs failure locator and throws its detail": "app/tests/e2e/fixtures/idip.ts:67-77 now races [data-status=expectStatus] against ceremony [data-status=recovery-error] and throws its textContent, mirroring identityRowsDone" }, "summary": "Landed the headless-keychain GOTCHAS entry (#109) and gave the S6a fixture a fail-fast diagnosis racing the ceremony's recovery-error paragraph.", "blockers": [] } ``` </details>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#901
No description provided.