Skip to content

fix(qa): isolate Matrix live validation state - #116071

Merged
steipete merged 11 commits into
mainfrom
forwardport/beta6-matrix-qa
Jul 29, 2026
Merged

steipete merged 11 commits into
mainfrom
forwardport/beta6-matrix-qa

Conversation

@steipete

@steipete steipete commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves Matrix live-QA failures where stateful scenarios shared transport/session state, restart-spanning polls lost interruption ownership, reaction observers crossed scenario boundaries, and mock-provider prompt lookup could resurrect stale output across a newer ordinary user turn.

Why This Change Was Made

This forward-ports the reusable Matrix validation fixes found during beta.6 preparation. Stateful flows now declare suite isolation, the Matrix harness carries restart generations and scenario-owned observers explicitly, and mock prompt/tool-output lookup walks backward only across explicit continuation turns.

User Impact

No direct product behavior changes. Matrix release validation now exercises each flow with deterministic transport, session, reaction, and prompt ownership instead of leaking state between scenarios.

Evidence

  • Matrix/provider/planning/catalog proof: 436/437 initially; the sole stale numbered-isolation expectation was corrected and reran 45/45.
  • Mock-provider prompt ownership regression: 153/153, then 155/155 after the reviewer-discovered stale-family case was fixed.
  • Final owner-boundary correction: focused mock-provider proof 158/158, then combined mock-provider/catalog proof 205/205 after the static gates were repaired.
  • Current-main integration: rebased onto 55dd5d5c93f while preserving main's per-user-turn tool-output ownership; the combined provider suite passed 159/159.
  • Targeted extension lint, format check, and git diff --check passed.
  • Bounded Codex autoreviews after each maintainer correction and the rebase conflict resolution passed with no accepted/actionable findings.

Maintainer Proof Decision

ClawSweeper's stale-prompt ownership rank-up move is satisfied by regressions for an ordinary newer retry turn and same-family progress/block envelopes. A durable terminal live Matrix artifact is not available: the earlier release Matrix child was cancelled and is not being represented as proof. For this internal QA-only forward-port, the assigned maintainer accepts that gap as non-blocking; the complete live Matrix catalog remains part of Full Release Validation before beta publication.

@steipete steipete self-assigned this Jul 29, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jul 29, 2026
@clawsweeper

clawsweeper Bot commented Jul 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 29, 2026, 5:03 PM ET / 21:03 UTC.

ClawSweeper review

What this changes

This PR isolates stateful Matrix live-QA scenarios, resets restart-sensitive observer state, and prevents the mock OpenAI provider from reusing stale tool output after a newer user turn.

Merge readiness

⛔ Blocked until real behavior proof from a real setup is added - 3 items remain

Keep this PR open for protected maintainer handling. The supplied diff and PR context describe a targeted Matrix QA reliability repair with focused regression coverage, but the current status: 📣 needs proof state and the absence of a durable after-fix live Matrix artifact leave the proof decision for a human owner to record explicitly before merge.

Priority: P2
Reviewed head: 6fa79ef0db192626ae15cc087f3eb7405e3e9016
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The patch has targeted regression coverage and no definite code defect from the supplied diff, but its real Matrix behavior remains unproven in the provided evidence.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: The PR body reports automated suites and static checks but explicitly says no durable after-fix live Matrix artifact exists; add redacted harness/live output or record an explicit maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: The PR body reports automated suites and static checks but explicitly says no durable after-fix live Matrix artifact exists; add redacted harness/live output or record an explicit maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 4 items Protected maintainer handling: The supplied PR context carries the protected maintainer label and shows an assignment event, so this cleanup workflow must not close or auto-resolve the PR.
Changed validation boundary: The supplied diff adds isolated Matrix scenario declarations, resets Matrix observer cursors at scenario boundaries, and adds regression tests around restart interruption handling and stale mock-provider prompt ownership.
Proof remains non-live: The PR body explicitly says that no durable terminal live Matrix artifact is available; the provided evidence consists of automated test totals and static checks, while the PR remains labeled status: 📣 needs proof.
Findings None None.
Security None None.

How this fits together

The QA Lab plugin runs Matrix release-validation scenarios against a disposable homeserver, tracks scenario-owned transport and session state, and uses a mock provider to make expected agent behavior deterministic. Scenario definitions feed the suite planner and Matrix harness, which produce release-validation results.

flowchart LR
  A[Matrix QA scenarios] --> B[Suite planner]
  B --> C[Disposable Matrix harness]
  C --> D[Scenario-owned sessions and observers]
  D --> E[Mock provider prompt handling]
  E --> F[Release validation results]
Loading

Decision needed

Question Recommendation
Should the stated maintainer acceptance of missing durable live Matrix proof be recorded as an explicit proof override, or should this PR provide a redacted after-fix Matrix artifact before merge? Record the accepted override: Apply the repository’s explicit proof-override mechanism if the assigned owner accepts automated QA regressions as sufficient for this internal validation-only forward-port.

Why: The supplied PR body reports automated regressions and an internal maintainer decision, but the current PR state still advertises missing proof and no explicit override label is present in the provided context.

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: The PR body reports automated suites and static checks but explicitly says no durable after-fix live Matrix artifact exists; add redacted harness/live output or record an explicit maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve merge risk (P1) - Merging without either durable after-fix Matrix evidence or an explicit recorded proof override leaves a release-validation reliability change dependent on unverified live behavior.
Agent review details

Security

None.

PR surface

Source +131, Tests +711, Other +27. Total +869 across 36 files.

View PR surface stats
Area Files Added Removed Net
Source 12 260 129 +131
Tests 10 723 12 +711
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 14 27 0 +27
Total 36 1010 141 +869

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-reaction.test.ts, vector/embedding metadata: extensions/qa-lab/src/suite-planning.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Record the internal-QA proof decision (recommended)
    If the assigned owner accepts the stated lack of a durable live artifact, record the repository-approved override before merging so release-validation expectations remain auditable.
  2. Require a redacted live artifact
    Keep the proof gate in place until the branch includes a Matrix harness or live-validation artifact that demonstrates the corrected scenario boundary behavior.

Technical review

Best possible solution:

Retain the scenario-owned isolation and prompt-ownership design, then either attach a redacted Matrix harness/live-validation artifact or explicitly record the maintainer-approved proof override before merging after required checks finish.

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

No high-confidence live reproduction was provided in the available context. The affected path is source-reproducible from the Matrix harness, scenario environment, and mock-provider changes, but read-only terminal inspection was blocked before a current-head verification could be completed.

Is this the best way to solve the issue?

Unclear. The proposed owner-boundary isolation is plausible and is covered by focused regressions, but a full current-main and sibling-path comparison could not be completed because the review sandbox rejected all repository inspection commands.

AGENTS.md: unclear because the file could not be read completely.

Codex review notes: model internal, reasoning high; reviewed against 73808753757e.

Labels

Label changes:

  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • remove rating: 🧂 unranked krab: Current PR rating is rating: 🦪 silver shellfish, so this older rating label is no longer current.

Label justifications:

  • P2: This repairs Matrix release-validation reliability and has limited direct product blast radius.
  • merge-risk: 🚨 automation: The PR changes scenario partitioning, harness restart behavior, and mock-provider validation logic that determine whether release-validation automation detects real regressions.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body reports automated suites and static checks but explicitly says no durable after-fix live Matrix artifact exists; add redacted harness/live output or record an explicit maintainer proof override before merge. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

What I checked:

  • Protected maintainer handling: The supplied PR context carries the protected maintainer label and shows an assignment event, so this cleanup workflow must not close or auto-resolve the PR. (6fa79ef0db19)
  • Changed validation boundary: The supplied diff adds isolated Matrix scenario declarations, resets Matrix observer cursors at scenario boundaries, and adds regression tests around restart interruption handling and stale mock-provider prompt ownership. (extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-environment.ts:44, 6fa79ef0db19)
  • Proof remains non-live: The PR body explicitly says that no durable terminal live Matrix artifact is available; the provided evidence consists of automated test totals and static checks, while the PR remains labeled status: 📣 needs proof. (6fa79ef0db19)
  • Review continuity: The previous completed ClawSweeper review had no code findings and requested real behavior proof. The current PR body acknowledges that request and instead reports an assigned-maintainer acceptance of the gap, which needs an explicit maintainer-recorded resolution. (76878692578c)

Likely related people:

  • steipete: The supplied timeline shows assignment by steipete, and the current branch contains the Matrix QA isolation, harness, and mock-provider ownership changes described in the PR body. (role: assigned QA decision owner and recent area contributor; confidence: medium; commits: ce1066fb4362, e1739d77e418, 1f7edb2afb2a; files: extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-environment.ts, extensions/qa-lab/src/live-transports/matrix/substrate/harness.runtime.ts, extensions/qa-lab/src/providers/mock-openai/server.ts)

Rank-up moves

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

  • Attach redacted Matrix harness or live-validation output that demonstrates the corrected path, or record the accepted proof override.
  • Let the in-progress required checks complete on the current head 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-07-29T20:23:48.085Z sha 583b986 :: needs real behavior proof before merge. :: none
  • reviewed 2026-07-29T20:36:33.366Z sha 7687869 :: needs real behavior proof before merge. :: none

@steipete
steipete force-pushed the forwardport/beta6-matrix-qa branch from 7687869 to 6fa79ef Compare July 29, 2026 20:57
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Jul 29, 2026
@steipete steipete added the proof: override Maintainer override for the external PR real behavior proof gate. label Jul 29, 2026
@steipete
steipete merged commit d98e984 into main Jul 29, 2026
202 of 206 checks passed
@steipete
steipete deleted the forwardport/beta6-matrix-qa branch July 29, 2026 21:23
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 30, 2026
* fix(qa): isolate Matrix live scenario routing

* fix(qa): preserve Matrix mention filenames

* fix(qa): reset Matrix transport scenario state

* test(qa): isolate stateful Matrix scenario partitions

* test(qa): match numbered Matrix isolation

* test(qa): reject stale Matrix progress results

* fix(qa): bound Matrix scenario prompt ownership

* fix(qa): bound mock scenario ownership

* test(qa): satisfy Matrix validation gates

* refactor(qa): remove stale prompt helper

* fix(qa): preserve tool-result ownership after rebase
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. P2 Normal backlog priority with limited blast radius. proof: override Maintainer override for the external PR real behavior proof gate. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant