nx_domain_profile.nx
buildroot/runtime/nx_domain_profile.nx
about
nx_domain_profile.nx -- generative-domain dispatcher registry.
Per NISHI_CLOSED_LOOP_GENERATIVE_ROADMAP.md: each generative
domain (real human / orc / clothing / weapon / etc.) has its
own profile that names which tier bricks to invoke + what
range to expect on each + reward-shaping coefficient per axis.
This primitive is the SEALED-ENUM REGISTRY of currently-known
domains + the per-domain bitmask of which tier axes apply.
Catalog-driven extension via JSONL (per cardinal `feedback-
catalog-driven-not-per-instance-hardcoded`) is queued; the
initial 11 domains are hardcoded as sealed-enum starter set.
genealogy_id: substrate_closed_loop_generative_2026_05_16
lineage_id: nishi_domain_profile_v1
dependencies 3 imports · 0 importers
imports: nx_syscalls.nxnx_runtime.nxnx_tier.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| 116 | struct NxDomainProfile |
consts
| 29 | const NX_DOMAIN_UNKNOWN: nx_int = 0 |
| 30 | const NX_DOMAIN_HUMAN_ADULT: nx_int = 1 |
| 31 | const NX_DOMAIN_HUMAN_CHILD: nx_int = 2 // tier-profile only; subject-matter gating is Elder AI's job |
| 32 | const NX_DOMAIN_FANTASY_ORC: nx_int = 3 |
| 33 | const NX_DOMAIN_FANTASY_ELF: nx_int = 4 |
| 34 | const NX_DOMAIN_FANTASY_DWARF: nx_int = 5 |
| 35 | const NX_DOMAIN_CREATURE_WOLF: nx_int = 6 |
| 36 | const NX_DOMAIN_CLOTHING_GARMENT: nx_int = 7 |
| 37 | const NX_DOMAIN_WEAPON_STEEL: nx_int = 8 |
| 38 | const NX_DOMAIN_WEAPON_WOOD: nx_int = 9 |
| 39 | const NX_DOMAIN_ARCHITECTURE: nx_int = 10 |
| 40 | const NX_DOMAIN_ENVIRONMENT: nx_int = 11 |
| 41 | const NX_DOMAIN_FOOD: nx_int = 12 |
| 42 | const NX_DOMAIN_N_KINDS: nx_int = 13 |
| 55 | const NX_AXIS_T0_DIMENSIONS: nx_int = 0 |
| 56 | const NX_AXIS_T1_LUMINANCE: nx_int = 1 |
| 57 | const NX_AXIS_T1_HISTOGRAM: nx_int = 2 |
| 58 | const NX_AXIS_T1_SSIM: nx_int = 3 |
| 59 | const NX_AXIS_T1_SKIN_TONE_ITA: nx_int = 4 |
| 60 | const NX_AXIS_T2_GLCM_TEXTURE: nx_int = 5 |
| 61 | const NX_AXIS_T2_EDGE_DENSITY: nx_int = 6 |
| 62 | const NX_AXIS_T2_PORE_DETAIL: nx_int = 7 |
| 63 | const NX_AXIS_T2_KMEANS_CLUSTERS: nx_int = 8 |
| 64 | const NX_AXIS_T3_FACE_PRESENT: nx_int = 9 |
| 65 | const NX_AXIS_T3_HAND_PRESENT: nx_int = 10 |
| 66 | const NX_AXIS_T3_BODY_PRESENT: nx_int = 11 |
| 67 | const NX_AXIS_T4_UNDERTONE: nx_int = 12 |
| 68 | const NX_AXIS_T4_AGE_CLASS: nx_int = 13 |
| 69 | const NX_AXIS_T4_EXPRESSION_CLASS: nx_int = 14 |
| 70 | const NX_AXIS_T4_MATERIAL_CLASS: nx_int = 15 |
| 71 | const NX_AXIS_T5_VEIN_SIGNAL: nx_int = 16 |
| 72 | const NX_AXIS_T5_SUBSURFACE_SIGNAL: nx_int = 17 |
| 73 | const NX_AXIS_T5_IRIS_DETAIL: nx_int = 18 |
| 74 | const NX_AXIS_T5_LIP_TEXTURE: nx_int = 19 |
| 75 | const NX_AXIS_T5_HAIR_FOLLICLE: nx_int = 20 |
| 76 | const NX_AXIS_T5_MICRO_WRINKLE: nx_int = 21 |
| 77 | const NX_AXIS_T5B_MICRO_EXPRESSION: nx_int = 22 |
| 78 | const NX_AXIS_T6_SHADOW_DIRECTION: nx_int = 23 |
| 79 | const NX_AXIS_T6_FINGER_COUNT: nx_int = 24 |
| 80 | const NX_AXIS_T6_LIMB_COUNT: nx_int = 25 |
| 81 | const NX_AXIS_T6_POSE_NATURALNESS: nx_int = 26 |
| 82 | const NX_AXIS_T6_SURFACE_PLANE: nx_int = 27 |
| 83 | const NX_AXIS_T6_SILHOUETTE_INTEG: nx_int = 28 |
| 84 | const NX_AXIS_T6_JOINT_CONTINUITY: nx_int = 29 |
| 85 | const NX_AXIS_T6_VANISHING_POINT: nx_int = 30 |
| 88 | const NX_AXIS_DX_FABRIC_DRAPE: nx_int = 32 |
| 89 | const NX_AXIS_DX_SEAM_CONTINUITY: nx_int = 33 |
| 90 | const NX_AXIS_DX_WEAVE_PATTERN: nx_int = 34 |
| 91 | const NX_AXIS_DX_BUTTONS_ALIGN: nx_int = 35 |
| 92 | const NX_AXIS_DX_EDGE_GEOMETRY: nx_int = 36 |
| 93 | const NX_AXIS_DX_HAMMERED_PATTERN: nx_int = 37 |
| 94 | const NX_AXIS_DX_BLADE_TAPER: nx_int = 38 |
| 95 | const NX_AXIS_DX_GRAIN_DIRECTION: nx_int = 39 |
| 96 | const NX_AXIS_DX_CARVING_DEPTH: nx_int = 40 |
| 97 | const NX_AXIS_DX_TUSK_COUNT: nx_int = 41 |
| 98 | const NX_AXIS_DX_SCARRING_DENSITY: nx_int = 42 |
| 99 | const NX_AXIS_DX_SKIN_PEBBLE: nx_int = 43 |
| 100 | const NX_AXIS_DX_EAR_POINT: nx_int = 44 |
| 101 | const NX_AXIS_DX_FUR_DIRECTION: nx_int = 45 |
| 102 | const NX_AXIS_DX_CANINE_DENTITION: nx_int = 46 |
| 103 | const NX_AXIS_DX_BRICK_ALIGNMENT: nx_int = 47 |
| 104 | const NX_AXIS_DX_WINDOW_UNIFORM: nx_int = 48 |
| 105 | const NX_AXIS_DX_ROOF_PITCH: nx_int = 49 |
| 106 | const NX_AXIS_DX_HORIZON_LINE: nx_int = 50 |
| 107 | const NX_AXIS_DX_AERIAL_PERSP: nx_int = 51 |
| 108 | const NX_AXIS_DX_ATMOSPHERIC_HAZE: nx_int = 52 |
| 123 | const NX_DOMAIN_PROFILE_BYTES: nx_size = 32 |
| 126 | const NX_DOMAIN_WEIGHT_DEFAULT_Q10: nx_int = 1024 |
functions
| 44 | func nx_domain_is_valid(d: nx_int) -> nx_int called by 1: nx_domain_profile_get |
| 130 | func _domain_bitor(mask: nx_int, bit: nx_int) -> nx_int |
| 137 | func _domain_popcount(mask: nx_int) -> nx_int called by 1: nx_domain_profile_get |
| 151 | func nx_domain_axis_applies(profile: *NxDomainProfile, axis: nx_int) -> nx_int called by 1: main |
| 164 | func _domain_human_adult_mask() -> nx_int |
| 193 | func _domain_fantasy_orc_mask() -> nx_int |
| 214 | func _domain_fantasy_elf_mask() -> nx_int |
| 220 | func _domain_creature_wolf_mask() -> nx_int |
| 235 | func _domain_clothing_garment_mask() -> nx_int |
| 251 | func _domain_weapon_steel_mask() -> nx_int |
| 265 | func _domain_weapon_wood_mask() -> nx_int |
| 278 | func _domain_architecture_mask() -> nx_int |
| 292 | func _domain_environment_mask() -> nx_int |
| 308 | func nx_domain_profile_get(domain_id: nx_int) -> *NxDomainProfile |
| 356 | func main() -> nx_int |