sign-in S5: every refusal says the same sentence on the page and in the app, and Try again is capped at three #1527

Closed
opened 2026-09-16 03:15:12 +00:00 by ben · 6 comments
Owner

Parent

Spec #1492 (wallet sign-in — the app door by device, the approve card, sign-in sites, refusals, ledger-walked sessions, and the App-only switch). Program map #1293. Design contract: DDR 0246, flow docs/ux/flows/wallet-signin.mermaid, wireframes docs/ux/wireframes/wallet-signin/. Mechanics: ADR 0236 (the bridge verifies in Go), proven end to end by prototype #1301 (spikes/1301-wallet-signin/).

Stories 25–27 of the spec (the page's side; the app's copy contract is MA4).
Wireframes: the refusal states of ws-s1-sign-in-app-door.html.

What to build

A member who is refused should read one story, not two, and should never be blamed for the community's own
outage. Five refusals share an opening sentence and differ only in the tail. The community's records being
unreachable is not a refusal and has its own words. Trying again is limited so a mistake does not loop,
but the limit lives in the page, so nobody can be locked out.

Acceptance criteria

  • The five verification refusals render Your access could not be verified. It looks like plus their
    tail: no membership → you don't hold a membership from this community yet. Ask your operator to add
    you.
    ; revoked → your membership here has been revoked.; untrusted issuer → that credential wasn't
    issued by this community.
    ; signature and wrong holder → that approval didn't match this sign-in.
  • The holder-mismatch case wears the signature tail and is not distinguished
  • Each refusal offers Try again and the line or contact your community's operator
  • The first and second refusal on a page visit mint a fresh challenge on the same request and count
    down from three
  • The third shows Your access could not be verified after three tries. Contact your community's
    operator.
    with no Try again and no code
  • The count lives in the page only — nothing is recorded at the door, and opening the service again
    starts a fresh page and a fresh count
  • Records-unreachable reads The community's records can't be reached right now. Try again shortly.
    with an uncapped Try again, no "could not be verified" opener, no operator line, and it does not
    count against the three
  • An expired code is not a refusal and does not change the count

Blocked by

Tracker: #1526

  • S4 (the page)

Task manifest

task: refusals-and-capped-retry
implements_flow: wallet-signin
implements_edge: "verdict → WS-S1r / S1z / S1u"
wireframe: docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html
seam: the bridge's OIDC-over-HTTP smoke tests
depends_on: [wallet-signin:app-door-page]
out_of_scope: [the wallet's own refusal faces (matou-app), rate limiting at the door]
needs_human_decision: []
## Parent Spec **#1492** (wallet sign-in — the app door by device, the approve card, sign-in sites, refusals, ledger-walked sessions, and the App-only switch). Program map **#1293**. Design contract: **DDR 0246**, flow `docs/ux/flows/wallet-signin.mermaid`, wireframes `docs/ux/wireframes/wallet-signin/`. Mechanics: **ADR 0236** (the bridge verifies in Go), proven end to end by prototype **#1301** (`spikes/1301-wallet-signin/`). Stories 25–27 of the spec (the page's side; the app's copy contract is MA4). Wireframes: the refusal states of `ws-s1-sign-in-app-door.html`. ## What to build A member who is refused should read one story, not two, and should never be blamed for the community's own outage. Five refusals share an opening sentence and differ only in the tail. The community's records being unreachable is not a refusal and has its own words. Trying again is limited so a mistake does not loop, but the limit lives in the page, so nobody can be locked out. ## Acceptance criteria - [ ] The five verification refusals render *Your access could not be verified. It looks like* plus their tail: no membership → *you don't hold a membership from this community yet. Ask your operator to add you.*; revoked → *your membership here has been revoked.*; untrusted issuer → *that credential wasn't issued by this community.*; signature and wrong holder → *that approval didn't match this sign-in.* - [ ] The holder-mismatch case wears the signature tail and is not distinguished - [ ] Each refusal offers *Try again* and the line *or contact your community's operator* - [ ] The first and second refusal on a page visit mint a fresh challenge on the same request and count down from three - [ ] The third shows *Your access could not be verified after three tries. Contact your community's operator.* with no Try again and no code - [ ] The count lives **in the page only** — nothing is recorded at the door, and opening the service again starts a fresh page and a fresh count - [ ] Records-unreachable reads *The community's records can't be reached right now. Try again shortly.* with an uncapped Try again, no "could not be verified" opener, no operator line, and it does not count against the three - [ ] An expired code is not a refusal and does not change the count ## Blocked by Tracker: #1526 - S4 (the page) ## Task manifest ```yaml task: refusals-and-capped-retry implements_flow: wallet-signin implements_edge: "verdict → WS-S1r / S1z / S1u" wireframe: docs/ux/wireframes/wallet-signin/ws-s1-sign-in-app-door.html seam: the bridge's OIDC-over-HTTP smoke tests depends_on: [wallet-signin:app-door-page] out_of_scope: [the wallet's own refusal faces (matou-app), rate limiting at the door] needs_human_decision: [] ```

swarm-claim host=bens-mac-04 run=26687
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26687 (automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26687
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26687 (automated multi-host claim — lowest live claim id works this ticket)

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

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

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

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

swarm-claim host=bens-mac-04 run=26715
(automated multi-host claim — lowest live claim id works this ticket)

swarm-claim host=bens-mac-04 run=26715 (automated multi-host claim — lowest live claim id works this ticket)

close-report for #1527 — status success

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

envelope
{
  "issue": 1527,
  "status": "success",
  "commits": [
    "357dee8df00b7601d9c59ef34bba9ac1782ba4fa"
  ],
  "changed_files": [
    "STATUS.md",
    "internal/idp/appdoorpage.go",
    "internal/idp/appdoorpage_seam_test.go"
  ],
  "tests": [
    {
      "command": "go test ./internal/idp/ -run TestSeam_AppDoorPage",
      "exit_code": 0
    },
    {
      "command": "go test ./internal/idp/",
      "exit_code": 0
    },
    {
      "command": "go build ./... && go vet ./internal/idp/",
      "exit_code": 0
    },
    {
      "command": "gofmt -l internal/idp/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/idp/",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The five verification refusals render 'Your access could not be verified. It looks like' plus their tail (no-membership/revoked/untrusted-issuer/signature)": "appdoorpage.go data-template=\"refused\" opener + data-template=\"refusal-tails\" rows keyed by data-refusal; TestSeam_AppDoorPage_RefusalFacesPresent asserts the opener and all five tail copies",
    "The holder-mismatch case wears the signature tail and is not distinguished": "refusal-tails: data-refusal=\"wrong-holder\" carries the identical 'that approval didn't match this sign-in' copy as data-refusal=\"signature\"; the bridge's refusalKind already collapses wrong-holder onto signature (#1525)",
    "Each refusal offers Try again and the line 'or contact your community's operator'": "data-template=\"refused\" carries data-action=\"try-again\" + data-field=\"contact-line\" with that copy; asserted by the seam test",
    "The first and second refusal mint a fresh challenge on the same request and count down from three": "showRefused() increments refusalCount then wires try-again to mint() (fresh challenge, same authID, hop not restarted); tries-left hint renders '2 tries left'/'1 try left'",
    "The third shows the after-three-tries copy with no Try again and no code": "showRefusedFinal() clones data-template=\"refused-final\" (data-status=refused-final) and door.remove(); asserted copy present, no try-again in that template",
    "The count lives in the page only": "refusalCount is a plain inline-script counter; seam test asserts 'refusalCount' present and NO '/login/app/count' door endpoint is fetched",
    "Records-unreachable reads its own line with an uncapped Try again, no opener, no operator line, and does not count": "showRecordsUnreachable() (data-status=records-unreachable) clones the records template, wires try-again to mint() without touching refusalCount; asserted copy present",
    "An expired code is not a refusal and does not change the count": "the expired path (showExpired, S4) never touches refusalCount; only showRefused increments it"
  },
  "summary": "Sign-in S5: the WS-S1r/S1z/S1u refusal faces and page-local capped Try again, built on the S3 status route and shipped in the app-door page.",
  "blockers": []
}
**close-report** for #1527 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1527, "status": "success", "commits": [ "357dee8df00b7601d9c59ef34bba9ac1782ba4fa" ], "changed_files": [ "STATUS.md", "internal/idp/appdoorpage.go", "internal/idp/appdoorpage_seam_test.go" ], "tests": [ { "command": "go test ./internal/idp/ -run TestSeam_AppDoorPage", "exit_code": 0 }, { "command": "go test ./internal/idp/", "exit_code": 0 }, { "command": "go build ./... && go vet ./internal/idp/", "exit_code": 0 }, { "command": "gofmt -l internal/idp/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/idp/", "exit_code": 0 } ], "criteria": { "The five verification refusals render 'Your access could not be verified. It looks like' plus their tail (no-membership/revoked/untrusted-issuer/signature)": "appdoorpage.go data-template=\"refused\" opener + data-template=\"refusal-tails\" rows keyed by data-refusal; TestSeam_AppDoorPage_RefusalFacesPresent asserts the opener and all five tail copies", "The holder-mismatch case wears the signature tail and is not distinguished": "refusal-tails: data-refusal=\"wrong-holder\" carries the identical 'that approval didn't match this sign-in' copy as data-refusal=\"signature\"; the bridge's refusalKind already collapses wrong-holder onto signature (#1525)", "Each refusal offers Try again and the line 'or contact your community's operator'": "data-template=\"refused\" carries data-action=\"try-again\" + data-field=\"contact-line\" with that copy; asserted by the seam test", "The first and second refusal mint a fresh challenge on the same request and count down from three": "showRefused() increments refusalCount then wires try-again to mint() (fresh challenge, same authID, hop not restarted); tries-left hint renders '2 tries left'/'1 try left'", "The third shows the after-three-tries copy with no Try again and no code": "showRefusedFinal() clones data-template=\"refused-final\" (data-status=refused-final) and door.remove(); asserted copy present, no try-again in that template", "The count lives in the page only": "refusalCount is a plain inline-script counter; seam test asserts 'refusalCount' present and NO '/login/app/count' door endpoint is fetched", "Records-unreachable reads its own line with an uncapped Try again, no opener, no operator line, and does not count": "showRecordsUnreachable() (data-status=records-unreachable) clones the records template, wires try-again to mint() without touching refusalCount; asserted copy present", "An expired code is not a refusal and does not change the count": "the expired path (showExpired, S4) never touches refusalCount; only showRefused increments it" }, "summary": "Sign-in S5: the WS-S1r/S1z/S1u refusal faces and page-local capped Try again, built on the S3 status route and shipped in the app-door page.", "blockers": [] } ``` </details>
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.

Reference
Matou/idss#1527
No description provided.