Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 31, 2026, 3:04 PM ET / 19:04 UTC. ClawSweeper reviewWhat this changesThe 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 provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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]
Decision needed
Why: The current generic probe cannot distinguish an intended historical compatibility case from a regression in the artifact being validated. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +47, Other +39. Total +86 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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 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:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2cbc2e59da75. 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
|
Summary
Make the update-channel Docker lane select the candidate package’s advertised stored-
devrouting from its existingopenclaw update --dry-run --jsonoutput. 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 devtransition 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: packageandswitchToGit: falsefor a package install with storedupdate.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
installKind: package,updateInstallKind: package, andswitchToGit: falsefor storeddev, followed by the harness’s incompatiblepackage !== gitassertion.node scripts/run-vitest.mjs test/scripts/update-channel-switch-assertions.test.ts— 3 passed. It covers both advertised routes and rejects inconsistent metadata.src/cli/update-cli.test.ts; that shard was blocked before test collection by the pre-existing local rolldown worker compiler error (externalreceived boolean), while the new helper shard passed.git diff --check, andbash -n scripts/e2e/update-channel-switch-docker.shpassed.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.