Skip to content

fix(ci): keep frozen mobile candidates releasable - #139441

Merged
vincentkoc merged 1 commit into
mainfrom
fix/mobile-release-frozen-code-authority
Sep 5, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/mobile-release-frozen-code-authority

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where a valid frozen mobile release candidate became impossible to publish whenever unrelated commits reached main after the Code SHA was frozen. It also closes a validation gap where a forbidden candidate commit followed by a revert could disappear from the aggregate Code-to-target diff.

Why This Change Was Made

The authority now derives one frozen Code SHA from the release target and the trusted workflow Tooling SHA. It requires that Code SHA on the Tooling SHA's first-parent history, walks a bounded linear candidate suffix commit by commit, and permits only regular-file modifications to the five generated release metadata paths. Candidate bytes are regenerated with current trusted tooling against the frozen Code SHA metadata baseline.

No workflow inputs, configuration, receipt schema, credential access, release-ref behavior, or store operation changed.

No changelog entry: this repairs internal beta-release authorization without changing shipped app behavior.

User Impact

Release operators can keep a qualified iOS/Android Code SHA frozen while unrelated work continues landing on main, without weakening candidate-history validation.

Evidence

  • Both new regressions failed against the prior authority for the intended reasons: frozen candidates were rejected after Tooling advanced, and a forbidden code commit hidden by a revert was accepted.
  • 50/50 focused mobile release authority tests passed at 28cb715babe37375ea5fc4ba9bee9280653289e6.
  • Coverage includes current Tooling with frozen Code metadata, Tooling-owned cutter loading, per-commit code/revert rejection, real local-remote fetch acceptance at exactly 32 candidate commits, rejection at 33, valid multi-commit and empty-intermediate candidates, merge/orphan/criss-cross/second-parent rejection, and target-equals-Code rejection.
  • Both beta workflows check out the trusted workflow SHA with full history; the release target fetch remains bounded to 33 commits.
  • Changed checks, formatting, and git diff --check passed at the exact commit.
  • LOC: authority/tooling +71/-33; tests +320/-7; docs +13/-11.

@clawsweeper

clawsweeper Bot commented Sep 5, 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 5, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: android App: android app: ios App: ios size: M maintainer Maintainer-authored PR labels Sep 5, 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 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 6:23 PM ET / 22:23 UTC.

ClawSweeper review

What this changes

Updates mobile release validation to accept frozen app code with newer trusted tooling, reject forbidden changes in intermediate commits, and document and test those rules.

Merge readiness

✅ Ready for maintainer review

This repair remains necessary: current main still rejects frozen candidates after trusted tooling advances. No blocking defect was found in the introduced changes, and the prior review contained no findings to resolve.

Priority: P2
Reviewed head: 28cb715babe37375ea5fc4ba9bee9280653289e6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary repair with substantial relevant regression coverage and no blocking findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary contributor proof requirements. Its reported production-authority tests cover frozen ancestry and real Git fetches with simulated GitHub responses; no introduced unresolved principal or stale-authority bypass was identified.
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 ordinary contributor proof requirements. Its reported production-authority tests cover frozen ancestry and real Git fetches with simulated GitHub responses; no introduced unresolved principal or stale-authority bypass was identified.
Evidence reviewed 7 items Introduced scope: The pinned merge-base-to-head diff contains only the release authority, its regression tests, and the two mobile setup documents; endpoint drift was excluded from ownership judgments.
Current main still contains the failure: Current main requires the trusted workflow commit itself to be the candidate's merge base. A candidate frozen before an independent main advance fails that check.
Latest release comparison: The supplied latest release, v2026.9.2, contains authority blob 0373d5c517892b07706bd4277158ddd127677f54, matching the pre-patch authority blob. This repair is not present there.
Findings None None.
Security None None.

How this fits together

The mobile release authority validates a release branch and exact commit before the iOS and Android beta workflows access signing assets or upload builds. Its approval receipt is revalidated before protected operations and immutable release recording.

flowchart TD
  A[Release branch and exact commit] --> C[Validate frozen code ancestry]
  B[Trusted workflow tooling] --> C
  C --> D[Check each candidate commit]
  D --> E[Regenerate release metadata]
  E --> F[Issue approval receipt]
  F --> G[Revalidate permissions and run state]
  G --> H[Protected upload and release recording]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +313, Docs +2, Config +38. Total +353 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 320 7 +313
Docs 2 13 11 +2
Config 1 71 33 +38
Generated 0 0 0 0
Other 0 0 0 0
Total 4 404 51 +353

Review metrics

Metric Value Why it matters
Production versus regression coverage Production net +38 lines; tests net +313 lines Production growth implements bounded ancestry and per-commit validation; test growth covers valid frozen candidates and forbidden histories.

Technical review

Best possible solution:

Keep frozen code and trusted tooling as separate inputs to the existing authority, preserving exact metadata regeneration and live permission checks.

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

Yes, from source: freeze a metadata-only candidate, advance main independently, and dispatch using the newer workflow commit; current main rejects the candidate's ancestry. This review did not execute that scenario.

Is this the best way to solve the issue?

Yes. Repairing the shared authority covers both platforms while retaining trusted regeneration; rebasing frozen candidates or relaxing aggregate-diff checks would undermine the intended release contract.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 9dd869ec98eb.

Labels

Label justifications:

  • P2: This repairs a bounded mobile beta-release operator workflow without changing shipped app behavior.
  • 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 ordinary contributor proof requirements. Its reported production-authority tests cover frozen ancestry and real Git fetches with simulated GitHub responses; no introduced unresolved principal or stale-authority bypass was identified.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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-05T22:07:17.090Z sha 28cb715 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 5, 2026 22:19
@vincentkoc
vincentkoc merged commit d3f01d9 into main Sep 5, 2026
288 of 290 checks passed
@vincentkoc
vincentkoc deleted the fix/mobile-release-frozen-code-authority branch September 5, 2026 23:19
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 5, 2026
* origin/main: (95 commits)
  perf(build): avoid unrelated gateway artifact scans (#127757)
  fix(update): deliver terminal progress after long updates (#139289)
  fix(ui): show session hover cards for local chat URLs (#139384)
  perf(ui): reuse unchanged transcript key snapshots (#139400)
  fix(ui): make subagent sessions view-only (#139381)
  fix: open agent state on SQLite builds without extensions (#139487)
  perf(skills): detach cached metadata from source strings (#139478)
  fix(ui): show primary user in multi-agent profile hero (#136736)
  perf(sessions): stop decoding the session row four times per SQLite entry patch (#136361)
  refactor(exec): share package-manager option scans (#139482)
  fix(ci): authorize frozen mobile release candidates (#139441)
  fix: avoid session deletion slowdown in large session stores (#139467)
  perf(gateway): reuse node invocation idle timers (#139354)
  fix(auth): preserve selected profiles across plugin scopes (#139413)
  fix(discord): retain voice input until transcription completes (#139484)
  fix(agents): name Gateway storage failures in run-failure copy (#139409)
  fix: keep subagent checks responsive in large session stores (#139450)
  fix(memory): index notes when optional embeddings cannot start (#139463)
  fix: refresh pending approvals when reopening chat (#139457)
  fix(tooling): preserve Git hook choices during install (#139461)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: ios App: ios 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: M 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