code wiki / _hdl_build / nx_builder_authors_sig_index.nx

nx_builder_authors_sig_index.nx source

↩ module page · 17 lines · 1045 B

1// nx_builder_authors_sig_index.nx -- the BUILDER authors the S3 SIGNATURE INDEX (the component 2// catalog of the code-synthesis ladder). Claude tutored the architecture 3// (knowledge/specs/2026-06-09-tutoring-code-synthesis-rung1.md PART A); the Builder authors the 4// module; the Engineer compiles+runs it; the gate is the module's own self-test (corpus floor + 5// spot-KATs + full-second-pass determinism). license_tier: ORIGINAL 6import "nx_module_author.nx" 7import "nx_syscalls.nx" 8const K_MAGIC_5000: i64 = 5000 9func _b(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } 10func main() -> i64 { 11 _b("BUILDER authors the S3 signature index (typed component catalog of runtime/*.nx)\n" as *u8) 12 let fd: i64 = sys_openat_wr("runtime/_hdl_build/_sig_index_authored.nx" as *u8, 0x1a4) 13 ma_emit_sig_index(fd, "runtime" as *u8, "/tmp/nishi_sig_index.txt" as *u8, K_MAGIC_5000) 14 sys_close(fd) 15 _b(" -> _sig_index_authored.nx authored; Engineer verifies next\n" as *u8) 16 sys_exit(0); return 0 17}