Skip to content

feat(qa): run Telegram RTT through userbot leases - #133030

Merged
obviyus merged 10 commits into
mainfrom
feat/telegram-userbot-rtt
Aug 30, 2026
Merged

obviyus merged 10 commits into
mainfrom
feat/telegram-userbot-rtt

Conversation

@obviyus

@obviyus obviyus commented Aug 30, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Replace the static two-bot Telegram QA transport with one Convex-leased telegram-test-userbot credential.
  • Keep one TDLib user process alive for the full suite and stream messages and edits into the existing QA bus.
  • Route the package SUT through the Telegram Test Bot API proxy and mount the repository userbot skill read-only.
  • Remove the dead static credential parser and Bot API observer.

Why

OpenClaw RTT still required three static Telegram GitHub secrets after the shared ten-slot Test Server pool landed. This change makes the existing QA adapter use that pool without changing RTT sampling, package compatibility, evidence output, or scenario selection.

Lease boundary

The adapter passes the shared heartbeat failure promise and synchronous health check into the Bot API proxy. A terminal heartbeat failure aborts active upstream requests and blocks later requests before upstream I/O. The existing proxy revocation test records one request before revocation and zero after it.

Validation

  • 98 focused QA tests pass.
  • 62 userbot Node tests, 6 driver tests, and 4 recorder tests pass.
  • Telegram Test Server doctor passed Convex leasing, TDLib authorization, SUT identity, group policy, membership, proxy, and cleanup.
  • The new persistent TDLib process acquired one lease, sent one real Test Server message, observed one update, and released cleanly.
  • TDLib npm package 0.1008067.0 (TDLib 1.8.67) is current, and Linux extraction passed in the Docker image.
  • Docs MDX, links, both channel boundary guards, dead-code exports, formatting, shell syntax, max-lines, assertion safety, script erasability, and git diff --check pass.

Hosted proof

Hosted CI owns the exact-head package build and typecheck. Local Docker reached the harness but could not run the exact package RTT because this host does not build OpenClaw and its copied dist lacked the current private QA entrypoint.

Production shape

The adapter now has one path: Convex lease -> repository skill restore -> one TDLib process -> existing QA bus. The old env credential parser, second bot sender, and Bot API poller are deleted. Telegram CLI help and public testing guidance now describe this Convex-only Test Server path.

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts docker Docker and sandbox tooling extensions: qa-lab size: XL maintainer Maintainer-authored PR labels Aug 30, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 11:47 PM ET / August 30, 2026, 03:47 UTC.

ClawSweeper review

What this changes

This PR moves Telegram QA and package RTT validation from static bot credentials to a Convex-leased Telegram Test Server userbot with a persistent TDLib observer.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open. Current main still uses the static two-bot Telegram QA adapter, while this branch provides the userbot-lease integration; the prior reply-mapping and credential-contract findings are addressed in the current head. No discrete source-level blocker was found, but exact-head CI is still incomplete.

Priority: P2
Reviewed head: a8670d70b2ebb2f0641dcd1143c8d5bb5ca07234

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent, tested owner-boundary migration with the earlier actionable findings addressed.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored internal QA PR is exempt from the external-contributor proof gate; its captured body nonetheless describes a real Test Server send-and-observe run and doctor result.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored internal QA PR is exempt from the external-contributor proof gate; its captured body nonetheless describes a real Test Server send-and-observe run and doctor result.
Evidence reviewed 6 items Current-main behavior remains static: Fetched main still acquires the old "telegram" lease and drives the adapter with separate driver and SUT bot tokens, so the central userbot behavior is not already implemented.
Explicit Convex-only contract: The introduced option resolver defaults Telegram QA to Convex and rejects the retired environment source; matching documentation describes the same Test Server lease flow.
Prior reply-order finding addressed: The adapter defers an early SUT reply until the inbound TDLib message has been registered, then publishes it with its reply mapping; the focused adapter test covers that order.
Findings None None.
Security None None.

How this fits together

QA Lab runs Telegram release scenarios against an isolated Test Server group. The adapter leases a credential, restores its TDLib user session, proxies the SUT bot API, and turns observed replies and edits into QA assertions.

flowchart LR
A[QA command] --> B[Convex credential lease]
B --> C[Restore Test Server session]
C --> D[TDLib userbot driver]
D --> E[Telegram QA adapter]
E --> F[Gateway scenario assertions]
E --> G[Test Bot API proxy]
Loading

Before merge

  • Complete next step (P2) - Current main does not contain the userbot integration, and no narrow automated repair is identified after rechecking the previous findings.
Agent review details

Security

None.

PR surface

Source +56, Tests -151, Docs -4, Other +194. Total +95 across 24 files.

View PR surface stats
Area Files Added Removed Net
Source 7 646 590 +56
Tests 9 432 583 -151
Docs 3 38 42 -4
Config 0 0 0 0
Generated 0 0 0 0
Other 5 218 24 +194
Total 24 1334 1239 +95

Review metrics

Metric Value Why it matters
Production versus test delta production +792/-613; tests +503/-583; docs +38/-42; baseline +1/-1 The feature replaces the polling adapter with persistent userbot and skill-runtime integration while removing the old Bot API observer.

Stored data model

Persistent data-model change detected: database schema: extensions/qa-lab/src/live-transports/telegram/userbot-skill.runtime.ts, serialized state: .agents/skills/telegram-e2e-userbot/scripts/telegram-test-api-proxy.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Land the single Convex/Test Server userbot path after the exact-head checks finish green, retaining the existing userbot skill as the shared lease and TDLib boundary.

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

Not applicable: this is a QA-infrastructure PR rather than a report of failing shipped behavior. Its claimed Test Server run is described in the PR body, but no execution was performed in this read-only review.

Is this the best way to solve the issue?

Yes. Reusing the already merged Test Server userbot skill keeps credential restoration, TDLib observation, and the proxy in their existing owner boundary instead of creating a parallel Telegram observer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 5d07c11ccef2.

Labels

Label changes:

  • 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 member-authored internal QA PR is exempt from the external-contributor proof gate; its captured body nonetheless describes a real Test Server send-and-observe run and doctor result.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove merge-risk: 🚨 compatibility: Current PR review selected no merge-risk labels.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.
  • remove merge-risk: 🚨 other: Current PR review selected no merge-risk labels.

Label justifications:

  • P2: This is a bounded internal QA and release-validation transport change with no demonstrated production-user outage.
  • 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 member-authored internal QA PR is exempt from the external-contributor proof gate; its captured body nonetheless describes a real Test Server send-and-observe run and doctor result.

Evidence

What I checked:

Likely related people:

  • obviyus: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Wait for the incomplete exact-head checks to finish before merge.

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 (3 earlier review cycles)
  • reviewed 2026-08-30T02:42:30.542Z sha 8b7b433 :: needs real behavior proof before merge. :: [P1] Propagate lease health to the Test Bot API proxy | [P1] Align Telegram credential help and docs with Convex-only runtime
  • reviewed 2026-08-30T02:57:11.662Z sha 4b26b2b :: needs real behavior proof before merge. :: [P1] Propagate lease health to the Test Bot API proxy | [P1] Align the Telegram QA credential-mode contract
  • reviewed 2026-08-30T03:29:03.162Z sha 1c23069 :: found issues before merge. :: [P1] Preserve the existing Telegram QA credential mode | [P2] Register inbound mappings before accepting streamed replies

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 30, 2026
@obviyus
obviyus requested a review from a team as a code owner August 30, 2026 03:21
@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 30, 2026
@obviyus

obviyus commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer design clarification: Convex is the exclusive slot allocator, not a revocable Telegram authorization service. A trusted QA worker may use and modify the leased harness freely. Terminal heartbeat failure triggers prompt process cleanup to avoid collisions, but the design does not claim an atomic authorization check against Telegram final I/O. This matches the approved telegram-e2e-userbot contract landed in #131715. The new delayed-child regression proves the process is terminated before a queued side effect in the observable failure case.

@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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 30, 2026
@obviyus

obviyus commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator Author

Proof: A Convex lease restored one Telegram Test Server user session. The persistent TDLib driver sent a real message, observed its update, and released the lease. Focused ordering proof also delivered a SUT reply before the send acknowledgment and retained the correct reply target.

  • Bug: Telegram RTT required three static bot secrets and a second bot observer.
  • Fix: The QA adapter leases one telegram-test-userbot slot, keeps one TDLib user process, routes the SUT through the Test Bot API proxy, and preserves message and edit evidence.

Example

Before After
Static group and two bot tokens One exclusive Convex userbot lease
Bot API observer Real-user TDLib messages and edits

@obviyus
obviyus merged commit 906a63c into main Aug 30, 2026
249 checks passed
@obviyus
obviyus deleted the feat/telegram-userbot-rtt branch August 30, 2026 03:51
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
Replace the static two-bot Telegram RTT credential path with the shared Convex Test Server userbot pool.

Keep one TDLib user process for the suite, route the SUT through the Test Bot API proxy, preserve reply ordering, and stop owned resources when the lease ends.

Co-authored-by: Ayaan Zaidi <[email protected]>
steipete added a commit that referenced this pull request Oct 15, 2026
#173065)

* refactor(browser,qa-lab): consolidate internal validation and capture

Keep external validation, navigation and credential authority, selected evidence
integrity, process settlement and public contracts. Trust canonical normalized
actions and fresh internal evidence instead of repeating their owners' work.
Stage bundled sources and compute their runtime host floor in one pass.

Best-effort tradeoffs accepted

- Internal child evidence changing completed/pending history: #147756/#168841 describe synthetic ownership foundations, not human mutation incidents. Keep the first captured facts; canonical publication still validates the graph.
- Invalid internal evidence selection/combination: duplicate preflights from #147756 are not external boundaries. Invalid snapshots fail at canonical publication instead of every adapter/select step.
- Fresh V3 snapshots or local taxonomy objects mutating between private calls: no external writer holds them. Use owner-held facts; path rebasing still copies because it mutates paths.
- Gallery roots/symlinks changing during one request: private consumers use the canonical ingress root. Actual artifact containment and download authorization remain at their boundaries.
- Gallery model rows not belonging to their own declaration list: impossible because those rows are created from that exact list. Actual arbitrary-path downloads keep the allowlist.
- Configured replacement Telegram skill returning malformed internal results: #133030 introduced a canonical leased-skill producer, not a human malformed-result incident. Canonical credential validation and effect-time lease health remain; malformed replacements fail at use.
- Local filesystem calls hanging during Mantis cleanup: #111051/#158313 provide synthetic timeout qualification, not a human uncancellable-local-FS incident. Await the OS; preserve Git deadlines, exact path/inode authority and process settlement.
- Mantis path replacement between consecutive ownership probes: preserve one precheck plus child-side pinned identity at destructive dispatch; a disappeared/replaced path fails safely.
- Typed log collector returning an impossible bad cursor: #137622 added the retirement mode as a review defense. Trust its paired owner; retain bounded rollover, redaction and legacy fallback.
- Fetch implementation ignoring AbortSignal: Matrix's removed outer timer defended fake-only behavior. Native request deadline/cancellation, parallel healthy-peer probes, response-body and loser cleanup remain.
- Artifact disappearing immediately after its successful own write: #92606/445317a38b1 add the redundant access check, with no human disappearance report. Real write failures propagate; actual readers detect later deletion.
- Private Browser leaves receiving unnormalized values: #63977 owns external /act normalization; extraction #113771 retained mirror checks. Keep external fill repair #131231 and all effect authority. Invalid internal calls may fail at Playwright rather than a second validator.
- Unnormalized oversized/deep batches reaching the private executor: restored executor 61d171a has no human bounds incident. Keep recursive ingress depth repair #120274 and total count bound #63977; remove duplicate executor depth plumbing.
- Abort firing between synchronous resetTransport checks: #126407 added synthetic lifecycle coverage. No async work intervenes, so keep entry and post-await invocation checks.
- Taxonomy file disappearing after successful parse: #91500/#92558 introduced reporting, not a human mid-report deletion incident. Finish with parsed facts; the next read notices deletion.

The named standalone session-memory backend and tests remain untouched.

Proof: fresh independent P0-P2 review scoped-clean after repairing a reproduced
false-coverage descendant-admission defect; targeted source graph types and
syntax-boundary lint pass; runtime/static cycles both zero; format/diff clean.
Browser focused owner/sibling cohort: 12 files, 194 tests pass.
Invocation/containment/staging: 3 files, 34 tests pass, including the reproduced
false-coverage regression. Both unchanged Gateway-child staging-cleanup cases
pass after retaining staging-directory creation before root metadata parsing.

Below-500 coordinator packet: 442 net production LOC removed (+198/-640).
No cleanup PR or merge claim. Full check-changed, type-aware package lint and
Telegram command-menu Gateway E2E remain unproven under host saturation.
The remaining full QA owner cohort was interrupted before assertions; not green.
Suppression inventory fails only on untouched UI rows, reproduced on clean main
45b463f; no suppression allowance changed.

* refactor(browser,qa-lab): remove test-only execution indirection

Publish Chrome MCP handles synchronously and wait only for transport readiness.
Keep process identity, close settlement, waiter sharing and effect authority.
Remove character-eval callback injection and private projection/type mirrors;
reuse canonical lifecycle cancellation and timer bounds.

Best-effort tradeoffs accepted

- Delayed asynchronous MCP factory handles existed only through the test seam (ea2b558/#104601; extracted by #113114). Linked #103784 is a forced Delay launch/source-proof matrix, not a human actual-use incident. Production constructs the handle synchronously; readiness remains asynchronous and cancellable, and exact owned process cleanup still settles before replacement.
- Same-tick lifecycle completion and abort now follow the canonical SDK Promise.race ordering rather than a private listener implementation (#127761/22e12267f68, synthetic lifecycle qualification). Shared work is not cancelled; synchronous pre-abort and effect authority stay intact.
- A private already-clamped timer no longer repeats the SDK maximum check (4abde61; centralized by 5f4fc75). The same canonical grace helper caps the result, with no timeout change.

Character-eval test callbacks were never supplied by its sole production CLI
caller (3101d81; #92606). Tests now mock the actual suite/manual-lane owners.
Six private pwAi projections had only test consumers; canonical session exports
remain. Port reservation accepts the actual node:net.Server instead of a mirror.

Full-branch production reduction: 610 net lines (+241/-851), excluding tests,
fixtures, test-support, generated files and declarations. No public/config/SDK,
storage, protocol or dependency contract changes. Phase E remains untouched.

* fix(qa-lab): drop unproven cleanup paths and type standalone restorer

Restore character-eval and CLI runtime byte-for-byte to the cleanup base after
exact-head CI found concurrent mock bypass and captured-taxonomy failures.
Keep every original behavioral assertion; no retry, timeout or skip changes.
The local character replay was inconclusive, so drop its whole cleanup cluster
instead of waiting for host capacity. Restore CLI snapshot capture as well.

Declare the imported credential-restorer's receiver-free function contract.
The canonical exported function never uses this; no runtime guard or credential
validation changes. This fixes the typed unbound-method lint finding.

Branch production reduction is now 568 net lines (+229/-797), tests/fixtures/
test-support/generated/declarations excluded. Prior full autoreview remains
valid for this strict restoration subset; independent repair review confirms
exact base blobs and the type-only correction. Source-graph types, focused
syntax-boundary lint, formatting and diff checks pass.

* refactor(qa-lab): split pending Telegram credential cleanup

Restore the two Telegram files to current main for #173065. Park their rewrite and receiver-free lint contract on deslop/y13-telegram-userbot-credential-20261015 pending Test Server userbot proof with Convex-leased credentials. Coordinator waives the floor for the remaining 474 net production lines.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 16, 2026
openclaw#173065)

* refactor(browser,qa-lab): consolidate internal validation and capture

Keep external validation, navigation and credential authority, selected evidence
integrity, process settlement and public contracts. Trust canonical normalized
actions and fresh internal evidence instead of repeating their owners' work.
Stage bundled sources and compute their runtime host floor in one pass.

Best-effort tradeoffs accepted

- Internal child evidence changing completed/pending history: openclaw#147756/openclaw#168841 describe synthetic ownership foundations, not human mutation incidents. Keep the first captured facts; canonical publication still validates the graph.
- Invalid internal evidence selection/combination: duplicate preflights from openclaw#147756 are not external boundaries. Invalid snapshots fail at canonical publication instead of every adapter/select step.
- Fresh V3 snapshots or local taxonomy objects mutating between private calls: no external writer holds them. Use owner-held facts; path rebasing still copies because it mutates paths.
- Gallery roots/symlinks changing during one request: private consumers use the canonical ingress root. Actual artifact containment and download authorization remain at their boundaries.
- Gallery model rows not belonging to their own declaration list: impossible because those rows are created from that exact list. Actual arbitrary-path downloads keep the allowlist.
- Configured replacement Telegram skill returning malformed internal results: openclaw#133030 introduced a canonical leased-skill producer, not a human malformed-result incident. Canonical credential validation and effect-time lease health remain; malformed replacements fail at use.
- Local filesystem calls hanging during Mantis cleanup: openclaw#111051/openclaw#158313 provide synthetic timeout qualification, not a human uncancellable-local-FS incident. Await the OS; preserve Git deadlines, exact path/inode authority and process settlement.
- Mantis path replacement between consecutive ownership probes: preserve one precheck plus child-side pinned identity at destructive dispatch; a disappeared/replaced path fails safely.
- Typed log collector returning an impossible bad cursor: openclaw#137622 added the retirement mode as a review defense. Trust its paired owner; retain bounded rollover, redaction and legacy fallback.
- Fetch implementation ignoring AbortSignal: Matrix's removed outer timer defended fake-only behavior. Native request deadline/cancellation, parallel healthy-peer probes, response-body and loser cleanup remain.
- Artifact disappearing immediately after its successful own write: openclaw#92606/a5445ce41eb add the redundant access check, with no human disappearance report. Real write failures propagate; actual readers detect later deletion.
- Private Browser leaves receiving unnormalized values: openclaw#63977 owns external /act normalization; extraction openclaw#113771 retained mirror checks. Keep external fill repair openclaw#131231 and all effect authority. Invalid internal calls may fail at Playwright rather than a second validator.
- Unnormalized oversized/deep batches reaching the private executor: restored executor 1034ccb has no human bounds incident. Keep recursive ingress depth repair openclaw#120274 and total count bound openclaw#63977; remove duplicate executor depth plumbing.
- Abort firing between synchronous resetTransport checks: openclaw#126407 added synthetic lifecycle coverage. No async work intervenes, so keep entry and post-await invocation checks.
- Taxonomy file disappearing after successful parse: openclaw#91500/openclaw#92558 introduced reporting, not a human mid-report deletion incident. Finish with parsed facts; the next read notices deletion.

The named standalone session-memory backend and tests remain untouched.

Proof: fresh independent P0-P2 review scoped-clean after repairing a reproduced
false-coverage descendant-admission defect; targeted source graph types and
syntax-boundary lint pass; runtime/static cycles both zero; format/diff clean.
Browser focused owner/sibling cohort: 12 files, 194 tests pass.
Invocation/containment/staging: 3 files, 34 tests pass, including the reproduced
false-coverage regression. Both unchanged Gateway-child staging-cleanup cases
pass after retaining staging-directory creation before root metadata parsing.

Below-500 coordinator packet: 442 net production LOC removed (+198/-640).
No cleanup PR or merge claim. Full check-changed, type-aware package lint and
Telegram command-menu Gateway E2E remain unproven under host saturation.
The remaining full QA owner cohort was interrupted before assertions; not green.
Suppression inventory fails only on untouched UI rows, reproduced on clean main
a7fbdc2; no suppression allowance changed.

* refactor(browser,qa-lab): remove test-only execution indirection

Publish Chrome MCP handles synchronously and wait only for transport readiness.
Keep process identity, close settlement, waiter sharing and effect authority.
Remove character-eval callback injection and private projection/type mirrors;
reuse canonical lifecycle cancellation and timer bounds.

Best-effort tradeoffs accepted

- Delayed asynchronous MCP factory handles existed only through the test seam (2f7b3f8/openclaw#104601; extracted by openclaw#113114). Linked openclaw#103784 is a forced Delay launch/source-proof matrix, not a human actual-use incident. Production constructs the handle synchronously; readiness remains asynchronous and cancellable, and exact owned process cleanup still settles before replacement.
- Same-tick lifecycle completion and abort now follow the canonical SDK Promise.race ordering rather than a private listener implementation (openclaw#127761/71473724074, synthetic lifecycle qualification). Shared work is not cancelled; synchronous pre-abort and effect authority stay intact.
- A private already-clamped timer no longer repeats the SDK maximum check (e8241d3; centralized by ca3aad3). The same canonical grace helper caps the result, with no timeout change.

Character-eval test callbacks were never supplied by its sole production CLI
caller (46ad8dd; openclaw#92606). Tests now mock the actual suite/manual-lane owners.
Six private pwAi projections had only test consumers; canonical session exports
remain. Port reservation accepts the actual node:net.Server instead of a mirror.

Full-branch production reduction: 610 net lines (+241/-851), excluding tests,
fixtures, test-support, generated files and declarations. No public/config/SDK,
storage, protocol or dependency contract changes. Phase E remains untouched.

* fix(qa-lab): drop unproven cleanup paths and type standalone restorer

Restore character-eval and CLI runtime byte-for-byte to the cleanup base after
exact-head CI found concurrent mock bypass and captured-taxonomy failures.
Keep every original behavioral assertion; no retry, timeout or skip changes.
The local character replay was inconclusive, so drop its whole cleanup cluster
instead of waiting for host capacity. Restore CLI snapshot capture as well.

Declare the imported credential-restorer's receiver-free function contract.
The canonical exported function never uses this; no runtime guard or credential
validation changes. This fixes the typed unbound-method lint finding.

Branch production reduction is now 568 net lines (+229/-797), tests/fixtures/
test-support/generated/declarations excluded. Prior full autoreview remains
valid for this strict restoration subset; independent repair review confirms
exact base blobs and the type-only correction. Source-graph types, focused
syntax-boundary lint, formatting and diff checks pass.

* refactor(qa-lab): split pending Telegram credential cleanup

Restore the two Telegram files to current main for openclaw#173065. Park their rewrite and receiver-free lint contract on deslop/y13-telegram-userbot-credential-20261015 pending Test Server userbot proof with Convex-leased credentials. Coordinator waives the floor for the remaining 474 net production lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling docs Improvements or additions to documentation extensions: qa-lab maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL 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