Skip to content

fix(codex): align managed installs and release checks on 0.152.1 - #136184

Merged
steipete merged 3 commits into
mainfrom
codex/align-codex-0.152.1
Sep 2, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/align-codex-0.152.1

Conversation

@steipete

@steipete steipete commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor
Additional instructions

MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.

What Problem This Solves

Resolves a problem where release validation rejects an installed Codex 0.152.1 candidate in the on-demand and live npm-plugin checks. Updating the candidate alone is insufficient: these checks deliberately execute the separately trusted main-branch harness.

Why This Change Was Made

Align the official plugin's managed dependency, runtime pin, release-package expectation, fixture, lockfile, and documented binary snapshot on 0.152.1. This keeps one exact managed-version contract rather than adding a configurable assertion or a fallback.

OpenClaw package version metadata and the external-runtime minimum of 0.149.0 stay unchanged. The ACP workspace override is also aligned to 0.152.1, preserving the existing intentionally shared managed-runtime contract without weakening its manifest test. The existing negotiated elicitation mode is unchanged; upstream's new form mode is opt-in and is not required by this upgrade. Maintained generated protocol mirrors are unchanged after canonical regeneration against Codex rust-v0.152.1.

User Impact

Managed Codex installs use 0.152.1, and release checks accept that same exact version while continuing to validate the wrapper, native platform package, and executable. The model-catalog documentation now distinguishes an unauthenticated metadata snapshot from account entitlement. No new configuration, protocol, or persistence surface is introduced.

Evidence

Local verification used Node 24.19.0 and pnpm 12.1.0:

  • Reproduced the old trusted-harness failure against the actual installed candidate: @openclaw/codex must depend on @openai/codex 0.151.0; found 0.152.1. The same check passes after alignment, including the Darwin ARM64 native package and actual codex-cli 0.152.1 executable.
  • 355 tests passed across six focused files covering config, protocol validators, model catalog, install assertions, elicitation bridging, and native finalization.
  • The existing restricted-MCP real-binary live test passed against managed 0.152.1. It exercised startup and thread creation, verified no tool exposure, and verified the disabled inherited MCP process was not launched. This is not an authenticated model-inference claim.
  • pnpm codex-app-server:protocol:check passed using the exact upstream tag and its Rust 1.95.0 toolchain. Canonical source regeneration, maintained-type compatibility, and snippet checks passed without changing maintained generated outputs. Direct upstream inspection included codex-rs/codex-mcp/src/client_capabilities.rs:16, codex-rs/rmcp-client/src/elicitation_client_service.rs:68, and the protocol export owner codex-rs/app-server-protocol/src/precomputed_exports.rs.
  • The canonical changed-file gate passed: 94 transient npm lock checks, all selected typechecks, typed lint, formatting, dependency/boundary guards, unused-code checks, and cycle checks. Frozen dependency installation also passed.
  • The canonical package-local build and npm pack passed. The actual tarball contains the compiled 0.152.1 runtime pin, and both canonical install-entry validation and installed-global resolution accept dist/index.js without diagnostics. This local main-branch package retains version 2026.8.1; it is not a 2026.9.1 release artifact or a publication claim.
  • Isolated Codex autoreview completed with no findings at its default P0 threshold. Source hashes were unchanged afterward. Exact-head PR CI and release validation remain separate gates.

Gateway-backed authenticated live proof

The existing gateway-codex-harness.live.test.ts passed twice on clean 692b23ffc65b935bf5f8663b28b3b6526b40e000, after the canonical qaRuntime build stamped that same head. Both runs used explicit openai/gpt-5.6-luna, low effort and API-key authentication through the real Gateway and plugin-owned managed Codex app-server. A fresh empty source home and the canonical test-owned temporary home kept personal Codex accounts and configuration out of the run.

The enabled lifecycle test passed all six mandatory model turns and the start/resume, /new, status, model listing, sibling-session survival, deletion and native-history reattachment assertions. Its only skipped counterpart was the intentionally disabled-harness opt-in test, not a skipped smoke. The command owner was:

node --import ./scripts/tsx.mjs scripts/test-live.mts --codex-harness -- src/gateway/gateway-codex-harness.live.test.ts --maxWorkers=1

The second run added a read-only process observer without changing the test. Both observed native app-server processes mapped the exact managed 0.152.1 executable, SHA-256 8194ea3181f330e63023b234b0b231855e5874e0331c5ef7cbc490591497a7bf, with stable process identity and ancestry to the isolated loopback Gateway. After exit 0, all 39 observed owned process identities were gone, the port refused connections, and the temporary state was removed. Source, build stamps and native bytes remained unchanged. This is authenticated PR-head Gateway proof, not final release/FRV proof.

Initial CI findings and verified repair

The first CI run found six stale-version shards. Commit 692b23ffc65b935bf5f8663b28b3b6526b40e000 fixes their owners and retains the existing assertions:

  • OpenAI discovery now sends the same client_version=0.152.1 as the managed runtime. Three existing provider tests failed before the repair; all 75 now pass, as does the cross-plugin version-contract test.
  • The ACP workspace override now selects 0.152.1. The unchanged manifest test passes, and the lock no longer retains a duplicate 0.151.0 wrapper or its native packages. History a00438a867fe51bff88d6b03db0a105d23989210 establishes the deliberately shared runtime contract, so an exception in the manifest test would hide the missed update.
  • Existing newer-version warning fixtures derive the next minor, prerelease and major with the existing SemVer dependency. The media-path fake server uses one explicit 0.152.1 fixture constant. One media and three warning cases were reproduced failing before the changes; all 168 targeted tests then passed, and the final future-major refinement passed all 49 client tests. Warning counts, minimum-floor checks and no-fallback assertions remain intact.

The exact published @agentclientprotocol/[email protected] adapter was checked against its npm integrity and source revision 9780d314d34616b476b1ae451ad31089b3dce49a. Its actual default resolver launched the official Codex 0.152.1 executable and passed ACP initialization, expected unauthenticated rejection, an isolated loopback-provider selection, session creation, model listing, session close and clean exit. Five native model rows expanded into 25 ACP model/reasoning choices. The documented alternate-binary path passed the same probe. These are real-process protocol/lifecycle checks, not authenticated inference.

Standalone published @openclaw/acpx does not bundle runtime dependencies or inherit workspace overrides; its adapter still declares @openai/codex: ^0.148.0. This PR does not claim that separate installed dependency route uses 0.152.1. Final release ACP and install acceptance remain required.

The ClawSweeper discovery and ACP findings are addressed at their owning constants and dependency policy. The suggested ACP-test exception was not taken because direct history and actual adapter proof support preserving the existing shared-runtime invariant. Exact upstream source was available and personally inspected: models query owner, compiled version derivation, and catalog request caller.

After the complete repair, all 30 canonical changed-file checks passed, including 94 npm-lock validations, typechecks, three unused-export scans, formatting and typed lint. Independent Codex review of the entire 12-file PR, including these repairs, is scoped-clean at the default P0 threshold. Commit hooks preserved all reviewed source hashes. The first attempt of CI 33615787672 failed an unauthenticated Git-history fetch before scanning; the normal failed-jobs retry, attempt 2, passed on unchanged 692b23ffc65b935bf5f8663b28b3b6526b40e000, including the actual required gate and every security step. The existing workflow selects GitHub-hosted Ubuntu for second attempts; no check was weakened or waived. #136232 separately repaired scan-history ownership on main. Blacksmith public-Git bootstrap failures remain a named infrastructure follow-up.

Documentation follow-up

The latest ClawSweeper review correctly identified two additional current-runtime references in docs/plugins/codex-native-plugins.md and docs/plugins/codex-computer-use.md. Both now name the managed 0.152.1 pin in 48f1bb0c18458f39cacfa966b399d9d95bc87a5b, published through the native preparation workflow with matching local/remote trees. The 0.149.0 external minimum, historical release notes, and the exact 2026.8.2 dependency exception remain unchanged. This is a two-line documentation-only follow-up; the preceding authenticated Gateway proof remains explicitly bound to 692b23ffc65b935bf5f8663b28b3b6526b40e000. The follow-up passed independent scoped Codex autoreview at the default P0 threshold, and the full changed-file gate passed again over the complete fourteen-file PR. Resulting-head required CI passed before the native merge, as recorded below. This PR does not claim final release validation or publication.

Across the complete PR, production runtime and declarative version changes are net zero, lock changes are net zero, tests/support are +5 lines and docs are +2. No configuration, schema, fallback or test-only production seam was added.

Final exact-head CI and landing

CI 33622249860, attempt 2 passed on 48f1bb0c18458f39cacfa966b399d9d95bc87a5b: 206 successful jobs and 15 intentionally skipped jobs, including the required openclaw/ci-gate and security-fast. Attempt one failed during the public pre-commit hook Git bootstrap before the private-key detector ran; the normal failed-jobs retry passed without changing source, credentials or checks. The original infrastructure failure remains recorded, not waived.

The fresh independent review covered all fourteen files and returned no findings at the default P0 threshold. The latest ClawSweeper review reported no actionable findings; its strict package/platform version-alignment merge gates were retained. The repository-native review, prepare and merge workflow landed the exact reviewed head as cc4079ebe1d5b940a6208fd87c84784d5610c7bd. Final release-SHA validation, installed-package checks and publication verification remain separate gates.

@clawsweeper

clawsweeper Bot commented Sep 2, 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 docs Improvements or additions to documentation scripts Repository scripts extensions: codex size: XS maintainer Maintainer-authored PR labels Sep 2, 2026
@steipete
steipete marked this pull request as ready for review September 2, 2026 08:54
@steipete
steipete requested a review from a team as a code owner September 2, 2026 08:54
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Sep 2, 2026
@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/codex/package.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin, a member of @openclaw/openclaw-secops, or an OpenClaw organization member with Maintain or Admin repository access.

  • Current SHA: 48f1bb0c18458f39cacfa966b399d9d95bc87a5b
  • Trusted actor: @steipete
  • Trusted role: pull request author; openclaw-secops

Security review is still recommended before merge when the dependency graph change is intentional.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 2, 2026
@clawsweeper

clawsweeper Bot commented Sep 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 2, 2026, 7:07 AM ET / 11:07 UTC.

ClawSweeper review

What this changes

The PR upgrades OpenClaw’s managed Codex app-server package and linked install, catalog, fixture, release-check, lockfile, test, and documentation references from 0.151.0 to 0.152.1.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

The prior documentation finding is fixed on the current head, and the branch now keeps the managed Codex version contract aligned across runtime, catalog discovery, install assertions, lockfile policy, and docs. This active member-authored PR remains necessary because current main still pins 0.151.0.

Priority: P2
Reviewed head: 48f1bb0c18458f39cacfa966b399d9d95bc87a5b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, coherent version-alignment repair with the prior finding resolved and no actionable correctness or security defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body additionally describes real Gateway and installed-package validation, while the final two documentation edits do not change that exercised runtime path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body additionally describes real Gateway and installed-package validation, while the final two documentation edits do not change that exercised runtime path.
Evidence reviewed 7 items Managed runtime owner: The final head defines the exact managed app-server version as 0.152.1, and the plugin package pins the same dependency.
Release assertion boundary: The release helper rejects package, platform-alias, native-platform, and CLI-version mismatches against its exact 0.152.1 expectation; both on-demand and npm-plugin assertion entrypoints call it.
Provider sibling contract: OpenAI Codex catalog discovery passes the updated client_version, and its focused test derives the expected value from the Codex package manifest rather than duplicating a stale literal.
Findings None None.
Security None None.

How this fits together

The bundled Codex plugin starts a managed Codex app-server for OpenClaw agent sessions. The OpenAI provider uses the same version for Codex catalog discovery, while package assertions verify the installed native binary and platform package.

flowchart LR
  A[Plugin package pin] --> B[Managed Codex app-server]
  B --> C[Agent sessions]
  A --> D[OpenAI catalog discovery]
  A --> E[Install package assertions]
  E --> F[Release validation]
Loading

Before merge

  • Resolve merge risk (P1) - Upgrading the bundled native Codex package affects managed installs on upgrade, so release-package and platform-resolution checks must remain exact-head merge gates.
Agent review details

Security

None.

PR surface

Source 0, Tests +4, Docs +2, Config 0, Other +1. Total +7 across 14 files.

View PR surface stats
Area Files Added Removed Net
Source 2 2 2 0
Tests 3 10 6 +4
Docs 4 15 13 +2
Config 2 2 2 0
Generated 0 0 0 0
Other 3 36 35 +1
Total 14 65 58 +7

Review metrics

Metric Value Why it matters
Production versus test/docs delta production net 0; tests/support +5; docs +2; lockfile net 0 The repair aligns existing version owners without adding runtime behavior, configuration, schema, or fallback surface.

Merge-risk options

Maintainer options:

  1. Retain strict version alignment (recommended)
    Merge only once exact-head validation confirms the upgraded managed package, native platform aliases, and release-package assertions resolve to 0.152.1 together.

Technical review

Best possible solution:

Keep one exact 0.152.1 contract across the managed package, ACP override, discovery request, install assertions, fixtures, and published docs, then merge after normal exact-head validation succeeds.

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

Yes, from source: the release assertion rejects a plugin package whose exact Codex dependency differs from its expected candidate version, and current main still has the old 0.151.0 pin. This review did not execute the write-producing package test harness.

Is this the best way to solve the issue?

Yes. Synchronizing every existing owner of the one managed-version contract is the narrow maintainable repair; deriving future-version test cases from the shared constant avoids repeating this fixture drift.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded release-validation repair for the managed Codex installation path, with no demonstrated current-user outage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body additionally describes real Gateway and installed-package validation, while the final two documentation edits do not change that exercised runtime path.
  • remove P1: Current review triage priority is P2, so this older priority label is no longer current.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded release-validation repair for the managed Codex installation path, with no demonstrated current-user outage.
  • merge-risk: 🚨 compatibility: The bundled native dependency and ACP workspace override change the version resolved by managed Codex installs.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body additionally describes real Gateway and installed-package validation, while the final two documentation edits do not change that exercised runtime path.

Evidence

What I checked:

  • Managed runtime owner: The final head defines the exact managed app-server version as 0.152.1, and the plugin package pins the same dependency. (extensions/codex/src/app-server/version.ts:5, 48f1bb0c1845)
  • Release assertion boundary: The release helper rejects package, platform-alias, native-platform, and CLI-version mismatches against its exact 0.152.1 expectation; both on-demand and npm-plugin assertion entrypoints call it. (scripts/e2e/lib/codex-release-package-assertions.mjs:35, 48f1bb0c1845)
  • Provider sibling contract: OpenAI Codex catalog discovery passes the updated client_version, and its focused test derives the expected value from the Codex package manifest rather than duplicating a stale literal. (extensions/openai/openai-provider.ts:95, 48f1bb0c1845)
  • Shared ACP lock invariant: The existing Codex manifest test requires the workspace override and lockfile to resolve the ACP adapter and managed plugin to one exact Codex version; the PR updates both sides together. (extensions/codex/src/manifest.test.ts:38, 48f1bb0c1845)
  • Direct Codex source inspection: The sibling Codex source at 5adb68a reports workspace version 0.152.1; its models endpoint appends client_version and its model manager derives that value from the compiled package version. The local sibling remote is a cache and network lookup was unavailable, so repository ownership could not be independently verified here. (codex-rs/Cargo.toml:145, 5adb68a49933ae446bf11935662c83dba55a0804)
  • Current-main necessity: Fetched current main still defines the managed runtime as 0.151.0, so it does not already contain this repair. The latest release tag predates this PR head. (extensions/codex/src/app-server/version.ts:5, b35d2bec33a6)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

History

Review history (3 earlier review cycles)
  • reviewed 2026-09-02T09:02:48.230Z sha b99b91d :: found issues before merge. :: [P1] Synchronize the OpenAI discovery client version | [P1] Make the ACP exception explicit in the manifest contract
  • reviewed 2026-09-02T09:56:09.527Z sha 692b23f :: found issues before merge. :: [P2] Update the remaining managed-version documentation
  • reviewed 2026-09-02T10:42:19.459Z sha 692b23f :: found issues before merge. :: [P2] Update the remaining managed-version documentation

Align OpenAI discovery and the intentionally unified ACP workspace runtime with managed Codex 0.152.1. Keep the manifest invariant intact and make future-version test fixtures track the managed version. Verified existing RED/GREEN contracts, the published ACP adapter lifecycle with the official native runtime, all 30 changed-file checks, and an independent Codex review.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Sep 2, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed P1 High-priority user-facing bug, regression, or broken workflow. 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 Sep 2, 2026
@steipete
steipete merged commit cc4079e into main Sep 2, 2026
504 of 507 checks passed
@steipete
steipete deleted the codex/align-codex-0.152.1 branch September 2, 2026 11:20
@steipete

steipete commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 3, 2026
…nclaw#136184)

* fix(codex): align managed installs and release checks on 0.152.1

* fix(codex): align discovery and ACP version contracts

Align OpenAI discovery and the intentionally unified ACP workspace runtime with managed Codex 0.152.1. Keep the manifest invariant intact and make future-version test fixtures track the managed version. Verified existing RED/GREEN contracts, the published ACP adapter lifecycle with the official native runtime, all 30 changed-file checks, and an independent Codex review.

* docs(codex): align native plugin runtime references
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation extensions: codex extensions: openai 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XS 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