code wiki / (root) / nx_mvault_tag.nx

nx_mvault_tag.nx

buildroot/runtime/nx_mvault_tag.nx

3853 B101 linesdepth 2pulls 2 transitivereach 8 importersview sourcekind librarytopic mvault
docsdependenciesstructsconstsfunctions

about

nx_mvault_tag.nx -- extensible, searchable metadata planes for vault items. DESIGN (operator 2026-07-17: "hammer searchability + extensibility BEFORE the heavy reclassify ... performer/pose/body-type ... booru but far beyond ... lossless language aka hip-to-waist ratios ... feed the future joy classifier"): three ADDITIVE planes over the immutable core record, so new auto-tag capabilities slot in with ZERO schema migration -- FACETS numeric fields (size/recency/popularity/dims) -> SORT KEYS for fast large/recent/popular finding (byte-lex order == numeric). TAGS booru-style OPEN namespaces "ns:value" (performer:/pose:/hair:/ body:/ethnicity:/nipple:/cup:...) -> inverted index per namespace. ATTRS lossless quantitative "key=ivalue/scale" (hip_waist_ratio=700/1000 = exact 0.700, no-float) -> range-searchable. The booru-beyond bit. All CID-keyed + additive; searchability rides the librarian info-finding index (coordinate, don't rebuild). This module is deliberately OPEN -- it hardcodes NO tag list, so performer/pose/body/etc. are just data. license_tier: ORIGINAL

dependencies 1 imports · 6 importers

nx_syscalls.nx nx_mvault_tag.nx nx_mvault.nx nx_mvault_caption.nx nx_mvault_caption_gate.nx nx_mvault_fetch.nx nx_mvault_measure.nx nx_mvault_tag_gate.nx

imports: nx_syscalls.nx

imported by: nx_mvault.nxnx_mvault_caption.nxnx_mvault_caption_gate.nxnx_mvault_fetch.nxnx_mvault_measure.nxnx_mvault_tag_gate.nx

structs

none

consts

none

functions

22func mv_u_dec(dst: *u8, off: i64, v: i64) -> i64
36func mv_tag_make(out: *u8, ns: *u8, value: *u8) -> i64
called by 3: mainmainmain
48func mv_tag_ns_len(tag: *u8) -> i64
called by 1: main
60func mv_attr_make(out: *u8, key: *u8, ivalue: i64, scale: i64) -> i64
called by 1: main calls 1: mv_u_dec
76func mv_facet_key(out: *u8, field: *u8, uvalue: i64) -> i64
called by 1: main
91func mv_bcmp(a: *u8, b: *u8, n: i64) -> i64
called by 1: main