Repository navigation
fix(qa): staged QA Lab cannot load Matrix - #117392
Conversation
Dependency GuardThis PR changes dependency-related files. Maintainers should confirm these changes are intentional. Changed files:
Maintainer follow-up:
|
Dependency graph changes are blockedOpenClaw 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:
Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:
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 pushIf this PR intentionally needs a dependency graph change, ask a repository admin or member of The action will approve the current head SHA ( |
|
Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 8:49 AM ET / 12:49 UTC. ClawSweeper reviewWhat this changesThe 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 readinessThe 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 Review scores
Verification
How this fits togetherQA 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]
Decision needed
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
Agent review detailsSecurityNone. PR surfaceConfig 0, Other 0. Total 0 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest 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 AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 9a2930437352. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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.jsis type-only and erased at build time. Runtime access already goes through the host-ownedloadQaRunnerBundledPluginTestApi("matrix")facade, which loads Matrix's built test artifact from the active OpenClaw host.Moving
@openclaw/matrixback todevDependenciestherefore 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
runStatus=succeeded: https://github.com/openclaw/openclaw/actions/runs/30698449370git diff --checkpassed.Production delta: zero lines; package metadata only.
Landing note: dependency guard intentionally requires a repository admin or
@openclaw/openclaw-secopsmember to comment/allow-dependencies-change <reason>for the current head SHA.AI-assisted: yes. Agent transcript omitted unless requested.