Skip to content

feat(release): publish @openclaw/diagnostics-prometheus as a fork release asset (ENG-15788) - #94

Merged
convyusboy merged 2 commits into
boonfrom
ridho/diagnostics-prometheus-release-asset
Jul 31, 2026
Merged

convyusboy merged 2 commits into
boonfrom
ridho/diagnostics-prometheus-release-asset

Conversation

@convyusboy

@convyusboy convyusboy commented Jul 31, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

The @openclaw/diagnostics-prometheus plugin serves the runtime-metrics exporter the fleet's Alloy scrape targets (GET /api/diagnostics/prometheus, job boon-agent-openclaw, ENG-15788). But its dist is excluded from the published gateway package (package.json: !dist/extensions/diagnostics-prometheus/**), and — unlike @openclaw/slack / @openclaw/msteams — the fork has never published a release tarball for it. So a fleet host has no way to install/run it, and gandalf-manager's merged Alloy scrape (openclaw#454) has nothing to read.

Why This Change Was Made

Make the fork publish @openclaw/diagnostics-prometheus as a sibling release asset on the same v*-boon.N tag, exactly like slack/msteams — so gandalf can install it via openclaw plugins install npm-pack:<url> and pin its URL+sha in inventory.yaml.

  • Version-pin extensions/diagnostics-prometheus/package.json + npm-shrinkwrap.json to 2026.6.11-boon.12, in lockstep with the gateway (the pack step asserts TAG == v<version>, same contract as slack/msteams).
  • Add a pack step to .github/workflows/boon-release.yml mirroring the slack/msteams steps (plugin-npm-runtime-build.mjs + plugin-npm-package-manifest.mjs --run overlay pack), and wire the asset + its .sha256 into the Publish step (both create and upload --clobber arms).

User Impact

None user-facing. Operator/observability only: unblocks the ENG-15788 metric flow (openclaw_model_failover_total → Grafana Cloud) once gandalf installs the plugin from this asset and the Alloy scrape (already merged) picks it up. Then the ENG-15788 Step-3 FleetFallbackChainExhausted alert and the ENG-14852 AC#4 edge-429 alert become buildable.

Evidence

  • actionlint clean on boon-release.yml; YAML parses.
  • Plugin structure matches slack/msteams (openclaw.extensions, openclaw.build, @openclaw/plugin-sdk workspace devDep) — actually simpler (no runtime deps, no channel config), so the same overlay pack machinery applies.
  • Verified: this plugin does not use openKeyedStore (no trust-gate), so a bare install wouldn't crash-loop — but the npm-pack: trusted path is used for install-shape consistency across the fork's plugins.
  • Pack itself is exercised by the release CI on a full checkout (this worktree has no node_modules to pack locally); the step is a faithful copy of the proven slack/msteams steps.

Delivery note

Because the plugin is now pinned to 2026.6.11-boon.12 (the current released tag), re-running boon-release.yml on v2026.6.11-boon.12 will publish this asset onto the existing boon.12 release (the TAG == v<version> guard passes) — no new train required. The version must advance in lockstep on every future release, same as slack/msteams.


Summary by cubic

Publishes @openclaw/diagnostics-prometheus as a fork release asset so fleet hosts can install it via npm-pack:<url> and Alloy can scrape client-side failover metrics. Connects to ENG-15788 by unblocking the scrape on job boon-agent-openclaw.

  • New Features
    • Release workflow now packs and uploads openclaw-diagnostics-prometheus-<version>.tgz (+ .sha256) on the same v*-boon.N tag, mirroring @openclaw/slack and @openclaw/msteams, and verifies tag = package version.
    • Pins extensions/diagnostics-prometheus to 2026.6.11-boon.12 in lockstep; bumps gateway, @openclaw/slack, and @openclaw/msteams to 2026.6.11-boon.12; updates CHANGELOG.

Written for commit d368a0e. Summary will update on new commits.

Review in cubic

Version-bump release carrying the 3 commits merged onto boon since boon.11:

- #86: edge/WAF HTML 429 now classifies as transient timeout (not model
  rate_limit), so a Cloudflare-relayed 429 no longer surfaces a false
  'all models rate-limited'; the client-side ride-out retry still absorbs it.
- #88: DEBUG-level trace of the Slack thread-resolution decision on the agent
  message-send tool path (sendMessage/uploadFile); observability only, no
  behavior change, message content never logged.
- #89: sentry-monitor classifies gateway-relayed upstream (Bedrock) 5xx vs
  gateway-origin 5xx via classify5xxSource(), tagging error_class + http_status
  on the model_call_ended capture so the Rohan alert can split/rate-gate them.

Bumps the gateway + @openclaw/slack + @openclaw/msteams to 2026.6.11-boon.12 in
lockstep (7 files: 3 package.json, 3 npm-shrinkwrap.json, CHANGELOG.md). Tagging
v2026.6.11-boon.12 after merge triggers boon-release.yml to publish the 6 assets.
…ease asset (ENG-15788)

The diagnostics-prometheus plugin's dist is excluded from the published gateway
package (`!dist/extensions/diagnostics-prometheus/**`), so a fleet host has no
way to run the Prometheus exporter unless the plugin is installed separately —
and gandalf-manager's Alloy scrape (job boon-agent-openclaw, ENG-15788 step 2)
has nothing to read until it is. There was no release tarball for it.

- Pin extensions/diagnostics-prometheus/package.json + npm-shrinkwrap.json to
  2026.6.11-boon.12 in lockstep with the gateway (same contract as slack/msteams
  — the pack step asserts TAG == v<version>).
- Add a 'Pack diagnostics-prometheus plugin tarball + compute sha256' step to
  boon-release.yml mirroring the slack/msteams steps (runtime-build + manifest
  overlay pack), and wire the new asset + its .sha256 into the Publish step (both
  create and upload --clobber arms) so it ships on the same v*-boon.N tag.

Asset contract:
  openclaw-diagnostics-prometheus-<version>.tgz + .tgz.sha256

Unlike slack/msteams this plugin does NOT use openKeyedStore (no trust-gate), so
a bare install wouldn't crash-loop — but the npm-pack: trusted path is used for
install-shape consistency across the fork's plugins. Version must advance in
lockstep on every future release, same as slack/msteams. actionlint clean; YAML
valid. Pack machinery validated by CI on the release run (no node_modules in this
worktree to pack locally).
@github-actions

Copy link
Copy Markdown

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • extensions/diagnostics-prometheus/npm-shrinkwrap.json
  • extensions/diagnostics-prometheus/package.json
  • extensions/msteams/npm-shrinkwrap.json
  • extensions/slack/npm-shrinkwrap.json
  • npm-shrinkwrap.json

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfile, shrinkwrap, or workspace dependency policy changes are present.
  • Treat package-lock.json and npm-shrinkwrap.json diffs as security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

Copy link
Copy Markdown

Dependency graph changes noted

This PR includes dependency graph changes. The dependency guard is informational because the PR author is a repository admin or a member of @openclaw/openclaw-secops.

  • Current SHA: d368a0e0d70693aada8304518f6f188eb32689d2
  • Trusted actor: @convyusboy
  • Trusted role: pull request author; repository admin

Security review is still recommended before merge when the dependency graph change is intentional.

@claude

claude Bot commented Jul 31, 2026

Copy link
Copy Markdown

Claude Code is working…

I'll analyze this and get back to you.

View job run

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 10 files

Re-trigger cubic

@convyusboy
convyusboy merged commit d105c19 into boon Jul 31, 2026
130 of 131 checks passed
@convyusboy
convyusboy deleted the ridho/diagnostics-prometheus-release-asset branch July 31, 2026 11:24
convyusboy added a commit that referenced this pull request Aug 3, 2026
Version-bump release carrying the 5 commits merged onto boon since boon.12:
#90 (ENG-16868), #92 (ENG-16854), #93, #94 (ENG-15788), #95 (ENG-17134).

Bumps gateway + slack + msteams + diagnostics-prometheus to
2026.6.11-boon.13 in lockstep (9 files). CI: 108 pass / 0 fail / 7 skip.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant