Skip to content

fix(qa): keep diagnostics package identity current [AI] - #120636

Merged
steipete merged 1 commit into
mainfrom
codex/autoqa-diagnostics-otel-version-fixture-20260808
Aug 8, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/autoqa-diagnostics-otel-version-fixture-20260808

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Closes #120635

What Problem This Solves

Fixes an issue where the managed diagnostics-otel install E2E published the current source tarball as the stale hard-coded version 2026.7.2. The packed package manifest was already 2026.8.1, so the persisted install record correctly disagreed with the fixture registry and both runtime tests failed before reaching telemetry behavior.

Why This Change Was Made

The packed artifact is the authoritative identity. packPlugin() now reads the staged package manifest once and returns its version alongside the tarball. That exact value is threaded through the local registry, requested npm spec, and persisted install-record assertions.

This matches the adjacent diagnostics-prometheus install fixture and removes the duplicate version owner. Production plugin install semantics are unchanged.

User Impact

Plugin version bumps no longer make the managed OpenTelemetry install/runtime proof fail on an artificial registry/package mismatch. The E2E test can reach and verify configuration precedence, sampling, flushing, and preloaded-SDK behavior again.

Evidence

Pre-fix isolated behavior:

  • 1 file failed / 2 tests failed
  • Registry spec and resolvedVersion: 2026.7.2
  • Installed package version: 2026.8.1

Exact candidate:

Additional proof:

  • AutoReview: clean, no accepted/actionable findings
  • Production LOC: +0/-0; tests: +23/-18
  • Public model identifier gate: PASS; no model-bearing code or artifacts changed

AI Assistance

AI-assisted. The failing install record, source package manifest, registry fixture, sibling diagnostics fixture, and final diff were reviewed directly before publication.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 8, 2026
@steipete steipete self-assigned this Aug 8, 2026
@steipete
steipete marked this pull request as ready for review August 8, 2026 16:32
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 12:39 PM ET / 16:39 UTC.

ClawSweeper review

What this changes

This PR updates the diagnostics OpenTelemetry managed-install E2E to derive registry, install, and persisted-record versions from the staged plugin manifest instead of a stale literal.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open. Current main still builds a managed-plugin E2E registry identity that disagrees with the packed OpenTelemetry artifact; this focused test-only PR removes that duplicate version owner. The maintainer label and incomplete exact-head CI require normal maintainer review rather than automated cleanup.

Priority: P2
Reviewed head: 3c40c7b003ea0cbf3740e82d3404e32e5c72ef5d

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A small, source-proven test-fixture repair with focused after-fix Testbox evidence and no actionable correctness or security finding.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-associated PR is outside the external-contributor proof gate; its body nevertheless provides a focused Testbox after-fix E2E result for the two changed scenarios.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-associated PR is outside the external-contributor proof gate; its body nevertheless provides a focused Testbox after-fix E2E result for the two changed scenarios.
Evidence reviewed 6 items Current-main defect: Current main hard-codes 2026.7.2 even though the staged diagnostics OpenTelemetry package manifest is 2026.8.1; that literal drives the fixture registry, requested npm spec, and install-record assertions.
Artifact contract: The package staging wrapper preserves the source package version while adding packaging metadata, so the staged manifest is the authoritative identity for this packed artifact.
Candidate repair: The PR head validates and returns the staged manifest version with the tarball, then uses that single value for registry metadata, install spec, and persisted-record assertions in both scenarios.
Findings None None.
Security None None.

How this fits together

The QA runtime test stages and packs the diagnostics OpenTelemetry plugin, publishes it through a local registry, then installs it through the managed-plugin path. Its assertions verify that the persisted install record and telemetry scenarios refer to the artifact actually packed.

flowchart LR
  A[Plugin source manifest] --> B[Staged package]
  B --> C[Packed tarball and version]
  C --> D[Local fixture registry]
  D --> E[Managed plugin install]
  E --> F[Persisted install record]
  F --> G[Telemetry scenario assertions]
Loading

Before merge

  • Complete next step (P2) - This protected maintainer PR needs normal exact-head CI completion and maintainer review, not a repair-lane handoff.
Agent review details

Security

None.

PR surface

Tests +5. Total +5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 23 18 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 23 18 +5

Review metrics

Metric Value Why it matters
Production vs test LOC production +0/-0; tests +23/-18 The repair removes duplicated fixture identity ownership without changing production plugin-install behavior.

Stored data model

Persistent data-model change detected: serialized state: test/e2e/qa-lab/runtime/diagnostics-otel-install-runtime.e2e.test.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #120635
Summary: This PR is the explicit candidate repair for the canonical stale diagnostics OpenTelemetry fixture-version report.

Members:

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

Merge-risk options

  • The supplied remote snapshot still has exact-head checks in progress and reports the branch behind main; wait for GitHub to refresh mergeability and complete required checks.

Maintainer options:

  1. Decide the mitigation before merge
    Retain the single manifest-derived artifact identity flow and merge it after exact-head CI is green.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Retain the single manifest-derived artifact identity flow and merge it after exact-head CI is green.

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

Yes, from source: current main packages a manifest at 2026.8.1 but advertises and asserts 2026.7.2 through the same local registry/install path; the PR body also supplies an exact Testbox reproduction and after-fix run.

Is this the best way to solve the issue?

Yes. Reading the staged manifest at the packing boundary is the narrowest canonical source of truth and matches the adjacent diagnostics Prometheus fixture.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 13e30a9d55e6.

Labels

Label changes:

  • add P2: This is a bounded QA regression that blocks the managed-install telemetry scenarios from reaching their intended coverage.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-associated PR is outside the external-contributor proof gate; its body nevertheless provides a focused Testbox after-fix E2E result for the two changed scenarios.

Label justifications:

  • P2: This is a bounded QA regression that blocks the managed-install telemetry scenarios from reaching their intended coverage.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🌊 off-meta tidepool and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-associated PR is outside the external-contributor proof gate; its body nevertheless provides a focused Testbox after-fix E2E result for the two changed scenarios.

Evidence

What I checked:

Likely related people:

  • steipete: Blame attributes the original fixture and stale version literal to the main-branch introduction commit; this person also authored the focused repair. (role: fixture introducer and recent area contributor; confidence: high; commits: c98bd2287bbd, 3c40c7b003ea; files: test/e2e/qa-lab/runtime/diagnostics-otel-install-runtime.e2e.test.ts)
  • vincentkoc: Recent diagnostics OpenTelemetry runtime work updated the package area whose version the fixture consumes. (role: adjacent diagnostics package contributor; confidence: medium; commits: b7e17855b9b2; files: extensions/diagnostics-otel/package.json)

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 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof

Exact head: 3c40c7b003ea0cbf3740e82d3404e32e5c72ef5d

The defect was a duplicate fixture-version owner: the test registry advertised a stale literal while serving a tarball built from the current diagnostics-otel manifest. The candidate makes the staged manifest authoritative for the tarball, registry, requested spec, and persisted install-record assertions.

Proof:

No external live boundary applies: this is an isolated test registry/package-identity fixture, and the real managed pack/install/restart/telemetry path is the focused E2E proof above.

@steipete
steipete merged commit a413b16 into main Aug 8, 2026
142 checks passed
@steipete
steipete deleted the codex/autoqa-diagnostics-otel-version-fixture-20260808 branch August 8, 2026 16:44
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
tomorrowflow pushed a commit to tomorrowflow/openclaw that referenced this pull request Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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.

Diagnostics OTEL install E2E advertises a stale package version

1 participant