Skip to content

docs(release): bound release recovery loops - #106852

Merged
vincentkoc merged 2 commits into
mainfrom
docs/release-control-loop
Jul 13, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
docs/release-control-loop

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves an operational problem where a release session could repeatedly reopen settled decisions, chase moving main, dispatch replacement validation roots, regenerate release work, or start downstream macOS validation before its GitHub release prerequisite existed.

The concrete failure mode was severe: one stalled release session ran for 66h 48m with 17,098 function calls, 102 compactions, 11 aborted turns, and 1.796B total tokens. A fresh bounded handoff for the same release reached publication and precise external blockers in 3h 14m with 313 function calls, one compaction, and 33.4M total tokens.

Why This Change Was Made

The release instructions now model the release as one finite state record:

  • freeze the cut SHA, Code SHA, Release SHA, active run ids, approved scope, completed phases, next action, and terminal stop conditions
  • keep moving main, unrelated CI, optional backports, cleanup, and normal forward-ports outside the active release
  • keep one active Full Release Validation parent per target SHA
  • distinguish same-parent failed-job reruns from a new narrow rerun_group dispatch that supersedes a terminal parent
  • stop after repeated unchanged failures and report one precise blocker
  • let public macOS handoff validation run before publication by removing its unnecessary GitHub release-page dependency
  • use a compact handoff template for fresh sessions, compaction recovery, and operator transfer

This follows the GPT-5.6 guidance to keep goals and stop rules explicit, define one route and handoff, avoid repeating completed work, and discard stale reasoning when the objective or assumptions change:

https://developers.openai.com/api/docs/guides/prompt-guidance-gpt-5p6

User Impact

No product runtime behavior changes.

Release maintainers get a smaller, bounded recovery loop: validate and publish one frozen candidate, retry only the failed surface, and stop on an exact external blocker instead of letting release work drift into broader main work.

Evidence

  • reviewed the stalled and successful local Codex release traces and compared duration, calls, compactions, aborts, and token usage
  • removed the public macOS workflow's release-page guard; that workflow validates tag/source/build/package metadata and does not upload assets
  • Testbox-through-Crabbox tbx_01kxerm5xw06s0c23n6vejqbex, run https://github.com/openclaw/openclaw/actions/runs/29289115938: test/scripts/package-acceptance-workflow.test.ts, 72/72 passed
  • git diff --check origin/main...HEAD
  • skill validation passed for release-openclaw-maintainer, release-openclaw-ci, and release-openclaw-mac
  • autoreview found and drove fixes for the macOS publication race and GitHub Actions rerun-input semantics
  • final branch autoreview: clean, no accepted/actionable findings

AI-assisted: yes.

@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Jul 13, 2026
@vincentkoc vincentkoc self-assigned this Jul 13, 2026
@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. labels Jul 13, 2026
@clawsweeper

clawsweeper Bot commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 13, 2026, 6:42 PM ET / 22:42 UTC.

Summary
The branch adds bounded release-state and handoff guidance, revises release-CI retry policy, removes the macOS validation job’s GitHub-release-page prerequisite, and adds focused workflow coverage.

PR surface: Tests +12, Docs +162, Config -6, Other 0. Total +168 across 9 files.

Reproducibility: yes. for the review defect: reading the changed release-CI notes alongside the current openclaw-testing Full Release Validation guidance directly reproduces the contradictory recovery instructions.

Review metrics: 1 noteworthy metric.

  • Release prerequisite: 1 validation guard removed. The macOS handoff can now run before GitHub release creation, changing the release workflow’s accepted execution order.

Stored data model
Persistent data-model change detected: migration/backfill/repair: .agents/skills/release-openclaw-ci/SKILL.md, vector/embedding metadata: .agents/skills/release-openclaw-mac/SKILL.md. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🌊 off-meta tidepool
Patch quality: 🦐 gold shrimp
Result: ready for maintainer review.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Align release-openclaw-ci, release-openclaw-maintainer, and openclaw-testing on one workflow-backed rerun and evidence contract.

Risk before merge

  • [P1] Merging the contradictory recovery rules could make release operators rerun an unnecessary full matrix or reject otherwise valid focused recovery evidence, increasing release delay and automation cost.

Maintainer options:

  1. Align the recovery contract (recommended)
    Update the release-CI notes and sibling testing/maintainer guidance to describe one consistent rerun_group and evidence policy, with focused coverage for the chosen semantics.

Next step before merge

  • [P2] This protected maintainer PR already owns the concrete correction, so no separate ClawSweeper repair job should be queued.

Security
Cleared: The workflow removes a non-secret release-page existence check but does not add third-party execution, broaden permissions, expose credentials, or add publication capability.

Review findings

  • [P2] Align narrow reruns with the canonical release contract — .agents/skills/release-openclaw-ci/references/release-ci-notes.md:21-26
Review details

Best possible solution:

Define one workflow-backed recovery contract for same-parent reruns, replacement parents, narrow groups, and publish evidence, then align all three release/testing skills and focused contract coverage before merge.

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

Yes for the review defect: reading the changed release-CI notes alongside the current openclaw-testing Full Release Validation guidance directly reproduces the contradictory recovery instructions.

Is this the best way to solve the issue?

No, not yet: bounding release loops is the right direction, but the maintainable fix must align every authoritative release skill with the actual workflow evidence contract.

Full review comments:

  • [P2] Align narrow reruns with the canonical release contract — .agents/skills/release-openclaw-ci/references/release-ci-notes.md:21-26
    These new bullets say a replacement parent must remain rerun_group=all and that narrow groups cannot satisfy publish evidence, but .agents/skills/openclaw-testing/SKILL.md currently directs focused fixes through the narrowest matching group followed by the parent verifier unless evidence is stale. Operators following the two authoritative skills would take opposite recovery actions, so align the sibling guidance and workflow-backed tests before merge.
    Confidence: 0.95

Overall correctness: patch is incorrect
Overall confidence: 0.93

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add merge-risk: 🚨 automation: Conflicting instructions about canonical release-validation parents and narrow reruns could cause incorrect or wasteful recovery automation after merge.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The external-contributor proof gate does not apply to this member-authored PR; the reported release-trace comparison and focused Testbox run remain useful supplemental evidence.

Label justifications:

  • P2: The PR improves maintainer release operations but contains a bounded, repairable policy contradiction rather than an urgent product-runtime regression.
  • merge-risk: 🚨 automation: Conflicting instructions about canonical release-validation parents and narrow reruns could cause incorrect or wasteful recovery automation after merge.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The external-contributor proof gate does not apply to this member-authored PR; the reported release-trace comparison and focused Testbox run remain useful supplemental evidence.
Evidence reviewed

PR surface:

Tests +12, Docs +162, Config -6, Other 0. Total +168 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 12 0 +12
Docs 6 200 38 +162
Config 1 0 6 -6
Generated 0 0 0 0
Other 1 1 1 0
Total 9 213 45 +168

What I checked:

  • Conflicting recovery policy: The changed notes require replacement parents to remain rerun_group=all and describe narrow groups as diagnostic-only, while the current testing skill directs focused fixes through the narrowest matching group and then the parent verifier unless evidence is stale. (.agents/skills/release-openclaw-ci/references/release-ci-notes.md:21, 499d431bdf15)
  • Current canonical sibling guidance: Current main explicitly documents narrow Full Release Validation rerun groups as the bounded recovery path after focused fixes, so the changed release notes would give operators mutually exclusive instructions. (.agents/skills/openclaw-testing/SKILL.md, 2e0f6d530463)
  • Mac handoff ordering: Removing the release-page existence guard is consistent with the documented sequence in which public macOS validation runs before the real publish workflow creates or publishes the GitHub release. (.github/workflows/macos-release.yml:54, 499d431bdf15)
  • Focused workflow regression coverage: The added test verifies that the public macOS validation job remains present without the pre-existing GitHub release-page step; the PR reports the focused package-acceptance workflow test passing 72/72 in run 29289115938. (test/scripts/package-acceptance-workflow.test.ts:3952, 499d431bdf15)
  • Prior review continuity: The prior completed ClawSweeper cycle reviewed aef662c; the current head is 499d431 and therefore requires this fresh verdict. (499d431bdf15)

Likely related people:

  • steipete: The checked-in release instructions consistently reserve release-scope, approval, publication, and exceptional recovery decisions to Peter, making this the strongest available routing signal for the conflicting recovery contract. (role: release policy owner; confidence: medium; files: .agents/skills/release-openclaw-maintainer/SKILL.md, .agents/skills/release-openclaw-ci/SKILL.md, .agents/skills/openclaw-testing/SKILL.md)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.
Review history (1 earlier review cycle)
  • reviewed 2026-07-13T22:20:34.503Z sha aef662c :: needs maintainer review before merge. :: none

@clawsweeper

clawsweeper Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: docs(release): bound release recovery loops This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc
vincentkoc marked this pull request as ready for review July 13, 2026 22:30
@clawsweeper clawsweeper Bot removed 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 Jul 13, 2026
@vincentkoc
vincentkoc merged commit 85cf09a into main Jul 13, 2026
90 of 93 checks passed
@vincentkoc
vincentkoc deleted the docs/release-control-loop branch July 13, 2026 22:44
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jul 13, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 14, 2026
* docs(release): keep release work scoped

* style(release): format workflow test
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant