code wiki / _hdl_build / nx_model_card.nx

nx_model_card.nx

buildroot/runtime/_hdl_build/nx_model_card.nx

19136 B400 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind tooltopic model
docsdependenciesstructsconstsfunctions

about

nx_model_card.nx -- F785 THE SOVEREIGN MODEL CARD RENDERER (operator 2026-07-20: "model card like Inkling with all the same measurements and breakdowns to comp as we build our capabilities against these models ... nishi sovereign information plane ... emit and publish and host this card from the first byte up natively as capability and keep it fresh"). PURE RENDERER: every byte of content comes from the sovereign plane knowledge/store/modelcard- (25 bench + 10 property + 7 prose + 1 meta rows, hist- provenance) plus the LIVE measured SWE-bench-analog source sites/nishifamily/compare/autograde/api.json -- the b05 NISHI cell is substituted at emit time (keep-it-fresh from the source, never a frozen number). HONESTY BY CONSTRUCTION: a NISHI cell renders MEASURED (green, live artifact) / ANALOG (orange, not head-to-head) / UNMEASURED:F-rung (gray, harness filed) -- fabrication has no code path. nx_model_card -> ATOMIC emit to sites/nishifamily/modelcard.html (beat mode) nx_model_card emit <outpath> -> ATOMIC emit (tmp + renameat) to <outpath> nx_model_card selftest -> in-memory emit + substring teeth, exit 0/3 ENVELOPE (declared): plane cap 1MiB, out cap 512KiB, 16-col rows; plane content is operator-trusted (no HTML-escape pass; plane vocabulary carries no < > &). license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0

dependencies 5 imports · 0 importers

nx_store_seed_lib.nx nx_seg_store.nx nx_syscalls.nx nx_estate_path.nx nx_html_head.nx nx_model_card.nx

imports: nx_store_seed_lib.nxnx_seg_store.nxnx_syscalls.nxnx_estate_path.nxnx_html_head.nx

imported by: nobody (leaf or entry point)

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

main ep_anchor sys_openat_rd sys_close sys_chdir sys_mmap sys_mmap ↻ sts_load ss_open_cached ssc_init sys_mmap ↻ ssc_sig_of ss_cat sys_fstatat ssc_streq ss_open ss_open2 sys_mmap ↻ ss_manifest_dyn ss_manifest_file_dyn ss_cat ↻ ss_loadfile sys_map_file ss_readall ss_load_aux2 sys_mmap ↻ ss_cat ↻ ss_loadfile ↻ ss_r32 sys_munmap ssl_total_keys ss_r32 ↻ ssl_pow2 ssl_build ss_r32 ↻ ssl_hash_entry ssl_key_eq ss_r32 ↻ ssl_lookup ssl_hash_entry ↻

structs

none

consts

23const MC_PREFIX: *u8 = "knowledge/store/modelcard-" as *u8
24const MC_APIJSON: *u8 = "sites/nishifamily/compare/autograde/api.json" as *u8
25const MC_NL: i64 = 10
26const MC_TAB: i64 = 9
27const MC_DASH: i64 = 45
28const MC_ZERO: i64 = 48
29const MC_NINE: i64 = 57
30const MC_BASE10: i64 = 10
31const MC_STDERR: i64 = 2
32const MC_PLANECAP: i64 = 1048576
33const MC_OUTCAP: i64 = 524288
34const MC_SLACK: i64 = 4096
35const MC_SPB: i64 = 256
36const MC_PAIR: i64 = 2
37const MC_NCOLMAX: i64 = 16
38const MC_MODE: i64 = 0x1a4
39const MC_TMPB: i64 = 28
40const MC_UCAP: i64 = 16
41const MC_PATHCAP: i64 = 512
42const MC_ANSOFF: i64 = 10
43const MC_GENOFF: i64 = 17
44const MC_C_AXIS: i64 = 1
45const MC_C_BENCH: i64 = 2
46const MC_C_UNIT: i64 = 3
47const MC_C_INK: i64 = 4
48const MC_C_MFIRST: i64 = 4
49const MC_C_MLAST: i64 = 12
50const MC_C_NISHI: i64 = 13
51const MC_C_NOTE: i64 = 14
52const MC_NCOL: i64 = 15
53const MC_IDX_VERB: i64 = 1
54const MC_IDX_OUT: i64 = 2
55const MC_ARGC_VERB: i64 = 2
56const MC_ARGC_OUT: i64 = 3
57const MC_S: i64 = 115
58const MC_EXIT_EMPTY: i64 = 1
59const MC_EXIT_SELF: i64 = 3
60const MC_MINBYTES: i64 = 12000

functions

62func mc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
63func mc_werr(s: *u8) -> i64 { sys_write(MC_STDERR, s, mc_slen(s)); return 0 }
called by 1: main calls 2: sys_writemc_slen
64func mc_puts(b: *u8, off: i64, s: *u8) -> i64
70func mc_putsl(b: *u8, off: i64, q: *u8, a: i64, e: i64) -> i64
76func mc_puti(b: *u8, off: i64, v: i64) -> i64
called by 2: mc_nishimain calls 1: sys_mmap
88func mc_cols(q: *u8, ls: i64, le: i64, sp: *i64) -> i64
103func mc_seq(q: *u8, a: i64, b: i64, s: *u8) -> i64
called by 3: mc_notemc_axismc_props calls 1: mc_slen
110func mc_pfx(q: *u8, a: i64, b: i64, s: *u8) -> i64
called by 1: mc_nishi calls 1: mc_slen
117func mc_find(hay: *u8, n: i64, needle: *u8, from: i64) -> i64
called by 2: mc_countmain calls 1: mc_slen
130func mc_uint(buf: *u8, p: i64, n: i64) -> i64
called by 1: main
145func mc_note(q: *u8, qn: i64, id: *u8, u: *i64) -> i64
called by 2: mc_prosemain calls 3: sys_mmapmc_colsmc_seq
160func mc_prose(out: *u8, o0: i64, q: *u8, qn: i64, id: *u8, hd: *u8) -> i64
called by 1: main calls 4: mc_putssys_mmapmc_notemc_putsl
173func mc_count(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 2: mc_slenmc_find
184func mc_nishi(out: *u8, o0: i64, q: *u8, a: i64, b: i64, lp: i64) -> i64
223func mc_axis(out: *u8, o0: i64, q: *u8, qn: i64, ax: *u8, hd: *u8, lp: i64) -> i64
265func mc_props(out: *u8, o0: i64, q: *u8, qn: i64) -> i64
296func main(argc: i64, argv: *i64) -> i64