The bridge sign-in page words progress into its refusal alert — one [data-status] region serves two writers #1024

Closed
opened 2026-08-30 08:55:33 +00:00 by matou-build-agent · 4 comments

Failure

The idss-idp bridge's sign-in page has exactly one status region, and it is double-booked: the Go server words its refusals there, and the member-browser bundle words its progress there. A member signing in sees "Reconnecting your identity…" rendered in error red inside a role="alert" region, and a screen reader announces it assertively — while nothing has gone wrong.

The rehearsal drive 20260830T083843Z walked straight into this: its oidc-admin leg red at 1558 ms with the bridge refused the sign-in: Reconnecting your identity…, quoting the bundle's own "we're working" line back as a bridge refusal (artifacts/legs.json, last row; artifacts/journey.json fault). The drive-side probe has been repaired in 072afabe so it waits through those lines, but the region itself is unchanged — this issue is the product defect underneath, not the probe.

Evidence

  • internal/idp/brand.go:123 — the page renders ONE status element:
    <p class="status" data-status role="alert">%s</p>
  • internal/idp/brand.go:108 — it is styled as an error unconditionally:
    .status { min-height: 1.2em; margin: 14px 0 0; font-size: .9rem; color: #b00020; }
  • internal/idp/signin.go:44,85,123,127,129 — the server's five writePage(w, id, …) statuses: the empty fresh-page render plus four refusals (didn't verify / no membership yet / revoked / couldn't complete).
  • app/src/keriweb/main.ts:104 — the bundle's sign-in path grabs that same element: const status = statusEl('[data-status]').
  • app/src/keriweb/main.ts:111,119,135 — and writes progress into it: say(status, 'Reconnecting your identity…'), say(status, 'Answering the community’s challenge…'), say(status, 'Signing you in…').
  • internal/idp/brand.go:146,151 — the inline fallback script also targets [data-status] for the bundle's thrown errors, which are refusals; those are correct and must keep landing in the refusal region.
  • The bridge was healthy and answered nothing during the failed leg — logs/droplet-journal.txt:1646-1677 shows idss-idp listening on 127.0.0.1:8465 from 08:49:56 with no refusal logged, confirming the text on screen was the bundle's progress and not a server answer.

Suspected layer

The bridge's own sign-in page markup (internal/idp/brand.go) plus the member-browser bundle's sign-in path (app/src/keriweb/main.ts idssKeriSignIn). Not the OIDC flow, not the roster, not the drive harness.

What plugging it needs

Split the two channels so "we're working" and "no" are distinguishable to a member, to assistive tech, and to any observer:

  1. brand.go — add a second paragraph beside the status one, e.g. <p class="progress" data-progress aria-live="polite"></p>, not error-coloured. Leave [data-status] role="alert" as the refusal channel only, and keep the server writing its writePage statuses there.
  2. main.ts idssKeriSignIn — point its three say(status, …) calls at [data-progress]; leave thrown-error text going to [data-status] (those are genuine refusals). Clear the progress line when a refusal is shown so the two never read as contradicting each other.
  3. brand.go's inline fallback script (:146-151) — keep writing caught errors to [data-status], and clear [data-progress].
  4. Add a Go seam test over the rendered page asserting the two regions exist and are distinct, and update app/tests/e2e/fixtures/idip.test.ts — its new bundleSignInProgressLines() scan should then assert the sign-in path writes to [data-progress], at which point BRIDGE_REFUSAL_TEXT can collapse back to the simple non-empty test the region was always meant to support.

Note for whoever picks this up: where the progress line sits on the page and its exact copy is a UX call against the bridge sign-in contract (ADR 0212, brand.go is the contract per app/tests/e2e/fixtures/idip.ts's header). The requirement — progress must not be worded into the refusal alert — is not in question.

drive 20260830T083843Z red at oidc-admin: the bridge refused the sign-in: Reconnecting your identity…
evidence: /home/dev/swarm/Matou/idss/test-results/drive-idip/20260830T083843Z on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured

## Failure The idss-idp bridge's sign-in page has exactly one status region, and it is double-booked: the Go server words its **refusals** there, and the member-browser bundle words its **progress** there. A member signing in sees "Reconnecting your identity…" rendered in error red inside a `role="alert"` region, and a screen reader announces it assertively — while nothing has gone wrong. The rehearsal drive `20260830T083843Z` walked straight into this: its `oidc-admin` leg red at 1558 ms with `the bridge refused the sign-in: Reconnecting your identity…`, quoting the bundle's own "we're working" line back as a bridge refusal (`artifacts/legs.json`, last row; `artifacts/journey.json` `fault`). The drive-side probe has been repaired in `072afabe` so it waits through those lines, but the region itself is unchanged — this issue is the product defect underneath, not the probe. ## Evidence - `internal/idp/brand.go:123` — the page renders ONE status element: `<p class="status" data-status role="alert">%s</p>` - `internal/idp/brand.go:108` — it is styled as an error unconditionally: `.status { min-height: 1.2em; margin: 14px 0 0; font-size: .9rem; color: #b00020; }` - `internal/idp/signin.go:44,85,123,127,129` — the server's five `writePage(w, id, …)` statuses: the empty fresh-page render plus four refusals (didn't verify / no membership yet / revoked / couldn't complete). - `app/src/keriweb/main.ts:104` — the bundle's sign-in path grabs *that same* element: `const status = statusEl('[data-status]')`. - `app/src/keriweb/main.ts:111,119,135` — and writes progress into it: `say(status, 'Reconnecting your identity…')`, `say(status, 'Answering the community’s challenge…')`, `say(status, 'Signing you in…')`. - `internal/idp/brand.go:146,151` — the inline fallback script also targets `[data-status]` for the bundle's thrown errors, which *are* refusals; those are correct and must keep landing in the refusal region. - The bridge was healthy and answered nothing during the failed leg — `logs/droplet-journal.txt:1646-1677` shows idss-idp listening on `127.0.0.1:8465` from 08:49:56 with no refusal logged, confirming the text on screen was the bundle's progress and not a server answer. ## Suspected layer The bridge's own sign-in page markup (`internal/idp/brand.go`) plus the member-browser bundle's sign-in path (`app/src/keriweb/main.ts` `idssKeriSignIn`). Not the OIDC flow, not the roster, not the drive harness. ## What plugging it needs Split the two channels so "we're working" and "no" are distinguishable to a member, to assistive tech, and to any observer: 1. `brand.go` — add a second paragraph beside the status one, e.g. `<p class="progress" data-progress aria-live="polite"></p>`, not error-coloured. Leave `[data-status] role="alert"` as the refusal channel only, and keep the server writing its `writePage` statuses there. 2. `main.ts` `idssKeriSignIn` — point its three `say(status, …)` calls at `[data-progress]`; leave thrown-error text going to `[data-status]` (those are genuine refusals). Clear the progress line when a refusal is shown so the two never read as contradicting each other. 3. `brand.go`'s inline fallback script (`:146-151`) — keep writing caught errors to `[data-status]`, and clear `[data-progress]`. 4. Add a Go seam test over the rendered page asserting the two regions exist and are distinct, and update `app/tests/e2e/fixtures/idip.test.ts` — its new `bundleSignInProgressLines()` scan should then assert the sign-in path writes to `[data-progress]`, at which point `BRIDGE_REFUSAL_TEXT` can collapse back to the simple non-empty test the region was always meant to support. Note for whoever picks this up: where the progress line sits on the page and its exact copy is a UX call against the bridge sign-in contract (ADR 0212, `brand.go` is the contract per `app/tests/e2e/fixtures/idip.ts`'s header). The requirement — progress must not be worded into the refusal alert — is not in question. drive `20260830T083843Z` red at `oidc-admin`: `the bridge refused the sign-in: Reconnecting your identity…` evidence: `/home/dev/swarm/Matou/idss/test-results/drive-idip/20260830T083843Z` on matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was captured <!-- rehearsal-sig: 94a048d819e4 -->
Author
Member

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

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

Ruled by agent under ADR 0174 — veto anytime.

The issue flags one open UX call: where the new progress line sits on the page and its exact copy (against the ADR 0212 bridge sign-in contract). The requirement itself — progress must not be worded into the role="alert" refusal region — was not in question and is what the fix delivers.

Ruling: the progress line renders as a second paragraph <p class="progress" data-progress aria-live="polite"> placed directly beneath the [data-status] alert, styled muted (color: #555), not error-red. It carries no static copy; the member-browser bundle writes its three in-flight lines there ("Reconnecting your identity…", "Answering the community's challenge…", "Signing you in…") and the page's submit handler clears it the instant a refusal is shown.

Why two-way: a pure markup/CSS placement + region split. Fully revertible by a later commit, touches no credentials, no security posture, no member-facing trust accept, and destroys no data. Proven at the render seam — TestSeam_SignInPage_ProgressAndRefusalAreDistinctRegions (internal/idp/seam_test.go) asserts the two regions exist and are distinct, and app/tests/e2e/fixtures/idip.test.ts pins the sign-in path's progress writes to [data-progress]. A steward can reword or relocate the line anytime without reopening the defect.

**Ruled by agent under ADR 0174 — veto anytime.** The issue flags one open UX call: *where the new progress line sits on the page and its exact copy* (against the ADR 0212 bridge sign-in contract). The requirement itself — progress must not be worded into the `role="alert"` refusal region — was not in question and is what the fix delivers. **Ruling:** the progress line renders as a second paragraph `<p class="progress" data-progress aria-live="polite">` placed directly beneath the `[data-status]` alert, styled muted (`color: #555`), not error-red. It carries no static copy; the member-browser bundle writes its three in-flight lines there ("Reconnecting your identity…", "Answering the community's challenge…", "Signing you in…") and the page's submit handler clears it the instant a refusal is shown. **Why two-way:** a pure markup/CSS placement + region split. Fully revertible by a later commit, touches no credentials, no security posture, no member-facing trust accept, and destroys no data. Proven at the render seam — `TestSeam_SignInPage_ProgressAndRefusalAreDistinctRegions` (`internal/idp/seam_test.go`) asserts the two regions exist and are distinct, and `app/tests/e2e/fixtures/idip.test.ts` pins the sign-in path's progress writes to `[data-progress]`. A steward can reword or relocate the line anytime without reopening the defect.
Author
Member

close-report for #1024 — status success

⛔ close-report gates REFUSED this close — the following claims did not verify:

  • commit 2cb38c9 is not reachable from origin/main (not landed)
  • changed_files: 'STATUS.md' is not in the diff of the claimed commits
  • changed_files: 'app/src/keriweb/main.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/idip.test.ts' is not in the diff of the claimed commits
  • changed_files: 'app/tests/e2e/fixtures/idip.ts' is not in the diff of the claimed commits
  • changed_files: 'internal/idp/brand.go' is not in the diff of the claimed commits
  • changed_files: 'internal/idp/seam_test.go' is not in the diff of the claimed commits
envelope
{
  "issue": 1024,
  "status": "success",
  "commits": [
    "2cb38c9"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/tests/e2e/fixtures/idip.test.ts",
    "app/tests/e2e/fixtures/idip.ts",
    "internal/idp/brand.go",
    "internal/idp/seam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/idp/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "brand.go adds a second non-error progress region beside [data-status role=alert]": "internal/idp/brand.go: new `<p class=\"progress\" data-progress aria-live=\"polite\">` + `.progress { color:#555 }` style; [data-status role=alert] left as refusal-only",
    "main.ts idssKeriSignIn points its three progress lines at [data-progress]; thrown errors still surface as refusals": "app/src/keriweb/main.ts: `const progress = statusEl('[data-progress]')` and three `say(progress, …)` calls; thrown Errors propagate to brand.go's catch handler which writes [data-status]",
    "the progress line is cleared when a refusal is shown": "internal/idp/brand.go submit handler catch: `if (progress) progress.textContent = ''` before writing the refusal into [data-status]",
    "inline fallback script keeps writing caught errors to [data-status] and clears [data-progress]": "internal/idp/brand.go inline script: clears [data-progress] then sets [data-status].textContent",
    "Go seam test asserts the two regions exist and are distinct": "internal/idp/seam_test.go TestSeam_SignInPage_ProgressAndRefusalAreDistinctRegions (go test ./internal/idp/ exit 0)",
    "idip.test.ts bundleSignInProgressLines asserts the sign-in path writes to [data-progress] and BRIDGE_REFUSAL_TEXT collapses to simple non-empty": "app/tests/e2e/fixtures/idip.test.ts scans `say(progress, …)` and asserts `statusEl('[data-progress]')`; app/tests/e2e/fixtures/idip.ts BRIDGE_REFUSAL_TEXT = /\\S/ (vitest exit 0)"
  },
  "summary": "The bridge sign-in page's double-booked [data-status] region is split into a role=alert refusal channel and a new aria-live=polite [data-progress] channel, so member progress never renders in the refusal alert.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1024 — status `success` :no_entry: **close-report gates REFUSED this close** — the following claims did not verify: - commit 2cb38c9 is not reachable from origin/main (not landed) - changed_files: 'STATUS.md' is not in the diff of the claimed commits - changed_files: 'app/src/keriweb/main.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/idip.test.ts' is not in the diff of the claimed commits - changed_files: 'app/tests/e2e/fixtures/idip.ts' is not in the diff of the claimed commits - changed_files: 'internal/idp/brand.go' is not in the diff of the claimed commits - changed_files: 'internal/idp/seam_test.go' is not in the diff of the claimed commits <details><summary>envelope</summary> ```json { "issue": 1024, "status": "success", "commits": [ "2cb38c9" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/tests/e2e/fixtures/idip.test.ts", "app/tests/e2e/fixtures/idip.ts", "internal/idp/brand.go", "internal/idp/seam_test.go" ], "tests": [ { "command": "go test ./internal/idp/", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "brand.go adds a second non-error progress region beside [data-status role=alert]": "internal/idp/brand.go: new `<p class=\"progress\" data-progress aria-live=\"polite\">` + `.progress { color:#555 }` style; [data-status role=alert] left as refusal-only", "main.ts idssKeriSignIn points its three progress lines at [data-progress]; thrown errors still surface as refusals": "app/src/keriweb/main.ts: `const progress = statusEl('[data-progress]')` and three `say(progress, …)` calls; thrown Errors propagate to brand.go's catch handler which writes [data-status]", "the progress line is cleared when a refusal is shown": "internal/idp/brand.go submit handler catch: `if (progress) progress.textContent = ''` before writing the refusal into [data-status]", "inline fallback script keeps writing caught errors to [data-status] and clears [data-progress]": "internal/idp/brand.go inline script: clears [data-progress] then sets [data-status].textContent", "Go seam test asserts the two regions exist and are distinct": "internal/idp/seam_test.go TestSeam_SignInPage_ProgressAndRefusalAreDistinctRegions (go test ./internal/idp/ exit 0)", "idip.test.ts bundleSignInProgressLines asserts the sign-in path writes to [data-progress] and BRIDGE_REFUSAL_TEXT collapses to simple non-empty": "app/tests/e2e/fixtures/idip.test.ts scans `say(progress, …)` and asserts `statusEl('[data-progress]')`; app/tests/e2e/fixtures/idip.ts BRIDGE_REFUSAL_TEXT = /\\S/ (vitest exit 0)" }, "summary": "The bridge sign-in page's double-booked [data-status] region is split into a role=alert refusal channel and a new aria-live=polite [data-progress] channel, so member progress never renders in the refusal alert.", "reason": "", "blockers": [], "no_code_change": "" } ``` </details>
Author
Member

close-report for #1024 — status success

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

envelope
{
  "issue": 1024,
  "status": "success",
  "commits": [
    "2cb38c9d16d7ed0ee0d3e15f2413fba1ea9286b0"
  ],
  "changed_files": [
    "STATUS.md",
    "app/src/keriweb/main.ts",
    "app/tests/e2e/fixtures/idip.test.ts",
    "app/tests/e2e/fixtures/idip.ts",
    "internal/idp/brand.go",
    "internal/idp/seam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/idp/",
      "exit_code": 0
    },
    {
      "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/idip.test.ts",
      "exit_code": 0
    }
  ],
  "criteria": {
    "brand.go adds a second non-error progress region beside [data-status role=alert]": "internal/idp/brand.go: new `<p class=\"progress\" data-progress aria-live=\"polite\">` + `.progress { color:#555 }` style; [data-status role=alert] left as refusal-only",
    "main.ts idssKeriSignIn points its three progress lines at [data-progress]; thrown errors still surface as refusals": "app/src/keriweb/main.ts: `const progress = statusEl('[data-progress]')` and three `say(progress, …)` calls; thrown Errors propagate to brand.go's catch handler which writes [data-status]",
    "the progress line is cleared when a refusal is shown": "internal/idp/brand.go submit handler catch: `if (progress) progress.textContent = ''` before writing the refusal into [data-status]",
    "inline fallback script keeps writing caught errors to [data-status] and clears [data-progress]": "internal/idp/brand.go inline script: clears [data-progress] then sets [data-status].textContent",
    "Go seam test asserts the two regions exist and are distinct": "internal/idp/seam_test.go TestSeam_SignInPage_ProgressAndRefusalAreDistinctRegions (go test ./internal/idp/ exit 0)",
    "idip.test.ts bundleSignInProgressLines asserts the sign-in path writes to [data-progress] and BRIDGE_REFUSAL_TEXT collapses to simple non-empty": "app/tests/e2e/fixtures/idip.test.ts scans `say(progress, …)` and asserts `statusEl('[data-progress]')`; app/tests/e2e/fixtures/idip.ts BRIDGE_REFUSAL_TEXT = /\\S/ (vitest exit 0)"
  },
  "summary": "The bridge sign-in page's double-booked [data-status] region is split into a role=alert refusal channel and a new aria-live=polite [data-progress] channel, so member progress never renders in the refusal alert.",
  "reason": "",
  "blockers": [],
  "no_code_change": ""
}
**close-report** for #1024 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1024, "status": "success", "commits": [ "2cb38c9d16d7ed0ee0d3e15f2413fba1ea9286b0" ], "changed_files": [ "STATUS.md", "app/src/keriweb/main.ts", "app/tests/e2e/fixtures/idip.test.ts", "app/tests/e2e/fixtures/idip.ts", "internal/idp/brand.go", "internal/idp/seam_test.go" ], "tests": [ { "command": "go test ./internal/idp/", "exit_code": 0 }, { "command": "CI=true pnpm exec vitest run tests/e2e/fixtures/idip.test.ts", "exit_code": 0 } ], "criteria": { "brand.go adds a second non-error progress region beside [data-status role=alert]": "internal/idp/brand.go: new `<p class=\"progress\" data-progress aria-live=\"polite\">` + `.progress { color:#555 }` style; [data-status role=alert] left as refusal-only", "main.ts idssKeriSignIn points its three progress lines at [data-progress]; thrown errors still surface as refusals": "app/src/keriweb/main.ts: `const progress = statusEl('[data-progress]')` and three `say(progress, …)` calls; thrown Errors propagate to brand.go's catch handler which writes [data-status]", "the progress line is cleared when a refusal is shown": "internal/idp/brand.go submit handler catch: `if (progress) progress.textContent = ''` before writing the refusal into [data-status]", "inline fallback script keeps writing caught errors to [data-status] and clears [data-progress]": "internal/idp/brand.go inline script: clears [data-progress] then sets [data-status].textContent", "Go seam test asserts the two regions exist and are distinct": "internal/idp/seam_test.go TestSeam_SignInPage_ProgressAndRefusalAreDistinctRegions (go test ./internal/idp/ exit 0)", "idip.test.ts bundleSignInProgressLines asserts the sign-in path writes to [data-progress] and BRIDGE_REFUSAL_TEXT collapses to simple non-empty": "app/tests/e2e/fixtures/idip.test.ts scans `say(progress, …)` and asserts `statusEl('[data-progress]')`; app/tests/e2e/fixtures/idip.ts BRIDGE_REFUSAL_TEXT = /\\S/ (vitest exit 0)" }, "summary": "The bridge sign-in page's double-booked [data-status] region is split into a role=alert refusal channel and a new aria-live=polite [data-progress] channel, so member progress never renders in the refusal alert.", "reason": "", "blockers": [], "no_code_change": "" } ``` </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.

Reference
Matou/idss#1024
No description provided.