Skip to content

test(ios): remove duplicated Watch source guards - #134285

Merged
RomneyDa merged 1 commit into
mainfrom
cleanup/watch-approval-source-guards
Sep 1, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
cleanup/watch-approval-source-guards

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

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

  • Test diff: +12/-78 LOC (net -66).
  • git diff --check.
  • Shared changed gates passed through dependency pins, duplicate coverage, coercion guards, package patches, and formatting; local SwiftLint could not load SourceKit on this command-line-tools-only host.
  • Structured Autoreview on the narrowed exact patch: scoped clean, 0.99 confidence, no accepted/actionable findings.
  • Exact-head Apple build/test and Swift lint remain required in CI.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@RomneyDa RomneyDa closed this Aug 31, 2026
@RomneyDa RomneyDa reopened this Aug 31, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: ios App: ios size: M maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 2:41 PM ET / 18:41 UTC.

ClawSweeper review

What this changes

The PR removes duplicated iOS Watch source-guard assertions while preserving focused checks for retry-reset handoff, notification identity, and snapshot acceptance.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep 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
Reviewed head: ef90ac22b72b6bd105084d6328fd094e5be1fe5c

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test-only cleanup with the prior handoff concern resolved and no introduced correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR changes only source-guard tests and has no user-visible runtime behavior to demonstrate; native exact-head CI is the relevant remaining validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR changes only source-guard tests and has no user-visible runtime behavior to demonstrate; native exact-head CI is the relevant remaining validation.
Evidence reviewed 4 items Introduced test change: The verified introduced patch changes only the Watch source-guard test. Its retained assertion checks that the prompt consumer forwards the reset attempt identifier into the approval upsert path.
Retry-reset owner boundary: The production prompt consumer forwards the message reset attempt at line 403; the upsert accepts a reset only when its opaque key equals the active attempt and clears resolving state only for that match.
Snapshot acceptance caller: The receiver records a snapshot acknowledgement only after the store reports that it accepted the snapshot, including replayed deferred snapshots.
Findings None None.
Security None None.

How this fits together

Watch 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]
Loading

Before merge

  • Complete next step (P2) - This maintainer-owned, protected PR needs normal exact-head native validation rather than automated cleanup or a repair job.
Agent review details

Security

None.

PR surface

Other -66. Total -66 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 12 78 -66
Total 1 12 78 -66

Review metrics

Metric Value Why it matters
Production versus test LOC production +0, tests -66 The branch removes test-only source-text duplication and does not alter runtime code.

Technical review

Best 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.

Labels

Label changes:

  • add P3: This is low-risk test maintenance with no production behavior change.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR changes only source-guard tests and has no user-visible runtime behavior to demonstrate; native exact-head CI is the relevant remaining validation.
  • remove P2: Current review triage priority is P3, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P3: This is low-risk test maintenance with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR changes only source-guard tests and has no user-visible runtime behavior to demonstrate; native exact-head CI is the relevant remaining validation.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (4 earlier review cycles)
  • reviewed 2026-08-31T16:53:18.564Z sha 7bdf8b6 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-31T16:59:54.015Z sha 7bdf8b6 :: found issues before merge. :: [P1] Retain coverage for Watch approval invariants
  • reviewed 2026-08-31T18:22:17.541Z sha 52a797df4d68f5dbf5454856b6776489e93f0841 :: found issues before merge. :: [P1] Retain coverage for the remaining Watch approval invariants
  • reviewed 2026-08-31T18:34:54.532Z sha 159b9870ee28faa1b5c529f06f2987877a2c0ebf :: found issues before merge. :: [P1] Preserve the Watch retry-reset handoff guard

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 31, 2026
@RomneyDa
RomneyDa force-pushed the cleanup/watch-approval-source-guards branch from 7bdf8b6 to 52a797d Compare August 31, 2026 18:15
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 31, 2026
@RomneyDa
RomneyDa force-pushed the cleanup/watch-approval-source-guards branch from 52a797d to 159b987 Compare August 31, 2026 18:28
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 31, 2026
@RomneyDa
RomneyDa force-pushed the cleanup/watch-approval-source-guards branch from 159b987 to ef90ac2 Compare August 31, 2026 18:37
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 31, 2026
@RomneyDa
RomneyDa merged commit 3d22565 into main Sep 1, 2026
70 of 72 checks passed
@RomneyDa
RomneyDa deleted the cleanup/watch-approval-source-guards branch September 1, 2026 01:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: ios App: ios maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant