5.3 KiB
Development state
Checkpoint: 2026-09-19. Branch: main. HEAD: 49ec9d8
(docs: refresh development checkpoint). The working tree is not clean: this
checkout contains concurrent implementation, documentation, benchmark, fuzz,
and integration-test changes. No commit was created for this checkpoint.
Implemented behavior
- The package provides a reusable Rust library and thin binary. Integration tests use the library rather than path-including production modules.
- Client and server runtimes support authenticated direct UDP, QUIC DATAGRAM, HTTP/3 CONNECT-UDP with HTTP Datagrams, and TLS/TCP length-framed fallback. TLS client connections use normal certificate-chain and hostname verification. Shared-secret authentication precedes encrypted backend-session activation.
autofollows configured transport order, uses bounded probes/retries, stops on authentication rejection, and reconnects with jittered 250 ms–30 s backoff. Successful connections reset the backoff.- Enabled server listeners run concurrently, reject incompatible UDP bind conflicts, isolate backend UDP sockets per authenticated session, enforce admission limits, and publish aggregate status/statistics.
- The Unix control socket uses a private runtime directory and
0600socket permissions. It refuses active sockets, removes only verified stale sockets, parses/serializes newline-delimited JSON structurally, limits concurrent clients, and bounds idle/oversized requests.status,stats,shutdown, and client-onlyreconnectare supported.reloadexplicitly reports unsupported. - Secret-file loading opens one descriptor, uses Linux
O_NOFOLLOWandO_NONBLOCK, validates a regular file and permissions from that descriptor, and reads the opened descriptor. Secret contents are not logged. - Systemd templates run as an unprivileged user with hardening enabled;
CAP_NET_BIND_SERVICEis documented as an optional, narrowly scoped aid for ports below 1024. No WireGuard, TUN/TAP, routing, or firewall management is implemented. tests/encrypted_runtime.rscovers daemon-level QUIC/TLS forwarding, authentication rejection, cancellation, session identity, and QUIC restart reconnect.tests/server_capabilities.rscovers the server datagram capability boundary.- A deterministic Criterion target exists in
benches/protocol_transports.rsfor protocol/framing/HTTP Datagram/replay microbenchmarks. The repository also contains four isolated cargo-fuzz targets underfuzz/for direct packets, TLS frames, HTTP/3 parsing, and TOML parsing.
Current worktree inventory
Modified files include Cargo.toml, Cargo.lock, README.md,
docs/OPERATIONS.md, both advanced/minimal server examples, both systemd
templates, runtime/config/control/server/transport sources, and related tests.
Untracked assets include benches/, fuzz/, docs/BENCHMARKS.md,
docs/FUZZING.md, tests/encrypted_runtime.rs, and
tests/server_capabilities.rs. docs/DEVELOPMENT_STATE.md and
docs/IMPLEMENTATION_CHECKLIST.md are also modified by this reconciliation.
Treat these as shared worktree state; do not discard them with a cleanup
command.
Verification performed in this worktree
The following checks passed:
cargo fmt --all -- --checkcargo check --all-targetscargo clippy --all-targets -- -D warningscargo test --tests -- --test-threads=1— 95 tests passedcargo bench --bench protocol_transports --no-runcargo check --manifest-path fuzz/Cargo.toml
cargo-fuzz is not installed on this host, so no fuzzing session or sanitizer
run is claimed. No network/loopback benchmark was run; only deterministic
benchmark compilation was checked. These gates ran against the shared dirty
worktree, not a clean checkout.
Remaining work
Required before an unconditional release sign-off:
- Re-run the documented gates from the final clean checkout after concurrent changes are integrated and reviewed.
- Install/use
cargo-fuzzand run bounded smoke sessions for each target; retain the compile-only result as the current evidence until then. - Make and test a final practical datagram-size-cap decision. The benchmark analysis recommends 1200 bytes, while configuration still permits the larger protocol-bound ceiling.
Optional or explicitly out of scope for the current prototype:
- Config and certificate/key reload remain unsupported; the control command reports this explicitly. Spec language makes certificate reload desirable but optional and does not require full hot reload for the first milestone.
- A network benchmark remains opt-in work because its results depend on host scheduling, kernel buffers, MTU, and runtime conditions. The deterministic microbenchmarks are present and compile.
- A measured benchmark report and sanitizer fuzz report are release artifacts, not evidence currently available from this host.
First three recovery/release tasks
- Review and commit the shared implementation/docs/bench/fuzz work as one coherent checkpoint, then repeat the full gates from that clean checkout.
- Run the four cargo-fuzz targets for bounded smoke sessions and record the toolchain/host results in the fuzzing notes.
- Decide whether to enforce the documented 1200-byte practical cap or retain the protocol-bound configurable ceiling, then add the corresponding boundary evidence and update the acceptance checklist.