code wiki / _hdl_build / nx_edge_vantage.nx
nx_edge_vantage.nx
buildroot/runtime/_hdl_build/nx_edge_vantage.nx
about
nx_edge_vantage.nx -- EDGE REACHABILITY AS A SOVEREIGN ORGAN (2026-08-06, debt 1786068787).
WHY THIS FILE EXISTS AT ALL. The capability shipped first as nishi-ops/edge_vantage_beat.ps1 --
POWERSHELL, i.e. a borrowed third-party runtime -- which violates the standing law "build NISHI
tooling for every need; never default to linux/3rd-party tools where an organ exists or can be
built" and rule 27 (shell exists ONLY to launch a sovereign ELF). The operator caught it directly.
The MEASUREMENT is irreducibly off-box -- the NAS cannot tell you whether the WAN reaches its own
front door, so something must run away from the box -- but NOTHING about that requires PowerShell.
The estate already settled this exact shape with nx_content_ship: an organ whose work irreducibly
starts laptop-side is still a SOVEREIGN ELF, and the shell is reduced to one launch line.
WHAT IT MEASURES, AND WHY IT IS NOT A PING. A pass/fail probe cannot separate "our edge, transient
blip" from "answered by the wrong server entirely" -- and for two days the estate's standing answer
to any transport error was a memory line about a :443 co-squat that had ALREADY BEEN FIXED on
08-04. So this asks WHO ANSWERED: our sovereign edge stamps X-Served-By, and a co-squatting server
cannot. That single header turns folklore into a measurement.
DEGRADED IS A DISTINCT VERDICT ON PURPOSE. Collapsing partial reachability into OK is how an
intermittent fault hides until it is total; collapsing it into FAIL cries wolf. MEASURED on the
PowerShell predecessor: a real window came back 4-of-6 handshakes with the rest clean, which is
exactly the state neither OK nor FAIL describes.
VANTAGE IS PART OF THE READING, NEVER AN ASSUMPTION -- so it is an ARGUMENT and it is printed.
Running this organ ON the NAS and OFF it are DIFFERENT EXPERIMENTS with different correct answers
(the NAS hairpin does not necessarily reach our own edge), which makes the same binary its own
negative control. A row that does not say where it was taken is not evidence.
nx_edge_vantage [url] [n] [vantage-label]
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 12 imports · 0 importers
diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_tls13_chrome_session.nxnx_https_url_for_fetch.nxnx_https_url_connect.nxnx_https_get_complete.nxnx_tls_cert_cache.nxnx_https_fetch_lib.nx
imported by: nobody (leaf or entry point)
structs
| none |
consts
| 43 | const EV_OUTCAP: i64 = 1048576 |
| 44 | const EV_ROWCAP: i64 = 2048 |
| 45 | const EV_DEF_N: i64 = 6 |
| 46 | const EV_MAX_N: i64 = 64 |
functions
| 48 | func ev_put(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } calls 1: sys_write |
| 49 | func ev_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: ev_has |
| 50 | func ev_cat(d: *u8, o: i64, s: *u8) -> i64 { var x: i64 = o; var i: i64 = 0; while s[i] != (0 as u8) { d[x] = s[i]; x = x + 1; i = i + 1 } return x } |
| 51 | func ev_catn(d: *u8, o: i64, v: i64) -> i64 calls 1: sys_mmap |
| 63 | func ev_atoi(s: *u8) -> i64 { var v: i64 = 0; var i: i64 = 0; while s[i] != (0 as u8) { let c: i64 = s[i] as i64; if c >= 48 { if c <= 57 { v = v * 10 + (c - 48) } } i = i + 1 } return v } |
| 65 | func ev_has(buf: *u8, n: i64, lit: *u8) -> i64 calls 1: ev_slen |
| 80 | func main(argc: i64, argv: *i64) -> i64 |