Adopt the user's development rule: one lane at a time, no test suites
CLAUDE.md gains a 'How this project is developed' section: strictly serial Dev (Opus 5) -> QA (Sonnet 5, code quality) -> lead inspection; commit along the way without requiring every commit to compile; the user is the tester. docs/loop.md, docs/topo.md and TODO.md are rewritten to a serial lane order with no test-writing items; the test targets are removed and tools/gates.sh is lint + layering grep + build. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
1 parent
671b3dfa61
commit
87aeee6f93
15 files changed
+391
-617
No files matched your search
@@ -19,9 +19,8 @@ crypto.
|
||||
`ProcessReceivedDataEx` does, so a decoded packet's bytes 1–3 are
|
||||
always 0 and re-sealing is deterministic.
|
||||
- **The checksum covers bytes 2..31 only, even on 64-byte packets.** We
|
||||
reproduce this, and pin it with a test that corrupts byte 40 of a
|
||||
64-byte packet and asserts it is *not* detected — the encryption
|
||||
layer, not the checksum, is what protects the name half.
|
||||
reproduce this; the encryption layer, not the checksum, is what
|
||||
protects the name half. Say so in a comment at the checksum loop.
|
||||
- **Unknown type values decode as `.unknown(UInt8)`** rather than
|
||||
throwing, so a newer Windows build cannot desynchronise our framing.
|
||||
Size for an unknown value follows the big/small rule (`0x80` bit ⇒ 64,
|
||||
@@ -66,16 +65,10 @@ same change and session codes against the README.
|
||||
## Status / TODO
|
||||
|
||||
- [ ] `Sources/MWBCore/Packet.swift`: `PackageType` (every value in
|
||||
protocol §1.2), `isBig`, `Packet` with union views.
|
||||
- [ ] `Sources/MWBCore/Framing.swift`: `seal` / `open` per §1.3.
|
||||
- [ ] `Tests/MWBCoreTests/PacketTests.swift`: offsets pinned per field,
|
||||
big/small over all 256 values, name padding/trim, non-ASCII refused.
|
||||
- [ ] `Tests/MWBCoreTests/FramingTests.swift`: hand-assembled golden
|
||||
bytes for Handshake / Mouse / Keyboard / Matrix(slot 4, both
|
||||
flags) / ClipboardText chunk; round-trip property test; bytes
|
||||
2..31 corruption detected; byte 40 corruption *not* detected.
|
||||
- [ ] `docs/protocol.md`: add any offset or rule learned; keep
|
||||
`[transcribed]` marks until interop-vectors.
|
||||
protocol §1.2, cited), `isBig`, `Packet` with the union views.
|
||||
- [ ] `Sources/MWBCore/Framing.swift`: `seal` / `open` per §1.3, each
|
||||
constant cited to `SocketStuff.cs`.
|
||||
- [ ] `docs/protocol.md`: add any offset or rule learned while porting.
|
||||
|
||||
## Work log
|
||||
|
||||
|
||||
Reference in new issue
Block a user