Skip to content

refactor(google-meet): remove testing re-export - #126223

Merged
steipete merged 1 commit into
mainfrom
test/remove-google-meet-testing-reexport
Aug 19, 2026
Merged

steipete merged 1 commit into
mainfrom
test/remove-google-meet-testing-reexport

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Google Meet plugin entrypoint publicly re-exported a testing object solely because its behavior tests imported private owner hooks through the public barrel. That made a test-only seam look like plugin API surface.

Why This Change Was Made

The public re-export is removed and the existing behavior tests now import the hooks directly from their owner, src/plugin-registration.ts. Runtime registration and all behavior coverage remain unchanged. Production Knip models that owner as a focused test seam, while the full-tree unused-export audit still verifies its consumers.

User Impact

No user-visible or runtime behavior changes. Plugin developers no longer see an accidental test-only export on the Google Meet entrypoint.

Evidence

  • node scripts/run-vitest.mjs extensions/google-meet/index.test.ts extensions/google-meet/index.create.test.ts — 2 files, 178 tests passed.
  • node scripts/check-changed.mjs -- config/knip.config.ts extensions/google-meet/index.ts extensions/google-meet/index.test.ts extensions/google-meet/index.create.test.ts — passed.
  • node --import tsx scripts/check-deadcode-exports.mts — production, full-tree, and script scans passed with zero entries.
  • pnpm build — passed.
  • .agents/skills/autoreview/scripts/autoreview --mode local — clean; no accepted/actionable findings.
  • rg confirms no testing export or public-index test import remains.

@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@steipete
steipete marked this pull request as ready for review August 19, 2026 06:34
@steipete
steipete force-pushed the test/remove-google-meet-testing-reexport branch from 0eca702 to e1206c5 Compare August 19, 2026 07:06
@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 Aug 19, 2026
@clawsweeper

clawsweeper Bot commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 19, 2026, 3:10 AM ET / 07:10 UTC.

ClawSweeper review

What this changes

Removes an accidental test-only named export from the Google Meet plugin entrypoint and makes its two behavior suites import the seam from the owner module.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer handling. Current main still exposes the test-only named export, while this focused branch removes it and preserves the same test seam at its owner; no blocking defect was found.

Priority: P3
Reviewed head: e1206c56e904218307d275fdb98cf1d7eb5cbee2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-boundary cleanup with current-main confirmation and no actionable correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-owned, behavior-neutral refactor does not require contributor real-behavior proof; the supplied focused test and dead-export 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-owned, behavior-neutral refactor does not require contributor real-behavior proof; the supplied focused test and dead-export evidence is appropriate supplemental validation.
Evidence reviewed 7 items Current-main behavior: Current main imports and re-exports testing from the Google Meet entrypoint, so the cleanup remains necessary.
Focused removal: The PR removes only the entrypoint’s testing import and re-export; runtime registration still begins with the same default plugin definition.
Owner-boundary test access: Both affected suites retain their default plugin import and now import the test seam directly from its local owner.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs extensions/google-meet/index.test.ts extensions/google-meet/index.create.test.ts

Result: FAIL (failed) — execution before step 1 run: live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

live-proof package manager pnpm is unavailable after its official installer (curl -fsSL https://get.pnpm.io/install.sh | sh -): command failed without output

Assertions:

  • FAIL expect_output: Test Files

How this fits together

The Google Meet plugin entrypoint is the runtime-loaded public registration module. It imports registration helpers from the owner module, while behavior tests use the owner’s explicit test seam without exporting it from the plugin entrypoint.

flowchart LR
  A[Google Meet plugin entrypoint] --> B[Registration owner]
  B --> C[Gateway and tool registration]
  D[Behavior tests] --> B
  C --> E[Google Meet runtime]
Loading

Before merge

  • Complete next step (P2) - No repair lane is needed: this protected maintainer PR has no identified defect and should follow normal exact-head CI review.
Agent review details

Security

None.

PR surface

Source -3, Tests +2, Other +1. Total 0 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 1 0 3 -3
Tests 2 4 2 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 4 5 5 0

Review metrics

Metric Value Why it matters
Production versus test delta production -3, test-support +1, tests +2 The net-neutral cleanup deletes the public re-export, keeps its test-only owner visible to the production dead-export scan, and rewires existing tests without changing assertions.

Technical review

Best possible solution:

Retain the local owner test seam and remove the accidental entrypoint export once exact-head checks complete.

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

Not applicable: this is an internal export-surface cleanup, not a user-reported runtime failure; current main source confirms the accidental export exists.

Is this the best way to solve the issue?

Yes. The entrypoint needs only runtime registration helpers, while direct same-plugin test imports preserve the existing test behavior without advertising a test seam as package surface.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a small behavior-neutral plugin cleanup with no user-facing runtime 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-owned, behavior-neutral refactor does not require contributor real-behavior proof; the supplied focused test and dead-export evidence is appropriate supplemental validation.

Label justifications:

  • P3: This is a small behavior-neutral plugin cleanup with no user-facing runtime 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-owned, behavior-neutral refactor does not require contributor real-behavior proof; the supplied focused test and dead-export evidence is appropriate supplemental validation.

Evidence

What I checked:

Likely related people:

  • steipete: Google Meet entry/refactor history and the current cleanup both trace to Peter Steinberger; current-main blame also attributes the exposed seam lines to that recent history. (role: feature owner; confidence: high; commits: 4707934b3062, 7bc994aee831; files: extensions/google-meet/index.ts, extensions/google-meet/src/plugin-registration.ts)

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.

@steipete
steipete merged commit a4b265a into main Aug 19, 2026
155 checks passed
@steipete
steipete deleted the test/remove-google-meet-testing-reexport branch August 19, 2026 07:26
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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. plugin: google-meet 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