docs: #58 in the reference and CLAUDE.md; unescape_reply's 748 were replies

Reference row 2026-11-06: an escaped checksum is the checksum, measured on
7,747 / 7,747 recorded replies, with what the stray byte misread.  CLAUDE.md's
phase-5 warning marked fixed, and the reply rule widened.

Corrects 89c5234's unescape_reply docstring: the 2026-10-26 recording's
748/748 was measured on its replies (it also has 748 requests); I had called
them Blastware's requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01SyJ2ip3Krb6dtdv2cXua44
This commit is contained in:
serversdownandClaude Opus 5.5 committed 2026-11-06 14:57:39 -05:00
1 parent 47da0ddef0
commit 7b45647b23
3 files changed
+21 -14

No files matched your search

+7 -7
View File
@@ -534,13 +534,13 @@ STRT_MARKER = b"STRT"
def unescape_reply(data: bytes) -> bytes:
"""A reply's data with each kept escape removed: `10 02/03/04` → `02/03/04`.
The unit escapes 02, 03, 04 and 10 in its replies exactly as requests do
(checksum included: 7,747 of 7,747 recorded replies, March to October 2026,
#58; the 748 measured on 2026-10-26 were Blastware's requests). S3FrameParser
collapses `10 10` but keeps the `10` of `10 02/03/04` (inner-frame markers to
it) everywhere but the checksum, so its `.data` carries an
extra byte before each 02/03/04 value -- harmless for fields read before the
escape, one byte off for any read after it, or counted from the end."""
The unit escapes 02, 03, 04 and 10 in its replies exactly as requests do,
the checksum included (748/748 replies, 2026-10-26; 7,747 / 7,747 across every
recording, March to October 2026, #58). S3FrameParser collapses `10 10` but
keeps the `10` of `10 02/03/04` (inner-frame markers to it) everywhere but the
checksum, so its `.data` carries an extra byte before each 02/03/04 value --
harmless for fields read before the escape, one byte off for any read after it,
or counted from the end."""
out, i = bytearray(), 0
while i < len(data):
if data[i] == DLE and i + 1 < len(data) and data[i + 1] in (STX, ETX, 0x04):