nx_seed.nx
buildroot/runtime/nx_seed.nx
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
imports: nx_syscalls.nxnx_tier.nx
imported by: nx_seed_test.nx
structs
| 102 | struct NxSeedAssembly |
consts
| 53 | const NX_MAGIC_2190: i64 = 2190 |
| 54 | const NX_MAGIC_1825: i64 = 1825 |
| 55 | const NX_MAGIC_1095: i64 = 1095 |
| 56 | const NX_MAGIC_2920: i64 = 2920 |
| 57 | const NX_MAGIC_3650: i64 = 3650 |
| 58 | const NX_MAGIC_5475: i64 = 5475 |
| 66 | const NX_OB_MINIMAL_CORE: nx_int = 0 // all niches; the 6 organelles |
| 67 | const NX_OB_WORKSTATION_FULL: nx_int = 1 // GAMING_WORKSTATION / DEV_WORKSTATION |
| 68 | const NX_OB_LAPTOP_BATTERY_AWARE: nx_int = 2 // LAPTOP / TABLET |
| 69 | const NX_OB_SMARTPHONE_RADIO_AWARE: nx_int = 3 |
| 70 | const NX_OB_NAS_STORAGE_HEAVY: nx_int = 4 // HOME_NAS |
| 71 | const NX_OB_IOT_LIGHTWEIGHT: nx_int = 5 // EMBEDDED_SENSOR / IOT_HUB |
| 72 | const NX_OB_INDUSTRIAL_REALTIME: nx_int = 6 // INDUSTRIAL_PLC / ROBOTIC_ARM / AGV |
| 73 | const NX_OB_MEDICAL_SAFETY_GATED: nx_int = 7 // MEDICAL_DIAGNOSTIC / THERAPEUTIC |
| 74 | const NX_OB_AUTOMOTIVE_SAFETY_CRITICAL: nx_int = 8 // AUTOMOTIVE_ECU |
| 75 | const NX_OB_3DPRINTER_CNC_LASER: nx_int = 9 // DESKTOP_3DPRINTER / CNC / LASER |
| 76 | const NX_OB_N_BUNDLES: nx_int = 10 |
| 80 | const NX_SE_PENDING_NICHE: nx_int = 0 // waiting for niche verdict |
| 81 | const NX_SE_BUNDLE_SELECTED: nx_int = 1 |
| 82 | const NX_SE_TRUST_GATED: nx_int = 2 // silicon-trust check pending |
| 83 | const NX_SE_FETCHING_ORGANELLES: nx_int = 3 |
| 84 | const NX_SE_VERIFYING_ORGANELLES: nx_int = 4 |
| 85 | const NX_SE_ASSEMBLED: nx_int = 5 |
| 86 | const NX_SE_FAILED: nx_int = 6 |
| 87 | const NX_SE_N_STATES: nx_int = 7 |
| 91 | const NX_SE_V_OK: nx_int = 0 |
| 92 | const NX_SE_V_ERR_INVALID_NICHE: nx_int = 1 |
| 93 | const NX_SE_V_ERR_INVALID_BUNDLE: nx_int = 2 |
| 94 | const NX_SE_V_ERR_TRUST_INSUFFICIENT: nx_int = 3 |
| 95 | const NX_SE_V_ERR_NULL_INPUT: nx_int = 4 |
| 96 | const NX_SE_V_ERR_INVALID_TRANSITION: nx_int = 5 |
| 97 | const NX_SE_V_REFUSED_NICHE: nx_int = 6 // refused niche per nx_allelopathy |
| 98 | const NX_SE_V_N_VERDICTS: nx_int = 7 |
| 114 | const NX_SE_BYTES: nx_int = 64 |
functions
| 118 | func nx_ob_bundle_is_valid(b: nx_int) -> nx_int |
| 126 | func nx_se_state_is_valid(s: nx_int) -> nx_int |
| 134 | func nx_se_v_is_valid(v: nx_int) -> nx_int called by 1: main |
| 145 | func nx_ob_requires_safety_gate(b: nx_int) -> nx_int |
| 158 | func nx_ob_select_for_niche(niche: nx_int) -> nx_int |
| 198 | func nx_ob_expected_lifecycle_days(b: nx_int) -> nx_int |
| 214 | func nx_ob_thermal_budget_w(b: nx_int) -> nx_int |
| 230 | func _se_transition_allowed(from: nx_int, to: nx_int) -> nx_int |
| 262 | func nx_se_assembly_new(niche: nx_int, |
| 283 | func nx_se_assembly_select_bundle(a: *NxSeedAssembly, |
| 306 | func nx_se_assembly_advance(a: *NxSeedAssembly, |
| 321 | func nx_se_assembly_is_complete(a: *NxSeedAssembly) -> nx_int called by 1: main |