Commit Graph

11 Commits

Author SHA1 Message Date
Michael Mikovsky fd5916b65a Fix 4. 2026-04-23 22:17:49 -06:00
Michael Mikovsky 8d2f22cab9 Fix 3. 2026-04-23 22:09:25 -06:00
Michael Mikovsky 5213f38680 Fix some more clairity 2026-04-23 22:01:35 -06:00
Michael Mikovsky cc61d297de Some improvements. 2026-04-23 21:47:20 -06:00
Michael Mikovsky 351bf8f5ae Combine end and cancel since hook and stream are combined. 2026-04-23 20:00:49 -06:00
Michael Mikovsky 43b182468b Merge streams and hooks. 2026-04-23 15:55:38 -06:00
Michael Mikovsky 1fe6275169 Improve clarity of PROTOCOL.md 2026-04-23 15:36:27 -06:00
Michael Mikovsky 6c91b40441 Add revision 2026-04-23 06:36:39 -06:00
Michael Mikovsky 717f5332e8 Update PROTOCOL.md 2026-04-22 21:39:08 -06:00
Michael Mikovsky 1af134104e Add TreeTest 2026-04-22 10:03:24 -06:00
Michael Mikovsky fcb3b2be17 feat: complete protocol spec and initial implementation
- Write PROTOCOL.md with full wire format spec and 8 real-world scenario
  analyses (reconnect, multi-operator, large files, AV evasion, router crash,
  malformed packets, future pivoting)

- Rewrite workspace structure:
  - unshell lib: protocol types (PacketHeader, TreeRequest/Response,
    HandshakeMessage/Ack), Transport trait, TcpTransport, Tree routing
  - ush-router: router binary with per-node threads, NodeRegistry with
    longest-prefix path matching, packet relay
  - ush-payload: implant binary with reconnect loop, module tree, InfoModule
  - ush-cli: operator REPL with rustyline, session management, command parser

- Protocol design: two-part rkyv frame [header][payload]; router reads only
  header for routing, payload bytes forwarded opaque

- All code documented with doc comments and examples
- Zero warnings, zero errors across entire workspace
- 32 tests pass (unit tests for tree routing, TCP transport, framing,
  command parsing, node registry)
2026-04-20 23:38:02 -06:00