Skip to content

fix(android): stop building with a stale version pin - #200562

Merged
RomneyDa merged 6 commits into
mainfrom
openclaw/android-runtime-version-51e904a
Nov 18, 2026
Merged

RomneyDa merged 6 commits into
mainfrom
openclaw/android-runtime-version-51e904a

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes Android source builds staying on the separately pinned 2026.8.2 version as the Gateway version advances.

User Impact

Android local builds and ordinary archives now derive their version from the root package at build time, without a manual pin or generated version-properties file. Play releases still use their exact, source-bound saved plans and live store inventory. Normal Gateway releases continue to skip APK publication.

The obsolete android:version:pin, android:version:sync, android:version:check, and release-preparation --android controls are removed; pnpm android:version displays the calculated defaults.

Why This Change Was Made

One runtime resolver supplies the CLI, phone/Wear Gradle defaults, and local archive flow. This removes the checked-in version pin and its synchronization machinery rather than retaining two version owners. Play code allocation uses uploaded/recorded codes and the existing legacy cutover, not a stale APK pin floor.

The optional GitHub APK workflow and its qualification, approval, signing, and verification remain intact. Missing legacy metadata means no automatic Android selection; existing tagged-source recovery retains the old eligibility path. No new publication control is introduced.

Evidence

  • The no-pin CLI reproduction fails on the base with a missing apps/android/version.json; with this change it derives the requested root-package version without writing files.
  • Original focused Android/release suites passed (108 tests), followed by workflow, publication-admission, and candidate-checklist suites (831 tests), including missing-pin boundaries and retained legacy eligibility.
  • After integrating main d48dfacadbce6549961a4dbcca8eb098762163de, all 974 tests across 11 affected files passed. The conflict repair preserves release-note/build overlap, source-bound Play plans/live inventory, reorganized docs, current-source APK skip, and legacy recovery.
  • Script and tooling-test typechecks, targeted lint/format, workflow validation, Ruby syntax, docs links/MDX/format, and whitespace checks passed. Workflow validation used unset rather than empty token environment variables.
  • Runtime version CLI and all-three-artifact archive dry run passed without writing version metadata or invoking Gradle.
  • Fresh independent read-only reviews of the original change and conflict repair found no actionable P0–P2 issues.

CI repair and exact-head verification (November 18, 2026)

CI run 44071269219 on 3aa4a76367ab09305fe198f357e7617e79c3170b exposed Gradle 9.8.2 deprecations in the new extra(...) and by extra provider wiring. The three-file repair uses extra.set(...) and indexed reads instead. Lazy defaults and explicit release overrides are unchanged; org.gradle.warning.mode=fail stays enabled. No new state, compatibility path, or publication control was added.

  • Both focused android-version.test.ts tests and git diff --check passed.
  • Fresh independent read-only review found no actionable P0–P2 issues; reviewed diff SHA-256: c182c5877fd444e02881fbddb8ce2a145a771290f95e1890ce6a7207493ddc3e.
  • Published head fb25546a6b199a1142fcfcd3a217d919f1ecd8fb exactly matches the reviewed tree c5ae88955451cddf1680960f30ab29b5c705944c.
  • All six previously failing Android lanes passed in exact-head CI run 44270147485: Wear tests, third-party tests, Play tests, ktlint, and Access-native tests on both 4 KB and 16 KB page-size configurations. This supplies the native Gradle/build validation missing locally.
  • Local host has no Java/Android SDK. The attempted focused Blacksmith Testbox tbx_01m7pxcezspk6atnqjd4d2794f (run 44269915554) entered queued capacity and was stopped; cleanup is confirmed. That attempt supplies no Gradle pass; native evidence comes from the successful PR CI lanes above.

Remaining CI failures — Discord inherited; Telegram attribution unresolved

The Android repair is complete, but overall run 44270147485 remains failed because of these test jobs and the aggregate gate:

  • checks-node-changed-4, job 134685615164: channel-progress-presentation.e2e.test.ts → retains ambiguous Discord announcement custody after an unidentified send → timed out waiting for ambiguous announcement settlement. Confirmed inherited: the exact test reproduced this same failure on base d48dfacadbce6549961a4dbcca8eb098762163de through the real isolated-Gateway harness; exit 1, 1 failed/14 skipped, target duration 67.5 seconds. The initial dependency-containment setup failure was resolved by a separate physically contained frozen install; the successful QA runtime build and actual test failure, not that earlier setup error, supply the baseline evidence.
  • checks-node-changed-7, job 134685615047: telegram-recovered-artifact.e2e.test.ts → delivers a recovered artifact once while preserving its inter-session transcript → document-delivery poll expected 1, received 0, matcher timeout. This is not a session-count assertion. Vite OXC/SSR transformation reproduces the exact generated CI position 317:85 at expect.poll(() => documents.length, { timeout: 30_000 }).toBe(1) (source line 348). The failure occurs after agent.wait returns { status: "ok" }, when no successfully processed Telegram document upload is recorded within 30 seconds. Its underlying cause and dynamic inherited/new attribution remain unresolved.

Exact-base focused commands (Node v26.12.1; pnpm 12.15.0; isolated dependencies and state):

node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/channel-progress-presentation.e2e.test.ts --maxWorkers=1 -t "retains ambiguous Discord announcement custody after an unidentified send"
node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/telegram-recovered-artifact.e2e.test.ts --maxWorkers=1 -t "delivers a recovered artifact once while preserving its inter-session transcript"

The Telegram base run stopped earlier at initial TELEGRAM-ROUTE-READY polling (expected false to be true; 30 seconds). The same transformation maps its generated position 290:215 exactly to that readiness assertion. It does not prove the later CI document-delivery failure inherited. The CI failure used Bun, whereas these baseline tests used Node; the supported pinned Bun resolver was subsequently confirmed available, but no additional reproduction or channel repair was started during closeout.

Static changed-input verification is complete: src, extensions, packages, test/e2e, test/helpers, test/vitest, pnpm-lock.yaml, and pnpm-workspace.yaml have no diff between the exact base and published head. The root package diff only removes three Android version script aliases. This places the failing channel runtime outside changed inputs without substituting static inspection for dynamic attribution. No assertion, timeout, or baseline was weakened. The task-owned base checkout was removed after the test processes exited.

The preceding head's separate macOS Periphery producer run 44071268998, job 133998245808 failed uploading its report with ENOTFOUND; dependent report jobs lacked that artifact. This is recorded infrastructure evidence, not a source-code fix or a claim about the new head.

No Play upload or production promotion was performed. The PR remains open and unmerged; overall CI is red.

RomneyDa and others added 2 commits November 17, 2026 10:55
Derive local build defaults from the root package while preserving source-bound Play plans and legacy APK release eligibility.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: cb8691bc-7363-41e5-987e-5bd7a4deef3e
@clawsweeper

clawsweeper Bot commented Nov 17, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: android App: android scripts Repository scripts app: wearos App: wearos size: XL labels Nov 17, 2026
RomneyDa and others added 2 commits November 17, 2026 11:08
Preserve upstream release-note/build overlap and current release documentation while retaining runtime version defaults and legacy publication safeguards.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 0999d9cc-ad67-4e8c-9943-08da1fa89e27
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR derives Android build defaults from the root package version and removes the separate pin and synchronization commands.

Example: Build Android from source with root package version 2026.11.4.

  • Before: Default metadata remains version 2026.8.2 with phone code 2026080201.
  • After: Default metadata becomes version 2026.11.4 with phone code 2026110401 and Wear code 2026110451.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The source change is coherent and focused, with useful CLI regressions, but native behavior remains unverified and exact-head CI failures are unclassified.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Building current Android source produces an app whose default version still identifies the old 2026.8.2 release.
Reason: The maintainer-authored direction removes recurring manual synchronization without coupling Play publication to Gateway releases.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR removes stale Android source-build defaults, and source review found no definite introduced defect.

Priority: P2
Reviewed head: 3aa4a76367ab09305fe198f357e7617e79c3170b

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply native phone/Wear build output showing calculated defaults and saved-plan overrides, plus fresh-install and upgrade verification with existing app data intact; redact credentials and non-public endpoints.
Agent review details

How this fits together

The Android version resolver supplies CLI output, phone/Wear Gradle defaults, and archive metadata; saved Play plans override those defaults with an exact source-bound release identity.

flowchart TD
  A[Root package version] --> B[Android version resolver]
  C[Saved Play plan] --> B
  B --> D[Version CLI]
  B --> E[Phone and Wear Gradle]
  B --> F[Archive builder]
  G[Legacy tagged manifest] --> H[Gateway APK eligibility]
Loading

Technical review

Best possible solution:

Use the existing Android resolver as the single local-default owner while preserving exact Play plans and legacy APK publication eligibility.

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

Current main directly reads the committed 2026.8.2 Android pin despite root version 2026.11.4; no target code was executed during this read-only review.

Is this the best way to solve the issue?

The cutover coherently removes the redundant metadata owner and its synchronization machinery while retaining explicit build overrides and source-bound store identities.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5fb231527f4f.

Provenance checked

  • Android local defaults and pin synchronization changes intended behavior with a stated reason (40eec48: Pinned release versioning supplied shared Gradle defaults; the later shipped-pin forward port preserved monotonic release metadata.)
  • Play plan identity and code allocation changes intended behavior with a stated reason (cd2724e: Automatic store releases derive source-bound identities from live inventory and recorded releases; the PR removes the obsolete pin floor while retaining those authoritative inputs.)
  • Legacy APK eligibility and saved-plan recovery keeps the original intent (cd2724e: Store planning and ordinary APK defaults have separate responsibilities; retained legacy paths preserve old tagged-source recovery and exact saved-plan reproduction.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -16, Tests -134, Docs +7, Config -4, Other -475. Total -622 across 45 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 26 42 -16
Tests 14 173 307 -134
Docs 8 69 62 +7
Config 3 13 17 -4
Generated 0 0 0 0
Other 13 52 527 -475
Total 45 333 955 -622

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Stale version metadata affects Android source builds and local archives, with limited impact outside those workflows.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Stale version metadata affects Android source builds and local archives, with limited impact outside those workflows.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 6:25 AM ET / 11:25 UTC.

RomneyDa and others added 2 commits November 18, 2026 08:47
Use the supported extra.set and indexed read APIs without changing lazy runtime-version defaults or explicit release overrides. Keep warning-mode=fail enabled.

Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 127bc29-d6e5-4969-8ec1-8476cf828821
@RomneyDa
RomneyDa merged commit e783f4d into main Nov 18, 2026
233 of 237 checks passed
@RomneyDa
RomneyDa deleted the openclaw/android-runtime-version-51e904a branch November 18, 2026 10:46
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
* fix(android): stop building with a stale version pin

Derive local build defaults from the root package while preserving source-bound Play plans and legacy APK release eligibility.

Co-authored-by: RomneyDa <[email protected]>

* fix(android): stop building with a stale version pin

OpenClaw-Publication: cb8691bc-7363-41e5-987e-5bd7a4deef3e

* Publish openclaw/android-runtime-version-51e904a

OpenClaw-Publication: 0999d9cc-ad67-4e8c-9943-08da1fa89e27

* fix(android): replace deprecated Gradle extra delegates

Use the supported extra.set and indexed read APIs without changing lazy runtime-version defaults or explicit release overrides. Keep warning-mode=fail enabled.

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/android-runtime-version-51e904a

OpenClaw-Publication: 127bc29-d6e5-4969-8ec1-8476cf828821

---------

Co-authored-by: RomneyDa <[email protected]>
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* chore: retire June upgrade baselines from release validation

Advance the shared automatic qualification floor to 2026.7.1 and align existing baseline fixtures. Preserve explicit historical baseline selection.

Co-authored-by: RomneyDa <[email protected]>

* chore: retire June upgrade baselines from release validation

OpenClaw-Publication: 30a4a362-5ccc-4ac7-b2cf-b340fdb0e66a

* chore: remove pinned oldest upgrade baseline

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/remove-outdated-release-upgrade-scenarios

OpenClaw-Publication: 69a19a1c-7527-4f9e-a1ba-62c34bd25bd0

---------

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit 142e499)

Companion audit: #201313, #200527, #200386, #200562 touch workflow/test neighbors but are independent and assigned separately. Explicit historical baseline selectors remain supported.

(cherry picked from commit 9fc44690ad196164e038afe931c81c113d79e87f)
RomneyDa added a commit that referenced this pull request Nov 19, 2026
* fix(android): stop building with a stale version pin

Derive local build defaults from the root package while preserving source-bound Play plans and legacy APK release eligibility.

Co-authored-by: RomneyDa <[email protected]>

* fix(android): stop building with a stale version pin

OpenClaw-Publication: cb8691bc-7363-41e5-987e-5bd7a4deef3e

* Publish openclaw/android-runtime-version-51e904a

OpenClaw-Publication: 0999d9cc-ad67-4e8c-9943-08da1fa89e27

* fix(android): replace deprecated Gradle extra delegates

Use the supported extra.set and indexed read APIs without changing lazy runtime-version defaults or explicit release overrides. Keep warning-mode=fail enabled.

Co-authored-by: RomneyDa <[email protected]>

* Publish openclaw/android-runtime-version-51e904a

OpenClaw-Publication: 127bc29-d6e5-4969-8ec1-8476cf828821

---------

Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit e783f4d)
(cherry picked from commit bd06090118eea6f96d15a9c59c55b480a1d18b95)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: wearos App: wearos docs Improvements or additions to documentation P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: XL 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