## Что это
## Резюме (RU)
G1.1.4.D — Структурированные error-спаны в lifecycle Rox Design (Week 1-2 quick win)
*Полный перевод тела — в работе. Английский оригинал ниже.*
---
# Original (EN)
## Objective
Replace silent `.catch(() => {})` swallowing identified in Lane C audit with structured logging + Sentry breadcrumbs tagged by integration. Cross-cuts with Goal 2 telemetry contract — start here as the proof-of-concept.
## Source Links
* Design doc section: `docs/superpowers/specs/2026-05-20-rox-integration-vision-design.md` § 2 (Section 2 → 1.4.D)
* Parent: PZD-76
* Audit context: `docs/audits/2026-05-20-pr268-release-readiness-audit.md`
## Tasks
(a) Audit Rox Design code for silent error paths: grep for `\.catch\(\(\) =>\)` and `.catch(error =>` in rox-design files
(b) Replace each with: `mainLog.error('[rox-design.{phase}]', { error, ...context })` + Sentry.addBreadcrumb({ category: 'rox-design', level: 'error', message, data })
(c) Cover phases: start, navigate, IPC-handler, view-attach, view-show, view-hide, destroy, before-quit cleanup
(d) Tag every span with the integration id (`rox-design`) so future integrations follow the same pattern
(e) Unit tests: simulate failures at each phase, assert breadcrumb is added with correct tags
(f) Verify Sentry receives correctly-tagged events in a dev synthetic-error test
## Acceptance Criteria
Implementation passes typecheck + lint + targeted unit tests + relevant audit gates. PR backlinks to this Linear issue.
## Implementation Plan
1. Read design doc section 2 (Section 2 → 1.4.D) for full context.
2. Implement tasks above on a feature branch off current main + my 3 PR #268 audit commits (`0d8bf3d2`, `a8f90784`, `4d223078`) or current main if those land first.
3. Atomic commits per task; PR when complete.
4. Update this issue with verification evidence.
## Status / Priority / Estimate
Status: **Todo** (Week 1-2)
Priority: **High**
Estimate: **S** (\~1-3 dev-days)
Workstream: КОД
## Update Log
* **2026-05-20** Sub-issue created during integration-vision brainstorm. Dispatched to autonomous agent.
## Статус
Это задача из текущего backlog'а ROX.ONE (Linear). Текущий статус в Linear: `К работе — Todo`. Метки: —.
## 🔗 Linear
- [PZD-82](https://linear.app/kuhjie/issue/PZD-82/g114d-strukturirovannye-error-spany-v-lifecycle-rox-design-week-1-2) — backing ticket
- Parent epic: [PZD-116](https://linear.app/kuhjie/issue/PZD-116)