Skip to content

fix(qa): restore Buzz canary selection - #124200

Merged
jalehman merged 2 commits into
mainfrom
oc-2f4/repair-buzz-qa-selection
Aug 15, 2026
Merged

jalehman merged 2 commits into
mainfrom
oc-2f4/repair-buzz-qa-selection

Conversation

@jalehman

@jalehman jalehman commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

What

Restore the shared channel canary's catalog eligibility for the Buzz and Microsoft Teams live QA adapters, and protect the exact Buzz release scenario pair at the catalog-selection owner.

Why

Full Release Validation run 31871527419, child 31871544784, job 94981215179 requested channel-canary,channel-mention-gating. The wrapper expanded both IDs correctly, but channel-canary failed catalog partitioning before Buzz execution because its channel allowlist named only qa-channel|telegram. channel-mention-gating then passed, and the complete suite correctly exited 1 for one pass and one failure. The stale catalog contract—not parsing, aggregation, or exit ownership—caused the release failure.

Changes

  • Declare Buzz canary eligibility
  • Declare Microsoft Teams canary eligibility
  • Cover exact Buzz scenario pair
  • Preserve unsupported Discord rejection

Testing

  • Pre-fix owner regression on Blacksmith Testbox tbx_01m030t9bt8n3mnnnzscd9q610:
    • pnpm test extensions/qa-lab/src/live-transports/shared/scenario-selection.test.ts
    • Buzz and Microsoft Teams assertions failed with channel=qa-channel|telegram; 12 sibling assertions passed.
  • Fixed owner regression on fresh Testbox tbx_01m030z58fqh42wd9ptqeahe6a:
    • pnpm test extensions/qa-lab/src/live-transports/shared/scenario-selection.test.ts
    • 14/14 passed.
  • Adjacent caller and workflow coverage on the same Testbox:
    • pnpm test extensions/qa-lab/src/live-transports/shared/scenario-selection.test.ts extensions/buzz/src/qa/cli.test.ts extensions/msteams/src/qa/cli.test.ts test/scripts/package-acceptance-workflow.test.ts
    • 209/209 passed.
  • Catalog contract follow-up on fresh Testbox tbx_01m0336vaxh81kv8smcphnvzeb:
    • pnpm test extensions/qa-lab/src/scenario-catalog-channels.test.ts extensions/qa-lab/src/live-transports/shared/scenario-selection.test.ts
    • 30/30 passed after aligning the second exact allowlist assertion found by PR CI.
  • Changed-path gate on the same Testbox:
    • CI=1 NODE_OPTIONS=--max-old-space-size=4096 OPENCLAW_TEST_PROJECTS_PARALLEL=6 OPENCLAW_VITEST_MAX_WORKERS=1 OPENCLAW_TESTBOX=1 OPENCLAW_TESTBOX_REMOTE_RUN=1 pnpm check:changed
    • Passed guards, formatting, typechecks, lint, and import-cycle checks.
  • Autoreview:
    • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --max-priority P1
    • Clean; no accepted or actionable findings.

Release proof

  • Full Release Validation 31895168506 completed successfully for exact PR head 8436c680b1ca8f0ebe43f89d9dea8b9371b73e29 with rerun_group=qa-live and live_suite_filter=qa-live-buzz.
  • Release Checks child 31895190393 completed successfully through the repository release wrapper.
  • Artifact 9249696902 records requested scenarios channel-canary and channel-mention-gating in order, with 2 total, 2 passed, 0 failed, and 0 skipped.
  • The full evidence file contains two entries. Both identify live Buzz and have result.status=pass.
  • The wrapper kept allow_frozen_target_scenario_omissions=false; no missing scenario or failure was coerced to success.

Scope

Production runtime LOC is unchanged. QA catalog metadata is +2; tests are +20/-3. Result aggregation, assertions, timeouts, and nonzero exit handling are unchanged.

Remaining gaps

  • The first fixed-after Testbox became mixed after a full resync and failed frozen installation on an existing lockfile override mismatch. It was stopped; no dependency or lockfile checks were weakened.
  • Setup-only release-proof dispatches with invalid temporary ref shapes were rejected before Buzz ran. The canonical exact-head run above used the required 12-hex-plus-numeric identity and completed successfully.

Agent Transcript

Redacted codex session transcript
source: [LOCAL_SESSION]
redaction: local paths, emails, phone-shaped strings, token-shaped strings, auth headers, auth query params
omitted: raw tool outputs, system/developer prompts, local paths, secrets, browser/session/auth details
stats: {"agent":"codex","entries":3,"user":1,"assistant":1,"toolCalls":3,"toolOutputsDropped":3,"web":0,"redactions":1,"omittedUnsafe":0,"rawEntries":27}

[user]
[instructions recap omitted; policy/config text, not task dialogue]

[assistant]
I’ll own the repair through a pushed PR. I’m starting with the mandated release/testing/test-audit workflow and a read-only state/artifact inspection; I’ll preserve Pebbles as local-only state and won’t merge.

The named skills are shaping the order here: release-CI/testing first for artifact and wrapper proof, test-audit before adding the regression, then autoreview/prepare-PR/transcript/technical-writing for publication. I’m reading those instructions in full before acting.

The worktree is clean and detached at `c0824d284e95`; I have not changed source. I’m splitting read-only evidence gathering into two lanes required by the repair doctrine: exact failed-run artifacts/log ownership, and sibling multi-scenario caller/history audit. I’ll independently verify consequential evidence before editing.

The failed validation ran target SHA `079bb3419613`; this app worktree was provisioned at `c0824d284e95`, while `origin/main` has advanced to `7ce902c8b600`. Before creating a branch, I’m checking whether that newer main already contains the canonical fix, as required, and downloading only the failed Buzz job’s evidence.

Current `main` is not fixed. The exact artifact records both requested IDs, but `channel-canary` is converted into a partition failure before adapter execution because its catalog allows only `qa-channel|telegram`; `channel-mention-gating` reaches Buzz and passes. The shared suite then correctly sets exit 1 from the failed result. I’m preserving that result gate and repairing the catalog-owned applicability contract, not the exit status.

The investigation is captured at `/tmp/openclaw-buzz-qa-selection-investigation.md`. Per the Pebbles skill and repository workflow, I’m now translating it into an epic plus ordered regression, repair, and validation/publication tasks before any source edit. Pebbles data remains local and will never be staged or synced.

Pebbles is not initialized inside this linked app worktree. I’m checking the repository’s canonical local Pebbles store first; if it exists, I’ll point `PEBBLES_DIR` there so the worktree shares workflow state without creating duplicate tracked-looking data.

The feature branch is now `oc-2f4/repair-buzz-qa-selection` from exact current `origin/main`. The shared Pebbles database was briefly locked by concurrent local activity while adding relationships; no source was touched. I’m verifying the four created records and will apply the relationships one command at a time.

The regression will sit at the catalog-selection owner, not in the workflow parser. It protects the exact Buzz pair and the connected Microsoft Teams default; existing tests already protect Discord rejection, so the allowlist remains selective. This test requires no production seam and will fail on pre-fix `main` for the same mismatch as CI.

The worktree has no local `tsx`/dependency install, so the testing skill routes this focused trusted-source proof to the repository’s remote wrapper. That invokes the Crabbox skill; I’m reading its backend and cleanup rules before provisioning a task-owned box.

Pre-fix proof is exact: Blacksmith Testbox `tbx_01m030t9bt8n3mnnnzscd9q610` ran the new owner-boundary test; Buzz and Microsoft Teams both failed with the same `channel=qa-channel|telegram` mismatch, while the other 12 selection tests passed. I’m now applying the two-line canonical metadata repair.

The metadata repair makes the new Buzz/Microsoft Teams assertions pass. One existing negative test now fails only because it intentionally names the complete allowlist in its error string; Discord is still rejected. I’m updating that contract assertion to the new exact allowlist, then rerunning the same focused file.

The second rerun exposed Testbox state, not a code failure: delegated full sync removed the remote dependency tree, so `tsx` was missing before Vitest started. The testing rules permit one remote `pnpm install` retry. I’m rebuilding dependencies only on this disposable box, then rerunning the same test in that command.

The remote install failed closed because the hydrated Testbox’s package overrides no longer match its lockfile, consistent with its unexpected 1,576-file resync. I will not weaken frozen-lockfile checks. Per the Crabbox rules, I’m stopping this mixed-provenance lease and checking whether `main` advanced before deciding whether to rebase and warm a fresh box.

Fixed-after proof is green on fresh Testbox `tbx_01m030z58fqh42wd9ptqeahe6a`: all 14 owner-selection tests pass, including the exact Buzz pair and Microsoft Teams sibling. Next I’m classifying the diff and running the adjacent CLI/workflow contracts before the live release-wrapper proof.

The adjacent four-shard suite is green: 209 tests across workflow routing, Buzz CLI, Microsoft Teams CLI, and shared catalog selection. The changed gate is still running its all-lanes typecheck/lint tail on the same Testbox; all completed guards and formatting checks are green so far.

The changed gate remains healthy but quiet in the serial core typecheck shards; no failure output has appeared. I’m leaving the task-owned process running as required rather than interrupting a long typecheck.

The all-lanes gate is still inside `run-tsgo-core-test-shards.mjs`; it has been quiet for several minutes but remains attached and has not emitted an error or timeout. I’m continuing to wait within the Testbox job’s bounded execution window.

Typecheck completed and lint is now running; the changed gate has progressed through core, extension, script, and root-test type graphs without errors.

Core lint finished clean (`0 warnings, 0 errors`); extension lint is the remaining long shard before import-cycle checks.

I’m continuing from the completed investigation and fixed-after Testbox proof. I’ll preserve the fail-closed aggregate behavior, finish Pebbles bookkeeping, run the required review/PR workflow, then dispatch the exact Buzz release-wrapper proof against the pushed head. The testing, test-audit, release-CI, autoreview, prepare-PR, transcript, writing, and Pebbles skills govern those remaining steps.

The investigation and implementation tasks are now closed under epic `oc-2f4`; validation/publishing is `oc-2f4.3` and in progress. The branch’s base has fallen behind `origin/main` during validation, so I’m checking whether that advancement intersects this repair before final review and publication.

The final diff is confined to the catalog owner and its regression: QA metadata `+2`, tests `+18/-1`; production runtime code is unchanged. `origin/main` advanced by one unrelated test-fixture commit and does not touch the repair surfaces, so I’m keeping the validated base for the first structured review and will sync once before publication.

The structured review is clean at P1, and the full changed-path Testbox already proved formatting/type/lint. The repository hook cannot run in this node_modules-less worktree (“cannot run oxfmt”), so I’m using the documented worktree exception to commit without the local hook; I’m not installing or reconciling dependencies here.

After syncing onto the latest main commit, the exact branch diff received a second clean P1 autoreview. I’m publishing this single commit now, then I’ll create the PR with sanitized transcript provenance and run the focused release wrapper from the PR head—not a hand-written substitute.

[tool summary]
3 other; raw tool outputs dropped: 3

@clawsweeper

clawsweeper Bot commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 15, 2026
@clawsweeper

clawsweeper Bot commented Aug 15, 2026 •

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

Adds Buzz and Microsoft Teams to the shared live-channel canary catalog and covers their default QA scenario selections.

Regression provenance

Possible regression — probable (reproduction; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking findings on the exact current head. The prior channel-eligibility assertion is now aligned; retain this maintainer-owned PR until its exact-head release-automation gates complete.

Priority: P1
Reviewed head: 8436c680b1ca8f0ebe43f89d9dea8b9371b73e29

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused owner-boundary repair with live release-wrapper evidence and no correctness finding; exact-head required checks remain the material merge gate.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (linked_artifact): The PR body links a successful release-wrapper artifact showing the two requested live Buzz scenarios passed after the catalog repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (linked_artifact): The PR body links a successful release-wrapper artifact showing the two requested live Buzz scenarios passed after the catalog repair.
Evidence reviewed 8 items Catalog owner: The current head declares Buzz and Microsoft Teams as allowed channels for the shared canary, which is the metadata consulted by lane selection.
Failure owner and caller: The selector reads catalog scenarios and validates the requested channel; the Buzz and Teams CLIs supply the affected default scenario sets.
Validation invariant: The lane validator rejects a flow whenever its declared channel list does not contain the effective adapter channel, so catalog metadata is the correct repair layer.
Findings None None.
Security None None.

How this fits together

The QA scenario catalog filters requested live-channel checks by adapter eligibility before the release wrapper runs them. Selected scenarios are then passed to adapter-specific QA commands and aggregated into release validation.

flowchart LR
  A[Release validation request] --> B[QA scenario catalog]
  B --> C[Adapter eligibility filter]
  C --> D[Buzz and Teams QA adapters]
  D --> E[Scenario results]
  E --> F[Release validation outcome]
Loading

Before merge

  • Resolve merge risk (P1) - This metadata controls release QA execution; the supplied check rollup is incomplete and the branch is behind main, so landing should wait for exact-head required checks and mergeability confirmation.
  • Complete next step (P2) - No code repair remains; a maintainer should confirm the exact-head automation gates before landing this protected PR.
Agent review details

Security

None.

PR surface

Tests +17, Other +2. Total +19 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 20 3 +17
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 3 22 3 +19

Review metrics

Metric Value Why it matters
Production versus test delta production runtime +0/-0; QA catalog metadata +2/-0; tests +20/-3 The repair changes only the release-QA eligibility declaration and focused contracts, without growing runtime logic.

Merge-risk options

Maintainer options:

  1. Complete exact-head QA gating (recommended)
    Wait for the current head’s remaining required checks and clean merge result before landing because this catalog decides which release QA scenarios execute.

Technical review

Best possible solution:

Keep adapter eligibility in the shared scenario catalog, with the positive Buzz/Teams and negative Discord selection contracts retained, then merge after exact-head release automation is green.

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

Yes—source-reproducible: the current main selector validates the Buzz and Teams defaults against the canary’s channel list, which lacks those adapters before this PR; the PR body also records the focused pre-fix failure.

Is this the best way to solve the issue?

Yes. Updating the catalog-owned eligibility list is the narrow canonical repair; changing adapter CLIs or the release wrapper would duplicate channel policy outside the validator’s owner.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 96a7b25ca705.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body links a successful release-wrapper artifact showing the two requested live Buzz scenarios passed after the catalog repair.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • remove rating: 🦞 diamond lobster: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.

Label justifications:

  • P1: This repairs a release-validation path that currently rejects intended live-channel QA scenarios before they run.
  • merge-risk: 🚨 automation: The catalog directly determines which adapter scenarios release-validation automation will execute.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (linked_artifact): The PR body links a successful release-wrapper artifact showing the two requested live Buzz scenarios passed after the catalog repair.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body links a successful release-wrapper artifact showing the two requested live Buzz scenarios passed after the catalog repair.

Evidence

What I checked:

Likely related people:

  • Jason (Json): Available shallow blame attributes the catalog-selection boundary and pre-fix channel list to the same current-main history boundary. (role: recent current-main contributor; confidence: low; commits: 40866f333023; files: extensions/qa-lab/src/live-transports/shared/scenario-selection.ts, qa/scenarios/channels/channel-canary.yaml)

Rank-up moves

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

  • Let the exact current-head required check rollup complete before merge.

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 (2 earlier review cycles)
  • reviewed 2026-08-15T16:00:20.369Z sha 71758e6b0740267e55a70503e98968fa4ca87a4b :: needs changes before merge. :: [P1] Update the canonical channel-eligibility assertion
  • reviewed 2026-08-15T16:21:11.693Z sha 8436c68 :: needs maintainer review before merge. :: none

@jalehman
jalehman force-pushed the oc-2f4/repair-buzz-qa-selection branch from 71758e6 to 8436c68 Compare August 15, 2026 16:15
@jalehman

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The current head addresses the prior exact channel-eligibility assertion finding. Please review the exact current head.

@clawsweeper

clawsweeper Bot commented Aug 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 15, 2026
@jalehman
jalehman merged commit cd50767 into main Aug 15, 2026
196 checks passed
@jalehman
jalehman deleted the oc-2f4/repair-buzz-qa-selection branch August 15, 2026 16:27
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 16, 2026
* oc-2f4: fix Buzz QA scenario selection

* oc-2f4: align canary catalog contract
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

extensions: qa-lab maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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.

1 participant