app-card-operator-home: ADR 0247 empties the portal door the card reads — it never loads #1741
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1741
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The failure
Leg
app-card-operator-home— the drive's only red (45/46 green, 0 skips). The operator home rendered fine; the community-app card was absent entirely — notpending, notready, no card at all.artifacts/verdict.json:artifacts/legs.json:The leg's prior failure mode did not recur: the three earlier fires red'd on getting off the IDIP hand-off, but
artifacts/legs/app-card-operator-home.pngshows the home reached and drawn (E2E Drive,OPEN DASHBOARD,RESCUE TOOLS / LOGS / ENROLLMENT CODES).This is NOT the known frontier
The known frontier is pairing never flipping (the own-VPS carrier issue). Not this run:
{"leg": "pair", "status": "green", "ms": 4598},"skip": 0, andlegs.jsoncarries no skip reasons at all. The record genuinely flipped — live box,curl http://127.0.0.1:8080/api/v1/community-app:And the dashboard half of the same two-surface contract passed (
coa-readygreen,idip-coa-ready-card.pngwritten). One record, two surfaces — exactly one of them is broken.Root cause: the home never issued the read
logs/droplet-caddy.txtover the whole run: 47 GETs of/api/v1/community-app, every one from the dashboard browser; zero from the Electron renderer (UAElectron/33.4.11, matching the screenshot'sv33.4.11). The Electron app's last request to the box of any kind was 17:12:21 — six minutes before the leg. Through the leg window (17:18:29–17:19:29) caddy logged only the dashboard's 10s polls:HTTPS was healthy the entire time. The home simply never asked. The chain, all in-repo:
internal/hostnames/hostnames.go:113—const ApexServes = ApexSurfacePanel(ADR 0247).internal/hostnames/hostnames.go:160—func PortalDoor(apex) { if ApexServes != ApexSurfacePortal { return "" } ... }. The member Portal door is withdrawn: empty under this posture, on both paths (PortalDoorReachabletoo).internal/founding/seat.go:100—res.Portal = hostnames.PortalDoor(res.Apex)→ the seat op emits noportal, even though the apex is recorded (state/clan-config/idss/apex=rehearsal-f.idss.nz).app/src/lib/seatSource.ts:43—portalUrl: result.portal→undefined.app/src/bootstrap.ts:234—return s.kind === 'operator' ? s.community.portalUrl : undefined;app/src/lib/communityApp.ts:66—if (!base) return null;→ no HTTP is attempted at all.OperatorHomeScreen.vue:131setscommunityApp.value = null;OcCommunityAppCard'sv-if="card"renders nothing.Two artifacts corroborate the exact step: the leg screenshot shows the home's name line but no address line under it —
<div class="oc-home__url" data-field="portal-url">{{ seat.community.portalUrl }}</div>rendered empty, precisely as the chain predicts. Andartifacts/operator-home-renderer.txtis a single newline — no console or page errors — because the null is silent by design: "every non-200 … yieldsnull(no card), never a thrown error: the card must never red the home".Why the dashboard works:
dashboard/src/lib/api/communityAppClient.tsbuilds withbaseUrl = ''— a relative read off the origin it is served from, which under ADR 0247 is the apex. The operator home is the only surface that had to name an origin, and it names the one ADR 0247 emptied.This is a missed follow-on.
34ccc184(#1516) wired the home toportalUrlwhile the Portal door was still real;98757010(ADR 0247) landed after it the same day and switched the Portal off. ADR 0247's own note says every surface that shows or opens the panel derives fromhostnames.Dashboard"so none of them learns about the switch" — this one was left deriving fromPortalDoor.Suspected layer
Product. The record is correct on the box, caddy served the whole window, and the leg asserts the right thing.
One infra red herring to discount:
rehearsal-f.idss.nznow resolves to143.198.134.168, not this drive's box, so a freshcurlto the apex fails withtlsv1 alert internal error. That is the lab DNS record having moved after the run — direct to170.64.159.219with SNI the cert is a valid Let's EncryptCN=rehearsal-f.idss.nz(NotAfter Dec 11 2026), and caddy logged the drive's own HTTP/2 traffic throughout. It played no part in the red.What plugging it needs
Re-address the read.
app/src/bootstrap.ts:234should resolve the base from the control-plane/dashboard door —s.localVm?.dashboardUrl ?? s.community.dashboardUrl, thehostnames.Dashboardderivation ADR 0247 keeps correct under both postures — nots.community.portalUrl./api/v1/community-appis a control-plane route; the dashboard reads it at that origin 47 times in this very log.Make the read live. Fixing (1) alone would not green this leg. The read is mount-only (
onMounted,OperatorHomeScreen.vue:131— no watcher, no poll). The home mounted at the ~17:12 hand-off, when the record read submitted/pending (submitted_at: 2026-09-22T17:12:17Z); it only flipped atlast_checked_at: 2026-09-22T17:18:03Z. The leg finds the home already visible and asserts without relaunching, so a long-resting home must re-read (watch the seat's base once it lands, and/or poll on the gateway's cadence) to ever showready.Close the seam gap.
app/tests/unit/operatorHomeCommunityApp.test.tsonly ever injectsFakeCommunityAppSourceagainst a seat withportalUrl: 'https://example.nz'— it never exercisesHttpCommunityAppSource, so the empty portal door is invisible to it. Add a case over the real source with an ADR 0247 seat (no portal door), and one asserting the card follows a record that flips under a resting home.drive
20260922T165205Zred atapp-card-operator-home:expect(locator).toBeVisible() failed Locator: locator('[data-field="community-app"][data-status="ready"]').first() Expected: visible Timeout: 60000ms Error: element(s) not found Call log: - Expect "toevidence:
/home/swarm/session-runner/idss/test-results/drive-idip/20260922T165205Zon matou-workstation (legs.json and whatever else the drive harvested there) — a representative screenshot is attached here if one was capturedswarm-claim host=matou-dev-server-01 run=30298
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1741 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope
Note for the next drive / #1740 relationship (found while fixing this):
This ticket removes the "no read at all" defect — the home now issues
GET /api/v1/community-appoff the control-plane dashboard door (hostnames.Dashboard, correct under both ADR 0247 postures) and re-reads on a 30 s cadence so a resting home follows the record flipping toready. That is necessary and correct regardless of auth.But
/api/v1/community-appis not inapexAllowList(internal/clan/frontdoor.go): under ADR 0247's panel posture the apex gates it behind the operatorforward_authtemplate (theadminpseudo-service). So a session-less renderer read will 401→redirect rather than 200, unless the Electron app carries a front-door session for the apex origin (plausible if DDR 0163's in-app pinned-CA sign-in shares the renderer's session partition — unverified here).If the re-armed leg reds on a 401 / sign-in redirect (not an empty card), that is exactly #1740's still-open ruling — A machine token over the apex / B founding loopback forward / C drop the card. The zero-Electron-reads evidence in this ticket shows #1740's original "the app reads and gets 302'd" premise was wrong (the app read nothing); #1740's decision about how the app should authenticate to read gated operator data still stands.