Repository navigation
improve(testing): add watchOS Gateway upgrade survivor - #137203
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 8:28 AM ET / 12:28 UTC. ClawSweeper reviewWhat this changesThis PR adds a manual far-reaching test that pairs a watchOS-style Gateway node on OpenClaw 2026.8.1, then checks retained identity and token reconnects after upgrade and Gateway restart. Merge readiness✅ Ready for maintainer review No blocking correctness or security issue was found. This PR remains useful because current main has the Watch direct-node contract but not the proposed published-baseline upgrade-survivor coverage; it is a maintainer-authored, actively reviewed test addition. Priority: P3 Review scores
Verification
How this fits togetherThe upgrade-survivor harness installs a published baseline, prepares its state, upgrades to the candidate package, and verifies retained behavior. This PR adds the watchOS direct-node HTTPS pairing flow to catch upgrade regressions without scheduling it in routine release shards. flowchart LR
A[Published baseline] --> B[Watch pairing]
B --> C[Retained device state]
C --> D[Candidate upgrade]
D --> E[Reconnect and poll]
E --> F[Gateway restart]
F --> G[Final reconnect check]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +646, Other +576. Total +1222 across 15 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Technical reviewBest possible solution: Keep the scenario as a manual far-reaching regression check using the existing watch HTTPS and V3 signed-device contract, with routine exact-head CI remaining the only pending merge gate. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR adds regression coverage rather than reporting a separately reproducible user-facing defect. The supplied context reports a published-baseline upgrade and restart run, while source inspection confirms the exercised boundary. Is this the best way to solve the issue? Yes. The adapter exercises the existing WatchDirectNode HTTPS/V3 contract and checks the actual Gateway state across the upgrade lifecycle, while the policy deliberately confines its cost to manual far-reaching runs. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f4647c4d1af5. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review Applied the Rank-up move on head The data-model compatibility item is covered by AWS |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Exact-head follow-up Proof:
The generic data-model item remains satisfied by AWS |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head Proof:
The generic data-model item remains satisfied by AWS |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head Proof:
The generic data-model item remains satisfied by AWS |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer decision: accept the single-row Monday package-acceptance cadence and its inherited-secret/CI budget. The scenario remains excluded from normal AWS |
|
@clawsweeper re-review Exact head Proof:
No product schema or store changed; survivor state is test-private. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
85b258c to
6b2bb0e
Compare
|
@clawsweeper re-review Exact head Fresh rebased-head evidence:
This is test-only state. No product schema, persistent store, or runtime protocol changed. The scenario remains explicit The automatic synchronize review run |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer closeout for exact head
Exact-head ClawSweeper run |
|
Merged via squash.
|
…36761-session-mode-local-20260903 * commit '58187248c8cafd7b8cfbba3de8d001762fb08b48': improve(testing): add watchOS Gateway upgrade survivor (#137203) improve(ui): structure Devices rows with an actions menu and a facts panel (#137084) test(cli): reuse canonical pairing call guard (#137210) fix(sessions): prevent gateway stalls during large session cleanup (#126035) fix(qa): resolve Slack runtime dependency (#137283) fix: fence Session Observer catalog requests (#137243) fix(memory): make watcher pressure guidance actionable (#137181) test(entry): type the respawn exit mock directly (#137258) fix(release): install first-hop fixtures through the candidate registry (#137286) # Conflicts: # scripts/e2e/lib/upgrade-survivor/assertions.mjs
* test(gateway): add watchOS upgrade survivor * test(gateway): enforce watch survivor cadence policy * test(ci): recognize watch survivor frozen catalog * test(gateway): satisfy watch survivor static checks * test(ci): register watch survivor executable * test(ci): keep watch survivor manual * test(e2e): prove watch TLS polling across upgrades * test(e2e): keep watch helpers nounset-safe * test(e2e): isolate watch upgrade fixture config * test(e2e): isolate watch survivor fixtures * test(e2e): isolate watch survivor state * test(e2e): keep watch registry fixture idle
What Problem This Solves
Resolves a gap where Gateway upgrades could break an already-paired Apple Watch direct-node connection without any retained-identity compatibility coverage.
Why This Change Was Made
Adds a synthetic client matching the shipped
WatchDirectNodeV3 HTTP contract, then proves bootstrap pairing on[email protected], retained-token reconnect after upgrade, valid token rollover, and another reconnect after candidate restart.The expensive row remains outside normal
reported-issuesstable/full shards. It is available only through explicitworkflow_dispatchselection andfar-reaching; this PR adds no scheduled trigger.User Impact
Maintainers can detect when a Gateway change would lock out previously paired watches across an upgrade or restart without adding package/E2E overhead to normal release shards.
Evidence
run_486b01537387at85b258cd0e894fba6d6d9668d8dd1566dac888f8: published[email protected]bootstrapped the watch through the decoded HTTPS setup endpoint, then the packed candidate reconnected with the retained device token and reconnected again after a candidate Gateway restart.[4,4], clientopenclaw-watchos/ modenode, stable instance/device identity, one paired watch, and zero pending pairing..artifacts/watchos-tls-85b258c/summary.json, SHA-2568a68c24470193fabd0f8c9f681e9a4758f6353432c55ef63e06cc68a936af0b7. Only token hashes are recorded.run_9f53d08cc317proved the baseline watch pair and candidate update, then exposed a harness-only plugin-registry assertion that expected an unrelated WhatsApp install.run_4c8ebbc213d0exposed the earlier generic legacy-session seed before watch pairing. Both fixtures are now scenario-isolated; neither was a watch product verdict.git diff --checkpassed. Fresh fix-only autoreviews were scoped-clean at 0.99 confidence.33734397052and33736350534were infrastructure-cancelled during delegated lifecycle before the scenario command; neither produced a product verdict.This is test infrastructure only. No Gateway product schema, persistent store, or runtime protocol changed.