Skip to content

fix(ci): keep mobile release source checks clean - #142115

Merged
vincentkoc merged 1 commit into
mainfrom
fix/mobile-release-helper-checkouts
Sep 8, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/mobile-release-helper-checkouts

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the protected iOS and Android beta workflows would make the approved release checkout appear dirty before store upload because trusted authority helper checkouts were staged at the repository root.

Why This Change Was Made

The pre-upload authority and sink checkouts now live under each platform's existing ignored build directory. Trusted workflow-SHA pinning, authority revalidation, signing-secret placement, upload ordering, intent recording, and immutable release-ref behavior are unchanged.

User Impact

Release operators can run the guarded mobile beta workflows without their trusted helper checkouts tripping the Android or Apple clean-source enforcement. Unrelated tracked or untracked source changes still fail closed.

Evidence

  • Red regression: the unchanged workflow failed the real Android source verifier with Android release builds require a clean Git checkout.
  • Green authority/workflow suite: 51/51.
  • Android release-artifact sibling suite: 11/11.
  • Apple source-checker sibling suite: 3/3.
  • Real temporary Git fixtures prove both platform checkers accept the relocated helpers and reject unrelated tracked changes, untracked files, and the obsolete repository-root helper layout.
  • pnpm check:workflows passed with its temporary Python 3.13 environment; standalone actionlint, oxfmt, oxlint, and git diff --check passed.
  • Independent P1 autoreview found no actionable findings, confidence 0.96.
  • Workflow production delta is net zero; focused regression coverage is +114 net lines.
  • The mobile release candidate remains unchanged. No workflow was dispatched and no credentials or stores were accessed.

@clawsweeper

clawsweeper Bot commented Sep 8, 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.

@vincentkoc vincentkoc self-assigned this Sep 8, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 8, 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 Sep 8, 2026
@clawsweeper

clawsweeper Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 6:46 AM ET / 10:46 UTC.

ClawSweeper review

What this changes

Moves trusted iOS and Android release helper checkouts into existing ignored build directories and adds regression coverage for clean-source enforcement.

Merge readiness

✅ Ready for maintainer review

The fix remains necessary: fetched main retains the helper layout that trips clean-source validation. No actionable introduced defect was found, and this member-authored PR is protected from automatic closure.

Priority: P2
Reviewed head: 61751263bd332c37ff5684c1aa3ffc21f241f300

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with meaningful negative-case regression coverage and no supported blocking finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The member-authored PR is exempt from the external-contributor proof gate, and the relocation does not materially change authority. Reported temporary-Git runs exercise both production source verifiers; they do not establish a complete signing or store-upload run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the external-contributor proof gate, and the relocation does not materially change authority. Reported temporary-Git runs exercise both production source verifiers; they do not establish a complete signing or store-upload run.
Evidence reviewed 8 items Verified introduced scope: The complete host-provided merge-base-to-head patch changes only helper checkout locations, their matching action references, and focused regression coverage; it does not change permissions, workflow revision pinning, secrets, or upload ordering.
Existing ignore rules cover the new locations: Git resolves the iOS helper directory to the existing apps/ios/build/ rule and the Android helper directory to the existing **/build/ rule; the obsolete root helper directory is not ignored.
Source enforcement remains intact: The Android verifier compares HEAD with the expected commit and rejects nonempty git status including untracked files. The Apple verifier independently applies the same clean-checkout contract; neither verifier is modified.
Findings None None.
Security None None.

How this fits together

Mobile beta workflows check out an approved release candidate, revalidate release authority, and invoke signing and store-upload tooling. Both platforms reject dirty source checkouts before building release artifacts.

flowchart TD
  A[Approved release candidate] --> B[Release checkout]
  C[Trusted workflow revision] --> D[Helpers in ignored build directories]
  D --> E[Release authority revalidation]
  B --> F[Clean-source verification]
  E --> F
  F --> G[Signing and store upload]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +114, Config 0. Total +114 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 115 1 +114
Docs 0 0 0 0
Config 2 11 11 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 126 12 +114

Review metrics

None.

Technical review

Best possible solution:

Keep trusted helper checkouts in existing ignored build directories while preserving strict rejection of unrelated source changes and all release-authority checks.

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

Yes, from source: the old helper directories appear as untracked files, and both release verifiers reject nonempty Git status. The contributor reports a failing regression; this review did not execute tests.

Is this the best way to solve the issue?

Yes. Relocating workflow-owned helpers into existing ignored output directories repairs their producer without weakening either source verifier or adding exceptions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8342d351b280.

Labels

Label justifications:

  • P2: Repairs a bounded mobile release workflow failure without evidence of an urgent end-user runtime regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR is exempt from the external-contributor proof gate, and the relocation does not materially change authority. Reported temporary-Git runs exercise both production source verifiers; they do not establish a complete signing or store-upload run.

Evidence

What I checked:

  • Verified introduced scope: The complete host-provided merge-base-to-head patch changes only helper checkout locations, their matching action references, and focused regression coverage; it does not change permissions, workflow revision pinning, secrets, or upload ordering. (.github/workflows/ios-beta-release.yml:120, 61751263bd33)
  • Existing ignore rules cover the new locations: Git resolves the iOS helper directory to the existing apps/ios/build/ rule and the Android helper directory to the existing **/build/ rule; the obsolete root helper directory is not ignored. (.gitignore:161, 61751263bd33)
  • Source enforcement remains intact: The Android verifier compares HEAD with the expected commit and rejects nonempty git status including untracked files. The Apple verifier independently applies the same clean-checkout contract; neither verifier is modified. (apps/android/scripts/build-release-artifacts.ts:129, 61751263bd33)
  • Behavioral regression coverage: The added test obtains helper locations from both workflows and exercises both production source verifiers against temporary Git repositories. It checks acceptance of relocated helpers and rejection of unrelated tracked changes, untracked files, and the obsolete root layout. Tests were inspected, not executed in this read-only review. (test/scripts/mobile-release-authority.test.ts:1796, 61751263bd33)
  • Relocation preserves trusted helper resolution: The authority action resolves its trusted repository relative to its own action directory and checks that repository's HEAD and origin. Moving the complete sparse checkout preserves these relationships. (.github/actions/mobile-release-authority/authority.mjs:14, 61751263bd33)
  • Current main and release still use the old layout: Both fetched-main workflows still reference root-level authority and sink checkouts. The inspected v2026.9.2 iOS workflow also retains that layout, so there is no evidence this repair has already shipped. (.github/workflows/ios-beta-release.yml:120, 8342d351b280)

Likely related people:

  • Vincent Koc: Raw commit 368f1e7 adds .github/workflows/ios-beta-release.yml:119 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 368f1e77670a; files: .github/workflows/ios-beta-release.yml)

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 (1 earlier review cycle)
  • reviewed 2026-09-08T10:36:06.024Z sha 6175126 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 8, 2026 10:41
@vincentkoc
vincentkoc merged commit 8ca2572 into main Sep 8, 2026
185 checks passed
@vincentkoc
vincentkoc deleted the fix/mobile-release-helper-checkouts branch September 8, 2026 16:07
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 8, 2026
* commit '04869ae4899ad0524c3287759798362b0d62fef8': (677 commits)
  fix(release): pin Kova census refresh (#142104)
  fix: doctor read-only database inspections time out on large agent databases (#142179)
  docs: align v2026.9.3 framing with release announcement (#142307)
  fix(ui): discover models when default-model pickers open (#142105)
  fix(ci): keep Docker upgrade seed baseline older than target (#142273)
  refactor(tests): reuse named OAuth credential fixtures (#142272)
  fix(ci): keep mobile release helpers out of source checks (#142115)
  chore(ui): refresh control ui locales (#142147)
  fix(active-memory): explain why recall was skipped (#138658)
  fix(media): preserve converted images with HEIC filenames (#142263)
  docs: add v2026.9.3 release notes (#142277)
  fix(ui): retire picker focus listeners together (#142258)
  fix(ui): keep menu hover colors consistent across themes (#142243)
  fix(release): keep changelog credits within verified history (#142261)
  fix: keep tool-finalizer placeholders private in message-only groups (#138645)
  perf(tui): carry prepared URL membership through rendering (#142262)
  test(ui): await activity cache imports before teardown (#142282)
  fix(qa): align auth and Workshop proofs with runtime contracts (#142280)
  feat(xai): use one curated catalog and concrete setup default (#142136)
  refactor(outbound): reuse prepared sendability facts (#142252)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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