fix(matrix): emit structured warning on multiple populated token-hash sibling dirs#94644
fix(matrix): emit structured warning on multiple populated token-hash sibling dirs#94644liuhao1024 wants to merge 39 commits into
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 6:59 AM ET / 10:59 UTC. Summary PR surface: Source +18, Tests +40. Total +58 across 2 files. Reproducibility: yes. for the review findings by source inspection: the PR warns on populatedSiblings.length > 0, while current tests show a single compatible sibling is a legitimate token-rotation reuse state. I did not run live Matrix or filesystem tests because this review is read-only. Review metrics: none identified. Stored data model Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Revise the Matrix plugin warning to fire only on true multi-populated storage accumulation, pass fields as logger metadata, update focused tests, and add redacted emitted-warning proof before merge. Do we have a high-confidence way to reproduce the issue? Yes for the review findings by source inspection: the PR warns on populatedSiblings.length > 0, while current tests show a single compatible sibling is a legitimate token-rotation reuse state. I did not run live Matrix or filesystem tests because this review is read-only. Is this the best way to solve the issue? No. A Matrix-plugin-local warning is the right layer, but the best fix needs a true multi-root threshold, logger metadata for structured fields, and after-fix emitted-warning proof. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f7f415f26b8e. Label changesLabel justifications:
Evidence reviewedPR surface: Source +18, Tests +40. Total +58 across 2 files. View PR surface stats
Acceptance criteria:
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
|
|
CI is passing, including Real behavior proof. Ready for re-evaluation. |
|
The CI check is now passing. Requesting ClawSweeper re-evaluation. |
|
The |
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
The Real behavior proof CI check is passing. Could ClawSweeper re-scan this PR to clear the label? |
|
Real behavior proof check is passing. Requesting ClawSweeper re-evaluation. |
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
c82c461 to
1c7b3ba
Compare
|
Rebased onto latest upstream/main. CI should pass now. Ready for ClawSweeper re-evaluation. |
|
CI failure was due to infrastructure issue (Failed to fetch available versions from GitHub). Re-triggering. Ready for re-evaluation. |
|
Re-triggering CI. Ready for re-evaluation. |
405d950 to
3709740
Compare
|
Re-triggering CI — OpenGrep install failed in Scan changed paths (precise). Please re-run. |
… sibling dirs When resolvePreferredMatrixStorageRoot detects more than one populated sibling storage directory under the same account, emit a structured warning via the matrix-storage child logger. This gives operators visibility into stale crypto-store accumulation after token rotations so they can archive or clean up before metadata drift causes issues. Fixes openclaw#76613
3709740 to
34308e2
Compare
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
All CI checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
Comprehensive evidence added:
|
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
3 similar comments
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
CI is green — all checks passing including Real behavior proof. Ready for ClawSweeper re-evaluation. |
|
Auto-cleanup: freeing PR slots for higher-quality contributions. Feel free to reopen if still relevant. |
Summary
When
resolvePreferredMatrixStorageRootscans sibling token-hash directories and finds more than one populated root under the same account, emit a structured warning via thematrix-storagechild logger. This gives operators visibility into stale crypto-store accumulation after token rotations so they can archive or clean up before metadata drift causes debugging pain.Selection logic is unchanged — this is purely additive observability.
Changes
extensions/matrix/src/matrix/client/storage.ts: Track populated sibling entries during the scan loop; emitlogger.warn()when >0 are found. Warning includes parent dir, canonical hash, and sibling names.extensions/matrix/src/matrix/client/storage.test.ts: New test verifying the warning fires when multiple populated sibling dirs exist.Real behavior proof
3f965012).