code wiki / (root) / nx_lib_write_test.nx

nx_lib_write_test.nx

buildroot/runtime/nx_lib_write_test.nx

2351 B57 linesdepth 7pulls 14 transitivereach 0 importersview sourcekind gate/prooftopic lib
docsdependenciesstructsconstsfunctions

about

nx_lib_write_test.nx -- gate for the sovereign WRITE endpoint (POST /api/ingest). Ingest a TSV body via lhd_ingest_response -> store + reindex -> the new work is immediately GETtable and SEARCHable. Proves write->read over the router, no socket needed. No python/sqlite. Exit = failed assertion #.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_lib_http.nx nx_lib_write_test.nx

imports: nx_syscalls.nxnx_lib_http.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap lhd_ingest_response nx_lib_ingest_buf sys_mmap ↻ nx_lib_store_put_work sys_mmap ↻ ls_key ls_cat ss_next_segid sys_mmap ↻ ss_cat ss_readall sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ss_segid_ok ss_begin ss_begin_cap sys_mmap ↻ ss_add ss_add2 ss_w32 ss_len ss_get sys_mmap ↻ ss_scan sys_mmap ↻ ss_manifest_dyn ss_scan_seglist ls_strlen ls_name_present ss_commit ss_segid_ok ↻ sys_mmap ↻ ss_cat ↻ ss_catn sys_mmap ↻

structs

none

consts

none

functions

8func lwt_has(hay: *u8, hayn: i64, needle: *u8) -> i64
called by 1: main calls 1: ls_strlen
27func main() -> i64