Skip to content

fix(e2e): recognize missing Codex after registry fallback - #150748

Merged
RomneyDa merged 2 commits into
mainfrom
codex/survivor-clawhub-missing-plugin
Sep 17, 2026
Merged

RomneyDa merged 2 commits into
mainfrom
codex/survivor-clawhub-missing-plugin

Conversation

@steipete

@steipete steipete commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The missing-plugin upgrade scenario rejects its expected Codex package-not-found result when npm falls back to ClawHub. The updater retains both the source transition and final failure in its outcome history.

User Impact

The upgrade test can continue checking retained migration inputs, Gateway service, and eventual Doctor recovery after its fixture deliberately makes Codex unavailable in both registries. Product behavior is unchanged.

Why This Change Was Made

Recognize the existing direct npm result, the exact direct ClawHub package404, or the exact ordered Codex npm-to-ClawHub transition followed by that final404. Every accepted row requires matching actionable recovery guidance. Independent core-update, sync, integrity, consent, pending-state, serving, and recovery checks remain intact.

Evidence

  • Actual assertion-CLI regressions fail before each repair. The captured fallback history fails on the first revision with 72 sibling/refusal cases passing; the final recovery-result group passes all 89 tests.
  • Refusal cases cover duplicate/reversed histories, typed errors, wrong plugin/source/target, missing final failure, unrelated errors, and missing guidance. All three accepted histories remain invalid in the ordinary base scenario.
  • Selected types, all three unused-export scans, lint, and repository/Docker guards pass. Two test variable-shadowing diagnostics were fixed and the exact remaining type-aware lint plus final 89 tests passed. Fresh complete P2 review is scoped-clean; an earlier review preparation memory failure is retained separately and produced no verdict.
  • The first full corrected-tooling run exposed the two-row history and stopped at its assertion. Its package integrity, normal npm12 install, and source admission passed; later serving/recovery was not reached.
  • The complete missing-plugin scenario passed with reviewed tooling 1e26b5b4, the identical retained 517a5b44 package (SHA-256 25d0259d61cd504e9335bdd5eccc58c9630b2bdbc61a8f6c4cacd10939fd4803), and the published 2026.9.2 updater with manual restart. All 15 required phases passed: deferred migration state after update/startup/Doctor, real Gateway health/status and diagnostic export, then both binding migrations and config validation after Codex becomes available. No recovery fallback was needed. The downloaded survivor artifact 10489808591 was digest-verified (SHA-256 bdb10cc0f3202509c0998224b471016d0474b48aa8fba5e610a254129dc03b2e) and its complete phase summary inspected. This resolves the review's pending full-scenario proof; the patch changes no persistent data model.
  • Exact-head CI finished with only the inherited no-map-spread lint error in scripts/lib/ci-changed-node-test-plan.mts:770; that file has identical blob 5622a49c386c717aa53bf5a7a3f5f749d9ae1ff9 at the PR head and base. PR150767 owns its correction. Landing remains held for that fix, refreshed exact-head CI, and recovery of the native landing checkout after the host disk incident.

@clawsweeper

clawsweeper Bot commented Sep 17, 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 September 17, 2026 08:27
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 17, 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. labels Sep 17, 2026
@clawsweeper

clawsweeper Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 17, 2026, 8:22 AM ET / 12:22 UTC (Revision 6).

ClawSweeper review

What this changes

Updates the upgrade-test validator and regression coverage to recognize expected missing-Codex results from npm, ClawHub, or their ordered fallback history.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused validation repair: current main still rejects the expected fallback history. The recorded full-scenario proof applies to the changed assertion logic, and no blocking patch defect was found.

Priority: P2
Reviewed head: 0623fff78f534ea7bfd006210628d16bfb478ee1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful refusal coverage and applicable full-scenario evidence; no actionable correctness or security finding remains.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The recorded Docker scenario exercised the published 2026.9.2 updater against the retained candidate with Codex unavailable, then verified Gateway service and Doctor recovery; GitHub corroborates the run and artifact identity, and the changed validator functions match the proof revision exactly. Detailed phase observations rely on the captured body because direct logs are host-blocked.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The recorded Docker scenario exercised the published 2026.9.2 updater against the retained candidate with Codex unavailable, then verified Gateway service and Doctor recovery; GitHub corroborates the run and artifact identity, and the changed validator functions match the proof revision exactly. Detailed phase observations rely on the captured body because direct logs are host-blocked.
Evidence reviewed 10 items Introduced change and preserved safeguards: The pinned introduced diff changes only the assertion helper and its tests. The helper accepts one named terminal failure or the exact two-row npm-to-ClawHub history, requires guidance for every accepted row, and leaves core-step, consent, sync, version, and integrity checks intact.
Current main still needs the repair: At the fetched main revision, the validator still requires exactly one error with the npm package-not-found prefix; the two-row fallback and direct ClawHub result are rejected.
Existing registry fallback contract: OpenClaw's install owner emits the source-transition notice, then retains it alongside the terminal installation failure. This repair interprets OpenClaw-owned registry outcomes; it does not change or require compatibility with the separate Codex runtime protocol.
Findings None None.
Security None None.

How this fits together

The upgrade survivor test installs a candidate over a published OpenClaw version and checks update results, preserved state, Gateway health, and Doctor recovery. Its result validator determines whether the scenario can proceed beyond an intentionally unavailable plugin.

flowchart TD
  A[Published OpenClaw installation] --> B[Update to candidate package]
  C[Registry fixture with Codex unavailable] --> B
  B --> D[Update result validator]
  D --> E[Expected failure history and guidance]
  D --> F[Reject unrelated failures]
  E --> G[Gateway and deferred migration checks]
  G --> H[Restore package and verify Doctor recovery]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +102, Other +17. Total +119 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 119 17 +102
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 38 21 +17
Total 2 157 38 +119

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/e2e/lib/upgrade-survivor/assertions.mjs, unknown-data-model-change: scripts/e2e/lib/upgrade-survivor/assertions.mjs. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Technical review

Best possible solution:

Keep the existing validator as the single acceptance boundary, with narrowly named fixture exceptions and unchanged rejection of unrelated update failures.

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

Yes, from source: the current-main validator rejects the updater's two-error fallback history because it requires exactly one npm error. This review did not execute tests.

Is this the best way to solve the issue?

Yes. Extending the existing scenario-specific validator matches the updater's established output while preserving the ordinary scenario's rejection rules.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Repairs a false failure in a focused upgrade-validation scenario without changing product runtime behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The recorded Docker scenario exercised the published 2026.9.2 updater against the retained candidate with Codex unavailable, then verified Gateway service and Doctor recovery; GitHub corroborates the run and artifact identity, and the changed validator functions match the proof revision exactly. Detailed phase observations rely on the captured body because direct logs are host-blocked.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded Docker scenario exercised the published 2026.9.2 updater against the retained candidate with Codex unavailable, then verified Gateway service and Doctor recovery; GitHub corroborates the run and artifact identity, and the changed validator functions match the proof revision exactly. Detailed phase observations rely on the captured body because direct logs are host-blocked.

Evidence

What I checked:

  • Introduced change and preserved safeguards: The pinned introduced diff changes only the assertion helper and its tests. The helper accepts one named terminal failure or the exact two-row npm-to-ClawHub history, requires guidance for every accepted row, and leaves core-step, consent, sync, version, and integrity checks intact. (scripts/e2e/lib/upgrade-survivor/assertions.mjs:1625, 0623fff78f53)
  • Current main still needs the repair: At the fetched main revision, the validator still requires exactly one error with the npm package-not-found prefix; the two-row fallback and direct ClawHub result are rejected. (scripts/e2e/lib/upgrade-survivor/assertions.mjs:1625, c62c2d9db5e7)
  • Existing registry fallback contract: OpenClaw's install owner emits the source-transition notice, then retains it alongside the terminal installation failure. This repair interprets OpenClaw-owned registry outcomes; it does not change or require compatibility with the separate Codex runtime protocol. (src/commands/doctor/shared/missing-configured-plugin-install.install.ts:302, 0623fff78f53)
  • Executable assertion-boundary regression coverage: The tests invoke the actual assertion CLI. They cover three accepted histories, reject all three in the base scenario, and reject duplicate, reversed, unrelated, typed, incomplete, and unguided failure histories. Tests were inspected, not executed during this read-only review. (test/scripts/upgrade-survivor-assertions.test.ts:494, 0623fff78f53)
  • Full-scenario proof and review continuity: The captured PR body links https://github.com/openclaw/openclaw/actions/runs/35204618475 and records successful published-2026.9.2 upgrade, retained migration inputs, Gateway health/status, diagnostics, and eventual Doctor recovery. GitHub confirms that the targeted published-upgrade-survivor job and its execution and summary steps succeeded. Direct log retrieval was blocked by the host network allowlist, so detailed phase observations remain attributed to the captured PR evidence rather than independently inspected logs. (1e26b5b4b51e)
  • Retained proof artifact identity: GitHub reports artifact 10489808591 as docker-e2e-published-upgrade-survivor, associated with the cited successful run and tooling revision, with digest sha256:bdb10cc0f3202509c0998224b471016d0474b48aa8fba5e610a254129dc03b2e matching the captured body. (1e26b5b4b51e)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; 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 (5 earlier review cycles)
  • reviewed 2026-09-17T08:34:28.846Z sha 11645ef :: blocked before merge. :: none
  • reviewed 2026-09-17T08:54:21.979Z sha 11645ef :: needs changes before merge. :: none
  • reviewed 2026-09-17T09:15:03.391Z sha 11645ef :: blocked before merge. :: none
  • reviewed 2026-09-17T09:30:35.153Z sha 1e26b5b :: blocked before merge. :: none
  • reviewed 2026-09-17T09:53:32.553Z sha 1e26b5b :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added the proof: sufficient ClawSweeper judged the real behavior proof convincing. label Sep 17, 2026
@RomneyDa
RomneyDa force-pushed the codex/survivor-clawhub-missing-plugin branch from 1e26b5b to 0623fff Compare September 17, 2026 12:15
@RomneyDa
RomneyDa merged commit 3f57df5 into main Sep 17, 2026
79 checks passed
@RomneyDa
RomneyDa deleted the codex/survivor-clawhub-missing-plugin branch September 17, 2026 13:22
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 18, 2026
…50748)

* fix(e2e): recognize missing Codex after registry fallback

* fix(test): retain expected missing-plugin fallback history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S 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.

2 participants