nx_asset_visibility.nx
buildroot/runtime/nx_asset_visibility.nx
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
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
| 20 | func vis_policy_prefix() -> *u8 { return "knowledge/store/asset-vispolicy-\x00" as *u8 } |
| 22 | func vis_tag() -> *u8 { return "vis\x00" as *u8 } |
| 24 | func vis_streq(a: *u8, b: *u8) -> i64 |
| 29 | func vis_startswith(s: *u8, prefix: *u8) -> i64 called by 1: vis_of_p |
| 35 | func vis_dup(s: *u8) -> *u8 |
| 44 | func vis_seed_rule(w: *i64, idx: i64, kind: *u8, value: *u8, viz: *u8) -> i64 |
| 53 | func vis_seed(prefix: *u8) -> i64 |
| 66 | func vis_of_p(rec: *u8, n: i64, prefix: *u8) -> *u8 called by 4: vis_ofvis_is_public_pvis_required_level_pexpect_vis calls 11: sys_mmapcanon_decodear_getncfg_openncfg_countvis_tag+5 |
| 96 | func vis_of(rec: *u8, n: i64) -> *u8 { return vis_of_p(rec, n, vis_policy_prefix()) } |
| 99 | func vis_is_public_p(rec: *u8, n: i64, prefix: *u8) -> i64 |
| 103 | func vis_is_public(rec: *u8, n: i64) -> i64 { return vis_is_public_p(rec, n, vis_policy_prefix()) } |
| 106 | func vis_required_level_p(rec: *u8, n: i64, prefix: *u8) -> i64 |
| 112 | func vis_required_level(rec: *u8, n: i64) -> i64 { return vis_required_level_p(rec, n, vis_policy_prefix()) } |