Skip to content

chore(diagnostics-otel): revert unapproved duration-bucket merge - #152292

Merged
bek91 merged 1 commit into
openclaw:mainfrom
bek91:codex/revert-152226
Sep 19, 2026
Merged

bek91 merged 1 commit into
openclaw:mainfrom
bek91:codex/revert-152226

Conversation

@bek91

@bek91 bek91 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Reverts #152226.

What Problem This Solves

The upstream merge exceeded the intended authorization of the fleet-observability task. The task requester explicitly instructed the agent to revert it.

User Impact

Restores the pre-#152226 tool/model histogram behavior. The previous 10-second finite-bucket limit returns intentionally. No plugin release or fleet deployment was performed by this task, and its upstream release request has been withdrawn.

Why This Change Was Made

Exact revert of a21ca3cebb5ff878ec3f62c2cd4f9a84c167a170, preserving all unrelated subsequent changes. This is a scope correction, not a claim that the original technical tests failed. Any future upstream change needs separate explicit approval.

Evidence

  • All three affected paths exactly match the original merge's parent after reversal.
  • Diagnostics suite: 343 tests across 10 files passed.
  • Independent autoreview: no actionable P0-P2 findings; exact revert confirmed.
  • git diff --cached --check passed. Required GitHub CI will gate landing.

AI-assisted; no production runtime changes.

Reverts a21ca3c at the task requester’s explicit direction. The upstream merge exceeded the intended fleet-observability scope.
@clawsweeper

clawsweeper Bot commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the extensions: diagnostics-otel Extension: diagnostics-otel label Sep 19, 2026
@bek91 bek91 self-assigned this Sep 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: S maintainer Maintainer-authored PR labels Sep 19, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 19, 2026
@clawsweeper

clawsweeper Bot commented Sep 19, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 18, 2026, 8:14 PM ET / September 19, 2026, 00:14 UTC.

ClawSweeper review

What this changes

Restores the diagnostics plugin’s default tool/model duration buckets and removes the regression tests for the withdrawn bucket extension.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this is an exact, explicitly requested rollback that current main has not applied. No unintended patch defect was found, and the maintainer label independently prevents automatic closure.

Priority: P2
Reviewed head: 43af808fd7dab21563a5b7972e04e61bf809955d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, verified exact revert with clear intent, reported targeted validation, and an understood telemetry compatibility tradeoff.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied MEMBER classification exempts this scope rollback from external-contributor runtime proof. Exact source reversal and reported diagnostics tests support it; the predecessor’s wire-export evidence proves the extension, not an after-revert run.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied MEMBER classification exempts this scope rollback from external-contributor runtime proof. Exact source reversal and reported diagnostics tests support it; the predecessor’s wire-export evidence proves the extension, not an after-revert run.
Evidence reviewed 8 items Exact reversal verified: Comparing all three affected paths against the original merge’s recorded parent produced an empty diff. The patch restores those paths without incorporating unrelated changes.
Current main still contains the withdrawn extension: Both tool and model duration instruments retain the extended bucket advice on fetched main; the requested rollback remains necessary.
Latest release uses the restored layout: The supplied v2026.9.4 release commit creates both instruments without extended bucket advice. The GitHub contents read supplied release source after the local historical-blob read failed.
Findings None None.
Security None None.

How this fits together

The diagnostics OpenTelemetry plugin converts model and tool events into metrics exported to observability collectors. Its histogram boundaries determine how precisely dashboards can distinguish slow calls.

flowchart LR
  A[Model and tool events] --> B[Diagnostics plugin]
  B --> C[Duration histograms]
  C --> D[Finite buckets through 10 seconds]
  C --> E[Overflow above 10 seconds]
  D --> F[Telemetry collector]
  E --> F
  F --> G[Latency dashboards]
Loading

Before merge

  • Resolve merge risk (P1) - Any deployment that adopted the brief main-only extension will stop exporting its 13 extra finite bucket series per instrument; dashboards using those series or pooling mixed layouts may need adjustment. Adoption outside the originating task is unknown.
Agent review details

Security

None.

PR surface

Source -2, Tests -81. Total -83 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 2 1 3 -2
Tests 1 0 81 -81
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 1 84 -83

Review metrics

Metric Value Why it matters
Histogram layout 2 instruments: 28 → 15 finite boundaries; ceiling 1 hour → 10 seconds This quantifies the intentional observability tradeoff without changing recorded duration counts or sums.

Merge-risk options

Maintainer options:

  1. Accept the explicitly requested rollback (recommended)
    Restore the released layout, accepting the loss of additional bucket series and using common boundaries or separate cohorts wherever the unreleased layout was deployed.

Technical review

Best possible solution:

Restore the release-compatible layout as requested, keeping any future slow-call bucket expansion separately authorized and accounting for mixed-layout dashboards during rollback.

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

Not applicable: this is an intentional scope rollback. Source comparison proves the exact reversal, and SDK source establishes the restored aggregation behavior.

Is this the best way to solve the issue?

Yes. Reversing precisely the withdrawn merge is the narrowest solution to the documented scope correction and matches the latest release’s tool/model histogram declarations.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This bounded scope correction changes operator latency telemetry without changing agent execution or message delivery.
  • add merge-risk: 🚨 compatibility: Deployments using the unreleased extended layout lose additional bucket series, potentially affecting dashboard queries and mixed-version aggregation.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER classification exempts this scope rollback from external-contributor runtime proof. Exact source reversal and reported diagnostics tests support it; the predecessor’s wire-export evidence proves the extension, not an after-revert run.

Label justifications:

  • P2: This bounded scope correction changes operator latency telemetry without changing agent execution or message delivery.
  • merge-risk: 🚨 compatibility: Deployments using the unreleased extended layout lose additional bucket series, potentially affecting dashboard queries and mixed-version aggregation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied MEMBER classification exempts this scope rollback from external-contributor runtime proof. Exact source reversal and reported diagnostics tests support it; the predecessor’s wire-export evidence proves the extension, not an after-revert run.

Evidence

What I checked:

Likely related people:

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

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@bek91

bek91 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

Proceed with the exact rollback explicitly requested by the task requester. This restores the released histogram layout; the temporary main-only extra bucket series are intentionally withdrawn. No plugin was deployed by this task, and the original merge's push-triggered publication run 35407603983 was cancelled with no steps executed in publish_plugins_npm.

Adoption by unrelated main-branch consumers is unknown. Such consumers should use the preserved common boundaries or isolate observation cohorts across the rollback. The fleet dashboard already uses only those common boundaries and will not be changed. This accepts the review's stated rollback compatibility tradeoff, without waiving required CI or authorizing any release/deployment.

@bek91
bek91 merged commit b9cc87e into openclaw:main Sep 19, 2026
102 checks passed
@bek91

bek91 commented Sep 19, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@bek91
bek91 deleted the codex/revert-152226 branch September 19, 2026 00:25
vincentkoc added a commit that referenced this pull request Sep 19, 2026
* commit 'ca69b4d25dfcd488acc6ba1d878e4b4252f40cd2': (325 commits)
  perf(gateway): streamline config reload comparison (#152279)
  fix(xai): reject invalid UTF-8 OAuth responses (#111737)
  fix(release): accept waived advisory performance evidence for stable publication (#152290)
  fix: deliver watcher results while other sessions are busy (#152287)
  perf(media): reuse attachment filename classification (#152274)
  refactor(build): reuse forwarded option scanning (#152293)
  chore(diagnostics-otel): revert unapproved duration-bucket merge (#152292)
  fix: stop chat media reads after access changes (#152219)
  fix(test): use Gateway WebSocket transport in network fixtures (#152143)
  improve: retain quota refresh evidence from successful CI runs (#152173)
  improve(gateway): reduce memory used by session selection (#152260)
  perf(agents): use keyed subagent capability lookups (#152263)
  refactor(matrix): centralize media metadata assembly (#149128)
  chore(ui): refresh control ui locales (#152276)
  feat: open Crabbox apps beside the conversation (#152094)
  refactor: simplify worker and model fallback handling (#152268)
  perf(codex): reconcile session catalogs incrementally (#152257)
  fix(ui): keep submitted prompts visible across session startup (#152241)
  perf(sessions): move automatic maintenance database work to workers (#148630)
  fix: preserve reply metadata through outbound preparation (#152231)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 19, 2026
…nclaw#152292)

Reverts c9caa80 at the task requester’s explicit direction. The upstream merge exceeded the intended fleet-observability scope.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: diagnostics-otel Extension: diagnostics-otel maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant