Repository navigation
test(ios): remove duplicated Watch source guards - #134285
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 2:41 PM ET / 18:41 UTC. ClawSweeper reviewWhat this changesThe PR removes duplicated iOS Watch source-guard assertions while preserving focused checks for retry-reset handoff, notification identity, and snapshot acceptance. Merge readinessKeep open for maintainer review and normal exact-head native CI. The prior retry-reset handoff finding is addressed, and the narrowed test guards retain the relevant Watch approval invariants without changing production behavior. Priority: P3 Review scores
Verification
How this fits togetherWatch approval payloads enter through WatchConnectivity, are validated and stored in the Watch inbox, then drive approval UI and local notifications. This PR changes only the source-level guard tests for that receive-and-store behavior. flowchart LR
A[Gateway approval payload] --> B[Watch connectivity receiver]
B --> C[Watch inbox store]
C --> D[Approval retry and identity logic]
D --> E[Watch UI and notification]
Before merge
Agent review detailsSecurityNone. PR surfaceOther -66. Total -66 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain the compact guards for the producer-to-store handoff and exact identifier behavior, then land after exact-head iOS CI confirms the native test target. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes test-maintenance coverage, not a reported runtime defect. The relevant source guard is directly inspectable, while exact-head native CI remains the execution check. Is this the best way to solve the issue? Yes. The compact checks retain the prior review's required prompt-to-upsert handoff plus the exact reset, identity, and store-acceptance invariants without mirroring incidental implementation ordering. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against e2c92fce4d8b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
7bdf8b6 to
52a797d
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
52a797d to
159b987
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
159b987 to
ef90ac2
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
What Problem This Solves
The Watch approval test target carries several source-text assertions for private implementation ordering, identifier plumbing, and view structure. These tests require synchronized edits during behavior-preserving refactors without executing the approval flow.
Why This Change Was Made
Replace the broad retry-reset, notification-identity, and snapshot-acceptance source mirrors with compact focused guards for their actual invariants. Retain the Watch-only decision-delivery, forced-refresh correlation, exact identifier, command-review accessibility, loading/screenshot, and parser checks.
User Impact
No user-visible behavior changes. This reduces brittle native test maintenance by net 66 lines while preserving the independent Watch invariants identified during review.
Evidence
git diff --check.