Skip to content

refactor(google-meet): unify gateway and tool dispatch - #119413

Merged
steipete merged 1 commit into
mainfrom
codex/loc-0804-collaboration-plugins-luem8u
Aug 5, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/loc-0804-collaboration-plugins-luem8u

Conversation

@steipete

@steipete steipete commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Google Meet repeated gateway error adapters, trusted tool dispatch, and artifact request projection across its gateway, tool, and CLI entry points. This is part of a maintainer-requested project-wide production LOC reduction campaign.

Why This Change Was Made

Centralize equivalent Google Meet gateway/tool dispatch and artifact request construction while preserving trusted agent ownership, spoof rejection, request validation, and all 16 gateway methods.

User Impact

Google Meet users see the same meeting, transcript, artifact, and export behavior with 261 fewer production lines.

Evidence

Exact-head gateway and CLI transcript

Observed at PR head 54f9c43fd4bfb3743c0626f88061ed3bf9db578b on isolated Blacksmith Testbox tbx_01kz7t9nxe1982y00tt47f5k06. Google APIs are controlled integration-test fixtures; no live account, credentials, meeting, or operator gateway was used.

$ CI=1 OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 pnpm test extensions/google-meet/index.test.ts extensions/google-meet/index.create.test.ts extensions/google-meet/index.transcripts.test.ts extensions/google-meet/src/cli-artifacts.test.ts extensions/google-meet/src/cli-runtime.test.ts extensions/google-meet/src/node-invoke-policy.test.ts
✓ extensions/google-meet/index.test.ts (162 tests)
✓ extensions/google-meet/index.create.test.ts (10 tests)
✓ extensions/google-meet/src/cli-artifacts.test.ts (17 tests)
✓ extensions/google-meet/src/cli-runtime.test.ts (28 tests)
✓ extensions/google-meet/src/node-invoke-policy.test.ts (8 tests)
✓ extensions/google-meet/index.transcripts.test.ts (1 test)
Test Files  6 passed (6)
Tests       226 passed (226)

Actual CLI output captured by the passing integration tests:

$ openclaw googlemeet transcript meet_gateway --since 3
# 2 earlier lines dropped by the transcript cap
Alice: fourth line
# nextIndex: 4

$ openclaw googlemeet attendance --access-token [REDACTED] --conference-record rec-1
attendance rows: 1
participant: Alice

Trusted routing assertions on the running gateway/tool boundary:

  • Trusted caller with sessionKey=agent:support:pr103522-live and spoofed model-supplied agentId=spoofed: gateway receives canonical agentId=support, the original requester session, and scope operator.admin.
  • Untrusted external caller with agentId=spoofed: downstream Meet runtime receives agentId=undefined; spoofing is rejected.
  • CLI export manifest order remains summary.md, attendance.csv, transcript.md, artifacts.json, attendance.json, manifest.json.

A live Google Meet account was not exercised because no user-approved live account, meeting, or operator-gateway mutation is needed for this behavior-neutral owner refactor.

@steipete
steipete marked this pull request as ready for review August 5, 2026 02:15
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 10:21 PM ET / August 5, 2026, 02:21 UTC.

ClawSweeper review

What this changes

The PR replaces repeated Google Meet gateway, tool, and CLI dispatch code with shared dispatch and artifact-query helpers while retaining the existing operations.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 3 items remain

No actionable correctness finding: the refactor preserves gateway error handling, trusted agent routing, and artifact-query projections. Keep this protected maintainer PR open for its normal merge gates and inspectable after-fix behavior proof.

Priority: P3
Reviewed head: 54f9c43fd4bfb3743c0626f88061ed3bf9db578b

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is a clean, behavior-preserving consolidation, but real after-fix behavior proof is still required.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR cites focused tests and CI, but the review context contains no inspectable after-fix real Google Meet gateway or CLI evidence; add redacted output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR cites focused tests and CI, but the review context contains no inspectable after-fix real Google Meet gateway or CLI evidence; add redacted output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Unified gateway handling: The shared wrapper catches each handler failure and emits the same Google Meet gateway error response; all sixteen gateway registrations remain present.
Trusted routing preserved: Join and test-speech reuse the trusted parameter resolver, while test-listen still strips untrusted agent IDs before runtime dispatch.
Gateway contract checked: The gateway handler contract supplies normalized parameters, a trusted client object, and a response callback; synthetic plugin clients set the internal owner identity rather than taking it from request data.
Findings None None.
Security None None.

How this fits together

The Google Meet plugin receives agent-tool, gateway, and CLI requests, resolves trusted meeting and agent inputs, then calls meeting, transcript, and artifact operations. Results return to the caller as gateway responses, tool results, or CLI output.

flowchart LR
  A[Agent tool] --> D[Google Meet dispatch]
  B[Gateway request] --> D
  C[CLI command] --> D
  D --> E[Trusted input resolution]
  E --> F[Meeting and artifact operations]
  F --> G[Gateway tool or CLI result]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR cites focused tests and CI, but the review context contains no inspectable after-fix real Google Meet gateway or CLI evidence; add redacted output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - The PR body provides test and CI claims but no inspectable redacted after-fix gateway or CLI output from a real Google Meet setup.
  • Complete next step (P2) - No mechanical repair is needed; the protected maintainer label, real-behavior-proof gate, and exact-head checks remain merge-time handling.
Agent review details

Security

None.

PR surface

Source -261. Total -261 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 3 256 517 -261
Tests 0 0 0 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 256 517 -261

Review metrics

Metric Value Why it matters
Production versus test delta production -261 lines, tests 0 lines The refactor materially reduces production duplication without changing test sources, so existing boundary coverage and real after-fix evidence carry the validation burden.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep one canonical dispatcher and shared artifact projection, backed by a redacted real gateway or CLI run that demonstrates preserved routing and output behavior.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep one canonical dispatcher and shared artifact projection, backed by a redacted real gateway or CLI run that demonstrates preserved routing and output behavior.

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

Not applicable: this PR refactors existing Google Meet behavior rather than reporting a standalone bug.

Is this the best way to solve the issue?

Yes. The shared wrapper and query projections sit at the dispatch owner boundary and preserve the prior calls rather than adding a parallel path.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a behavior-preserving maintainability refactor with no demonstrated user-facing defect.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR cites focused tests and CI, but the review context contains no inspectable after-fix real Google Meet gateway or CLI evidence; add redacted output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P3: This is a behavior-preserving maintainability refactor with no demonstrated user-facing defect.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR cites focused tests and CI, but the review context contains no inspectable after-fix real Google Meet gateway or CLI evidence; add redacted output before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

Likely related people:

  • steipete: Recent Google Meet history includes the entry-module refactor and agent-routing repair that this dispatch consolidation builds on. (role: recent area contributor; confidence: high; commits: 32014bd84f5c, f85d438164eb, 54f9c43fd4bf; files: extensions/google-meet/index.ts, extensions/google-meet/src/plugin-helpers.ts)
  • Shakker: Blame identifies this person as the author of the immediately preceding Google Meet helper, trusted-routing, and tool-dispatch structure. (role: recent feature contributor; confidence: high; commits: f979883b8fa9; files: extensions/google-meet/index.ts, extensions/google-meet/src/plugin-helpers.ts, extensions/google-meet/src/cli-artifact-commands.ts)

Rank-up moves

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

  • Add a redacted real Google Meet gateway or CLI transcript showing the refactored path's output and trusted routing.
  • Update the PR body with that evidence for a fresh review.

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 4707934 into main Aug 5, 2026
167 of 175 checks passed
@steipete
steipete deleted the codex/loc-0804-collaboration-plugins-luem8u branch August 5, 2026 02:52
@steipete

steipete commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 5, 2026
* origin/main: (22 commits)
  refactor(plugins): consolidate lifecycle hook dispatch (#119429)
  fix(ci): stabilize TUI PTY proof ownership (#119420)
  test(system-agent): reduce suite setup overhead (#119424)
  fix(ui): keep session rail pill status from overlapping the headline (#119397)
  fix(discord): avoid doctor runtime loading (#119391)
  fix(media): decouple playback cache retention (#119417)
  fix(slack): infer upload filename extensions from MIME types (#119399)
  refactor(channels): unify configured binding resolution (#119414)
  refactor(google-meet): unify gateway and tool dispatch (#119413)
  test(state): reuse legacy database fixtures (#119423)
  fix(reset): preserve bootstrap guidance for dynamic models (#119179)
  fix(chutes): honor serving context limits (#119196)
  refactor(status): consolidate scan projections and lazy loaders (#119412)
  fix(status): status --all slows down with missing plugins (#119203)
  refactor(gateway): consolidate usage reporting and caches (#119409)
  perf(gateway): keep reload and recovery machinery off gateway cold start (#119094)
  fix(cli): align TaskFlow controller columns for wide text (#118801)
  fix: make startup migration restart guidance install-neutral (#119406)
  fix(ci): preserve cache warmer shard envelopes (#119403)
  fix(sessions): preserve compatible auth profiles on model changes (#117550)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 5, 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. plugin: google-meet rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: L status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant