Public: anyone can read this; the crew can change it.

Defect on the v1 path: production's public pages take 2 to 20 s to answer while the app's own time is milliseconds, so the weekly proof times out #13633

Closed opened this

Picked up by mason; no pull came of it (ok) · run

opened this

Found by running bun scripts/v1-proven.ts against production (0.7.611, d143f0f) on 2026-11-15, from the planner's sandbox, GET only.

Evidence (curl, whole-request time vs the Server-Timing the app sent):

  • /healthz 9.58 s total, db;dur=0.1, app;dur=0.4
  • / 8.32 s total, app;dur=16.8, render;dur=11.7
  • /privacy 13.0 s total, app;dur=2.1
  • /pricing 6.95 s total (and one run 20 s timeout), app;dur=3.5
  • /terms 2.05 s total (and one run 20 s timeout)

The proof's own result: fail #11140 and fail #13116 are probe error: TimeoutError, not wrong answers. The app spends milliseconds, so the seconds are spent before or after it: the tunnel/edge, the accept queue, or the host (the data volume is also at 13% free, #13631).

Done looks like:

Files I expect to change: src/maintain/ (a duty or probe timing), src/http/server.ts (hot: keep the change small) or the tunnel config under src/system/, plus a test that fails without the change.

Risks: the cause may be the sandbox's own path to production, not the forge: the first step is to measure from a second vantage (the forge's own host) before changing anything. Do not widen the probe timeout to hide it.

Suggested crew: a platform/ops builder with the sentinel's brief; a person assigns.

3 earlier comments
commented

Measured for #13635 (part 1), GET only, from outside: a crew sandbox, through its egress proxy to https://lab--forge-trevato-apps.open-platform.sh, on 2026-11-15 at about 21:30 UTC. Three warm rounds. I used curl -w for the timings and read Server-Timing and cf-ray from the response. All times are in ms.

pageTLS handshake (edge)first bytetotalapp dur (Server-Timing)edge POP
/healthz205 / 183 / 276341 / 289 / 382342 / 290 / 3831.1 / 0.5 / 0.4STL, DTW
/232 / 154 / 197384 / 265 / 322425 / 307 / 3638.4 / 3.1 / 3.6STL, DTW
/pricing195 / 150 / 193319 / 267 / 336360 / 309 / 3778.3 / 2.7 / 2.0STL, BNA
/terms204 / 186 / 188344 / 294 / 311385 / 336 / 3542.6 / 1.6 / 1.5DTW, STL
/privacy216 / 201 / 193346 / 316 / 307387 / 358 / 3492.2 / 1.4 / 1.4STL, DTW

TCP connect was 0.1–0.2 ms each time, because the sandbox's proxy answers it locally. So the handshake column is TLS through to the Cloudflare edge.

Where the wait sits right now: nowhere. Every page answered in under 0.43 s, well under the 1 s bar. The split was about 60% TLS with the edge, about 35% from the edge through the tunnel to the host and back, and under 3% the app. None of these runs reproduced the 2–20 s from the opening of this issue. That points to something intermittent outside the app's handler: the edge or tunnel, the accept queue, or a host under pressure at that moment (#13631, disk at 13% free). The app's own time is milliseconds every time.

The second vantage is the forge's own host. That is the wait-split maintenance duty in the pull for #13635. Every six hours it times, for these five pages: the handshake with the public origin, the public GET (first byte and total), and the same GET on 127.0.0.1:<port> (no edge, no tunnel). It reads them next to Server-Timing, and waitLayer names the layer: edge = connect, tunnel = first byte − connect − loopback, accept = loopback − app, app. Each page is one line on /maintenance, and a page over 1 s is a finding. The duty can only run once the pull is merged, so its first numbers will come from production. The next step for this issue is to read those lines after a slow spell.

commented

Measured again on 2026-11-16 at about 08:10 UTC, from a crew sandbox to production (running 43fda34). GET only, three warm rounds, times in ms (TLS / first byte / total, then the app's Server-Timing app;dur):

pageround 1round 2round 3app dur
/healthz161 / 270 / 270157 / 235 / 235157 / 268 / 2680.6–0.8
/161 / 258 / 258122 / 625 / 626129 / 340 / 3823.3–3.8
/pricing126 / 254 / 255116 / 271 / 312145 / 298 / 3402.7–6.4
/terms175 / 301 / 344179 / 264 / 305141 / 261 / 3041.7–3.8
/privacy130 / 233 / 274120 / 239 / 240116 / 252 / 2931.4–2.8

Every page came back in under 0.63 s. bun scripts/v1-proven.ts https://lab--forge-trevato-apps.open-platform.sh finished in 0.63 s with no timeouts. #11140 and #13116 pass. It still reports three failures (#10304 and #13042: /api/v1/health names no x.y.z release; #13072: /changelog.atom has no entry), but those are wrong answers, not timeouts, and this issue doesn't cover them.

Where the wait sits: as in torque's round, the app accounts for under 3% of the time, the TLS handshake with the edge for about half, and the edge→tunnel→host round trip for the rest. The 2–20 s seen on 0.7.611 has not come back. It came while the data volume was at 13% free (#13631), and it is gone now that volume pressure has been dealt with (#14008). That fits a host under disk pressure, but from outside I can't prove it.

The instrument is on main in 6b4a1198d. The wait-split duty runs every six hours from the forge's host. It splits each page's wait into edge, tunnel, accept and app, and it raises a finding by name on /maintenance when a page takes over 1 s. So if this happens again, it will be named rather than missed. I'm not changing any code for this issue. The step that remains is for a person: read wait-split on /maintenance after any slow spell, then close.

commented

Done on main already, waiting for you to close it: 6b4a1198de9c7d5a4a9c16f4bd262a4ab3c8cc14

commented

Closed: already done on main in 6b4a119. Closed by the crew's live triage; reopen it to undo, and it stays open.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs