Skip to content

fix(qa): explain missing async capture support on older hosts - #159277

Merged
steipete merged 2 commits into
mainfrom
codex/qa-capture-capability
Sep 27, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/qa-capture-capability

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes QA capture module loading failures on supported older OpenClaw hosts that do not export async proxy capture operations. Related: #158848.

User Impact

The capture modules can now load when the async capture exports are absent, then refuse required operations with upgrade guidance. Slack adapter creation refuses before loading its transport runtime, acquiring credentials, or contacting Slack. This fixes the capture-export boundary only: the current QA CLI still fails earlier on published 2026.9.6 because other required SDK imports, including sqlite-runtime-testing, are unavailable. Run QA from a matching current source checkout. No host compatibility floor changes or synchronous SQLite fallback are introduced.

Why This Change Was Made

The QA plugin declares OpenClaw compatibility from 2026.9.4, but the published 2026.9.6 SDK lacks the two new async capture exports. Namespace access lets the existing capture owners validate the required capability when work is admitted, instead of failing ESM module linking. Existing accepted-operation draining, capture lease release, and Slack cleanup stay unchanged.

Evidence

  • pnpm build passed (16m26s cold build); fresh independent P2 autoreview was clean.
  • The actual installed npm 2026.9.6 artifact reproduces both original missing-export errors. Candidate capture lifecycle and bundled Slack adapter load against that same unmodified SDK and reject the required operation with upgrade guidance, with no network calls or state files created.
  • Current-source QA capture writes and reads a real SQLite event, rejects new work after admission closes, drains an accepted operation, and releases the lease. Main-thread SQLite methods were instrumented to throw during this proof.
  • Focused capture and Slack adapter tests pass, including missing-capability refusal before credential acquisition and existing cancellation, uncertain-write retention, and cleanup coverage. The two changed test files take 3.41 seconds wall time together with one worker (15 tests; 2.21 seconds Vitest duration).
  • Lab HTTP capture routes remain healthy for unrelated requests and report HTTP 500 for missing capture support; existing capture acquisition retry and Slack readback sibling coverage passed.

The published-host proof covers the changed capture boundaries. Whole QA plugin import on 2026.9.6 separately encounters the pre-existing missing sqlite-runtime-testing SDK subpath; this PR does not claim full-plugin compatibility. No live Slack messages were sent.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 27, 2026 00:21
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation extensions: qa-lab size: S labels Sep 27, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 26, 2026, 9:14 PM ET / September 27, 2026, 01:14 UTC (Revision 2).

ClawSweeper review

What this changes

The branch makes QA Lab capture and Slack QA check for missing asynchronous host capture APIs when work starts, and adds tests and operator guidance for that behavior.

Merge readiness

⛔ Blocked before merge - 1 item remains

This PR remains useful because current main still has the missing-export failure. The revised guidance resolves the previous review finding, and this review found no new blocking defect.

Priority: P2
Reviewed head: 3e57c2c750f349125b667bc0c64c272e39013f49

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The focused repair and corrected guidance have good support from reported boundary checks and current source, with no remaining actionable finding.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The member-authored PR is exempt from the contributor proof gate. Its body reports that the installed 2026.9.6 SDK fails before the change and that the candidate capture modules load and reject unsupported work afterward; it explicitly does not claim full QA CLI or live Slack compatibility. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The member-authored PR is exempt from the contributor proof gate. Its body reports that the installed 2026.9.6 SDK fails before the change and that the candidate capture modules load and reject unsupported work afterward; it explicitly does not claim full QA CLI or live Slack compatibility. No stored-data contract changes.
Evidence reviewed 9 items Introduced capture guard: The branch accesses the host capture namespace and rejects a missing asynchronous store operation when a lab capture request is admitted.
Introduced Slack guard: Adapter creation checks the asynchronous reader before loading the Slack runtime or acquiring credentials.
Previous finding resolved: The revised operator guidance explicitly says that the published 2026.9.6 QA CLI can fail before the capture check because another SDK import is excluded; the Slack page qualifies its claim the same way.
Findings None None.
Security None None.

How this fits together

QA Lab is OpenClaw's developer testing plugin. It receives capture capabilities from the host SDK and uses them to serve lab capture requests and collect Slack QA evidence.

flowchart LR
A[Host capture SDK] --> B[Lab capture request]
A --> C[Slack adapter startup]
B --> D[Async support check]
C --> D
D --> E[Capture evidence]
D --> F[Upgrade guidance]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +10, Tests +33, Docs +15. Total +58 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 19 9 +10
Tests 2 36 3 +33
Docs 2 15 0 +15
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 70 12 +58

Review metrics

None.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/qa-lab/src/lab-server-capture.ts, migration/backfill/repair: extensions/qa-lab/src/live-transports/slack/adapter.runtime.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the capability checks at capture admission and Slack adapter startup, with operator guidance that recommends a matching source checkout until the full QA CLI supports older packaged hosts.

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

Yes, at the source level: current main statically imports operations absent from the published 2026.9.6 SDK. This read-only review did not execute the reported installed-host reproduction.

Is this the best way to solve the issue?

Yes, for the capture boundary. The guards preserve asynchronous worker-backed capture and make missing host support fail with useful guidance; the separate whole-CLI import limitation is disclosed.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 768b28c060fa.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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: The member-authored PR is exempt from the contributor proof gate. Its body reports that the installed 2026.9.6 SDK fails before the change and that the candidate capture modules load and reject unsupported work afterward; it explicitly does not claim full QA CLI or live Slack compatibility. No stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This is a bounded developer QA compatibility repair with limited user-facing blast radius.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The member-authored PR is exempt from the contributor proof gate. Its body reports that the installed 2026.9.6 SDK fails before the change and that the candidate capture modules load and reject unsupported work afterward; it explicitly does not claim full QA CLI or live Slack compatibility. No stored-data contract changes.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ayaan Zaidi: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (1 earlier review cycle)
  • reviewed 2026-09-27T00:29:59.474Z sha 2ad3c6b :: blocked before merge. :: [P2] Qualify the older-host operator promise

@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Addressed the P2 wording finding in both operator pages and the PR impact statement. The docs now recommend a matching current source checkout, state that capture checks apply after the lab or adapter loads, and explicitly describe the earlier sqlite-runtime-testing import failure on published 2026.9.6. The capture-boundary proof is unchanged and is not presented as full QA CLI compatibility. No runtime code changed in this follow-up.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: fix(qa): explain missing async capture support on older hosts This is item 3/3 in the current shard. Shard 14/74.

This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 27, 2026
@steipete
steipete merged commit 2649782 into main Sep 27, 2026
113 of 115 checks passed
@steipete
steipete deleted the codex/qa-capture-capability branch September 27, 2026 01:42
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 27, 2026
…aw#159277)

* fix(qa): explain missing async capture support on older hosts

* docs(qa): qualify older-host capture guidance
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: qa-lab P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S 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