code wiki / (root) / nx_seed.nx

nx_seed.nx

buildroot/runtime/nx_seed.nx

13318 B325 linesdepth 2pulls 2 transitivereach 1 importersview sourcekind librarytopic seed
docsdependenciesstructsconstsfunctions

about

nx_seed.nx -- capability + longevity-aware assembly from silicon up. Per META-CARDINAL feedback-forest-meta-vision-drift-lifecycle: with niche known, nx_seed evaluates the device and grows it into the HIGHEST capability it can sustain for the LONGEST viable lifecycle -- silicon-up, niche-shaped, no omni-tool bloat. V1 ships: - sealed enum of organelle bundles (the six organelles per NISHI_SOVEREIGN_RUNTIME_AND_STORAGE_ROADMAP composed into named bundles by niche) - lifecycle-longevity tracking (battery / NAND-wear / thermal / generational hardware turnover) - assembly state machine + per-niche organelle subset selection Composes: nx_niche -- device-purpose verdict gates organelle bundle nx_attest_silicon -- silicon-trust gates sovereignty-critical organelles nx_spore -- successor to spore lifecycle (READY_FOR_SEED -> seed) nx_chromatin -- organelle blocks fetched via chromatin nx_budget -- per-cell budget profile per niche Per [[feedback-honest-perf-verdict-no-aspirational-claims]]: the existing six-organelle substrate is per NISHI_SOVEREIGN_RUNTIME roadmap (cell / brane / vacuole / chromatin / vesicle / lysosome); V1 of nx_seed names the bundle composition WITHOUT yet wiring the actual organelle-fetch pathway (that's V2 once chromatin block transport ships). Gap list (V1 honest perf verdict): - organelle bundle is sealed enum; actual fetch path is V2 - longevity targets are research-derived (thermal-design-power, NAND P/E cycles, battery cycle life); per-host validation V2 - hardware silicon-up configuration (MMU/caches) is V2+ silicon arc dependency genealogy_id: nishi_metacardinal_2026-05-19_forest_drift_lifecycle lineage_id: substrate_seed_v1 nx_safety_envelope:

dependencies 2 imports · 1 importers

nx_syscalls.nx nx_tier.nx nx_seed.nx nx_seed_test.nx

imports: nx_syscalls.nxnx_tier.nx

imported by: nx_seed_test.nx

structs

102struct NxSeedAssembly

consts

53const NX_MAGIC_2190: i64 = 2190
54const NX_MAGIC_1825: i64 = 1825
55const NX_MAGIC_1095: i64 = 1095
56const NX_MAGIC_2920: i64 = 2920
57const NX_MAGIC_3650: i64 = 3650
58const NX_MAGIC_5475: i64 = 5475
66const NX_OB_MINIMAL_CORE: nx_int = 0 // all niches; the 6 organelles
67const NX_OB_WORKSTATION_FULL: nx_int = 1 // GAMING_WORKSTATION / DEV_WORKSTATION
68const NX_OB_LAPTOP_BATTERY_AWARE: nx_int = 2 // LAPTOP / TABLET
69const NX_OB_SMARTPHONE_RADIO_AWARE: nx_int = 3
70const NX_OB_NAS_STORAGE_HEAVY: nx_int = 4 // HOME_NAS
71const NX_OB_IOT_LIGHTWEIGHT: nx_int = 5 // EMBEDDED_SENSOR / IOT_HUB
72const NX_OB_INDUSTRIAL_REALTIME: nx_int = 6 // INDUSTRIAL_PLC / ROBOTIC_ARM / AGV
73const NX_OB_MEDICAL_SAFETY_GATED: nx_int = 7 // MEDICAL_DIAGNOSTIC / THERAPEUTIC
74const NX_OB_AUTOMOTIVE_SAFETY_CRITICAL: nx_int = 8 // AUTOMOTIVE_ECU
75const NX_OB_3DPRINTER_CNC_LASER: nx_int = 9 // DESKTOP_3DPRINTER / CNC / LASER
76const NX_OB_N_BUNDLES: nx_int = 10
80const NX_SE_PENDING_NICHE: nx_int = 0 // waiting for niche verdict
81const NX_SE_BUNDLE_SELECTED: nx_int = 1
82const NX_SE_TRUST_GATED: nx_int = 2 // silicon-trust check pending
83const NX_SE_FETCHING_ORGANELLES: nx_int = 3
84const NX_SE_VERIFYING_ORGANELLES: nx_int = 4
85const NX_SE_ASSEMBLED: nx_int = 5
86const NX_SE_FAILED: nx_int = 6
87const NX_SE_N_STATES: nx_int = 7
91const NX_SE_V_OK: nx_int = 0
92const NX_SE_V_ERR_INVALID_NICHE: nx_int = 1
93const NX_SE_V_ERR_INVALID_BUNDLE: nx_int = 2
94const NX_SE_V_ERR_TRUST_INSUFFICIENT: nx_int = 3
95const NX_SE_V_ERR_NULL_INPUT: nx_int = 4
96const NX_SE_V_ERR_INVALID_TRANSITION: nx_int = 5
97const NX_SE_V_REFUSED_NICHE: nx_int = 6 // refused niche per nx_allelopathy
98const NX_SE_V_N_VERDICTS: nx_int = 7
114const NX_SE_BYTES: nx_int = 64

functions

118func nx_ob_bundle_is_valid(b: nx_int) -> nx_int
126func nx_se_state_is_valid(s: nx_int) -> nx_int
134func nx_se_v_is_valid(v: nx_int) -> nx_int
called by 1: main
145func nx_ob_requires_safety_gate(b: nx_int) -> nx_int
158func nx_ob_select_for_niche(niche: nx_int) -> nx_int
198func nx_ob_expected_lifecycle_days(b: nx_int) -> nx_int
214func nx_ob_thermal_budget_w(b: nx_int) -> nx_int
230func _se_transition_allowed(from: nx_int, to: nx_int) -> nx_int
262func nx_se_assembly_new(niche: nx_int,
called by 1: main calls 1: sys_mmap
283func nx_se_assembly_select_bundle(a: *NxSeedAssembly,
306func nx_se_assembly_advance(a: *NxSeedAssembly,
321func nx_se_assembly_is_complete(a: *NxSeedAssembly) -> nx_int
called by 1: main