sync(shared+ios): cherry-pick v2026.3.22 to Cat A cluster A3 — 7 files (#2584)#2597
Merged
alexey-pelykh merged 1 commit intomainfrom Apr 26, 2026
Merged
sync(shared+ios): cherry-pick v2026.3.22 to Cat A cluster A3 — 7 files (#2584)#2597alexey-pelykh merged 1 commit intomainfrom
alexey-pelykh merged 1 commit intomainfrom
Conversation
#2584) Process Cat A cluster A3 of the v2026.3.22 upstream sync backlog: 10 fork files under apps/shared/RemoteClawKit/ and apps/ios/Tests/. Mirrors merged Wave 1 PR #2595 (A1 Android) and Wave 2 PR #2596 (A2 macOS). Per-file dispositions: - 7 CHERRY-PICK applied: ChatMarkdownPreprocessor.swift, ChatMessageViews.swift, ChatView.swift, Capabilities.swift, GatewayTLSPinning.swift, AssistantTextParserTests.swift, ChatMarkdownPreprocessorTests.swift - 2 NOOP (already-synced after rebrand transform): ChatComposer.swift, GatewayNodeSession.swift - 1 ALREADY-SYNCED reclassification: apps/ios/Tests/TalkConfigParsingTests.swift — cluster TSV's basename-search heuristic false-positive mapped fork's iOS path to upstream's shared-Kit variant; fork's existing content was already byte- identical to upstream apps/ios/Tests/Logic/TalkConfigParsingTests.swift + rebrand (and that upstream file is unchanged v2026.3.8 → v2026.3.22). No fork code change needed for this row. Discovered by polish. 0 EXCLUDE-DIVERGENT classifications (issue body anticipated 5–10%). Net-new helper imports (2 files, transitive deps for cluster cherry-picks): - AssistantTextParser.swift refresh — strict superset of fork's prior version, adds includeThinking parameter and visibleSegments helper. Fork's prior version had only a single rebrand: commit at #124. Required by the new ChatView/ChatMessageViews/AssistantTextParserTests cherry-picks. - GenericPasswordKeychainStore.swift net-new import — pure utility, no fork- divergent specialization. Required by the new GatewayTLSPinning cherry-pick (UserDefaults → Keychain migration). Mirrors Wave 2's 16 helper imports (15 net-new + PairingAlertSupport refresh). Validation: - pnpm format:check ✓ - pnpm tsgo ✓ - pnpm lint ✓ - pnpm lint:tmp:no-random-messaging ✓ - pnpm lint:no-remoteclaw-ai ✓ - pnpm lint:ui:no-css-class-drift ✓ - bash scripts/ci/check-rebrand-leakage.sh --staged ✓ - node scripts/check-no-zombie-imports.mjs ✓ - node scripts/check-stub-debt.mjs ✓ (126 == baseline) - node scripts/check-throwing-stub-callers.mjs ✓ (0 stubs) - node scripts/check-obsolescence-audit.mjs ✓ (49 == baseline) Bulk verification: re-running cherry-pick script post-execution → WROTE=0 NOOP=9 → A3 residual = 0. Note: Fork CI does not build Swift targets (per CLAUDE.md). Local Xcode/SPM build NOT verified — same caveat as merged Wave 1 (#2595) and Wave 2 (#2596). Polish review: workflow-polish ran in fresh subprocess context (session cdca14ed-c46d-4540-b78d-77b5b53a46d3). Initial verdict 🟡 STALLED with finding F1 (TalkConfigParsingTests basename misclassification). After applying F1 Option A (revert + reclassify ALREADY-SYNCED), effectively 🟢 CLEAN with no remaining findings. Closes #2584. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Closed
5 tasks
This was referenced Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Process Cat A cluster A3 of the v2026.3.22 upstream sync backlog: 10 fork files under
apps/shared/RemoteClawKit/andapps/ios/Tests/. Mirrors the merged Wave 1 PR #2595 (A1 Android) and Wave 2 PR #2596 (A2 macOS).git diffshows real content changesChatComposer.swift,GatewayNodeSession.swiftapps/ios/Tests/TalkConfigParsingTests.swift— see "Reclassification"hq/upstream/disposition.tsv)Closes #2584.
Reclassification: ALREADY-SYNCED
The cluster TSV mapped fork's
apps/ios/Tests/TalkConfigParsingTests.swift(via basename search) to upstream'sapps/shared/OpenClawKit/Tests/OpenClawKitTests/TalkConfigParsingTests.swift(the shared-Kit variant). Polish detected this is a false-positive:apps/ios/Tests/Logic/TalkConfigParsingTests.swift(the iOS-app variant) + rebrand transforms.Resolution: revert the cherry-pick attempt at
apps/ios/Tests/TalkConfigParsingTests.swift, reclassify the row as ALREADY-SYNCED. The shared-Kit variant of these tests is already present in fork's orphanapps/shared/RemoteClawKit/Tests/OpenClawKitTests/TalkConfigParsingTests.swift(at v2026.3.22 + rebrand). Issue #2584's Notes flagged this exact risk; this PR resolves it.The reclassification rate (1 of 10 = 10%) matches the 5–10% range the issue body anticipated. Audit-tooling enhancement to detect cross-variant basename collisions is tracked alongside the existing Cat A0 audit-improvement note.
Net-new helper imports
These are transitive dependencies for cluster cherry-picks (each one's compile depends on a symbol newly referenced by an upstream change):
apps/shared/RemoteClawKit/Sources/RemoteClawChatUI/AssistantTextParser.swiftChatView.swift,ChatMessageViews.swift,AssistantTextParserTests.swiftincludeThinking:parameter,visibleSegments(...),hasVisibleContent(in:includeThinking:)). Fork's prior version was rebrand-only (singlerebrand:commit at #124).apps/shared/RemoteClawKit/Sources/RemoteClawKit/GenericPasswordKeychainStore.swiftGatewayTLSPinning.swift(UserDefaults → Keychain migration)Mirrors Wave 2's PairingAlertSupport refresh + 15 helper-file imports pattern. Both helpers are byte-equivalent to upstream (no rebrand tokens needed in their bodies).
Approach
git show v2026.3.22:{path}.hq/upstream/rebrand-tokens.tsv:OpenClaw → RemoteClaw,openclaw → remoteclaw,OPENCLAW → REMOTECLAW,OPENCLAW_ → REMOTECLAW_ai.openclaw → org.remoteclaw,com.openclaw → org.remoteclawCherry-pick file list
apps/shared/RemoteClawKit/Sources/RemoteClawChatUI/ChatMarkdownPreprocessor.swiftapps/shared/RemoteClawKit/Sources/RemoteClawChatUI/ChatMessageViews.swiftshowsAssistantTraceplumbing)apps/shared/RemoteClawKit/Sources/RemoteClawChatUI/ChatView.swiftshowsAssistantTraceparameter)apps/shared/RemoteClawKit/Sources/RemoteClawKit/Capabilities.swiftcase browser)apps/shared/RemoteClawKit/Sources/RemoteClawKit/GatewayTLSPinning.swiftapps/shared/RemoteClawKit/Tests/RemoteClawKitTests/AssistantTextParserTests.swiftvisibleSegments)apps/shared/RemoteClawKit/Tests/RemoteClawKitTests/ChatMarkdownPreprocessorTests.swiftapps/shared/RemoteClawKit/Sources/RemoteClawChatUI/ChatComposer.swiftapps/shared/RemoteClawKit/Sources/RemoteClawKit/GatewayNodeSession.swiftapps/ios/Tests/TalkConfigParsingTests.swiftValidation
pnpm format:check(oxfmt)pnpm tsgo(TypeScript)pnpm lint(oxlint)pnpm lint:tmp:no-random-messagingpnpm lint:no-remoteclaw-aipnpm lint:ui:no-css-class-driftbash scripts/ci/check-rebrand-leakage.sh --stagednode scripts/check-no-zombie-imports.mjsnode scripts/check-stub-debt.mjsnode scripts/check-throwing-stub-callers.mjsnode scripts/check-obsolescence-audit.mjsBulk verification: re-running cherry-pick script post-execution →
WROTE=0 NOOP=9 MISS=0→ A3 residual = 0.Note: Fork CI does not build Swift targets (per
CLAUDE.md). Local Xcode/SPM build NOT verified — same caveat as merged Wave 1 PR #2595 and Wave 2 PR #2596.Polish review
workflow-polishran in fresh subprocess context (sessioncdca14ed-c46d-4540-b78d-77b5b53a46d3). Initial verdict 🟡 STALLED with 1 finding:apps/ios/Tests/TalkConfigParsingTests.swift: Cluster TSV's basename-search heuristic false-positive mapped fork's iOS path to upstream's shared-Kit variant. Resolution: Option A (revert + reclassify ALREADY-SYNCED). Applied.Other 9 files: all cherry-picks byte-identical to upstream + rebrand. AssistantTextParser refresh and GenericPasswordKeychainStore import correctly placed and consumed. No leakage, no orphans, no naming collisions.
Post-F1 resolution: effectively 🟢 CLEAN.
Test plan
pnpm checkpasses locally🤖 Generated with Claude Code