code wiki / _hdl_build / nx_transport_policy_gate.nx
nx_transport_policy_gate.nx
buildroot/runtime/_hdl_build/nx_transport_policy_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 15 | func pw2(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 16 | func pn2(v: i64) -> i64 called by 1: main |
| 20 | func contains2(hay: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 26 | func chk2(name: *u8, ok: i64, pass: *i64) -> i64 |
| 32 | func main() -> i64 |