Skip to content

fix(release): route restart diagnostics through future registry - #177586

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/release-restart-plugin-registry
Oct 19, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/release-restart-plugin-registry

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

Summary

  • route official-plugin npm diagnostics through the survivor synthetic registry during future-cohort restart validation
  • keep production registry resolution unchanged and require a loopback HTTP(S) origin
  • cover direct public-npm diagnostic reads in the restart fixture test

Validation

  • pnpm exec vitest run test/scripts/upgrade-survivor-restart-fixture.test.ts (2 passed)
  • pnpm exec oxfmt --check scripts/e2e/lib/upgrade-survivor/plugin-registry-redirect.mjs test/scripts/upgrade-survivor-restart-fixture.test.ts
  • bash -n scripts/e2e/lib/upgrade-survivor/run.sh
  • node --check scripts/e2e/lib/upgrade-survivor/plugin-registry-redirect.mjs
  • git diff --check

Fixes the deterministic update-restart-auth failure in beta/all FRV 39287109887, where Discord and WhatsApp future-cohort lookups incorrectly reached public npm and returned HTTP 404.

@clawsweeper

clawsweeper Bot commented Oct 19, 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 scripts Repository scripts size: S labels Oct 19, 2026
@roboclaw-bot
roboclaw-bot force-pushed the fix/release-restart-plugin-registry branch from c32538d to 27a1f20 Compare October 19, 2026 18:39
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@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. P2 Normal backlog priority with limited blast radius. 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. 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 Oct 19, 2026
@clawsweeper

clawsweeper Bot commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR redirects official-plugin diagnostic fetches to the synthetic registry during survivor restart validation.

Example: Restart qualification checks @openclaw/[email protected].

  • Before: The diagnostic lookup reaches public npm, where the synthetic version is unavailable.
  • After: The same lookup reaches the local future-cohort registry and returns the synthetic package metadata.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A useful, focused patch with no identified correctness defect; validation supports the fixture boundary rather than the full restart journey.
Proof confidence 🦐 gold shrimp (3/6) The ordinary contributor proof gate does not apply to this maintainer-authored fixture repair; supplied validation covers the local HTTP redirect in a test harness, without a full updater restart replay.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release operators receive false restart-qualification failures when diagnostics request unpublished synthetic plugin versions from public npm.
Reason: The maintainer-authored direction repairs an owned release fixture without changing user-facing registry policy or relaxing convergence checks.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR repairs a release-fixture registry mismatch still present on main; no actionable introduced defects were found.

Priority: P2
Reviewed head: 27a1f20fc719f99796b6ce98fdf2a038bff70e9b

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied validation does not record an after-fix update-restart-auth replay or a red-on-base run of the added regression.
Agent review details

How this fits together

The upgrade-survivor runner prepares synthetic future packages and invokes the real updater; this fixture preload routes its official-plugin HTTP reads to the existing local registry.

flowchart TD
  A[Survivor runner] --> B[Prepare future cohort]
  B --> C[Local package registry]
  A --> D[Updater with fixture preload]
  D --> E[Official plugin diagnostics]
  E --> F[Scoped fetch redirect]
  F --> C
Loading

Technical review

Best possible solution:

Keep synthetic package preparation and diagnostic routing within the survivor fixture while preserving production registry resolution.

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

Source establishes the mismatch: synthetic future packages exist locally, while diagnostic metadata reads default to public npm; no target code was executed during this review.

Is this the best way to solve the issue?

The fixture preload is a small, appropriate adapter for this synthetic cohort and avoids weakening the production metadata reader or duplicating package preparation.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 2de0113 adds scripts/e2e/lib/upgrade-survivor/run.sh:1037 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2de0113608cf; files: scripts/e2e/lib/upgrade-survivor/run.sh)

PR surface

Tests +9, Other +47. Total +56 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 9 0 +9
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 47 0 +47
Total 3 56 0 +56

Review metrics

Metric Value Why it matters
Fixture environment control 1 new internal environment variable OPENCLAW_UPGRADE_SURVIVOR_NPM_REGISTRY carries the prepared loopback registry into the fixture preload; no product configuration setting is added.

Labels

Label changes:

  • add P2: A focused release-qualification fixture repair with no production runtime behavior 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:

  • P2: A focused release-qualification fixture repair with no production runtime behavior 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 19, 2026, 2:55 PM ET / 18:55 UTC.

@roboclaw-bot
roboclaw-bot merged commit ca7dae9 into main Oct 19, 2026
115 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/release-restart-plugin-registry branch October 19, 2026 18:57
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 20, 2026
RomneyDa added a commit that referenced this pull request Oct 21, 2026
)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ca7dae9)
tomorrowflow pushed a commit to tomorrowflow/openclaw that referenced this pull request Oct 22, 2026
…claw#177586)

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
(cherry picked from commit ca7dae9)
RomneyDa added a commit that referenced this pull request Oct 24, 2026
… updates

Backport the main restart-fixture chain (#177159, #177586, #177813,
#177725, #177913, #177851; release/2026.10.7 cherry-picks f11693d,
31ae94f, 29731ba, c4a80be, da098c0, 58d837a,
4bf62b3), adapted to this branch's 2026.9.99 future version, fixture
manifest checks, and recovery phases.

The #174257 backport correctly reports official npm plugins left behind
after a core update; the old fixture built a future package only for
codex, so discord and whatsapp failed update-restart-auth convergence.
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: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

1 participant