Repository navigation
fix(qa): tolerate expected Matrix sync long-poll deadlines - #117807
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 5:52 AM ET / 09:52 UTC. ClawSweeper reviewWhat this changesThe branch lets the Matrix QA room observer pass and recognize its own Merge readinessKeep this maintainer-owned, maintainer-labeled PR open for human merge review. Current Priority: P2 Review scores
Verification
How this fits togetherMatrix QA scenarios use a room observer to long-poll the Matrix flowchart LR
A[Matrix QA scenario] --> B[Room observer]
B --> C[Sync long poll]
C --> D{Owned deadline?}
D -->|yes| E[Empty poll result]
D -->|no| F[Terminal request failure]
E --> G[Next observer wait]
F --> H[Scenario failure]
Decision needed
Why: The patch and supplied real Matrix proof are strong, but the PR is maintainer-authored and carries the protected Before merge
Agent review detailsSecurityNone. PR surfaceSource +12, Tests +134. Total +146 across 3 files. View PR surface stats
Review metricsNone. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Merge the owner-scoped timeout classification after a current-base refresh confirms that the exact merged head retains terminal handling for every non-owned Matrix request failure. Do we have a high-confidence way to reproduce the issue? Yes, from source and the supplied exact-head evidence: let the observer-owned Matrix Is this the best way to solve the issue? Yes. The observer owns the long-poll policy, and identity-checking its supplied abort reason is safer than matching error text or weakening shared Matrix request failures. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against b7bbb4f98a1f. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
* origin/main: (59 commits) fix(agents): reject false success from delegated file mutations (openclaw#117938) fix(macos): reopen AI choice, fix daemon error text, hand onboarding off to the dashboard custodian (openclaw#117921) fix(qa): tolerate expected Matrix sync long-poll deadlines (openclaw#117807) feat(cli): support --json across reporting commands (openclaw#117928) perf(cli): keep read-only commands on cold paths (openclaw#117932) fix: prevent fractional chunk limits from stalling text splitting (openclaw#117727) fix(qqbot): add heartbeat-ACK liveness watchdog (openclaw#114902) chore(openai): defer release note to release flow fix(pr): join worktree discovery subprocesses test(gateway): widen aggregate event-loop budget (openclaw#117931) fix: refresh Buzz room targets after reconnect (openclaw#117927) fix: invalidate removed Buzz mention members fix: align Buzz explicit mention semantics test: split Buzz mention delivery coverage fix: preserve Buzz reply session threads refactor: keep Buzz mention helpers internal fix: invalidate stale Buzz room targets fix: tighten Buzz mention disambiguation perf: keep Buzz plain sends on the fast path fix: reject unresolved Buzz mention text ...
…117807) * qa(matrix): tolerate expected sync long-poll deadlines * test(qa): preserve late Matrix sync failures
What Problem This Solves
Fixes an issue where Matrix QA scenarios could fail after an otherwise expected empty
/synclong poll reached the observer's HTTP deadline. The deadline error escaped as a permanent adapter failure, so the next scenario in a shared Matrix run inherited the poisoned observer state.The failure was observed in the exact shared order
matrix-approval-exec-metadata-single-event,matrix-e2ee-artifact-redaction, thenthread-follow-upin the failed maturity run. Merged PR #117390 repaired replacement-relation observation but did not change this deadline path.Why This Change Was Made
The Matrix observer now owns the abort signal for each
/synclong poll and treats only that signal's deadline as an empty poll. The shared request helper accepts the owner-provided signal; auth responses, HTTP errors, protocol/transport errors, and unrelatedTimeoutErrorinstances remain terminal.This keeps timeout policy at the observer boundary instead of matching error text, adding retries, or weakening Matrix request failures globally.
User Impact
QA operators can run Matrix scenarios in shared order without an expected idle long poll poisoning the next scenario. Product Matrix runtime behavior and timeout configuration are unchanged.
Evidence
Blacksmith Testbox focused proof: 15/15 Matrix request and sync tests passed, including deadline recovery, same-observer reuse, terminal auth errors, and unrelated timeout errors.
Earlier focused proof on the initial implementation shape: 15/15 passed.
Node 26.3 live contract check confirmed
AbortSignal.timeout()aborts its own signal with aTimeoutError; the implementation keys on signal ownership, not the error name.git diff --checkpassed after rebasing onto currentmain.Production delta: +25/-13 (+12 net). Tests: +102/-0.
Blacksmith Testbox exact shared-order proof: 10/10 runs passed; 30/30 scenarios in the original failing order, using the live local Tuwunel/Matrix E2EE path with the deterministic mock provider.
AI-assisted: yes.
Exact-head local Matrix proof
560051985562298a2344b279d30abe2d1b648b27.mock-openai.matrix-approval-exec-metadata-single-event,matrix-e2ee-artifact-redaction,thread-follow-up..artifacts/matrix-real-shared-order-560051985562/proof-01throughproof-10.