Skip to content

fix: accept running release parents GitHub reports as queued and retry GitHub 5xx - #4939

Merged
RomneyDa merged 1 commit into
mainfrom
fix/openclaw-parent-active-states-and-github-retry
Nov 23, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/openclaw-parent-active-states-and-github-retry

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

Problem

The OpenClaw 2026.11.7 plugin release (child run 45099063286, parent 45086700124) failed 7 of ~200 ClawHub publish jobs, at trusted-publishing authorization rather than in the security scans:

  • synology-chat, whatsapp and others: release parent state queued/none is not authorized by automated-sealed. The parent run was still running its "Publish plugins, then OpenClaw" job. GitHub reports a running workflow run as queued, waiting or pending whenever another of its jobs is waiting for a runner or an environment approval. validateParentState treated only in_progress as active.
  • onnx and others: GitHub authorization lookup failed with HTTP 502. githubRequest failed the whole authorization on a single transient GitHub 5xx, while the sibling packages in the same wave staged fine.

Both failures leave a package absent while its siblings are staged, so an operator has to recover it by hand.

Solution

  • Treat any not-yet-completed parent run with no conclusion as active for submission. Terminal (public promotion) checks are unchanged: they still require completed with an authorized conclusion, so cancellation still can't race promotion.
  • Retry GitHub authorization lookups up to 3 times on 5xx, with a short linear backoff. 4xx still fails immediately.

Evidence

  • New tests fail on the base branch and pass with the fix: queued and waiting parents on the sealed submission route, and a 502 followed by success.
  • convex/lib/openClawPublishAuthorization.test.ts (42), plus consumer suites packages.public, httpApiV1.handlers and packages.publishRetry (992), all pass.
  • tsc --noEmit, oxlint and oxfmt are clean.

@clawsweeper

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

@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clawhub Ready Ready Preview Nov 23, 2026 2:43am UTC

Request Review

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 23, 2026
@clawsweeper

clawsweeper Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR accepts unfinished release parents without conclusions and retries GitHub authorization lookups after transient server errors.

Example: Publishing @openclaw/synology-chat 2026.11.7 while its bound release parent reports queued with no conclusion.

  • Before: Authorization rejects the package with release parent state queued/none is not authorized by automated-sealed.
  • After: The exact authorized package transaction can stage, while public promotion still requires an authorized terminal parent outcome.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The implementation is focused and source-consistent, but the changed runtime behavior has only mocked proof.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Individual plugins remain absent after a release wave because valid publishing requests encounter parent-state rejection or a transient GitHub server error.
Reason: The patch addresses concrete release failures in the existing shared owner, and MEMBER authorship establishes direction without another product approval.

Merge readiness

✅ Ready for maintainer review

Keep this maintainer-authored PR open: current main still contains both reported failure paths, and the focused patch has no concrete blocking code findings.

Priority: P1
Reviewed head: 3a4b2c39d753cb62fea3ecadae752b86606615f4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supply redacted after-fix terminal output or logs from the publishing entry point showing queued-parent staging and recovery from an injected GitHub 502 through the real transport; base-fail/head-pass results are asserted in prose but not shown.
Agent review details

How this fits together

ClawHub verifies GitHub OIDC identity, release-parent receipts, package inventory, and live workflow state before issuing scoped publication credentials and promoting staged releases.

flowchart TD
  A[Release child workflow] --> B[Trusted publishing HTTP endpoint]
  B --> C[Shared authorization verifier]
  C --> D[GitHub runs and receipt artifacts]
  C --> E[Scoped credentials and staged release]
  E --> F[Scheduled finalizer]
  F --> C
  F --> G[Public package release]
Loading

Technical review

Best possible solution:

Keep the repair in the existing shared verifier, preserving exact transaction checks and terminal-only public promotion.

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

Source deterministically rejects queued/no-conclusion parents and aborts on the first HTTP 502; linked release jobs corroborate publication failures, but no reproduction was executed during this read-only review.

Is this the best way to solve the issue?

This is the best fix location: the shared verifier covers minting and publication checks, whereas workflow-side retries would duplicate policy and leave other callers exposed.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Parent-state authorization changes intended behavior with a stated reason (845c6d3: Bind publication to exact parent authority and require an immutable authorized terminal outcome before public promotion.)
  • GitHub authorization lookup failure handling changes intended behavior with a stated reason (845c6d3: Require successful authenticated GitHub reads before accepting workflow and artifact authorization evidence.)
  • Sealed release promotion keeps the original intent (4a654d7: Preserve exact sealed transactions through later parent failure while excluding cancellation and active-parent public promotion.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 845c6d3 adds convex/lib/openClawPublishAuthorization.ts:529 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 845c6d3bdb1a; files: convex/lib/openClawPublishAuthorization.ts)
  • Dallin Romney: Raw commit 4a654d7 adds convex/lib/openClawPublishAuthorization.ts:553 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4a654d79b084; files: convex/lib/openClawPublishAuthorization.ts)
  • Peter Steinberger: Raw commit d5a3688 adds convex/lib/openClawPublishAuthorization.ts:401 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: d5a3688fb21a; files: convex/lib/openClawPublishAuthorization.ts)

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.

Review metrics

Metric Value Why it matters
Patch size Production +21/-11; tests +20/-0 The change stays within the existing authorization owner and adds focused coverage without new infrastructure.

Labels

Label changes:

  • add P1: The reported current release workflow loses individual package publications during otherwise successful publishing waves, and the implicated rejection paths remain on main.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P1: The reported current release workflow loses individual package publications during otherwise successful publishing waves, and the implicated rejection paths remain on main.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🐚 platinum hermit.
  • 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 22, 2026, 9:54 PM ET / November 23, 2026, 02:54 UTC.

@RomneyDa
RomneyDa merged commit 252a3f8 into main Nov 23, 2026
75 of 77 checks passed
@RomneyDa
RomneyDa deleted the fix/openclaw-parent-active-states-and-github-retry branch November 23, 2026 07:42

This branch was successfully deployed

1 active deployment
Preview – clawhub — 3a4b2c39 Deployed Nov 23, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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