Skip to content

fix(ci): provision native Android resources for frozen current-contract targets - #120081

Merged
vincentkoc merged 1 commit into
mainfrom
fix/android-compatible-native-resources
Aug 7, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/android-compatible-native-resources

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where frozen release candidates using the current Android CI contract could fail before Gradle tests or builds because CI skipped the Node environment required to generate native Canvas resources.

Why This Change Was Made

The CI manifest already distinguishes legacy Android task compatibility from current-contract frozen targets. This change exposes that decision as a preflight output and skips native-resource Node setup only for the legacy task contract.

User Impact

Maintainers can validate a frozen release SHA with the current Android contract without changing the release candidate or omitting required generated resources. Product runtime behavior is unchanged.

Evidence

  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts -- -t 'covers Android app variants|uses target-owned CI plans' (2 passed)
  • node scripts/check-workflows.mjs
  • pnpm exec oxfmt --check --threads=1 .github/workflows/ci.yml test/scripts/ci-workflow-guards.test.ts
  • git diff --check

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 7, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@vincentkoc vincentkoc self-assigned this Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 6, 2026, 11:34 PM ET / August 7, 2026, 03:34 UTC.

ClawSweeper review

What this changes

The PR exports the Android CI contract decision from preflight and uses it to run Node-based native-resource setup for frozen targets using the current Android contract.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking correctness finding: the PR carries the already-computed Android contract fact across the CI job boundary, which is the narrow owner-boundary repair. Keep it open for maintainer merge handling because it is maintainer-authored/protected and should receive required checks on the refreshed merge result.

Priority: P2
Reviewed head: 55cf112992da016462f4ddc814c4ce9cc9dd7bc9
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with strong frozen-target evidence; refresh the merge result before landing.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): A recorded frozen current-contract dispatch shows all six Android lanes running native-resource Node setup before Gradle and passing; normal exact-merge-head CI remains a merge gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): A recorded frozen current-contract dispatch shows all six Android lanes running native-resource Node setup before Gradle and passing; normal exact-merge-head CI remains a merge gate.
Evidence reviewed 6 items Current-main defect: Current main computes the narrow contract fact but does not publish it across preflight; Android resource setup instead checks the broader compatibility flag, so a frozen current-contract target can skip required Node setup.
Correct repair boundary: The PR publishes the existing decision from preflight and consumes it only at the Android native-resource setup condition, preserving the legacy-contract skip.
Downstream requirement: Android Gradle invokes the Node-based native Canvas resource synchronizer and attaches generated resources to every variant.
Findings None None.
Security None None.

How this fits together

CI preflight classifies a frozen release target as legacy-compatible or current-contract and supplies that decision to Android jobs. Android Gradle then needs Node to generate Canvas resources before tests and builds consume them.

flowchart LR
A[Frozen release target] --> B[CI preflight]
B --> C[Android contract decision]
C --> D[Android job]
D --> E[Node resource generation]
E --> F[Gradle variants]
F --> G[Android tests and builds]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned CI repair merge after required checks complete on its refreshed merge result? Refresh and merge: Rebase or update the merge result, require the Android and required CI checks, then merge if they remain green.

Why: The patch is correct and has real frozen-target evidence, but only maintainers should accept the remaining release-validation automation risk on the exact merge result.

Before merge

  • Resolve merge risk (P1) - The branch is behind main and the supplied check rollup is incomplete, so required CI should run on the refreshed merge result before merge.
  • Complete next step (P2) - Maintainer merge handling is needed to refresh the merge result and verify the remaining automation gate.
Agent review details

Security

None.

PR surface

Tests +22, Config +2. Total +24 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 22 0 +22
Docs 0 0 0 0
Config 1 3 1 +2
Generated 0 0 0 0
Other 0 0 0 0
Total 2 25 1 +24

Review metrics

Metric Value Why it matters
Production versus test LOC production +2 net (+3/-1); tests +22 The small production increase exports an existing preflight fact; the added tests cover the workflow consumer and both contract outcomes.

Merge-risk options

Maintainer options:

  1. Refresh exact merge-head proof (recommended)
    Run the required checks and confirm the frozen current-contract Android lanes on the refreshed merge result before merging.
  2. Accept existing dispatch proof
    A maintainer may merge based on the recorded frozen-target dispatch if release timing outweighs rerunning it on the refreshed merge result.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Refresh the merge result, require current CI, and retain the frozen current-contract Android dispatch evidence.

Technical review

Best possible solution:

Merge the narrow preflight-output repair after the refreshed merge result confirms the frozen current-contract Android lanes still run Node setup before Gradle.

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

Yes—current main source proves the lost preflight fact and the Android Gradle path requiring Node; the PR also records a successful frozen current-contract dispatch after the repair.

Is this the best way to solve the issue?

Yes—the patch publishes the authoritative preflight decision instead of re-deriving it in Android jobs or broadening the legacy compatibility condition.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 47640e06be1d.

Labels

Label justifications:

  • P2: This fixes release-validation automation without altering product runtime behavior.
  • merge-risk: 🚨 automation: The change modifies a CI preflight output and the Android job condition that controls required setup.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): A recorded frozen current-contract dispatch shows all six Android lanes running native-resource Node setup before Gradle and passing; normal exact-merge-head CI remains a merge gate.
  • proof: sufficient: Contributor real behavior proof is sufficient. A recorded frozen current-contract dispatch shows all six Android lanes running native-resource Node setup before Gradle and passing; normal exact-merge-head CI remains a merge gate.

Evidence

What I checked:

  • Current-main defect: Current main computes the narrow contract fact but does not publish it across preflight; Android resource setup instead checks the broader compatibility flag, so a frozen current-contract target can skip required Node setup. (.github/workflows/ci.yml:526, 47640e06be1d)
  • Correct repair boundary: The PR publishes the existing decision from preflight and consumes it only at the Android native-resource setup condition, preserving the legacy-contract skip. (.github/workflows/ci.yml:116, 55cf112992da)
  • Downstream requirement: Android Gradle invokes the Node-based native Canvas resource synchronizer and attaches generated resources to every variant. (apps/android/app/build.gradle.kts:148, 47640e06be1d)
  • Regression coverage: The added guard assertions cover both the parsed workflow condition and legacy versus current frozen-contract manifest outputs. (test/scripts/ci-workflow-guards.test.ts:2290, 55cf112992da)
  • History and ownership: Native Canvas resource generation appears to date to the feature introduction, while frozen candidate contract handling was established by subsequent release/CI work. (.github/workflows/ci.yml:3485, 9e43844264a7)
  • Real workflow proof: The PR comment reports an exact frozen current-contract dispatch where preflight selected the current matrix and all six Android lanes passed after running native-resource Node setup before Gradle. (55cf112992da)

Likely related people:

  • steipete: Introduced the native Canvas resource generation that makes the Node setup a required Android build prerequisite. (role: native-resource feature owner; confidence: high; commits: 9e43844264a7; files: apps/android/app/build.gradle.kts, .github/workflows/ci.yml)
  • Dallin Romney: Relevant release and CI history established frozen-candidate contract handling that this repair preserves. (role: frozen-release contract contributor; confidence: high; commits: 67ef07863fbb, 2fa91f48d03a; files: .github/workflows/ci.yml)
  • vincentkoc: Has prior merged work on the workflow and its guard fixtures in addition to this focused repair. (role: recent CI fixture contributor; confidence: medium; commits: 263741b1, 55cf112992da; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

Rank-up moves

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

  • Run required CI on the refreshed merge result and retain the frozen current-contract Android dispatch evidence.

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-07T00:36:09.210Z sha 8bc84d0 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-07T01:35:43.406Z sha 8bc84d0 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 00:39
@vincentkoc

Copy link
Copy Markdown
Member Author

Applied the ClawSweeper rank-up move with an exact frozen current-contract dispatch.

The Android jobs executed Setup Node environment for native resources before Gradle. This covers the three paths that failed in the prior frozen-candidate run at :app:stageCanvasA2ui. The remaining unrelated manual-CI graph was cancelled after all six Android lanes completed successfully.

@vincentkoc
vincentkoc marked this pull request as draft August 7, 2026 01:02
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 01:02
@vincentkoc
vincentkoc marked this pull request as draft August 7, 2026 01:10
@vincentkoc
vincentkoc marked this pull request as ready for review August 7, 2026 01:10
@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Aug 7, 2026
@vincentkoc
vincentkoc force-pushed the fix/android-compatible-native-resources branch from 8bc84d0 to 55cf112 Compare August 7, 2026 02:03
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@vincentkoc
vincentkoc merged commit 1823be7 into main Aug 7, 2026
108 checks passed
@vincentkoc
vincentkoc deleted the fix/android-compatible-native-resources branch August 7, 2026 03:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to VACInc/openclaw that referenced this pull request Aug 7, 2026
* origin/main:
  refactor(test): compress repetitive fixtures in mega-tests, batch 2 (openclaw#120124)
  refactor(ui): adopt shared chat-host fixture across chat suites (openclaw#120120)
  fix(ci): provision native Android resources for frozen current-contract targets (openclaw#120081)
  fix: preserve agent delivery identity (openclaw#120108)
  fix(qqbot): add cause-specific setup guidance (openclaw#119780)
  fix(venice): replay Gemini tool signatures by turn occurrence (openclaw#119783)
  fix(gateway): yield before TTS status diagnostics (openclaw#119788)
  fix: gateway restart fails and leaves the macOS LaunchAgent unloaded when the gateway drains active work (openclaw#116875)
  fix(clickclack): show native agent progress while replying (openclaw#116683)
  fix: unhandled rejection crashes process when raw stream write fails (openclaw#119400)
  fix: prevent duplicate outbound delivery during concurrent recovery (openclaw#119966)

# Conflicts:
#	src/agents/embedded-agent-runner/run.incomplete-turn.test.ts
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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