code wiki / (root) / nx_substrate_review.nx

nx_substrate_review.nx

buildroot/runtime/nx_substrate_review.nx

7471 B187 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic substrate
docsdependenciesstructsconstsfunctions

about

nx_substrate_review.nx -- read-only review of the proposal queue. Reads specs/proposed_changes.jsonl via sys_read; counts proposals by (kind, status); prints a human-readable summary. Never edits the file, never approves anything -- approval is human-only per proposal workflow. Per user directive (use our write/read): pure NishiLang sys_read + sys_write; no shell tools. Usage: compile + run -> stdout summary To approve a proposal: edit specs/proposed_changes.jsonl by hand (change "status":"pending" -> "status":"approved" on the chosen line).

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_substrate_review.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.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 sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close sys_write strlen review_one has_substr strlen ↻ println sys_write ↻ strlen ↻ sys_mmap ↻ print sys_write ↻ strlen ↻ print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ print_row print ↻ print_i64 ↻ println ↻

structs

48struct ReviewCounts

consts

26const STDOUT: i64 = 1

functions

29func has_substr(line: *u8, line_len: nx_size, needle: *u8) -> nx_int
called by 1: review_one calls 1: strlen
69func review_one(line: *u8, line_len: nx_size, c: *ReviewCounts) -> i64
called by 1: main calls 1: has_substr
114func print_row(label: *u8, p: nx_int, a: nx_int, r: nx_int) -> i64
called by 1: main calls 3: printprint_i64println
127func main() -> i64