Repository navigation
fix(release): assert the Codex CLI pin the candidate declares - #137136
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Trusted Docker assertions used main's Codex CLI pin for frozen release packages, rejecting the self-consistent 2026.9.1 candidate after main advanced from 0.152.1 to 0.153.0. The candidate plugin manifest owns the expected version. Mount it separately in both lanes and retain exact plugin dependency, installed package, platform alias, and executable checks. Remove duplicate containment checks and inline the one-use evidence writer; tooling is net -2 lines. Proof: candidate fixtures reproduce the old version failure; 51 focused Codex install/client-version tests pass, pnpm check:changed passes, and independent P0-P2 autoreview reports no actionable findings.
4a9f799 to
20575e3
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 4:12 AM ET / 08:12 UTC. ClawSweeper reviewWhat this changesThe PR makes Docker release-validation assertions obtain the expected Codex CLI version from the frozen candidate’s plugin manifest and tests both Docker assertion callers against matching and mismatching pins. Regression provenancePossible regression — probable (reviewed change; failure trace). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review No blocking findings. This active maintainer PR repairs a real frozen-candidate validation failure: current main still hardcodes the trusted harness pin, while the branch makes the candidate manifest authoritative and retains independent installed-package, platform, and executable checks. Priority: P2 Review scores
Verification
How this fits togetherRelease Docker lanes package a frozen OpenClaw candidate, install its Codex plugin, and validate the resolved CLI and platform package before accepting the candidate. The changed assertions connect candidate metadata to the installed plugin, Codex package, platform package, and executable version checks. flowchart LR
A[Frozen candidate manifest] --> B[Docker release lane]
B --> C[Mounted candidate metadata]
C --> D[Shared package assertion]
E[Installed plugin and CLI] --> D
D --> F[Platform and version checks]
F --> G[Release validation result]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +36, Other -2. Total +34 across 6 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge the candidate-manifest contract after normal exact-head CI, preserving one candidate-owned expected version and independent checks of the installed plugin, package, platform alias, and executable. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main unconditionally expects 0.153.0, whereas the branch’s focused fixtures model a frozen candidate at 0.152.1 and exercise the two shared assertion callers. The supplied PR body also records a before/after Docker run, though it was not rerun during this read-only review. Is this the best way to solve the issue? Yes. The candidate manifest is the correct expected-version owner for frozen validation, and the patch preserves the independent installed-artifact checks rather than weakening them. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 51becd0cfe8c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* commit '13b1f71c7010baaf2394555198e2fc04bef03586': (283 commits) fix(ui): retire stale MCP feedback across context changes (#128490) fix(agents): clarify set-identity workspace output (#126320) fix(auth): preserve OAuth metadata during session SDK refresh (#127988) fix(agents): recover catalog worker after generation mismatch (#127712) fix(memory-wiki): reject out-of-range claim confidence (#125656) ci: remove redundant contract runs and costly test work (#137220) fix(release): assert the Codex CLI pin the candidate declares (#137136) test(voice-call): reuse shared guards and deferred gates (#137262) fix(cron): isolate scheduler-disabled shared-store writes (#131733) fix(telegram): surface allowed custom reactions in react guidance (#129817) test(infra): reuse the shared npm call presence guard (#137254) fix: generated images disappear after failed tool calls (#131226) fix(docs): match source anchor checks to published sections (#137157) fix(backup): preserve audit capture across slow snapshots (#130962) fix(release): preserve legacy gh log reads (#137016) fix(memory-core): make forget rewrites atomic (#131383) fix(agents): write settings atomically (#131431) fix(plugins): keep the memory indexing runtime with the selected slot owner (#131779) fix(ci): pin iOS screenshot evidence to workflow revision (#136334) test(logging): remove redundant stderr spy casts (#137238) ... # Conflicts: # scripts/e2e/lib/codex-release-package-assertions.mjs
…aw#137136) * fix(release): assert the Codex CLI pin the candidate declares Trusted Docker assertions used main's Codex CLI pin for frozen release packages, rejecting the self-consistent 2026.9.1 candidate after main advanced from 0.152.1 to 0.153.0. The candidate plugin manifest owns the expected version. Mount it separately in both lanes and retain exact plugin dependency, installed package, platform alias, and executable checks. Remove duplicate containment checks and inline the one-use evidence writer; tooling is net -2 lines. Proof: candidate fixtures reproduce the old version failure; 51 focused Codex install/client-version tests pass, pnpm check:changed passes, and independent P0-P2 autoreview reports no actionable findings. * test(release): prove invalid candidate Codex pins --------- Co-authored-by: Vincent Koc <[email protected]>
Related: #136918 (make plugin dependency freshness advisory for frozen releases).
What Problem This Solves
Resolves a problem where release operators validating the frozen 2026.9.1 candidate with newer trusted tooling hit false failures in
codex-on-demandandlive-codex-npm-plugin. Full Release Validation 33722524584 hit this in Docker job 100549513614: the candidate declares Codex CLI0.152.1, while the tooling required main's0.153.0.Why This Change Was Made
Each lane mounts its candidate checkout's
extensions/codex/package.jsonread-only, separately from the trusted harness, and the shared assertion uses that manifest's exact CLI pin. It still requires the installed plugin dependency, resolved CLI package, platform alias specification/version, and executable--versionto match that pin, retaining platform metadata and managed-path containment checks.The candidate checkout already owns package/plugin preparation: on-demand receives
OPENCLAW_DOCKER_E2E_REPO_ROOT, and npm-live usesCANDIDATE_ROOT. The core tarball excludesdist/extensions/codex/**, and its external-plugin catalog has no CLI pin; using the installed plugin alone would lose the independent candidate/plugin comparison. Duplicate caller containment checks and a one-use evidence writer are removed.User Impact
Release operators can validate a self-consistent frozen candidate after main advances its Codex version. Candidate/plugin mismatches and non-exact pins remain blocking. No candidate, runtime, configuration, environment option, dependency version, or publication change.
Evidence
@openclaw/codex must depend on @openai/codex 0.153.0; found 0.152.1. The frozen unit fixtures also fail against the original assertion for this mismatch.pnpm test test/scripts/codex-install-assertions.test.ts test/scripts/codex-client-version-contract.test.ts: 51 passed. Both callers accept the frozen pin and reject a plugin pin differing from the candidate; the three non-exact candidate-pin cases now use the same invalid pin in candidate and plugin metadata, fail against pre-fix code for the intended hardcoded-version error, and pass on this branch. Existing installed-package, platform, CLI, and missing-native-binary checks remain covered.pnpm check:changed: passed.bash -nfor both changed Docker scripts andgit diff --checkalso passed..agents/skills/autoreview/scripts/autoreview --mode branch --base 7aff510afad21033fd0e7cd9bfc8197fdab1d4f3 --max-priority P2: scoped-clean, no actionable P0–P2 findings after the invalid-pin test correction. Intervening main changes did not touch these files, and the current three-way merge is clean.904200199c209c1abeaa42914e6359e5cb36afc4:pnpm install && pnpm buildpassed in a second detached worktree.node scripts/package-openclaw-for-docker.mjs --source-dir "$candidate" --skip-build --output-dir "$candidate/.artifacts/codex-pin-proof" --output-name openclaw-current.tgzpassed, including tarball integrity/import-graph checks. Core tarball SHA-256:91b3d3f7392310bd45a6b704af1630e1977e5c8c3959a78890569d1a88284709.prepublish-plugin-registry-artifact.mjs createhelper built the companion from that same clean frozen checkout; packed@openclaw/[email protected]declares@openai/codex: 0.152.1.Tooling LOC: +17/-19 (net −2); tests: +42/-1. Direct Codex source inspection at
728cb12fe5794b0c3a8e776fb4994b1650b973a8confirmed the platform aliases incodex-cli/bin/codex.js, npm alias/version generation incodex-cli/scripts/build_npm_package.py, and the CLI package/bin contract incodex-cli/package.json.Local Docker proof used the exact lane command below on Linux ARM64 (CI was Linux x64), with the same rebuilt core/plugin artifacts for both runs:
13799ec4f8380c14f7ce1836ce611291254bdda2: exit 1, reproducingmust depend on @openai/codex 0.153.0; found 0.152.1at the shared assertion.4a9f799ae6cbff007f0bfb6f1ca0ee0507b2137b: exit 0, fullCodex on-demand Docker E2E passed. Evidence: package and CLI0.152.1, platform alias@openai/codex-linux-arm64, platform version0.152.1-linux-arm64, OSlinux, CPUarm64. The managed-app-server doctor check returnedok:truewith zero findings. Ordinary doctor completed 30 checks with the empty-fixture heartbeat and loopback onboarding warnings expected by the lane.Not rerun: hosted Full Release Validation/Linux x64 lanes or credentialed live Codex agent turns. Both assertion callers are covered by unit tests; real Docker proof covers installation, onboarding, native CLI execution, and doctor. The release candidate remains unchanged.