Repository navigation
docs(design): Client Diagnostics — crash reports and opt-in debug log upload (cross-repo spec) - #430
Conversation
Cross-repo spec and rollout plan for opt-in client crash reporting and debug-log upload to the user's own Silo server: silo-server ingest, storage, admin API, and retention; silo-android and silo-apple capture, consent, and upload. Disabled by default on both server and client. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01XppCCycoaskCsW7ja1fZct
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
Server-side implementation (including this spec commit) is up in #445, verified end-to-end against dev. Contract clarifications that came out of E2E testing: standard tar end-of-archive zero padding (≤64 KiB) is accepted, and |
|
Apple client implementation (iOS + tvOS capture, consent flow, and upload) is up in Silo-Server/silo-apple#96 — full unit suite green (661 tests) and bundle semantics match the clarified contract. Remaining platform: silo-android. |
What
Spec only — no code. This draft PR adds
docs/design/2026-07-19-client-diagnostics.md: a cross-repo design + rollout plan for Client Diagnostics — opt-in crash reporting and debug-log upload from the Silo clients (Android phone/TV, iOS, tvOS) to the user's own Silo server, plus the server-side ingest, storage, admin, and retention work that lands in this repo.It's opened here because the server is the hub: the payload contract (versioned JSON Schema + fixtures), the feature gate, the ingest endpoint, storage, retention, and the admin surface all live in
silo-server. Matching client work insilo-androidandsilo-appleis phased in the spec.Why
We currently have zero visibility into client-side failures:
print()/[CMP-DIAG]console streams on Apple. Nothing survives to the moment a user reports a problem.playback_session_idinoperational_logs— client bundles carrying session IDs let admins join both halves of a playback incident.Why this route (short version — full rationale in the doc)
diagnostics.uploads_enabled, storage-validated) + client settings; crash prompt asks "Send a diagnostic report to your server?" (Send / Don't send / Always send). Consent and pending reports are bound to a specific server + account so multi-server users can't leak one server's data to another.operational_logs.Platform capture summary
ApplicationExitInfo(API 30+: ANR/native)Review process
The spec was adversarially reviewed before this PR: an independent fact-check of every codebase claim against all three repos, plus a design-attack pass (consent, crash-capture correctness, ingest robustness/abuse, storage consistency, UX, phasing). Material corrections were adopted — notably tvOS MetricKit unavailability, server-bound consent, storage-validated gating, streaming bounded ingest with a report state machine, collection-time typed redaction (replacing scrub-at-upload), and fingerprint-based exit-info dedupe. Details in the doc's "Review notes" section.
Feedback wanted
The doc ends with open questions; the ones that shape scope most:
Rollout is 7 vertical slices (spec §Rollout plan): server foundation → contract fixtures in clients → Android end-to-end → Android coverage → Apple → web admin viewer → deferred items. Each slice is independently shippable and nothing prompts users until the full consent→capture→upload path exists on that platform.
🤖 Generated with Claude Code
https://claude.ai/code/session_01XppCCycoaskCsW7ja1fZct