IDIP: the founder's agent boot has no way through the invite-gated /boot door #977

Closed
opened 2026-08-29 07:11:38 +00:00 by matou-build-agent · 1 comment

Failure

The identity-rows leg of the 20260829T065250Z IDIP drive red on your-identity. The page named the reason plainly (artifacts/journey.idip-IDIP-journey--133f0-ey-on-the-rehearsal-droplet/error-context.md, the fault panel in the page snapshot):

agent does not exist for controller EB-N_oD0wK7fOc9cwxz1TXa3WhWa0lHChDKOjW7IlJRy

The drive reported this as a blank reason; that presentation half is fixed in d7694b22. This issue is the fault itself, which is unfixed.

Evidence

The founder's agent boot is refused because the founder carries no boot token, and nothing in the founding path ever mints or attaches one.

  • app/src/lib/keri/client.ts:110-122 — initialize is connect-or-boot: it catches agent does not exist, calls conn.boot(), then conn.connect() again. The error that reached the row is that second connect(), outside the try — so conn.boot() did not create an agent.
  • app/src/components/founding/FoundingStandup.vue:820 — the founder's client is built as new KERIClient({ endpoints: keriDoorEndpoints(props.identityApex), store }). No boot-token fetch wrapper, no header, nothing.
  • app/src/keriweb/main.ts:68-80 — the member browser bundle is the only caller that gets through: it wraps window.fetch with withBootToken(...) (app/src/keriweb/doors.ts:46-61) for exactly the duration of client.initialize(bran). There is no founder-side twin.
  • internal/clan/keri.go:150-159 — keria-boot.<apex> is the one gated door, forward_auth'd to the control plane's /authz/idip-boot with copy_headers X-Idss-Boot-Token.
  • internal/controlapi/authgate.go:188-197 — bootGateVerify reads HeaderBootToken and denies via CheckBootToken; internal/keria/invite.go:144-147 denies an empty token outright with ErrBootDenied.
  • logs/droplet-journal.txt:1760 — idip adapter wired: boot door gated on invites, join page mounted, roster surface mounted (ADR 0212) at 07:01:51, i.e. the checker was live and denying by the time the legs ran.
  • ADR 0212 ruling 5 (docs/adr/0212-*.md:50-52) scopes the boot-token mechanism to "the member-browser bundle" only. The founder was never given a path.

One caveat on certainty: client.ts:117 discards conn.boot()'s return value, and signify-ts's boot() resolves with the Response rather than throwing on a non-2xx. So a 403 from the forward-auth is swallowed and re-surfaces as the misleading agent does not exist from the retry. The evidence cannot distinguish a 403 from another boot failure because the response is thrown away — that swallowing is worth fixing alongside, so the next occurrence names its own status.

Suspected layer

Renderer founding path + the IDIP boot gate's authorisation model. The founder is the one agent that must boot before any invite exists to gate it with — the gate has no founding-window concept.

Second defect in the same evidence: the community witness never came up, and the row said it had

  • logs/droplet-units.txt (ss -tlnp) — nothing listens on :5642. KERIA's 3901/3902/3903 are up; the witness is not.
  • logs/droplet-journal.txt:1884-1997 — keri-health-wait retried 127.0.0.1:5642 once a second from 07:02:10 and was still failing at 07:02:43, past the drive's own endedAt of 07:02:24 (artifacts/verdict.json).
  • Yet the identity-service row rendered ✓ done with the evidence line KERIA + witness + sign-in door live (door probe passed) (error-context.md page snapshot). That string is hardcoded at app/src/lib/identityLegs.ts:218-225, where the driver constructs identity-service as already done on the precondition that the carrier door probe passed.

So the door probe that gates the driver does not actually probe the witness, and the row claims a service is live that is down — an honesty defect of exactly the kind ADR 0088 forbids. This did not cause the red (agent boot precedes any witnessing), but it would have red the community-identity/your-membership legs immediately after, and it makes the ✓ untrustworthy.

What plugging it needs

A human ruling on the first defect before code — how does the founder authorise its own /boot? At least three shapes, with different security postures:

  1. The control plane mints a single-use founding invite for itself at stand-up and hands it to the renderer, which uses the existing withBootToken path (smallest change, reuses the whole mechanism).
  2. The boot gate opens for a bounded founding window that closes the moment the founder AID exists (no token to leak, but a real open-door interval).
  3. The control plane pre-boots the founder's agent — rejected on its face if it means the passcode leaves the renderer, which ADR 0197/0198 and identityLegs.ts:19-27 forbid.

Once ruled, the work is: wire the chosen path in FoundingStandup.vue:817-835, stop discarding the boot response in client.ts:113-122 so a refusal names its own status instead of masquerading as agent does not exist, and extend the boot-gate seam tests (internal/controlapi/boot_gate_test.go) to cover the founding case.

The second defect needs no ruling: make the door probe that gates the driver actually reach the witness, and stop identity-service asserting witness … live on a precondition that never checked it.

drive 20260829T065250Z red at identity-rows: identity row your-identity failed:
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260829T065250Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure The `identity-rows` leg of the `20260829T065250Z` IDIP drive red on `your-identity`. The page named the reason plainly (`artifacts/journey.idip-IDIP-journey--133f0-ey-on-the-rehearsal-droplet/error-context.md`, the fault panel in the page snapshot): > agent does not exist for controller `EB-N_oD0wK7fOc9cwxz1TXa3WhWa0lHChDKOjW7IlJRy` The drive reported this as a blank reason; that presentation half is fixed in `d7694b22`. This issue is the fault itself, which is unfixed. ## Evidence The founder's agent boot is refused because the founder carries no boot token, and nothing in the founding path ever mints or attaches one. - `app/src/lib/keri/client.ts:110-122` — `initialize` is connect-or-boot: it catches `agent does not exist`, calls `conn.boot()`, then `conn.connect()` again. The error that reached the row is that *second* `connect()`, outside the `try` — so `conn.boot()` did not create an agent. - `app/src/components/founding/FoundingStandup.vue:820` — the founder's client is built as `new KERIClient({ endpoints: keriDoorEndpoints(props.identityApex), store })`. No boot-token fetch wrapper, no header, nothing. - `app/src/keriweb/main.ts:68-80` — the *member* browser bundle is the only caller that gets through: it wraps `window.fetch` with `withBootToken(...)` (`app/src/keriweb/doors.ts:46-61`) for exactly the duration of `client.initialize(bran)`. There is no founder-side twin. - `internal/clan/keri.go:150-159` — `keria-boot.<apex>` is the one gated door, `forward_auth`'d to the control plane's `/authz/idip-boot` with `copy_headers X-Idss-Boot-Token`. - `internal/controlapi/authgate.go:188-197` — `bootGateVerify` reads `HeaderBootToken` and denies via `CheckBootToken`; `internal/keria/invite.go:144-147` denies an empty token outright with `ErrBootDenied`. - `logs/droplet-journal.txt:1760` — `idip adapter wired: boot door gated on invites, join page mounted, roster surface mounted (ADR 0212)` at 07:01:51, i.e. the checker was live and denying by the time the legs ran. - ADR 0212 ruling 5 (`docs/adr/0212-*.md:50-52`) scopes the boot-token mechanism to "the member-browser bundle" only. The founder was never given a path. One caveat on certainty: `client.ts:117` discards `conn.boot()`'s return value, and signify-ts's `boot()` resolves with the `Response` rather than throwing on a non-2xx. So a 403 from the forward-auth is swallowed and re-surfaces as the misleading `agent does not exist` from the retry. The evidence cannot distinguish a 403 from another boot failure *because* the response is thrown away — that swallowing is worth fixing alongside, so the next occurrence names its own status. ## Suspected layer Renderer founding path + the IDIP boot gate's authorisation model. The founder is the one agent that must boot before any invite exists to gate it with — the gate has no founding-window concept. ## Second defect in the same evidence: the community witness never came up, and the row said it had - `logs/droplet-units.txt` (`ss -tlnp`) — nothing listens on `:5642`. KERIA's 3901/3902/3903 are up; the witness is not. - `logs/droplet-journal.txt:1884-1997` — `keri-health-wait` retried `127.0.0.1:5642` once a second from 07:02:10 and was still failing at 07:02:43, past the drive's own `endedAt` of 07:02:24 (`artifacts/verdict.json`). - Yet the `identity-service` row rendered **✓ done** with the evidence line `KERIA + witness + sign-in door live (door probe passed)` (`error-context.md` page snapshot). That string is hardcoded at `app/src/lib/identityLegs.ts:218-225`, where the driver constructs `identity-service` as already `done` on the precondition that the carrier door probe passed. So the door probe that gates the driver does not actually probe the witness, and the row claims a service is live that is down — an honesty defect of exactly the kind ADR 0088 forbids. This did not cause the red (agent boot precedes any witnessing), but it would have red the `community-identity`/`your-membership` legs immediately after, and it makes the ✓ untrustworthy. ## What plugging it needs A human ruling on the first defect before code — how does the founder authorise its own `/boot`? At least three shapes, with different security postures: 1. The control plane mints a single-use founding invite for itself at stand-up and hands it to the renderer, which uses the existing `withBootToken` path (smallest change, reuses the whole mechanism). 2. The boot gate opens for a bounded founding window that closes the moment the founder AID exists (no token to leak, but a real open-door interval). 3. The control plane pre-boots the founder's agent — rejected on its face if it means the passcode leaves the renderer, which ADR 0197/0198 and `identityLegs.ts:19-27` forbid. Once ruled, the work is: wire the chosen path in `FoundingStandup.vue:817-835`, stop discarding the boot response in `client.ts:113-122` so a refusal names its own status instead of masquerading as `agent does not exist`, and extend the boot-gate seam tests (`internal/controlapi/boot_gate_test.go`) to cover the founding case. The second defect needs no ruling: make the door probe that gates the driver actually reach the witness, and stop `identity-service` asserting `witness … live` on a precondition that never checked it. drive `20260829T065250Z` red at `identity-rows`: `identity row your-identity failed: ` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260829T065250Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: facdb1c80cf1 -->
Owner

Duplicate of #968 (same rung: the founder's first KERIA boot hits the invite-gated /boot door; boot()'s 403 swallowed, connect() surfaces agent does not exist). Ben ruled A on #968 at 05:30Z — founding self-mints one single-use founder boot invite threaded to the app via withBootToken, honest-403 half in the same slice — and it is ready-for-agent. #788 now blocks on #968 instead. This drive (065250Z, 12/13 green) is the live evidence that #954/#966 hold and that 12a is the next wall.

Duplicate of **#968** (same rung: the founder's first KERIA boot hits the invite-gated `/boot` door; `boot()`'s 403 swallowed, `connect()` surfaces `agent does not exist`). Ben ruled **A** on #968 at 05:30Z — founding self-mints one single-use founder boot invite threaded to the app via `withBootToken`, honest-403 half in the same slice — and it is `ready-for-agent`. #788 now blocks on #968 instead. This drive (`065250Z`, 12/13 green) is the live evidence that #954/#966 hold and that 12a is the next wall.
ben closed this issue 2026-08-29 07:12:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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#977
No description provided.