portal-member: files door reads RESTING — monitor's 5-min paced check holds a stale down #1478
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
2 participants
Notifications
Due date
No due date set.
Blocks
Reference
Matou/idss#1478
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
portal-memberis the only red leg (verdict.json:"legs":{"total":27,"green":26,"red":1,"skip":0},"firstRedLeg":"portal-member"). The member signs in fine, is greeted by the right display name, and the files service card is on the home — but its pill says RESTING where the leg requires OPEN:(
artifacts/legs.json,artifacts/journey.json,.../error-context.md; asserted atapp/tests/e2e/fixtures/portalJourney.ts:295.)This is not the known frontier. The paragraph names pairing-never-flips as the KNOWN red;
pairis green this run ({"leg":"pair","status":"green","ms":320}), andlegs.jsoncarries no skip reasons at all —skip: 0, no leg has areasonfield. Nothing in this drive's own records scopes this red out.What the evidence shows
The live box (still up, ssh answered) settles it. Its activity feed records both truths and the gap between them:
The droplet journal shows provisioning's own deploy-time probe passing at the same instant as the
installedevent:And the member's sign-in is stamped in
logs/droplet-journal.txtinside the bad window:So: monitoring's critical
files downalert stood from 22:05:59 to 22:10:59 — exactly 300s — andportal-memberran 22:08:49.5 → 22:09:26.2 (fromverdict.jsonendedAtminus the leg's 36692 ms), wholly inside it. Meanwhile the operator-sidefiles-healthyleg went green at ~22:08:24 off provisioning's probe, 2m46s before monitoring agreed.By the time I read the box the alert had cleared, which is why the live reads look innocent:
Why RESTING follows
The door's standing has exactly one input — the monitor's service pill:
internal/monitor/status.go:312—p := ServicePill{... Up: !downBy[slug] ...}, wheredownByis built only from standing critical alerts.internal/controlapi/me_doors.go—if s.Healthy { d.Standing = DoorStandingOpen; d.URL = s.URL }, elseDoorStandingResting;liveDoors.LiveServicessetsHealthy: p.Up.control-plane/cmd/control-plane/main.go:1636—NewLiveDoors(c.mon, apex, productionWebPort(log)).A standing critical
files downalert therefore forcesstanding:"resting"on/api/v1/me/doors, anddashboard/src/lib/api/portalClient.tsmaps anything ≠opentoresting. The card was drawn (placement present) but doorless — exactly what the screenshot HTML shows.The alert stood for a full cadence because the probe is paced and its verdict cached:
internal/monitor/monitor.go:86—const CheckInterval = 5 * time.MinutepacedCheck(monitor.go:614) returnslast.summary, last.downwhilenow.Sub(last.at) < o.checkEveryinvalidateCheck(monitor.go:636) exists precisely to drop that cache — and its only caller in the tree isinternal/monitor/respond.go:307(the heal ladder). Nothing on the provisioning go-active path calls it.So a service that goes live re-probes no sooner than 5 minutes later, and for that whole window the Portal tells the member a live service is RESTING while the operator's own screens call it healthy.
Suspected layer
Product (control-plane), with a harness aggravator.
PortalSurfacereads/me/doorsonce percheck()whiledashboard/src/entry/portal.ts:67polls atDEFAULT_POLL_MS = 60_000. The 30 s wait cannot outlive even one poll — hence64 × locator resolved tothe same unchanged element. The timeout was never going to absorb the lag.What plugging it needs
(device, service)so the next 30 s aggregation tick re-probes and clears the stale critical.invalidateCheckalready does this for the heal ladder; it needs an exported seam the provisioning/activation path calls at the same point that emitsfiles installed on gateway. That closes the 5-minute disagreement at its source and makes the two health truths converge within one tick.toHaveAttributeagainst a page that refetches at 60 s is a cannot-succeed wait, and masking (1) with a >5 min timeout would keep a member-visible defect green.Absent from this run's evidence
logs/founding-state.logandlogs/state-logs.logare harvest errors, not data:cat .../state/founding-state.json: No such file or directoryandno state logs directory at .../state/logs.artifacts/host.jsonrecords"qemu": "exit ENOENT: spawn qemu-system-x86_64 ENOENT"— expected for the droplet target, not a fault.trace.zipdoes not cover the failing browser:assertPortalMemberJourneylaunches its ownchromium.launch(), so the trace's two contexts hold only the operator/Nextcloud pages, and the auto-attachedtest-failed-*.pngare the electron helper and Nextcloud's first-run modal — no screenshot of the member home exists (the leg's own screenshot is written after the failing assertion). The member's/me/doorsresponse body is therefore not captured anywhere in the run directory; the diagnosis above rests on the live box's activity feed instead.drive
20260914T214850Zred atportal-member:expect(locator).toHaveAttribute(expected) failed Locator: locator('[data-field="service-card"][data-door="files"]').locator('[data-field="pill"]') Expected: "open" Received: "resting" Timeout: 30000msevidence:
/home/swarm/session-runner/idss/test-results/drive-droplet/20260914T214850Zon 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=24113
(automated multi-host claim — lowest live claim id works this ticket)
A consideration for whoever picks this up (Ben's Portal session, 2026-09-14) — not a ruling.
The diagnosis above is right and complete. I checked it against the same drive's evidence: provisioning's deploy probe passed at 22:08:13, the monitor's critical alert stood from 22:05:59 to 22:10:59, and
portal-memberran from 22:08:49 to 22:09:26, inside that window.Please do not fix this in the harness alone. A leg that simply waits out the monitor's five-minute cycle would go green and hide a real member-facing wart. The drive is doing exactly what a member does: signing in to the Portal right after a service lands. For up to five minutes that member sees a working service drawn as resting, with no address and no Open button. DDR 0232 decision 6 says a resting card means the service is actually failing its health check. Here it is serving fine, and the monitor has not caught up.
Shapes worth weighing, all product-side:
A harness wait is reasonable as well, as long as it is not the only change.
For the Portal arc: this is the last blocker on #1373, which is the last ticket on map #1336. The drive went 26 of 27 green twice today, and both reds were on the member-journey leg.
close-report for #1478 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope