Skip to content

fix(qa): isolate Matrix wrong-key recovery accounts - #119571

Merged
vincentkoc merged 2 commits into
mainfrom
fix/qa-matrix-wrong-account-isolation-20260805
Aug 5, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/qa-matrix-wrong-account-isolation-20260805

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 5, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the Matrix wrong-account recovery-key QA scenario used the shared observer account as its target and could reset that account's cross-signing or backup state for later scenarios.

Why This Change Was Made

The scenario now creates separate disposable source and target owners. The source owns the deliberately wrong recovery key, while the target owns the backup and temporary recovery device. Cleanup releases the CLI, temporary device, target client, and source client independently.

This change is limited to QA scenario ownership and does not change production Matrix behavior.

User Impact

Matrix QA scenarios no longer inherit durable observer-account mutations from the wrong-key recovery test, making serial and full-profile results reproducible.

Evidence

  • node scripts/run-vitest.mjs extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-destructive.test.ts
  • 9 focused tests passed.
  • Tests fail on any observer credential access and verify disposable-account cleanup order.
  • git diff --check
  • Structured autoreview: clean.
  • Production delta: -17 lines; tests: +220 lines.

Punchcard-Session: silver-valley-valley-dt

Punchcard-Session: silver-valley-valley-dt
@vincentkoc vincentkoc self-assigned this Aug 5, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 5, 2026 10:07
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. labels Aug 5, 2026
@clawsweeper

clawsweeper Bot commented Aug 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 6:30 AM ET / 10:30 UTC.

ClawSweeper review

What this changes

The PR isolates Matrix wrong-account recovery-key QA by creating separate disposable source and target accounts and adding regression coverage for observer isolation and cleanup.

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 performs the wrong-key recovery scenario against the shared observer account, while this branch moves both sides to the existing disposable-owner flow. The prior unused-helper finding is resolved and no new actionable defect was found.

Priority: P2
Reviewed head: 65f67ecb41fb4e3e4d29026abc77e0d4e66a0dd6

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, owner-boundary repair with direct regression coverage and no remaining correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored QA-only PR is not subject to the external-contributor real-behavior-proof gate; focused regression tests and the supplied CI evidence cover the changed scenario boundary.
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 QA-only PR is not subject to the external-contributor real-behavior-proof gate; focused regression tests and the supplied CI evidence cover the changed scenario boundary.
Evidence reviewed 5 items Current-main defect: Current main creates the recovery client from the shared observer credentials and allows a cross-signing reset while preparing that account, so this scenario can mutate state used by later QA cases.
Owner-boundary repair: The PR head creates source and target through the canonical destructive setup, gives the target credentials only to the recovery login, supplies the source key to restore, and releases each temporary resource in one finally block.
Regression coverage: Focused tests reject every observer credential read, verify two disposable registrations, source-key/target-login wiring, cleanup order, and release of the source owner when target setup fails.
Findings None None.
Security None None.

How this fits together

The Matrix QA Lab recovery scenario creates encrypted accounts, backups, and a temporary recovery device to test rejection of a wrong recovery key. It must clean those resources without changing the shared observer account used by other scenarios.

flowchart LR
  A[Matrix QA scenario] --> B[Disposable source account]
  A --> C[Disposable target account]
  B --> D[Wrong recovery key]
  C --> E[Target backup and recovery device]
  D --> F[Recovery CLI restore]
  E --> F
  F --> G[Independent cleanup]
Loading

Before merge

  • Complete next step (P2) - The prior review finding was addressed; this actively maintained member PR now needs ordinary exact-head CI and merge handling, not a separate repair job.
Agent review details

Security

None.

PR surface

Source -24, Tests +220. Total +196 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 62 86 -24
Tests 1 221 1 +220
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 283 87 +196

Review metrics

Metric Value Why it matters
Production vs test LOC production +62/-86 (net -24); tests +221/-1 (net +220) The production change removes the shared-account path while focused tests add lifecycle and isolation coverage.

Technical review

Best possible solution:

Land the disposable source/target lifecycle so destructive wrong-key recovery checks cannot alter the observer account used by subsequent Matrix QA scenarios.

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

Yes, from source: current main explicitly uses observer credentials and permits its repair/reset path; the new focused test traps observer access. This read-only review did not run a live Matrix environment.

Is this the best way to solve the issue?

Yes. Reusing the existing disposable destructive-owner setup twice repairs the lifecycle owner rather than trying to guard observer mutations downstream.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 637de7d37945.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 QA-only PR is not subject to the external-contributor real-behavior-proof gate; focused regression tests and the supplied CI evidence cover the changed scenario boundary.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: This repairs a bounded Matrix QA reliability problem without changing released Matrix transport behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool 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 QA-only PR is not subject to the external-contributor real-behavior-proof gate; focused regression tests and the supplied CI evidence cover the changed scenario boundary.

Evidence

What I checked:

Likely related people:

  • steipete: Current-main blame assigns the observer-based scenario to the recent destructive Matrix QA module introduction. (role: introduced current behavior; confidence: high; commits: b5d99c1f0675; files: extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-destructive.ts)
  • Dallin Romney: The earlier Matrix-scenarios-to-QA-Lab migration is the preceding identifiable history for this owner surface. (role: Matrix QA migration contributor; confidence: medium; commits: ad3455247363; files: extensions/qa-lab/src/live-transports/matrix/scenarios/scenario-runtime-e2ee-destructive.ts)

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 (1 earlier review cycle)
  • reviewed 2026-08-05T10:12:48.318Z sha 8d64ebd :: found issues before merge. :: [P2] Remove the now-unused password helper

Punchcard-Session: silver-valley-valley-dt
@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. 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. labels Aug 5, 2026
@vincentkoc
vincentkoc merged commit a52b336 into main Aug 5, 2026
132 of 138 checks passed
@vincentkoc
vincentkoc deleted the fix/qa-matrix-wrong-account-isolation-20260805 branch August 5, 2026 10:35
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 6, 2026
* fix(qa): isolate Matrix wrong-key recovery accounts

Punchcard-Session: silver-valley-valley-dt

* fix(qa): remove obsolete Matrix password guard

Punchcard-Session: silver-valley-valley-dt
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: M 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