Skip to content

fix(test): unblock restart-auth plugin and worker publication qualification - #205679

Merged
RomneyDa merged 3 commits into
mainfrom
openclaw/neat-lobster-9c0d5b
Nov 26, 2026
Merged

RomneyDa merged 3 commits into
mainfrom
openclaw/neat-lobster-9c0d5b

Conversation

@tideclaw-bot

@tideclaw-bot tideclaw-bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Two test-fixture defects surfaced in 2026.12.1-beta.1 Full Release Validation. Hosted validation is still needed to confirm whether they explain the observed failures.

  1. Docker update-restart-auth (FRV R7, job 139515690632): Error: whatsapp plugin version changed: 2026.12.1-beta.1. A resident Gateway can finish the core update before its watcher records the plugins step. The survivor could read the old install before maintenance finished. The core-only receipt does not establish whether maintenance was delayed or failed.
  2. Normal CI checks-node-compact-large-16 (FRV R7, job 139500906507): the direct worker context-engine case hit the prepared model runtime publication timeout. The test replaced the fixture's entire plugins object to select its context engine, inadvertently discarding its narrow allowlist and disabled memory slot.

Fix

  • Wait up to 720 s for the resident recovery run's plugins step, matched by runId, before checking the plugin. Report a failed step with its detail and time out separately on unfinished maintenance. Keep the existing version, integrity, no-fallback and serving checks.
  • Merge the context-engine slot into the worker fixture's existing plugin config. Keep the publication deadline unchanged.

Evidence

  • Restart-auth fixture: 5/5 passed before shortening the fixture deadline from 3 s to 2 s. The regression failed on the original harness; the fixture covers late, failed, missing and wrong-run maintenance.
  • Worker fixture: 3/3 passed before and after. A local sequential comparison under changing host load measured 97.6 s before and 29.1 s after for the direct case. This is not a controlled benchmark or hosted proof.
  • Targeted lint, formatting, shell syntax and diff checks passed. Hosted Docker and the affected CI shard still need verification.

Release backport target: release/2026.12.1.

Worked on by

tideclaw-bot and others added 3 commits November 26, 2026 01:23
A resident Gateway finishes the core update run before its update watcher
records the plugins step. The restart-auth survivor asserted WhatsApp's
installed version right after the serving turn, so it could read the
pre-maintenance install (R7 FRV: "whatsapp plugin version changed:
2026.12.1-beta.1") without knowing whether maintenance was late or failed.

Wait, bounded, for the plugins step of the recovery run (matched by runId).
A failed step fails with its own detail; an unfinished one fails at the
deadline. Version, integrity and serving checks are unchanged.

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
The worker turn fixture limits plugins to openai with no memory slot so the
real model runtime does not cold-load unrelated bundled plugins (#204726).
The context-engine test replaced the whole plugins object to select its
engine, dropping that allowlist, so its first case built a prepared model
runtime over every bundled plugin. On loaded runners that exceeded the 120s
publication deadline (FRV R5 and R7: "prepared model runtime publication
(workspace plugins; agent main) timed out").

Merge the engine slot into the fixture's plugin config instead. Locally under
load ~120, the direct case drops from 97.6s to 29.1s; both cases pass.

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

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 29ca3fa8-b23e-8333-b278-093e45524731
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime scripts Repository scripts size: S labels Nov 26, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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-repro Preliminary submission classification; full source review pending. labels Nov 26, 2026
@clawsweeper

clawsweeper Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR waits for resident recovery plugin maintenance and preserves the worker fixture’s plugin configuration when selecting a context engine.

Example: Resident recovery updates core to 2100.1.0 before plugin maintenance finishes.

  • Before: The survivor can check the previous plugin installation and fail prematurely.
  • After: The survivor waits for the same update run’s plugins step and distinguishes completion, failure, and timeout.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation is focused and source-consistent, with useful fixture coverage; confirmation against the affected hosted release paths remains limited.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored, test-only repair changes no shipped user behavior; focused fixture results are reported, while hosted release qualification remains explicitly unconfirmed.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Release qualification can reject a still-updating plugin installation or time out while preparing unrelated bundled plugins.
Reason: These focused fixture repairs preserve meaningful release coverage, and collaborator authorship supplies the direction decision.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it repairs two source-backed release-validation fixture defects while preserving existing assertions, and no actionable code defect was found.

Reviewed head: 60ec2ae48f182d006c9e4f73956ebf58b41048b8

Before merge

None.

Findings

None.

Agent review details

How this fits together

The release-validation harness drives installed OpenClaw updates and checks plugin survival; the worker integration fixture prepares a real model runtime before exercising context-engine settlement.

flowchart TD
A[Release validation] --> B[Recovery update]
B --> C[Resident Gateway]
C --> D[Plugin maintenance]
D --> E[Matching run status]
E --> F[Survival assertions]
A --> G[Worker fixture]
G --> H[Prepared context engine]
Loading

Technical review

Best possible solution:

Retain the run-matched maintenance wait and extend the existing worker fixture configuration without replacing its plugin restrictions.

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

Source establishes the premature maintenance boundary and discarded worker settings; the reported hosted failures were not independently replayed during this read-only review.

Is this the best way to solve the issue?

Both changes repair the fixture owners directly, preserve existing assertions and runtime deadlines, and add no competing production implementation; the new timeout override is confined to the test harness.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Worker context-engine configuration keeps the original intent (06d4475: The original test selected a context engine to verify worker preparation and settlement; later shared-fixture restrictions narrowed unrelated plugin loading.)
  • Resident restart-auth qualification keeps the original intent (529e37f: Resident activation keeps the supervisor running and requires checks against the active release while plugin maintenance completes asynchronously.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Dallin Romney: Raw commit 428d204 adds src/gateway/worker-environments/worker-turn-context-engine.test.ts:34 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 428d2047b766; files: src/gateway/worker-environments/worker-turn-context-engine.test.ts)
  • Vincent Koc: Raw commit 27183e4 adds scripts/e2e/lib/upgrade-survivor/run.sh:1530 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 27183e428642; files: scripts/e2e/lib/upgrade-survivor/run.sh)
  • Peter Steinberger: Raw commit 0d0e285 adds scripts/e2e/lib/upgrade-survivor/run.sh:1637 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0d0e2852b254; files: scripts/e2e/lib/upgrade-survivor/run.sh)

PR surface

Tests +45, Other +51. Total +96 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 52 7 +45
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 51 0 +51
Total 3 103 7 +96

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 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:

  • 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the affected restart-auth and worker context-engine qualification paths pass at the reviewed head.

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 25, 2026, 8:50 PM ET / November 26, 2026, 01:50 UTC.

@RomneyDa
RomneyDa merged commit 90ba762 into main Nov 26, 2026
139 checks passed
@RomneyDa
RomneyDa deleted the openclaw/neat-lobster-9c0d5b branch November 26, 2026 02:11
tideclaw-bot added a commit that referenced this pull request Nov 26, 2026
…cation (#205679)

* fix(e2e): wait for resident recovery plugin maintenance

A resident Gateway finishes the core update run before its update watcher
records the plugins step. The restart-auth survivor asserted WhatsApp's
installed version right after the serving turn, so it could read the
pre-maintenance install (R7 FRV: "whatsapp plugin version changed:
2026.12.1-beta.1") without knowing whether maintenance was late or failed.

Wait, bounded, for the plugins step of the recovery run (matched by runId).
A failed step fails with its own detail; an unfinished one fails at the
deadline. Version, integrity and serving checks are unchanged.

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

* fix(test): keep the worker context-engine turn on its plugin allowlist

The worker turn fixture limits plugins to openai with no memory slot so the
real model runtime does not cold-load unrelated bundled plugins (#204726).
The context-engine test replaced the whole plugins object to select its
engine, dropping that allowlist, so its first case built a prepared model
runtime over every bundled plugin. On loaded runners that exceeded the 120s
publication deadline (FRV R5 and R7: "prepared model runtime publication
(workspace plugins; agent main) timed out").

Merge the engine slot into the fixture's plugin config instead. Locally under
load ~120, the direct case drops from 97.6s to 29.1s; both cases pass.

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

* fix(test): unblock restart-auth plugin and worker publication qualification

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 29ca3fa8-b23e-8333-b278-093e45524731

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 90ba762)
vincentkoc added a commit that referenced this pull request Nov 26, 2026
…irement-rule

* origin/main: (172 commits)
  test(gateway): expect a revoked person's Goal retry to be hidden as not found (#205698)
  fix: keep browser disabled when only hardening relay authentication (#203137)
  fix: recover Linux stream automations after command-anchor crashes (#203149)
  fix(whatsapp): identify voice-note captions as text in delivery receipts (#205381)
  fix(test): unblock restart-auth plugin and worker publication qualification (#205679)
  chore(ui): refresh control ui locales (#205691)
  fix: reduce memory during SQLite usage refresh (#201064)
  fix(plugins): readmit native captures with a dangling host link
  chore(i18n): refresh native locales (#205680)
  fix(update): hash SQLite lock bytes as zeros so Windows exclusion cannot fail verification (#205668)
  fix(skill-workshop): skip the skill diet for skills with Markdown outside support directories (#204881)
  fix(plugins): clarify dated SDK migration notices (#200932)
  fix: keep the resident launcher when reinstalling Gateway (#205655)
  fix: show the whole reply when you reopen a TUI session (#200455)
  test(ui): wait for restored speech player authorization (#199502)
  feat: let agents post approved GitHub comments (#204301)
  fix(agents): honor imageMaxDimensionPx at the provider and CLI image handoffs (#205663)
  chore(ui): refresh control ui locales (#205664)
  fix(google): preserve playback when Google Live splits audio into parts (#205364)
  fix: show named characters in exported session messages (#205362)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 26, 2026
…cation (openclaw#205679)

* fix(e2e): wait for resident recovery plugin maintenance

A resident Gateway finishes the core update run before its update watcher
records the plugins step. The restart-auth survivor asserted WhatsApp's
installed version right after the serving turn, so it could read the
pre-maintenance install (R7 FRV: "whatsapp plugin version changed:
2026.12.1-beta.1") without knowing whether maintenance was late or failed.

Wait, bounded, for the plugins step of the recovery run (matched by runId).
A failed step fails with its own detail; an unfinished one fails at the
deadline. Version, integrity and serving checks are unchanged.

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

* fix(test): keep the worker context-engine turn on its plugin allowlist

The worker turn fixture limits plugins to openai with no memory slot so the
real model runtime does not cold-load unrelated bundled plugins (openclaw#204726).
The context-engine test replaced the whole plugins object to select its
engine, dropping that allowlist, so its first case built a prepared model
runtime over every bundled plugin. On loaded runners that exceeded the 120s
publication deadline (FRV R5 and R7: "prepared model runtime publication
(workspace plugins; agent main) timed out").

Merge the engine slot into the fixture's plugin config instead. Locally under
load ~120, the direct case drops from 97.6s to 29.1s; both cases pass.

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

* fix(test): unblock restart-auth plugin and worker publication qualification

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
OpenClaw-Publication: 29ca3fa8-b23e-8333-b278-093e45524731

---------

Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>
tideclaw-bot added a commit that referenced this pull request Nov 30, 2026
…cation (#205679)

* fix(e2e): wait for resident recovery plugin maintenance

A resident Gateway finishes the core update run before its update watcher
records the plugins step. The restart-auth survivor asserted WhatsApp's
installed version right after the serving turn, so it could read the
pre-maintenance install (R7 FRV: "whatsapp plugin version changed:
2026.12.1-beta.1") without knowing whether maintenance was late or failed.

Wait, bounded, for the plugins step of the recovery run (matched by runId).
A failed step fails with its own detail; an unfinished one fails at the
deadline. Version, integrity and serving checks are unchanged.

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

* fix(test): keep the worker context-engine turn on its plugin allowlist

The worker turn fixture limits plugins to openai with no memory slot so the
real model runtime does not cold-load unrelated bundled plugins (#204726).
The context-engine test replaced the whole plugins object to select its
engine, dropping that allowlist, so its first case built a prepared model
runtime over every bundled plugin. On loaded runners that exceeded the 120s
publication deadline (FRV R5 and R7: "prepared model runtime publication
(workspace plugins; agent main) timed out").

Merge the engine slot into the fixture's plugin config instead. Locally under
load ~120, the direct case drops from 97.6s to 29.1s; both cases pass.

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

* fix(test): unblock restart-auth plugin and worker publication qualification

Worked on by:
- @vincentkoc
- @RomneyDa

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 29ca3fa8-b23e-8333-b278-093e45524731

---------

Co-authored-by: vincentkoc <[email protected]>
(cherry picked from commit 90ba762)

Release adaptation: port worker plugin allowlisting. Stable restart-auth verifies service process replacement and has no donor resident recovery fixture route; do not transplant its alternate restart proof.

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

Labels

gateway Gateway runtime 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.

2 participants