Repository navigation
fix(qa): isolate Matrix wrong-key recovery accounts - #119571
Conversation
Punchcard-Session: silver-valley-valley-dt
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 6:30 AM ET / 10:30 UTC. ClawSweeper reviewWhat this changesThe 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 provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep 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 Review scores
Verification
How this fits togetherThe 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]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -24, Tests +220. Total +196 across 2 files. View PR surface stats
Review metrics
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Punchcard-Session: silver-valley-valley-dt
|
Merged via squash.
|
* 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
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.tsgit diff --checkPunchcard-Session: silver-valley-valley-dt