Skip to content

refactor(google-meet): test platform guards through the tool - #140792

Merged
steipete merged 1 commit into
mainfrom
codex/test-google-meet-tool-platform
Sep 7, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/test-google-meet-tool-platform

Conversation

@steipete

@steipete steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Google Meet's platform test called a private predicate directly. It stayed green when the registered tool stopped invoking the platform guard, leaving the unsupported-host error path unprotected.

Why This Change Was Made

Exercise the same four platform/mode/transport cases through the registered tool. Allowed cases assert their result and Gateway dispatch; the Windows case asserts the existing actionable error and no additional dispatch. Remove the private predicate's testing export and its test-only platform argument, using the existing platform producer and fixture setters.

User Impact

No runtime behavior, supported platform, configuration, or API changes. The production diff removes two lines; the test grows by 22 lines to preserve all four cases at the tool boundary. Existing routing, authorization, browser ownership, lifecycle, transcript, and audio coverage stays intact.

Evidence

  • Both owning suites passed before and after: 178/178 tests, with every test name retained.
  • Caller regression control: removing the tool's guard call leaves all 178 old cases green; the revised suite fails exactly the Windows case because it returns success instead of the existing platform error. The fault was removed and candidate bytes restored exactly.
  • Read the original platform-guard history and Linux support change (feat(meetings): enable Linux Chrome talk-back #118451), the complete owning suites, registration/dispatch/config owners, and existing fixture lifecycle. Tests use the existing synthetic Gateway stub; no real meeting, provider call, microphone, or browser is involved.
  • Independent applied review is clean through P2. All 25 required changed-file checks passed through the configured Blacksmith Testbox route (run 34082784920); command exit 0 in 10m49s. The lease completed and its temporary checkout was removed. PR-head CI is tracked separately.

@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 7, 2026 04:36
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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. labels Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 12:42 AM ET / 04:42 UTC.

ClawSweeper review

What this changes

The PR tests Google Meet’s platform restrictions through the registered agent tool and removes the private predicate’s testing export and platform argument.

Merge readiness

✅ Ready for maintainer review

Keep open: this provides useful regression coverage still absent from current main. No actionable correctness or security defects were found.

Priority: P3
Reviewed head: 976594bbdc19c68e1542992dcbf4515ebc003f9e

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, behavior-preserving cleanup with meaningful caller assertions and reported mutation-control validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies a member-authored PR, so ordinary external-contributor proof is exempt; its synthetic Gateway tests exercise the changed tool boundary without claiming live meeting proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies a member-authored PR, so ordinary external-contributor proof is exempt; its synthetic Gateway tests exercise the changed tool boundary without claiming live meeting proof.
Evidence reviewed 6 items Introduced scope: The verified merge-base-to-head patch changes only the platform test and its private testing seam; the supplied verified test-merge result preserves that same scope.
Tool boundary and fixture cleanup: The revised test exercises all four original cases through tool.execute, checks three successful Gateway dispatches, and verifies the Windows error without another dispatch. Existing afterEach cleanup resets both the Gateway stub and platform provider.
Current-main necessity: The fetched main revision still tests the private predicate directly. Comparing the two relevant files against main yields the supplied PR change, so the stronger caller coverage remains useful.
Findings None None.
Security None None.

How this fits together

The Google Meet plugin accepts agent tool requests, checks whether the selected meeting mode and transport support the host, and dispatches allowed requests to the Gateway. Unsupported requests return an actionable error before dispatch.

flowchart TD
  A[Agent meeting request] --> B[Registered Google Meet tool]
  C[Host platform and meeting configuration] --> D[Platform support check]
  B --> D
  D -->|Supported| E[Gateway dispatch]
  D -->|Unsupported| F[Actionable tool error]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -2, Tests +22. Total +20 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 1 3 -2
Tests 1 51 29 +22
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 52 32 +20

Review metrics

Metric Value Why it matters
Test-boundary tradeoff Production −2 lines; tests +22 lines; four cases retained The additional assertions protect caller integration while removing a test-only production seam.

Technical review

Best possible solution:

Retain platform regression coverage at the registered tool boundary while keeping the predicate private and preserving existing dispatch behavior.

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

Not applicable to a current runtime bug: this repairs a coverage gap, with a reported removed-guard control demonstrating why the stronger assertion matters.

Is this the best way to solve the issue?

Yes: exercising the registered tool protects the observable rejection and dispatch boundary without adding a new fixture seam or changing runtime policy.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against adf581865676.

Labels

Label changes:

  • add P3: This is focused test-quality cleanup with no intended 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: The supplied repository state identifies a member-authored PR, so ordinary external-contributor proof is exempt; its synthetic Gateway tests exercise the changed tool boundary without claiming live meeting proof.

Label justifications:

  • P3: This is focused test-quality cleanup with no intended 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: The supplied repository state identifies a member-authored PR, so ordinary external-contributor proof is exempt; its synthetic Gateway tests exercise the changed tool boundary without claiming live meeting proof.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 self-assigned this Sep 7, 2026
@steipete
steipete merged commit 613e2f4 into main Sep 7, 2026
169 checks passed
@steipete
steipete deleted the codex/test-google-meet-tool-platform branch September 7, 2026 05:03
@steipete

steipete commented Sep 7, 2026

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: S 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