code wiki / _hdl_build / nx_ims_monitor_live.nx

nx_ims_monitor_live.nx

buildroot/runtime/_hdl_build/nx_ims_monitor_live.nx

9390 B211 linesdepth 7pulls 7 transitivereach 0 importersview sourcekind tooltopic ims
docsdependenciesstructsconstsfunctions

about

nx_ims_monitor_live.nx -- IMS A1 LIVE RUN over the REAL published wiki corpus. READ-ONLY by construction: reads ONE framed corpus snapshot via sys_read_file and computes in memory. Writes NOTHING to the corpus / NAS / anything (the only output is the analysis report to stdout + knowledge/status log). The snapshot knowledge/status/ims_live_corpus.txt is a read-only capture of the live HTTPS pages (each page's exact served bytes), framed as: ###PAGE /wiki/<url> <bytelen>\n <bytelen bytes of page> \n###ENDPAGE\n The bytes ARE the live pages; the framing is just a transport so a sovereign .nx organ can ingest the corpus without a network/CA-bundle dependency. The link-graph ANALYSIS -- the actual A1 capability -- runs 100% in nx_ims_monitor. Populates NxWikiDocStore from the frames, resolves the root (start), then runs nx_ims_orphans + nx_ims_dead_links and prints the findings (orphans[] + dead_links[] with the exact offending target). Sovereign: nx_ims_monitor (composing nx_wiki_index_builder + nx_wiki_backlinks) + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_ims_monitor.nx nx_syscalls.nx nx_ims_monitor_live.nx

imports: nx_ims_monitor.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

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

main sys_openat_append lp sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_exit ln_ lp ↻ sys_mmap ↻ sys_write ↻ nx_wiki_doc_store_init sys_mmap ↻ is_page_mark parse_int nx_wiki_doc_store_add sys_mmap ↻ nx_wib_pool_alloc lb sys_write ↻ nx_ims_resolve_root nx_wiki_doc_store_count sys_mmap ↻ nx_wiki_doc_store_lookup nx_ims_slug_eq sys_mmap ↻ nx_ims_norm_slug nx_ims_strip_frag_query nx_ims_orphans nx_wiki_doc_store_count ↻ sys_mmap ↻ nx_ims_inbound_counts nx_wiki_doc_store_count ↻ sys_mmap ↻ nx_wiki_doc_store_lookup ↻

structs

none

consts

21const LIVE_MAGIC_8192: i64 = 8192
22const LIVE_MAGIC_16384: i64 = 16384
24const LIVE_MAX_BYTES: i64 = 4194304 // 4 MB snapshot cap
25const LIVE_MARK_PAGE_N: i64 = 8 // len("###PAGE ")

functions

27func lp(logfd: i64, s: *u8) -> i64
called by 2: ln_main calls 1: sys_write
34func ln_(logfd: i64, v: i64) -> i64
called by 1: main calls 3: lpsys_mmapsys_write
48func lb(logfd: i64, p: *u8, n: i64) -> i64
called by 1: main calls 1: sys_write
64func parse_int(buf: *u8, off: i64, lim: i64, out_off: *i64) -> i64
called by 1: main
85func is_page_mark(buf: *u8, off: i64, lim: i64) -> i64
called by 1: main
97func main() -> i64