Skip to content

fix(qa): keep runner discovery off broad runtime barrels - #117203

Merged
vincentkoc merged 1 commit into
mainfrom
fix/qa-runner-discovery-lean
Aug 1, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/qa-runner-discovery-lean

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

Related: #117033

What Problem This Solves

Fixes an issue where bundled QA runner discovery imported broad plugin runtime barrels, causing cold discovery to become slow enough to time out after the Microsoft Teams QA runner was registered.

Why This Change Was Made

Moves Buzz and Microsoft Teams registrations to dedicated qa-runner-api facades and teaches the shared loader to prefer that narrow surface. Installed non-bundled plugins retain a documented runtime-api fallback through October 1, 2026, so existing runner packages are not broken during the migration window.

User Impact

openclaw qa can discover bundled runners without loading unrelated runtime/plugin state. Existing installed runner plugins that still expose registrations from runtime-api continue to work during the migration window.

Evidence

  • 54 focused QA runner, Buzz, Microsoft Teams, manifest, and boundary tests passed
  • five cold discovery runs completed in 3.97-5.26 seconds
  • packaged artifact 8813207658 contains both narrow facades; broad facades export no runner registrations
  • packaged bundled discovery finds both runners, and a built legacy installed-plugin fallback succeeds
  • exact-head CI run https://github.com/openclaw/openclaw/actions/runs/30683742675 completed successfully on attempt 2
  • attempt 1 only had an unrelated lint runner shutdown; the exact failed-job retry passed
  • fresh autoreview: clean, no accepted/actionable findings, correctness 0.93
  • zero touched-file drift against current main; clean synthetic merge tree 17e49c879144abbba9030e701f218ca34dc12b58
  • zero unresolved review threads

ClawSweeper Rank-up Disposition

  • Packaged new-facade discovery: satisfied by artifact 8813207658.
  • Packaged legacy installed-plugin fallback: satisfied by the built fallback proof.
  • Temporary compatibility contract: accepted through October 1, 2026, and documented in the changed QA/plugin docs.
  • Final exact-head review: exact-head ClawSweeper reports no findings; current exact-head CI is green.

@vincentkoc vincentkoc self-assigned this Aug 1, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: msteams Channel integration: msteams extensions: qa-lab channel: buzz size: M maintainer Maintainer-authored PR labels Aug 1, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 1:37 AM ET / 05:37 UTC.

ClawSweeper review

What this changes

The branch moves Buzz and Microsoft Teams QA runner registrations to lightweight qa-runner-api facades, changes QA discovery to load them first, and temporarily falls back to installed plugins’ legacy runtime-api surface.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

This PR is still necessary: current main loads every bundled QA runner from its broad runtime-api.js barrel, while the proposed narrow facade avoids that load and keeps installed legacy plugins working during the documented migration window. No concrete patch or security defect was found, but the time-bounded shipped plugin contract change needs explicit maintainer acceptance before merge.

Priority: P2
Reviewed head: b25d988b7a35bcd5467f6fa9e4c93d03523c77ed
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The implementation is focused, contract-aware, and backed by targeted packaging and fallback evidence; the remaining gate is maintainer acceptance of the temporary public compatibility contract.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nonetheless supplies packaged discovery and legacy-fallback run evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nonetheless supplies packaged discovery and legacy-fallback run evidence.
Evidence reviewed 7 items Current main retains the broad load path: Current main resolves every bundled QA runner through runtime-api.js; the central behavior this PR changes is not yet implemented on main.
Narrow facade with bounded compatibility fallback: The branch loads bundled runners from qa-runner-api.js, then falls back only when an activated installed plugin lacks that artifact; the inline contract names the October 1, 2026 removal review.
Facade absence is distinguishable from loader failure: The underlying facade loader throws the exact missing-artifact error that the branch catches; other activation or module-load failures still propagate rather than silently selecting the legacy path.
Findings None None.
Security None None.

How this fits together

The shared openclaw qa command reads plugin manifest metadata, then loads each eligible plugin’s runner-registration surface to attach transport-specific commands. Those registrations feed QA Lab’s command tree, so loading a broad channel runtime during discovery can initialize unrelated plugin state before a runner is used.

flowchart LR
  Manifest[Plugin manifests] --> Discovery[QA runner discovery]
  Discovery --> Surface[Runner facade loader]
  Surface --> Narrow[qa-runner-api facade]
  Surface --> Legacy[Legacy runtime-api fallback]
  Narrow --> Commands[QA runner commands]
  Legacy --> Commands
  Commands --> Lab[QA Lab execution]
Loading

Decision needed

Question Recommendation
Do maintainers approve moving the shipped QA runner registration convention from runtime-api.ts to qa-runner-api.ts, with installed legacy plugins supported only through the October 1, 2026 removal review? Approve the staged migration: Land the narrow facade and keep the documented installed-plugin fallback until the named removal review.

Why: The implementation is coherent and preserves existing installed plugins, but the retirement date defines a public plugin migration boundary that source inspection cannot authorize on behalf of maintainers.

Before merge

  • Resolve merge risk (P1) - This deliberately moves a shipped extension-facing registration location; installed plugins remain compatible only through the documented October 1, 2026 migration review, so maintainers must own that retirement boundary.
  • Resolve merge risk (P1) - The current check snapshot still shows long-running jobs, so landing should wait for the exact-head required checks even though the prior completed qualification cited in the PR body is positive.
  • Complete next step (P2) - No mechanical repair is indicated; the remaining action is explicit maintainer approval of the time-bounded installed-plugin compatibility contract.
Agent review details

Security

None.

PR surface

Source +20, Tests +139, Docs +3. Total +162 across 13 files.

View PR surface stats
Area Files Added Removed Net
Source 6 42 22 +20
Tests 5 148 9 +139
Docs 2 10 7 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 13 200 38 +162

Review metrics

Metric Value Why it matters
Runner registration transition 2 bundled narrow facades added; 1 installed-plugin fallback retained This changes the discovery entrypoint for bundled runners while preserving the prior installed-plugin contract during migration.

Stored data model

Persistent data-model change detected: migration/backfill/repair: docs/concepts/qa-e2e-automation.md, migration/backfill/repair: docs/plugins/manifest.md, serialized state: src/plugin-sdk/qa-runner-runtime.integration.test.ts. Migration or upgrade compatibility proof is recorded; maintainers should verify it before merge.

Merge-risk options

Maintainer options:

  1. Approve the staged compatibility migration (recommended)
    Land the dedicated runner facade with the documented installed-plugin fallback and revisit removal at the October 1, 2026 migration review.
  2. Pause for a different compatibility design
    Keep the current registration surface if maintainers do not want to establish a time-bounded entrypoint migration for installed runner plugins.

Technical review

Best possible solution:

Accept the narrow qa-runner-api contract for new bundled runner discovery, retain the tested installed-plugin fallback through the stated migration review, and remove it only through a later explicit compatibility decision.

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

Yes—current main calls bundled runner discovery through runtime-api.js, and the branch’s integration fixture proves the intended path by making that broad module throw while discovery succeeds through qa-runner-api.js. I did not execute the fixture in this read-only review.

Is this the best way to solve the issue?

Yes, technically: a dedicated registration facade matches the repository’s narrow-plugin-surface policy and preserves the prior installed-plugin contract during migration. The remaining question is maintainer acceptance of the public retirement boundary, not a narrower code repair.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0892684551fd.

Labels

Label justifications:

  • P2: The patch addresses a bounded QA runner-discovery performance regression without evidence of a core-runtime outage or user-data risk.
  • merge-risk: 🚨 compatibility: Installed plugins may still expose runner registrations only from runtime-api.js, so the new facade must preserve and later deliberately retire that migration path.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR is exempt from the external-contributor proof gate; its body nonetheless supplies packaged discovery and legacy-fallback run evidence.

Evidence

What I checked:

  • Current main retains the broad load path: Current main resolves every bundled QA runner through runtime-api.js; the central behavior this PR changes is not yet implemented on main. (src/plugin-sdk/qa-runner-runtime.ts:521, 0892684551fd)
  • Narrow facade with bounded compatibility fallback: The branch loads bundled runners from qa-runner-api.js, then falls back only when an activated installed plugin lacks that artifact; the inline contract names the October 1, 2026 removal review. (src/plugin-sdk/qa-runner-runtime.ts:524, b25d988b7a35)
  • Facade absence is distinguishable from loader failure: The underlying facade loader throws the exact missing-artifact error that the branch catches; other activation or module-load failures still propagate rather than silently selecting the legacy path. (src/plugin-sdk/facade-loader.ts:216, 0892684551fd)
  • Build and package path includes the new sidecar: The new runner artifact is classified as a runtime sidecar, and a focused build-entry test asserts that both bundled runner facades are emitted. (src/plugins/bundled-plugin-scan.ts:8, b25d988b7a35)
  • Regression coverage exercises both migration sides: The linked-plugin integration fixture makes runtime-api.js throw if discovery touches it while supplying a narrow runner facade; the branch also adds a legacy installed-plugin fixture for the fallback. (src/plugin-sdk/qa-runner-runtime.integration.test.ts:107, b25d988b7a35)
  • Feature-history provenance: The current discovery function and bundled-sidecar scan were introduced in commit 0ae516da1fa38bdea03423d9de6520623c94f72e; blame shows this branch changes that owner boundary while retaining the original manifest and environment flow. (src/plugin-sdk/qa-runner-runtime.ts:524, 0ae516da1fa3)

Likely related people:

  • Peter Steinberger: Commit 0ae516da1fa38bdea03423d9de6520623c94f72e introduced the current QA runner discovery and bundled-sidecar scanning paths that this PR narrows. (role: introduced current discovery boundary; confidence: high; commits: 0ae516da1fa3; files: src/plugin-sdk/qa-runner-runtime.ts, src/plugins/bundled-plugin-scan.ts)
  • Vincent Koc: Authored this focused facade migration and the related merged Microsoft Teams QA-adapter work, giving direct context on the runner discovery pressure that exposed the broad-load path. (role: recent QA and Microsoft Teams contributor; confidence: high; commits: b25d988b7a35, a3220af4aa04; files: src/plugin-sdk/qa-runner-runtime.ts, extensions/msteams/qa-runner-api.ts)
  • Patrick Erichsen: The QA runner runtime history records commit 61cf4b924660434cbfb374f4f0f7ef9893a00d54 for the Buzz live QA lane, which shares the bundled-runner discovery surface. (role: adjacent Buzz QA contributor; confidence: medium; commits: 61cf4b924660; files: src/plugin-sdk/qa-runner-runtime.ts, extensions/buzz/qa-runner-api.ts)

Rank-up moves

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

  • Obtain maintainer confirmation that the October 1, 2026 fallback-removal review is the intended plugin migration policy.

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 (2 earlier review cycles)
  • reviewed 2026-08-01T04:23:55.960Z sha b25d988 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T04:28:51.494Z sha b25d988 :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

Exact-head qualification complete for b25d988b7a35bcd5467f6fa9e4c93d03523c77ed.

  • Full hosted CI: attempt 2 is terminal success. The first check-lint runner was shut down with exit 143 before any lint diagnostic; the single failed-job retry passed, and openclaw/ci-gate passed: https://github.com/openclaw/openclaw/actions/runs/30683742675
  • Packaged runtime artifact 8813207658 from that exact run contains both dist/extensions/{buzz,msteams}/qa-runner-api.js facades. Each exports exactly one runner registration; neither broad runtime-api.js facade exports runner registrations.
  • Real built bundled discovery returned Buzz and Microsoft Teams as available. A real built installed-plugin fixture with only legacy runtime-api.js also returned its runner as available, proving the temporary fallback.
  • Focused exact-head reruns covered 94 tests: 14 QA-runtime tests, 77 metadata/guardrail/build-entry tests, and 3 Buzz/Microsoft Teams tests. The earlier 54 figure was the pre-expansion subset.
  • Current origin/main is 0892684551fda8aaae51297c227ac12590205208; env-var ratchet is healthy at 515/515 after chore(ci): lower environment variable budget #117224. No touched files overlap main movement, the synthetic merge is conflict-free, deterministic merge tree 17e49c879144abbba9030e701f218ca34dc12b58, and review threads are 0.
  • ClawSweeper found no concrete defect. Its sole rank-up move was the packaged new+legacy facade proof above: fix(qa): keep runner discovery off broad runtime barrels #117203 (comment)

The PR remains draft and unmerged for the serialized maintainer landing slot.

@vincentkoc
vincentkoc marked this pull request as ready for review August 1, 2026 05:31
@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer decision: approve the staged qa-runner-api migration and the installed-plugin runtime-api fallback through the October 1, 2026 removal review. The fallback must not be removed without a separate compatibility decision.

Exact-head ready-state CI is terminal green: 59 passed, 12 skipped, zero failures. Current origin/main has zero touched-file drift, the deterministic merge tree is clean (2159cfab0c0efa4b6aef3ef799f705cb63e309eb), and there are zero unresolved review threads.

@vincentkoc
vincentkoc merged commit 6922ddd into main Aug 1, 2026
468 of 483 checks passed
@vincentkoc
vincentkoc deleted the fix/qa-runner-discovery-lean branch August 1, 2026 05:40
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: buzz channel: msteams Channel integration: msteams docs Improvements or additions to documentation extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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