Skip to content

fix(googlechat): align doctor policy ownership with canonical account configuration - #118972

Merged
steipete merged 3 commits into
mainfrom
codex/qa0803-googlechat-doctor-canonical-policy-ownership
Aug 3, 2026
Merged

steipete merged 3 commits into
mainfrom
codex/qa0803-googlechat-doctor-canonical-policy-ownership

Conversation

@steipete

@steipete steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Align the Google Chat plugin's discovery metadata with its actual top-level direct-message policy and strict account schema.
  • Stop openclaw doctor --fix from converting valid root/default/named account settings into rejected legacy nested configuration.
  • Restore canonical root and named-account mutable-identity warnings while preserving supported group warnings and explicit dangerous-name opt-ins.

Reproduction and verification

  • The real doctor previously converted each of five schema-valid account configurations into invalid settings; valid configurations now remain unchanged, while missing open-policy wildcards are repaired in the canonical location.
  • Real bundled-manifest discovery and full plugin-aware config validation now expose both root and named-account security warnings.
  • Genuine plugin-owner collector coverage verifies root, named, inherited, overridden, retired, stable-ID, and group cases.
  • Four focused owner/integration suites: 97 passing tests.
  • Affected shipped versions: v2026.7.2-beta.4 through beta.7 and current main; stable v2026.7.1 and earlier beta releases are unaffected.
  • Independent formal review: zero P0/P1 findings; confidence 0.94.
  • Production code decreases by two lines; no new compatibility fallback, configuration key, cache behavior, or core production code.

@openclaw-barnacle openclaw-barnacle Bot added channel: googlechat Channel integration: googlechat commands Command implementations size: M maintainer Maintainer-authored PR labels Aug 3, 2026
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Aug 3, 2026
@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. P2 Normal backlog priority with limited blast radius. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 6:15 PM ET / 22:15 UTC.

ClawSweeper review

What this changes

The PR changes Google Chat Doctor metadata and warning collection so repairs and safety warnings use canonical root and named-account direct-message settings.

Merge readiness

⛔ Blocked until stronger real behavior proof is added - 3 items remain

Keep open: the patch is the correct owner-boundary repair, but no inspectable before/after Doctor artifact accompanies the real-behavior claims, and the protected maintainer label requires human handling before merge.

Priority: P2
Reviewed head: da8daaf7b61eab42623bdee8d9434cb9a667bc4c
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is well-targeted, but direct post-fix behavior proof is still needed before merge.
Proof confidence 🦪 silver shellfish (2/6) Needs stronger real behavior proof before merge: The PR body describes real Doctor verification but provides no inspectable after-fix transcript, log, recording, or artifact; tests and successful checks are supplemental only. 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 stronger real behavior proof before merge: The PR body describes real Doctor verification but provides no inspectable after-fix transcript, log, recording, or artifact; tests and successful checks are supplemental only. 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 5 items Canonical schema and runtime: Google Chat defines dmPolicy and allowFrom in its common root/account shape, keeps dm strict and enabled-only, and validates inherited account policy against those top-level fields.
Current-main mismatch: Current main advertises nestedOnly Doctor behavior, while the shared DM helper writes nested canonical fields for that mode; this conflicts with the strict Google Chat schema.
PR owner-boundary repair: The branch changes both the plugin manifest and generated external catalog to topOnly, then adds root, named-account, inherited, schema-validation, and warning coverage.
Findings None None.
Security None None.

How this fits together

Google Chat configuration is defined by the plugin schema and consumed by its inbound access logic. Core Doctor reads channel metadata to decide where to repair open direct-message policies and reports plugin-provided safety warnings.

flowchart LR
  A[Google Chat config] --> B[Plugin schema]
  B --> C[Account access runtime]
  B --> D[Channel metadata]
  D --> E[Doctor repair]
  B --> F[Plugin safety warnings]
  E --> G[Validated config]
  F --> G
Loading

Decision needed

Question Recommendation
Should this protected PR wait for a redacted, observable after-fix Doctor transcript before its final merge decision? Require observable Doctor proof: Ask for redacted before/after openclaw doctor --fix output showing canonical root or named-account fields remain schema-valid.

Why: The source and tests support the patch, but the external-PR proof gate requires direct after-fix behavior evidence rather than a prose assertion of test results.

Before merge

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR body describes real Doctor verification but provides no inspectable after-fix transcript, log, recording, or artifact; tests and successful checks are supplemental only. 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 asserts real Doctor behavior but includes no observable redacted before/after output, runtime log, or artifact to verify the repair outside tests.
Agent review details

Security

None.

PR surface

Source -2, Tests +151, Config 0, Other 0. Total +149 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 1 0 2 -2
Tests 4 182 31 +151
Docs 0 0 0 0
Config 1 1 1 0
Generated 0 0 0 0
Other 1 1 1 0
Total 7 184 35 +149

Review metrics

Metric Value Why it matters
Doctor configuration ownership 1 metadata mode corrected: nestedOnly → topOnly This changes Doctor’s repair destination for existing Google Chat direct-message configuration to the plugin schema’s canonical fields.
Production vs test LOC production -2, tests +151 The production change narrows existing policy handling while focused regressions cover the repaired configurations.

Stored data model

Persistent data-model change detected: migration/backfill/repair: extensions/googlechat/src/doctor-contract.test.ts, migration/backfill/repair: extensions/googlechat/src/doctor.ts, migration/backfill/repair: src/commands/doctor-config-flow.test.ts, migration/backfill/repair: src/commands/doctor/channel-capabilities.test.ts, migration/backfill/repair: src/commands/doctor/shared/open-policy-allowfrom.test.ts, unknown-data-model-change: extensions/googlechat/src/doctor-contract.test.ts, and 3 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the schema-defined top-level Google Chat policy fields as the sole Doctor repair target, with the manifest and generated catalog declaring that same ownership.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the schema-defined top-level Google Chat policy fields as the sole Doctor repair target, with the manifest and generated catalog declaring that same ownership.

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

Yes. Current main’s metadata directs Doctor to nested fields, while the Google Chat schema and access runtime use top-level root/account fields; this is directly traceable in source without running a mutating Doctor command.

Is this the best way to solve the issue?

Yes. Correcting plugin-owned static metadata and its warning collector is better than adding a Google Chat exception to core Doctor logic.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: The channel-specific Doctor mismatch can make valid Google Chat configuration fail validation, with bounded blast radius.
  • 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 stronger real behavior proof before merge: The PR body describes real Doctor verification but provides no inspectable after-fix transcript, log, recording, or artifact; tests and successful checks are supplemental only. 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:

  • P2: The channel-specific Doctor mismatch can make valid Google Chat configuration fail validation, with bounded blast radius.
  • 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 stronger real behavior proof before merge: The PR body describes real Doctor verification but provides no inspectable after-fix transcript, log, recording, or artifact; tests and successful checks are supplemental only. 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:

  • Canonical schema and runtime: Google Chat defines dmPolicy and allowFrom in its common root/account shape, keeps dm strict and enabled-only, and validates inherited account policy against those top-level fields. (src/config/zod-schema.providers-googlechat.ts:62, 0483ca712bd5)
  • Current-main mismatch: Current main advertises nestedOnly Doctor behavior, while the shared DM helper writes nested canonical fields for that mode; this conflicts with the strict Google Chat schema. (extensions/googlechat/package.json:58, 0483ca712bd5)
  • PR owner-boundary repair: The branch changes both the plugin manifest and generated external catalog to topOnly, then adds root, named-account, inherited, schema-validation, and warning coverage. (extensions/googlechat/package.json:58, da8daaf7b61e)
  • History and ownership: The current metadata and schema appear in the bundled-plugin snapshot commit; broader history shows sustained Doctor/manifest work by Peter Steinberger and a later channel-owned setup-contract change by Jesse Merhi. (extensions/googlechat/package.json:58, 96ae5fad799f)
  • Current-main and release status: The PR head is not contained in current main, and no local v2026.7 tag contains its implementation commit; the requested correction is still unmerged. (extensions/googlechat/package.json:58, da8daaf7b61e)

Likely related people:

  • steipete: History includes central DM-access, control-plane, and manifest-descriptor refactors; this person also authored the current repair. (role: recent configuration and Doctor-area contributor; confidence: high; commits: 8c68e7535feb, 44314c94514d, 264a6a7864c1; files: src/channels/plugins/dm-access.ts, src/commands/doctor/channel-capabilities.ts, extensions/googlechat/package.json)
  • Jesse Merhi: The channel-owned setup-contract change touched the Google Chat manifest and generated catalog that supply Doctor metadata. (role: channel-manifest contract contributor; confidence: medium; commits: 4a2a6008091d; files: extensions/googlechat/package.json, scripts/lib/official-external-channel-catalog.json)
  • Vincent Koc: The current bundled snapshot that contains the mismatched metadata and schema is attributed to this commit, though the exact original regression cannot be isolated from available history. (role: current snapshot contributor; confidence: low; commits: 96ae5fad799f; files: extensions/googlechat/package.json, extensions/googlechat/src/doctor.ts, src/config/zod-schema.providers-googlechat.ts)

Rank-up moves

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

  • Add redacted before/after openclaw doctor --fix output for a canonical root or named-account configuration, then update the PR body for re-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 3d65ea2 into main Aug 3, 2026
255 of 263 checks passed
@steipete
steipete deleted the codex/qa0803-googlechat-doctor-canonical-policy-ownership branch August 3, 2026 22:23
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 3, 2026
…r-admin-20260803

* origin/main: (89 commits)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  test(gateway): cover node exec approval relay (#118825)
  test(qa): add Active Memory recall coverage (#118963)
  test(qa): promote package-backed Docker artifact proof (#118826)
  test(qa): cover diagnostic event boundary (#118844)
  test(gateway): cover WebSocket runtime contracts (#118797)
  fix(signal): drain accepted websocket messages before shutdown (#118975)
  fix(plugins): remove stale load paths during uninstall (#118930)
  test(qa): cover bundled runtime discovery (#118922)
  chore(clawhub): cover plugin release policy contracts (#118971)
  test(qa): cover support export and stability (#118956)
  fix(feishu): enforce exact signed webhook request boundaries (#118758)
  ...
vincentkoc added a commit that referenced this pull request Aug 3, 2026
…ansports-20260803

* origin/main: (120 commits)
  test(ui): add service-worker update primary QA proof (#118805)
  test(qa): cover CLI onboarding and plugin install sources (#118882)
  test(qa): cover remote logging boundaries (#118951)
  fix(sms): retry transient MMS failures before durable adoption (#118994)
  test(qa): cover video generation invocation (#118864)
  test(qa): cover media reference intake (#118858)
  test(qa): cover image generation task lifecycle (#118915)
  feat(sms): track Twilio delivery status (#118665)
  test(tasks): cover TaskFlow registry lifecycle (#118983)
  test(gateway): verify SSH tunnel fallback (#118818)
  fix(security): harden network tool output at canonical owner boundaries (#118984)
  fix(googlechat): align doctor policy ownership with canonical account configuration (#118972)
  test(tui): prove editor input through PTY (#118982)
  fix(memory): persist trusted owner provenance at canonical transcript boundary (#118987)
  test(qa): cover health monitor and cache boundaries (#118961)
  fix(macos): restore dashboard frame double-click zoom (#118976)
  fix(googlechat): recover durable lanes after oversized attachments (#118986)
  test(qa): cover runtime telemetry evidence (#118950)
  fix(gateway): resolve SQLite usage details (#118918)
  test(cron): cover durable scheduler state (#118981)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 4, 2026
… configuration (openclaw#118972)

* fix(googlechat): align doctor policy ownership with canonical account configuration

* test(googlechat): align generated channel metadata and typed doctor fixtures
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: googlechat Channel integration: googlechat commands Command implementations maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. scripts Repository scripts size: M 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