code wiki / (root) / nx_domain_profile.nx

nx_domain_profile.nx

buildroot/runtime/nx_domain_profile.nx

16668 B409 linesdepth 3pulls 3 transitivereach 0 importersview sourcekind tooltopic domain
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_domain_profile.nx

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

main nx_domain_profile_get nx_domain_is_valid sys_mmap _domain_human_adult_mask _domain_bitor _domain_fantasy_orc_mask _domain_bitor ↻ _domain_fantasy_elf_mask _domain_human_adult_mask ↻ _domain_bitor ↻ _domain_creature_wolf_mask _domain_bitor ↻ _domain_clothing_garment_m _domain_bitor ↻ _domain_weapon_steel_mask _domain_bitor ↻ _domain_weapon_wood_mask _domain_bitor ↻ _domain_architecture_mask _domain_bitor ↻ _domain_environment_mask _domain_bitor ↻ _domain_popcount nx_domain_axis_applies

structs

116struct NxDomainProfile

consts

29const NX_DOMAIN_UNKNOWN: nx_int = 0
30const NX_DOMAIN_HUMAN_ADULT: nx_int = 1
31const NX_DOMAIN_HUMAN_CHILD: nx_int = 2 // tier-profile only; subject-matter gating is Elder AI's job
32const NX_DOMAIN_FANTASY_ORC: nx_int = 3
33const NX_DOMAIN_FANTASY_ELF: nx_int = 4
34const NX_DOMAIN_FANTASY_DWARF: nx_int = 5
35const NX_DOMAIN_CREATURE_WOLF: nx_int = 6
36const NX_DOMAIN_CLOTHING_GARMENT: nx_int = 7
37const NX_DOMAIN_WEAPON_STEEL: nx_int = 8
38const NX_DOMAIN_WEAPON_WOOD: nx_int = 9
39const NX_DOMAIN_ARCHITECTURE: nx_int = 10
40const NX_DOMAIN_ENVIRONMENT: nx_int = 11
41const NX_DOMAIN_FOOD: nx_int = 12
42const NX_DOMAIN_N_KINDS: nx_int = 13
55const NX_AXIS_T0_DIMENSIONS: nx_int = 0
56const NX_AXIS_T1_LUMINANCE: nx_int = 1
57const NX_AXIS_T1_HISTOGRAM: nx_int = 2
58const NX_AXIS_T1_SSIM: nx_int = 3
59const NX_AXIS_T1_SKIN_TONE_ITA: nx_int = 4
60const NX_AXIS_T2_GLCM_TEXTURE: nx_int = 5
61const NX_AXIS_T2_EDGE_DENSITY: nx_int = 6
62const NX_AXIS_T2_PORE_DETAIL: nx_int = 7
63const NX_AXIS_T2_KMEANS_CLUSTERS: nx_int = 8
64const NX_AXIS_T3_FACE_PRESENT: nx_int = 9
65const NX_AXIS_T3_HAND_PRESENT: nx_int = 10
66const NX_AXIS_T3_BODY_PRESENT: nx_int = 11
67const NX_AXIS_T4_UNDERTONE: nx_int = 12
68const NX_AXIS_T4_AGE_CLASS: nx_int = 13
69const NX_AXIS_T4_EXPRESSION_CLASS: nx_int = 14
70const NX_AXIS_T4_MATERIAL_CLASS: nx_int = 15
71const NX_AXIS_T5_VEIN_SIGNAL: nx_int = 16
72const NX_AXIS_T5_SUBSURFACE_SIGNAL: nx_int = 17
73const NX_AXIS_T5_IRIS_DETAIL: nx_int = 18
74const NX_AXIS_T5_LIP_TEXTURE: nx_int = 19
75const NX_AXIS_T5_HAIR_FOLLICLE: nx_int = 20
76const NX_AXIS_T5_MICRO_WRINKLE: nx_int = 21
77const NX_AXIS_T5B_MICRO_EXPRESSION: nx_int = 22
78const NX_AXIS_T6_SHADOW_DIRECTION: nx_int = 23
79const NX_AXIS_T6_FINGER_COUNT: nx_int = 24
80const NX_AXIS_T6_LIMB_COUNT: nx_int = 25
81const NX_AXIS_T6_POSE_NATURALNESS: nx_int = 26
82const NX_AXIS_T6_SURFACE_PLANE: nx_int = 27
83const NX_AXIS_T6_SILHOUETTE_INTEG: nx_int = 28
84const NX_AXIS_T6_JOINT_CONTINUITY: nx_int = 29
85const NX_AXIS_T6_VANISHING_POINT: nx_int = 30
88const NX_AXIS_DX_FABRIC_DRAPE: nx_int = 32
89const NX_AXIS_DX_SEAM_CONTINUITY: nx_int = 33
90const NX_AXIS_DX_WEAVE_PATTERN: nx_int = 34
91const NX_AXIS_DX_BUTTONS_ALIGN: nx_int = 35
92const NX_AXIS_DX_EDGE_GEOMETRY: nx_int = 36
93const NX_AXIS_DX_HAMMERED_PATTERN: nx_int = 37
94const NX_AXIS_DX_BLADE_TAPER: nx_int = 38
95const NX_AXIS_DX_GRAIN_DIRECTION: nx_int = 39
96const NX_AXIS_DX_CARVING_DEPTH: nx_int = 40
97const NX_AXIS_DX_TUSK_COUNT: nx_int = 41
98const NX_AXIS_DX_SCARRING_DENSITY: nx_int = 42
99const NX_AXIS_DX_SKIN_PEBBLE: nx_int = 43
100const NX_AXIS_DX_EAR_POINT: nx_int = 44
101const NX_AXIS_DX_FUR_DIRECTION: nx_int = 45
102const NX_AXIS_DX_CANINE_DENTITION: nx_int = 46
103const NX_AXIS_DX_BRICK_ALIGNMENT: nx_int = 47
104const NX_AXIS_DX_WINDOW_UNIFORM: nx_int = 48
105const NX_AXIS_DX_ROOF_PITCH: nx_int = 49
106const NX_AXIS_DX_HORIZON_LINE: nx_int = 50
107const NX_AXIS_DX_AERIAL_PERSP: nx_int = 51
108const NX_AXIS_DX_ATMOSPHERIC_HAZE: nx_int = 52
123const NX_DOMAIN_PROFILE_BYTES: nx_size = 32
126const NX_DOMAIN_WEIGHT_DEFAULT_Q10: nx_int = 1024

functions

44func nx_domain_is_valid(d: nx_int) -> nx_int
130func _domain_bitor(mask: nx_int, bit: nx_int) -> nx_int
137func _domain_popcount(mask: nx_int) -> nx_int
151func nx_domain_axis_applies(profile: *NxDomainProfile, axis: nx_int) -> nx_int
called by 1: main
164func _domain_human_adult_mask() -> nx_int
193func _domain_fantasy_orc_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
214func _domain_fantasy_elf_mask() -> nx_int
220func _domain_creature_wolf_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
235func _domain_clothing_garment_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
251func _domain_weapon_steel_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
265func _domain_weapon_wood_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
278func _domain_architecture_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
292func _domain_environment_mask() -> nx_int
called by 1: nx_domain_profile_get calls 1: _domain_bitor
308func nx_domain_profile_get(domain_id: nx_int) -> *NxDomainProfile
356func main() -> nx_int