Skip to content

fix(release): reject incompatible routes before qualification - #196878

Merged
RomneyDa merged 1 commit into
mainfrom
openclaw/retro-preflight
Nov 10, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
openclaw/retro-preflight

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

An incompatible publication route could consume full release qualification before source admission rejected it; retired-line problems also appeared too late.

User Impact

Release operators get route/version errors before qualification, including when resuming an accepted pre-qualification request. Retired-line warnings appear early without replacing publisher approval.

Why This Change Was Made

Move the existing committed-version policy into the shared publication contract and use it from both qualification preflight and source admission. Reuse one preflight helper for fresh and prepared requests. Already-attempted requests retain read-only reconciliation; publisher authority and final checks remain unchanged.

Evidence

  • Follow-up authorized by Dallin Romney after the 2026.9.37 retrospective.
  • Three CLI regressions cover early route refusal, advisory retirement, and historically consistent accepted-P resume. The resume test failed before the fix (incorrectly exited 0) and passes with refusal before Q/ref writes; retained request bytes remain unchanged.
  • Candidate suite: 38 passed. Focused route/recovery/reconciliation: 7 passed. Existing publication contract and source-admission suites: 115 and 105 passed before the resume-only correction.
  • Script and root-script-test typechecks, targeted oxlint, formatting, and git diff --check passed.
  • Fresh independent review identified the resumed-request gap; corrected and re-reviewed: no actionable findings; three independent focused tests passed. Local ClawSweeper/autoreview executables unavailable; independent review follows the task-specific alternative direction.
  • Simplification: source admission and qualification share the existing policy rather than maintaining two copies. Added regression-test allocation: 112 lines for the distinct fresh, advisory, and retained-request boundaries. No Markdown-ledger tests or CI added.

@clawsweeper

clawsweeper Bot commented Nov 10, 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 November 10, 2026 21:39
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: M labels Nov 10, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR checks publication route/version compatibility before fresh or resumed qualification and warns early about retired maintenance lines.

Example: Qualify version 2026.8.1 with route extended-stable and npmDistTag extended-stable.

  • Before: Qualification could start before source admission rejected the incompatible selection.
  • After: The CLI rejects the selection before admission dispatch or qualification ref creation.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, useful repair with distinct CLI regressions and successful current-head gates; behavior evidence remains harness-based.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate and does not materially change authority; supplied evidence exercises the CLI through synthetic transport rather than live GitHub.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators discover incompatible publication selections only after qualification work has been consumed.
Reason: The maintainer-authored direction improves failure timing using existing policy and preserves explicitly approved retired-line publication.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it addresses a concrete release-operator failure still present on main, preserves existing publication policy, and has no actionable introduced defect.

Priority: P2
Reviewed head: e884f0c0cc3ace1604614226801decebc067573e

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied CLI regressions use synthetic GitHub transport; no live CLI capture of the changed preflight is supplied.
Agent review details

How this fits together

The exact-SHA release CLI accepts candidate identity and publication intent, obtains trusted admission, and dispatches candidate-owned qualification; separate publisher checks authorize publication.

flowchart TD
  A[Release operator] --> B[Exact SHA CLI]
  B --> C[Shared route policy]
  C --> D[Trusted admission]
  D --> E[Candidate qualification]
  E --> F[Publisher authority checks]
  C --> G[Early refusal or advisory]
Loading

Technical review

Best possible solution:

Use the shared compatibility validator before qualification effects while retaining advisory retirement checks and independent publisher authorization.

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

Current-main source allows qualification to proceed before the route/version check in source admission; supplied CLI regressions cover the path, but this read-only review ran no reproduction.

Is this the best way to solve the issue?

The patch uses the existing policy owner, removes the duplicate implementation, and covers both fresh and prepared requests without changing reconciliation or publication authority.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Committed-version compatibility and retired alpha rejection keeps the original intent (7bf4e2e: Reject invalid publication sources before producer fanout while preserving supported stable, beta, correction, and Windows selections; alpha rejection was subsequently established by 14cc3a4.)
  • Prepared-request resume and attempted-request reconciliation keeps the original intent (4a474f2: Resume qualification before its first workflow POST without duplicate ref creation, while keeping attempted requests observation-only.)
  • Retired-line publication authority keeps the original intent (ad73036: Permit explicitly approved retired-line publication through authenticated publisher receipts without changing frozen candidate source.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 2e94b09 adds scripts/full-release-validation-at-sha.mts:2035 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2e94b0988ea1; files: scripts/full-release-validation-at-sha.mts)
  • Vincent Koc: Raw commit 7bf4e2e adds scripts/full-release-publication-admission.mts:170 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7bf4e2e088bc; files: scripts/full-release-publication-admission.mts)

PR surface

Tests +112, Other +53. Total +165 across 6 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 112 0 +112
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 5 86 33 +53
Total 6 198 33 +165

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.

Labels

Label changes:

  • add P2: Incompatible operator selections waste qualification work and delay useful diagnostics, with limited impact outside release tooling.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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:

  • P2: Incompatible operator selections waste qualification work and delay useful diagnostics, with limited impact outside release tooling.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 10, 2026, 4:56 PM ET / 21:56 UTC.

@RomneyDa
RomneyDa merged commit 759eda2 into main Nov 10, 2026
174 of 175 checks passed
@RomneyDa
RomneyDa deleted the openclaw/retro-preflight branch November 10, 2026 22:15
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
RomneyDa added a commit that referenced this pull request Nov 12, 2026
Release adaptation: retain the release branch transport-resume tests; add only
the incompatible retained-selector regression from the source. Preserve Q=C,
intended-workflow resume guards, and explicit stable qualification of beta.

Proof: 30 candidate tests pass; scripts typecheck and focused lint pass.
Fresh independent review: no actionable findings.

(cherry picked from commit 759eda2)

Co-authored-by: RomneyDa <[email protected]>
github-actions Bot pushed a commit to clawhaven/openclaw that referenced this pull request Nov 16, 2026
…aw#196878)

Co-authored-by: RomneyDa <[email protected]>

(cherry picked from commit 759eda2)

Stable adaptation: preserve the existing pre-Q resume lifecycle guard; use stable test fixture interfaces and explicit selection fields instead of future-main test helpers.

(cherry picked from commit 5ac146bf522d43a3ce6f75a35bce5ed32a3b7f42)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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