Skip to content

chore(lint): clear 172 lint:all baseline violations in five batches - #118098

Merged
steipete merged 7 commits into
mainfrom
chore/lint-baseline-cleanup
Aug 2, 2026
Merged

steipete merged 7 commits into
mainfrom
chore/lint-baseline-cleanup

Conversation

@steipete

@steipete steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

pnpm lint:all carried 212 baseline violations across 77 files — noise that buries new findings and normalizes red lint output. This PR fixes the 172 mechanically-safe violations (category a) in five reviewable batches, leaving exactly 40 findings that need a maintainer lint-scope decision (category c: Android WebView postMessage bridge, IME keyCode 229 fallback, autoreview text-corpus fixtures, _meta/__typename underscore-dangle, boundary-guard fixtures) untouched.

Why This Change Was Made

Follow-up hygiene from the plugin lifecycle refactor series. Each batch is one commit with its owning tests run: Android/Linux assets (14), setup-action/launcher/plugin (12), changelog-verifier + updater (33), QA/runtime/helpers (38), root/script tests (75). Behavior-sensitive spots were preserved deliberately: the MXC listener-attachment microtask boundary is retained, and updater restoration-failure precedence over build failures is retained.

User Impact

None at runtime — lint-mechanical changes only. Maintainers get a lint:all signal that is exactly the 40 intentionally-reserved findings.

Evidence

  • pnpm lint:all: 212 → 40; remaining findings are all reserved category-(c) items
  • pnpm tsgo and all three pnpm tsgo:test sub-lanes pass post-rebase (onto 1704ea59182)
  • Focused suites per batch: 30 / 176 (+3 skipped) / 104 / 299 / 850 (+4 skipped) passed
  • Structured autoreview of the five-commit branch: clean
  • Two E2Es red in batch 4's directory run, adjudicated not-caused-by-this-branch: test/gateway-queued-session-rotation.e2e.test.ts fails a trace-count assertion at line 278 while this branch's only edit is void client.stop() at line 298 (after the failure); test/huggingface-local-app-openclaw.e2e.test.ts fails with LLM request failed at line 97 while this branch only adds braces to server-close Promise executors at lines 168/174. Both reproduce in isolation; imported local dependencies untouched.
  • Android Gradle unit tests could not run locally (no Android SDK platform installed); the 14 asset fixes in that batch are covered by the JS-side asset tests (30 passed)

🤖 Generated with Claude Code

@steipete
steipete marked this pull request as ready for review August 2, 2026 17:56
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 2, 2026
@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 4:35 PM ET / 20:35 UTC.

ClawSweeper review

What this changes

This PR removes mechanically safe lint-baseline violations across bundled plugins, application assets, CI action scripts, and test harnesses, while adding regressions for two behavior-sensitive corrections discovered during review.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for maintainer review. The prior MXC spawn-bridge finding and fake-plutil escaping finding are both repaired at the current head, and no new blocking defect was established; the branch is behind current main, so final required-check and merge-result refresh remain necessary before landing.

Priority: P3
Reviewed head: 71bc1b3ef91b1d20d6cd936c32efea4ccdca9e72

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch has focused repair coverage and credible after-fix terminal evidence; remaining readiness work is limited to rebase and required-check completion.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body reports focused suites and lint/type checks, and the follow-up comment documents an after-fix execution of the emitted fake-plutil program against metacharacter keys; redact private data in any future proof updates.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body reports focused suites and lint/type checks, and the follow-up comment documents an after-fix execution of the emitted fake-plutil program against metacharacter keys; redact private data in any future proof updates.
Evidence reviewed 5 items MXC repair is at the owner boundary: The launcher now awaits the SDK spawn result before determining whether it is a PTY or child process, preserving both synchronous and Promise-returning results before I/O bridging.
MXC regression coverage: Focused tests cover promised PTY and child-process results and assert that bridge selection receives the resolved process rather than the Promise.
Previous fake-plutil finding is repaired: The emitted fake parser now preserves doubled regular-expression escapes across the template-literal-to-file boundary and tests both a literal metacharacter key and a regex-shaped key that must not match.
Findings None None.
Security None None.

How this fits together

lint:all checks source, application assets, bundled plugins, CI helpers, and tests across OpenClaw. This branch reduces existing lint noise while preserving the launchers and harnesses that feed application runtime, CI validation, and release checks.

flowchart LR
  A[Repository source and test harnesses] --> B[Lint baseline findings]
  B --> C[Mechanical cleanup branch]
  C --> D[MXC sandbox launcher]
  C --> E[Release and CI test fixtures]
  D --> F[Sandbox process I/O bridge]
  E --> G[Validation and release checks]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind current main; refresh the merge result and let the remaining required checks complete on the rebased head before landing.
  • Complete next step (P2) - This protected maintainer-review PR has no concrete remaining mechanical repair for an automated work lane; the next action is a rebase/check refresh and maintainer landing review.
Agent review details

Security

None.

PR surface

Source +13, Tests +192, Config +6, Other +24. Total +235 across 73 files.

View PR surface stats
Area Files Added Removed Net
Source 2 31 18 +13
Tests 62 402 210 +192
Docs 0 0 0 0
Config 2 16 10 +6
Generated 0 0 0 0
Other 7 149 125 +24
Total 73 598 363 +235

Review metrics

Metric Value Why it matters
Lint baseline reduction 212 → 40 author-reported findings The remaining 40 findings are intentionally reserved for a separate lint-scope decision, so the refreshed lint check should confirm that this cleanup does not expand that reserved set.

Stored data model

Persistent data-model change detected: serialized state: test/e2e/qa-lab/runtime/gateway-smoke.e2e.test.ts, serialized state: test/e2e/qa-lab/runtime/openwebui-probe.e2e.test.ts, serialized state: test/scripts/dependency-vulnerability-gate.test.ts, serialized state: test/scripts/ios-node-e2e.test.ts, serialized state: test/scripts/release-candidate-checklist.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Retain the mechanical lint cleanup and its two focused regressions, then rebase onto current main and merge only after the refreshed required checks confirm the same result.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the mechanical lint cleanup and its two focused regressions, then rebase onto current main and merge only after the refreshed required checks confirm the same result.

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

Not applicable: the PR is primarily lint-baseline cleanup. The two behavior-sensitive repairs have focused source-level regression coverage, but this read-only review did not execute contributor code locally.

Is this the best way to solve the issue?

Yes. Awaiting the spawned sandbox result at the plugin launcher is the narrow owner-boundary repair, and preserving escaped metacharacters in the emitted fake parser fixes the fixture at its template-to-file boundary rather than compensating in callers.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P3: This is quality-maintenance work intended to reduce lint noise without changing user-facing product behavior.
  • 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. Sufficient (terminal): The PR body reports focused suites and lint/type checks, and the follow-up comment documents an after-fix execution of the emitted fake-plutil program against metacharacter keys; redact private data in any future proof updates.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body reports focused suites and lint/type checks, and the follow-up comment documents an after-fix execution of the emitted fake-plutil program against metacharacter keys; redact private data in any future proof updates.

Evidence

What I checked:

  • MXC repair is at the owner boundary: The launcher now awaits the SDK spawn result before determining whether it is a PTY or child process, preserving both synchronous and Promise-returning results before I/O bridging. (extensions/mxc/src/mxc-spawn-launcher.mjs:108, 71bc1b3ef91b)
  • MXC regression coverage: Focused tests cover promised PTY and child-process results and assert that bridge selection receives the resolved process rather than the Promise. (extensions/mxc/test/mxc-spawn-launcher.test.ts:76, 71bc1b3ef91b)
  • Previous fake-plutil finding is repaired: The emitted fake parser now preserves doubled regular-expression escapes across the template-literal-to-file boundary and tests both a literal metacharacter key and a regex-shaped key that must not match. (test/scripts/ios-validate-app-store-ipa.test.ts:141, 71bc1b3ef91b)
  • Current-main behavior and feature provenance: Current main still selects the bridge directly after calling spawnSandboxFromConfig; history identifies the MXC backend introduction and the current launcher path’s originating work, so the branch remains a meaningful fix rather than obsolete churn. (extensions/mxc/src/mxc-spawn-launcher.mjs:126, 31f64aeae08e)
  • Patch hygiene and security-sensitive surface check: The reviewed branch has no whitespace errors and does not modify dependency manifests, lockfiles, or GitHub workflow YAML; its action-script edits are lint/type-oriented. (71bc1b3ef91b)

Likely related people:

  • Shakker: Current-main blame attributes the direct spawn-and-bridge path to this work, making this the closest owner for the launcher behavior repaired by the PR. (role: current launcher-path contributor; confidence: high; commits: 31f64aeae08e; files: extensions/mxc/src/mxc-spawn-launcher.mjs)
  • Paul Campbell: Feature history identifies the Windows MXC sandbox backend introduction as the originating implementation area for this plugin-side launcher path. (role: MXC backend feature introducer; confidence: medium; commits: 008f04a65650; files: extensions/mxc/src/mxc-backend.ts, extensions/mxc/src/mxc-spawn-launcher.mjs)
  • Peter Steinberger: Recent history includes prior work on the test-script surface, and the current head adds the targeted fake-plutil regression repair. (role: recent adjacent test-harness contributor; confidence: medium; commits: 94c5b54d9624, 71bc1b3ef91b; files: test/scripts/ios-validate-app-store-ipa.test.ts)

Rank-up moves

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

  • Rebase onto current main and confirm the refreshed required checks and merge result on that exact head.

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 (2 earlier review cycles)
  • reviewed 2026-08-02T18:00:56.102Z sha 2280279 :: found issues before merge. :: [P1] Await the MXC SDK spawn result before bridging it
  • reviewed 2026-08-02T20:14:45.415Z sha 0af71ab :: needs changes before merge. :: [P3] Preserve metacharacter escaping in the fake plutil parser

@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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 2, 2026
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Applied the fake-plutil finding, and it went one level deeper than the review noted: the escaping was broken on main too, not just at this branch's head. The fixture body crosses a template-literal → emitted-file hop, so every backslash needs doubling. On main the emitted line was

const escapedKey = key.replace(/[.*+?^${}()|[]\]/g, "\$&");

— the class closes at the first ], the leftover \] becomes a literal tail so the pattern essentially never matches, and the replacement "\$&" evaluates to $&, inserting no backslash even when it does. The lint rewrite merely shifted which way it was broken. The \s* in the matcher had the same problem (emitted as literal s*), which is why the fixture only worked against single-line plists.

Head 71bc1b3ef91 doubles all three escapes so the emitted script is the canonical key.replace(/[.*+?^${}()|[\]\\]/g, "\\$&") with a real \s*, and adds the requested regression: Weird[Key]* extracts by literal match while Weird.Key.* (which would match as a regex if interpolated unescaped) correctly misses. Suite 9/9 locally; verified end-to-end by executing the emitted fake plutil against metacharacter-key plists.

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 2, 2026
@steipete
steipete merged commit 7c70571 into main Aug 2, 2026
131 of 133 checks passed
@steipete
steipete deleted the chore/lint-baseline-cleanup branch August 2, 2026 21:08
@steipete

steipete commented Aug 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 2, 2026
* origin/main:
  feat(gateway): track event-loop degradation persistence and add concurrency benchmark (#118193)
  fix(config): preserve secret ownership when configuration rows move (#118149)
  fix(cron): deliver failure alerts after persistence (#118200)
  chore(lint): clear 172 lint:all baseline violations in five batches (#118098)
  perf(gateway): remove streaming hot-path rescans (#118192)
  test(gateway): use in-memory task registry (#118191)
  test(macos): fix three races in the bounded process suites (#118196)
  refactor(migrate-hermes): consolidate test fixtures (#118182)
  test(android): share Wear transport fixtures (#118177)
  test(ui): deduplicate control UI e2e setup (#118180)
  fix(plugins): unblock prerelease validation (#118103)
  test(cli): reduce redundant process launches (#118141)
  test(gateway): compact terminal observer fixtures (#118179)
  fix(agents): make requested threads sidebar-visible (#118073)
  test(plugins): canonicalize native resolver fixtures (#118174)
  test: deduplicate agent runner fixtures (#118176)
  refactor(policy): consolidate doctor test fixtures (#118173)
  fix(plugins): remove disabled channel plugin configuration on uninstall (#118127)
  refactor(matrix): consolidate monitor test fixtures (#118175)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
…penclaw#118098)

* chore(lint): clean Android-Linux app assets batch

* chore(lint): clean setup-launcher-plugin batch

* chore(lint): clean changelog-updater batch

* chore(lint): clean QA-runtime-helper batch

* chore(lint): clean script-tests batch

* fix(mxc): await sandbox spawn before bridge selection

* fix(test): make fake plutil metacharacter escaping survive the template hop
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 3, 2026
* origin/main:
  feat(gateway): track event-loop degradation persistence and add concurrency benchmark (openclaw#118193)
  fix(config): preserve secret ownership when configuration rows move (openclaw#118149)
  fix(cron): deliver failure alerts after persistence (openclaw#118200)
  chore(lint): clear 172 lint:all baseline violations in five batches (openclaw#118098)
  perf(gateway): remove streaming hot-path rescans (openclaw#118192)
  test(gateway): use in-memory task registry (openclaw#118191)
  test(macos): fix three races in the bounded process suites (openclaw#118196)
  refactor(migrate-hermes): consolidate test fixtures (openclaw#118182)
  test(android): share Wear transport fixtures (openclaw#118177)
  test(ui): deduplicate control UI e2e setup (openclaw#118180)
  fix(plugins): unblock prerelease validation (openclaw#118103)
  test(cli): reduce redundant process launches (openclaw#118141)
  test(gateway): compact terminal observer fixtures (openclaw#118179)
  fix(agents): make requested threads sidebar-visible (openclaw#118073)
  test(plugins): canonicalize native resolver fixtures (openclaw#118174)
  test: deduplicate agent runner fixtures (openclaw#118176)
  refactor(policy): consolidate doctor test fixtures (openclaw#118173)
  fix(plugins): remove disabled channel plugin configuration on uninstall (openclaw#118127)
  refactor(matrix): consolidate monitor test fixtures (openclaw#118175)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: android App: android app: linux extensions: onepassword 1Password plugin maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. plugin: mxc proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: L 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