code wiki / (root) / nx_sovereign_page_emit.nx

nx_sovereign_page_emit.nx

buildroot/runtime/nx_sovereign_page_emit.nx

8313 B143 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic sovereign
docsdependenciesstructsconstsfunctions

about

nx_sovereign_page_emit.nx -- sovereign emitter: content/sovereign.rows -> dist/sovereign/index.html. THE apertvs.ai-analog: a PUBLISHED, sovereign page that surfaces the nx_openpub_census verdict matrix (Nishi vs apertvs.ai / Apertus) so the capability is SEEN, not just proven on disk ([[feedback-tools-must-surface-in-ui]]). Data-driven: the verdict rows live in the pipe-delimited manifest content/sovereign.rows (the SSOT); editing it + re-running this organ regenerates the page. Mirrors the proven nx_hub_emit pattern EXACTLY (same he_* helpers, same read->line-parse->split->emit->write spine, same /assets/style.css chrome, HTML-escaped text fields, no dead links). File-I/O only -> imports the leaf x86_64 syscall layer ONLY (builds clean around the syscall-dup gotcha, [[nishi-serving-syscall-dup-gotcha]]). Run from the nishi-pages checkout (content/ + dist/ resolve); dist/sovereign must exist. Build: nx_sov_build_run nx_sovereign_page_emit --install (sovereign nx_cc->nxasm, no gcc; installs to _offc) Run: cd nishi-pages && mkdir -p dist/sovereign && _offc/nx_sovereign_page_emit.elf nx_capability_claims: needs: [x86_64_syscalls, pipe_delimited_parse] provides: [sovereign_page_emit, census_matrix_publish, data_driven_verdicts] safety: [html_escape_text_fields, no_floating_point, fixed_output_path, no_dead_links] verdict: [exit_0_ok] license: ORIGINAL kind: nishi_pages_specialist raci: [R=nishi_pages_builder, A=elder_west, C=openpub_census_owner, I=conductor]

dependencies 1 imports · 0 importers

nx_syscalls_x86_64.nx nx_sovereign_page_emit.nx

imports: nx_syscalls_x86_64.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main he_puts he_split he_eq he_putb he_put_esc he_puts ↻ sys_openat_wr

structs

none

consts

23const K_MAGIC_262144: i64 = 262144

functions

26func he_puts(buf: *u8, off: i64, s: *u8) -> i64
called by 2: he_put_escmain
33func he_putb(buf: *u8, off: i64, src: *u8, n: i64) -> i64
called by 1: main
40func he_put_esc(buf: *u8, off: i64, src: *u8, n: i64) -> i64
called by 1: main calls 1: he_puts
54func he_eq(buf: *u8, off: i64, n: i64, lit: *u8) -> i64
called by 1: main
65func he_split(buf: *u8, ls: i64, le: i64, foff: *i64, flen: *i64) -> i64
called by 1: main
80func main() -> i64