Skip to content

feat(qa): crabline channel driver - #91502

Merged
RomneyDa merged 32 commits into
mainfrom
codex/multipass-channel-driver
Jun 22, 2026
Merged

RomneyDa merged 32 commits into
mainfrom
codex/multipass-channel-driver

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Jun 8, 2026 •

Copy link
Copy Markdown
Member

Summary

This PR makes QA profile channel drivers executable and separates channel selection from the driver that provides it.

  • Adds crabline as a QA Lab devDependency pinned to merged Crabline main commit f7d034d90a8005c61fe38216462f385b9fe9f018.
  • Runs the smoke-ci Crabline path by asking Crabline for an OpenClaw adapter, then using the returned binding to configure OpenClaw's normal channel plugin against a Crabline fake provider server.
  • Keeps the default synthetic QA path as qa-channel, keeps live declarative for release-profile wiring, and normalizes qa-channel | crabline | live before driver-specific setup.
  • Keeps channel support, fake-provider startup, OpenClaw plugin config, target mapping, inbound payload mapping, and recorder decoding in Crabline's OpenClaw adapter instead of duplicating those semantics in QA Lab.
  • Keeps Crabline scoped to QA Lab as a devDependency, with an explicit QA Lab-only contract exception for the optional runtime import so it does not become a production runtime dependency.

Why

QA scenarios should ask for a channel such as telegram, while the selected profile decides whether that exchange uses the synthetic QA channel, a Crabline fake provider server, or a live provider. smoke-ci is the deterministic Crabline profile; release evidence remains reserved for live channel drivers.

Validation

  • pnpm install --frozen-lockfile
  • pnpm --filter @openclaw/qa-lab exec tsgo --noEmit -p tsconfig.json
  • pnpm exec vitest run extensions/qa-lab/src/crabline-channel-driver.test.ts extensions/qa-lab/src/crabline-transport.test.ts extensions/qa-lab/src/suite-runtime-agent-process.test.ts src/plugins/contracts/extension-runtime-dependencies.contract.test.ts
  • OPENCLAW_ADDITIONAL_BOUNDARY_SHARD='2/4,3/4,4/4' OPENCLAW_ADDITIONAL_BOUNDARY_CONCURRENCY=4 node scripts/run-additional-boundary-checks.mjs
  • pnpm openclaw qa suite --scenario dm-chat-baseline --channel-driver crabline --channel telegram --provider-mode mock-openai --output-dir .artifacts/qa-e2e/crabline-dm-smoke --fast
  • git diff --check

@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch from 1922ebb to 62862a8 Compare June 8, 2026 20:27
@clawsweeper

clawsweeper Bot commented Jun 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed June 22, 2026, 8:53 AM ET / 12:53 UTC.

Summary
Adds a Crabline-backed QA Lab channel-driver path, profile and CLI channel-driver selection, smoke/live QA workflow changes, docs/tests, and a GitHub-pinned Crabline dependency.

PR surface: Source +1169, Tests +717, Docs +12, Config +85, Other +73. Total +2056 across 32 files.

Reproducibility: not applicable. This PR adds a new QA Lab channel-driver and workflow path rather than fixing a current-main bug. The blocking smoke-lane secret issue is source-reproducible from the current PR head workflow lines.

Review metrics: 3 noteworthy metrics.

  • QA Selection Surfaces Added: 1 taxonomy field, 2 CLI flags. The new profile channel-driver field and qa suite flags change how QA profile intent maps to channel transport execution.
  • Dependency Graph Surfaces Changed: 1 GitHub dependency, 1 lockfile, 1 allowBuilds entry, 2 overrides. These are security and upgrade-review surfaces that green tests do not settle.
  • Secret-Bearing Mock Workflow Surface: 1 mock smoke job receives 2 Convex secrets. A deterministic mock lane should not expand the live credential boundary unless maintainers intentionally approve it.

Stored data model
Persistent data-model change detected: migration/backfill/repair: extensions/qa-lab/src/crabline-channel-driver.test.ts, migration/backfill/repair: extensions/qa-lab/src/suite-runtime-flow.ts, migration/backfill/repair: extensions/qa-lab/src/suite.test.ts, serialized state: extensions/qa-lab/src/crabline-channel-driver.test.ts, serialized state: extensions/qa-lab/src/suite.test.ts, serialized state: qa/scenarios/memory/active-memory-preprompt-recall.yaml, and 5 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster
Relationship: canonical
Canonical: #91502
Summary: This PR is the canonical OpenClaw branch for Crabline QA channel-driver work; related items are stacked runner parity, a closed RFC tracker, adjacent smoke workflow wiring, and release-profile cleanup it must preserve.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🌊 off-meta tidepool
Patch quality: 🧂 unranked krab
Result: blocked by patch quality or review findings.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Remove Convex secret validation and env from the smoke-ci Crabline job.
  • Get current-head dependency/security approval for the GitHub-pinned Crabline package or switch to an approved distribution path.
  • Refresh review after the secret boundary and dependency approval evidence are updated.

Risk before merge

  • [P1] The mock smoke-ci Crabline job is documented as no-live-service proof but still validates and exposes live Convex credential-broker secrets, widening the secret boundary and making deterministic smoke proof depend on credential infrastructure.
  • [P1] The GitHub-pinned crabline dependency, lockfile, allowBuilds entry, and dependency overrides need current-head maintainer/security approval before merge.
  • [P1] The stacked runner-parity PR at fix(qa): reserve shared QA suite flags across runners #91506 depends on this branch, so landing order and final review need to stay coordinated.

Maintainer options:

  1. Make Smoke CI Credential-Free (recommended)
    Remove Convex secret validation and env from run_smoke_ci_crabline, leaving credential leases only in the live transport jobs.
  2. Approve The Dependency Surface
    Maintainers/security can explicitly approve the current-head GitHub-pinned Crabline dependency, lockfile, build allowance, and overrides after reviewing the resolved graph.
  3. Pause For Packaging Policy
    If GitHub-SHA Crabline installation is not ready for OpenClaw CI, pause this branch until Crabline has an approved distribution path.

Next step before merge

  • [P2] Protected maintainer PR with a security-boundary finding and dependency-approval gate needs author/maintainer repair and current-head approval, not an autonomous cleanup close or repair lane.

Security
Needs attention: Needs attention: current head still gives a deterministic mock smoke lane live Convex secrets and adds an approval-sensitive GitHub dependency/build surface.

Review findings

  • [P1] Keep the smoke-ci Crabline lane credential-free — .github/workflows/qa-live-transports-convex.yml:623-624
Review details

Best possible solution:

Land a maintainer-approved QA Lab version that keeps Crabline in the QA Lab boundary, keeps mock smoke-ci credential-free, preserves the explicit release profile list, and records current-head dependency/security approval.

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

Not applicable: this PR adds a new QA Lab channel-driver and workflow path rather than fixing a current-main bug. The blocking smoke-lane secret issue is source-reproducible from the current PR head workflow lines.

Is this the best way to solve the issue?

No: keeping Crabline inside QA Lab is a plausible owner-boundary fit, but this is not the best merge shape until the mock smoke job is credential-free and dependency/security approval is recorded.

Full review comments:

  • [P1] Keep the smoke-ci Crabline lane credential-free — .github/workflows/qa-live-transports-convex.yml:623-624
    The new run_smoke_ci_crabline job runs --qa-profile smoke-ci --provider-mode mock-openai, and the PR docs/transport notes describe this lane as deterministic local mock coverage with no external credential lease. Passing OPENCLAW_QA_CONVEX_* into that run makes the mock lane secret-bearing; remove the Convex validation/env here and keep those secrets in the live transport jobs.
    Confidence: 0.93

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0a2ca1f7ac9f.

Label changes

Label justifications:

  • P3: This is an internal QA automation feature with limited direct user-facing blast radius, even though it has merge-blocking review issues.
  • merge-risk: 🚨 compatibility: The PR adds QA profile schema/default behavior and CLI selection surfaces that can change existing QA automation expectations.
  • merge-risk: 🚨 automation: The diff changes scheduled/manual QA workflow behavior and smoke/release profile dispatch semantics.
  • merge-risk: 🚨 security-boundary: The diff adds a GitHub-pinned dependency and still passes live Convex secrets into a mock smoke lane that should not need them.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The external-contributor real-proof gate is not applicable because this is a MEMBER-authored, maintainer-labeled PR; the body lists local validation but the remaining blockers are security/dependency review surfaces.
Evidence reviewed

PR surface:

Source +1169, Tests +717, Docs +12, Config +85, Other +73. Total +2056 across 32 files.

View PR surface stats
Area Files Added Removed Net
Source 14 1189 20 +1169
Tests 9 720 3 +717
Docs 1 16 4 +12
Config 3 85 0 +85
Generated 0 0 0 0
Other 5 467 394 +73
Total 32 2477 421 +2056

Security concerns:

  • [medium] Mock smoke job receives live Convex secrets — .github/workflows/qa-live-transports-convex.yml:623
    The smoke-ci Crabline job passes OPENCLAW_QA_CONVEX_SITE_URL and OPENCLAW_QA_CONVEX_SECRET_CI into a mock-provider lane that should not need credential broker access.
    Confidence: 0.93
  • [medium] GitHub-pinned Crabline dependency needs approval — extensions/qa-lab/package.json:19
    @openclaw/qa-lab adds crabline from a GitHub SHA, updates lock/workspace dependency policy, and the pinned upstream package has a prepare build script, so maintainers/security need to approve the current resolved graph.
    Confidence: 0.95

What I checked:

  • Repository policy read and applied: Root plus scoped extensions/, docs/, and scripts/ AGENTS.md guidance was read fully; dependency/security, plugin-boundary, workflow, and docs rules affected this review. (AGENTS.md:1, 0a2ca1f7ac9f)
  • Protected maintainer PR: Live PR metadata shows author RomneyDa, current head 822b457b8fd223bcc62a4ff6649460d08904a3cd, and labels including maintainer, dependencies-changed, and the existing merge-risk labels. (822b457b8fd2)
  • Current main lacks the Crabline QA driver: A current-main search found only generic evidence-summary channelDriver fields, not the Crabline profile driver, CLI flag, workflow job, or dependency added by this PR, so the central feature is still unique to this branch. (extensions/qa-lab/src/evidence-summary.ts:288, 0a2ca1f7ac9f)
  • Mock smoke job still receives Convex secrets: The PR head adds run_smoke_ci_crabline and passes OPENCLAW_QA_CONVEX_SITE_URL and OPENCLAW_QA_CONVEX_SECRET_CI into a --qa-profile smoke-ci --provider-mode mock-openai run. (.github/workflows/qa-live-transports-convex.yml:623, 822b457b8fd2)
  • Crabline lane is documented as no-live-service proof: The PR docs describe smoke-ci as deterministic mock-provider proof using the Crabline SDK-backed channel driver, while the Crabline transport report notes say no live channel service, provider SDK, or external credential lease is required. (extensions/qa-lab/src/crabline-transport.ts:361, 822b457b8fd2)
  • Release profile regression is addressed on current head: PR head keeps the explicit release categoryIds list and only adds channelDriver: live, preserving the intent from merged release-profile cleanup PR test(qa): make release scorecard categories explicit #95406. (taxonomy.yaml:52, 822b457b8fd2)

Likely related people:

  • RomneyDa: Authored this PR and multiple recent merged QA Lab taxonomy/profile changes, including the explicit release profile cleanup that this head now preserves. (role: feature owner and recent area contributor; confidence: high; commits: 822b457b8fd2, 9ab8e466d230, e32929e12cd4; files: taxonomy.yaml, extensions/qa-lab/src/cli.runtime.ts, extensions/qa-lab/src/suite.ts)
  • vincentkoc: Recent GitHub commit history on the touched workflow and QA Lab runtime includes live credential lease handling and bounded credential payload reads. (role: recent QA credential and workflow contributor; confidence: medium; commits: 14fd10f8f8fb, b972feb3f791, e2b6753b8776; files: .github/workflows/qa-live-transports-convex.yml, extensions/qa-lab/src/cli.runtime.ts)
  • steipete: Recent history on QA suite/runtime and live QA workflow behavior makes this a plausible routing candidate for the runner and credential-boundary review. (role: adjacent QA suite contributor; confidence: medium; commits: 2e8b3445fb0a, 201fe25dadb2, 1188aa3b81ef; files: extensions/qa-lab/src/suite.ts, .github/workflows/qa-live-transports-convex.yml)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Jun 8, 2026
@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch from 62862a8 to ed0f421 Compare June 9, 2026 01:01
@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch 2 times, most recently from be691b1 to 7dd88c3 Compare June 9, 2026 01:51
@RomneyDa RomneyDa changed the title Add Multipass channel-driver QA seam Add Crabline channel-driver QA seam Jun 9, 2026
@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch 3 times, most recently from ad04c65 to 37f31af Compare June 15, 2026 00:44
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Jun 15, 2026
@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch from 37f31af to 0600fe7 Compare June 15, 2026 21:52
@RomneyDa
RomneyDa requested a review from a team as a code owner June 15, 2026 22:26
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jun 15, 2026
@github-actions

github-actions Bot commented Jun 15, 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 devDependencies.

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

  • extensions/qa-lab/package.json changed 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 (a2f33de2714d2ecd984461b40c7b268f936ba13d) when it reruns. A later push requires a fresh approval.

@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch from c0541e3 to 58df47e Compare June 16, 2026 00:28
@RomneyDa RomneyDa changed the title Add Crabline channel-driver QA seam feat(qa): crabline channel driver Jun 16, 2026
@RomneyDa
RomneyDa force-pushed the codex/multipass-channel-driver branch from 6200210 to 9a82237 Compare June 16, 2026 02:41
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation and removed size: M labels Jun 16, 2026
@RomneyDa

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 22, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

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 docs Improvements or additions to documentation extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant