code wiki / (root) / nx_asset_policy_seed.nx

nx_asset_policy_seed.nx

buildroot/runtime/nx_asset_policy_seed.nx

1259 B21 linesdepth 10pulls 13 transitivereach 0 importersview sourcekind tooltopic asset
docsdependenciesstructsconstsfunctions

about

nx_asset_policy_seed.nx -- seed the asset VISIBILITY POLICY into the native seg_store (no TSV). The migration step: writes the source->visibility rules (authored in nx_asset_visibility's vis_seed) into the content-addressed policy store knowledge/store/asset-vispolicy-, so nx_asset_visibility reads the policy from the nishi-native store instead of a flat .tsv. Idempotent in effect (re-seeding appends a new segment that shadows the old rows; ADDITIVE #13). Run this once (or after editing the rules in vis_seed) to (re)publish the policy. No hardware writes (#26). license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_asset_visibility.nx nx_asset_policy_seed.nx

imports: nx_syscalls.nxnx_asset_visibility.nx

imported by: nobody (leaf or entry point)

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

main sp_w sys_write vis_policy_prefix vis_seed ncfg_begin ss_begin ss_begin_cap sys_mmap vis_seed_rule sys_mmap ↻ ncfg_add_row sys_mmap ↻ canon_encode sys_mmap ↻ cc_cmp cc_w32 cc_len sys_munmap ncfg_key ss_add ss_add2 ss_w32 ss_len vis_tag ncfg_set_count sys_mmap ↻ ncfg_count_key ncfg_itoa sys_mmap ↻ ss_add ↻ vis_tag ↻ ncfg_commit ss_commit ss_segid_ok sys_mmap ↻ ss_cat ss_catn sys_mmap ↻ sys_write ↻

structs

none

consts

none

functions

11func sp_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
13func main() -> i64