nx_mvault_measure.nx
buildroot/runtime/nx_mvault_measure.nx
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
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
| 27 | const MV_LEG_MATH: i64 = 1 // HMR2.0/DWPose/SMPL measurement |
| 28 | const MV_LEG_VLM: i64 = 2 // the multi-head captioner |
| 29 | const MV_LEG_HUMAN: i64 = 3 // calibration gallery (gold) |
| 30 | const MV_LEG_FUSED: i64 = 4 // triangulated composite |
| 33 | const MV_MK_REGRESSOR: i64 = 1 |
| 34 | const MV_MK_ENUM: i64 = 2 |
| 35 | const MV_MK_CLASSIFIER: i64 = 3 |
| 38 | const MV_CAP_MANIFEST: i64 = 1 // JSON manifest |
| 39 | const MV_CAP_TOKEN: i64 = 2 // pipe-token string |
| 40 | const MV_CAP_NATURAL: i64 = 3 // natural language |
| 41 | const MV_CAP_SHORT: i64 = 4 |
| 42 | const MV_CAP_LONG: i64 = 5 |
| 43 | const MV_CAP_TRAINING: i64 = 6 // the training-prompt form |
functions
| 45 | func mv_leg_str(leg: i64) -> *u8 |
| 58 | func mv_capmode_str(mode: i64) -> *u8 |
| 76 | func mv_ratio_str(out: *u8, ivalue: i64, scale: i64) -> i64 |
| 85 | func mv_meas_make(out: *u8, axis: *u8, value: *u8, leg: i64, conf: i64) -> i64 |
| 103 | func mv_meas_keep(conf: i64, threshold: i64) -> i64 called by 1: main |
| 109 | func mv_meas_variance(a: i64, b: i64) -> i64 called by 1: main |
| 115 | func mv_caption_make(out: *u8, mode: i64, text: *u8) -> i64 |