Repository navigation
Reject unsupported diagnostics OTel grpc config - #93087
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 2:27 PM ET / 18:27 UTC. ClawSweeper reviewWhat this changesThe PR limits Merge readiness⛔ Blocked until stronger real behavior proof is added - 6 items remain This remains a useful, focused repair for the linked diagnostics configuration defect. The current branch aligns the schema, documentation, Doctor migration path, and exporter ownership, but it intentionally retires a shipped persisted value; maintainer confirmation of that upgrade policy and refreshed real-behavior proof on the latest head are still required before merge. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw Doctor inspects and repairs persisted configuration before normal startup, while the diagnostics-otel plugin turns resolved configuration and process environment into OpenTelemetry exporters. This patch connects those boundaries so a persisted unsupported protocol is migrated or diagnosed before runtime, and ambient flowchart LR
A[Authored OpenClaw config] --> B[Include and environment resolution]
B --> C[Doctor migration ownership check]
C --> D[Validated diagnostics config]
E[OTEL process environment] --> F[Diagnostics OTel plugin]
D --> F
F --> G[Explicit HTTP exporters]
G --> H[OTLP collector]
C --> I[Manual repair guidance]
Decision needed
Why: The implementation follows the repository’s migration doctrine, but the acceptable operator experience for ambiguous configuration ownership is a product and upgrade-policy choice that cannot be inferred from code alone. Before merge
Agent review detailsSecurityNone. PR surfaceSource +157, Tests +588, Docs +14, Generated 0. Total +759 across 26 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Retire gRPC now only with the documented Doctor migration boundary, refreshed exact-head proof for direct, safely included, and ambiguous configurations, and maintainer acceptance that ambiguous include ownership must remain manual rather than being guessed or rewritten. Do we have a high-confidence way to reproduce the issue? Yes: current main’s schema accepts Is this the best way to solve the issue? Unclear: retiring the unsupported value at validation plus Doctor is the clean owner-boundary repair and matches AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 137462ad485b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (31 earlier review cycles; latest 8 shown)
|
|
Added the doctor migration for the shipped @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Pushed a follow-up after the previous commit hook normalized the import group back to the failing order. New head: This commit preserves the browser-boundary import order in the committed tree and remote branch: the fast-mode import is first, matching Local verification on this head: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Pushed a compatibility follow-up for the legacy The migration now disables Local verification on this head: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Republished this branch as a narrow single-commit patch from current Scope is now limited to the diagnostics OTel/config/doctor/docs surface: 14 changed files, down from the previous 124-file branch. The unrelated formatting/import-order refresh churn is no longer in the PR diff. The compatibility repair from the prior head is preserved: doctor removes legacy Local verification on this head: @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Status check on current head Review focus: compatibility behavior for rejecting unsupported |
|
Rebased this onto current Conflict resolution kept the current upstream diagnostics docs/test cleanup and this PRs Local verification on the refreshed head:
GitHub now reports the branch mergeable; hosted checks are running on the new head. |
|
Rebased once more after The upstream delta was outside this PRs diagnostics/config surface, and the PR-visible diff remains the same 14-file diagnostics OTel/config/doctor patch. Repeated local verification on the refreshed head:
|
|
Rebased on current The PR-visible diff is still limited to the same 14 diagnostics OTel/config/doctor/docs files. No behavior change beyond the rebase; the prior hosted Local proof on Review focus remains the compatibility decision: reject unsupported |
|
Refreshed this branch against current Conflict resolution was limited to the config schema/help split:
Focused verification on the refreshed head: Hosted checks are running on the refreshed branch. |
|
Refreshed this branch against current Conflict resolution stayed inside the diagnostics doctor migration surface:
Focused verification on the refreshed head: The PR-visible diff remains limited to the diagnostics OTel/config/doctor/docs surface. |
|
Follow-up for the hosted The failed job reported: I merged current Local verification: The PR-visible diff remains the diagnostics OTel/config/doctor/docs surface plus the generated Plugin SDK API baseline manifest. |
|
Refreshed this branch against current Conflict resolution was limited to the generated Plugin SDK API baseline hash; I regenerated it rather than hand-editing the value. Local verification on the refreshed merge head: GitHub now reports the branch mergeable again; hosted checks are restarting on the new head. |
|
Refreshed this branch against current The merge was clean in the touched PR surface; the PR-visible diff remains the same diagnostics OTel/config/doctor/docs scope. Local verification on the refreshed merge head: Review focus is unchanged: reject the shipped-but-unsupported |
|
Refreshed this branch against current Conflict resolution was limited to the existing diagnostics/config/doctor test surface:
The prior hosted failure in Local verification on The PR-visible diff remains the same 14-file diagnostics OTel/config/doctor/docs scope. Hosted checks are restarted on the new head. |
|
Refreshed this branch onto current Conflict resolution was limited to preserving the existing diagnostics OTel contract on top of the current schema/help split:
Local proof on the refreshed head: GitHub now reports the PR mergeable again; hosted checks have restarted on the refreshed head. |
|
Refreshed this branch onto current This fixes the hosted Local proof on the refreshed head: Hosted checks have restarted on |
|
Current status check on head The branch is one commit behind |
|
Refreshed the real behavior proof in the PR body against exact head Proof command was the same validation + doctor migration snippet already in the PR body. Current output:
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer finalization update for
What is now covered:
Local behavior proof:
Dependency contract checked directly in ClawSweeper rank-up moves addressed: the retirement decision is explicit, the shipped-config upgrade path is implemented, the branch is refreshed onto current Production delta is |
|
CI follow-up: |
|
@clawsweeper rereview |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Thanks @kiranmagic7! |
Summary
Fixes #93069.
This keeps the config contract honest without stranding existing configs:
diagnostics.otel.protocolnow documents and validates the only implemented transport:http/protobuf.diagnostics.otel.protocol: "grpc"are now handled byopenclaw doctor --fixinstead of simply becoming invalid on upgrade.diagnostics.otel.enabledwhile removingprotocol, preserving the old runtime behavior wheregrpcnever exported telemetry.OTEL_EXPORTER_OTLP_PROTOCOL=grpcremains a fail-closed runtime override path, and now has focused regression coverage.Linked context
Closes #93069.
Related review concern: ClawSweeper flagged the first version because it rejected a shipped config value without an upgrade path. This revision adds that doctor migration path and proof.
Real behavior proof (required for external PRs)
diagnostics.otel.protocol: "grpc"configs no longer get stranded by the stricter schema; doctor removes the unsupported protocol and disables enabled telemetry until the operator chooses an OTLP/HTTP collector.f8f71fb9109480c7164b03e37f8b07e4b81f79f2.grpcconfig is rejected by validation before migration, doctor migration removesprotocol, disables enabled telemetry, keeps the endpoint intact, and the migrated config validates successfully.grpcconfigs.Tests and validation
node scripts/run-vitest.mjs src/commands/doctor/shared/legacy-config-migrate.test.ts src/commands/doctor/shared/deprecation-compat.test.ts src/commands/doctor-config-preflight.test.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-flow.test-utils.ts src/config/validation.allowed-values.test.ts src/config/schema.help.quality.test.ts src/config/schema.test.ts extensions/diagnostics-otel/src/service.test.tsgit diff --checkRegression coverage added:
diagnostics.otel.protocol: "grpc"and disables enabled telemetry.grpcconfigs as repairable legacy config.http/protobuf.OTEL_EXPORTER_OTLP_PROTOCOL=grpcbefore exporter startup.Risk checklist
Did user-visible behavior change?
Yes— unsupportedgrpcconfig now fails validation, with doctor repair for existing configs.Did config, environment, or migration behavior change?
Yes— schema narrows tohttp/protobuf, and doctor migrates legacygrpcconfigs.Did security, auth, secrets, network, or tool execution behavior change?
No.Highest-risk area: upgrade behavior for existing
diagnostics.otel.protocol: "grpc"configs. The doctor migration is intentionally conservative: it preserves the old no-export outcome by disabling telemetry when the unsupportedgrpcconfig had been enabled.