Skip to content

chore(test): remove redundant extension boundary wrapper - #116385

Merged
vincentkoc merged 1 commit into
mainfrom
audit/remove-redundant-tsc-boundary
Jul 30, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
audit/remove-redundant-tsc-boundary

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Removes a root Vitest wrapper that reports a green shard while executing no assertions in normal local or CI runs. The canonical extension package boundary checks already run directly through dedicated CI, package scripts, and release validation.

Why This Change Was Made

The wrapper was made opt-in to avoid duplicating the cold package-boundary compile, but its OPENCLAW_RUN_EXTENSION_PACKAGE_BOUNDARY_TEST flag has no caller. Deleting it removes two permanent skips without changing the checker, its focused unit coverage, or any direct invocation path.

User Impact

No product behavior changes. Maintainers get a more honest test inventory and avoid carrying a permanently skipped duplicate wrapper.

Evidence

  • Before deletion: focused run reported 1 skipped file and 2 skipped tests.
  • node scripts/run-vitest.mjs test/scripts/check-extension-package-tsc-boundary.test.ts: 22/22 passed.
  • node scripts/run-vitest.mjs test/scripts/test-projects.test.ts: 258/258 passed.
  • Full-repository search found no caller for OPENCLAW_RUN_EXTENSION_PACKAGE_BOUNDARY_TEST.
  • git diff --check passes.
  • Fresh autoreview: clean, no actionable findings (0.98).

@vincentkoc vincentkoc self-assigned this Jul 30, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 30, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review July 30, 2026 11:29
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 7:33 AM ET / 11:33 UTC.

ClawSweeper review

What this changes

This PR deletes test/extension-package-tsc-boundary.test.ts, an environment-gated Vitest wrapper around the extension package TypeScript boundary checker.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this PR open for maintainer handling: it is a narrow cleanup that removes an opt-in wrapper whose duplicate boundary check remains directly exercised by CI, and the submitted deletion introduces no concrete correctness or security defect. Likely related people: vincentkoc is the current cleanup contributor and assigned routing contact (low confidence for longer-term ownership).

Priority: P3
Reviewed head: 9aaf47637e7046127f134b1178d81ea22d9c4175

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, low-risk deletion with retained direct CI coverage and no actionable defect found.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored cleanup does not change user-visible behavior; supplied focused test and direct-CI evidence is appropriate supplemental validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored cleanup does not change user-visible behavior; supplied focused test and direct-CI evidence is appropriate supplemental validation.
Evidence reviewed 4 items Patch scope: The proposed branch deletes only the opt-in wrapper; it does not change the boundary checker, extension configuration, or direct CI job.
Canonical implementation remains: Current main retains the standalone checker, including compile and root-directory canary modes, so deleting the wrapper does not remove the boundary contract itself.
Direct CI proof: The supplied check state reports check-additional-extension-package-boundary passing on this PR, which independently exercises the retained direct boundary-check path.
Findings None None.
Security None None.

How this fits together

Bundled extension packages opt into a TypeScript package-boundary contract. The standalone checker compiles those packages and runs a root-directory canary; CI invokes that checker directly, while the deleted wrapper only repeated it when a special environment variable was set.

flowchart LR
  A[Bundled extensions] --> B[Package boundary configuration]
  B --> C[Boundary checker]
  C --> D[Compile and canary checks]
  D --> E[Dedicated CI boundary job]
  F[Opt-in Vitest wrapper] -. redundant duplicate .-> C
Loading

Before merge

  • Complete next step (P2) - The patch is review-ready, but this maintainer-authored and maintainer-labeled PR must remain open for explicit maintainer handling rather than automated cleanup.
Agent review details

Security

None.

PR surface

Tests -38. Total -38 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 0 38 -38
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 0 38 -38

Review metrics

None.

Technical review

Best possible solution:

Land the focused deletion if the maintainer agrees the dedicated direct checker is the sole canonical integration path, preserving the standalone checker and its focused tests.

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

Not applicable: this PR removes a dormant test wrapper rather than fixing a user-observable runtime failure; the relevant verification is direct execution of the retained boundary-check path.

Is this the best way to solve the issue?

Yes. Removing the permanently opt-in duplicate wrapper is the narrowest maintainable cleanup because the standalone checker and dedicated CI invocation remain intact.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a low-risk test-inventory cleanup with no product-runtime behavior change.
  • 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 maintainer-authored cleanup does not change user-visible behavior; supplied focused test and direct-CI evidence is appropriate supplemental validation.

Label justifications:

  • P3: This is a low-risk test-inventory cleanup with no product-runtime behavior change.
  • 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 maintainer-authored cleanup does not change user-visible behavior; supplied focused test and direct-CI evidence is appropriate supplemental validation.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the focused deletion, is a repository member, and assigned the PR; the available review context does not expose sufficient earlier main-branch blame to identify a stronger historical owner. (role: current cleanup contributor; confidence: low; commits: 9aaf47637e70; files: test/extension-package-tsc-boundary.test.ts, scripts/check-extension-package-tsc-boundary.mjs)

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.

@vincentkoc
vincentkoc merged commit fb65457 into main Jul 30, 2026
156 of 163 checks passed
@vincentkoc
vincentkoc deleted the audit/remove-redundant-tsc-boundary branch July 30, 2026 11:36
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 30, 2026
* origin/main: (99 commits)
  docs(automation): rename scheduled-tasks feature wording to Automations (#114855)
  feat(ui): finish cron -> Automations rename in visible strings (#114853)
  feat(cli): add openclaw automations alias and reword cron display prose (#114854)
  feat(agents): rename scheduler agent tool cron -> automations (#114841)
  fix(tui): preserve session state across switches and reconnects (#116399)
  feat(agents): report CLI command outcomes in channel progress
  fix(cli): preserve explicit option intent (#116389)
  fix(release): trust update restart harness (#116301)
  test(reef): remove false-green live guard smoke (#116393)
  test(comfy): evaluate live guards after setup (#116388)
  fix(heartbeat): serialize wake lifecycle state (#116351)
  test: remove redundant extension boundary wrapper (#116385)
  fix(test): bound Testbox agentic and extension suites (#115696)
  fix(ui): show the correct Threads page size (#116349)
  test(discord): align progress timing expectations (#116377)
  feat(ui): add composable skill references (#116330)
  fix(qa): prevent Slack cleanup from stalling profile runs (#116361)
  fix(ci): validate frozen release candidates faithfully (#116357)
  improve(ci): fail_fast option for release validation, off by default (#116352)
  fix(agents): compare shell tool names case-insensitively and stop re-parsing tool labels
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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