Skip to content

fix: restore blocking release validation and remove publication waivers - #157864

Merged
RomneyDa merged 6 commits into
mainfrom
fix/restore-blocking-release-validation
Sep 25, 2026
Merged

RomneyDa merged 6 commits into
mainfrom
fix/restore-blocking-release-validation

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Release validation and publication could accept failed selected checks or beta-profile evidence through lane/soak waivers. The newly added stable-release orchestrator also selected beta validation without soak, composed waivers, and automatically continued failed validation.

Why This Change Was Made

Restore the strict blocking policy from #156811 across validation, publication, token bootstrap, closeout, workflows, and operator guidance. Remove waiver issuance, forwarding, persisted authority, and old waived-plan compatibility. This eliminates the broken Variables API waiver read without adding credentials.

The stable-release orchestrator now requests stable validation with soak, rejects retained beta requests, and stops at the first failed validation for explicit operator diagnosis/recovery. Existing publication approvals and approval receipts remain in place. Normal beta-to-stable promotion remains supported after exact stable/full qualification, soak, blocking performance, and successful selected lanes; the operator-approved promotion modes restored by openclaw/releases#37 remain supported.

Historical waiver-bearing receipt replay is intentionally unsupported, as explicitly directed after confirming the existing v2026.9.6 closeout completed. A new validation cannot replace an already-published immutable binding. Existing complete manifest/checksum pairs are left untouched; partial historical recovery does not gain an exception.

Waiver-free saved orchestrator state remains readable: the loader discards the obsolete validate.continues retry counter and capabilities.closeoutResolvesWaivers tooling flag, while the canonical writer omits both. This does not restore automatic retries, beta fast-track qualification, or any waiver-bearing state.

User Impact

Every selected lane must pass. Historical reviewed Telegram omissions preserved by #156811 remain explicitly unrun and cannot excuse selected failures. Exact-target successful-child reuse remains available for current strict plans. Older waived plans may lose otherwise-green child reuse and require new qualification; evidence is not deleted. Already-published waiver receipts cannot be repaired by inventing a new validation binding.

Evidence

  • Original policy regression proof admitted failed selected tests and waived beta evidence; repaired boundaries reject both.

  • New orchestrator regression failed before the fix because it automatically invoked frv continue; it now stops, preserves evidence, and resumes only after operator recovery. Retained beta requests and retired waiver state are rejected.

  • Existing closeout completion is independently visible in run36175758641, which reports v2026.9.6 already complete. The release-attached manifest and checksum were downloaded and verified to match. This documents completed state; it does not claim release-owner approval.

  • Full policy verification before the saved-state follow-up: 147 distinct tests passed across orchestrator, post-publication orchestration, publication gates, stable closeout, and hosted-tail CI planning. Historical replay tests preserve original receipt bytes; current strict receipt replay and completed-closeout skip remain covered.

  • Rebased onto ebdf8ab475b92d73fedee505bee45496b545037a, including upstream fix(plugins): report retained-work settlement once #157836's hosted-tail job-budget repair. The formerly failing hosted-tail test passes locally without further threshold changes.

  • Workflow validation, targeted production lint, formatting, and diff checks passed. Scripts and root-test typechecks passed. Fresh independent P2 review found no actionable issues.

  • Rebased unchanged onto 7c4866c73b31 after main fixed the unrelated team-reports test import that blocked hosted typechecking. All four PR commits are patch-identical across that rebase. The hosted test typecheck now passes. No release dispatch, publication, credential mutation, or merge was performed.

  • Hosted CI passed on the preceding a7ebb9effd42 head, including all 14 previous-version installer cases that failed on an earlier run. The latest metadata-only follow-up is awaiting its own hosted checks.

  • Addressed both ClawSweeper saved-state findings using the complete old writer shape. The capability regression failed three real CLI cases before repair; all 23 orchestrator cases pass afterward (16.57s suite / 17.93s wrapper). Status remains read-only, resumed writes remove obsolete bookkeeping, failed validation still stops, and actual waiver/unknown fields remain rejected. Fresh changed-file gates and independent P2 review pass; the final expected-command fixture correction also passes targeted lint.

  • New head checks/review are pending. The prior Gold review also objected to retiring historical waived-receipt replay; that effect remains intentional under the requested policy. This PR does not claim direct release-owner approval or an unconditional merge-ready verdict.

@clawsweeper

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

@RomneyDa
RomneyDa marked this pull request as ready for review September 25, 2026 03:34
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts labels Sep 25, 2026
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 25, 2026, 5:08 PM ET / 21:08 UTC (Revision 8).

ClawSweeper review

What this changes

The branch makes selected release checks blocking, removes waiver inputs from validation and publication, and makes stable release orchestration request soak-enabled validation and stop on failure.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

Strict release validation is still needed on current main. This head fixes the previously reported waiver-free saved-state loading problem, but it still removes recovery for published waiver-era evidence without a recorded release-owner decision accepting that change.

Priority: P1
Reviewed head: aa2db478232512d1b3d216d258e13c3a92a6fde5
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The strict-validation repair and saved-state migration are coherent, but historical published-evidence recovery remains an unresolved compatibility blocker.
Proof confidence 🌊 off-meta tidepool Not applicable: The MEMBER-authored PR is exempt from ordinary contributor demonstration proof, and no release dispatch is claimed. Focused tests cover saved-state loading and strict selection; stored-data compatibility remains insufficient because waiver-era published closeout evidence loses replay without an accepted retirement path.
Patch quality 🦐 gold shrimp (3/6) 2 actionable review findings remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from ordinary contributor demonstration proof, and no release dispatch is claimed. Focused tests cover saved-state loading and strict selection; stored-data compatibility remains insufficient because waiver-era published closeout evidence loses replay without an accepted retirement path.
Evidence reviewed 10 items Current main still accepts waiver-backed publication: The fetched main publication gate can warn instead of fail for missing stable profile, soak, or blocking performance when a waiver is supplied.
Strict gate also applies to historical closeout: The introduced selected-lanes check rejects recorded waiver or advisory evidence for the stable-closeout consumer.
Closeout requires the original published manifest: The workflow verifies the release-attached manifest and runs the strict publication gate before closeout recovery.
Findings 2 actionable findings [P1] Preserve verification of recorded closeout receipts
[P1] Keep a path for exact published validation evidence
Security None None.

How this fits together

Full Release Validation turns a release candidate and selected check results into a sealed manifest. Publication and stable closeout consume that manifest to authorize packages and record the shipped release.

flowchart LR
  A[Release candidate] --> B[Selected validation checks]
  B --> C{All selected checks pass?}
  C -->|No| D[Qualification stops]
  C -->|Yes| E[Sealed manifest]
  E --> F[Publication gate]
  F --> G[Published release]
  G --> H[Closeout receipt]
Loading

Decision needed

Question Recommendation
Should already-published waiver-era stable releases retain exact-evidence closeout replay and partial receipt repair after waivers are removed from new publication? Preserve sealed recovery: Keep a closeout-only verification path for the original published manifest and receipt while rejecting waivers for new publication.

Why: The patch intentionally removes an existing recovery contract established by a merged closeout repair; the contributor's account of direction does not provide direct acceptance of this exact retirement.

Before merge

  • Preserve verification of recorded closeout receipts (P1) - The new early return rejects an existing receipt whenever it contains a recorded waiver field. That prevents exact-byte replay and missing-checksum repair of previously published state; preserve a closeout-only verification path or obtain explicit release-owner acceptance of its retirement.
  • Keep a path for exact published validation evidence (P1) - The new selected-lanes gate rejects waiver-bearing manifests for stable closeout, and the workflow runs it against the release-attached manifest before recovery. A fresh validation run cannot replace that immutable publication binding.
  • Resolve merge risk (P1) - Waiver-era published releases can lose exact closeout replay and partial receipt repair: the new gate rejects their immutable validation manifest, and the receipt verifier rejects their recorded waiver fields. The contributor describes this as intentional, but direct release-owner acceptance of that specific retirement is not recorded.
  • Complete next step (P2) - Obtain explicit release-owner acceptance of retiring sealed waiver-era closeout replay, or preserve closeout-only verification and partial-receipt repair before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Preserve verification of recorded closeout receipts — scripts/lib/stable-release-closeout.mjs:254-263
  • [P1] Keep a path for exact published validation evidence — scripts/lib/release-publish-gates.mts:124-132
Agent review details

Security

None.

PR surface

Tests -770, Docs -61, Config -146, Other -654. Total -1631 across 58 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 17 678 1448 -770
Docs 15 200 261 -61
Config 5 5 151 -146
Generated 0 0 0 0
Other 21 145 799 -654
Total 58 1028 2659 -1631

Review metrics

Metric Value Why it matters
Persisted release state 2 obsolete bookkeeping fields stripped on read; waiver fields rejected Waiver-free saved runs can resume, while waiver-bearing release state remains an intentional compatibility boundary.

Merge-risk options

Maintainer options:

  1. Preserve sealed closeout replay (recommended)
    Add a closeout-only path for exact published validation and recorded receipt fields, with historical recovery proof.
  2. Accept retirement
    Have the release owner explicitly accept the lost recovery path and document operator handling before merge.

Technical review

Best possible solution:

Keep new publication strict, and retain a closeout-only path that verifies original sealed evidence and receipt bytes unless the release owner explicitly retires historical recovery with an operator procedure.

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

Yes, from source: current main accepts waiver-backed stable evidence, while this head rejects the original sealed manifest and recorded receipt during closeout recovery. This read-only review did not dispatch a release.

Is this the best way to solve the issue?

No. Blocking failed selected checks for new publication is the right boundary, but historical closeout replay needs a narrow compatibility path or explicit release-owner acceptance of its retirement.

Full review comments:

  • [P1] Preserve verification of recorded closeout receipts — scripts/lib/stable-release-closeout.mjs:254-263
    The new early return rejects an existing receipt whenever it contains a recorded waiver field. That prevents exact-byte replay and missing-checksum repair of previously published state; preserve a closeout-only verification path or obtain explicit release-owner acceptance of its retirement.
    Confidence: 0.92
  • [P1] Keep a path for exact published validation evidence — scripts/lib/release-publish-gates.mts:124-132
    The new selected-lanes gate rejects waiver-bearing manifests for stable closeout, and the workflow runs it against the release-attached manifest before recovery. A fresh validation run cannot replace that immutable publication binding.
    Confidence: 0.9

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P1: The PR changes release publication admission and can stop recovery of an already-published stable release.
  • merge-risk: 🚨 compatibility: Published waiver-era evidence and receipts lose their existing replay path.
  • merge-risk: 🚨 automation: The changed closeout workflow applies the new strict gate to historical release evidence before receipt repair.
  • 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 MEMBER-authored PR is exempt from ordinary contributor demonstration proof, and no release dispatch is claimed. Focused tests cover saved-state loading and strict selection; stored-data compatibility remains insufficient because waiver-era published closeout evidence loses replay without an accepted retirement path.

Evidence

What I checked:

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Resolve exact sealed closeout replay with the release owner; if retained, prove the closeout-only path against historical receipt and manifest evidence.

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 (7 earlier review cycles)
  • reviewed 2026-09-25T03:54:38.035Z sha 7d4fa13 :: blocked before merge. :: [P3] Name all required cross-OS platforms in beta coverage
  • reviewed 2026-09-25T04:25:49.294Z sha 7d4fa13 :: blocked before merge. :: [P3] Name all required cross-OS platforms in beta coverage
  • reviewed 2026-09-25T05:12:03.414Z sha 2b1034551e4ba81fc321dce2db0b7578bb1a889a :: needs maintainer review before merge. :: none
  • reviewed 2026-09-25T05:57:20.050Z sha 4d9363cdb8b28f80b9d94f2abaf02f091ce0a679 :: blocked before merge. :: [P1] Preserve replay of existing stable closeout receipts | [P1] Keep a recovery path for published validation evidence
  • reviewed 2026-09-25T06:13:51.292Z sha 606fcc9 :: blocked before merge. :: [P1] Preserve existing receipt fields during closeout replay | [P1] Keep an exact-evidence path for published closeout recovery
  • reviewed 2026-09-25T19:31:56.463Z sha c28907a :: blocked before merge. :: [P1] Preserve verification of recorded closeout receipts | [P1] Keep a path for exact published validation evidence
  • reviewed 2026-09-25T19:48:54.306Z sha c28907a :: blocked before merge. :: [P1] Preserve loading of waiver-free saved release state | [P1] Preserve verification of recorded closeout receipts | [P1] Keep a path for exact published validation evidence

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Addressed the concrete P3: beta coverage now names Linux, Windows, and macOS cross-OS checks. Updated the two remaining stale CI fixtures: selected failed Telegram evidence must be rerun, and selected failed child-evidence metadata blocks qualification. The before-fix focused run reproduced all three failed expectations.

The maintainer explicitly requested and reconfirmed that old waiver-bearing plans must not remain supported. The intended recovery is fresh strict qualification, not a compatibility/upgrade path that accepts retired waiver evidence. This can require rerunning otherwise green children from old waived plans; no evidence is deleted. Current strict-plan exact-target success reuse remains supported. Please treat this as the recorded policy decision, not an unresolved implementation request for legacy compatibility.

The paired selector removal, openclaw/releases#35, was merged independently at 2026-09-25T04:46:24Z (6dc6db8beb01c15a856a90c1ab9f8df01d1d3f4e). Verified merged source removes both direct latest modes and retains the legitimate stable-to-beta floor and extended-stable promotion. The rollout dependency is therefore resolved.

Both full focused files passed (96 tests); focused lint, root-test typechecks, formatting, and fresh P2 review passed. The patch was rebased onto e4414b6146d52326f1e42aaa612c5f046f23ad63 with unchanged patches to pick up main repairs.

Please reassess the current head and readiness on this evidence. This is a review-only request; do not start repair or merge automation.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 25, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

Correction to the earlier companion-rollout note: openclaw/releases#35 removed more than requested. The maintainer reverted that removal through openclaw/releases#37, merged at76e51f9a5fee0d2cbbb836dea41a52cf8aced56b. The existing beta-to-latest promotion and stable selector recovery entry points remain supported after the exact final release passes stable/full validation, soak, and blocking performance. The operator verifies qualification before dispatch; the selector workflow itself checks package/tag identity and does not authenticate FRV.

#157864 removes waiver-backed/beta-profile fast qualification. It must preserve legitimate fully qualified beta-to-stable promotion. Source publication gates continue to accept exact stable/full evidence; no old waiver-bearing plans are restored. Please assess that scope rather than treating removal of all promotion entry points as a dependency.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review. Head 70e016314f0 corrects promotion guidance following the maintainer clarification above: preserve fully qualified beta-to-stable promotion, remove only fast-track qualification and waivers.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper assist is taking a look at your question.

I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes.

Request: re-review. Head 70e016314f0 corrects promotion guidance following the maintainer clarification above: preserve fully qualified beta-to-stable promotion, remove only fast-track qualification and waivers.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Sep 25, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper assist: Head 70e016314f0 documents fully qualified beta-to-stable promotion while removing waiver-based qualification. Confirming the full 50-file change requires a fresh correctness review.

Evidence:

  • The latest comment identifies the new head and clarified scope.
  • publication-recovery.md now requires exact stable/full validation, soak, and blocking performance before promotion.
  • The previous review covered the earlier head 2b1034551e4b.

Suggested next action: Request @clawsweeper review for the current head and PR body.


Source: #157864 (comment)
Assist reasoning: medium.

@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa
RomneyDa force-pushed the fix/restore-blocking-release-validation branch from 70e0163 to 4d9363c Compare September 25, 2026 05:48
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Rebased head 4d9363cdb8b28f80b9d94f2abaf02f091ce0a679 resolves conflicts with #157905. It preserves closeout run survival and resolved-tag concurrency, removes the newly added historical publish-admitted waiver path, and keeps fully qualified beta-to-stable promotion supported. No legacy waiver-plan compatibility is restored.

All 251 focused publication/closeout/candidate tests and workflow validation passed. Fresh independent review's single finding assumed final tags default to beta; the actual stable-tag default at release-candidate-checklist.mts:331–332 and 145 passing candidate tests disprove it. The body records that disposition and the prior current-main CI assertion failure; final-head CI is pending.

@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Sep 25, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and 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 Sep 25, 2026
@RomneyDa
RomneyDa force-pushed the fix/restore-blocking-release-validation branch 2 times, most recently from 606fcc9 to 0f2c770 Compare September 25, 2026 19:14
@RomneyDa
RomneyDa force-pushed the fix/restore-blocking-release-validation branch from 0f2c770 to c28907a Compare September 25, 2026 19:23
@RomneyDa
RomneyDa enabled auto-merge (squash) September 25, 2026 23:25
@RomneyDa
RomneyDa merged commit 7e8732d into main Sep 25, 2026
183 checks passed
@RomneyDa
RomneyDa deleted the fix/restore-blocking-release-validation branch September 25, 2026 23:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 26, 2026
…rs (openclaw#157864)

* fix: restore blocking release validation and remove publication waivers

* fix(release): align recovery proof with strict validation

* docs(release): preserve qualified beta promotion

* fix(release): require strict stable orchestration and retire waived replay

* fix: read waiver-free saved release state after retry removal

* fix: discard retired capability metadata from strict release state
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 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. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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