code wiki / (root) / nx_final_quality.nx

nx_final_quality.nx

buildroot/runtime/nx_final_quality.nx

5339 B112 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_final_quality.nx -- top-level scene quality verdict composing all axis families. This is the substrate's SINGLE outcome per render — the number that drives auto_fix decisions and tells the caller whether the render shipped. Aggregates 7 axis-family scores into one composite: canon 20% nx_beauty_score (S/A/B/OFF anatomy proportions) mannequin 15% nx_mannequin_index (LIVING_PERSON ↔ OBVIOUS_PLASTIC) eroticism 15% nx_eroticism_ladder MATCH score (declared vs measured) vulva_aes 15% nx_vulva_aesthetic_composite glute_aes 10% nx_glute_aesthetic_composite breast_aes 15% nx_breast_aesthetic_composite topology 10% nx_body_topology (single coherent body) Sealed verdict ladder: FAILED < 410 ship-blocker — auto_fix MUST retry PARTIAL 410-614 some axes ok — auto_fix should retry if budget allows SHIPPABLE 614-819 acceptable — auto_fix can stop S_CLASS >= 819 textbook — done

dependencies 1 imports · 1 importers

nx_syscalls.nx nx_final_quality.nx nx_final_quality_test.nx

imports: nx_syscalls.nx

imported by: nx_final_quality_test.nx

structs

none

consts

28const NX_MAGIC_2048: i64 = 2048
30const NX_FINAL_RES_CANON: i64 = 0
31const NX_FINAL_RES_MANNEQUIN: i64 = 1
32const NX_FINAL_RES_EROTICISM: i64 = 2
33const NX_FINAL_RES_VULVA: i64 = 3
34const NX_FINAL_RES_GLUTE: i64 = 4
35const NX_FINAL_RES_BREAST: i64 = 5
36const NX_FINAL_RES_TOPOLOGY: i64 = 6
37const NX_FINAL_RES_COMPOSITE: i64 = 7
38const NX_FINAL_RES_VERDICT: i64 = 8
39const NX_FINAL_RES_FAIL_AXIS: i64 = 9
40const NX_FINAL_RES_FIELDS: i64 = 10
42const NX_FINAL_FAILED: i64 = 0
43const NX_FINAL_PARTIAL: i64 = 1
44const NX_FINAL_SHIPPABLE: i64 = 2
45const NX_FINAL_S_CLASS: i64 = 3
47const NX_FINAL_AXIS_CANON: i64 = 0
48const NX_FINAL_AXIS_MANNEQUIN: i64 = 1
49const NX_FINAL_AXIS_EROTICISM: i64 = 2
50const NX_FINAL_AXIS_VULVA: i64 = 3
51const NX_FINAL_AXIS_GLUTE: i64 = 4
52const NX_FINAL_AXIS_BREAST: i64 = 5
53const NX_FINAL_AXIS_TOPOLOGY: i64 = 6

functions

57func nx_final_quality(canon_q10: i64, mannequin_q10: i64, eroticism_q10: i64,
called by 1: main