rehearsal-9 Task 4: Health + door of a service the panel never deployed — fixtures/serviceAtRest.ts (monitoring on the Services tab + status.php probe; Services-tab Open door) #1488
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#1488
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?
Phase 9 (provision on founding) task 4 of 6. Spec:
docs/superpowers/specs/2026-09-15-183-phase-9-provision-on-founding-rehearsal-design.md. Plan (read the header, Global Constraints and plan-time inventory first — the Interfaces block below is how tasks learn each other's names):docs/superpowers/plans/2026-09-15-183-phase-9-provision-on-founding-rehearsal.md.Acceptance = every checkbox step below done, its verification commands green, one commit in the repo's voice. A blocked_by edge on this ticket names the task whose Interfaces it consumes.
Task 4: Health + door of a service the panel never deployed (rest-state readers)
Files:
app/tests/e2e/fixtures/serviceAtRest.tsapp/tests/e2e/fixtures/serviceAtRest.test.tsInterfaces:
Produces:
export const REST_WARMUP_HORIZON_MS = 6 * 60_000; export const REST_POLL_MS = 10_000;export async function openServicesTab(page: Page): Promise<void>—[data-action="back-to-fleet"]if present (re-entry guard, asbrowseCatalogueArchivedoes), click[data-action="tab-services"], wait[data-field="service-catalogue"].export type RestVerdict = { healthy: boolean; reason: string }export function monitoringVerdict(input: { allHealthy: boolean; downPill: string | null; cardStatus: string | null }, slug: string): RestVerdict— PURE: healthy iffdownPill === null && cardStatus === 'installable-running'; reason names which failed ("monitoring names files down: <pill text>"/"the Services-tab card stands data-status=<x>, not installable-running").export function statusPhpVerdict(status: number, body: string): RestVerdict— PURE: healthy iffstatus === 200and JSONinstalled === true && maintenance !== true; reason otherwise.export async function expectServiceHealthyAtRest(page: Page, slug: string, door: string): Promise<void>— polls to the horizon:openServicesTabonce, then each poll reads[data-field="fleet-services-status"] [data-field="all-healthy"]count,[data-field="service-<slug>"]text (null when absent), the catalogue card'sdata-status, feedsmonitoringVerdict; thenpage.evaluate(fetch(doorPath(door,'/status.php'), {cache:'no-store'}))→statusPhpVerdict. Returns when BOTH healthy; at the horizon throws"<slug> is not healthy after 360s at rest: <monitoring reason>; <status.php reason>".export async function readServiceDoorAtRest(page: Page, slug: string, apex: string): Promise<string>— on the Services tab,[data-field="catalogue-card"][data-service="<slug>"] [data-action="open-service"]href; the visible[data-field="service-url"]text must be<slug>.<apex>(the card shows the host,hostOf); throws naming the selector when absent.Step 1: Failing test (
serviceAtRest.test.ts):Step 2: Run, expect FAIL.
Step 3: Implement the pure functions and the two page readers as specified (poll loop shape =
expectServiceHealthy's,provision.ts:751-778, without the Retry branch).statusPhpVerdict:The
fetchruns inpage.evaluate(renderer-side, neverpage.request— the Electron page carries the session, and the door's TLS is real DNS; #658's lesson).Step 4: Run, expect PASS;
pnpm --filter app build; rootpnpm lint.Step 5: Commit —
e2e: phase 9 — expectServiceHealthyAtRest / readServiceDoorAtRest: monitoring's verdict on the Services tab plus a direct status.php probe, for a service the panel never deployed (no P4 Active screen exists to read).swarm-claim host=matou-dev-server-01 run=24539
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #1488 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope