Repository navigation
refactor(matrix): consolidate monitor test fixtures - #118175
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 4:19 PM ET / 20:19 UTC. ClawSweeper reviewWhat this changesThis PR replaces repeated Matrix monitor test inputs with shared fixture helpers while keeping the same direct-message, group-history, and subagent-binding assertions. Merge readinessNo blocking correctness or security finding surfaced. This focused test-only refactor preserves the Matrix monitor scenarios while reducing repeated fixture setup; it should remain open for ordinary maintainer review because it is explicitly labeled Priority: P3 Review scores
Verification
How this fits togetherThe Matrix plugin receives room events and subagent lifecycle events, then applies direct-message classification, group-history preparation, and session-binding delivery rules. The changed tests exercise those boundaries without modifying the plugin runtime, configuration, persistence, or delivery code. flowchart LR
A[Matrix room events] --> B[Direct-message classifier]
A --> C[Group-history handler]
D[Subagent lifecycle events] --> E[Session-binding hooks]
B --> F[Matrix monitor behavior]
C --> F
E --> F
G[Shared test fixtures] --> B
G --> C
G --> E
Before merge
Agent review detailsSecurityNone. PR surfaceTests -377. Total -377 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Land the fixture consolidation as a test-only cleanup once the assigned maintainer completes normal review, retaining the shared helpers as the canonical setup for these Matrix regression scenarios. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR refactors regression-test fixtures rather than reporting or changing a runtime behavior. The focused Matrix test path is explicit in the changed suites and has reported after-fix test proof. Is this the best way to solve the issue? Yes. Consolidating repeated test-local inputs at each suite's existing owner boundary keeps the assertions and runtime coverage intact without introducing a production abstraction or parallel behavior path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3a2337ece4f9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
ClawSweeper before-merge item addressed: ordinary maintainer review is complete on exact head |
|
Merged via squash.
|
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (#118193) fix(config): preserve secret ownership when configuration rows move (#118149) fix(cron): deliver failure alerts after persistence (#118200) chore(lint): clear 172 lint:all baseline violations in five batches (#118098) perf(gateway): remove streaming hot-path rescans (#118192) test(gateway): use in-memory task registry (#118191) test(macos): fix three races in the bounded process suites (#118196) refactor(migrate-hermes): consolidate test fixtures (#118182) test(android): share Wear transport fixtures (#118177) test(ui): deduplicate control UI e2e setup (#118180) fix(plugins): unblock prerelease validation (#118103) test(cli): reduce redundant process launches (#118141) test(gateway): compact terminal observer fixtures (#118179) fix(agents): make requested threads sidebar-visible (#118073) test(plugins): canonicalize native resolver fixtures (#118174) test: deduplicate agent runner fixtures (#118176) refactor(policy): consolidate doctor test fixtures (#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (#118127) refactor(matrix): consolidate monitor test fixtures (#118175)
* origin/main: feat(gateway): track event-loop degradation persistence and add concurrency benchmark (openclaw#118193) fix(config): preserve secret ownership when configuration rows move (openclaw#118149) fix(cron): deliver failure alerts after persistence (openclaw#118200) chore(lint): clear 172 lint:all baseline violations in five batches (openclaw#118098) perf(gateway): remove streaming hot-path rescans (openclaw#118192) test(gateway): use in-memory task registry (openclaw#118191) test(macos): fix three races in the bounded process suites (openclaw#118196) refactor(migrate-hermes): consolidate test fixtures (openclaw#118182) test(android): share Wear transport fixtures (openclaw#118177) test(ui): deduplicate control UI e2e setup (openclaw#118180) fix(plugins): unblock prerelease validation (openclaw#118103) test(cli): reduce redundant process launches (openclaw#118141) test(gateway): compact terminal observer fixtures (openclaw#118179) fix(agents): make requested threads sidebar-visible (openclaw#118073) test(plugins): canonicalize native resolver fixtures (openclaw#118174) test: deduplicate agent runner fixtures (openclaw#118176) refactor(policy): consolidate doctor test fixtures (openclaw#118173) fix(plugins): remove disabled channel plugin configuration on uninstall (openclaw#118127) refactor(matrix): consolidate monitor test fixtures (openclaw#118175)
What Problem This Solves
Matrix monitor regression tests repeated large direct-room, group-history, and subagent-binding fixture payloads, making security and lifecycle cases harder to audit and maintain.
Why This Change Was Made
Consolidates only test-local fixtures in the three affected suites. All 74 test titles and all 123 static assertions remain exact; runtime, config, crypto, and schema code are unchanged.
User Impact
No user-visible behavior change. The same DM privacy, history watermark/retry, cross-account session binding, delivery, and failure behavior remains covered with 377 fewer test LOC.
Evidence