sign-in S6: the App-only setting and its one row on the Members surface #1528

Closed
opened 2026-09-16 03:15:18 +00:00 by ben · 2 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 30 and 32 of the spec (the setting and the row; the closures are S7).
Wireframe: docs/ux/wireframes/wallet-signin/ws-d1-app-only.html. Sequencing. Ben ruled the pairing spec (#1495) lands first: this ticket sits behind the served 1.1 descriptor, so signin{url} and the community's real doors exist before the door is built against them.

What to build

The browser era ends by the operator's decision, not a timer. One row on the Members surface, greyed until
the community's app exists, with an honest guard about who it locks out and a promise that it can be
switched back at any time.

Acceptance criteria

  • The setting persists in the config repo the way the service-access matrix does and is exposed on the
    control plane; the bridge reads it over the same loopback the roster client uses
  • Until the community's app is ready the row is Members use the app only, greyed, with Available
    once your community's app is ready.
  • Once available the row is off by default with the guard Anyone who hasn't put their identity in
    the app yet won't be able to sign in until they do. You can switch this back at any time.
    and no
    confirmation dialog
  • Switching it on persists and the row reads on; switching it off restores the previous state
  • The switch never revokes a credential, deletes an agent or ends a session — asserted
  • Until the app card exists (pairing T8), the row is greyed with the same copy — never stubbed as ready

Blocked by

Tracker: #1526

  • S4 (the page the switch closes a door on)

Task manifest

task: app-only-setting-and-row
implements_flow: wallet-signin
wireframe: docs/ux/wireframes/wallet-signin/ws-d1-app-only.html
seam: internal/controlapi integration + dashboard unit tests (the Members-tab suites)
depends_on: [wallet-signin:app-door-page]
out_of_scope: [the three closures (S7), wiring to the app card (S8)]
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 30 and 32 of the spec (the setting and the row; the closures are S7). Wireframe: `docs/ux/wireframes/wallet-signin/ws-d1-app-only.html`. **Sequencing.** Ben ruled the pairing spec (#1495) lands first: this ticket sits behind the served 1.1 descriptor, so `signin{url}` and the community's real doors exist before the door is built against them. ## What to build The browser era ends by the operator's decision, not a timer. One row on the Members surface, greyed until the community's app exists, with an honest guard about who it locks out and a promise that it can be switched back at any time. ## Acceptance criteria - [ ] The setting persists in the config repo the way the service-access matrix does and is exposed on the control plane; the bridge reads it over the same loopback the roster client uses - [ ] Until the community's app is ready the row is *Members use the app only*, greyed, with *Available once your community's app is ready.* - [ ] Once available the row is **off by default** with the guard *Anyone who hasn't put their identity in the app yet won't be able to sign in until they do. You can switch this back at any time.* and **no** confirmation dialog - [ ] Switching it on persists and the row reads on; switching it off restores the previous state - [ ] The switch never revokes a credential, deletes an agent or ends a session — asserted - [ ] Until the app card exists (pairing T8), the row is greyed with the same copy — never stubbed as ready ## Blocked by Tracker: #1526 - S4 (the page the switch closes a door on) ## Task manifest ```yaml task: app-only-setting-and-row implements_flow: wallet-signin wireframe: docs/ux/wireframes/wallet-signin/ws-d1-app-only.html seam: internal/controlapi integration + dashboard unit tests (the Members-tab suites) depends_on: [wallet-signin:app-door-page] out_of_scope: [the three closures (S7), wiring to the app card (S8)] needs_human_decision: [] ```

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

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

close-report for #1528 — status success

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

envelope
{
  "issue": 1528,
  "status": "success",
  "commits": [
    "fb8a15165627f62a0a44c43350abfeb2f5e22630"
  ],
  "changed_files": [
    "STATUS.md",
    "control-plane/cmd/control-plane/main.go",
    "dashboard/src/components/members/MembersSurface.vue",
    "dashboard/src/components/members/SigninSettings.vue",
    "dashboard/src/lib/api/appOnlyClient.ts",
    "dashboard/src/lib/api/generated.ts",
    "dashboard/src/lib/appOnly.ts",
    "dashboard/src/lib/mountRegistry.ts",
    "dashboard/tests/fakes/appOnly.ts",
    "dashboard/tests/unit/appOnlySettings.test.ts",
    "internal/controlapi/idip_app_only.go",
    "internal/controlapi/idip_app_only_test.go",
    "internal/idp/apponlyclient.go",
    "internal/idp/apponlyclient_test.go",
    "internal/member/apponly.go",
    "packages/openapi-spec/openapi.yaml"
  ],
  "tests": [
    {
      "command": "go test ./internal/member/ ./internal/controlapi/ ./internal/idp/ ./internal/wireconvention/",
      "exit_code": 0
    },
    {
      "command": "golangci-lint run ./internal/idp/ ./internal/controlapi/ ./internal/member/",
      "exit_code": 0
    },
    {
      "command": "node vitest run tests/unit/appOnlySettings.test.ts (dashboard)",
      "exit_code": 0
    },
    {
      "command": "node vitest run tests/unit/compositionHygiene.test.ts tests/unit/dashboardComposition.test.ts (dashboard)",
      "exit_code": 0
    },
    {
      "command": "node vitest run members-tab suites (membersList, credentialsSurface, idipRosterPanel, membersLive, membersIdipKomitiRest)",
      "exit_code": 0
    },
    {
      "command": "vue-tsc -p tsconfig.json --noEmit (dashboard)",
      "exit_code": 0
    },
    {
      "command": "eslint . (whole repo)",
      "exit_code": 0
    },
    {
      "command": "node scripts/generate-client.mjs --check (openapi-spec)",
      "exit_code": 0
    },
    {
      "command": "node vitest run (openapi-spec spec.test.ts)",
      "exit_code": 0
    }
  ],
  "criteria": {
    "The setting persists in the config repo the way the service-access matrix does and is exposed on the control plane; the bridge reads it over the same loopback the roster client uses": "internal/member/apponly.go (member.ConfigRepoAppOnly over idss/app-only.json, the matrixstore.go pattern); internal/controlapi/idip_app_only.go WithIdipAppOnly (steward GET/PUT + bearer-gated loopback GET /api/v1/idip/app-only/state); internal/idp/apponlyclient.go AppOnlyClient reads it over the same gateSecret-bearer loopback the roster client uses; wired in control-plane/cmd/control-plane/main.go; proven by TestIdipAppOnly_BridgeLoopbackRead + TestAppOnlyClient_ReadsFlagWithBearer",
    "Until the community's app is ready the row is Members use the app only, greyed, with Available once your community's app is ready.": "SigninSettings.vue data-status=unavailable state with data-field=app-only-unavailable-why copy; proven by appOnlySettings.test.ts 'is greyed and unavailable until the community app is ready'",
    "Once available the row is off by default with the guard ... and no confirmation dialog": "SigninSettings.vue data-status=off default with data-field=app-only-guard copy and no [role=dialog]; proven by appOnlySettings.test.ts 'is off by default once the app is ready, with the honest guard and no dialog'",
    "Switching it on persists and the row reads on; switching it off restores the previous state": "SigninSettings.vue toggle → appOnly.set then re-read; TestIdipAppOnly_SwitchOnPersistsAndOffRestores (control plane) + appOnlySettings.test.ts 'switches on' and 'switches off again, restoring the previous state'",
    "The switch never revokes a credential, deletes an agent or ends a session — asserted": "member.AppOnly port exposes only AppOnly()/SetAppOnly() (apponly.go); TestIdipAppOnly_SwitchTouchesOnlyTheFlag asserts exactly [true] recorded via a spy; appOnlySettings.test.ts asserts flag.sets === [true]/[false]",
    "Until the app card exists (pairing T8), the row is greyed with the same copy — never stubbed as ready": "SigninSettings.vue availability reads the REAL communityAppSource state (card?.state === 'ready'), never a stub; with no card source or a non-ready card the row is unavailable; proven by appOnlySettings.test.ts 'never stubs itself ready — no card source means greyed'"
  },
  "summary": "The App-only setting (config-repo backed, control-plane exposed, bridge-loopback readable) and its one greyed-until-ready row on the Members surface (WS-D1), off by default, reversible, with no confirmation dialog.",
  "blockers": []
}
**close-report** for #1528 — status `success` :white_check_mark: **close-report gates passed** — every claim verified against main; issue closed. <details><summary>envelope</summary> ```json { "issue": 1528, "status": "success", "commits": [ "fb8a15165627f62a0a44c43350abfeb2f5e22630" ], "changed_files": [ "STATUS.md", "control-plane/cmd/control-plane/main.go", "dashboard/src/components/members/MembersSurface.vue", "dashboard/src/components/members/SigninSettings.vue", "dashboard/src/lib/api/appOnlyClient.ts", "dashboard/src/lib/api/generated.ts", "dashboard/src/lib/appOnly.ts", "dashboard/src/lib/mountRegistry.ts", "dashboard/tests/fakes/appOnly.ts", "dashboard/tests/unit/appOnlySettings.test.ts", "internal/controlapi/idip_app_only.go", "internal/controlapi/idip_app_only_test.go", "internal/idp/apponlyclient.go", "internal/idp/apponlyclient_test.go", "internal/member/apponly.go", "packages/openapi-spec/openapi.yaml" ], "tests": [ { "command": "go test ./internal/member/ ./internal/controlapi/ ./internal/idp/ ./internal/wireconvention/", "exit_code": 0 }, { "command": "golangci-lint run ./internal/idp/ ./internal/controlapi/ ./internal/member/", "exit_code": 0 }, { "command": "node vitest run tests/unit/appOnlySettings.test.ts (dashboard)", "exit_code": 0 }, { "command": "node vitest run tests/unit/compositionHygiene.test.ts tests/unit/dashboardComposition.test.ts (dashboard)", "exit_code": 0 }, { "command": "node vitest run members-tab suites (membersList, credentialsSurface, idipRosterPanel, membersLive, membersIdipKomitiRest)", "exit_code": 0 }, { "command": "vue-tsc -p tsconfig.json --noEmit (dashboard)", "exit_code": 0 }, { "command": "eslint . (whole repo)", "exit_code": 0 }, { "command": "node scripts/generate-client.mjs --check (openapi-spec)", "exit_code": 0 }, { "command": "node vitest run (openapi-spec spec.test.ts)", "exit_code": 0 } ], "criteria": { "The setting persists in the config repo the way the service-access matrix does and is exposed on the control plane; the bridge reads it over the same loopback the roster client uses": "internal/member/apponly.go (member.ConfigRepoAppOnly over idss/app-only.json, the matrixstore.go pattern); internal/controlapi/idip_app_only.go WithIdipAppOnly (steward GET/PUT + bearer-gated loopback GET /api/v1/idip/app-only/state); internal/idp/apponlyclient.go AppOnlyClient reads it over the same gateSecret-bearer loopback the roster client uses; wired in control-plane/cmd/control-plane/main.go; proven by TestIdipAppOnly_BridgeLoopbackRead + TestAppOnlyClient_ReadsFlagWithBearer", "Until the community's app is ready the row is Members use the app only, greyed, with Available once your community's app is ready.": "SigninSettings.vue data-status=unavailable state with data-field=app-only-unavailable-why copy; proven by appOnlySettings.test.ts 'is greyed and unavailable until the community app is ready'", "Once available the row is off by default with the guard ... and no confirmation dialog": "SigninSettings.vue data-status=off default with data-field=app-only-guard copy and no [role=dialog]; proven by appOnlySettings.test.ts 'is off by default once the app is ready, with the honest guard and no dialog'", "Switching it on persists and the row reads on; switching it off restores the previous state": "SigninSettings.vue toggle → appOnly.set then re-read; TestIdipAppOnly_SwitchOnPersistsAndOffRestores (control plane) + appOnlySettings.test.ts 'switches on' and 'switches off again, restoring the previous state'", "The switch never revokes a credential, deletes an agent or ends a session — asserted": "member.AppOnly port exposes only AppOnly()/SetAppOnly() (apponly.go); TestIdipAppOnly_SwitchTouchesOnlyTheFlag asserts exactly [true] recorded via a spy; appOnlySettings.test.ts asserts flag.sets === [true]/[false]", "Until the app card exists (pairing T8), the row is greyed with the same copy — never stubbed as ready": "SigninSettings.vue availability reads the REAL communityAppSource state (card?.state === 'ready'), never a stub; with no card source or a non-ready card the row is unavailable; proven by appOnlySettings.test.ts 'never stubs itself ready — no card source means greyed'" }, "summary": "The App-only setting (config-repo backed, control-plane exposed, bridge-loopback readable) and its one greyed-until-ready row on the Members surface (WS-D1), off by default, reversible, with no confirmation dialog.", "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#1528
No description provided.