Operator home never shows the community-app card on a live community — the app reads a gated route from outside and silently gets nothing #1740

Closed
opened 2026-09-22 17:22:30 +00:00 by ben · 1 comment
Owner

What happens

The operator app's Operator home never shows the Your community app card on a real community. The control panel shows it (proven green); the app's own home shows nothing at all.

Spec #1495 story 19 / #1517 put the card on BOTH surfaces, reading the same record — and #1522's acceptance names "the downloads action present on both surfaces".

Cause (confirmed on a live gateway)

HttpCommunityAppSource (app/src/lib/communityApp.ts) reads <portalUrl>/api/v1/community-app from the LAPTOP, with no front-door session and no bearer token. From outside that route is gated:

curl --resolve rehearsal-f.idss.nz:443:<box> https://rehearsal-f.idss.nz/api/v1/community-app
  → HTTP 302  https://rehearsal-f.idss.nz/authz/signin?rd=…/api/v1/community-app

(The same read on the box answers the record: {"state":"ready","slug":"e2e-drive",…}.) /api/v1/community-app is not in apexAllowList — correctly, it is operator data — so the app follows the redirect, gets the sign-in HTML, and load() yields null: no card, no failure, nothing said. The control plane's own route is additionally bearer-gated on the gate secret (WithCommunityApp(appStore, gateSecret, …)), which the app does not carry either.

Evidence

Debug IDIP fire 20260922T165205Z (elitebook-03, 86868065, app-at-founding), leg app-card-operator-home — red, the ONLY red. The frame (artifacts/legs/app-card-operator-home.png) shows Operator home reached (the #1736 hand-off completion works live) carrying the community name, Open dashboard, Rescue tools / Logs / Enrollment codes — and no community-app card. The gateway's record at that moment read ready with its downloads URL.

Decision this needs

How does the APP read operator data it is entitled to?

  • A — the app carries the gate's machine token it already holds for other control-plane reads (if it holds one on this path) and the apex proxies the route for a bearer caller.
  • B — a founding-forward read, like the community-identity and founding-design doors: the app asks over its own loopback forward rather than the public apex.
  • C — drop the card from Operator home and let the control panel own it (spec change; #1522's "both surfaces" acceptance would be amended).

I have not built any of these. B is the closest to the seam the app already uses for gateway reads at founding; A is the smallest if a token already exists; C is honest if the card does not earn its place.

Acceptance

  • On a live IDIP community, Operator home shows the card at pending and then ready with its downloads action — or the card is removed by ruling C.
  • A read the app is not entitled to still refuses.
  • The IDIP journey's app-card-operator-home leg (app-at-founding variant) goes green rather than skipping.

Found by the #1522 founding-route drive (map #1293).

## What happens The operator app's **Operator home** never shows the *Your community app* card on a real community. The control panel shows it (proven green); the app's own home shows nothing at all. Spec #1495 story 19 / #1517 put the card on BOTH surfaces, reading the same record — and #1522's acceptance names "the downloads action present on both surfaces". ## Cause (confirmed on a live gateway) `HttpCommunityAppSource` (`app/src/lib/communityApp.ts`) reads `<portalUrl>/api/v1/community-app` from the LAPTOP, with no front-door session and no bearer token. From outside that route is gated: ``` curl --resolve rehearsal-f.idss.nz:443:<box> https://rehearsal-f.idss.nz/api/v1/community-app → HTTP 302 https://rehearsal-f.idss.nz/authz/signin?rd=…/api/v1/community-app ``` (The same read on the box answers the record: `{"state":"ready","slug":"e2e-drive",…}`.) `/api/v1/community-app` is not in `apexAllowList` — correctly, it is operator data — so the app follows the redirect, gets the sign-in HTML, and `load()` yields `null`: no card, no failure, nothing said. The control plane's own route is additionally bearer-gated on the gate secret (`WithCommunityApp(appStore, gateSecret, …)`), which the app does not carry either. ## Evidence Debug IDIP fire `20260922T165205Z` (elitebook-03, `86868065`, app-at-founding), leg `app-card-operator-home` — red, the ONLY red. The frame (`artifacts/legs/app-card-operator-home.png`) shows Operator home reached (the #1736 hand-off completion works live) carrying the community name, *Open dashboard*, Rescue tools / Logs / Enrollment codes — and no community-app card. The gateway's record at that moment read `ready` with its downloads URL. ## Decision this needs How does the APP read operator data it is entitled to? - **A — the app carries the gate's machine token** it already holds for other control-plane reads (if it holds one on this path) and the apex proxies the route for a bearer caller. - **B — a founding-forward read**, like the community-identity and founding-design doors: the app asks over its own loopback forward rather than the public apex. - **C — drop the card from Operator home** and let the control panel own it (spec change; #1522's "both surfaces" acceptance would be amended). I have not built any of these. B is the closest to the seam the app already uses for gateway reads at founding; A is the smallest if a token already exists; C is honest if the card does not earn its place. ## Acceptance - [ ] On a live IDIP community, Operator home shows the card at `pending` and then `ready` with its downloads action — or the card is removed by ruling C. - [ ] A read the app is not entitled to still refuses. - [ ] The IDIP journey's `app-card-operator-home` leg (app-at-founding variant) goes green rather than skipping. Found by the #1522 founding-route drive (map #1293).
Author
Owner

Ben ruled C (2026-09-22): the control panel owns the card; the operator home carries none.

Not A (a machine key on the laptop for one card) and not B (the app keeping its own private channel to the gateway after founding — real plumbing to save one click). The record is operator data behind the front door, the app holds no sign-in session, and the panel already shows the card where the operator is signed in.

Landed in a5acd1c6:

  • OperatorHomeScreen.vue — the card and its 30 s poll removed; the home stays a launcher.
  • The source unwired through RestingRoot.vue, AppShell.vue, bootstrap.ts; src/lib/communityApp.ts and tests/unit/operatorHomeCommunityApp.test.ts deleted.
  • The journey's app-card-operator-home leg removed (it existed only to prove this card).
  • Spec #1495 stories 14/15/19's "on the operator home AND the dashboard overview" amended to ONE surface in the S3a-APP wireframe caption; #1522's "the downloads action present on both surfaces" reads as the panel alone.
  • The ui-kit OcCommunityAppCard is untouched — the panel's YOUR COMMUNITY box renders it.

vue-tsc clean, 1262 app unit tests green, the journey type-checks. #1741's repoint (communityAppBase → the dashboard door) is superseded on this surface; it fixed the address, not the gate.

**Ben ruled C (2026-09-22): the control panel owns the card; the operator home carries none.** Not A (a machine key on the laptop for one card) and not B (the app keeping its own private channel to the gateway after founding — real plumbing to save one click). The record is operator data behind the front door, the app holds no sign-in session, and the panel already shows the card where the operator is signed in. Landed in `a5acd1c6`: - `OperatorHomeScreen.vue` — the card and its 30 s poll removed; the home stays a launcher. - The source unwired through `RestingRoot.vue`, `AppShell.vue`, `bootstrap.ts`; `src/lib/communityApp.ts` and `tests/unit/operatorHomeCommunityApp.test.ts` deleted. - The journey's `app-card-operator-home` leg removed (it existed only to prove this card). - Spec #1495 stories 14/15/19's "on the operator home AND the dashboard overview" amended to ONE surface in the S3a-APP wireframe caption; #1522's "the downloads action present on both surfaces" reads as the panel alone. - The ui-kit `OcCommunityAppCard` is untouched — the panel's YOUR COMMUNITY box renders it. `vue-tsc` clean, 1262 app unit tests green, the journey type-checks. #1741's repoint (`communityAppBase` → the dashboard door) is superseded on this surface; it fixed the address, not the gate.
ben closed this issue 2026-09-22 18:54:16 +00:00
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#1740
No description provided.