nx_modesty_profile.nx
buildroot/runtime/nx_modesty_profile.nx
about
nx_modesty_profile.nx -- sealed-enum catalog of modesty standards.
CAPABILITY_COMPLETENESS: FULL (for the 16 starter profiles;
additional cultural standards register via the catalog
extension path documented in NISHI_OCCLUSION_AND_MODESTY_
ENGINEERING.md)
User direction 2026-05-16:
"i want to take advantage of nsfw flagging by using it as
engineering so we can make sure occlusion isnt happening and
other things so she is how she wants to be in situations like
how ancient people had different modesty standards etc"
The substrate's distinctive offer over existing NSFW classifiers:
- Per-anatomical-region required-coverage thresholds in Q10
- Sealed-enum catalog of culturally-specific profiles
- Subject-chosen profile (not platform-imposed)
- Composes with nx_occlusion_grade (queued) -> nx_modesty_match
to produce a sealed match verdict per profile
genealogy_id: substrate_modesty_engineering_2026_05_16
lineage_id: nx_modesty_profile_v1
dependencies 3 imports · 1 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nx
imported by: nx_catalog_id_lookup.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| 99 | struct NxModestyProfile |
consts
| 27 | const NX_MAGIC_1024: i64 = 1024 |
| 29 | const NX_MP_Q10: nx_int = 1024 |
| 37 | const NX_REGION_HAIR: nx_int = 0 |
| 38 | const NX_REGION_FACE_UPPER: nx_int = 1 // forehead, eyes, nose, cheeks |
| 39 | const NX_REGION_FACE_LOWER: nx_int = 2 // mouth, chin (covered by niqab) |
| 40 | const NX_REGION_NECK: nx_int = 3 |
| 41 | const NX_REGION_SHOULDERS: nx_int = 4 |
| 42 | const NX_REGION_CHEST_FULL: nx_int = 5 // entire chest area |
| 43 | const NX_REGION_NIPPLE_F: nx_int = 6 // female nipple specifically |
| 44 | const NX_REGION_NIPPLE_M: nx_int = 7 // male nipple |
| 45 | const NX_REGION_MIDRIFF: nx_int = 8 // abdomen / belly |
| 46 | const NX_REGION_BACK_UPPER: nx_int = 9 |
| 47 | const NX_REGION_BACK_LOWER: nx_int = 10 |
| 48 | const NX_REGION_BUTTOCKS: nx_int = 11 |
| 49 | const NX_REGION_GROIN: nx_int = 12 // pubic / pelvic |
| 50 | const NX_REGION_GENITALIA: nx_int = 13 // genitals proper |
| 51 | const NX_REGION_ARMPITS: nx_int = 14 |
| 52 | const NX_REGION_UPPER_ARMS: nx_int = 15 |
| 53 | const NX_REGION_FOREARMS: nx_int = 16 |
| 54 | const NX_REGION_HANDS: nx_int = 17 |
| 55 | const NX_REGION_THIGHS: nx_int = 18 |
| 56 | const NX_REGION_KNEES: nx_int = 19 |
| 57 | const NX_REGION_CALVES: nx_int = 20 |
| 58 | const NX_REGION_ANKLES: nx_int = 21 |
| 59 | const NX_REGION_FEET: nx_int = 22 |
| 60 | const NX_REGION_N_KINDS: nx_int = 23 |
| 70 | const NX_MODESTY_MODERN_WESTERN_CASUAL: nx_int = 0 |
| 71 | const NX_MODESTY_MODERN_WESTERN_FORMAL: nx_int = 1 |
| 72 | const NX_MODESTY_MODERN_WESTERN_BEACH: nx_int = 2 |
| 73 | const NX_MODESTY_MODERN_LINGERIE: nx_int = 3 |
| 74 | const NX_MODESTY_VICTORIAN: nx_int = 4 |
| 75 | const NX_MODESTY_ANCIENT_GREEK_ATHLETIC_M: nx_int = 5 |
| 76 | const NX_MODESTY_ANCIENT_GREEK_ATHLETIC_F: nx_int = 6 |
| 77 | const NX_MODESTY_ANCIENT_ROMAN_PUBLIC: nx_int = 7 |
| 78 | const NX_MODESTY_RENAISSANCE_NOBILITY: nx_int = 8 |
| 79 | const NX_MODESTY_HEIAN_COURT: nx_int = 9 |
| 80 | const NX_MODESTY_ISLAMIC_HIJAB: nx_int = 10 |
| 81 | const NX_MODESTY_ISLAMIC_NIQAB: nx_int = 11 |
| 82 | const NX_MODESTY_HINDU_SARI: nx_int = 12 |
| 83 | const NX_MODESTY_MEDICAL_PROFESSIONAL: nx_int = 13 |
| 84 | const NX_MODESTY_ARTISTIC_NUDE_RENAISSANCE: nx_int = 14 |
| 85 | const NX_MODESTY_ATHLETIC_DANCE: nx_int = 15 |
| 86 | const NX_MODESTY_N_PROFILES: nx_int = 16 |
| 105 | const NX_MP_PROFILE_BYTES: nx_size = 24 |
functions
| 62 | func nx_region_is_valid(r: nx_int) -> nx_int |
| 88 | func nx_modesty_profile_is_valid(p: nx_int) -> nx_int |
| 112 | func _mp_alloc_required() -> *nx_int |
| 123 | func _mp_build_western_casual() -> *nx_int |
| 132 | func _mp_build_western_formal() -> *nx_int |
| 142 | func _mp_build_western_beach() -> *nx_int |
| 150 | func _mp_build_modern_lingerie() -> *nx_int |
| 158 | func _mp_build_victorian() -> *nx_int |
| 178 | func _mp_build_greek_male_athletic() -> *nx_int |
| 183 | func _mp_build_greek_female_athletic() -> *nx_int |
| 193 | func _mp_build_roman_public() -> *nx_int |
| 206 | func _mp_build_renaissance_nobility() -> *nx_int |
| 217 | func _mp_build_heian_court() -> *nx_int |
| 239 | func _mp_build_islamic_hijab() -> *nx_int |
| 260 | func _mp_build_islamic_niqab() -> *nx_int |
| 266 | func _mp_build_hindu_sari() -> *nx_int |
| 277 | func _mp_build_medical_professional() -> *nx_int |
| 289 | func _mp_build_artistic_renaissance() -> *nx_int |
| 295 | func _mp_build_athletic_dance() -> *nx_int |
| 307 | func nx_modesty_profile_get(profile_id: nx_int) -> *NxModestyProfile |
| 382 | func nx_modesty_required_coverage(profile: *NxModestyProfile, |
| 390 | func main() -> nx_int |