nx_writer_run.nx
buildroot/runtime/nx_writer_run.nx
about
nx_writer_run.nx -- WRITING arc, rung W-RUN-2: the UNIFYING file-driven runner.
One tool, every mode. Reads the chosen mode + the mode registry, ENFORCES the
seam (refuses if the registry routes an explicit mode off the local lane),
resolves register/lane/structure, and dispatches to the right organ -- emitting
the structured artifact the generation SEAT then expands (SFW=tutor seat,
explicit=operator local-LLM seat; this tool authors no prose, per the seam).
Does NOT touch the existing nx_write_run (its scene-ingestion path is unchanged).
Staging: knowledge/staging/writer/{mode,scenario,manga,voice,draft}.txt ;
registry SSOT: knowledge/registry/write_modes.tsv . Build+run:
./_offc/nx_sov_build_run.elf nx_writer_run
license_tier: ORIGINAL
module: nishi-core.write.writerrun
depends: nishi-core.write.mode/scenario/manga/tone
capability: WRITE_RUN_UNIFIED
dependencies 6 imports · 0 importers
imports: nx_syscalls_x86_64.nxnx_mode.nxnx_scenario.nxnx_manga.nxnx_tone.nxnx_campaign.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 23 | const K_MAGIC_1024: i64 = 1024 |
functions
| 25 | func wstr(outfd: i64, s: *u8) -> i64 |
| 32 | func wnum(outfd: i64, v: i64) -> i64 |
| 47 | func wr_firstline(buf: *u8, n: i64) -> i64 called by 1: main |
| 62 | func wr_do_scenario(outfd: i64, lanb: *u8) -> i64 |
| 76 | func wr_do_convo(outfd: i64, lanb: *u8) -> i64 |
| 90 | func wr_do_manga(outfd: i64, lanb: *u8) -> i64 |
| 105 | func wr_do_campaign(outfd: i64, lanb: *u8) -> i64 |
| 134 | func wr_do_tone(outfd: i64, lanb: *u8) -> i64 |
| 170 | func main() -> i64 |