Skip to content

fix: keep Android publication independent of core release - #133471

Merged
steipete merged 4 commits into
mainfrom
codex/android-release-approval-main
Aug 30, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/android-release-approval-main

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Protected-tag release publishers could not hand off approval to Android, and waiting for Android completion held up core publication. A detached child also needs to recheck its exact parent authority before publishing provenance or uploading an asset.

Why This Change Was Made

The publisher attests a v2 Android approval binding the parent run, attempt, full ref and workflow SHA to the exact release target. The child uses the canonical tooling and raw REST parent validators. Android dispatch no longer waits for its build or publication: core records a pending run link, reports an unconfirmed dispatch visibly, and emits an APK download link only for verified assets. Windows remains a required core gate.

Normal Android publication accepts an active or successfully completed parent and the exact stable target, whether draft or public. Failed parents require explicit recovery; cancelled parents remain rejected. Immediately before provenance and each actual asset upload, the shared approval owner rechecks the live direct/peeled release-tag target, stable release classification, tooling identity and exact parent attempt/state. It fetches the parent last, after target/tooling reads. These are fresh boundary checks, not an atomic GitHub validation-and-write transaction. Signing, source attestation, protected environment and immutable asset checks remain intact. Generic and ClawHub approval contracts are unchanged.

User Impact

Core publication can complete while Android approval, build and publication continue separately. Maintainers monitor the linked Android run and verify native publication before announcing all platforms complete. No runtime configuration, schema or dependency changes are included.

Evidence

  • Original actual admission-shell proof failed for protected parents at the branch-only guard and for main parents on missing repository metadata. The independent-publication regressions failed before repair for the Android wait, dispatch failure affecting core, completed-success parent and public stable target.
  • The actual upload-shell regression failed before this final correction for parent failure, cancellation, rerun, moved release target and prerelease mutation; successful completion and explicit recovery remained passing controls. The repaired proof covers invalidation before the first and second uploads, parent invalidation during tooling reads, and provenance ordering.
  • Four focused files pass all 674 tests, including the approval owner, canonical tooling sibling, package workflows and full routing owner. Tests execute the real receipt producer, dispatch function, admission, validator and upload shell, substituting external boundaries. They do not perform real signing or publication.
  • The first hosted normal CI failure was an exact routing-fixture expectation missing the newly referenced approval owner test. That one-line correction passed all 357 routing tests and subsequent normal CI33331584214, including hosted types and openclaw/ci-gate. The final correction requires its own exact-head hosted gates.
  • Live GitHub REST readback confirmed parent identity fields. Live direct/peeled lookup of the signed annotated stable tag confirmed the release-target contract; installed gh attestation verification supports source-ref/source-digest binding.
  • Formatting, targeted script lint and scoped P0 autoreview pass. The local changed gate reached only the existing shared logger/pako declaration failures; there are no changed-file type errors, and shared dependencies were not reconciled.

Review Finding Disposition

The final-effect authority finding and corresponding rank-up are addressed by the shared validator at each publication boundary and failing/passing executable proof. Production growth for this correction is 35 lines (33 executable plus two declaration lines), replacing duplicated admission shell while adding live target and fresh parent checks; tests add 141 net lines.

The historical-tag finding is addressed by preserving the named paired immutable v1 producer/consumer recovery contract. Executing the actual historical producer and full admission/validator under strict external boundary stubs passed 12 cases, with four parent-input cases also matching. A new v2 producer paired with an old v1 consumer is intentionally rejected; no speculative fallback is added. Historical recovery still requires its authentic receipt, enforced gates and matching frozen tooling. The 30-day receipt retention means this proof does not claim a currently retained historical receipt or live historical publication.

@steipete
steipete requested a review from a team as a code owner August 30, 2026 19:18
@clawsweeper

clawsweeper Bot commented Aug 30, 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 docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Aug 30, 2026
@steipete steipete changed the title fix: allow Android releases from protected publish tags fix: keep Android publication independent of core release Aug 30, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 4:57 PM ET / 20:57 UTC.

ClawSweeper review

What this changes

The PR lets Android APK publication continue independently of core release completion while binding its approval to the exact parent run, ref, and workflow revision.

Regression provenance

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

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this PR open for normal maintainer review: the prior upload-boundary finding is addressed, the release authority checks are coherent, and exact-head CI is still running.

Priority: P1
Reviewed head: 8371008cb8210420cae0145783fb327e56aeb98d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused authority-boundary coverage and a coherent repair make this a normal good release-automation patch, pending exact-head CI.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The changed production owner is the Android release shell; its focused harness executes the real receipt producer, validator, dispatch excerpt, and upload shell, demonstrating allowed uploads and rejection before upload after parent invalidation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The changed production owner is the Android release shell; its focused harness executes the real receipt producer, validator, dispatch excerpt, and upload shell, demonstrating allowed uploads and rejection before upload after parent invalidation.
Evidence reviewed 6 items Detached Android dispatch: The publisher dispatches Android at the immutable release tag, records a pending run link, and does not wait for Android before continuing core publication.
Fresh authority validation: The Android validator checks the attested v2 receipt, live release-tag target, stable release classification, tooling identity, and exact live parent run attempt/state; it fetches the parent last.
Final-effect boundary: The workflow revalidates before provenance and immediately before each missing-asset upload, so a changed parent state blocks the subsequent release write.
Findings None None.
Security None None.

How this fits together

Release Publish coordinates core package publication and native release workflows. Android receives an attested approval, validates it against live GitHub release state, then publishes APK assets independently of core completion.

flowchart LR
  A[Release Publish run] --> B[Attested Android approval]
  B --> C[Android Release workflow]
  C --> D[Live tag and parent validation]
  D --> E[APK provenance]
  D --> F[Immutable asset upload]
  A --> G[Core publication completes]
Loading

Before merge

  • Resolve merge risk (P1) - The approval receipt changes the manual Android recovery interface to require an exact parent attempt, full ref, and tooling SHA; release operators need the updated documented recovery inputs.
  • Resolve merge risk (P1) - The supplied test merge is stale while current main has a post-base release-workflow change, so exact-head CI remains necessary before landing.
  • Complete next step (P2) - A maintainer should review the release-operational change after the exact-head gates complete; no narrow automated repair is outstanding.
Agent review details

Security

None.

PR surface

Tests +521, Docs +20, Config -12, Other +81. Total +610 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 551 30 +521
Docs 1 24 4 +20
Config 2 62 74 -12
Generated 0 0 0 0
Other 3 85 4 +81
Total 9 722 112 +610

Review metrics

Metric Value Why it matters
Production versus test delta production +89, tests +521 The production growth centralizes detached-release validation; the larger test delta covers the parent, tag, provenance, upload, and dispatch cases.

Stored data model

Persistent data-model change detected: serialized state: scripts/validate-release-publish-approval.mjs, unknown-data-model-change: scripts/validate-release-publish-approval.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head release validation (recommended)
    Let the current workflow checks validate the current-main integration before merging this change to release dispatch and approval behavior.

Technical review

Best possible solution:

Land the detached Android flow only after exact-head validation confirms it integrates with current release tooling and the documented v2 recovery contract remains the operator path.

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

Yes, at source level: the focused workflow harness exercises dispatch completion behavior and parent invalidation at the Android upload boundary.

Is this the best way to solve the issue?

Yes: moving the live checks into the shared approval validator and invoking it before provenance and each write is the narrowest maintainable repair.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the Android release shell; its focused harness executes the real receipt producer, validator, dispatch excerpt, and upload shell, demonstrating allowed uploads and rejection before upload after parent invalidation.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed production owner is the Android release shell; its focused harness executes the real receipt producer, validator, dispatch excerpt, and upload shell, demonstrating allowed uploads and rejection before upload after parent invalidation.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: A defect here can block core publication or incorrectly gate final Android release publication.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions dispatch, completion handling, and release evidence output.
  • merge-risk: 🚨 compatibility: Existing manual Android recovery invocations must provide the expanded v2 approval tuple.
  • merge-risk: 🚨 security-boundary: A detached workflow consumes release authority before provenance and release-asset writes.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The changed production owner is the Android release shell; its focused harness executes the real receipt producer, validator, dispatch excerpt, and upload shell, demonstrating allowed uploads and rejection before upload after parent invalidation.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the Android release shell; its focused harness executes the real receipt producer, validator, dispatch excerpt, and upload shell, demonstrating allowed uploads and rejection before upload after parent invalidation.

Evidence

What I checked:

Likely related people:

  • steipete: 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 (2 earlier review cycles)
  • reviewed 2026-08-30T19:39:51.807Z sha 8eadca1 :: needs real behavior proof before merge. :: [P1] Preserve Android handoff compatibility with old release tags | [P1] Revalidate parent authority before uploading Android assets
  • reviewed 2026-08-30T19:49:38.753Z sha 2a105cd :: needs real behavior proof before merge. :: [P1] Revalidate the parent before uploading Android assets

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 30, 2026
@steipete
steipete merged commit b27ca2a into main Aug 30, 2026
165 of 167 checks passed
@steipete
steipete deleted the codex/android-release-approval-main branch August 30, 2026 21:07
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to shojikumaru/openclaw that referenced this pull request Aug 30, 2026
…cked-delivery

* origin/main: (261 commits)
  fix(clawdock): keep credentials out of diagnostic output (openclaw#133547)
  refactor(ui): avoid redundant presence work in avatar lists (openclaw#133548)
  fix(agents): recognize internal requester completion replies (openclaw#133543)
  fix: prevent duplicate queued user messages in chat clients (openclaw#133542)
  chore(ui): refresh control ui locales (openclaw#133544)
  fix(beam): restart delivery when the receiver changes (openclaw#133533)
  fix(models): recover /models browse from a replaced prepared catalog (openclaw#133221)
  perf(terminal): reuse control scans and remove repeated sanitization work (openclaw#133527)
  perf(agents): prepare only consumed tool and skill diagnostics (openclaw#133512)
  fix(line): offer the card command only on LINE (openclaw#132895)
  fix: keep Android publication independent of core release (openclaw#133471)
  refactor(agents): simplify compaction accounting (openclaw#133521)
  refactor(plugins): simplify registration lifecycle policy (openclaw#133364)
  perf(plugins): avoid eager loader imports for active registry reads (openclaw#133518)
  refactor(ui): consolidate chat rendering ownership (openclaw#133508)
  test(auto-reply): prepare memory flush model capabilities (openclaw#133532)
  fix(ui): replace startup hourglasses with capacity-aware rings (openclaw#133470)
  fix(talk): preserve provider conversation order in browser transcripts (openclaw#133493)
  fix(ui): deduplicate participant and viewer avatars (openclaw#133519)
  feat(ui): add CRT terminal theme (openclaw#133495)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
…33471)

* fix: allow Android releases from protected publish tags

* fix: keep Android publication independent of core release

* test: include Android approval in publish workflow routing

* fix: revalidate Android authority before publication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts 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