Skip to content

fix(qa): staged QA Lab cannot load Matrix - #117392

Merged
RomneyDa merged 1 commit into
mainfrom
fix/qa-lab-matrix-dev-dependency
Aug 1, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/qa-lab-matrix-dev-dependency

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Aug 1, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where staged OpenClaw projected QA Lab as unhealthy before any scenario ran because QA Lab declared the external Matrix plugin as a required runtime dependency.

Why This Change Was Made

Every direct QA Lab import from @openclaw/matrix/test-api.js is type-only and erased at build time. Runtime access already goes through the host-owned loadQaRunnerBundledPluginTestApi("matrix") facade, which loads Matrix's built test artifact from the active OpenClaw host.

Moving @openclaw/matrix back to devDependencies therefore records its real role: source typechecking and tests. It prevents generic plugin dependency-health discovery from requiring a separately installed Matrix package in staged OpenClaw without adding a special case or bundling a second plugin runtime.

User Impact

Maintainers can stage and validate QA Lab channel scenarios without a false missing-runtime-dependency failure before the scenario starts.

Evidence

Production delta: zero lines; package metadata only.

Landing note: dependency guard intentionally requires a repository admin or @openclaw/openclaw-secops member to comment /allow-dependencies-change <reason> for the current head SHA.

AI-assisted: yes. Agent transcript omitted unless requested.

@RomneyDa
RomneyDa marked this pull request as ready for review August 1, 2026 12:00
@RomneyDa
RomneyDa requested a review from a team as a code owner August 1, 2026 12:00
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/qa-lab/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Aug 1, 2026
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Dependency graph changes are blocked

OpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph.

Detected dependency graph changes:

  • pnpm-lock.yaml changed.
  • extensions/qa-lab/package.json changed dependencies, devDependencies.

Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:

  • extensions/qa-lab/package.json changed dependencies, devDependencies.

Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed.

To remove lockfile changes, restore them from the target branch:

git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git push

If this PR intentionally needs a dependency graph change, ask a repository admin or member of @openclaw/openclaw-secops to comment:

/allow-dependencies-change

The action will approve the current head SHA (346a8f35e2a3abaf9f03b4efc782f29c5479a135) when it reruns. A later push requires a fresh approval.

@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, 8:49 AM ET / 12:49 UTC.

ClawSweeper review

What this changes

The PR reclassifies the Matrix workspace package from a QA Lab runtime dependency to a development dependency so staged QA Lab scenarios load Matrix through OpenClaw’s host-provided test API.

Merge readiness

⚠️ Ready for maintainer review - 5 items remain

The patch matches the current QA Lab runtime boundary: Matrix is used for erased TypeScript types while runtime loading goes through the host-owned bundled test-API facade. It should remain open for the protected maintainer/dependency authorization path rather than be auto-closed or mechanically repaired.

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, source-consistent package-boundary repair with credible validation evidence; the remaining blocker is exact-head dependency authorization rather than a patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes a failed staging run, focused after-fix suite, and successful changed-file gate.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes a failed staging run, focused after-fix suite, and successful changed-file gate.
Evidence reviewed 7 items Current-main package behavior: Current main still lists @openclaw/matrix in QA Lab's dependencies, so the requested staging-health correction is not already implemented.
QA Lab runtime loader: The Matrix E2EE client dynamically imports the QA runner facade and requests the Matrix test-api.js surface rather than directly importing Matrix runtime code.
Bundled test API contract: The facade resolves &lt;plugin>/test-api.js from the bundled plugin public surface, and its focused test verifies Matrix resolution through the private QA source-tree override.
Findings None None.
Security None None.

How this fits together

QA Lab runs channel scenarios from a staged OpenClaw host. Its Matrix scenario code needs Matrix types during development, but at runtime it resolves the Matrix test API from the active host’s bundled plugin artifact; package dependency health otherwise treats declared runtime dependencies as required installations.

flowchart LR
  A[Staged OpenClaw host] --> B[QA Lab scenario runner]
  B --> C[Matrix E2EE scenario]
  C --> D[Host test API facade]
  D --> E[Bundled Matrix test artifact]
  F[QA Lab package manifest] --> G[Plugin dependency health]
  G --> H[Staging readiness status]
Loading

Decision needed

Question Recommendation
Should an authorized repository administrator or security reviewer approve this exact-head workspace dependency reclassification after confirming QA Lab has no direct Matrix runtime import? Authorize the dependency move: Approve the current head because QA Lab uses Matrix only for development-time types and loads the runtime test API from the staged host facade.

Why: The patch is technically consistent with the inspected runtime loader, but repository policy intentionally reserves dependency-graph authorization for an administrator or security reviewer.

Before merge

  • Resolve merge risk (P1) - The change moves one workspace package from required runtime dependencies to development dependencies, so an incorrectly missed runtime import would make a separately installed QA Lab fail only after staging.
  • Resolve merge risk (P1) - Repository dependency policy requires an administrator or @openclaw/openclaw-secops approval for the exact current head before the manifest and lockfile change can land.
  • Resolve merge risk (P1) - Current main is ahead of the PR base; refresh the merge result and read the latest ClawSweeper rank-up moves before landing.
  • Complete next step (P2) - The code change is coherent, but the protected maintainer label and exact-head dependency-authorization policy require human approval rather than an automated repair lane.
Agent review details

Security

None.

PR surface

Config 0, Other 0. Total 0 across 2 files.

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

Review metrics

Metric Value Why it matters
Dependency classification 1 workspace package moved from runtime to development dependencies This changes which package QA Lab staging treats as required, so the dependency boundary and exact-head authorization matter before merge.

Merge-risk options

Maintainer options:

  1. Authorize after runtime-boundary confirmation (recommended)
    An authorized administrator or security reviewer should verify the host-facade path and approve the exact head's manifest and lockfile change.
  2. Hold the runtime dependency
    Keep Matrix in runtime dependencies if packaged or staged QA Lab has a supported direct Matrix runtime-import contract not covered by the inspected facade path.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Confirm the QA Lab Matrix runtime is host-facade loaded, then authorize the exact current head's dependency change.

Technical review

Best possible solution:

Approve the dependency classification only after confirming the Matrix runtime remains exclusively host-facade loaded, then merge the narrow manifest and lockfile change with the required exact-head dependency authorization.

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

Yes, source provides a high-confidence reproduction mechanism: dependency health treats QA Lab's declared Matrix runtime dependency as required, while the runtime path resolves Matrix through the staged host facade. This read-only review did not execute the staging scenario.

Is this the best way to solve the issue?

Yes. Moving the declaration to devDependencies is the narrowest maintainable repair because the inspected direct Matrix references are type-only and the actual runtime loader already uses the host-owned public test API facade.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9a2930437352.

Labels

Label changes:

  • add P2: This repairs a bounded QA staging false-negative without evidence of a production message, security, or availability emergency.
  • add merge-risk: 🚨 compatibility: Reclassifying a plugin dependency can change installed and staged QA Lab availability if a direct runtime import was missed.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes a failed staging run, focused after-fix suite, and successful changed-file gate.

Label justifications:

  • P2: This repairs a bounded QA staging false-negative without evidence of a production message, security, or availability emergency.
  • merge-risk: 🚨 compatibility: Reclassifying a plugin dependency can change installed and staged QA Lab availability if a direct runtime import was missed.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless includes a failed staging run, focused after-fix suite, and successful changed-file gate.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Current-main blame and the latest manifest-string provenance point to the July 31 package-manifest revision; the same current-main materialization owns the QA runner facade and dependency-health source inspected for this review. (role: recent area contributor; confidence: medium; commits: ee320a6e4114; files: extensions/qa-lab/package.json, src/plugin-sdk/qa-runner-runtime.ts, src/plugins/status-dependencies-core.ts)

Rank-up moves

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

  • Obtain the repository-required administrator or security approval for the exact current head.
  • Refresh against current main and confirm the latest ClawSweeper rank-up moves before landing.

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.

@RomneyDa
RomneyDa merged commit fb9c8e7 into main Aug 1, 2026
217 of 235 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-lab-matrix-dev-dependency branch August 1, 2026 12:59
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files 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: XS 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