From 921aaf3a9a4fd0101eb748166e1d66e0c0d09185 Mon Sep 17 00:00:00 2001 From: "glm-5.3-flash" Date: Sun, 13 Sep 2026 16:54:02 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20qualify=20the=20256-channel=20figure=20?= =?UTF-8?q?=E2=80=94=20default=20policy=20knob,=20not=20a=20wire=20limit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit channel_id is u32 on the wire (~4B ids, monotonic counter, ADR-040); 256 is the default per-connection max_channels (memory bound, 256x1MiB reassembly buffers) and the default per-identity DoS cap (ADR-041) — both configurable without a wire change. AGENTS.md convention 10 and the OQ-SK-03 composed-egress note now carry the qualifier. --- AGENTS.md | 5 ++++- docs/research/phase-0.md | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 6d6d9d9..c7ba39f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -161,7 +161,10 @@ implementation agents. (assembly layer), never the protocol crate. 10. **Backpressure and limits are inherited, not redefined** — bounded - per-channel buffers, the 256-channel per-connection cap, monotonic + per-channel buffers, the 256-channel default caps (per-connection + memory bound, ADR-040; per-identity DoS defense, ADR-041 — policy + knobs, configurable without a wire change; the `u32` wire space + itself is ~4 billion), monotonic channel IDs, and the zero-length-sentinel EOF convention are alkcall channels invariants (see alkcall ADR-040/041/034). The crate consumes them via `ChannelCore`/`ChannelClient`; do not build diff --git a/docs/research/phase-0.md b/docs/research/phase-0.md index d2094f9..28263db 100644 --- a/docs/research/phase-0.md +++ b/docs/research/phase-0.md @@ -529,8 +529,10 @@ what gets each datagram to `addr`? handles* — because alktunnels' udp substrate is **connected** (`connect_udp(target)`: one tunnel, one fixed target) while ASSOCIATE names a different destination per datagram. Cost: one - open per destination (bounded by the 256-channel cap; fine for - DNS + browsing; the per-destination latency is a POC #2 + open per destination (the per-connection/per-identity channel + defaults are 256 — ADR-040/041 policy knobs, configurable without a + wire change; the `u32` wire space is ~4 billion — so fine for DNS + + browsing, and the per-destination open latency is a POC #2 measurement). Benefit: **per-target ACL for free** — the ACL governing the udp-tunnel resource governs egress per destination (dissolving most of OQ-SK-05 for the composed path), and hub