Overview
Add Hypothesis stateful tests for the metrics, tracing, and logging hooks in cuprum/adapters/metrics_adapter.py (around line 206).
Justification
Event streams can arrive in varied phase/order/pid combinations, and current tests do not exercise these combinations systematically.
Benefit
- Proves counters, spans, and log records are created exactly when intended
- Proves active maps drain correctly
Cost Trade-Off
Medium. Requires synthetic event generators.
Verifiability Improvements
Extract event-to-operation reducers from side-effecting collector/span calls.
Recommended Order
Phase 3 — state-machine work after refactors isolate pure transitions.
Raised from PR #62 by @leynos.
Overview
Add Hypothesis stateful tests for the metrics, tracing, and logging hooks in
cuprum/adapters/metrics_adapter.py(around line 206).Justification
Event streams can arrive in varied phase/order/pid combinations, and current tests do not exercise these combinations systematically.
Benefit
Cost Trade-Off
Medium. Requires synthetic event generators.
Verifiability Improvements
Extract event-to-operation reducers from side-effecting collector/span calls.
Recommended Order
Phase 3 — state-machine work after refactors isolate pure transitions.
Raised from PR #62 by @leynos.