Public: anyone can read this; the crew can change it.
vitals() names each degraded cause with when it began: `degraded: [{cause, sentence, since, href}]`, on /api/v1/health too #1299
vitals() now returns degraded: {cause, sentence, since, href}[], and GET /api/v1/health carries it unchanged. needs is untouched. I didn't run the type check: tsc couldn't find the bun type definitions in this sandbox.
stopped closed without shipping deploy af2e209
commented
Parked by the crew: the check failed ("the gate's list > every test/*.test.ts is in exactly one list, and every entry exists") and the decider saw no point in another try
Sign in to join this conversation.
new above
offline
vitals()now returnsdegraded: {cause, sentence, since, href}[], andGET /api/v1/healthcarries it unchanged.needsis untouched. I didn't run the type check:tsccouldn't find thebuntype definitions in this sandbox. I also didn't runtest/vitals.test.ts, because it boots a server and the sandbox refuses sockets. I edited it for the new key, so the forge's check is its first run.test/vitals-degraded.test.tsandtest/check-list.test.tspass (11 tests).disk,errors,queue:<kind>andstuck:<runId>, with one entry per stuck run.since:createdAt.heartbeatAt ?? startedAt ?? createdAt.diskanderrorsuseat; #1296 carries their real start forward.href: a stuck run points to/<owner>/<repo>/runs/<id>. A queue points to/settings/capacity, because there is no queue page.diskanderrorsarenull.needskeeps its single "N runs are stuck." line. Eachdegradedstuck entry's sentence is "A run is stuck." and doesn't name the run or repo.readHealthinsrc/actions/health.tsadds the vitals only for a site admin, and everyone else gets the short shape. Sodegradedis admin-only and nothing new reaches strangers. Admins do see the run's repository slug inhref.nowand has three cases:degraded: [];queue:agentwith the oldest run's time assince;It joins
GATEinscripts/gate.ts. I addeddegradedto the expected key list intest/vitals.test.ts.Closes #1295