code wiki / (root) / nx_frontier_watch.nx

nx_frontier_watch.nx

buildroot/runtime/nx_frontier_watch.nx

7373 B112 linesdepth 23pulls 152 transitivereach 0 importersview sourcekind tooltopic frontier
docsdependenciesstructsconstsfunctions

about

nx_cap_harvest.nx -- the DAILY FRONTIER WATCH. For each topic in knowledge/registry/harvest_topics.conf it fetches arXiv (POLITELY -- paces + backs off via nx_net_polite), records total-volume + newest-month recency share (via nx_search_emerge), and APPENDS a timestamped row to the sovereign seg-store knowledge/store/harvest. Over daily runs the DRIFT of volume/share per topic = the emergence signal (a field accelerating = worth investing) -- this is the "stay abreast of the world (Kimi 3 etc.)" half, complementing the census which re-measures OUR code. Self-locates to buildroot; loads the TLS trust store from data/ or ../data/. license_tier: ORIGINAL

dependencies 8 imports · 0 importers

nx_search_emerge.nx nx_search_extern.nx nx_net_polite.nx nx_flatstore_flip.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_syscalls.nx nx_estate_path.nx nx_frontier_watch.nx

imports: nx_search_emerge.nxnx_search_extern.nxnx_net_polite.nxnx_flatstore_flip.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_syscalls.nxnx_estate_path.nx

imported by: nobody (leaf or entry point)

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

main ep_anchor sys_openat_rd sys_close sys_chdir sys_mmap hp sys_write hv_self_locate sys_openat_rd ↻ sys_close ↻ sys_chdir ↻ sys_mmap ↻ hv_app sys_mkdir nx_trust_store_load_from_c sys_mmap ↻ sys_read_file sys_openat_rd ↻ sys_lseek sys_mmap ↻ sys_read sys_close ↻ nx_nss_certdata_parse sys_mmap ↻ _pat_class_cert _pat_value_octal _pat_end _find_newline _starts_with _parse_octal_line sys_mmap ↻ _is_space _decode_octal_escape _is_octal trust_store_alloc sys_mmap ↻ nx_x509_trust_store_load sys_mmap ↻ x509_parse

structs

none

consts

16const K_MAGIC_4096: i64 = 4096
17const K_MAGIC_4194304: i64 = 4194304
18const K_MAGIC_16384: i64 = 16384
19const K_MAGIC_16000: i64 = 16000
20const K_MAGIC_1024: i64 = 1024

functions

22func hp(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 calls 1: sys_write
23func hn(v: i64) -> i64 { if v==0 { sys_write(1,"0" as *u8,1); return 0 } var m: i64=v; if m<0 { sys_write(1,"-" as *u8,1); m=0-m } let t: *u8=sys_mmap(28); var k: i64=0; while m>0 { t[k]=(48+(m%10)) as u8; m=m/10; k=k+1 } while k>0 { k=k-1; sys_write(1,(((t as i64)+k) as *u8),1) } return 0 }
24func hv_app(dst: *u8, off: i64, s: *u8) -> i64 { var o: i64=off; var i: i64=0; while s[i]!=(0 as u8) { dst[o]=s[i]; o=o+1; i=i+1 } return o }
called by 2: hv_self_locatemain
25func hv_numto(dst: *u8, off: i64, v: i64) -> i64
calls 1: sys_mmap
34func hv_self_locate(argv: *i64) -> i64
48func main(argc: i64, argv: *i64) -> i64