code wiki / _hdl_build / nx_brand_packs_gate.nx

nx_brand_packs_gate.nx

buildroot/runtime/_hdl_build/nx_brand_packs_gate.nx

5832 B114 linesdepth 5pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_packs_gate.nx -- R3 gate: multi-brand theme packs taught to the universal builder. Composes the whole stack: TEACH (nb_register catalog) -> LOAD (distinct brands) -> RENDER (wb_doc_open_branded) -> GUARD (each pack proven on-brand, AA contrast via R2) -> SOVEREIGNTY -> DETERMINISM. Hermetic test registry (/tmp); a final LIVE idempotent teach grows the real catalog. 100% sovereign. license_tier: ORIGINAL expect_exit: 0

dependencies 6 imports · 0 importers

nx_syscalls.nx nx_sitegate_emit_lib.nx nx_brand_packs.nx nx_brand_guard.nx nx_web_builder.nx nx_brand_tokens.nx nx_brand_packs_gate.nx

imports: nx_syscalls.nxnx_sitegate_emit_lib.nxnx_brand_packs.nxnx_brand_guard.nxnx_web_builder.nxnx_brand_tokens.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap gw sys_write sys_openat_wr sys_close bp_register_all bp_teach_one bp_pack nb_streq nb_template_safe nb_register nb_present sys_mmap ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ nb_field nb_streq ↻ sys_mmap ↻ sys_openat_append sys_write ↻ sys_close ↻ nb_count sys_mmap ↻ sys_read_file ↻ nb_field ↻ nb_streq ↻ gn sys_mmap ↻ sys_write ↻ t_row gw ↻ g_primary sys_mmap ↻ bp_load sys_mmap ↻

structs

none

consts

none

functions

13func g_has(s: *u8, n: i64, lit: *u8) -> i64 { if bt_find(s, n, lit, bt_len(lit)) >= 0 { return 1 } return 0 }
called by 1: main calls 2: bt_findbt_len
14func g_primary(path: *u8, id: *u8, out: *u8) -> i64 { // load a pack -> its color/primary value into out
called by 1: main calls 3: sys_mmapbp_loadbt_lookup
20func g_pack_aa(path: *u8, id: *u8) -> i64 { // load a pack -> its ink/bg contrast x100
27func main() -> i64