code wiki / _hdl_build / nx_url_scrub.nx

nx_url_scrub.nx

buildroot/runtime/_hdl_build/nx_url_scrub.nx

4921 B93 linesdepth 5pulls 10 transitivereach 0 importersview sourcekind tooltopic url
docsdependenciesstructsconstsfunctions

about

nx_url_scrub.nx -- ADDITIVE repair for poisoned url:<cid> rows (the 2026-07-03 empty-literal bug stamped every library doc with an unterminated-pool href). Append-only store law: never delete -- SHADOW each bad row with a 0-length value in a fresh segment; the serve layer treats ul==0 as "no url" and falls back to the /doc view. usage: nx_url_scrub <domain> <bad-prefix> (scrubs rows whose CURRENT value starts with bad-prefix; idempotent -- an already-shadowed row has length 0 and never matches). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_docportal_search_seg.nx nx_itoa_lib.nx nx_url_scrub.nx

imports: nx_docportal_search_seg.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main us_puts us_len dss_prefix ss_open ss_open2 ss_open3 sys_now_us sys_mmap nxa_die nxa_lock_take nxa_lock_give nxa_report_overrun sys_clock_gettime_mono sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn sys_mmap ↻ ss_cat ss_readall sys_munmap ss3_admit ss3_ann sys_mmap ↻ ss_cat ↻ ss_catn sys_write sys_munmap ↻ sys_now_us ↻ ss3_streq ss3_docs_size sys_mmap ↻ ss_cat ↻ sys_fstatat sys_munmap ↻ ss3_load_range ss_cat ↻ ss_loadfile sys_map_file ss_readall ↻

structs

none

consts

none

functions

9func us_puts(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 1: main
14func us_num(v: i64) -> i64 { nxi_out(v); return 0 }
called by 1: main calls 1: nxi_out
15func us_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
17func main(argc: i64, argv: *i64) -> i64