code wiki / _hdl_build / nx_brand_manage.nx

nx_brand_manage.nx

buildroot/runtime/_hdl_build/nx_brand_manage.nx

5021 B99 linesdepth 5pulls 9 transitivereach 3 importersview sourcekind librarytopic brand
docsdependenciesstructsconstsfunctions

about

nx_brand_manage.nx -- R4 MULTI-ACTOR brand management, no lock-in. Operator: "users + developers + AI-users (of Claude) + local-LLM able to manage in lots of ways to NOT lock in." The unifying mechanism: ONE brand-OPS language (line-based DATA any actor emits) applied through ONE governed mutator over the token SSOT: set|<group>|<name>|<value> -- set/add a token pack|<id> -- load a whole brand pack as the working base TWO modes: lenient (dev/CLI: skip bad ops) and STRICT-GUARDED (the untrusted-proposer seam AI/local-LLM use: any unsafe/unknown op rejects the WHOLE proposal, and the RESULT must still pass the R2 brand guard -- so a model can neither inject (<script>/breakout) nor break the brand (sub-AA)). Because the mutator is PURE DATA->DATA, the SAME ops yield BYTE-IDENTICAL output regardless of which actor sent them = no vendor/tool lock-in, and the base is untouched = reversible by construction. REUSE: nx_brand_tokens (bt_set/bt_lookup), nx_brand_guard (bg_pair_contrast), nx_brand_packs (bp_pack/bp_decode), nx_nishi_builder (nb_streq). 100% sovereign. license_tier: ORIGINAL

dependencies 4 imports · 3 importers

nx_syscalls.nx nx_brand_tokens.nx nx_brand_guard.nx nx_brand_packs.nx nx_brand_manage.nx nx_brand_exceed2_gate.nx nx_brand_exceed_gate.nx nx_brand_manage_gate.nx

imports: nx_syscalls.nxnx_brand_tokens.nxnx_brand_guard.nxnx_brand_packs.nx

imported by: nx_brand_exceed2_gate.nxnx_brand_exceed_gate.nxnx_brand_manage_gate.nx

structs

none

consts

none

functions

18func bm_copy(src: *u8, s: i64, e: i64, out: *u8, cap: i64) -> i64
called by 1: bm_apply_ops
28func bm_apply_ops(base: *u8, bn: i64, ops: *u8, on: i64, out: *u8, cap: i64, strict: i64) -> i64
86func bm_propose(base: *u8, bn: i64, ops: *u8, on: i64, out: *u8, cap: i64) -> i64