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

Crash reports from the Apple app are kept and shown to the app's owner #18010

opened this

Closed 10h 54m ago

I added a Looks: /admin/telemetry line in a new commit and pushed it. The gate now reads it as "look pages (named)". It also prints a similar-function note for bad in test/apple-crash.test.ts and refused in test/feature-schedule.test.ts.

Notes

opened this

I added a Looks: /admin/telemetry line in a new commit and pushed it. The gate now reads it as "look pages (named)". It also prints a similar-function note for bad in test/apple-crash.test.ts and refused in test/feature-schedule.test.ts. That is a note, not a refusal, and I left the test as it is. I did not run the tests again, since the commit changes no code.

/admin/telemetry is the page the pull changes, and it was already one of the looks pages in forge.json (and in looksAsOwner), so no forge.json change was needed.

I also put a Direction: line naming #18006 in that commit.

Nothing else changed in the pull: it still adds crash reports on the existing telemetry route, grouped, with one notification per new group. The terminal door is the existing "App usage" screen.

🤖 Generated with Claude Code

Continues #18010

Show 6 earlier items

7 earlier comments · 1 event
commented

Nothing new to push: the branch already carries the work for #18006, and the four checks you listed pass on it. I didn't run the full suite, which the forge's check does on push.

I ran the dead-code, no-process-wide-state, both-doors and crash-report tests, and all 24 pass. The commit subjects name the issue as (#18006). The rest of the pull is as I last described it, and I left it unchanged.

  • Both doors: the terminal's App usage screen shows the crash groups the page shows, and docs/features/apple-usage.md has the how-to.
  • Dead code: the unused-exports test also prints a note listing five exports in other modules (pinCrawlLag, setCrawlClock, notAdditive, useWatchProbeByDefault, useReachByDefault) that are no longer dead and could be pruned. None are mine, so I left them.

🤖 Generated with Claude Code

commented

Nothing changed since the last pass: the branch is clean and already pushed, and the four checks you listed still pass on it. I didn't run the full suite, which the forge's check does on push.

I re-ran the dead-code, no-process-wide-state, both-doors and crash-report tests, and all 24 pass. The commit subjects name the issue as (#18006). The terminal's App usage screen shows the crash groups the page shows. git push reported "Everything up-to-date".

The pull stands as I last described it: crash reports are kept, grouped, shown to the owner and announced once per new group.

🤖 Generated with Claude Code

commented

<!-- look-pages 38f2b8f138e4 --> Look pages for 38f2b8f, from the gate:

  • look pages (named): this pull changes src/web/pages/admin-telemetry.ts; a commit names /admin/telemetry
commented

Nothing new to push. The branch is clean and already on the forge. I re-ran the four checks you listed and all 24 tests pass. I didn't run the full suite, which the forge runs on push.

  • Both doors: the terminal's App usage screen shows the crash groups the page shows, and docs/features/apple-usage.md has the how-to.
  • Dead code and process-wide state: test/unused-exports.test.ts and test/module-state.test.ts pass.
  • Naming the issue: the commit subjects carry (#18006).

The pull stays as already described: crash reports are kept, grouped, shown to the owner on /admin/telemetry and announced once per new group. /privacy says what a report holds and that it is sent only when the user chooses.

🤖 Generated with Claude Code

commented

Nothing in the pull needed changing for this round of feedback, so I pushed no new commit.

  • Look pages: the gate's message is a NOTE, not a failure. It says a commit names /admin/telemetry, and a commit on this branch already has the line Looks: /admin/telemetry. That page is also in app.looks and app.looksAsOwner in forge.json.
  • The four checks you listed: the tests for dead exports, process-wide state, timed jobs and duplicate imports all pass. I ran them together with test/apple-crash.test.ts: 22 pass, 0 fail. bun x tsc --noEmit is clean.
  • Gate --fix: it rewrapped nothing. The two over-long comments it reports are in src/core/event_audience.ts and src/crew/notify.ts, which this pull doesn't touch.
  • Duplicate-function notes: I left these as they are.
    • mk in test/apple-crash.test.ts matches the one in test/apple-usage-route.test.ts. I kept my own copy because tests in this repo each carry their own small helpers.
    • readAppleCrashes and readAppleUsage are similar readers over different tables.

What the pull does:

  • Kept and grouped: crash reports from the Apple app are stored and grouped.
  • Told once per group: each group notifies the admins once, as the apple.crash_group event.
  • Where the owner sees them: crash groups appear on /admin/telemetry and on the existing App usage screen. The how-to is docs/features/apple-usage.md.

To try it: open /admin/telemetry as the owner.

commented

Nothing new to push. The branch has the same finished work as before and is already on the forge. I didn't re-run the tests this time. The last run, which covered the four checks you listed, passed all 24. I didn't run the full suite, which the forge's check does on push.

The issue is parked, and the cause is the repeated runs, not the code. More runs here won't change anything. A person needs to review the pull as it stands and either merge it or say what is missing.

What the pull does:

  • Endpoint: POST /api/v1/telemetry/apple takes crash reports. The shape is strict, the body is capped at 64 KB, requests are rate-limited, and no IP address is stored.
  • Storage and notification: reports go in their own table, grouped by top frames and build. The owner is told once per new group.
  • Owner view: /admin/telemetry shows the groups. The terminal's App usage screen shows the same, and docs/features/apple-usage.md has the how-to.
  • /privacy: says exactly what a report holds and that it is sent only when the user chooses.
  • Tests: test/apple-crash.test.ts covers the two-groups case, the 413 and the 400.
  • Naming: the commit subjects name the issue as (#18006).

Left out: the gate flagged three near-duplicates (readAppleCrashes, and two test helpers), which I left as separate functions.

🤖 Generated with Claude Code

commented

Still red on current main: the first-view budget in a process stamped as a release > every page stays inside its budget, /changelog included. Fix it and push.

the crew's run was interrupted: provider limit, resumes 05:10 UTC — every subscription this repository may use is resting (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://)
commented

Closed as a duplicate: #18018 builds the same issue (#18006), is green and is in review. This one was red. The branch is kept.

Sign in to join this conversation.

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

Keyboard shortcuts

Docs