code wiki / (root) / nx_write_run.nx

nx_write_run.nx

buildroot/runtime/nx_write_run.nx

10431 B238 linesdepth 9pulls 13 transitivereach 0 importersview sourcekind orphan library
docsdependenciesstructsconstsfunctions

about

nx_write_run.nx -- WRITING arc: the FILE-DRIVEN RUNNER (the tool the operator runs on a real story). It reads everything from knowledge/staging/write/: story.txt the work (operator/lane content -- Claude never authors it) roster.txt character bible, one name per line descriptors.txt descriptor lexicon, one term per line (setting/outfit/mood/...) register.txt "term weight" per line (intensity lexicon; optional) gov.txt "threshold age consent locale" ints (optional; default 5 1 1 1) and emits, per scene, the IMAGE-GEN prompt + COMPANION context, plus the register route -> stdout AND knowledge/staging/write/out.txt. This keeps the seam intact: the operator drops their content + lexicons here and runs the tool; the engine (all gated organs) does the structuring. Build+run: ./_offc/nx_sov_build_run.elf nx_write_run license_tier: ORIGINAL module: nishi-core.write.run depends: nishi-core.write.parselex, nishi-core.write.emit, nishi-core.write.register capability: WRITE_RUN_TOOL

dependencies 5 imports · 0 importers

nx_syscalls_x86_64.nx nx_parse_lex.nx nx_emit.nx nx_register.nx nx_conflict.nx nx_write_run.nx

imports: nx_syscalls_x86_64.nxnx_parse_lex.nxnx_emit.nxnx_register.nxnx_conflict.nx

imported by: nobody (leaf or entry point)

structs

none

consts

25const WR_MAXSC: i64 = 128

functions

28func wstr(outfd: i64, s: *u8) -> i64
36func wnum(outfd: i64, v: i64) -> i64
51func wterm(outfd: i64, terms: *u8, idx: i64) -> i64
60func parse_ints(raw: *u8, n: i64, out: *i64, maxk: i64) -> i64
80func first_line(buf: *u8, n: i64) -> i64
95func main() -> i64