code wiki / (root) / nx_mvault_measure.nx

nx_mvault_measure.nx

buildroot/runtime/nx_mvault_measure.nx

4952 B128 linesdepth 3pulls 3 transitivereach 4 importersview sourcekind librarytopic mvault
docsdependenciesstructsconstsfunctions

about

nx_mvault_measure.nx -- NishiCaption-grade MEASUREMENT atom for the vault's comprehensive first-pass tagging (the training-corpus label). WHY (operator 2026-07-17): "first tagging pass comprehensive ... joy caption like exercise ... classification for our models and loras both llm and image ... state of the art." The elder-ai NishiCaption design (95 axes, 3 legs, round-trip) is the SOTA schema; this is its capture atom on the sovereign store so the EXPENSIVE VLM/math ensemble pass runs ONCE and nothing is lost. A measurement is a triangulated axis reading: "<axis>=<value>@<leg>#<conf>" e.g. hip_waist_ratio=700/1000@math#920 hair_color=blonde@vlm#980 value = lossless (ivalue/scale) for regressors, a token for enum/classifier leg = which of MATH/VLM/HUMAN/FUSED produced it (triangulation) conf = permille confidence (training threshold + fusion weight) Round-trip variance (directive vs measured) = the self-improvement + LoRA training signal. Caption modes = the 3 NishiCaption emit forms. Extensible by construction (like nx_mvault_tag): NO axis list is hardcoded, so all 95 axes -- and future ones -- are just data. Composes nx_mvault_tag (mv_u_dec). license_tier: ORIGINAL

dependencies 2 imports · 4 importers

nx_syscalls.nx nx_mvault_tag.nx nx_mvault_measure.nx nx_mvault.nx nx_mvault_caption.nx nx_mvault_caption_gate.nx nx_mvault_measure_gate.nx

imports: nx_syscalls.nxnx_mvault_tag.nx

imported by: nx_mvault.nxnx_mvault_caption.nxnx_mvault_caption_gate.nxnx_mvault_measure_gate.nx

structs

none

consts

27const MV_LEG_MATH: i64 = 1 // HMR2.0/DWPose/SMPL measurement
28const MV_LEG_VLM: i64 = 2 // the multi-head captioner
29const MV_LEG_HUMAN: i64 = 3 // calibration gallery (gold)
30const MV_LEG_FUSED: i64 = 4 // triangulated composite
33const MV_MK_REGRESSOR: i64 = 1
34const MV_MK_ENUM: i64 = 2
35const MV_MK_CLASSIFIER: i64 = 3
38const MV_CAP_MANIFEST: i64 = 1 // JSON manifest
39const MV_CAP_TOKEN: i64 = 2 // pipe-token string
40const MV_CAP_NATURAL: i64 = 3 // natural language
41const MV_CAP_SHORT: i64 = 4
42const MV_CAP_LONG: i64 = 5
43const MV_CAP_TRAINING: i64 = 6 // the training-prompt form

functions

45func mv_leg_str(leg: i64) -> *u8
called by 2: mv_meas_makemain
58func mv_capmode_str(mode: i64) -> *u8
called by 2: mv_caption_makemain
76func mv_ratio_str(out: *u8, ivalue: i64, scale: i64) -> i64
called by 2: mainmain calls 1: mv_u_dec
85func mv_meas_make(out: *u8, axis: *u8, value: *u8, leg: i64, conf: i64) -> i64
called by 3: mainmainmain calls 2: mv_leg_strmv_u_dec
103func mv_meas_keep(conf: i64, threshold: i64) -> i64
called by 1: main
109func mv_meas_variance(a: i64, b: i64) -> i64
called by 1: main
115func mv_caption_make(out: *u8, mode: i64, text: *u8) -> i64
called by 2: mainmain calls 1: mv_capmode_str