Skip to content

refactor(plugins): deduplicate plugin TypeScript project boundaries - #117474

Merged
steipete merged 1 commit into
mainfrom
codex/goal100k-plugin-tsconfig-inheritance
Aug 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/goal100k-plugin-tsconfig-inheritance

Conversation

@steipete

@steipete steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Maintainer-requested repository cleanup: 125 bundled plugin projects repeated the same package root and source inclusion/exclusion policy, creating 1,615 unnecessary configuration lines and 125 places where plugin boundaries could drift.

Why This Change Was Made

Move the canonical rootDir, include, and exclude policy into the existing shared plugin project configuration using TypeScript's ${configDir} substitution. Keep every package-local project and preserve xAI's complete custom path aliases and boundary stubs. Strengthen the existing contract test so individual projects cannot silently reintroduce duplicate policy.

User Impact

No user-visible runtime, plugin installation, public API, or published package changes. Every plugin compiles the same 4,623 source files with the same effective compiler options and security boundaries. The repository loses 1,615 production/configuration lines, or 1,607 lines net including stronger regression coverage.

Evidence

  • Exhaustive before/after TypeScript 6.0.3 parser comparison: all 125 projects, all 4,623 included source files, effective compiler options, path aliases, wildcard roots, and diagnostics matched exactly.
  • Verified pinned native tsgo configuration expansion, Windows drive-letter/case-insensitive path behavior, and published-plugin package allowlists.
  • Blacksmith Testbox tbx_01kyyxea2yttzv9mxnq2ytt4x9: complete remote pipeline exited 0.
  • pnpm test src/plugins/contracts/extension-package-project-boundaries.test.ts test/scripts/check-extension-package-tsc-boundary.test.ts test/scripts/prepare-extension-package-boundary-artifacts.test.ts — 48 tests passed.
  • pnpm run test:extensions:package-boundary — all 125 plugin projects compiled; both deliberate outside-package import canaries remained rejected.
  • pnpm build — complete production, public SDK, bundled-plugin, and Control UI build passed.
  • pnpm check:changed — core, core-test, plugin, and plugin-test typechecks; complete core/plugin lint; formatting; dead-code scan; dependency/plugin/security guards all passed.
  • Independent AI-assisted Codex autoreview with gpt-5.6-sol, xhigh reasoning, and P0–P2 scope: clean; TruffleHog scan clean.

@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: signal Channel integration: signal channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser extensions: copilot-proxy Extension: copilot-proxy extensions: diagnostics-otel Extension: diagnostics-otel extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: open-prose Extension: open-prose channel: feishu Channel integration: feishu channel: twitch Channel integration: twitch channel: irc extensions: acpx extensions: anthropic labels Aug 1, 2026
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 12:11 PM ET / 16:11 UTC.

ClawSweeper review

What this changes

This PR moves common TypeScript plugin project-boundary settings from 125 package-local tsconfig files into extensions/tsconfig.package-boundary.base.json and updates contract assertions.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

The supplied patch and exact-head validation report support a clean internal refactor, but the local checkout cannot hydrate the PR commit or refresh GitHub because network access is unavailable. No discrete correctness or security defect is established; refresh the exact-head/merge-result proof before merge because the branch is behind current main.

Priority: P3
Reviewed head: f6e7919ee2c0010a6c59352c95c486d65a8c7f3e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-validated boundary-policy consolidation with no source-proven defect found, pending the ordinary exact-head refresh after rebasing.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): The PR body provides after-fix terminal-oriented evidence for all plugin boundary projects, focused contract tests, a build, and changed checks; redact any private paths or identifiers if reposting artifacts.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): The PR body provides after-fix terminal-oriented evidence for all plugin boundary projects, focused contract tests, a build, and changed checks; redact any private paths or identifiers if reposting artifacts.
Evidence reviewed 6 items Shared owner boundary: Current main keeps the shared base configuration as a minimal extension of the shared paths configuration; the PR moves the common root and source-selection policy into this owner file.
Existing invariant coverage: The current contract test requires every opt-in extension to declare the same local root, includes, and exclusions, and separately preserves xAI's custom path map; the proposed diff updates those assertions to validate the shared definition instead.
Boundary helper contract: The shared constants define the prior package-relative include and exclude patterns, matching the values centralized by the PR.
Findings None None.
Security None None.

How this fits together

Bundled plugin TypeScript projects define package-local compile boundaries used by build and CI checks. Each plugin tsconfig extends shared boundary configuration, which TypeScript resolves before the package-boundary test and extension compilation run.

flowchart LR
  A[Bundled plugin tsconfig] --> B[Shared boundary configuration]
  B --> C[TypeScript config resolution]
  C --> D[Package-boundary contract tests]
  D --> E[Extension compilation and CI]
Loading

Before merge

  • Resolve merge risk (P1) - The PR is mergeable but behind current main; rerun the package-boundary check against the refreshed merge result because this shared configuration affects every bundled plugin project.
  • Resolve merge risk (P1) - The local partial clone lacks the proposed commit and network access is unavailable, preventing an independent exact-head source and dependency-source read in this review.
  • Complete next step (P2) - No repair is indicated: this active PR has no discrete actionable defect, and the remaining action is ordinary merge-result refresh and maintainer review.
Agent review details

Security

None.

Review metrics

None.

Stored data model

Persistent data-model change detected: unknown-truncated-pull-files. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Preserve one canonical package-boundary definition in the shared config, with exact-head proof that TypeScript still resolves each normal and xAI plugin project to the same package-relative roots and exclusions after rebasing.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Preserve one canonical package-boundary definition in the shared config, with exact-head proof that TypeScript still resolves each normal and xAI plugin project to the same package-relative roots and exclusions after rebasing.

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

Not applicable: the intended behavior is compile-time project-boundary equivalence, and the PR supplies exact-head package-boundary/build validation rather than a user-facing reproduction path.

Is this the best way to solve the issue?

Yes, conditionally: centralizing a policy repeated in every plugin is the coherent owner-boundary fix, provided the refreshed merge result preserves TypeScript's effective per-package configuration.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is internal TypeScript configuration cleanup with no intended runtime, API, or operator workflow change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix terminal-oriented evidence for all plugin boundary projects, focused contract tests, a build, and changed checks; redact any private paths or identifiers if reposting artifacts.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): The PR body provides after-fix terminal-oriented evidence for all plugin boundary projects, focused contract tests, a build, and changed checks; redact any private paths or identifiers if reposting artifacts.

Label justifications:

  • P3: This is internal TypeScript configuration cleanup with no intended runtime, API, or operator workflow change.
  • 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 provides after-fix terminal-oriented evidence for all plugin boundary projects, focused contract tests, a build, and changed checks; redact any private paths or identifiers if reposting artifacts.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides after-fix terminal-oriented evidence for all plugin boundary projects, focused contract tests, a build, and changed checks; redact any private paths or identifiers if reposting artifacts.

Evidence

What I checked:

  • Shared owner boundary: Current main keeps the shared base configuration as a minimal extension of the shared paths configuration; the PR moves the common root and source-selection policy into this owner file. (extensions/tsconfig.package-boundary.base.json:1, 8b21c23cc263)
  • Existing invariant coverage: The current contract test requires every opt-in extension to declare the same local root, includes, and exclusions, and separately preserves xAI's custom path map; the proposed diff updates those assertions to validate the shared definition instead. (src/plugins/contracts/extension-package-project-boundaries.test.ts:156, 8b21c23cc263)
  • Boundary helper contract: The shared constants define the prior package-relative include and exclude patterns, matching the values centralized by the PR. (scripts/lib/extension-package-boundary.ts:6, 8b21c23cc263)
  • Feature provenance: Blame attributes the current contract-test assertions to the recent package-boundary work in commit cd4bd7c, tying the review to the current owner surface rather than only the PR diff. (src/plugins/contracts/extension-package-project-boundaries.test.ts:156, cd4bd7c6c0ca)
  • Pinned compiler dependency: The repository pins TypeScript 6.0.3, the version named in the PR validation report; local dependency source was unavailable because node_modules is absent. (package.json:1995, 8b21c23cc263)
  • Exact-head limitation: The checkout is on current main and is a partial clone; attempting to inspect the PR commit f6e7919 required an unavailable promisor-network fetch, so the supplied GitHub diff and validation report were used for branch evidence.

Likely related people:

  • steipete: Peter Steinberger authored the current package-boundary contract assertions and dominates the history of the central shared config, test, and helper files. (role: feature owner and recent area contributor; confidence: high; commits: cd4bd7c6c0ca, f6e7919ee2c0; files: extensions/tsconfig.package-boundary.base.json, src/plugins/contracts/extension-package-project-boundaries.test.ts, scripts/lib/extension-package-boundary.ts)
  • vincentkoc: Vincent Koc is a substantial historical contributor to the boundary helper and its repository test infrastructure, according to the central-file shortlog. (role: adjacent boundary-test contributor; confidence: medium; commits: b5b193076e3b, cb313d5378cb; files: scripts/lib/extension-package-boundary.ts, src/plugins/contracts/extension-package-project-boundaries.test.ts)

Rank-up moves

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

  • Rebase or refresh the merge result, then retain the package-boundary check evidence for the 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: buzz channel: discord Channel integration: discord channel: feishu Channel integration: feishu channel: googlechat Channel integration: googlechat channel: imessage Channel integration: imessage channel: irc channel: line Channel integration: line channel: matrix Channel integration: matrix channel: mattermost Channel integration: mattermost channel: msteams Channel integration: msteams channel: nextcloud-talk Channel integration: nextcloud-talk channel: nostr Channel integration: nostr channel: qa-channel Channel integration: qa-channel channel: qqbot channel: raft Channel integration: Raft channel: reef Channel integration: reef channel: signal Channel integration: signal channel: slack Channel integration: slack channel: sms Channel integration: sms channel: synology-chat channel: telegram Channel integration: telegram channel: tlon Channel integration: tlon channel: twitch Channel integration: twitch channel: voice-call Channel integration: voice-call channel: whatsapp-web Channel integration: whatsapp-web channel: zalo Channel integration: zalo channel: zalouser Channel integration: zalouser extensions: acpx extensions: admin-http-rpc extensions: amazon-bedrock extensions: anthropic extensions: anthropic-vertex extensions: arcee extensions: baseten Extension: baseten extensions: brave extensions: byteplus extensions: cerebras extensions: chutes extensions: clawrouter Extension: clawrouter extensions: cloudflare-ai-gateway extensions: codex extensions: copilot extensions: copilot-proxy Extension: copilot-proxy extensions: deepinfra extensions: deepseek extensions: diagnostics-otel Extension: diagnostics-otel extensions: diagnostics-prometheus extensions: diffs extensions: duckduckgo extensions: elevenlabs extensions: fal extensions: featherless extensions: firecrawl extensions: github-copilot extensions: gmi extensions: google extensions: gradium extensions: huggingface extensions: inworld Extension: inworld extensions: kilocode extensions: kimi-coding extensions: litellm extensions: llm-task Extension: llm-task extensions: lobster Extension: lobster extensions: longcat LongCat provider plugin extensions: memory-core Extension: memory-core extensions: memory-lancedb Extension: memory-lancedb extensions: memory-wiki extensions: meta Extension: meta extensions: microsoft extensions: minimax extensions: mistral extensions: moonshot extensions: novita extensions: nvidia extensions: ollama extensions: open-prose Extension: open-prose extensions: openai extensions: opencode extensions: opencode-go extensions: openrouter extensions: qa-lab extensions: qianfan extensions: stepfun extensions: synthetic extensions: tavily extensions: tencent extensions: together extensions: tokenjuice Changes to the bundled tokenjuice extension extensions: venice extensions: vercel-ai-gateway extensions: volcengine extensions: webhooks extensions: xiaomi plugin: azure-speech Azure Speech plugin plugin: google-meet plugin: mxc plugin: pixverse plugin: teams-meetings Teams Meetings plugin plugin: zoom Zoom plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant