wire-core: lead review — merge

This commit is contained in:
lucio committed 2026-09-16 00:21:25 -07:00
1 parent e13748c225
commit 9283946c30
1 file changed
+14
+14
View File
@@ -361,3 +361,17 @@ directly, see above).
**Verdict: PASS**
## Review
- 2026-09-16 (lead): inspected per `docs/loop.md` §5. Gates green run
by me; diff touches only the lane's files plus TODO §1, protocol.md
§10.1 and this README. Read all four Swift files: offsets and enum
values match protocol §1, checksum loop is bytes 2..31, magic uses
wrapping adds with the `<< 23` overlap, PBKDF2 parameters and the
48-byte preamble match §2, no logging, no force-unwraps, files 72–404
lines. QA independently recomputed the magic and PBKDF2 vectors.
Verdict: **merge**. Carry into the next brief: (1) `Framing.open` on
an `.invalid` first half still means 64 bytes on the wire — the
control-channel receive loop must read the second half; (2)
`CipherWriter`/`Reader` are non-Sendable classes, so one connection
owns them on one queue; (3) `Packet.setMachineName` throws on
non-ASCII — the app must validate the hostname at startup (D7).