Skip to content

fix(qa): repair package Telegram harness boundaries#108499

Merged
steipete merged 5 commits into
mainfrom
codex/fix-qa-lab-package-entry-import
Jul 16, 2026
Merged

fix(qa): repair package Telegram harness boundaries#108499
steipete merged 5 commits into
mainfrom
codex/fix-qa-lab-package-entry-import

Conversation

@steipete

@steipete steipete commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Exact main release checks exposed four installed-package Telegram harness failures:

  1. QA Lab eagerly reached openclaw/plugin-sdk/qa-channel, a private facade intentionally absent from packed runtimes.
  2. The harness passed an absolute container path to a CLI requiring repo-relative --output-dir.
  3. The remaining graph reached the intentionally local-only openclaw/plugin-sdk/qa-channel-protocol export.
  4. Once the package graph loaded, the container lacked the source-mounted QA scenario catalog, so every selected Telegram scenario was unknown.

Exact failures:

Why This Change Was Made

QA Lab registration imports only the narrow public plugin-entry helper. Lab-server and native QA-channel paths lazy-load the private facade only when those embedded QA features execute.

The package-mounted QA Lab bus owns the two small protocol helpers its source graph requires. Parity tests compare parsing and bounded redaction with the canonical local-only protocol. This avoids widening installed-package exports merely to satisfy a source harness.

The Docker harness now keeps separate relative CLI and absolute mount output paths. It also mounts the QA scenario catalog as read-only harness data while the SUT remains the installed package candidate.

Regression coverage imports the real Telegram harness while both private QA SDK paths fail on load, checks protocol parity, and asserts both package-path and scenario-data mounts.

User Impact

Package acceptance and live Telegram validation can exercise an installed package without private QA-only exports, rejected artifact paths, or missing harness scenarios. Explicit QA-channel flows retain their behavior.

Evidence

@steipete
steipete force-pushed the codex/fix-qa-lab-package-entry-import branch from fac11d6 to debe151 Compare July 15, 2026 23:37
@steipete
steipete force-pushed the codex/fix-qa-lab-package-entry-import branch from debe151 to f7424e6 Compare July 15, 2026 23:59
@steipete steipete changed the title fix(qa): keep packaged entry off private transport fix(qa): lazy-load private package harness runtime Jul 16, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f7424e6339

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 292 to 293
splitModelRef: params.splitModelRef,
qaChannelPlugin,
hasDiscoveryLabels,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Keep suite runtime test expectations in sync

With this dependency removed, createQaSuiteScenarioDeps no longer passes qaChannelPlugin, but extensions/qa-lab/src/suite-runtime-flow.test.ts:333 still asserts call.deps.qaChannelPlugin is the mocked plugin. That focused QA Lab test will fail because the property is now undefined; either preserve the dependency or update the test expectation in the same change.

Useful? React with 👍 / 👎.

@steipete steipete self-assigned this Jul 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling size: S and removed size: XS labels Jul 16, 2026
@steipete steipete changed the title fix(qa): lazy-load private package harness runtime fix(qa): repair package Telegram harness boundaries Jul 16, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7a232b7767

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

});

it("loads the package Telegram harness without the private QA transport runtime", async () => {
const { runQaTelegramSuite } = await import("./src/live-transports/telegram/cli.runtime.js");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Exercise the harness path that still loads private QA protocol

In the installed-package Telegram lane this test only imports cli.runtime.js; it never calls runQaTelegramSuite, so it misses the runtime path where runQaFlowSuiteFromRuntime() imports lab-server.ts, which imports bus-state.ts/bus-queries.ts. Those modules still have value imports from openclaw/plugin-sdk/qa-channel-protocol (extensions/qa-lab/src/bus-state.ts:3, extensions/qa-lab/src/bus-queries.ts:2), and that subpath is explicitly omitted from the package (package.json:156; node -e "import('openclaw/plugin-sdk/qa-channel-protocol')" returns ERR_PACKAGE_PATH_NOT_EXPORTED). When the Docker harness actually runs the suite, package acceptance can still fail even though this import-only regression passes.

Useful? React with 👍 / 👎.

@steipete
steipete merged commit 154d127 into main Jul 16, 2026
120 checks passed
@steipete
steipete deleted the codex/fix-qa-lab-package-entry-import branch July 16, 2026 02:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Jul 16, 2026
* fix(qa): keep packaged entry off private transport

* fix(qa): lazy-load private transport runtime

* fix(qa): pass relative package artifact path

* fix(qa): isolate packaged bus protocol

* fix(qa): mount package scenario catalog
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 16, 2026
* fix(qa): keep packaged entry off private transport

* fix(qa): lazy-load private transport runtime

* fix(qa): pass relative package artifact path

* fix(qa): isolate packaged bus protocol

* fix(qa): mount package scenario catalog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling extensions: qa-lab maintainer Maintainer-authored PR scripts Repository scripts size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant