Skip to content

refactor(browser): split Playwright interaction tools - #113771

Merged
steipete merged 3 commits into
mainfrom
codex/h2-pwtools
Jul 25, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/h2-pwtools

Conversation

@steipete

@steipete steipete commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Playwright interaction implementation had grown to 2,110 lines and remained on the max-lines suppression baseline, coupling navigation safety, primitive actions, screenshots/uploads, and high-level act dispatch in one module.

Why This Change Was Made

This maintainer-commissioned, AI-assisted refactor keeps the original module as a stable facade while moving its four cohesive responsibilities into focused internal modules. It follows the recently landed Playwright session-manager boundary: session lifecycle remains in pw-session*, while interaction policy and operations remain in pw-tools-core.interactions*.

Beyond the split

  • Consolidated the repeated target, navigation-policy, signal, and element option shapes into closed shared types, so the valid interaction inputs are expressed once.
  • Removed the internal coordinate-click timeoutMs option because the implementation never read it and its only caller merely forwarded it.
  • Replaced duplicated ref/selector screenshot branches with one resolved element-locator decision.
  • Simplified navigation-request-guard classification into direct batch/wait/terminal decisions.
  • Updated the lint-suppression contract mechanically so its existing three new Function exceptions follow the new 2+1 owner paths without changing the count.

These are local, behavior-neutral reductions; no public API, config, protocol, storage, or runtime fallback changed.

User Impact

No user-visible behavior changes. Maintainers get smaller owner modules (23–627 lines), a stable facade for existing importers, and one fewer max-lines baseline entry.

Evidence

  • LOC: +2179/-2181 overall (net -2); production +2177/-2179 (net -2); tests +2/-1 (mechanical path inventory update).

  • node scripts/run-vitest.mjs extensions/browser/src/browser/pw-tools-core.interactions.navigation-guard.test.ts extensions/browser/src/browser/pw-tools-core.browser-ssrf-guard.test.ts extensions/browser/src/browser/pw-tools-core.interactions.batch.test.ts extensions/browser/src/browser/pw-tools-core.interactions.evaluate.abort.test.ts extensions/browser/src/browser/pw-tools-core.interactions.click-delay.abort.test.ts extensions/browser/src/browser/pw-tools-core.interactions.set-input-files.test.ts extensions/browser/src/browser/pw-tools-core.screenshots-element-selector.test.ts extensions/browser/src/browser/pw-tools-core.annotate.test.ts extensions/browser/src/browser/pw-tools-core.clamps-timeoutms-scrollintoview.test.ts extensions/browser/src/browser/pw-tools-core.last-file-chooser-arm-wins.test.ts — 10 files, 129 tests passed, including the newly landed batch navigation/close-abort cases from current main.

  • node scripts/run-vitest.mjs test/scripts/lint-suppressions.test.ts — 4 tests passed after the path update.

  • Real browser proof on Blacksmith Testbox tbx_01kyd8f3yggagaj45tmsqddeze: an isolated Gateway + Chromium fixture was opened through the real browser CLI, e1 was clicked and verified in page state, then e2 was redirected to the special-use metadata address and the navigation guard blocked it while preserving the fixture URL.

    REAL_BROWSER_PROOF click=e1 clicked=true blocked_navigation=169.254.169.254 final_url=http://127.0.0.1:18080/
    Browser CDP snapshot Docker E2E passed.
    
  • Full branch autoreview against current origin/main: clean, no accepted/actionable findings (0.98 confidence).

  • Playwright 1.61.1 contracts checked for page framenavigated listener lifecycle, locator/page screenshots, evaluate arguments, and file inputs.

Bugs Found

None.

Placement Findings

None. The logic remains inside the browser plugin and does not cross the session-manager, core/plugin, package/app, or lazy-runtime boundaries.

Baseline

Removed extensions/browser/src/browser/pw-tools-core.interactions.ts from config/max-lines-baseline.txt; every resulting production module is below the 700-line budget.

@openclaw-barnacle openclaw-barnacle Bot added size: XL maintainer Maintainer-authored PR labels Jul 25, 2026
@steipete
steipete marked this pull request as ready for review July 25, 2026 17:19
@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 25, 2026
@clawsweeper

clawsweeper Bot commented Jul 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 25, 2026, 2:51 PM ET / 18:51 UTC.

ClawSweeper review

What this changes

The branch decomposes the browser plugin’s 2,110-line Playwright interaction implementation into navigation, action, content, and execution modules while leaving the original interaction module as an import-compatible facade.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep this PR open for maintainer review. It is a maintainer-labeled, behavior-neutral browser-plugin refactor with substantial focused validation and a reported real browser run; the protected label rules out automated cleanup or closure.

Priority: P3
Reviewed head: 1d845e7fb68a0173e9c1b6bab48ade9c1eb9709a
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong focused behavioral and live browser evidence supports a clean internal refactor, with final readiness contingent on current-head CI completion and protected maintainer approval.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body provides after-fix live browser output from an isolated Gateway and Chromium fixture: a CLI click changed page state, and a metadata-address redirect was blocked while preserving the original fixture URL. Any posted follow-up evidence should remain redacted.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body provides after-fix live browser output from an isolated Gateway and Chromium fixture: a CLI click changed page state, and a metadata-address redirect was blocked while preserving the original fixture URL. Any posted follow-up evidence should remain redacted.
Evidence reviewed 5 items Stable facade retained: The branch reduces pw-tools-core.interactions.ts from the former implementation to a 23-line facade and moves its responsibilities into navigation, actions, content, and execution modules, preserving existing importer entry points.
Focused behavioral coverage: The PR reports 129 passing tests across navigation guard, SSRF guard, batch, abort, upload, screenshot, annotation, timeout, and file-chooser paths, plus the lint-suppression contract.
Reported real browser proof: The PR body includes after-fix Blacksmith Testbox output showing a real browser CLI click changed page state and an attempted metadata-address navigation was blocked while the fixture URL was preserved.
Findings None None.
Security None None.

How this fits together

The browser plugin translates CLI and gateway browser-action requests into Playwright operations against an attached page, applying SSRF and navigation policy before returning results. This PR reorganizes the interaction layer beneath that stable facade, affecting action dispatch, page navigation checks, screenshots/uploads, and abort handling.

flowchart LR
  A[Browser CLI and gateway requests] --> B[Stable browser interaction facade]
  B --> C[Action dispatcher]
  C --> D[Navigation and SSRF policy]
  C --> E[Playwright actions and content]
  D --> F[Browser page session]
  E --> F
  F --> G[Action result or safe error]
Loading

Decision needed

Question Recommendation
Should the browser-area owner approve this tested internal module split once the remaining current-head CI shards finish? Approve after checks: Confirm the four-module interaction boundary is the intended maintenance direction and merge after all required checks for the current head pass.

Why: The patch is intentionally large but behavior-neutral and carries the protected maintainer label; only an owner can confirm the desired internal boundary and merge timing.

Before merge

  • Resolve merge risk (P1) - This is a large internal movement of navigation, abort, dialog, download, and SSRF-guard control flow; the remaining in-progress CI shards should complete successfully against the reviewed head before merge.
  • Resolve merge risk (P1) - The maintainer label signals that an explicit owner should confirm the intended module boundary and final integration timing.
  • Complete next step (P2) - The remaining action is protected-label owner approval plus completion of normal current-head CI, not a concrete repair task.
Agent review details

Security

None.

PR surface

Source -2, Tests +1, Other -1. Total -2 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 5 2177 2179 -2
Tests 1 2 1 +1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 0 1 -1
Total 7 2179 2181 -2

Review metrics

Metric Value Why it matters
Interaction module split 1 legacy module split into 4 internal modules; net -2 lines The refactor moves navigation and SSRF enforcement across several modules while keeping a single facade, so boundary review matters more than raw line count.

Merge-risk options

Maintainer options:

  1. Complete the browser regression gate (recommended)
    Wait for the remaining current-head CI shards and retain focused navigation, abort, and SSRF regression coverage before merging the moved control flow.
  2. Pause for boundary review
    Pause the refactor if the browser owner prefers a different separation of policy, session, and execution responsibilities.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require all remaining current-head CI checks to pass; preserve the stable facade and focused navigation, abort, and SSRF regression coverage.

Technical review

Best possible solution:

Retain the stable facade, merge only after the remaining CI gates are green, and have the browser-area owner confirm that the new four-module split remains the preferred long-term boundary for interaction policy and execution.

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

Not applicable: this PR refactors an existing implementation rather than reporting a user-facing defect. The submitted live browser run nevertheless exercises the preserved click and blocked-navigation behavior after the split.

Is this the best way to solve the issue?

Yes, provisionally: retaining the original facade while separating navigation policy, actions, content, and dispatch is a narrower maintenance refactor than changing callers or public browser-plugin APIs. Final confirmation belongs to the browser-area owner because the protected maintainer label covers the intended long-term boundary.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 security-boundary: The refactor relocates SSRF-aware navigation-policy enforcement, so equivalence of the guarded navigation path remains merge-relevant.
  • add merge-risk: 🚨 availability: Moving action dispatch, abort handling, download capture, and navigation completion logic could stall or fail browser actions if an import or lifecycle edge is missed.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix live browser output from an isolated Gateway and Chromium fixture: a CLI click changed page state, and a metadata-address redirect was blocked while preserving the original fixture URL. Any posted follow-up evidence should remain redacted.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix live browser output from an isolated Gateway and Chromium fixture: a CLI click changed page state, and a metadata-address redirect was blocked while preserving the original fixture URL. Any posted follow-up evidence should remain redacted.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 📣 needs proof: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P3: This is a reported behavior-neutral maintainability refactor with no demonstrated user-facing regression.
  • merge-risk: 🚨 availability: Moving action dispatch, abort handling, download capture, and navigation completion logic could stall or fail browser actions if an import or lifecycle edge is missed.
  • merge-risk: 🚨 security-boundary: The refactor relocates SSRF-aware navigation-policy enforcement, so equivalence of the guarded navigation path remains merge-relevant.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body provides after-fix live browser output from an isolated Gateway and Chromium fixture: a CLI click changed page state, and a metadata-address redirect was blocked while preserving the original fixture URL. Any posted follow-up evidence should remain redacted.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix live browser output from an isolated Gateway and Chromium fixture: a CLI click changed page state, and a metadata-address redirect was blocked while preserving the original fixture URL. Any posted follow-up evidence should remain redacted.

Evidence

What I checked:

Likely related people:

  • steipete: The supplied PR commits show this contributor authored the interaction split and its follow-up timeout and lint-suppression adjustments; repository history could not be inspected in this read-only environment. (role: current browser-interaction contributor; confidence: medium; commits: dfc9b3fa6717, 1d8e33511d08, 1d845e7fb68a; files: extensions/browser/src/browser/pw-tools-core.interactions.ts, extensions/browser/src/browser/pw-tools-core.interactions.navigation.ts, extensions/browser/src/browser/pw-tools-core.interactions.actions.ts)

Rank-up moves

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

  • Let the remaining current-head CI shards complete successfully.
  • Have the browser-area owner confirm the intended interaction-module boundary 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 (1 earlier review cycle)
  • reviewed 2026-07-25T17:34:01.753Z sha b6e71ccbec69e96210a9848e6151c6fdfe227f87 :: needs real behavior proof before merge. :: none

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. and removed 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 Jul 25, 2026
@steipete
steipete merged commit 502d1cf into main Jul 25, 2026
149 of 163 checks passed
@steipete
steipete deleted the codex/h2-pwtools branch July 25, 2026 19:17
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 26, 2026
* refactor(browser): split Playwright interactions

* test(browser): track split lint suppressions

* refactor(browser): inline interaction timeout resolver
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

maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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