code wiki / _hdl_build / nx_transport_policy_gate.nx

nx_transport_policy_gate.nx

buildroot/runtime/_hdl_build/nx_transport_policy_gate.nx

5281 B107 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind gate/prooftopic transport
docsdependenciesstructsconstsfunctions

about

nx_transport_policy_gate.nx -- gate for the TIERED TRANSPORT policy (best-of-June-2026 on top, skilled fallbacks, mandatory failure flagging, auto-heal). KATs the whole life-cycle: T1 best-tier selection per capability mask (QUIC>striped>single; nothing->0 hard-down) T2 skilled fallback: failures below threshold KEEP the tier (no flap); the 3rd consecutive failure falls ONE rung (T1->T2->T3, clamped) T3 success resets the failure counter (one blip never accumulates into a fallback) T4 auto-heal: upgrade probe allowed only after the backoff window; backoff DOUBLES per fallback (30->60) and caps; a successful upgrade HALVES it (healing accelerates) T5 flag line: every transition assembles the mandatory TRANSPORT-TIER line (FAIL-DOWN verdict=DEGRADED / HEAL-UP verdict=GREEN) -- parse-checked byte content T6 NEG: no upgrade before the window; T7 NEG: tier never falls below SINGLE. expect_exit: 0 license_tier: ORIGINAL

dependencies 1 imports · 0 importers

nx_transport_policy.nx nx_transport_policy_gate.nx

imports: nx_transport_policy.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main pw2 tp_best chk2 pw2 ↻ tp_on_failure tp_on_success tp_should_retry_upgrade tp_on_upgrade tp_flag tp_apps tp_appn sys_mmap contains2 pn2

structs

none

consts

none

functions

15func pw2(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 2: chk2main
16func pn2(v: i64) -> i64
called by 1: main
20func contains2(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main
26func chk2(name: *u8, ok: i64, pass: *i64) -> i64
called by 1: main calls 1: pw2
32func main() -> i64