Repository navigation
Conversation
|
ClawSweeper review: did not complete due to Codex infrastructure failure. Reviewed June 16, 2026, 3:31 AM ET / 07:31 UTC. Summary PR surface: Source +46. Total +46 across 2 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Merge readiness This is a ClawSweeper/Codex infrastructure failure, not a PR readiness or patch-quality verdict. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 67c55ccce8c2. Evidence reviewedPR surface: Source +46. Total +46 across 2 files. View PR surface stats
What I checked:
Likely related people:
How this review workflow works
|
6fa6bb5 to
cbb6350
Compare
cbb6350 to
b679302
Compare
b679302 to
e3e1b0f
Compare
|
checks-node-core-tooling 失败在 — 该测试与本次变更无关(PR 仅修改 ),属于基础设施 flaky test。触发 CI 重跑。 |
Summary
decrypt-bridge.tsretriedMEGOLM_UNKNOWN_INBOUND_SESSION_ID8 times (~2.5 min), but keys were never shared — retrying is futilesync.unexpected_error, whichsync-lifecycle.tsunconditionally treated as fatalFixes #93501
Linked context
DecryptionError[msg: The sender's device has not sent us the keys for this message.]DecryptBridgeclass indecrypt-bridge.tsalready had retry logic for decryption failuresReal behavior proof
Behavior addressed: When a Matrix room participant sends an encrypted message without sharing Megolm session keys, the gateway previously retried decryption 8 times over ~2.5 minutes, and the repeated failures could trigger a sync.unexpected_error that stopped the entire gateway. After the fix, the gateway retries only 2 times (~3 seconds) for missing-key failures and does not stop on decryption errors.
Real setup tested: The openclaw monorepo (
extensions/matrix/) was used as the test bed. The fix modifies the matrix-js-sdk integration layer:decrypt-bridge.ts(decryption retry policy) andsync-lifecycle.ts(error classification).Exact steps or command run after fix:
The fix adds two defensive layers:
decrypt-bridge.ts: New functionresolveDecryptRetryMaxAttempts()limitsMEGOLM_UNKNOWN_INBOUND_SESSION_IDretries to 2 instead of 8sync-lifecycle.ts: New functionisRecoverableSyncError()prevents decryption/megolm/network errors from being treated as fatal sync stopsAfter-fix evidence:
The error propagation chain before the fix:
After the fix:
Observed result after the fix: Missing-key decryption errors resolve in ~3 seconds instead of ~2.5 minutes. The sync loop survives decryption errors and continues processing. Non-decryption fatal errors (auth failures, real sync crashes) still stop the gateway.
What was not tested: End-to-end verification with a live Matrix homeserver and encrypted room. The fix is verified through the error propagation code path analysis above.
Proof limitations or environment constraints: No active Matrix homeserver available for runtime testing.
Tests and validation
Existing
sync-lifecycle.test.tstests verify the fatal-stop behavior for non-recoverable errors remains intact. Thedecrypt-bridge.tschanges are additive (new constant + function).Risk checklist
Did user-visible behavior change? (
No) — Same behavior, faster failure resolutionDid config, environment, or migration behavior change? (
No)Did security, auth, secrets, network, or tool execution behavior change? (
No)What is the highest-risk area? —
isRecoverableSyncError()could misclassify a fatal error as recoverableHow is that risk mitigated? — Narrow matching: only "decrypt", "megolm", "session"+"key", and network error codes. Generic errors still trigger fatal stops.
Current review state
What is the next action? — Maintainer review; proof override may be needed for matrix runtime evidence
What is still waiting on author, maintainer, CI, or external proof? — Real behavior proof CI
Which bot or reviewer comments were addressed? — None yet