cordanaLLM/nucleus is the companion repository and automated build forge producing customized, hardened, and hardware-optimized Linux kernel distributions for imago.
cordanaLLM/nucleus decouples low-level kernel compilation from cloud image creation:
- Multi-Stream Channels: Builds and packages 4 kernel streams from live upstream sources (kernel.org).
- Multi-Architecture: Produces native
.debpackages forx86_64(AMD64),arm64(AArch64), andriscv64. - Hardened Configuration Fragments: Enforces NASA/JPL Power of 10 principles, KSPP security hardening, BBRv3 congestion control, eBPF sched-ext scheduling, OpenZFS 2.3 kmod compatibility, and NVMe-oF TCP optimizations.
- Bidirectional Downstream Integration: Synchronizes verified releases downstream to
imagovia GitHubrepository_dispatch.
flowchart TD
classDef upstream fill:#0284c7,stroke:#0369a1,stroke-width:2px,color:#ffffff
classDef engine fill:#7c3aed,stroke:#6d28d9,stroke-width:2px,color:#ffffff
classDef stream fill:#059669,stroke:#047857,stroke-width:2px,color:#ffffff
classDef dest fill:#d97706,stroke:#b45309,stroke-width:2px,color:#ffffff
Upstream["Upstream kernel.org CDN<br/><small>Mainline, Stable, LTS, Realtime</small>"]:::upstream
Forge["nucleus Engine<br/><small>scripts/build_kernel.sh</small>"]:::engine
KConfig["Hardened KConfig Fragments<br/><small>kconfig/*.config</small>"]:::engine
Patches["Curated Patch Queue<br/><small>patches/*</small>"]:::engine
subgraph Streams["Kernel Release Streams"]
Bleeding["bleeding (7.3-rc2)<br/><small>RTX 5090 / B200 / sched-ext</small>"]:::stream
Mainstream["mainstream (7.2.4)<br/><small>Battlemage Xe2 / ROCm 10</small>"]:::stream
LTS["lts (6.18.50)<br/><small>Enterprise K8s / OpenZFS 2.3</small>"]:::stream
RT["realtime (7.2-rt)<br/><small>Deterministic Low-Latency</small>"]:::stream
end
Downstream["Downstream Image Forge<br/><small>cordanaLLM/imago</small>"]:::dest
Upstream --> Forge
KConfig --> Forge
Patches --> Forge
Forge --> Streams
Streams -->|"repository_dispatch"| Downstream
style Streams fill:none,stroke:#059669,stroke-width:2px,stroke-dasharray: 4 4
| Stream | Upstream Base | Target Workloads & Hardware Stack | Default In Flavors |
|---|---|---|---|
bleeding |
Linux 7.3-rc2 | NVIDIA Blackwell RTX 5090 / B200, CXL 3.0, sched-ext, experimental BBRv3 | *-nvidia-bleeding |
mainstream |
Linux 7.2.4 | Intel Arc Battlemage Xe2, AMD ROCm 10, NVIDIA 565/610, Podman 5.x | base-*, docker-*, ai-infer-* |
lts |
Linux 6.18.50 | Enterprise Kubernetes nodes (k8s-node-*), OpenZFS 2.3, CloudNativePG (cloudnative-pg) |
k8s-node-*, cloudnative-storage |
realtime |
Linux 7.2-rt | PREEMPT_RT deterministic gaming servers, low-latency audio/telecom, WireGuard gateway | appliance-game-server, appliance-gateway-dns |
- Debian/Ubuntu host with kernel build dependencies:
sudo apt-get update && sudo apt-get install -y \ build-essential libncurses-dev bison flex libssl-dev libelf-dev \ bc git fakeroot rsync debhelper kmod
# Display all ergonomic developer targets
make help
# Merge KConfig fragments for target architecture
make merge-config ARCH=x86_64
# Package native Debian packages (.deb) with headers
make package-deb STREAM=mainstream ARCH=x86_64
# Synthesize Unified Kernel Image (UKI) PE binary (.efi)
make package-uki STREAM=mainstream ARCH=x86_64
# Run reproducible build attestation
make verify-reproducibility
# Execute sub-second QEMU microVM cold boot test
make test-boot
# Build hermetic multi-architecture container
make docker-builderOutput .deb packages and .efi UKI binaries are staged under output/<stream>-<arch>/.
.
├── .github/workflows/ # Automated build & downstream synchronization workflows
├── AGENTS.md # Authoritative AI agent directives and standards
├── docs/ # Architecture, onboarding, and stream documentation
│ ├── onboarding.md # Step-by-step onboarding guide for agents & contributors
│ ├── principles.md # Engineering principles & NASA/JPL Power of 10 adaptations
│ ├── streams.md # Detailed stream specifications
│ └── patches.md # Patch queue management & upstreaming policy
├── kconfig/ # Modular kernel configuration fragments
│ ├── x86_64.config # AMD64 virtualization & bare-metal baseline
│ ├── arm64.config # AArch64 Neoverse & Apple Silicon baseline
│ ├── riscv64.config # RISC-V 64-bit baseline
│ └── security-hardened.config# Kernel Self-Protection Project (KSPP) baseline
├── patches/ # Curated patch queues partitioned by stream
├── scripts/ # Verified build and notification automation
├── tests/ # Automated pytest and static analysis suite
└── versions.json # Declarative Single Source of Truth
-
Zero-Leak Invariant: No RFC 1918 private IPs (
10.x,192.168.x,172.16-31.x) or developer workstation paths (/home/...) are permitted in tracked files. Placeholders like192.0.2.xandkernel.example.commust be used. -
Power of 10 Compliance: All shell functions are constrained to
$\le 60$ lines withset -euo pipefailand zero ShellCheck warnings. -
Reproducible Builds: All kernel compilation scripts pin exact upstream tarball checksums declared in
versions.json.
cordanaLLM/nucleus is open-source software licensed under the Apache License 2.0.
Copyright © 2026 The Lusoris Authors. All rights reserved.