* fix(ebpf): key the IPv6 new-flow budget by /64
* fix(ebpf): match IPv6 fragments on address and identification only
* fix(ebpf): record an expiry hint only after the ring accepts it
* refactor(core): size UDP commit batch buffers by request count
* test(core): drop tests that pass without their change and widen deadline margins
* docs(datapath): describe the /64 budget, IPv6 fragment keys and hint recording
* docs(agents): restore the ActivateDirect grace and dead-outbound health invariants
* docs(datapath): state the per-CPU ceiling of the new-flow budget
* fix(ebpf): keep the IPv6 new-flow budget per source address
* docs(datapath): per-address IPv6 budget, accurate map ceiling, hint cost and UDP health wording
* fix(native-ui): embed doona beta.20
* fix(udp): preserve and share QUIC source associations
* refactor(udp): add multi-target transport contract for shared sources
* fix(udp): route shared-source protocols through one generic source arm
* fix(udp): share one SOCKS5 association per client source
* fix(udp): share one Shadowsocks association across destinations
* fix(udp): share one Juicity UDP stream per client source and return real peers
* fix(udp): share one Trojan UDP stream per client source
* fix(udp): share AnyTLS source over non-connect UoT
* test(udp): benchmark production UDP send and receive
* fix(udp): share VLESS UoT v2 and H2MUX over addressed framing
* fix(udp): keep foreign domain names off the per-packet wire
* perf(udp): keep Hy2 address buffer out of the send future
* refactor(udp): select shared sources through the protocol registry
* docs(udp): document shared-source full-cone behavior and correct node defaults
* test(udp): prove shared-source full-cone through the real kernel path
* test(udp): benchmark shared-source overhead against ordinary flows
* build(core): drop duplicate dev-dependencies
* perf(udp): admit source replies with one endpoint lookup
* perf(udp): skip the reply timeout when the client socket is writable
* perf(udp): keep one retirement waiter across source replies
* fix(udp): type native UDP size refusals as local rejections
* fix(config): follow group members to re-derived node ids
* test(udp): check benchmark replies against their destination
* fix(config): keep group members off ambiguous stored node ids
* fix(udp): type interrupted shared frames and split oversized UDP modules
* docs(udp): name the shared AnyTLS uot transport in the ownership map
* fix(subscription): report provider usage and expiry
* test(udp): cover cancelled frame writes on VLESS UoT v2 and H2MUX
* refactor(udp): share the dialed-domain reply rule across UDP transports
* refactor(udp): name the empty-first-datagram rule on SourceTransport
* fix(quic): evict the oldest pending reassembly when the table is full
* fix(udp): warn when a source's foreign reply sockets saturate
* test(ci): run the shared-source sing-box interop matrix weekly
* bench(core): gate the real-I/O bench harness behind udp-bench
* fix(udp): keep an H2MUX window stall before the first chunk packet-local
* fix(udp): admit a datagram when its poisoned frame write starts
* fix(udp): fail a shared source whose uplink admits nothing for 30 s
* fix(udp): fail a stalled source across quiet gaps, not per deadline run
* docs(udp): describe the send attempt every source carrier now holds
* test(config): resync node documentation corpus ranges
* fix(subscription): preserve Mihomo TUIC ALPN defaults
* fix(ebpf): bind flow ownership and fence retirement
* fix(ebpf): preserve stable flow values and live ownership
* fix(udp): preserve fresh route and admission authority
* fix(ebpf): keep retransmitted SYNs on their original request
* test(ebpf): drop ownership cases that repeat a covered branch
* fix(ebpf): count TCP ownership publication failures
* refactor(ebpf): share auxiliary publication and split conntrack by protocol
* refactor(core): own retirement and namespace plumbing in single modules
* test(core): bind kernel cases to functions over shared fixtures
* test(core): make token-zero retirement fixture ownership-sensitive
* fix(nfqueue): keep full error chains in fatal decision reports
* docs: list kernel options required by TCP request ownership
* docs(datapath): state the SYN-flood cost of disabled cookies
* docs(control): name the janitor health owner
* refactor(ebpf): drop the redundant UDP claim flag
* refactor(core): plan expiry hints through the conn planner
* refactor(core): validate socket identity storage through the layout checker
* test(core): share the singleton retirement fixture
* test(core): seed retirement flows through the publisher
* test(core): start pin-error epochs through the retirement fixture
* fix(ebpf): never deny host sockets on identity capture failure
* test(config): resync how-to-start documentation ranges
* fix(group): honor network pins in URLTest retries
* fix(anytls): share one silent-window failure episode
* fix(probes): limit graph caps to leaf expansion
* fix(dns): capture bootstrap TCP fallback transport
* perf(outbound): box resolver futures only for observation
* perf(anytls): compile out inert observation storage
* fix(lifecycle): quiesce NFQUEUE and UDP before detaching hooks
* fix(lifecycle): recheck NFQUEUE health before datapath admission
* fix(lifecycle): wait for the UI download owner past its stop deadline
* fix(core): roll back started owners when native startup fails
* fix(udp): never start a preparation after the plan is decided
* fix(tcp): close accepted socket before retiring redirect state
* fix(native): keep kernel route on pinned TCP DNS flows
* fix(native): record UDP DNS refusals independent of DNS log
* fix(reload): clear automatic pins on no-op activation
* fix(native-api): commit geodata settings off the runtime worker
* fix(native-api): mask listener secrets in DNS responses
* fix(native-api): honor wildcard Accept-Encoding for directory UI
* fix(native-api): count each eBPF object once in memory telemetry
* fix(config): sync the current directory for a bare export filename
* fix(native-api): keep dependency identity across an unchanged reload
* fix(native-api): charge provider JSON allocations to snapshot retention
* fix(download): admit selected Score work before a routed download runs
* fix(subscription): skip cache-off providers in the offline body lookup
* fix(download): resolve forced-group hosts with the request's strict resolver
* fix(download): race resolved addresses for direct downloads
* fix(state): skip disabled Clash-owner rows in the legacy cache import
* fix(ui): open the download archive inside the output directory
* perf(routing): hash-index shared IP matcher interning
* fix(config): keep explicit group option presence in structured loaders
* fix(config): skip entry-shaped children of braced subscription entries
* fix(relay): treat unreachable client errors as client-side
* docs(operations): back up legacy subscription bodies before rollout
* docs(api): document refusal request lines at INFO
* docs(api): condition geodata persistence on owner initialization
* docs(api): use the pinned doona commit epoch
* docs(configuration): qualify mode persistence for native-disabled
* docs(groups): sync zh exact-ID selector exception
* docs(rules): name the actual VM lifecycle coverage
* docs(rules): include native-ui in the release feature recipe
* refactor(alive): extract health runner from probe
* refactor(state): let the cache writer own its flush deadline
* refactor(routing): move domain matching into routing/domain.rs
* refactor(config): move experimental section reader into parser/experimental.rs
* refactor(control): split UDP candidate preparation from connection init
* refactor(control): split UDP reply delivery from endpoint driver
* refactor(native-api): move listener secret masking into its own module
* refactor(config): centralize listener secret value decoding
* refactor(native-api): split managed entries and candidate validation
* refactor(control): centralize TCP selection observation
* refactor(observe): own DNS history in the recorder
* refactor(native-api): split security integration tests
* refactor(native-api): separate event HTTP adapters
* refactor(control): split HTTP prober from probers
* refactor(control): extract reload DNS preparation
* refactor(ebpf): share the batch map snapshot traversal
* fix(download): continue Score work across subscription redirects
* perf(reload): skip unpinned groups when clearing automatic pins
* fix(ebpf): prove accepted TCP children from sock_ops
* test(ebpf): verify the sock_ops callback body in the helper audit
* fix(ebpf): prove a child whose publication TC already marked Closing
* docs(datapath): drop the miscounted SYN retry timetable
* fix(routing): share fact IDs between identical matchers
* refactor(core): report retirement outcomes per request
* fix(core): retire UDP endpoints whose kernel flow was reclaimed
* fix(ebpf): select UDP listeners consistently
* fix(ebpf): rate-limit new flows per LAN source
* fix(ebpf): drop fragments of redirected and blocked datagrams
* perf(nfqueue): run staged UDP commits off the async worker
* perf(nfqueue): activate armed direct UDP without a grace period
* perf(nfqueue): batch staged UDP commits
* feat(ebpf): count redirect and handoff occupancy
* fix(core): drive janitor cadence from auxiliary occupancy
* fix(core): resume janitor scans from a persistent cursor
* fix(core): reclaim unpinned TCP and stateless UDP redirects after 30 s
* perf(core): widen retirement batches
* fix(ebpf): suspend reverse UDP learning under conn pressure
* fix(ebpf): learn local UDP service replies at the socket probe
* fix(ebpf): stop publishing TCP state from reverse-direction SYNs
* fix(ebpf): renew owned expired UDP handoffs
* fix(ebpf): exempt TCP port 53 from WAN egress health drops
* fix(ebpf): gate established TCP only at admission
* fix(core): fail startup when dae0_ingress cannot attach
* fix(ebpf): renew UDP conn from proxied replies
* fix(ebpf): continue the TCX chain on pure pass-through
* refactor(core): stop creating clsact qdiscs
* perf(ebpf): collapse redundant locked conn lookups
* perf(ebpf): avoid duplicate WAN UDP failure snapshots
* perf(ebpf): rate-limit repeated expiry hints per flow
* perf(core): find duplicate retirement fences without a quadratic scan
* fix(core): keep the janitor running when a telemetry read fails
* fix(core): name the pressured map and keep retirement causes in janitor logs
* fix(ebpf): clear stale fragment drops on accepted ID reuse
* fix(ebpf): budget local UDP learning per LAN source
* test(ebpf): slim the regression tests added by this series
* docs(datapath): describe the datapath fixes
* fix(core): finish the kernel handoff of a terminal commit that a reload cancels
* fix(core): reject expired staged commits after releasing the backend lock
* fix(core): stop the commit pump under its task lock
* docs(datapath): scope the port-53 health exemption to LAN ingress and WAN egress
* refactor(ebpf): call the shared outbound health gate directly
---------
Co-authored-by: Zakk <zakk@gentoozh.org>
* feat(config): admit Xray XHTTP downloadSettings as an uninherited download peer
* feat(subscription): map panel download-settings to the Xray download peer
* feat(xhttp): send GETs through a separate download peer
* fix(xhttp): send Xray's default Chrome fetch headers without a User-Agent
* fix(tool): cap probe columns separately so slow probes keep sibling results
* docs(agents): redact concrete maintainer lab addresses
* docs(xhttp): document download peers, default request headers and probe column caps
* fix(config): validate and normalize XHTTP download addresses
* refactor(xhttp): resolve the XHTTP mode once in honk-config
* refactor(xhttp): take the GET template from the peer that carries it
* fix(xhttp): check ignored XHTTP options alike in Clash and share links
* fix(xhttp): validate both peers before publishing a split winner
* fix(config): accept an XHTTP headers claim only with a sole Referer
* docs(xhttp): note that download GETs never carry upload headers
* docs(agents): bound XHTTP logical flows per runtime, not per peer
* test(xhttp): cover the node runtime's download pool wiring
* feat(config): admit XHTTP as a stream transport
* feat(outbound): add H2 XHTTP transport for Trojan, VMess and VLESS
* fix(config): require canonical H2 ALPN at XHTTP admission
* fix(config): repin conformance fences after the XHTTP node reference
* test(core): cover the new XHTTP record rejection guards
* fix(outbound): complete stream-up shutdown at upload EOF
* fix(outbound): replace the Referer query with the generated padding
* fix(outbound): escape configured XHTTP paths like Xray
* test(outbound): drop the XHTTP direct-TLS setup test that pins no XHTTP behavior
* fix(outbound): publish draining prepared carriers at winner commit
* fix(outbound): defer XHTTP carrier commit for speculative VLESS H2 UDP
* fix(outbound): warm the H2 mux pool for XHTTP session requirements
* fix(outbound): release dead private carriers during XHTTP preparation
* fix(outbound): surface ready upload errors before stream-up shutdown completes
* docs(outbound): record XHTTP ownership and bounds
* fix(outbound): retain reset XHTTP streams until in-flight frames drain
* fix(outbound): flush VMess uploads only when input is drained
* fix(xhttp): batch packet uploads across flush calls
* fix(xhttp): drain unusable reserved upload carriers
* test(xhttp): consolidate path and refusal coverage
* test(session): remove mirrored carrier publication tests
* fix(session): publish excess detached winners drain-only
* test(outbound): streamline profile and capacity regressions
* fix(config): preserve legacy transport export options
* fix(config): accept XHTTP URI exporter metadata
* fix(config): parse v2rayN XHTTP mode and ALPN
* fix(config): honor XHTTP extra request fallbacks
* fix(config): admit escaped literal XHTTP paths
* fix(config): include XHTTP in transport diagnostics
* test(config): merge overlapping XHTTP admission cases
* refactor(config): normalize XHTTP ALPN in place
* fix(config): ignore VMess JSON certificate verification flags for XHTTP
* refactor(vless): share the boxed carrier start path
* refactor(xhttp): merge streaming upload modes
* fix(xhttp): confirm the first packet-up flush against its POST
* fix(xhttp): recheck flow errors before sending a paced batch
* fix(config): bound the XHTTP path length at admission
* docs(xhttp): list XHTTP in the Trojan and VMess node rows
* docs(agents): scope the eight-response packet-up bound to a flow
* test(tool): rederive the node ID before the XHTTP mux rejection case
* fix(xhttp): confirm the first datagram against its POST
* fix(xhttp): rebind replacement dials to the published owner
* refactor(xhttp): drop the pass-through upload constructors
* refactor(runtime): rebind pooled admission through the lifecycle traversal
* refactor(config): share the XHTTP ALPN list normalization
* test(config): repin the zh configuration conformance fences
* feat(vless): pad Vision uplink and switch it to Direct
* perf(relay): splice Vision carriers once both directions are Direct
* test(vless): run the official Vision interop case weekly
* docs(vless): document Vision uplink support
* fix(pr-304): refresh node documentation conformance ranges
* fix(pr-304): fall back when splice capability probes are denied
* docs(pr-304): clarify conditional Vision Direct transitions
* refactor(pr-304): stack-pin the shared copy futures
* refactor(pr-304): bound random Direct write buffers
* docs(pr-304): correct Vision and splice termination invariants
* test(pr-304): reserve matching bootstrap DNS listeners
* perf(score): fund optional work by offered load and trial yield
* perf(score): double comparison store cells within its memory budget
* perf(score): cap exploration and replace failed members
* fix(score): constrain new work to shared serving pools
* fix(score): reconcile withdrawn child slots before fallback
* fix(score): exclude removed members from trial yield
* refactor(score): report pairwise challenger comparisons instead of group claims
* refactor(score): give optional work to one evidence-bounded dispatch walk
* perf(score): fund validation from original business
* fix(score): restore funded validation without ordinary escape
* fix(score): preserve cadence-aware scoped comparison support
* fix(score): separate empirical comparisons from switching
* fix(score): fund validation for mismatched response cohorts
* fix(score): preserve scoped validation and recovery evidence
* refactor(proxy): simplify shared carrier failure publication
* refactor(dns): centralize scored transport initialization
* fix(proxy): keep target stream failures scoped
* fix(score): preserve business and validation ownership
* fix(quic): retain carrier causes at owning boundaries
* perf(score): look up node stats by key
* perf(score): scan comparison evidence once per decision
* test(score): keep a loaded decision probe
* perf(score): compact removed comparison cells in one pass
* perf(score): reuse snapshot lookup keys across nodes
* perf(score): skip node evidence for unauthorized ranks
* refactor(score): compare challengers in one scan
* perf(score): pair common targets only without exact evidence
* fix(score): compare every eligible challenger
* refactor(score): share reporter counting
* fix(score): advance rotation only when work begins
* refactor(score): share node slots and cohort iteration
* fix(score): resolve reliability-dominated members in comparison coverage
* fix(score): judge response degradation against the same target
* fix(score): count every unqualified candidate as a qualification blocker
* refactor(score): share duplicated budget, exclusion and serialization helpers
* refactor(dns): drop redundant DoQ error gate
* test(score): drop diagnostic probes and duplicate coverage
* test(proxy): merge duplicate carrier failure tests
* test(dns): drop duplicate continuation forwarding test
* test(score): shorten training and probe helper calls
* feat(score): earn optional work every sixteen businesses
* feat(score): bound comparison claims to a demand-sized evaluation set
* refactor(score): drop membership-sized earning period remnants
* feat(score): cover ranked members from their first qualification
* fix(score): simplify bounded coverage ownership
* refactor(vless): move H2MUX record padding into its own module
* fix(score): report one episode per shared carrier failure
* fix(score): expire claims when a covered member loses qualification
* test(score): pin decayed demand evaluation sizes
* test(control): drop the TCP recovery exhaustion loop that spent no credits
* refactor(score): keep comparison claim expiry as instants
* refactor(score): share one comparison view and join covered pairs once
* refactor(score): derive group claims in named passes of their own module
* refactor(score): keep validation run transitions pure and acquire work in plan
* fix(outbound): surface gRPC and VMess rejections as stream errors
A peer that refuses a gRPC stream used to read as a successful dial
followed by a clean EOF: the frame parser treated END_STREAM as the only
signal and never looked at HEADERS, RST_STREAM or GOAWAY. The stream now
records a failure and reports it from every poll instead of EOF when the
peer answers a non-200 `:status`, ends the stream before any DATA (the
trailers-only shape a gRPC server declines with), ends it with a non-zero
`grpc-status`, resets the stream, or sends a GOAWAY that excludes the
stream or carries an error; a graceful GOAWAY past our stream lets it
finish. END_STREAM on a HEADERS frame takes effect once its block is
complete and judged, so a verdict split over CONTINUATION is not lost.
Header blocks are read with a small HPACK reader that keeps the dynamic
table and decodes Huffman strings (RFC 7541 appendix B), since h2 encoders
Huffman-code `grpc-status`; only `:status` and `grpc-status` are kept.
The VMess relay task's result was dropped with its abort handle, so a
rejected response header or an invalid chunk closed the duplex and the
owner read EOF. The task now records how it ended before its duplex half
closes, and the stream reports that error on the poll that would have
been EOF (and on writes that fail for the same reason).
Closes#274.
* fix(outbound): use h2 for bounded gRPC response handling
---------
Co-authored-by: eries <coloredflowers@outlook.com>
* feat(score): verify fresh evidence and bound TCP recovery
* fix(core): distinguish DNS timeouts from dial admission waits
* fix(score): date business usability from response progress
* fix(ebpf): resolve embedded objects from the current checkout
* fix(dns): honor terminal traffic-rule ownership
* fix(nfqueue): sample statistics in the caller's network namespace