Repository navigation
fix(qa): packaged gateway fails when plugins need preparation - #132399
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 2:23 AM ET / 06:23 UTC. ClawSweeper reviewWhat this changesThe PR runs the packaged candidate’s plugin-repair command after isolated mock-auth setup and before gateway startup, with legacy CLI and retry regression coverage. Merge readinessKeep open: the PR repairs a current packaged-QA startup gap at the owning child-setup boundary, has focused compatibility and retry coverage, and has no supported blocking finding; exact-head hosted checks are still running and the PR is maintainer-owned. Priority: P2 Review scores
Verification
How this fits togetherQA Lab launches isolated gateway children against packaged OpenClaw candidates. It writes the child configuration and auth state, asks the candidate to converge configured plugins, then starts the gateway and verifies readiness through RPC. flowchart LR
A[QA scenario] --> B[Fresh child configuration]
B --> C[Mock auth bootstrap]
C --> D[Candidate plugin repair]
D --> E[Gateway process]
E --> F[Readiness and RPC checks]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +33, Tests +148. Total +181 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one candidate-owned repair step at the isolated packaged-child boundary, then land after the exact-head checks complete successfully. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the path: current main writes fresh packaged-child state and launches without candidate plugin convergence; the focused subprocess tests model the resulting repair, failure, and retry paths. Is this the best way to solve the issue? Yes. Running the selected candidate’s existing repair command at the freshly written packaged-child boundary avoids substituting source plugins or copying consent/state from another QA home. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4963095f2225. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
#132399 added a second preserve-caught-error suppression in extensions/qa-lab/src/gateway-child-setup.ts without updating the production-suppression inventory, so the tooling lane fails on every full run that includes it. Record the landed count; not part of the pips change, fixed here because landing must not go onto a red gate.
…placement picker and Devices settings (#132394) * feat(ui): show node worker-slot utilization as segmented pips "Worker slots 8/8" reads as full when it means 8 free -- the label reads as the opposite of its meaning, and a node under load reads better as it gets worse. Replace the string fact with a glanceable meter in both the session placement picker and Settings -> Devices: one pip per slot, filled = in use, warning tone at capacity, continuous micro-bar above 12 slots (capacity is configurable to 1024). Extracted from the sessions page's context meter rather than invented: the shared capacity-meter component now owns the markup, tones, tooltip, and aria pattern; the sessions page migrates with byte-identical rendering (screenshot-proven) and sessions.css loses its private copy. States are first-class: idle, partial, at capacity (still selectable for codex remote-exec, which holds no slot), offline (muted, no utilization claim), and slot-less codex exec hosts, which get a terminal glyph instead of an empty meter. Exact numbers stay reachable via row title and aria-label. Menu rows gain one optional meter slot; the slot numbers stay structured instead of being flattened into a translated string. Production +151 / tests +199 / proof tooling +104. Follow-up candidates: provider-usage and swarm-progress bars still hand-roll their meters. * fix(ui): keep meter alt text out of device row titles The e2e suite caught the capacity label polluting disabled rows' titles: 'This runtime does not support paired devices · Slot utilization unavailable'. The disabled reason owns the title; the meter's no-claim text stays on its aria-label. Presentation now returns a separate title that exists only when it carries countable numbers, and the three e2e assertions that pinned the retired string fact assert the meter's aria-label instead. * test: record the second qa-lab preserve-caught-error suppression #132399 added a second preserve-caught-error suppression in extensions/qa-lab/src/gateway-child-setup.ts without updating the production-suppression inventory, so the tooling lane fails on every full run that includes it. Record the landed count; not part of the pips change, fixed here because landing must not go onto a red gate.
…lling the guard (#132420) * fix(reef): parked owner reviews own inbound delivery; keepalive the inbox socket A pending owner review threw through the inbox pipeline as a connection failure: the socket tore down, the ~30s reconnect loop re-delivered the message, and every redelivery re-ran the live guard before consulting the review store. Any stray stochastic allow delivered the message with the review still pending, and one transient guard failure terminally rejected it to the peer (observed live: 554 re-classifications, then delivery with no owner decision). The recorded review decision now owns redelivery: classifyWithReview consults the review store before any guard call, pending parks the entry un-acked at the relay with the socket up and the durable cursor held, later entries keep processing, and the reconcile loop re-polls so an owner decision completes delivery within ~30s (one final post-approval classification). Transient guard_failure denials park-and-retry instead of rejecting the peer; sends still fail fast. The inbox socket also gains the relay's ping/pong keepalive, preventing the silent idle cuts behind the periodic 1006 reconnects on long-idle links. * fix(reef): one durable read observation per parked entry Re-polling a parked entry every reconcile interval appended a read audit event per attempt (~2,880/day), filling the bounded audit window. The flow now records one read per park lifecycle and resumes normal observation once the entry resolves. * fix(test): avoid shadowing the inbox entry in the parked-read assertion * fix(test): register second intentional qa-lab suppression in the allowlist Main broke at 9323d42 (#132399): it added a second justified preserve-caught-error suppression to gateway-child-setup.ts without updating the full-suite-only suppression allowlist.
Route auth bootstrap and packaged plugin preparation through one local execution boundary that redacts and bounds diagnostics without retaining credential-bearing causes. Preserve command ordering and the existing single-suppression baseline. Fixes the tooling CI regression exposed after openclaw#132399 while preparing openclaw#125618. The unchanged suppression test fails before and passes after; real child-process failure and startup cleanup tests pass.
…ner-enforced channels (#125618) * fix(auto-reply): restore admitted non-owner session resets Keep reset-only admission inside command authorization while preserving explicit command denials, plugin owner enforcement, internal Gateway scopes, and the published authorization object. Remove the duplicate reset policy module and redundant native branch, and prove durable session effects and acknowledgments across text, native, peer, and owner-policy cases. Restore /new and /reset for admitted senders without granting ordinary command or owner authority. Correct the slash-command policy documentation. Fixes #125540 Co-authored-by: chelsealong <[email protected]> * refactor(qa): centralize packaged bootstrap error redaction Route auth bootstrap and packaged plugin preparation through one local execution boundary that redacts and bounds diagnostics without retaining credential-bearing causes. Preserve command ordering and the existing single-suppression baseline. Fixes the tooling CI regression exposed after #132399 while preparing #125618. The unchanged suppression test fails before and passes after; real child-process failure and startup cleanup tests pass. * test(qa): tighten packaged bootstrap suppression inventory --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: chelsealong <[email protected]>
* fix(qa): prepare packaged plugins before gateway startup * test(qa): prepare plugins in startup lease fixture
…aw#132399) * fix(qa): prepare packaged plugins before gateway startup * test(qa): prepare plugins in startup lease fixture
…placement picker and Devices settings (openclaw#132394) * feat(ui): show node worker-slot utilization as segmented pips "Worker slots 8/8" reads as full when it means 8 free -- the label reads as the opposite of its meaning, and a node under load reads better as it gets worse. Replace the string fact with a glanceable meter in both the session placement picker and Settings -> Devices: one pip per slot, filled = in use, warning tone at capacity, continuous micro-bar above 12 slots (capacity is configurable to 1024). Extracted from the sessions page's context meter rather than invented: the shared capacity-meter component now owns the markup, tones, tooltip, and aria pattern; the sessions page migrates with byte-identical rendering (screenshot-proven) and sessions.css loses its private copy. States are first-class: idle, partial, at capacity (still selectable for codex remote-exec, which holds no slot), offline (muted, no utilization claim), and slot-less codex exec hosts, which get a terminal glyph instead of an empty meter. Exact numbers stay reachable via row title and aria-label. Menu rows gain one optional meter slot; the slot numbers stay structured instead of being flattened into a translated string. Production +151 / tests +199 / proof tooling +104. Follow-up candidates: provider-usage and swarm-progress bars still hand-roll their meters. * fix(ui): keep meter alt text out of device row titles The e2e suite caught the capacity label polluting disabled rows' titles: 'This runtime does not support paired devices · Slot utilization unavailable'. The disabled reason owns the title; the meter's no-claim text stays on its aria-label. Presentation now returns a separate title that exists only when it carries countable numbers, and the three e2e assertions that pinned the retired string fact assert the meter's aria-label instead. * test: record the second qa-lab preserve-caught-error suppression openclaw#132399 added a second preserve-caught-error suppression in extensions/qa-lab/src/gateway-child-setup.ts without updating the production-suppression inventory, so the tooling lane fails on every full run that includes it. Record the landed count; not part of the pips change, fixed here because landing must not go onto a red gate.
…lling the guard (openclaw#132420) * fix(reef): parked owner reviews own inbound delivery; keepalive the inbox socket A pending owner review threw through the inbox pipeline as a connection failure: the socket tore down, the ~30s reconnect loop re-delivered the message, and every redelivery re-ran the live guard before consulting the review store. Any stray stochastic allow delivered the message with the review still pending, and one transient guard failure terminally rejected it to the peer (observed live: 554 re-classifications, then delivery with no owner decision). The recorded review decision now owns redelivery: classifyWithReview consults the review store before any guard call, pending parks the entry un-acked at the relay with the socket up and the durable cursor held, later entries keep processing, and the reconcile loop re-polls so an owner decision completes delivery within ~30s (one final post-approval classification). Transient guard_failure denials park-and-retry instead of rejecting the peer; sends still fail fast. The inbox socket also gains the relay's ping/pong keepalive, preventing the silent idle cuts behind the periodic 1006 reconnects on long-idle links. * fix(reef): one durable read observation per parked entry Re-polling a parked entry every reconcile interval appended a read audit event per attempt (~2,880/day), filling the bounded audit window. The flow now records one read per park lifecycle and resumes normal observation once the entry resolves. * fix(test): avoid shadowing the inbox entry in the parked-read assertion * fix(test): register second intentional qa-lab suppression in the allowlist Main broke at 1028225 (openclaw#132399): it added a second justified preserve-caught-error suppression to gateway-child-setup.ts without updating the full-suite-only suppression allowlist.
…ner-enforced channels (openclaw#125618) * fix(auto-reply): restore admitted non-owner session resets Keep reset-only admission inside command authorization while preserving explicit command denials, plugin owner enforcement, internal Gateway scopes, and the published authorization object. Remove the duplicate reset policy module and redundant native branch, and prove durable session effects and acknowledgments across text, native, peer, and owner-policy cases. Restore /new and /reset for admitted senders without granting ordinary command or owner authority. Correct the slash-command policy documentation. Fixes openclaw#125540 Co-authored-by: chelsealong <[email protected]> * refactor(qa): centralize packaged bootstrap error redaction Route auth bootstrap and packaged plugin preparation through one local execution boundary that redacts and bounds diagnostics without retaining credential-bearing causes. Preserve command ordering and the existing single-suppression baseline. Fixes the tooling CI regression exposed after openclaw#132399 while preparing openclaw#125618. The unchanged suppression test fails before and passes after; real child-process failure and startup cleanup tests pass. * test(qa): tighten packaged bootstrap suppression inventory --------- Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: chelsealong <[email protected]>
What Problem This Solves
Package Telegram acceptance installs the release tarball successfully, but its first QA gateway fails before any Telegram message is sent. The shared QA config enables the external ACP plugin, while every scenario starts with fresh isolated state that has no installed artifact or recorded capability consent. The separate onboarding smoke uses a different home and cannot prepare that state.
Observed in the full release validation of
383a293b32d97254014437430b62aaf406bc11ac: package Telegram job.Why This Change Was Made
Before launching an explicitly packaged QA child, run the candidate's own
update repair --yes --no-restart --jsonafter its mock-auth bootstrap, adding--accept-capabilitieswhen the candidate advertises it in help. Published2026.7.1-2exposes repair but predates that flag; the same repair path remains usable for it. The candidate installs configured plugin artifacts and records this fixture's consent in the child's state. Gateway startup retains its normal verify-only behavior. A failed setup blocks startup and exposes a bounded, redacted diagnostic.No source plugin is substituted for a package artifact, no consent record is copied from another home, and no runtime verification check is removed. Preparation follows each freshly written config. Bind-collision and RPC startup retries rebuild config and run repair again; a migration-convergence restart preserves the existing config and does not repeat preparation. This prevents a fresh retry from restoring plugin entries the candidate removed.
User Impact
Packaged QA can reach its gateway using the selected release artifact and isolated scenario state. Product install/update behavior, release artifacts, configuration options, schemas, and dependencies are unchanged.
Evidence
extensions/qa-lab/src/gateway-child.test.tspass with the fix on Linux. The final compatibility- and retry-aware file passes locally: 92 passed, one existing platform-dependent case skipped (93 total).33230733150, verifying archive hashes and the registry manifest before use. The original gateway reproduced the missing-consent failure; candidate-owned repair succeeded without restarting a service. Selected model and auth settings and configured product-plugin options remained intact. The candidate removed the unavailable source-only QA Lab entry and normalized empty plugin config objects.createQaGatewayChild().start()completed fresh-state auth bootstrap, plugin preparation, HTTP readiness, andconfig.getRPC against that same package. Testbox workflow; lease stopped after proof. This proves package startup, not a Telegram round trip; the focused hosted package-Telegram lane must supply transport proof.Production/test-support delta: +35/-2 (net +33) in the QA child owner. Tests: +207/-59 (net +148, including modern/legacy and real subprocess retry and lease-lifetime coverage). The added owner step performs the missing isolated package preparation; it does not add a production test seam or an alternate plugin installer.
CI follow-up
The first exact-head CI run caught a second disposable packaged CLI fixture that rejected the new repair command, so its lease-lifetime tests never reached gateway startup. The fixture now accepts candidate repair and records its completion before gateway launch; its real descendant-process shutdown, heartbeat, and lease-release assertions remain intact. The same follow-up fixes the lint-required braces in the setup-failure assertion. No production code changed.
After that correction, the gateway-child, gateway-child-lifecycle, and gateway-startup-lease integration files passed together: 104 passed, one existing platform skip (105 total). A fresh independent Codex review of the test-only follow-up found no actionable P0 issues. Exact-head hosted CI run 33238064531 passed on
83b8fa24f08ba062c954b5da46491c3a01bc72df, including the changed-extension tests and lint that failed on the first run. The clean hosted checks resolve the local stale-dependency type/lint proof gap. The latest ClawSweeper review covers this same head and reports no actionable correctness findings.