Repository navigation
fix(release): decouple stable correction validation from upstream releases - #1303
Conversation
…leases Windows Hub application release tags are their own version domain. The stable correction validator required the exact tag to already exist as a published stable openclaw/openclaw release, which blocks publishing v2026.7.1-3 because no matching upstream release exists. Remove only that coupling and tighten the remaining ordering rule: a correction must stay on the same X.Y.Z base line as the current Windows latest release and carry a strictly greater numeric correction, so same, older, and different-line corrections fail closed and a published tag can never be moved or reused. Add a -CurrentWindowsTag offline input plus a deterministic regression harness wired into CI, and source contracts proving the validator has no upstream release API dependency and that the release job still revalidates ordering after signing and before publication. GatewayReleasePolicy.RecommendedVersion and its evidence gates are unchanged. Co-authored-by: Copilot App <[email protected]>
…ation Review follow-up. The release workflow only recognized well-formed correction suffixes, so a malformed tag such as v2026.7.1-0 skipped the validator entirely and was classified by GitVersion as an ordinary prerelease. Match every numeric suffix in the workflow and let the validator's tag pattern be the single authority that accepts or rejects it. Also fail closed online: reject a candidate that already has a published Windows release, and refuse to order against a draft, prerelease, or unpublished latest release. HTTP status extraction tolerates PowerShell 5.1 and 7 exception shapes under strict mode, and any non-404 lookup failure is an error rather than an implicit 'not published'. Cover the workflow classification behaviorally by extracting the live pattern from ci.yml in the regression harness. Co-authored-by: Copilot App <[email protected]>
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 2, 2026, 9:44 PM ET / September 3, 2026, 01:44 UTC. ClawSweeper reviewWhat this changesThe PR makes Windows stable-correction releases validate against the Windows Hub's latest release rather than an upstream release, adds fail-closed ordering checks and regression coverage, and documents the separate version domains. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 4 items remain Keep open. This collaborator-authored PR remains necessary because the pinned base rejects a Windows correction when the separate upstream release is absent; the proposed local same-line gate addresses that blocker with strong terminal proof, but the release-policy change needs explicit release-owner confirmation before merge. Priority: P1 Review scores
Verification
How this fits togetherTagged Windows Hub releases pass through CI version resolution before artifacts are built, signed, and published. Numeric correction tags are routed to a validator that reads the Windows Hub release state and decides whether publishing may proceed. flowchart LR
Tag[Tagged Windows correction] --> Resolve[Release version resolution]
Resolve --> Validator[Correction validator]
Validator --> Latest[Windows latest release]
Latest --> Decision[Same-line ordering decision]
Decision --> Signing[Build and sign artifacts]
Signing --> Recheck[Revalidate before publishing]
Decision needed
Why: This is an intentional production release-policy change. Source and tests establish the mechanics, but cannot determine which repository owns final correction-release authority. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the repository-local Windows correction policy only after the release owner confirms it, while retaining the same-line, monotonic, unpublished-tag, and post-signing revalidation gates. Do we have a high-confidence way to reproduce the issue? Yes. The pinned introduced diff identifies the upstream release lookup as the blocking path, and the supplied terminal trace records the missing upstream tag plus the current-head validator accepting the intended local correction. Is this the best way to solve the issue? Yes, conditional on release-owner approval. The patch removes only the cross-repository prerequisite while preserving and strengthening local ordering and publication safeguards. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1b4b5d1b4c20. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Release-owner decision: approve Windows Hub stable-correction tags as an independent application version domain. v2026.7.1-3 advances this repository's current v2026.7.1-2 release line and does not imply a Gateway release promotion. Setup remains pinned to validated Gateway 2026.6.34; GatewayReleasePolicy and its evidence rules remain unchanged. Proceed subject to green required CI and the existing same-base, monotonic, unpublished-tag, exact-SemVer, signing, and post-signing revalidation gates. |
…eases (openclaw#1303) * fix(release): decouple correction release validation from upstream releases Windows Hub application release tags are their own version domain. The stable correction validator required the exact tag to already exist as a published stable openclaw/openclaw release, which blocks publishing v2026.7.1-3 because no matching upstream release exists. Remove only that coupling and tighten the remaining ordering rule: a correction must stay on the same X.Y.Z base line as the current Windows latest release and carry a strictly greater numeric correction, so same, older, and different-line corrections fail closed and a published tag can never be moved or reused. Add a -CurrentWindowsTag offline input plus a deterministic regression harness wired into CI, and source contracts proving the validator has no upstream release API dependency and that the release job still revalidates ordering after signing and before publication. GatewayReleasePolicy.RecommendedVersion and its evidence gates are unchanged. Co-authored-by: Copilot App <[email protected]> * fix(release): route every numeric-suffix tag through correction validation Review follow-up. The release workflow only recognized well-formed correction suffixes, so a malformed tag such as v2026.7.1-0 skipped the validator entirely and was classified by GitVersion as an ordinary prerelease. Match every numeric suffix in the workflow and let the validator's tag pattern be the single authority that accepts or rejects it. Also fail closed online: reject a candidate that already has a published Windows release, and refuse to order against a draft, prerelease, or unpublished latest release. HTTP status extraction tolerates PowerShell 5.1 and 7 exception shapes under strict mode, and any non-404 lookup failure is an error rather than an implicit 'not published'. Cover the workflow classification behaviorally by extracting the live pattern from ci.yml in the regression harness. Co-authored-by: Copilot App <[email protected]> --------- Co-authored-by: Copilot App <[email protected]>
Summary
The final release blocker for
v2026.7.1-3is thatscripts\Test-OpenClawStableCorrectionRelease.ps1required the Windows Hub correction tag to also exist as a published stable release in the separateopenclaw/openclawrepository. That release does not exist (verified404), so the tagged release run would hard-fail before building anything.Windows Hub application release tags and the Gateway package pin are independent version domains. This PR removes only that cross-repository coupling and tightens everything that remains.
GatewayReleasePolicy.RecommendedVersionstays at2026.6.34and its evidence gates are untouched. No file undersrc/OpenClaw.SetupEngineis modified.What changed
Validator (
scripts\Test-OpenClawStableCorrectionRelease.ps1)openclaw/openclawrelease lookup.X.Y.Zbase line and carry a strictly greater numeric correction. Same, older, and different-line corrections fail closed.-CurrentWindowsTaginput evaluates the ordering rule offline for previews and tests. CI never passes it.Workflow (
.github/workflows/ci.yml)X.Y.Z-<digits>tag, so a malformed tag such asv2026.7.1-0can no longer skip the validator and be published as an ordinary prerelease. The validator's tag pattern is the single accept/reject authority.Tests
scripts\test-stable-correction-release-validator.ps1: deterministic offline accept/reject matrix plus behavioral workflow-classification coverage that extracts the live regex out ofci.yml.VersioningContractTests: source contracts proving no upstream release API dependency, the same-line monotonic guards, the new fail-closed checks, and that revalidation is ordered after signing and before publication.Docs
docs/RELEASING.md,docs/VERSIONING.md: the two version domains, the new rule, offline preview examples, and thev2026.7.1-2/f46400aa/ run33221425381facts.docs/adr/0001-gateway-release-policy.md: clarifies that Gateway upstream evidence is a separate domain and is unchanged.Required proof pools
none: release-process only. This change touches release validation scripts, the release workflow's version resolution, contract tests, and docs. It does not change tray UX, WinUI surfaces, installers, ARM64 behavior, MXC/system.run, gateway pairing, or node/MCP capabilities, so no capacity-dependent host class is required.Validation
.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\... --filter "FullyQualifiedName~VersioningContractTests".\scripts\test-stable-correction-release-validator.ps1(pwsh 7 and Windows PowerShell 5.1).\scripts\validate-docs.ps1Rubber-duck review: run one raised a blocking workflow-bypass finding (
v2026.7.1-0skipping the validator) plus two fail-closed gaps. All three are fixed in07c0ff56. Re-review verdict: "No remaining blocking or high-severity correctness issues found. The fixes are correct and complete."Real behavior proof
Live GitHub API, actual release decision (pwsh 7 and Windows PowerShell 5.1, identical results):
The intended release tag is accepted against the live
v2026.7.1-2latest release, and reusingv2026.7.1-2is refused.Blocker reproduction (pre-change behavior):
Offline dry-run decisions:
Full offline harness:
Release state facts confirmed against the remote:
v2026.7.1-2therefore dereferences to the correction-aware commit and its signed assets came from run 33221425381.Not verified / blocked: the tagged release workflow itself cannot run from a PR branch. The publication path is proven only by the validator's live-API decision above, the revalidation-before-publish source contract, and the existing signed run 33221425381. Tagging and publishing are left to the coordinator.
Client update path
Older unsuffixed
2026.7.1clients predate the correction-aware update path and use Updatum's default parser, which drops the numeric suffix before comparison, so they may need a manual transition. Clients on2026.7.1-2are correction-aware: even though Updatum 1.3.4's default parsing does not rank2026.7.1-3above2026.7.1-2, theOpenClawReleaseVersionfallback inUpdateCheckPipelinecompares under OpenClaw correction ordering and discovers2026.7.1-3.