code wiki / (root) / nx_asset_visibility.nx

nx_asset_visibility.nx

buildroot/runtime/nx_asset_visibility.nx

5817 B112 linesdepth 9pulls 12 transitivereach 5 importersview sourcekind librarytopic asset
docsdependenciesstructsconstsfunctions

about

nx_asset_visibility.nx -- flag every asset PUBLIC vs PRIVATE *BY ITS SOURCE*, on the NATIVE store. Operator (2026-06-20): "flag what's public and what's private by source" + "stop using tsv, get everything to nishi ecosystem only." The visibility of an asset is DERIVED from where it came from (location path/URL, provenance class, or type), via an ORDERED policy that now lives in the NATIVE content-addressed seg_store (nx_native_config), NOT a flat .tsv. Rules try in order, FIRST match wins; an UNMATCHED source is OPERATOR-ONLY (fail-closed / deny-by-default, Rule 12). The policy is AUTHORED BY THIS ORGAN (vis_seed writes the rows) and READ from the store -- data-driven, sovereign. PURE COMPOSITION (Rule 15): record decode -> nx_asset_record; policy store -> nx_native_config (seg_store+canon); access-level bridge -> nx_asset_access. No TSV, no SQL. No hardware writes (#26). license_tier: ORIGINAL

dependencies 5 imports · 3 importers

nx_syscalls.nx nx_uxf_decode.nx nx_asset_record.nx nx_asset_access.nx nx_native_config.nx nx_asset_visibility.nx nx_asset_dashboard_lib.nx nx_asset_policy_seed.nx nx_asset_visibility_gate.nx

imports: nx_syscalls.nxnx_uxf_decode.nxnx_asset_record.nxnx_asset_access.nxnx_native_config.nx

imported by: nx_asset_dashboard_lib.nxnx_asset_policy_seed.nxnx_asset_visibility_gate.nx

structs

none

consts

none

functions

20func vis_policy_prefix() -> *u8 { return "knowledge/store/asset-vispolicy-\x00" as *u8 }
22func vis_tag() -> *u8 { return "vis\x00" as *u8 }
24func vis_streq(a: *u8, b: *u8) -> i64
29func vis_startswith(s: *u8, prefix: *u8) -> i64
called by 1: vis_of_p
35func vis_dup(s: *u8) -> *u8
called by 1: vis_of_p calls 1: sys_mmap
44func vis_seed_rule(w: *i64, idx: i64, kind: *u8, value: *u8, viz: *u8) -> i64
53func vis_seed(prefix: *u8) -> i64
66func vis_of_p(rec: *u8, n: i64, prefix: *u8) -> *u8
96func vis_of(rec: *u8, n: i64) -> *u8 { return vis_of_p(rec, n, vis_policy_prefix()) }
99func vis_is_public_p(rec: *u8, n: i64, prefix: *u8) -> i64
103func vis_is_public(rec: *u8, n: i64) -> i64 { return vis_is_public_p(rec, n, vis_policy_prefix()) }
106func vis_required_level_p(rec: *u8, n: i64, prefix: *u8) -> i64
112func vis_required_level(rec: *u8, n: i64) -> i64 { return vis_required_level_p(rec, n, vis_policy_prefix()) }