nx_asset_access_gate.nx
buildroot/runtime/nx_asset_access_gate.nx
about
nx_asset_access_gate.nx -- KAT + TEETH for nx_asset_access (R6 of the universal org-tooling arc).
Proves the asset PDP is DENY-BY-DEFAULT + FAIL-CLOSED over a real content-addressed record's
classification field (decoded via nx_asset_record):
(a) public -> readable by EVERYONE (ANON..OWNER all ALLOW)
(b) professional -> ANON/FAMILY DENY, PRO/OWNER ALLOW (the professional split)
(c) private -> only OWNER ALLOW; ANON/FAMILY/PRO DENY (the private split)
(d) operator-only -> only OWNER ALLOW (the image-stack "operator-only" law)
TEETH (must DENY -- the fail-closed proof a default-allow system would get WRONG):
(e) NO classification field -> DENY for EVERY level, including OWNER
(f) UNRECOGNIZED classification ("bogus") -> DENY for OWNER (fail-closed, not "allow if unsure")
(g) private @ ANON -> DENY (the public internet can never read a private asset)
Verdict appended to knowledge/status/asset_access_gate.log (additive law #13).
expect_exit: 0 license_tier: ORIGINAL
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_canon_cid.nxnx_asset_record.nxnx_asset_access.nxnx_gate_verdict.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 22 | func g_puts(logfd: i64, s: *u8) -> i64 |
| 29 | func g_putn(logfd: i64, v: i64) -> i64 |
| 43 | func E() -> *u8 { return "\x00" as *u8 } |
| 44 | func sset(a: *i64, i: i64, s: *u8) -> i64 { a[i] = s as i64; return 0 } called by 1: mk_classified |
| 47 | func mk_classified(cls: *u8, out: *u8) -> i64 |
| 64 | func expect(logfd: i64, label: *u8, rec: *u8, n: i64, level: i64, want: i64) -> i64 |
| 71 | func main() -> i64 |