code wiki / (root) / nx_dms_catalog_gate.nx

nx_dms_catalog_gate.nx

buildroot/runtime/nx_dms_catalog_gate.nx

3402 B68 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind gate/prooftopic dms
docsdependenciesstructsconstsfunctions

about

nx_dms_catalog_gate.nx -- liar-kill gate for the consent-gated catalog. The point: media surfaces ONLY when its (talent, use) is currently licensed. Proven by construction -- unlicensed talent's asset -> NOT visible license REVOKED -> its asset stops surfacing instantly license EXPIRED -> same soft-removed asset -> NOT visible (even if licensed) unknown asset -> NOT visible licensed + active -> visible plus content-addressed idempotent add and additive (history-kept) removal. Returns 0 iff every check holds; a nonzero code pinpoints the first failure.

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_rights_ledger.nx nx_dms_catalog.nx nx_dms_catalog_gate.nx

imports: nx_syscalls.nxnx_rights_ledger.nxnx_dms_catalog.nx

imported by: nobody (leaf or entry point)

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

main nx_rights_ledger_new sys_mmap nx_dms_catalog_new sys_mmap ↻ nx_rights_grant nx_use_is_valid _rl_at nx_dms_catalog_add nx_use_is_valid ↻ _dms_find_hash _dms_at _dms_at ↻ nx_dms_catalog_count nx_dms_is_visible _dms_find_id _dms_at ↻ _dms_at ↻ nx_rights_is_licensed nx_rights_state _rl_at ↻ nx_dms_count_visible _dms_at ↻ nx_rights_is_licensed ↻ nx_rights_revoke _rl_find _rl_at ↻ _rl_at ↻ nx_dms_catalog_remove _dms_find_id ↻ _dms_at ↻

structs

none

consts

none

functions

18func main() -> i64