code wiki / _hdl_build / nx_brand_book_gate.nx

nx_brand_book_gate.nx

buildroot/runtime/_hdl_build/nx_brand_book_gate.nx

6274 B116 linesdepth 6pulls 13 transitivereach 0 importersview sourcekind gate/prooftopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_book_gate.nx -- R5 gate: brand-book generator + off-token brand audit. BB: the brand book is emitted FROM the token SSOT (swatches + MEASURED WCAG contrast + AA/AAA badges, rendered in-brand). BA: the audit returns 0 for a token-driven builder page (no drift) and flags a page that hardcodes a colour outside the token block. 100% sovereign. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_sitegate_emit_lib.nx nx_brand_book.nx nx_brand_tokens.nx nx_brand_book_gate.nx

imports: nx_syscalls.nxnx_sitegate_emit_lib.nxnx_brand_book.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 bt_default_brand bt_len gw sys_write sys_openat_wr bb_emit wb_doc_open_branded wb_w sys_write ↻ bas_emit_head bas_emit_one sys_mmap ↻ bas_lookup sys_mmap ↻ bas_esc_attr bas_app bas_fw sys_write ↻ bt_emit_root_fd sys_mmap ↻ bt_emit_root_buf bt_app sys_mmap ↻ bt_slice_eq bt_ident_safe bt_value_safe bt_find bt_app_n sys_write ↻ bt_emit_dark_fd sys_mmap ↻ bt_emit_dark_root_buf bt_app ↻ sys_mmap ↻ bt_slice_eq ↻ bt_ident_safe ↻ bt_value_safe ↻ bt_app_n ↻

structs

none

consts

none

functions

11func 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
12func g_read(path: *u8, lp: *i64) -> *u8 { return sys_read_file(path, lp) }
called by 1: main calls 1: sys_read_file
13func inband5(v: i64, lo: i64, hi: i64) -> i64 { if v < lo { return 0 } if v > hi { return 0 } return 1 }
called by 1: main
15func main() -> i64