The Wire

docs/spec/

TL;DR. The normative phux wire protocol, split by tier per ADR-0015. Every file here is load-bearing for phux-protocol and any downstream consumer. SHALL / SHOULD / MAY language only inside this directory.


Files

FileOwns
proto.mdFraming, version negotiation, capabilities, flow control, transport
L1.mdTerminal substrate — the REQUIRED conformance tier
L2.mdCollection lifecycle — OPTIONAL
L3.mdMetadata storage — OPTIONAL
input.mdINPUT_KEY / INPUT_MOUSE / INPUT_FOCUS / INPUT_PASTE / INPUT_RAW
appendix-encoding.mdEncoding primitives (varints, strings, tagged unions, field-tag extensibility)
appendix-reserved.mdReserved discriminant ranges
CHANGELOG.mdWire-format change log, version-stamped

Version

The current protocol version lives in crates/phux-protocol/src/ (grep PROTOCOL_VERSION). The top entry in CHANGELOG.md must match it; CI gate spec-version-sync enforces this.