Skip to content

fix(qa): reset Matrix streaming state between scenarios - #116454

Merged
RomneyDa merged 1 commit into
mainfrom
fix/qa-matrix-scenario-state
Jul 31, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
fix/qa-matrix-scenario-state

Conversation

@RomneyDa

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a problem where a Matrix streaming scenario could leave preview and block-streaming settings active for later shared-suite scenarios. Those later scenarios delivered the expected reply but the verifier waited for a non-streaming event until timeout. It also prevents an intentionally short scenario timeout from prematurely failing the live Matrix canary.

Why This Change Was Made

The Matrix QA config builder now writes every canonical streaming slot on every scenario boundary, including explicit off/default values, so recursive config patches cannot retain prior state. Canary preparation uses a separate bounded 60-second live-round-trip budget while the scenario keeps its own timeout.

User Impact

No product behavior changes. Full QA release profiles can run Matrix streaming and ordinary Matrix scenarios in the same shared worker without false timeouts.

Evidence

  • Run 30537257802 delivered the exact expected markers for matrix-thread-root-preservation, matrix-secondary-room-open-trigger, and matrix-unsupported-media-safe as replacement events after streaming state leaked.
  • The isolated matrix-reaction-not-a-reply canary started its provider request only after the scenario 8-second preparation budget had expired.
  • 38 focused Matrix QA tests pass across scenario environment, config, flow catalog, shared runtime, and event normalization.
  • Targeted oxlint passes.
  • Autoreview clean after one rejected generic-helper design was removed.

@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Jul 30, 2026
@clawsweeper

clawsweeper Bot commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 30, 2026, 12:04 PM ET / 16:04 UTC.

ClawSweeper review

What this changes

The PR writes a complete Matrix streaming configuration at each shared QA-scenario boundary and uses a separate 60-second timeout for one live Matrix canary preparation.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for normal maintainer review. It is a focused QA reliability repair, the author is a repository member, and the maintainer label requires explicit maintainer handling; the patch has no concrete correctness or security defect in the reviewed diff. Likely related people: RomneyDa is the current Matrix QA contributor (low-confidence routing signal).

Priority: P2
Reviewed head: 75f8cb5c05178a8c15b45e42ae075363f6bbe8c2

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with source-aligned regression coverage and reported live QA evidence; remaining CI is the material merge check.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This member-authored PR includes a concrete live QA-run summary and focused validation claims; external-contributor real-behavior proof gating does not apply.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored PR includes a concrete live QA-run summary and focused validation claims; external-contributor real-behavior proof gating does not apply.
Evidence reviewed 4 items Changed configuration boundary: The PR replaces conditional streaming-slot emission with a complete nested streaming object, including explicit default/off values, so recursive config patches cannot retain a prior scenario's streaming fields.
Regression coverage: Focused config tests now assert the complete streaming shape for baseline, reset, enabled, and preview opt-out cases, covering the prior partial-object merge condition.
Canary timeout separation: The scenario environment keeps the scenario timeout intact while passing the live canary a bounded timeout of at least 60 seconds; its focused test asserts the canary receives 60,000 ms for an 8-second scenario.
Findings None None.
Security None None.

How this fits together

Matrix QA scenarios reuse a worker and apply account configuration through recursive patches. Scenario overrides feed the Matrix account config and canary setup, which then drive the live transport verifier and its expected reply events.

flowchart LR
  A[Matrix scenario catalog] --> B[Scenario environment]
  B --> C[Streaming settings snapshot]
  C --> D[Recursive account config patch]
  B --> E[Live canary preparation]
  D --> F[Shared Matrix QA worker]
  E --> F
  F --> G[Scenario reply verifier]
Loading

Before merge

  • Resolve merge risk (P1) - The patch intentionally changes every Matrix QA scenario's written streaming fields; final review should retain the focused test and CI confirmation because this shared-worker configuration path affects multiple Matrix scenarios.
  • Complete next step (P2) - The PR is maintainer-authored/labeled and has no mechanical repair finding; the remaining action is normal owner review plus completion of the in-progress validation lanes.
Agent review details

Security

None.

PR surface

Source +3, Tests +24. Total +27 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 2 17 14 +3
Tests 2 28 4 +24
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 45 18 +27

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Merge the bounded reset after the remaining CI checks confirm the focused QA path, preserving complete canonical streaming writes rather than reintroducing conditional partial patches.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Merge the bounded reset after the remaining CI checks confirm the focused QA path, preserving complete canonical streaming writes rather than reintroducing conditional partial patches.

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

Yes in source, with medium confidence: a recursive account-config patch can preserve fields omitted by a later scenario, and the changed builder now writes all streaming slots. I did not execute the live Matrix suite in this read-only review.

Is this the best way to solve the issue?

Yes: writing the canonical nested streaming shape at the owner boundary directly prevents stale recursive-merge state, while the separate bounded canary budget avoids coupling live setup to deliberately short scenario windows.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9e8cc6fe8a6f.

Labels

Label changes:

  • add P2: The PR repairs a bounded QA reliability problem in shared Matrix scenario execution without changing shipped product behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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: This member-authored PR includes a concrete live QA-run summary and focused validation claims; external-contributor real-behavior proof gating does not apply.

Label justifications:

  • P2: The PR repairs a bounded QA reliability problem in shared Matrix scenario execution without changing shipped product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored PR includes a concrete live QA-run summary and focused validation claims; external-contributor real-behavior proof gating does not apply.

Evidence

What I checked:

Likely related people:

  • RomneyDa: Authored the focused Matrix QA repair and its scenario/config regression coverage; current-main history could not be queried in this read-only sandbox. (role: current Matrix QA contributor; confidence: low; commits: 75f8cb5c0517; files: extensions/qa-lab/src/live-transports/matrix/substrate/config.ts, extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-environment.ts)

Rank-up moves

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

  • Wait for the in-progress QA smoke, build, lint, and compact-check lanes to finish on the reviewed head.

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.

@RomneyDa
RomneyDa merged commit 2857eaa into main Jul 31, 2026
130 of 134 checks passed
@RomneyDa
RomneyDa deleted the fix/qa-matrix-scenario-state branch July 31, 2026 06:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 31, 2026
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 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