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 orphan librarytopic 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)

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 }
11func lo_wn(v: i64) -> i64
20func main() -> i64