Skip to content

refactor(apps): drop pre-July-2026 app migrations - #163002

Merged
steipete merged 2 commits into
mainfrom
deslop/l288-migrations-apps-20261001
Oct 2, 2026
Merged

steipete merged 2 commits into
mainfrom
deslop/l288-migrations-apps-20261001

Conversation

@steipete

@steipete steipete commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Native apps still import storage formats whose last shipped writers predate the maintainer-approved July 1, 2026 upgrade support window.

User Impact

Upgrades from pre-July-2026 versions are no longer migrated from the old macOS discovery preference, Apple UserDefaults TLS pins, iOS UserDefaults last-Gateway record, or iOS push registrations missing relay scope. Users with only those unsupported preferences can select/reconnect their Gateway and establish trust again; push registration uses the existing cache-miss registration flow.

July+ Keychain Gateway settings and TLS pins still migrate. All native SQLite upgrade/import steps remain, as do Android migrations: their inputs were produced by supported releases or their last shipped producer could not be established. No plugin SDK surface or new setting is involved.

Why This Change Was Made

This implements Peter's October 1 maintainer direction: “our migration policy currently is July+ only. older code drop.” It removes the obsolete readers, cleanup branches, decoder projection, and their test scaffolding while retaining one canonical current storage path and all in-window migration owners.

Removed shape Last shipped writer Writer retirement / first changed release
macOS bridge.preferredStableID v2026.1.16-2, January 17 2f8206862a6, January 19; v2026.1.20, January 21
Apple ai.openclaw.shared / gateway.tls.* UserDefaults pins v2026.3.2, March 3 ec0eb9f8c35, March 3; v2026.3.7, March 8
iOS gateway.last.* UserDefaults record v2026.3.2, March 3 Same Keychain cutover and release as TLS
iOS push registration missing APNs environment, relay profile and proof policy v2026.6.10, June 24 e08ef9f8933, June 22; v2026.6.11-beta.1, published June 24 at 23:37 UTC

Release dates were checked through GitHub releases and writers inspected at the tags, including later tags lacking each cutover. The earliest July release (v2026.7.1-beta.1, published July 2) still writes raw Keychain pins and Keychain lastConnection; both imports remain. July Room/shared-client database schemas and later device-identity/auth, Watch, port, receipt and service migrations remain supported.

Evidence

  • Current-head CI 36946115447, head 4087d0ad87b2fc8425bc6729536147fbac3cfcf1: passed, including macOS app/shared packages, Android Play/third-party/Wear, iOS smoke and openclaw/ci-gate. The separate focused iOS upgrade execution gap below remains open; the smoke job does not run those suites.
  • Independent Codex autoreview: scoped-clean, no actionable P0/P1 findings.
  • SwiftFormat and git diff --check: passed for the changed files.
  • Production reduction: 108 lines (11 added, 119 removed); tests/support shrink by 17 lines including the July-shape fixtures and Android lifecycle synchronization. No minimum-size padding or unrelated restructuring.
  • Retained upgrade fixtures cover raw/v2 Keychain TLS pins and iOS manual/discovered lastConnection into the registry. Added small fixtures for the July discovery key and July push-registration Codable shape.
  • Direct AWS Crabbox run run_f128facaec3c2e7a5655761c80edc230: both cycle checks 0; node scripts/check-changed.mjs passed; focused Doctor state/legacy-config/automatic-migration suites 108 tests passed (65.40 seconds including runner). The complete remote payload passed in 370.14 seconds after source verification and frozen dependency installation. Platform-dependent macOS script cases correctly skipped on Linux; native SwiftLint remains CI-owned.
  • Migration-head CI run 36927409585, head 0ae72a146739f85dbdb412f9c15dca751d2233bd: macOS app suites 2,481 tests passed (2,468 main + 2 rendered + 11 named-profile); shared OpenClawKit 2,000 tests passed, including retained TLS migration fixtures; iOS smoke build/test-bundle compilation passed. The only later change is the Android test fixture below. Native suite costs: macOS 257.497s + 8.318s + 16.101s; shared package 40.264s.
  • Direct AWS Crabbox run run_5faf4dc902d08d7325a59815d23d7d7e validated the Android fixture: 21 repetitions × 3 cases passed, then the entire ChatComposerLayoutTest class passed. Warm repetitions took 17–18s wall (about 7.0–7.2s test time); full-class Gradle run took 49s. Both cycle checks again reported 0 and check-changed passed.
  • Negative control run_9239552ef62be8267bb820188f46e797: deliberately allowing input while Details was open failed the intended “Details must not permit hidden draft edits” assertion. The synchronized fixture still detects the behavioral regression.
  • Focused iOS simulator upgrade execution remains blocked by the available remote Xcode/CoreSimulator installation. The new decoder fixture compiled but has no runtime measurement yet. Compilation is not claimed as native execution; this proof gap remains open.
  • No SQLite migration was removed, so no new schema fixture is required by this diff. Existing July upgrade fixtures remain with their owners.

The local requested census records every investigated DELETE/KEEP decision, including current-writer and uncertain cases. Coverage inventories are retained with explicit unread-file gaps; this is a migration-focused pass, not a claim that all native UI/runtime source was fully reviewed.

Fixes found along the way

The first CI run failed only android-test-third-party: ChatComposerLayoutTest.detailsBlocksPhysicalTypingUntilClosed timed out waiting one second for the post-close send at line 2069. The preceding hidden-input, retained-editor, physical typing and IME assertions passed. Room work resumes outside Compose's dispatcher; observing request entry also precedes durable send settlement and draft clearing. The fixture now registers an idling resource for the actual finite send coroutine and composer-state settlement, then checks that completion was not cancellation. All original payload/count, hidden-input/no-send and empty-editor assertions remain. No timeout increase, retry, sleep, skip or production seam was added. Nearby main runs passed that job, so no inherited-failure merge exception is claimed.

Retire the old discovery preference, UserDefaults Gateway and TLS storage, and push registration scope defaults whose last shipped writers predate July 2026. Retain supported July Keychain, credential, and SQLite migrations.
@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@github-actions

github-actions Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: 4087d0ad87b2fc8425bc6729536147fbac3cfcf1
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • apps/ios/Sources/Push/PushRelayKeychainStore.swift: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 1, 2026, 9:07 PM ET / October 2, 2026, 01:07 UTC (Revision 4).

ClawSweeper review

What this changes

The branch removes pre-July Apple app storage imports, retains supported Keychain migrations, documents recovery, and synchronizes an Android chat test with completed sends.

Merge readiness

⛔ Blocked before merge - 2 items remain

Keep open: this maintainer-directed cleanup remains useful and has no concrete introduced correctness finding, but supported iOS upgrade compatibility still lacks execution evidence.

Priority: P3
Reviewed head: 4087d0ad87b2fc8425bc6729536147fbac3cfcf1

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and has no actionable correctness finding, but the independent iOS upgrade-compatibility gate remains unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored PR is exempt from the ordinary external-contributor proof gate. Independently, data-model compatibility remains insufficient: macOS/shared execution is reported, but iOS Gateway imports and the changed push Keychain decoder lack observed fresh-state and supported-upgrade results.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from the ordinary external-contributor proof gate. Independently, data-model compatibility remains insufficient: macOS/shared execution is reported, but iOS Gateway imports and the changed push Keychain decoder lack observed fresh-state and supported-upgrade results.
Evidence reviewed 11 items Pinned introduced change: Reviewed the merge-base-to-head delta, rather than endpoint drift. The supplied test merge is stale and was not used to claim removal of current-main behavior.
Accepted support cutoff: The captured maintainer-authored body records Peter's July-and-later migration direction and explicitly acknowledges that older-only preferences require reconnecting and establishing trust again. The supplied security guard verifies steipete's repository admin role. This accepted cutoff is context, not an unresolved request to retain older imports.
Supported Gateway import remains: The registry importer still reads Keychain lastConnection, normalizes manual or discovered entries, saves the registry before deleting the imported record, and retains existing-registry handling. Retained tests exercise both historical Keychain shapes.
Findings None None.
Security None None.

How this fits together

Native app storage restores Gateway selections, certificate trust, and push registrations when the apps start or reconnect. These stored records feed connection setup and push registration.

flowchart TD
  A[Stored app preferences] --> B[Gateway settings importer]
  C[Keychain certificate pins] --> D[TLS trust store]
  E[Stored push registration] --> F[Scoped registration reader]
  B --> G[Gateway connection]
  D --> G
  F --> H[Reuse or refresh push registration]
Loading

Before merge

  • Resolve merge risk (P1) - Fresh iOS state and supported July Keychain Gateway and push records have not been executed through their production storage owners; compilation and decoder-only coverage do not establish upgrade compatibility.
  • Complete next step (P2) - Record fresh-state and supported July iOS Gateway and push-record execution through the production Keychain storage owners before merge.
Agent review details

Security

None.

PR surface

Tests +22, Docs +1, Other -147. Total -124 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 25 3 +22
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 11 53 200 -147
Total 13 79 203 -124

Review metrics

Metric Value Why it matters
Persisted push scope 3 previously defaulted fields now required The July writer supplies all three fields, but storage-boundary execution remains necessary to verify supported upgrades.

Merge-risk options

Maintainer options:

  1. Complete supported iOS upgrade evidence (recommended)
    Use an isolated working Apple environment to record fresh-state behavior and July Gateway and push-record readback through the production Keychain owners.

Technical review

Best possible solution:

Retain the approved July cutoff and canonical storage owners, with observed fresh-state and supported-upgrade results before landing.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this PR retires obsolete imports under an established support cutoff; source review found no concrete introduced bug.

Is this the best way to solve the issue?

Yes, the removal is narrow and retains the supported storage paths; its upgrade-safety claim still needs iOS storage-owner execution evidence.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 7b5ff8c0b7bb.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is a bounded, maintainer-directed retirement of obsolete migration paths rather than an urgent user-facing regression.
  • merge-risk: 🚨 compatibility: Older-only preferences intentionally stop importing under the accepted cutoff, while supported iOS upgrade execution remains unverified.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; 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: The maintainer-authored PR is exempt from the ordinary external-contributor proof gate. Independently, data-model compatibility remains insufficient: macOS/shared execution is reported, but iOS Gateway imports and the changed push Keychain decoder lack observed fresh-state and supported-upgrade results.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the merge-base-to-head delta, rather than endpoint drift. The supplied test merge is stale and was not used to claim removal of current-main behavior. (4087d0ad87b2)
  • Accepted support cutoff: The captured maintainer-authored body records Peter's July-and-later migration direction and explicitly acknowledges that older-only preferences require reconnecting and establishing trust again. The supplied security guard verifies steipete's repository admin role. This accepted cutoff is context, not an unresolved request to retain older imports. (apps/ios/README.md:14, 4087d0ad87b2)
  • Supported Gateway import remains: The registry importer still reads Keychain lastConnection, normalizes manual or discovered entries, saves the registry before deleting the imported record, and retains existing-registry handling. Retained tests exercise both historical Keychain shapes. (apps/ios/Sources/Gateway/GatewaySettingsStore.swift:583, 4087d0ad87b2)
  • Supported TLS imports remain: Raw and v2 Keychain fingerprints still migrate through atomic v3 creation; only the older UserDefaults fallback and cleanup disappear. Certificate mismatch, authority mismatch, storage failure, and first-use trust checks remain. (apps/shared/OpenClawKit/Sources/OpenClawKit/GatewayTLSPinning.swift:433, 4087d0ad87b2)
  • July push writer contract: The published July tag writes apnsEnvironment, relayProfile, and proofPolicy from nonoptional registration fields into the stored record. Direct decoding therefore preserves the supported writer's scope fields; nullable diagnostics remain optional. (apps/ios/Sources/Push/PushRelayKeychainStore.swift:72, 4eb1d333cfec)
  • July publication verified: GitHub reports v2026.7.1-beta.1 published on July 2, 2026 at 07:25:49 UTC; a separate commit lookup resolved the tag to the cited SHA. (4eb1d333cfec)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach execution results for fresh state and supported July manual/discovered Gateway and push records through their production storage owners.

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 (3 earlier review cycles)
  • reviewed 2026-10-01T21:20:26.947Z sha 0ae72a1 :: blocked before merge. :: none
  • reviewed 2026-10-01T23:14:31.474Z sha 0ae72a1 :: blocked before merge. :: none
  • reviewed 2026-10-02T00:33:12.625Z sha 4087d0a :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: android App: android label Oct 2, 2026
@steipete
steipete merged commit ef54f67 into main Oct 2, 2026
81 of 82 checks passed
@steipete
steipete deleted the deslop/l288-migrations-apps-20261001 branch October 2, 2026 02:06
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 2, 2026
* refactor(apps): drop pre-July-2026 app migrations

Retire the old discovery preference, UserDefaults Gateway and TLS storage, and push registration scope defaults whose last shipped writers predate July 2026. Retain supported July Keychain, credential, and SQLite migrations.

* test(android): await composer send settlement
steipete added a commit that referenced this pull request Oct 20, 2026
The short-viewport test waited one second for chat.send request entry even
though Room and send admission resume outside Compose's dispatcher. Reuse
the finite send-job/composer-state idling resource from the Details input
tests, retaining exact message/count, same-frame IME, selection, layout,
and cleared-editor assertions. Also require normal send completion.

This follows the synchronization fix documented in #163002. No production
code or timeout setting changes.

Validation: ChatComposerLayoutTest, 113 passed with no skips; Kotlin
compilation; app ktlintCheck; P2 autoreview clean.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
The short-viewport test waited one second for chat.send request entry even
though Room and send admission resume outside Compose's dispatcher. Reuse
the finite send-job/composer-state idling resource from the Details input
tests, retaining exact message/count, same-frame IME, selection, layout,
and cleared-editor assertions. Also require normal send completion.

This follows the synchronization fix documented in openclaw#163002. No production
code or timeout setting changes.

Validation: ChatComposerLayoutTest, 113 passed with no skips; Kotlin
compilation; app ktlintCheck; P2 autoreview clean.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios app: macos App: macos merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: M 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