Skip to content

fix(android): stop offering obsolete ClawHub acknowledgement retries - #132016

Merged
steipete merged 2 commits into
mainfrom
steipete/android-clawhub-acknowledgement-cleanup-f55438
Aug 28, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/android-clawhub-acknowledgement-cleanup-f55438

Conversation

@steipete

@steipete steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

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 closed skills.install ClawHub request schema rejects.

Ordinary Android installs already omitted that flag and were schema-valid. Current Gateways do not emit the retired clawhub_risk_acknowledgement_required code, 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.warning and rejected error.details.warning remain 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 clawHubInstallParams source with the acknowledgement argument false and true, then checked its emitted JSON using the current Gateway's validateSkillsInstallParams TypeBox validator:

  • Ordinary: {"source":"clawhub","slug":"@alice/alpha","version":"1.2.3","timeoutMs":120000} — accepted.
  • Retired retry: the same payload plus "acknowledgeClawHubRisk":true — rejected for the unexpected property.
  • After cleanup: the native exact-version request and {"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:changed gate with repository-pinned tools; native state-schema guard; and git 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.

node scripts/run-vitest.mjs src/gateway/server-methods/skills.clawhub.test.ts
pnpm native:i18n:verify
node scripts/check-native-state-schema-version.mjs
git diff --check

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:ktlintCheck passed in 44 seconds with 17 actionable tasks. With JAVA_HOME pointing to Java 21 and ANDROID_HOME to the existing SDK, the command was:

apps/android/gradlew -p apps/android \
  "-Dorg.gradle.java.installations.paths=$JAVA_HOME" \
  --no-daemon --console=plain :app:ktlintCheck

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

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).
@clawsweeper

clawsweeper Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added app: android App: android size: M maintainer Maintainer-authored PR labels Aug 28, 2026
@steipete
steipete marked this pull request as ready for review August 28, 2026 18:29
@steipete steipete self-assigned this Aug 28, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 28, 2026
@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 28, 2026, 3:47 PM ET / 19:47 UTC.

ClawSweeper review

What this changes

Removes Android’s obsolete ClawHub acknowledgement-retry UI, request field, state, and related copy while keeping current Gateway warnings visible.

Regression provenance

Possible regression — probable (reviewed change; known regression link). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: this PR removes a working legacy-client recovery path without establishing that all compatible Gateways have adopted the newer install contract.

Priority: P1
Reviewed head: c51e7f614379ab2176a2005a7dd2480ba85fac44

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The cleanup and modern-path coverage are focused, but the introduced legacy-Gateway regression blocks a higher rating.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this maintainer-authored PR; exact-head CI and focused tests exercise the cleaned modern request and warning rendering, but they do not cover the legacy-Gateway compatibility case identified above.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this maintainer-authored PR; exact-head CI and focused tests exercise the cleaned modern request and warning rendering, but they do not cover the legacy-Gateway compatibility case identified above.
Evidence reviewed 6 items Current Gateway contract: The current ClawHub variant is a closed request object containing source, slug, optional version/force, and timeout; it has no acknowledgement field. The current-main comparison reported no changes to this protocol or handler surface after the PR base.
Introduced compatibility trigger: This PR stops decoding the legacy trust code and version, so a legacy Gateway rejection can no longer reach the former exact-version acknowledgement path.
No request-shape compatibility gate: Android considers ClawHub management available from the three advertised method names; it does not negotiate an install-schema version or capability before the UI offers installation.
Findings 1 actionable finding [P1] Preserve the legacy acknowledgement path for older Gateways
Security None None.

How this fits together

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

Before merge

  • Preserve the legacy acknowledgement path for older Gateways (P1) - Late review discovery: this is unchanged from the earlier review of the same head. Android gates this UI only on the three advertised Skills methods, not on the install request shape. Removing the trust-code decode here means an older Gateway that returns the legacy acknowledgement-required response now ends at a blocked notice instead of the prior exact-version retry. Retain that narrow legacy path or add a capability/version gate that requires the Gateway update, and test both responses.
  • Resolve merge risk (P1) - An Android app updated with this PR can still connect to an older Gateway that advertises the required methods but returns the legacy acknowledgement-required response; the user then sees a blocked notice with no route to complete an install that previously succeeded after exact-version acknowledgement.
  • Complete next step (P2) - A concrete P1 compatibility repair is identified, but this maintainer-labeled PR needs its owner to choose the retained legacy support policy before changing the intended cleanup.

Findings

  • [P1] Preserve the legacy acknowledgement path for older Gateways — apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewaySession.kt:1680
Agent review details

Security

None.

PR surface

Other +34. Total +34 across 9 files.

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 9 223 189 +34
Total 9 223 189 +34

Review metrics

Metric Value Why it matters
Production versus test delta production +21/-111; generated localization inventory +2/-4; tests +200/-74 The runtime cleanup is net-negative, while the added test volume still omits the older-Gateway upgrade path.

Root-cause cluster

Relationship: canonical
Canonical: #132016
Summary: This PR is the remaining Android-side cleanup for the merged ClawHub security-audit contract; the introduced patch leaves a distinct older-Gateway compatibility regression.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Preserve legacy Gateway compatibility (recommended)
    Keep the exact-version acknowledgement retry only for the legacy rejection code and add regression coverage for both legacy and current Gateway responses.
  2. Intentionally require Gateway upgrade
    Accept that upgrading Android removes installs requiring the legacy acknowledgement response and document the supported Gateway floor before merging.

Technical review

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

  • [P1] Preserve the legacy acknowledgement path for older Gateways — apps/android/app/src/main/java/ai/openclaw/app/gateway/GatewaySession.kt:1680
    Late review discovery: this is unchanged from the earlier review of the same head. Android gates this UI only on the three advertised Skills methods, not on the install request shape. Removing the trust-code decode here means an older Gateway that returns the legacy acknowledgement-required response now ends at a blocked notice instead of the prior exact-version retry. Retain that narrow legacy path or add a capability/version gate that requires the Gateway update, and test both responses.
    Confidence: 0.94
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 2133a924eef0.

Labels

Label changes:

  • add P1: The introduced behavior can block an existing Android-to-Gateway skill-install workflow during an app-only upgrade.
  • add merge-risk: 🚨 compatibility: The patch removes a previously available client request and recovery path without a Gateway contract-version gate.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Not applicable to this maintainer-authored PR; exact-head CI and focused tests exercise the cleaned modern request and warning rendering, but they do not cover the legacy-Gateway compatibility case identified above.
  • remove P2: Current review triage priority is P1, so this older priority label is no longer current.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P1: The introduced behavior can block an existing Android-to-Gateway skill-install workflow during an app-only upgrade.
  • merge-risk: 🚨 compatibility: The patch removes a previously available client request and recovery path without a Gateway contract-version gate.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Not applicable to this maintainer-authored PR; exact-head CI and focused tests exercise the cleaned modern request and warning rendering, but they do not cover the legacy-Gateway compatibility case identified above.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the proposed Android cleanup and is the recorded author of the current Gateway install-handler lines sampled in blame. (role: recent Android and Gateway contributor; confidence: high; commits: c51e7f614379, d22a5b52b47d, 82aa6a98ca11; files: apps/android/app/src/main/java/ai/openclaw/app/SkillManagement.kt, apps/android/app/src/main/java/ai/openclaw/app/NodeRuntime.kt, src/gateway/server-methods/skills.ts)
  • Patrick-Erichsen: Authored the merged related security-audit change that removed the server-side acknowledgement contract and is directly referenced by this PR. (role: security-audit contract author; confidence: medium; commits: 7b7858d9552f; files: packages/gateway-protocol/src/schema/agents-models-skills.ts, src/gateway/server-methods/skills.ts)

Rank-up moves

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

  • Retain the exact-version acknowledgement handling for the explicit legacy response, or add a reliable Gateway capability/version gate that provides a user-visible upgrade path.
  • Add Android regression coverage for both the legacy acknowledgement-required response and the current closed-schema response.

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 (2 earlier review cycles)
  • reviewed 2026-08-28T18:39:38.720Z sha d22a5b5 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-28T19:14:34.811Z sha c51e7f6 :: needs maintainer review before merge. :: none

@steipete

steipete commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Maintainer review complete for c51e7f614379ab2176a2005a7dd2480ba85fac44; ready for the repository-native prepare/merge checks.

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, android-ktlint, native localization, security checks, and the required openclaw/ci-gate. The earlier run found Kotlin formatting issues; the follow-up changes are whitespace-only. Local :app:ktlintCheck also passes with the verified Java 21 toolchain.

Additional local commands completed:

node scripts/run-vitest.mjs src/gateway/server-methods/skills.clawhub.test.ts
pnpm native:i18n:verify
node scripts/check-native-state-schema-version.mjs
git diff --check

The 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 decision

The 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 0790d9f593ad30c940ed93b5872a8cf6d6f3cf8c; its Android tree has no SkillManagement.kt, installClawHubSkill, or acknowledgement path. Its Gateway does retain the older field, which is why this interoperability case must be described rather than denied.

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.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. 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 P2 Normal backlog priority with limited blast radius. 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 28, 2026
@steipete
steipete merged commit c417dcf into main Aug 28, 2026
180 checks passed
@steipete
steipete deleted the steipete/android-clawhub-acknowledgement-cleanup-f55438 branch August 28, 2026 20:14
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant