Skip to content

fix(test): keep worker catalog discovery offline - #201325

Merged
vincentkoc merged 1 commit into
mainfrom
fix-worker-catalog-version-fixture-20261118
Nov 18, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix-worker-catalog-version-fixture-20261118

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The worker-hosted Codex E2E fails on main after catalog discovery began checking the published Codex version. Its offline transport fixture rejects that new npm request as unexpected, even though the worker flow reaches its final assertions.

User Impact

No product behavior changes. The worker E2E can exercise catalog discovery without contacting npm or weakening its network guard.

Why This Change Was Made

Route only the exact npm version GET to the existing loopback fixture and return a synthetic stable version. Other remote requests remain rejected; model admission, authentication, worker placement, cancellation, and cleanup assertions remain unchanged.

Related: #201130

Evidence

  • Main failure: https://github.com/openclaw/openclaw/actions/runs/44335514975/job/134911697168 at 05d1e6f1f1f31e43702cbefcdb296c04fa20b8d3; the final guard reports GET https://registry.npmjs.org/@openai/codex/latest.
  • Focused transport probe: the exact GET reaches the loopback version endpoint; POST and extra-query variants remain rejected.
  • Formatting and diff checks pass.
  • Local ClawSweeper reviewed the complete 05d1e6f1..bb540948 range: no actionable correctness or security findings (0.96 confidence); the review did not execute runtime proof.
  • Exact-head Linux CI passed the original worker-hosted composition in 76.0 seconds, including selection, resume, cancellation, and cleanup. All 23 tests across its three selected files passed after the runtime build.
  • Latest exact-head PR CI passed: 26 jobs succeeded, 31 were intentionally skipped, and the aggregate CI gate is green. Production and test types, lint, source contracts, security, and extension-package boundaries passed.

@vincentkoc vincentkoc self-assigned this Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review November 18, 2026 16:17
@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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 18, 2026
@clawsweeper

clawsweeper Bot commented Nov 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR routes Codex version discovery to the worker test’s existing loopback server while preserving its remote-request guard.

Example: The worker E2E fetches https://registry.npmjs.org/@openai/codex/latest.

  • Before: The fixture reports an unexpected remote request.
  • After: The fixture returns {"version":"1.0.0"} over loopback.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-verified fixture repair supported by a successful exact-head worker job and current CI gate.
Proof confidence 🐚 platinum hermit (4/6) This test-fixture-only change requires no separate shipped-product demonstration; exact-head CI success supports the reported worker composition replay.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The worker-hosted E2E fails because its offline fixture does not model the new Codex version request.
Reason: Restores meaningful existing coverage through a narrow maintainer-approved fixture change.

Regression provenance

Regression provenance — verified: source commit 1680f5450480 by Ayaan Zaidi; canonical PR #201130 (blame-to-merge-commit).

Merge readiness

✅ Ready for maintainer review

Keep open for merge: this maintainer-authored PR makes a focused fixture repair with no actionable correctness or security findings, and the latest CI gate passes on the reviewed head.

Priority: P2
Reviewed head: bb54094840ee7c56910efceeac89f304d935f18f

Before merge

None.

Findings

None.

Agent review details

How this fits together

The worker-hosted Codex E2E runs catalog discovery through production code while its preload redirects modeled external requests to a local HTTP fixture.

flowchart LR
  A[Worker E2E] --> B[Production catalog discovery]
  B --> C[Catalog fetch preload]
  C --> D[Loopback fixture server]
  D --> B
  C --> E[Reject unmodeled remote requests]
Loading

Technical review

Best possible solution:

Merge the exact-route fixture extension while retaining the existing production catalog path and rejection of unmodeled remote requests.

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

Source inspection establishes the new npm GET reaching the old fixture’s rejection path and final assertion; the linked baseline job failed, but no local execution was performed.

Is this the best way to solve the issue?

This is the smallest complete repair: extend the existing transport fixture and server without bypassing production decisions or weakening assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Offline catalog transport fixture keeps the original intent (3a195d3: Exercise production discovery and worker behavior with modeled external I/O while refusing unmodeled remote requests.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 1680f54 adds extensions/openai/codex-client-version.ts:38 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1680f5450480; files: extensions/openai/codex-client-version.ts)

PR surface

Tests +7. Total +7 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 16 9 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 16 9 +7

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Repairs a concrete worker E2E failure without changing shipped product behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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:

  • P2: Repairs a concrete worker E2E failure without changing shipped product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 November 18, 2026, 11:33 AM ET / 16:33 UTC.

@vincentkoc
vincentkoc merged commit 1773726 into main Nov 18, 2026
241 of 243 checks passed
@vincentkoc
vincentkoc deleted the fix-worker-catalog-version-fixture-20261118 branch November 18, 2026 16:51
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 19, 2026
RomneyDa added a commit that referenced this pull request Nov 19, 2026
(cherry picked from commit 1773726)
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit b6d819f1b08c7436784107ff69dba70d6189b955)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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