Skip to content

Reject unsupported diagnostics OTel grpc config - #93087

Merged
bek91 merged 1 commit into
openclaw:mainfrom
kiranmagic7:kiran/otel-reject-unsupported-grpc
Aug 3, 2026
Merged

bek91 merged 1 commit into
openclaw:mainfrom
kiranmagic7:kiran/otel-reject-unsupported-grpc

Conversation

@kiranmagic7

@kiranmagic7 kiranmagic7 commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes #93069.

This keeps the config contract honest without stranding existing configs:

  • diagnostics.otel.protocol now documents and validates the only implemented transport: http/protobuf.
  • Existing shipped configs with diagnostics.otel.protocol: "grpc" are now handled by openclaw doctor --fix instead of simply becoming invalid on upgrade.
  • If the old config also had telemetry enabled, doctor disables diagnostics.otel.enabled while removing protocol, preserving the old runtime behavior where grpc never exported telemetry.
  • OTEL_EXPORTER_OTLP_PROTOCOL=grpc remains a fail-closed runtime override path, and now has focused regression coverage.
  • Real gRPC exporter support is intentionally out of scope here.

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)

  • Behavior or issue addressed: Existing 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.
  • Real environment tested: Local OpenClaw source checkout on macOS, Node v26.5.0, exact branch head f8f71fb9109480c7164b03e37f8b07e4b81f79f2.
  • Exact steps or command run after this patch:
node --import tsx --input-type=module -e '
  const { validateConfigObjectRaw } = await import("./src/config/validation.ts");
  const { migrateLegacyConfig } = await import("./src/commands/doctor/shared/legacy-config-migrate.ts");
  const input = { diagnostics: { otel: { enabled: true, endpoint: "http://otel-collector:4317", protocol: "grpc" } } };
  const before = validateConfigObjectRaw(input);
  const migrated = migrateLegacyConfig(input);
  const after = validateConfigObjectRaw(migrated.config ?? {});
  console.log("before.ok=" + before.ok);
  if (!before.ok) console.log("before.issue=" + before.issues.find((issue) => issue.path === "diagnostics.otel.protocol")?.message);
  console.log("migration.changes=" + JSON.stringify(migrated.changes));
  console.log("after.config=" + JSON.stringify(migrated.config?.diagnostics?.otel));
  console.log("after.ok=" + after.ok);
'
  • Evidence after fix (screenshot, recording, terminal capture, console output, redacted runtime log, linked artifact, or copied live output):
before.ok=false
before.issue=Invalid input: expected "http/protobuf" (allowed: "http/protobuf")
migration.changes=["Removed unsupported diagnostics.otel.protocol \"grpc\"; use \"http/protobuf\" with an OTLP/HTTP collector.","Disabled diagnostics.otel.enabled because legacy grpc configs never exported telemetry; re-enable it after choosing an OTLP/HTTP collector."]
after.config={"enabled":false,"endpoint":"http://otel-collector:4317"}
after.ok=true
  • Observed result after fix: The unsupported grpc config is rejected by validation before migration, doctor migration removes protocol, disables enabled telemetry, keeps the endpoint intact, and the migrated config validates successfully.
  • What was not tested: A live OTLP collector or real telemetry export; real gRPC exporter support is not implemented by this PR.
  • Proof limitations or environment constraints: The direct proof imports the actual config validation and doctor migration modules from the source checkout. The runtime env override path is covered by the focused diagnostics-otel service test below rather than by a live collector run.
  • Before evidence (optional but encouraged): ClawSweeper’s earlier review reproduced the issue by source inspection and flagged the lack of a doctor/migration path for shipped grpc configs.

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.ts
    • Passed: 5 Vitest shards, 343 tests.
  • git diff --check
    • Passed.

Regression coverage added:

  • Doctor migration removes diagnostics.otel.protocol: "grpc" and disables enabled telemetry.
  • Doctor preflight reports shipped grpc configs as repairable legacy config.
  • Doctor config flow applies the repair end to end.
  • Config validation reports the allowed value as http/protobuf.
  • Diagnostics OTel service rejects OTEL_EXPORTER_OTLP_PROTOCOL=grpc before exporter startup.
  • Deprecation compatibility inventory tracks the migration so it is not deleted accidentally.

Risk checklist

Did user-visible behavior change? Yes — unsupported grpc config now fails validation, with doctor repair for existing configs.

Did config, environment, or migration behavior change? Yes — schema narrows to http/protobuf, and doctor migrates legacy grpc configs.

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 unsupported grpc config had been enabled.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 14, 2026
@clawsweeper

clawsweeper Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed August 3, 2026, 2:27 PM ET / 18:27 UTC.

ClawSweeper review

What this changes

The PR limits diagnostics.otel.protocol to HTTP/protobuf, migrates safely attributable legacy gRPC configurations through Doctor, documents manual recovery for ambiguous includes, and prevents ambient OpenTelemetry settings from selecting disabled exporters.

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
Reviewed head: 6516d83a09988e584e44023d3559b9a3524e3027
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is coherent and well-tested, but current-head real-behavior proof and deliberate compatibility approval are still needed before it is merge-ready.
Proof confidence 🦐 gold shrimp (3/6) Needs stronger real behavior proof before merge: The PR includes meaningful terminal proof and a local OTLP receiver smoke, but its exact-head proof is stale after later force-pushes; rerun and post redacted proof for 6516d83a09988e584e44023d3559b9a3524e3027 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 stronger real behavior proof before merge: The PR includes meaningful terminal proof and a local OTLP receiver smoke, but its exact-head proof is stale after later force-pushes; rerun and post redacted proof for 6516d83a09988e584e44023d3559b9a3524e3027 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 Current-main defect remains: Current main still accepts both http/protobuf and grpc in the diagnostics OTel schema, while the proposed branch narrows the same field to the implemented HTTP-only transport.
Runtime owner boundary: The branch constructs explicit trace and metric exporters and passes explicit empty arrays for disabled signal families, rather than leaving exporter selection to ambient OpenTelemetry settings.
Regression coverage follows the changed boundary: The PR-head service tests cover explicit HTTP exporters with ambient gRPC set, unsupported runtime gRPC behavior, stdout-only logs, and explicit NodeSDK signal ownership.
Findings None None.
Security None None.

How this fits together

OpenClaw 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 OTEL_* defaults cannot quietly override OpenClaw-owned exporter choices.

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]
Loading

Decision needed

Question Recommendation
Should OpenClaw retire the previously accepted diagnostics OTel gRPC configuration now, with Doctor automatically repairing only source ownership it can prove and otherwise stopping writes with named manual-edit candidates? Retire gRPC with scoped Doctor repair: Adopt the HTTP-only contract, automatically repair direct and safely owned include sources, and retain explicit manual guidance for ambiguous ownership.

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

  • Add real behavior proof - Needs stronger real behavior proof before merge: The PR includes meaningful terminal proof and a local OTLP receiver smoke, but its exact-head proof is stale after later force-pushes; rerun and post redacted proof for 6516d83a09988e584e44023d3559b9a3524e3027 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) - Merging deliberately invalidates a previously accepted persisted diagnostics.otel.protocol: "grpc" value. Direct configs and one safely owned internal include are repaired, but root/array includes, nested chains, sibling overrides, and external or ambiguous sources require a manual edit before normal validation succeeds.
  • Resolve merge risk (P1) - The current PR body’s terminal proof names head f8f71fb9109480c7164b03e37f8b07e4b81f79f2, while the current reviewed head is 6516d83a09988e584e44023d3559b9a3524e3027 after later force-pushes; the finalization comment has stronger smoke evidence but is also tied to an earlier head. Refresh proof on the exact current head before merge.
  • Resolve merge risk (P1) - The branch’s claim that empty NodeSDK processor/reader arrays suppress environment-derived providers is central to exporter ownership, but this read-only checkout could not independently inspect the installed or upstream SDK source.
  • Complete next step (P2) - The only remaining blockers are current-head real-behavior proof and maintainer acceptance of the intentional persisted-config retirement; there is no narrow mechanical repair to dispatch automatically.
Agent review details

Security

None.

PR surface

Source +157, Tests +588, Docs +14, Generated 0. Total +759 across 26 files.

View PR surface stats
Area Files Added Removed Net
Source 14 182 25 +157
Tests 9 598 10 +588
Docs 2 20 6 +14
Config 0 0 0 0
Generated 1 3 3 0
Other 0 0 0 0
Total 26 803 44 +759

Review metrics

Metric Value Why it matters
Persisted config transition 1 accepted value retired; 1 Doctor migration path added The branch narrows a public persisted configuration contract, making upgrade behavior the central merge question.
Production versus tests production +188/-26; tests +634/-10 The production growth is tied to include-ownership-safe migration and explicit exporter control, so it needs maintainer scrutiny rather than being treated as ordinary test expansion.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/commands/doctor-config-flow.ts, migration/backfill/repair: src/commands/doctor-config-preflight.test.ts, migration/backfill/repair: src/commands/doctor/shared/config-flow-steps.test.ts, migration/backfill/repair: src/commands/doctor/shared/config-flow-steps.ts, migration/backfill/repair: src/commands/doctor/shared/include-migration-ownership.test.ts, migration/backfill/repair: src/commands/doctor/shared/include-migration-ownership.ts, and 17 more. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #93069
Summary: This PR is the active candidate repair for the diagnostics OTel configuration/runtime mismatch reported by the linked issue.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Refresh proof, then accept the migration boundary (recommended)
    Rerun the documented Doctor and local collector proof on the exact current head, then merge if maintainers accept manual remediation for ambiguous include ownership.
  2. Pause for a different upgrade policy
    Do not merge if maintainers expect Doctor to rewrite nested, sibling-overridden, or otherwise ambiguous include graphs automatically.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Require refreshed exact-head terminal proof for direct, single-owned-include, and ambiguous-include Doctor behavior; keep the explicit manual-repair boundary.

Technical review

Best 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 grpc, while the linked issue and PR source establish that the diagnostics runtime is HTTP-only; the PR adds focused validation, Doctor, and service-level regression coverage. This review did not execute the branch because the checkout is read-only.

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 VISION.md, but maintainers must decide whether manual recovery for ambiguous include ownership is the desired upgrade behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 137462ad485b.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 includes meaningful terminal proof and a local OTLP receiver smoke, but its exact-head proof is stale after later force-pushes; rerun and post redacted proof for 6516d83a09988e584e44023d3559b9a3524e3027 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.
  • remove proof: sufficient: Current real behavior proof status is insufficient, not sufficient.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 📣 needs proof.

Label justifications:

  • P2: This addresses a bounded diagnostics configuration foot-gun with real upgrade impact but no demonstrated security bypass, data loss, crash loop, or broad runtime outage.
  • merge-risk: 🚨 compatibility: Existing users with a formerly accepted persisted gRPC setting move to a Doctor repair path or a manual source edit, depending on include ownership.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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 includes meaningful terminal proof and a local OTLP receiver smoke, but its exact-head proof is stale after later force-pushes; rerun and post redacted proof for 6516d83a09988e584e44023d3559b9a3524e3027 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:

  • Current-main defect remains: Current main still accepts both http/protobuf and grpc in the diagnostics OTel schema, while the proposed branch narrows the same field to the implemented HTTP-only transport. (src/config/zod-schema.root-shape.ts:91, 757d22020362)
  • Runtime owner boundary: The branch constructs explicit trace and metric exporters and passes explicit empty arrays for disabled signal families, rather than leaving exporter selection to ambient OpenTelemetry settings. (extensions/diagnostics-otel/src/service.ts:232, 6516d83a0998)
  • Regression coverage follows the changed boundary: The PR-head service tests cover explicit HTTP exporters with ambient gRPC set, unsupported runtime gRPC behavior, stdout-only logs, and explicit NodeSDK signal ownership. (extensions/diagnostics-otel/src/service.test.ts:1240, 6516d83a0998)
  • Upgrade direction matches repository policy: VISION.md requires Doctor migration whenever a config change makes existing user configuration invalid; the branch adds a persisted-config migration rather than a runtime compatibility reader. (VISION.md:36, 05dc73bb35fd)
  • Latest-head provenance: The reviewed PR head is a single commit directly atop current main, so its full 26-file diff is attributable to this proposed change rather than accumulated base drift. (src/config/zod-schema.root-shape.ts:91, 6516d83a0998)
  • Dependency-source inspection gap: The checkout has no installed @opentelemetry/sdk-node source, and its partial-clone remote could not resolve GitHub while attempting history/dependency retrieval; the contributor’s upstream contract citation therefore could not be independently verified in this read-only run.

Likely related people:

  • Peter Steinberger: Current-main history shows recent diagnostics OTel maintenance, including the TLS fail-closed change immediately preceding the reviewed branch base. (role: recent area contributor; confidence: medium; commits: 35c9c76b8c76, 757d22020362; files: extensions/diagnostics-otel/src/service.ts, src/config/zod-schema.root-shape.ts)
  • bek91: The supplied PR timeline assigns this person and records the finalization note that defines the intended migration, include-ownership, and exporter-ownership behavior. (role: recent reviewer and assigned follow-up owner; confidence: medium; files: src/commands/doctor/shared/legacy-config-migrations.runtime.diagnostics.ts, src/commands/doctor/shared/include-migration-ownership.ts)

Rank-up moves

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

  • Post redacted direct-config, single-owned-include, and ambiguous-include Doctor proof from the exact current head.
  • Include a current-head local OTLP receiver or equivalent runtime transcript demonstrating that explicit exporter ownership is retained with ambient gRPC settings.
  • Obtain maintainer confirmation that the scoped manual-repair boundary for ambiguous includes is the intended upgrade policy.

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.

History

Review history (31 earlier review cycles; latest 8 shown)
  • reviewed 2026-07-29T12:57:47.963Z sha ac0625ae1a797ba880d5eb466d5d2ad967d1b12a :: needs maintainer review before merge. :: none
  • reviewed 2026-07-30T15:18:01.158Z sha f8f71fb9109480c7164b03e37f8b07e4b81f79f2 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T09:23:53.215Z sha f8f71fb9109480c7164b03e37f8b07e4b81f79f2 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-02T15:43:12.495Z sha f8f71fb9109480c7164b03e37f8b07e4b81f79f2 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T07:17:39.061Z sha 4ef4393d0c38f3a3e90078591f1385933fc7e652 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T07:35:12.939Z sha a93c6adfd3a1a134d43ba7eb46143739ef305a46 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T15:14:39.566Z sha f9e3a5e37c47b9ab324c177dddda57083380bdff :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T15:44:52.211Z sha f9e3a5e37c47b9ab324c177dddda57083380bdff :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Jun 14, 2026
@openclaw-barnacle openclaw-barnacle Bot added extensions: diagnostics-otel Extension: diagnostics-otel commands Command implementations size: M proof: supplied External PR includes structured after-fix real behavior proof. and removed size: XS triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. labels Jun 15, 2026
@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Added the doctor migration for the shipped diagnostics.otel.protocol: "grpc" path and updated the PR body with the terminal proof for validation plus migration behavior.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 15, 2026
@kiranmagic7
kiranmagic7 requested a review from a team as a code owner June 17, 2026 15:10
@openclaw-barnacle openclaw-barnacle Bot added channel: discord Channel integration: discord channel: msteams Channel integration: msteams app: web-ui App: web-ui scripts Repository scripts labels Jun 17, 2026
@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Pushed a follow-up after the previous commit hook normalized the import group back to the failing order. New head: baa1fd8e665f3e076520224dcf0df37305f07a62.

This commit preserves the browser-boundary import order in the committed tree and remote branch: the fast-mode import is first, matching slash-commands.browser-import.test.ts.

Local verification on this head:

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-ui.config.ts ui/src/ui/chat/slash-commands.browser-import.test.ts
PASS: 1 file, 2 tests

git diff --check HEAD~1..HEAD
PASS

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Pushed a compatibility follow-up for the legacy diagnostics.otel.protocol: "grpc" doctor repair. New head: 78e9ee7c57.

The migration now disables diagnostics.otel.enabled only when the legacy config had active OTLP signals. Stdout-only logs remain enabled after removing protocol: "grpc" when traces and metrics are explicitly disabled and logsExporter is "stdout".

Local verification on this head:

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 1 file, 118 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 2 files, 48 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 1 file, 96 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.runtime-config.config.ts src/config/schema.help.quality.test.ts src/config/validation.allowed-values.test.ts
PASS: 2 files, 36 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-ui.config.ts ui/src/ui/chat/slash-commands.browser-import.test.ts
PASS: 1 file, 2 tests

git diff --check HEAD~1..HEAD
PASS

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Republished this branch as a narrow single-commit patch from current main. New head: 4112a1581f.

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 protocol: "grpc", disables enabled configs only when active OTLP signals would fail, and keeps stdout-only logs enabled when traces/metrics are disabled and logsExporter is "stdout".

Local verification on this head:

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 1 file, 118 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 2 files, 48 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 1 file, 96 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.runtime-config.config.ts src/config/schema.help.quality.test.ts src/config/validation.allowed-values.test.ts
PASS: 2 files, 36 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-ui.config.ts ui/src/ui/chat/slash-commands.browser-import.test.ts
PASS: 1 file, 2 tests

git diff --check HEAD~1..HEAD
PASS

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jun 25, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Status check on current head 4112a1581fd75843dd7a7e7c888d700a6d0cc9fa: REST reports mergeable/clean. The check rollup shows 72 successes, 56 skipped, 16 cancelled proof/auto-response reruns, 1 neutral, and no failure or pending states. Labels remain proof: sufficient and status: ready for maintainer look.

Review focus: compatibility behavior for rejecting unsupported diagnostics.otel.protocol: "grpc" while preserving stdout-only logs when traces and metrics are disabled.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Rebased this onto current main (d69c5ba116) to clear the conflict/behind state. New head: 9ac41fdfd371ae27c2ba7cf91880b9223b3222c2.

Conflict resolution kept the current upstream diagnostics docs/test cleanup and this PRs grpc validation plus doctor migration behavior.

Local verification on the refreshed head:

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts - 105 passed
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts - 48 passed
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts - 127 passed
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.runtime-config.config.ts src/config/schema.help.quality.test.ts src/config/validation.allowed-values.test.ts - 39 passed
  • git diff --check upstream/main...HEAD - clean

GitHub now reports the branch mergeable; hosted checks are running on the new head.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Rebased once more after main moved to 6ed2aafe3. New head: 08a23adc2de3282561b867b4f10b2cd1d7499dfe.

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:

  • node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts - 105 passed
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts - 48 passed
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts - 127 passed
  • node scripts/run-vitest.mjs run --config test/vitest/vitest.runtime-config.config.ts src/config/schema.help.quality.test.ts src/config/validation.allowed-values.test.ts - 39 passed
  • git diff --check upstream/main...HEAD - clean

@kiranmagic7

kiranmagic7 commented Jul 7, 2026 •

Copy link
Copy Markdown
Contributor Author

Rebased on current main (b2e42e3645) and refreshed the branch. New head: d1ab2767d9763789e6b0826a768343628fbe0030.

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 check-lint failure was in upstream UI test files outside this PR diff and is clear locally after rebasing.

Local proof on d1ab2767d9:

node scripts/run-vitest.mjs run --config test/vitest/vitest.runtime-config.config.ts src/config/validation.allowed-values.test.ts
PASS: 1 file, 12 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts -t 'diagnostics OTel grpc|stdout-only diagnostics OTel|disabled diagnostics OTel'
PASS: 1 file, 3 tests, 41 skipped

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts diagnostics-otel/src/service.test.ts
PASS: 1 file, 108 tests

pnpm lint
PASS

git diff --check origin/main...HEAD
PASS

Review focus remains the compatibility decision: reject unsupported diagnostics.otel.protocol: "grpc" while using doctor repair to preserve stdout-only logging when traces and metrics are disabled.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch against current main to clear the conflict. New head: 55bcb9e9bd8ce00811061f3fbe4c55c87791e13a.

Conflict resolution was limited to the config schema/help split:

  • kept upstream’s new split schema.help* / zod-schema.root-shape.ts structure
  • carried forward the PR behavior that diagnostics.otel.protocol accepts only http/protobuf
  • kept the doctor migration path for legacy grpc configs

Focused verification on the refreshed head:

pnpm install --frozen-lockfile
PASS

node scripts/run-vitest.mjs run src/config/validation.allowed-values.test.ts src/config/schema.help.quality.test.ts
PASS: 2 Vitest shards, 34 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 2 files, 51 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 1 file, 154 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts diagnostics-otel/src/service.test.ts
PASS: 1 file, 109 tests

git diff --check origin/main...HEAD
PASS

Hosted checks are running on the refreshed branch.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch against current main to clear the conflict. New head: 38f7175ed5b008e84d2e10b63cba7c08d90c6222.

Conflict resolution stayed inside the diagnostics doctor migration surface:

  • kept upstream’s retired tuning-knob purge for diagnostics.memoryPressureBundle
  • kept this PR’s value-aware diagnostics.otel.protocol: "grpc" doctor migration
  • resolved the diagnostics OTel test merge by removing the duplicate ORIGINAL_OTEL_EXPORTER_OTLP_PROTOCOL declaration

Focused verification on the refreshed head:

pnpm install --frozen-lockfile
PASS

node scripts/run-vitest.mjs run src/config/validation.allowed-values.test.ts src/config/schema.help.quality.test.ts
PASS: 2 Vitest shards, 33 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 2 files, 52 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 1 file, 150 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 1 file, 111 tests

git diff --check
PASS

The PR-visible diff remains limited to the diagnostics OTel/config/doctor/docs surface.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Follow-up for the hosted check-plugin-sdk-api-baseline failure on the refreshed branch. New head: 653cae023a279ca45ed4e958d8beb13d1808c656.

The failed job reported:

Plugin SDK API contract drift detected.
Manifest mismatch: docs/.generated/plugin-sdk-api-baseline.sha256

I merged current main again, regenerated the baseline manifest, and pushed the one-line manifest update.

Local verification:

pnpm plugin-sdk:api:gen
PASS: wrote docs/.generated/plugin-sdk-api-baseline.sha256

pnpm plugin-sdk:api:check
PASS: OK docs/.generated/plugin-sdk-api-baseline.sha256

git diff --check
PASS

The PR-visible diff remains the diagnostics OTel/config/doctor/docs surface plus the generated Plugin SDK API baseline manifest.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch against current main to clear the merge conflict. New head: a399eb61ee60bdacfc58cfc89b1e2622f6a8fda6.

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:

pnpm plugin-sdk:api:check
PASS: OK docs/.generated/plugin-sdk-api-baseline.sha256

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 150 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 111 tests

node scripts/run-vitest.mjs run src/config/validation.allowed-values.test.ts src/config/schema.help.quality.test.ts
PASS: 2 shards, 33 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 55 tests

git diff --check
PASS

GitHub now reports the branch mergeable again; hosted checks are restarting on the new head.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch against current main to clear the behind state. New head is cea6ad77b315216cfac730b124d39d659f623b8d.

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:

pnpm install --frozen-lockfile
PASS

pnpm plugin-sdk:api:check
PASS: OK docs/.generated/plugin-sdk-api-baseline.sha256

node scripts/run-vitest.mjs run src/config/validation.allowed-values.test.ts src/config/schema.help.quality.test.ts
PASS: 2 shards, 33 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 2 files, 57 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 1 file, 150 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 1 file, 111 tests

git diff --check origin/main...HEAD
PASS

Review focus is unchanged: reject the shipped-but-unsupported diagnostics.otel.protocol: "grpc" value at config/doctor boundaries and migrate legacy configs without silently preserving that unsupported setting.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch against current main to clear the dirty merge state. New head: 34bbe80bbc0fda1c27d7454653307c405be25449.

Conflict resolution was limited to the existing diagnostics/config/doctor test surface:

  • kept the PR behavior that diagnostics.otel.protocol only accepts http/protobuf
  • kept the grpc doctor migration coverage
  • kept upstream's newer retired-commitments repair expectation

The prior hosted failure in checks-node-compact-large-1 was the /readyz timing assertion in src/gateway/server-startup-model-runtime.event-loop.test.ts (443.522ms vs <400ms), outside this PR's diagnostics/config diff. The exact test passes locally on the refreshed merge state.

Local verification on 34bbe80b:

pnpm install --frozen-lockfile
PASS

pnpm plugin-sdk:api:check
PASS: OK docs/.generated/plugin-sdk-api-baseline.sha256

node scripts/run-vitest.mjs run src/config/validation.allowed-values.test.ts src/config/schema.help.quality.test.ts
PASS: 2 shards, 36 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 57 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 162 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 112 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway-server.config.ts src/gateway/server-startup-model-runtime.event-loop.test.ts
PASS: 1 test

git diff --check upstream/main...HEAD
PASS

The PR-visible diff remains the same 14-file diagnostics OTel/config/doctor/docs scope. Hosted checks are restarted on the new head.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch onto current main and cleared the dirty merge state. New head: d9ae32a5e2248c80cf8c32b5ad12a4df58c4c0fe.

Conflict resolution was limited to preserving the existing diagnostics OTel contract on top of the current schema/help split:

  • persisted config now accepts only diagnostics.otel.protocol: "http/protobuf";
  • legacy literal "grpc" configs are removed by the doctor migration;
  • enabled OTLP signal configs are disabled during repair, while stdout-only logs remain enabled;
  • runtime/env override tests still cover unsupported OTEL_EXPORTER_OTLP_PROTOCOL=grpc behavior.

Local proof on the refreshed head:

pnpm install --frozen-lockfile
PASS

node scripts/run-vitest.mjs run --config test/vitest/vitest.runtime-config.config.ts src/config/schema.help.quality.test.ts src/config/validation.allowed-values.test.ts
PASS: 2 files, 36 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.commands.config.ts src/commands/doctor-config-flow.test.ts src/commands/doctor-config-preflight.test.ts
PASS: 2 files, 53 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.unit-fast.config.ts src/commands/doctor/shared/legacy-config-migrate.test.ts
PASS: 1 file, 162 tests

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 1 file, 112 tests

git diff --check
PASS

GitHub now reports the PR mergeable again; hosted checks have restarted on the refreshed head.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed this branch onto current main and pushed head ac0625ae1a797ba880d5eb466d5d2ad967d1b12a.

This fixes the hosted check-test-types failure from the prior head. The failing diagnostics OTel test was already runtime-filtering telemetry.exporter events before pushing them into the local collection, but the collection type remained the full diagnostic-event union, so TypeScript could still see diagnostic.async_queue.dropped when reading signal, status, and reason. The test now types that collection as the telemetry-exporter event shape; product behavior is unchanged.

Local proof on the refreshed head:

pnpm install --frozen-lockfile
PASS

pnpm check:test-types
PASS

pnpm tsgo:scripts
PASS

node scripts/run-vitest.mjs run --config test/vitest/vitest.extension-misc.config.ts extensions/diagnostics-otel/src/service.test.ts
PASS: 112 tests

git diff --check upstream/main...HEAD
PASS

Hosted checks have restarted on ac0625ae1a.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Current status check on head ac0625ae1a797ba880d5eb466d5d2ad967d1b12a: GitHub still reports the branch mergeable, and the hosted rollup has no failures (84 successful, 33 skipped, 1 neutral CodeQL). There are no unresolved review threads on the PR.

The branch is one commit behind main; I can refresh it if maintainers want a current-main rerun. Review focus remains the compatibility/product decision: rejecting unsupported diagnostics OTel grpc config instead of silently accepting a value the runtime does not implement.

@kiranmagic7

Copy link
Copy Markdown
Contributor Author

Refreshed the real behavior proof in the PR body against exact head f8f71fb9109480c7164b03e37f8b07e4b81f79f2.

Proof command was the same validation + doctor migration snippet already in the PR body. Current output:

before.ok=false
before.issue=Invalid input: expected "http/protobuf" (allowed: "http/protobuf")
migration.changes=["Removed unsupported diagnostics.otel.protocol \"grpc\"; use \"http/protobuf\" with an OTLP/HTTP collector.","Disabled diagnostics.otel.enabled because legacy grpc configs with OTLP signals cannot export telemetry; re-enable it after choosing an OTLP/HTTP collector."]
after.config={"enabled":false,"endpoint":"http://otel-collector:4317"}
after.ok=true

git diff --check also passed.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@bek91

bek91 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Maintainer finalization update for 4ef4393d0c38f3a3e90078591f1385933fc7e652 (rebased onto 37c4a55ce22df02814ad82cd1c8e5c3844ba42a6).

Maintainer decision: retire diagnostics.otel.protocol: "grpc". The value was accepted by configuration but never implemented by the diagnostics plugin. Doctor will migrate persisted configurations, while unsupported process-environment overrides remain fail-closed at runtime.

What is now covered:

  • The config type, schema, help, examples, and docs accept only http/protobuf.
  • Doctor detects literal and ${VAR}-interpolated persisted grpc values.
  • Direct configs and a sole internal single-file include owning the top-level diagnostics section are migrated automatically.
  • Root/array includes, nested include chains, sibling overrides, and external/ambiguous include ownership are never rewritten. Doctor blocks all config writes for that run and reports the candidate source files for manual repair.
  • Migration removes the retired protocol and disables telemetry only when the resolved legacy config would attempt an OTLP signal. Stdout-only logging and configs with no active signals remain enabled.
  • OTEL_EXPORTER_OTLP_PROTOCOL=grpc remains a runtime-only fail-closed path when an OTLP signal is active; Doctor does not claim to rewrite process environment.
  • NodeSDK now receives explicit exporter ownership for traces, metrics, and logs, preventing ambient OTEL_* settings from silently re-enabling disabled signals or selecting a gRPC exporter behind OpenClaw's HTTP-only configuration.

Local behavior proof:

  • Focused suite: 6 Vitest shards, 441 tests passed.
  • Real local OTLP receiver smoke: spans=5 metrics=6 logs=1 stdoutLogs=0 traces=1 metricRequests=1 logRequests=1.
  • Real local openclaw doctor --fix:
    • direct/interpolated config repaired successfully while preserving unrelated authored interpolation;
    • a sole internal include was repaired in the included file while the root $include remained intact;
    • an ambiguous include array reported its candidate files and left the root and every include byte-for-byte unchanged;
    • a settled follow-up run was a whole-config no-op.
  • Config documentation baseline passed; targeted formatting, Oxlint, production typechecking, extension typechecking, and git diff --check passed.
  • Structured autoreview on the final rebased branch: clean, no accepted/actionable findings (patch is correct, confidence 0.98).

Dependency contract checked directly in @opentelemetry/sdk-node 0.221.0 / upstream v2.10.0: explicit empty processor/reader arrays suppress environment-derived providers, while omitted options fall back to environment exporter selection. Relevant upstream source: constructor configuration and environment logger fallback.

ClawSweeper rank-up moves addressed: the retirement decision is explicit, the shipped-config upgrade path is implemented, the branch is refreshed onto current main at the stated base, documentation mismatches are corrected, and local CI-equivalent focused proof was rerun. Real gRPC exporter support is intentionally not part of this PR.

Production delta is +188/-26 (+162 net), with tests counted separately (+634/-10). The positive production delta is the authored/resolved migration context, include ownership/provenance and fail-closed write gate, plus explicit SDK exporter ownership across all three signal families.

@bek91

bek91 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

CI follow-up: check-dependencies correctly identified one unnecessary exported type in include-migration-ownership.ts. The type is private to the classifier, so I removed only the export modifier. The exact failing local gate (pnpm deadcode:dependencies) now passes, along with the two focused Doctor ownership/config-flow test files (25 tests), Oxlint, and git diff --check. Structured autoreview was rerun and is clean with no actionable findings. Updated PR head: a93c6adfd3a1a134d43ba7eb46143739ef305a46.

@bek91

bek91 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

@clawsweeper rereview

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@bek91

bek91 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Thanks @kiranmagic7!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper-recovery-stuck commands Command implementations docs Improvements or additions to documentation extensions: diagnostics-otel Extension: diagnostics-otel gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. proof: supplied External PR includes structured after-fix real behavior proof. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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.

Align diagnostics.otel.protocol grpc config with runtime support

2 participants