check: parity S04 (Pi Codex wire shaping and socket binding)

Merged
OA
2h ago
+1142-202

Check branch for the full CI matrix before main.


Summary by cubic

Adds attempt-bound Codex WebSocket sockets and transport-level wire shaping to the Pi provider. Socket reuse is now keyed by session and account, idle sockets are retired when a new bearer starts a turn, and rate-limit frames are attributed to the request's dispatch (account, token, and vault receipt) instead of a recent-token cache.

  • Shapes HTTP and WebSocket bodies the same way: restores replayed call status, moves instructions to the developer message, and decompresses zstd-encoded request bodies.
  • Replaces the token-to-account vault cache with a dispatch object carried through the stream attempt.
  • Adds tests covering socket reuse across bearer rotation, foreign socket isolation, and vault quota attribution.