Repository navigation
fix(android): stop offering obsolete ClawHub acknowledgement retries - #132016
Conversation
Remove the obsolete acknowledgement promise, request flag, and retry state from Android Skills settings. Preserve the exact Gateway source and reviewed version, install-only version omission, and authoritative warning and error presentation. Related #131233 (ClawHub security-audit install contract).
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 28, 2026, 3:47 PM ET / 19:47 UTC. ClawSweeper reviewWhat this changesRemoves Android’s obsolete ClawHub acknowledgement-retry UI, request field, state, and related copy while keeping current Gateway warnings visible. Regression provenancePossible regression — probable (reviewed change; known regression link). No predecessor PR is attributed. Merge readinessKeep open: this PR removes a working legacy-client recovery path without establishing that all compatible Gateways have adopted the newer install contract. Priority: P1 Review scores
Verification
How this fits togetherAndroid Skills settings uses Gateway-advertised methods to search, review, and install ClawHub skills. It builds an install request from the reviewed source/version and turns Gateway results into an Android notice. flowchart TD
A[Gateway advertised methods] --> B[Android Skills settings]
B --> C[Android install request]
C --> D[Gateway install schema]
D --> E[Install result or rejection]
E --> F[Android result notice]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceOther +34. Total +34 across 9 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the exact-version acknowledgement flow for the explicit legacy Gateway response until Android can reliably negotiate the post-audit install contract, then cover both legacy and current Gateway paths. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: connect Android to a Gateway that advertises the three Skills methods and returns the legacy acknowledgement-required error for a reviewed release; this head renders it as permanently blocked. Is this the best way to solve the issue? No. The cleanup is correct for current Gateways, but unconditional removal is not the best upgrade-safe fix while Android lacks a request-shape capability gate and sibling clients retain legacy handling. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2133a924eef0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
|
Maintainer review complete for The root cause is an Android client contract left behind after #131233: the retired retry could emit a field excluded by the closed Gateway schema, and the ordinary review dialog still promised that retry. Ordinary installs already omitted the flag. Removing the request/state/UI path at the Android owners is the canonical fix; restoring a server flag or adding compatibility would preserve the obsolete contract rather than repair it. Exact source references, detail-reviewed versions, install-only version omission, route/generation/operation/admin guards, timeouts and readback remain intact. Both successful audit warnings and rejected error-detail warnings remain readable. Server production code and the separate operator install policy are unchanged. Proof: CI run 33202426523 is successful on this exact head, including Play/ThirdParty/Wear tests, phone and Wear debug builds/lint, Additional local commands completed: node scripts/run-vitest.mjs src/gateway/server-methods/skills.clawhub.test.tspnpm native:i18n:verifynode scripts/check-native-state-schema-version.mjsgit diff --checkThe Gateway suite passed 18 tests. The original and cleaned-up Kotlin-emitted requests were independently checked against the actual Gateway validator without invoking an install; 16 isolated Kotlin helper/error tests also passed. The exact nine-path changed gate passed with pinned tools. Fresh independent review of the complete formatted patch reported no actionable P0 findings. Late compatibility review decisionThe late ClawSweeper review raises the older-Gateway acknowledgement scenario. That server scenario is real, but the claimed stable Android upgrade obligation is not established: the Android flow was introduced by 84fb7a664d6b / #101864, whose reachable version tags are prereleases only. The live latest stable release is v2026.7.1-2, commit Maintainer decision: retain the explicitly requested current-contract cleanup, not legacy acknowledgement compatibility. For this updated Android ClawHub workflow, use a Gateway build containing the #131233 audit contract. An older Gateway that requests the retired acknowledgement must be updated to complete that case; the error/warning remains visible. This is not a claim that ordinary installs against older Gateways all fail, and no stable version number is invented for the unreleased contract. Rank-up dispositions: the exact-head Android matrix is complete. Retaining the legacy retry or adding a capability/version compatibility path is intentionally declined under the requested retirement and the repository's stable-tag compatibility policy. Dual-contract regression coverage is likewise not added: the retained tests protect the current closed request, exact source/version, guards, and visible error/warning behavior rather than preserving the retired retry. No server field, fallback, or new capability/configuration surface is introduced. Remaining proof boundary: no real-device screenshots or live skill install is claimed. No Android device was connected, no emulator image was installed, and the requested operator/live-install restrictions were preserved. The earlier full local Android build was stopped for disk exhaustion; hosted CI supplies the Android build and test proof, not that interrupted run. Production: +21/-111 (net -90). Tests: +200/-74 (net +126). Android-only source inventory: +2/-4. No server flag, fallback, configuration or schema surface was added. |
|
Merged via squash.
|
…penclaw#132016) * fix(android): remove obsolete ClawHub acknowledgement retry Remove the obsolete acknowledgement promise, request flag, and retry state from Android Skills settings. Preserve the exact Gateway source and reviewed version, install-only version omission, and authoritative warning and error presentation. Related openclaw#131233 (ClawHub security-audit install contract). * style(android): satisfy ClawHub Kotlin formatting
Related: #131233 (ClawHub security-audit install contract)
What Problem This Solves
Resolves a problem where Android Skills settings still promised an acknowledgement-and-retry flow that the current Gateway no longer supports. The ordinary review dialog advertised that obsolete behavior, and the retained retry could emit
acknowledgeClawHubRisk, which the closedskills.installClawHub request schema rejects.Ordinary Android installs already omitted that flag and were schema-valid. Current Gateways do not emit the retired
clawhub_risk_acknowledgement_requiredcode, so this is not a claim that all Android installs fail.Why This Change Was Made
Remove the obsolete Android acknowledgement path at its producer and UI owners: request flag, state, forwarding, acknowledgement-only error metadata, retry button, and misleading review copy. Keep one install path using the exact Gateway-provided source reference and reviewed version. Do not restore a server flag, add compatibility retries, or change the separate operator install policy.
Connection/method/admin admission, route and generation checks, serialized operation claims, timeouts, exact-source/version readback, and unknown-outcome handling remain unchanged. Successful
result.warningand rejectederror.details.warningremain available in the existing expandable notice, alongside the authoritative Gateway message.The source-localization inventory changes only Android entries. macOS, iOS, shared Swift, server/protocol production, configuration, dependencies, and schemas are not changed. AI-assisted implementation and review; maintainer-requested contract cleanup.
User Impact
Android no longer offers a retired acknowledgement retry or promises one during release review. Review findings remain visible in the install result; blocked releases and unavailable security verification remain failures. Publisher/source identity and reviewed-version pinning are preserved, including version omission for install-only external sources.
For this updated ClawHub workflow, use a Gateway build containing the #131233 security-audit contract. If an older Gateway returns the retired acknowledgement-required response, update that Gateway; Android preserves its error/warning but does not offer the retired retry. Ordinary installs against older Gateways are not categorically disabled.
Evidence
No-install contract reproduction
Executed the exact original Kotlin
clawHubInstallParamssource with the acknowledgement argument false and true, then checked its emitted JSON using the current Gateway'svalidateSkillsInstallParamsTypeBox validator:{"source":"clawhub","slug":"@alice/alpha","version":"1.2.3","timeoutMs":120000}— accepted."acknowledgeClawHubRisk":true— rejected for the unexpected property.{"source":"clawhub","slug":"skills-sh:openai/skills/pdf","timeoutMs":120000}— both accepted.No RPC, skill download, or installation was invoked by this reproduction. An isolated pre-fix Kotlin regression also demonstrated the obsolete helper replacing the Gateway's error with its retired version/retry message; the current helper preserves the message and trims/displays the warning.
Validation
Verified locally: 16 source-extracted Kotlin helper/error tests; 18 Gateway ClawHub handler tests; native localization verification; the exact nine-path
check:changedgate with repository-pinned tools; native state-schema guard; andgit diff --check. Fresh full-patch independent Codex review, including the formatting corrections, completed clean with no accepted/actionable findings. The source-extracted Kotlin execution is not an Android/Compose or live transport test.The initial local Android Gradle unit/build attempt used verified Temurin Java 21 and the pinned wrapper but was stopped before Kotlin compilation or JUnit when host free disk fell below 600 MiB. No local Android unit-test or APK-build pass is claimed. After disk recovery and the two formatting fixes, full local
:app:ktlintCheckpassed in 44 seconds with 17 actionable tasks. WithJAVA_HOMEpointing to Java 21 andANDROID_HOMEto the existing SDK, the command was:apps/android/gradlew -p apps/android \ "-Dorg.gradle.java.installations.paths=$JAVA_HOME" \ --no-daemon --console=plain :app:ktlintCheckExact-head hosted CI run 33202426523 completed successfully for
c51e7f614379ab2176a2005a7dd2480ba85fac44. All six Android jobs passed:Native localization and the required openclaw/ci-gate also passed on that exact head.
History: CI run 33199565059 failed Kotlin lint on the previous head. The corrective commit adds the missing test blank line and wraps the warning safe-call chain identified by the local lint retry. Both edits are whitespace-only with unchanged strings and behavior; the new-head results above supersede that failure.
The late ClawSweeper compatibility objection has been adjudicated in the maintainer review. The older-Gateway scenario is real, but the removed Android flow is prerelease-only under the repository's stable-tag policy: its introducing commit 84fb7a664d6b is not reachable from a stable version tag. The live latest stable release v2026.7.1-2, commit
0790d9f593ad30c940ed93b5872a8cf6d6f3cf8c, has no Android ClawHub install/acknowledgement flow, although its Gateway retains the older field.Maintainer decision: keep the explicitly requested current-contract retirement, with the Gateway floor documented above. The rank-up move to complete the exact-head Android matrix is applied. The later moves to retain/gate legacy acknowledgement compatibility and add dual-contract coverage are intentionally declined; the current closed request, exact identity/version, guards, and visible warning/error behavior remain covered. No compatibility implementation or new capability/version/configuration surface is authorized or added.
Visual and live proof boundary
No Android device is connected, and the local Android SDK has no emulator system image. No existing operator device, Gateway, or unrelated live rig was changed. The requested scope excludes live skill installs, so no before/after real-device capture or live installation is claimed. The exact-head hosted Android tests include the runtime and Compose regression coverage for preserved warning display; those are not real-device screenshots or live installation proof. Screenshots remain an explicit proof gap.
Scope and size
Production: +21/-111 (net -90). Tests: +200/-74 (net +126). Android-only source inventory: +2/-4. Server flags and compatibility paths were not added.