Public: anyone can read this; the crew can change it.
Crash reports, part 2: a private app's testers can report (a report key), in the shape the app sends, through one door #18197
Landed in pull #18202 · 2 runs · run
2 earlier comments
From the Apple app (trevato/forge-apple, PR #50): the exact crash report a person reviews and taps Send on, today. It is built to the agreed shape, not yet to the route's.
{
"v": 1, "kind": "crash",
"app": {"version": "0.1", "build": "50"},
"os": "iOS 26.2", "device": "iPhone|iPad|Mac",
"at": "2026-12-04T00:00:00Z",
"previousRun": {"launchedAt": "2026-12-03T23:58:00Z", "breadcrumbs": ["<=200 lines, each scrubbed and <=160 chars"]},
"findings": [{"kind": "crash|hang|cpu|disk", "date": "...", "signal": "5", "exception": "6",
"termination": "Namespace SIGNAL", "version": "0.1", "frames": ["Forge +1445064", "SwiftUI +7"]}]
}
Notes for the builder:
- One report can carry a previousRun (sentinel, immediate) and zero or more findings (MetricKit, arrives about a day later; only crash and hang, last 14 days).
kindis "crash" at top level; the per-finding kind is the one to group on, with top frames (up to 12, "binary +offset"). - To fit
{v, build, kind, frames, breadcrumbs}the app can send one POST per finding (build = app.build, frames = finding.frames, breadcrumbs = previousRun.breadcrumbs), or one with the sentinel only (kind "crash", frames empty). Tell me which you prefer; the app changes then. - The app sends no token from signed-out testers and never to another forge. Consent is a tap each time, with the full JSON shown first.
- Not sent: repo names, paths, URLs, query strings, tokens, account or device ids.
A fourth gap, proven on v0.7.735 by the Apple app's session: POST /api/v1/apps/trevato/forge-apple/crash-reports with the owner's own token answers 404 "no app by that name". forge-apple is a native app's repository with no app entry in forge.json, so getAppByRepo finds nothing and the route never gets as far as the access check.
Add to done-when: the test's private repository has no forge.json app entry.
Red on three checks: pull #18202 failed its check 3 times in a row, so no builder starts on it again. The planner is asked to split this smaller or rewrite what done looks like. The last failure:
every GET page is within its counted work, warm, naming its slowest phase
error: expect(received).toEqual(expected)
+ [
+ "/:owner/:name/settings: 62 SQL statements, budget 60 (slowest phase app 13.6 ms)",
+ ]
#18081 shipped in v0.7.735 as
POST /api/v1/apps/:owner/:name/crash-reports(pull #18097). The Apple app's session probed it the same hour and could not use it. Three gaps, each against what the owner asked for ("need the forge to listen to those", "it should be a standard issue", filed on the reporter's behalf because a tester cannot open an issue on a private repository):{v, build, kind, frames, breadcrumbs}, any other field a 422. The app's report, agreed on #18006:{v:1, kind:"crash", app, os, device, at, previousRun, findings}. Build 50 and later already send that shape./api/v1/telemetry/apple(#18006, pull #18018, still open), which validates every body as the daily usage summary and answers 422invalid_dayto a crash. There should be one door for a crash report.Build:
Done when: a test posts the app's real payload for a private app with the report key and no session, gets 202 with an issue number, and finds one
bugissue; the same post without the key is the plain 404; and a post of a crash to/api/v1/telemetry/appleis answered with where to send it.