code wiki / _hdl_build / nx_ims_monitor_live.nx
nx_ims_monitor_live.nx
buildroot/runtime/_hdl_build/nx_ims_monitor_live.nx
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
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
structs
| none |
consts
| 21 | const LIVE_MAGIC_8192: i64 = 8192 |
| 22 | const LIVE_MAGIC_16384: i64 = 16384 |
| 24 | const LIVE_MAX_BYTES: i64 = 4194304 // 4 MB snapshot cap |
| 25 | const LIVE_MARK_PAGE_N: i64 = 8 // len("###PAGE ") |
functions
| 27 | func lp(logfd: i64, s: *u8) -> i64 |
| 34 | func ln_(logfd: i64, v: i64) -> i64 |
| 48 | func lb(logfd: i64, p: *u8, n: i64) -> i64 |
| 64 | func parse_int(buf: *u8, off: i64, lim: i64, out_off: *i64) -> i64 called by 1: main |
| 85 | func is_page_mark(buf: *u8, off: i64, lim: i64) -> i64 called by 1: main |
| 97 | func main() -> i64 |