code wiki / _hdl_build / nx_ws_lost.nx

nx_ws_lost.nx

buildroot/runtime/_hdl_build/nx_ws_lost.nx

3173 B60 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind tooltopic ws
docsdependenciesstructsconstsfunctions

about

nx_ws_lost.nx -- READ-ONLY diagnostic: name + CLASSIFY the "lost segment(s)" that make nx_ws_board REFUSE. Runs the board's own completeness gate (ws_audit_complete_p over WS_PREFIX), then for each failing id reports the EXACT root cause: RECORD-ABSENT (ws:<id> not retrievable -> lost/torn/never-committed) vs ORPHAN-EMPIRE (record present but its empire is not in ws:empires). ADDITIVE + READ-ONLY: opens the store via ss_get/ss_open, writes NOTHING. Sovereign: imports only nx_workstream_store (R1, read-only) + nx_syscalls. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_workstream_store.nx nx_syscalls.nx nx_ws_lost.nx

imports: nx_workstream_store.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 lo_w sys_write sys_mmap ws_audit_complete_p sys_mmap ↻ ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻ ssl_key_eq ↻ ss_manifest_free

structs

none

consts

8const K_MAGIC_1024: i64 = 1024

functions

10func lo_w(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
11func lo_wn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
20func main() -> i64