Skip to content

test: track the pinned Codex version in native hook pressure - #184817

Merged
steipete merged 1 commit into
mainfrom
fix/codex-native-hook-pressure-version-pin
Oct 26, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/codex-native-hook-pressure-version-pin

Conversation

@steipete

@steipete steipete commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The native-hook pressure tests still expected codex-cli 0.162.1 after #181823 upgraded the managed runtime to 0.164.0, causing all three policy modes to fail their version assertion.

User Impact

No runtime behavior changes. The tests continue to require the exact pinned Codex version and now follow future pin updates automatically.

Why This Change Was Made

Read @openai/codex from extensions/codex/package.json using the test's existing repository root and file-reading API. This removes the duplicated version literal without weakening the assertion. The change is limited to five added test lines and one replacement; no production code or new test scaffolding.

Evidence

  • Reproduced the old assertion mismatch against the installed managed binary: actual codex-cli 0.164.0, expected codex-cli 0.162.1.

  • Evaluated the new manifest-derived expression and verified exact equality with both codex-cli 0.164.0 and the installed binary's --version output.

  • Ran the file's fast executable-link test: passed, 27 ms test time / 82.16 s cold wall time. The three Linux-only Gateway scenarios were skipped on macOS; no local Docker was used.

  • Formatting, syntax lint, and git diff --check passed. Local type-aware lint could not prepare declarations because the requested external virtual store is outside the checkout; PR CI supplies type-aware coverage.

  • No other stale hardcoded codex-cli 0.16 test literals remain.

  • Isolated Codex review: no actionable findings through P2.

  • Exact-head CI passed: run 40363200617, head b1b33569b377d0579cef31d6122cd98734625bcc. The separate hosted advisory review was canceled before any steps executed; the isolated review above completed successfully.

Read the expected CLI version from the Codex plugin manifest so runtime bumps cannot leave a stale exact-version assertion. Follow-up to #181823.
@clawsweeper

clawsweeper Bot commented Oct 26, 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.

@steipete
steipete marked this pull request as ready for review October 26, 2026 16:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-26T16:53:30.255165Z b1b3356 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Oct 26, 2026
@clawsweeper

clawsweeper Bot commented Oct 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR derives the native-hook pressure test’s expected Codex version from the Codex plugin’s pinned dependency.

Example: The managed Codex binary reports codex-cli 0.164.0.

  • Before: The pressure test expects codex-cli 0.162.1 and fails.
  • After: The test expects codex-cli 0.164.0 from the plugin manifest and still rejects a mismatched binary.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, minimal, source-verified repair with no findings; changed-scenario execution remains limited to the reported version comparison while CI is pending.
Proof confidence 🦐 gold shrimp (3/6) The supplied maintainer-authored status places this test-only PR outside the ordinary contributor proof gate; the body reports a real CLI version comparison, while the executed executable-link test does not exercise the changed lines.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: QA pressure scenarios fail on the intended managed Codex binary because their expected version is stale.
Reason: The change restores a meaningful binary-identity check and prevents duplicated version literals from drifting on future pin updates; the supplied maintainer-authored status establishes direction.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it fixes a stale test expectation still present on current main, preserves exact binary-version verification, and introduces no identified defect.

Priority: P3
Reviewed head: b1b33569b377d0579cef31d6122cd98734625bcc

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The Linux Gateway scenarios were skipped locally, so the changed assertion has not yet been shown passing through those scenarios in the supplied evidence.
Agent review details

How this fits together

The QA Lab pressure suite starts an isolated Gateway, exercises native Codex tool calls, and checks the running app-server binary’s reported version against the managed package pin.

flowchart LR
  A[Codex plugin manifest] --> B[Expected version]
  C[QA pressure scenario] --> D[Isolated Gateway]
  D --> E[Codex app server]
  E --> F[Observed binary version]
  B --> G[Exact equality assertion]
  F --> G
Loading

Technical review

Best possible solution:

Use the existing plugin manifest as the expected pin while retaining exact verification of the observed running binary.

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

Source establishes the mismatch between the 0.164.0 managed pin and current main’s 0.162.1 assertion; no target code was executed during this read-only review.

Is this the best way to solve the issue?

This is the smallest complete repair: it reuses the existing manifest and file-reading API without adding helpers, duplicate policy, or weaker matching.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Exact managed-binary version assertion keeps the original intent (b28c930: The dependency refresh aligned the test with the then-current managed Codex version; the original pressure suite verifies the actual running binary’s identity.)
  • Linux pressure scenario and sandbox capability skip keeps the original intent (754f467: Skip only recognized host Bubblewrap namespace denials while preserving execution on capable Linux hosts; the new manifest read remains after that skip.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

  • Exact introduced change: The introduced diff reads the existing Codex manifest and replaces only the hardcoded version expectation; process identity, binary discovery, and exact equality remain intact. (extensions/qa-lab/src/codex-native-hook-pressure.e2e.test.ts:240, b1b33569b377)
  • Current main still needs the repair: Fetched main still asserts codex-cli 0.162.1, while the Codex plugin dependency and runtime version constant specify 0.164.0; the manifest contract test independently checks their alignment. (extensions/qa-lab/src/codex-native-hook-pressure.e2e.test.ts:606, c152c5976b21)
  • Runtime upgrade context: The merged runtime upgrade at fix(codex): update managed runtime to 0.164.0 #181823 establishes the 0.164.0 pin; this PR repairs the remaining stale pressure-test expectation. (extensions/codex/package.json:11, 70f8ce638c39)
  • Discussion and validation: The full PR body reports the old mismatch and successful comparison of the manifest-derived expectation with the installed binary; comments contain no additional changed-path proof or unresolved human objection. (b1b33569b377)
  • Repository policy and history: Read the complete root and extensions guidance and applied simplification and test-value rules; no maintainer-notes directory or deeper governing AGENTS.md exists for this path. History identifies the original pressure suite and subsequent telemetry and sandbox work. Walking beyond available history reached a missing-object limit, without affecting inspection of the relevant commits. (extensions/AGENTS.md:1, b1b33569b377)
  • Personally inspected Codex dependency contract: The suite executes the Codex CLI, making its version-output contract relevant. The sibling checkout declares package name codex-cli, inherits workspace version 0.164.0, and enables Clap version output; no dependency behavior changes are proposed. (codex-rs/cli/src/main.rs:123, 6aaac694803004a63c6f393d153c96d22521a6b9)

Likely related people:

  • Peter Steinberger: Raw commit 754f467 adds extensions/qa-lab/src/codex-native-hook-pressure.e2e.test.ts:207 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 754f467deabc; files: extensions/qa-lab/src/codex-native-hook-pressure.e2e.test.ts)

PR surface

Tests +4. Total +4 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 5 1 +4
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 5 1 +4

Labels

Label changes:

  • add P3: This is a focused test-maintenance repair with no production runtime change.
  • 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:

  • P3: This is a focused test-maintenance repair with no production runtime change.
  • 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 October 26, 2026, 1:06 PM ET / 17:06 UTC.

@steipete
steipete merged commit 8734688 into main Oct 26, 2026
190 of 194 checks passed
@steipete
steipete deleted the fix/codex-native-hook-pressure-version-pin branch October 26, 2026 17:41
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 27, 2026
…w#184817)

Read the expected CLI version from the Codex plugin manifest so runtime bumps cannot leave a stale exact-version assertion. Follow-up to openclaw#181823.
RomneyDa added a commit that referenced this pull request Oct 31, 2026
* test(release): track pinned Codex version in hook pressure

Adapt main #184817 to the release fixture.

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

* test(release): give scheduler canary explicit auth

Adapt main #182343 to the release fixture.

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

* test(gateway): align scheduler canary fixture auth

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

---------

Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: roboclaw-bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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