# Changelog

## Score

- CAI 57 → 57 (+0.0)
- Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

## Lenses

- Code Health 50 → 50 (+0.1)
- Architecture 88 → 88 (-0.4)
- Maturity 53 → 53 (+0.1)
- Readiness 61 → 61 (+0.0)
- Security 100 → 100 (+0.0)

## Resolved (6)

- AsyncTcpConnection.connect (cognitive 30) (src/Connection/AsyncTcpConnection.php)
- AsyncTcpConnection.connect (cyclomatic 16) (src/Connection/AsyncTcpConnection.php)
- Duplicate protocol implementations with divergent interfaces. `Websocket` is designed for server-side connections (`TcpConnection`), while `Ws` is designed for client-side connections (`AsyncTcpConnection`). However, they share the same logical domain (WebSocket protocol handling) but have different method signatures (e.g., `Websocket.encode(buffer, connection)` vs `Ws.encode(payload, connection)`) and different connection type dependencies. This forces developers to remember two separate classes for the same protocol based on a subtle client/server distinction, rather than a unified interface.
- Inconsistent event registration naming across Event backends. `EventInterface` (and its implementations like `Ev`, `Event`, `Fiber`, `Swoole`, `Swow`) uses `onReadable`/`onWritable`. However, `Select` introduces `onExcept` for exceptional conditions, which has no counterpart in the standard `EventInterface` contract. This breaks the consistency of the event loop abstraction, requiring special handling for the `Select` backend.
- Off-boarding risk: anonymized user #1
- Redundant event handlers with ambiguous distinction. Both `onWebSocketConnect` and `onWebSocketConnected` are exposed as properties on TcpConnection. It is unclear if one is for the start of the handshake and the other for completion, or if they are duplicates. This creates confusion for API users regarding which callback to use for connection lifecycle events.

## New (1)

- Off-boarding risk: anonymized user #1

## Changes since last survey

- 2 commits — 1 feature/other, 1 fixes

## By area

- (repo) — 2 commits

## Notable commits

- fix: Merge pull request #1170 from 81549361/fix/swoole-error-handler-window
- change: Merge pull request #1162 from joanhey/patch-2
