Skip to content

fix(e2e): probe stored dev update routing - #134394

Closed
RomneyDa wants to merge 1 commit into
mainfrom
codex/fix-release-update-channel
Closed

RomneyDa wants to merge 1 commit into
mainfrom
codex/fix-release-update-channel

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 31, 2026 •

Copy link
Copy Markdown
Member

Summary

Make the update-channel Docker lane select the candidate package’s advertised stored-dev routing from its existing openclaw update --dry-run --json output. A candidate that reports the modern git route exercises the stored-channel transition; one that reports the older package route uses the documented explicit --channel dev transition instead.

The harness rejects malformed or inconsistent dry-run output. It still proves explicit dev (including explicit-dev plus tag) and git→package switching for every supported candidate. Current main retains direct CLI unit coverage for the stronger stored-channel-to-git behavior.

Root cause

The frozen 2026.6.35 candidate predates main commit #123083. It reports updateInstallKind: package and switchToGit: false for a package install with stored update.channel: dev; the newer harness unconditionally asserted the later git behavior, so the candidate full-validation lane failed before testing the explicit transition that it actually supports.

This uses no SHA/version allowlist: only the candidate CLI’s no-mutation dry-run JSON decides which already-advertised routing contract the harness exercises.

Proof

  • Candidate failure: full-validation child job 99385643608 showed installKind: package, updateInstallKind: package, and switchToGit: false for stored dev, followed by the harness’s incompatible package !== git assertion.
  • Focused new helper regression: node scripts/run-vitest.mjs test/scripts/update-channel-switch-assertions.test.ts — 3 passed. It covers both advertised routes and rejects inconsistent metadata.
  • The combined command also ran src/cli/update-cli.test.ts; that shard was blocked before test collection by the pre-existing local rolldown worker compiler error (external received boolean), while the new helper shard passed.
  • Format, git diff --check, and bash -n scripts/e2e/update-channel-switch-docker.sh passed.

Production delta: 0. Harness/test-support delta: +42/-3; focused regression test delta: +47/-0.

Best-fix judgment

Changing the frozen package or using a version/SHA exception would make release validation non-generic. The command’s existing dry-run JSON is the exact observable capability the harness needs, and unknown/inconsistent output fails closed.

@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S maintainer Maintainer-authored PR labels Aug 31, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. 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. labels Aug 31, 2026
@clawsweeper

clawsweeper Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 31, 2026, 3:04 PM ET / 19:04 UTC.

ClawSweeper review

What this changes

The PR changes the Docker update-channel acceptance test to choose between an unflagged and explicit dev transition based on the installed candidate’s dry-run routing JSON.

Regression provenance

Possible regression — probable (reviewed change; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for maintainer review: this PR makes the packaged acceptance lane accept a stored-dev package route that current OpenClaw explicitly defines as a Git transition, so a packaged regression can pass unnoticed.

Priority: P2
Reviewed head: c82b18f59938763ed8281ff388fdc5b4817fe269
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has a focused purpose but currently weakens the package-level regression boundary it is intended to maintain.
Proof confidence 🌊 off-meta tidepool Not applicable: This repository-member PR is exempt from the external-contributor proof gate; the supplied body records a prior installed-package failure, but no after-fix Docker result was needed to classify that exemption.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This repository-member PR is exempt from the external-contributor proof gate; the supplied body records a prior installed-package failure, but no after-fix Docker result was needed to classify that exemption.
Evidence reviewed 6 items Current stored-dev contract: Current main routes an effective stored or explicit dev channel to Git unless a one-off tag is present.
Published channel behavior: The release-channel documentation says a package install on dev switches to a Git checkout.
Introduced regression trigger: The introduced package branch leaves the explicit flag set, so a candidate advertising the old package route skips the unflagged stored-dev transition and proceeds through the explicit transition instead.
Findings 1 actionable finding [P1] Keep stored-dev routing as a package acceptance requirement
Security None None.

How this fits together

The update command reads the persisted update channel and selects the package or Git update flow. The Docker acceptance lane installs a candidate package and validates that its update-routing behavior preserves the published channel contract.

flowchart LR
  A[Candidate package] --> B[Installed update command]
  C[Stored dev channel] --> B
  B --> D[Dry-run routing JSON]
  D --> E[Docker acceptance assertion]
  E --> F[Git or package update flow]
Loading

Decision needed

Question Recommendation
Should this lane validate a deliberately frozen pre-fix package, and if so what explicit expected-route input distinguishes it from ordinary candidate-package acceptance? Preserve current-candidate enforcement: Require unflagged stored dev to select Git for ordinary candidate packages and validate any frozen package in a separately declared compatibility case.

Why: The current generic probe cannot distinguish an intended historical compatibility case from a regression in the artifact being validated.

Before merge

  • Keep stored-dev routing as a package acceptance requirement (P1) - The candidate artifact is what this lane validates. If it reintroduces the documented stored-dev-to-Git regression, this branch accepts its package preview and uses explicit --channel dev for the later update, so the lane passes. Preserve the unflagged assertion for ordinary candidates; put the frozen pre-fix artifact behind an explicit legacy expectation instead.
  • Resolve merge risk (P1) - A future candidate package that regresses stored update.channel: dev routing to the package flow will now pass this Docker lane because the lane substitutes explicit --channel dev before its mutating transition.
  • Complete next step (P2) - This member-authored, maintainer-labeled PR needs human review of the intended legacy-package acceptance boundary and is not an automatic repair candidate.

Findings

  • [P1] Keep stored-dev routing as a package acceptance requirement — scripts/e2e/update-channel-switch-docker.sh:175-184
Agent review details

Security

None.

PR surface

Tests +47, Other +39. Total +86 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 47 0 +47
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 42 3 +39
Total 3 89 3 +86

Review metrics

Metric Value Why it matters
Production vs. validation delta production +0; harness/test support +39; tests +47 The change is confined to validation, but it relaxes the packaged assertion that guards a documented update compatibility behavior.

Stored data model

Persistent data-model change detected: serialized state: scripts/e2e/lib/update-channel-switch/assertions.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Separate the legacy fixture from the regression gate (recommended)
    Retain the unflagged stored-dev Git assertion for normal package candidates and give the frozen package an explicit compatibility expectation.
  2. Accept the narrower test contract
    Land the capability probe only if maintainers intentionally accept losing packaged detection of a stored-dev routing regression.

Technical review

Best possible solution:

Keep the unflagged stored-dev assertion mandatory for ordinary candidate packages, and isolate any intentional frozen pre-fix package validation behind an explicit expected-route fixture contract rather than deriving acceptance from the candidate’s own output.

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

Yes, from source: an installed candidate reporting updateInstallKind: "package" for stored dev takes the introduced package branch and then succeeds through explicit dev; the reviewer did not execute the Docker lane in this read-only review.

Is this the best way to solve the issue?

No. Candidate dry-run metadata is the result under test, so using it as the expected result masks the same stored-dev regression that the packaged lane should detect.

Full review comments:

  • [P1] Keep stored-dev routing as a package acceptance requirement — scripts/e2e/update-channel-switch-docker.sh:175-184
    The candidate artifact is what this lane validates. If it reintroduces the documented stored-dev-to-Git regression, this branch accepts its package preview and uses explicit --channel dev for the later update, so the lane passes. Preserve the unflagged assertion for ordinary candidates; put the frozen pre-fix artifact behind an explicit legacy expectation instead.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded package-update acceptance regression with limited immediate user impact.
  • add merge-risk: 🚨 compatibility: The introduced probe can allow a candidate package to violate the persisted dev-channel routing contract without failing acceptance.
  • 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: This repository-member PR is exempt from the external-contributor proof gate; the supplied body records a prior installed-package failure, but no after-fix Docker result was needed to classify that exemption.

Label justifications:

  • P2: This is a bounded package-update acceptance regression with limited immediate user impact.
  • merge-risk: 🚨 compatibility: The introduced probe can allow a candidate package to violate the persisted dev-channel routing contract without failing acceptance.
  • 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: This repository-member PR is exempt from the external-contributor proof gate; the supplied body records a prior installed-package failure, but no after-fix Docker result was needed to classify that exemption.

Evidence

What I checked:

  • Current stored-dev contract: Current main routes an effective stored or explicit dev channel to Git unless a one-off tag is present. (src/cli/update-cli/update-command.ts:279, 2cbc2e59da75)
  • Published channel behavior: The release-channel documentation says a package install on dev switches to a Git checkout. Public docs: docs/install/development-channels.md. (docs/install/development-channels.md:46, 2cbc2e59da75)
  • Introduced regression trigger: The introduced package branch leaves the explicit flag set, so a candidate advertising the old package route skips the unflagged stored-dev transition and proceeds through the explicit transition instead. (scripts/e2e/update-channel-switch-docker.sh:175, c82b18f59938)
  • Candidate artifact is the behavior under test: The Docker helper uses the supplied package artifact when present, otherwise packs the selected source root; accepting its routing output therefore weakens package-level regression detection rather than only adapting a fixture. (scripts/lib/docker-e2e-package.sh:164, c82b18f59938)
  • Existing owner-boundary coverage: Current main has a direct stored-dev package-install test that expects the Git update flow, but it mocks the updater and cannot replace an installed-package assertion. (src/cli/update-cli.test.ts:4503, 2cbc2e59da75)
  • Related repair context: The related merged PR addressed the runtime stored-dev routing behavior; this PR instead changes the acceptance lane that should continue detecting a packaged reintroduction. (3f749b97ca05)

Likely related people:

  • Chinmayrawat15: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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.

  • Keep unflagged stored-dev routing mandatory for ordinary package candidates and make any frozen legacy route an explicit fixture expectation.
  • Run the installed-package Docker lane against both the ordinary candidate and the declared frozen compatibility case, then post redacted output.

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.

@RomneyDa

Copy link
Copy Markdown
Member Author

Superseded by #134440. ClawSweeper correctly identified that the capability probe made the candidate output its own oracle and could mask a stored-dev routing regression. #134440 repairs the candidate update-command owner instead; no SHA/version exception or relaxed package assertion.

@RomneyDa RomneyDa closed this Aug 31, 2026
@RomneyDa
RomneyDa deleted the codex/fix-release-update-channel branch October 22, 2026 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S 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