code wiki / _hdl_build / nx_game_synth.nx
nx_game_synth.nx
buildroot/runtime/_hdl_build/nx_game_synth.nx
about
nx_game_synth.nx -- the SOVEREIGN SYNTHESIS engine: the Nishi researcher does the research ANALYSIS itself
(no Claude deep-research in the loop), built hardware-up. This is the keystone rung = the CORROBORATION
engine: the >=2-source no-hearsay rule ([[feedback-no-wave-measured-exceed]]) made MECHANICAL. For a technique
term, it counts how many DISTINCT source files in the sovereign corpus (knowledge/fetched/*.raw) attest it ->
a term is CORROBORATED only if >=2 independent sources mention it (no single-source hearsay, no fabrication).
HONEST SCOPE: this is mechanical extraction + corroboration (real, gradeable) -- NOT LLM-quality semantic
synthesis (that = the no-float sovereign-LLM arc, the named destination). gs_* organs compose upward.
license_tier: ORIGINAL
dependencies 2 imports · 4 importers
imports: nx_syscalls.nxnx_dirent.nx
imported by: nx_game_genre_census.nxnx_game_research_census.nxnx_game_sclass_census.nxnx_game_synth_gate.nx
structs
| none |
consts
| 11 | const GS_MAGIC_131072: i64 = 131072 |
| 12 | const GS_MAGIC_1024: i64 = 1024 |
| 14 | const GS_CORROB_MIN: i64 = 2 // >=2 distinct sources = CORROBORATED (the no-hearsay floor) |
functions
| 17 | func gs_has(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 33 | func gs_alnum(c: i64) -> i64 called by 1: gs_has_word |
| 39 | func gs_has_word(hay: *u8, haylen: i64, needle: *u8) -> i64 |
| 57 | func gs_file_has(path: *u8, needle: *u8, buf: *u8, cap: i64) -> i64 |
| 70 | func gs_ends_raw(name: *u8) -> i64 called by 1: gs_corroborate_in |
| 76 | func gs_join(dir: *u8, name: *u8, out: *u8) -> i64 called by 1: gs_corroborate_in |
| 85 | func gs_name_pfx(name: *u8, pfx: *u8) -> i64 { var i: i64=0; while pfx[i]!=(0 as u8){ if name[i]!=pfx[i]{ return 0 } i=i+1 } return 1 } called by 1: gs_corroborate_in |
| 93 | func gs_corroborate_in(dirpath: *u8, all: i64, pfx1: *u8, pfx2: *u8, needle: *u8, buf: *u8, cap: i64) -> i64 called by 2: gs_corroborategs_corroborate_game calls 9: nx_openatsys_mmapnx_dirent_readnx_dirent_itergs_ends_rawgs_name_pfx+3 |
| 125 | func gs_corroborate(dirpath: *u8, needle: *u8, buf: *u8, cap: i64) -> i64 calls 1: gs_corroborate_in |
| 129 | func gs_corroborate_game(dirpath: *u8, needle: *u8, buf: *u8, cap: i64) -> i64 |
| 134 | func gs_file_exists(path: *u8) -> i64 |
| 141 | func gs_verdict(sources: i64) -> i64 called by 1: show |