Public: anyone can read this; the crew can change it.
Crash reports: the route accepts the Apple app's body (os, device, at, previousRun, findings) #18226
Merged 1h 43m ago, live in production
POST /api/v1/apps/:owner/:name/crash-reports now accepts the Apple app's body, and a report with several findings files or counts one group per finding. I ran the crash-reports, contract, unused-exports, feature-orphans and module-state tests and tsc --noEmit; all pass. I did not run the full suite.
-
Reviews
Changes requested — before the latest pushChanges needed, one round:
- HIGH, fix first: the
"unknown"build (src/core/crash_groups.ts,UNKNOWN_BUILDin parseReport) breaks reopening.newerBuildfalls tolocaleCompare(..., {numeric:true}), and "unknown" sorts after every numeric build like "50". So (a) an Apple report with no build reopens a group closed for build 50, and (b) once "unknown" is the group'slatestBuild, a real build 51 is never newer, so the group never reopens for a real build again. Do not invent a build. Make build optional end to end: store no build for these reports, leave it out of the Seen line and builds list, and havenewerBuild/reopen treat a missing build as not newer. Add a test: close a group at build 50, post the Apple body without a build, expect it stays closed; then post build 51 and expect it reopens. - MEDIUM:
reportCrashes(src/actions/crash_reports.ts) files up to 8 findings from one rate-limit token and is not atomic. If finding 3 fails, findings 1 and 2 are already filed and the caller gets a 500, so a retry double-counts them. Wrap the loop in one db transaction, or at least charge the limiter once per finding. Test the failure path. - MEDIUM:
atis validated and then never used. It is dead data on the report, so drop it fromCrashReport, or use it (e.g. as the group's last_at) and test that. The same goes forapp, which is validated and discarded. Say so in the docs, or use it. - LOW: the new test never checks that a
previousRunnote or the System line stays out when os/device are absent. It also never checks a mixed body (top-levelframesplusfindings). Add both.
Box 5 and the OpenAPI example are fine. Doc is in docs/features/crash-reports.md, not README, which is right.
ApprovedEarlier asks are met: no build is invented (a report with none is counted but never reopens a group, and a real build still reopens one), and a multi-finding report is filed in one transaction, with tests for both. The dead
atis dropped. I found nothing high.Non-blocking:
osanddevicego into the issue body as plain markdown on theSystemline, unfenced. An anonymous caller can put@someoneor a link in them (64 characters) and the forge will treat it as markdown. Put them in a code span or the existingfenced()block, like the frames, so the text stays data. Also, one request can file 8 issues but takes one slot from the 5 a minute limit; the 200-group cap bounds it, so I leave it. - HIGH, fix first: the
-
Checks
shipped production is serving it deploy a338207
-
History
- Crash reports: no invented build (never reopens), findings filed in one transaction, drop dead at, more tests (#18223) 2bd1e9c
- Try: POST the Apple app's body with two findings to /api/v1/apps/<owner>/<name>/crash-reports and see two bug issues 41781f2
- Crash reports: accept the Apple app's body (os, device, at, previousRun, findings), one group per finding b83aa01
- Spend 3: the same cost reads and planned stop/delete as MCP tools and a terminal screen (#18206) c30e6bb
- Games: host the spark profiler viewer and its uploads in the forge (#18096) beabbda
- Games: a day after a mod set is installed, the games page says whether it helped, with take-back one tap away (#18201) 2243020
- Games: installing the quality set ships Essential Commands' config with only /home, /spawn and /tpa on (#18199) 7b84b2c
- Connections on an account: verified identities the person controls, each with its own uses, and a lookup that answers only on opt-in (#18120) 314f4eb
- A granted app's two-page print comes out as one sheet, printed on both sides (#18194) e2e7eb4
- Traces 5c: the trace list and one trace read through MCP tools and a terminal screen compare (#18183) cc38920
- Access 5a: a visitor principal is minted only when a visitor creates something, signed, with a role in may() and per-visitor limits (#18174) e261ee9
- Games: the forge pins forge-velocity d0635dac1654 (cannot throw into a command) (#18203) 08c4b42
- Spend 2: plan a Stop or Delete from the cost row, refused on a read-only account, audited (#18170) fecfd88
- Mail from the owner's AWS account: the forge sets up SES, its DNS records and the mail key in one confirmed step (#18119) bd73c12
- Games: a mod-set install refuses a Modrinth slug that now points at a different project than the lock holds (#18200) fa82fd9
- Access 3b: MCP, pages, the terminal, games and infrastructure ask may(), one door per pull (#18186) 5a3de44
- Games: the forge-velocity pin's sha256 is the jar's whole digest (#18198) 7ede9b5
- Access 4b-2: an admin sees who can reach what, by person and by resource (#18179) a8d3bc8
- Full suite red: test/standards-sitemap.test.ts (#18193) 8072255
- Games: the forge pins forge-velocity bee2a65cf3f2 (/forge answers from a SQLite snapshot at once, one clean style) (#18163) b4fe556
2 earlier comments
POST /api/v1/apps/:owner/:name/crash-reports now accepts the Apple app's body, and a report with several findings files or counts one group per finding. I ran the crash-reports, contract, unused-exports, feature-orphans and module-state tests and tsc --noEmit; all pass. I did not run the full suite. The forge's check runs it on this push.
What changed
- New fields: the route accepts
app,os,device,at,previousRunandfindings.app,osanddeviceare text of up to 64 characters;atis a time;previousRunis true or false.findingsis 1 to 8 objects of{kind, frames, breadcrumbs?}. Each uses the existing frame and line caps.- The code is in
src/core/crash_groups.ts; new refusals areinvalid_contextandinvalid_findings, both 422.
- Old shape: an old-shape report parses and files exactly as before. An unknown field, at the top level or inside a finding, is still a 422.
- Groups per finding:
splitReportmakes one group per distinct finding, so duplicates inside one report count once.reportCrashesinsrc/actions/crash_reports.tsfiles each one. The answer keeps{issue, count, opened, reopened}for the first finding and addsfindings, one entry per group. - Issue text: a new issue's body gets a "System" line with
osanddevice, and notes ifpreviousRunwas true.appis validated but not stored, andatis kept only as a parsed time on the report, so it never reaches the issue. Nothing that names a person is read or kept. - Docs:
/contract/openapi.jsondocuments the body with an example (postApiV1AppsOwnerNameCrashReports.ts), anddocs/features/crash-reports.mddescribes it. - Test: the new test posts the app's payload with three findings, two of them identical, and gets two groups and two issues. It also checks that an unknown field, an over-long
os, a badatand an unknown finding field each get a 422.
Choices to check
- The Apple payload has no
build, so whenfindingsis present andbuildis absent, the build is"unknown". I guessed here. If the app sends the build insideappordevice, say which and I'll read it from there. deviceandosare plain strings. If the app sendsdeviceas an object, that is a 422 today.- The old
strict shapetest useddeviceas its example unknown field, which is now valid. I switched it toaccount. - The new test uses its own repo because the rate limiter counts per app, and the shared repo's limit was already used up by earlier tests.
Left out
- The report key and the private-app door, which were parts of #18197 beyond this issue.
/api/v1/telemetry/appleis untouched: it stays the usage summary only, and there is no second store.- No new terminal screen: the existing crash groups screen and page already list every group this route files, and the commit carries a
No door:line saying so.
Try it: POST /api/v1/apps/<owner>/<name>/crash-reports with {"v":1,"kind":"crash","app":"Forge","os":"iOS 19.1","device":"iPhone17,1","at":"2026-12-04T10:00:00Z","previousRun":true,"findings":[{"kind":"crash","frames":["Forge +1"]},{"kind":"hang","frames":["Forge +99"]}]}. It answers 202 with two entries in findings.
🤖 Generated with Claude Code
<!-- look-pages 2bd1e9cf09ff --> Look pages for 2bd1e9c, from the gate:
look pages (none): this pull changes src/web/studio/crash_card.ts but the forge could not trace the route of /, /admin/telemetry, /explore and 29 more (an inline or wrapped handler), so it could not infer a page; the reviewer decides. A "Looks: <path>" line naming the nearest page, or a "No look: <why>" line (10+ characters), says it
API Error: 402 This request requires more credits, or fewer max_tokens. You requested up to 128000 tokens, but can only afford 4000. To increase, visit https://openrouter.ai/workspaces/default/keys/b36b4d5ca03526e2ce9b015c94d62cc19d23669897752807e5fe44ac6efc00fd and adjust the key's monthly limit
POST /api/v1/apps/:owner/:name/crash-reportsnow accepts the Apple app's body, and a report with several findings files or counts one group per finding. I ran the crash-reports, contract, unused-exports, feature-orphans and module-state tests andtsc --noEmit; all pass. I did not run the full suite. The forge's check runs it on this push.What changed
app,os,device,at,previousRunandfindings.app,osanddeviceare text of up to 64 characters;atis a time;previousRunis true or false.findingsis 1 to 8 objects of{kind, frames, breadcrumbs?}. Each uses the existing frame and line caps.src/core/crash_groups.ts; new refusals areinvalid_contextandinvalid_findings, both 422.splitReportmakes one group per distinct finding, so duplicates inside one report count once.reportCrashesinsrc/actions/crash_reports.tsfiles each one. The answer keeps{issue, count, opened, reopened}for the first finding and addsfindings, one entry per group.osanddevice, and notes ifpreviousRunwas true.appis validated but not stored, andatis kept only as a parsed time on the report, so it never reaches the issue. Nothing that names a person is read or kept./contract/openapi.jsondocuments the body with an example (postApiV1AppsOwnerNameCrashReports.ts), anddocs/features/crash-reports.mddescribes it.os, a badatand an unknown finding field each get a 422.Choices to check
build, so whenfindingsis present andbuildis absent, the build is"unknown". I guessed here. If the app sends the build insideappordevice, say which and I'll read it from there.deviceandosare plain strings. If the app sendsdeviceas an object, that is a 422 today.strict shapetest useddeviceas its example unknown field, which is now valid. I switched it toaccount.Left out
/api/v1/telemetry/appleis untouched: it stays the usage summary only, and there is no second store.No door:line saying so.Try it:
POST /api/v1/apps/<owner>/<name>/crash-reportswith{"v":1,"kind":"crash","app":"Forge","os":"iOS 19.1","device":"iPhone17,1","at":"2026-12-04T10:00:00Z","previousRun":true,"findings":[{"kind":"crash","frames":["Forge +1"]},{"kind":"hang","frames":["Forge +99"]}]}. It answers 202 with two entries infindings.🤖 Generated with Claude Code
Closes #18223