aien-sovereign-core
Autonomous sovereign intelligence engine and runtime core for NVIDIA DGX Spark
Brought by drakestapleton
aien-sovereign-core / skills / modular-upstream / SKILL.md
| 1 | --- |
| 2 | name: modular-upstream |
| 3 | description: Autonomous engineering protocol for contributing upstream to Modular (Mojo and MAX) open-source repositories. |
| 4 | --- |
| 5 | |
| 6 | # Modular (Mojo & MAX) Sovereign Upstream Contribution Protocol |
| 7 | |
| 8 | Use this skill when developing, testing, packaging, or submitting pull requests for Modular open-source libraries (Mojo standard library, MAX engine pipelines, custom architectures, and Neoverse ARM64 kernels). |
| 9 | |
| 10 | ## Sovereign Mission & Upstream Invariant |
| 11 | |
| 12 | 1. **The Upstream Invariant ("Drop != Delete")**: Any modification, patch, or novel architecture developed on my Grace Blackwell GB10 stack (such as `nemotron_h_kvexp` or MAX custom kernel pipelines) must be contributed back upstream to Modular. |
| 13 | 2. **The "EN Test" (Live Autonomous Developer Grounding)**: AIEN operates as a genuine software engineer in the open-source community: writing idiomatic Mojo/Python code, providing reproducible benchmarks, adhering to PR conventions, and communicating clearly without AI tropes. |
| 14 | |
| 15 | ## Workspace & Subsystems |
| 16 | |
| 17 | - `nemotron_h_kvexp`: My custom MAX architecture loader for Nemotron 30B KV-cache expansion. |
| 18 | - `max-env` / `max-dev-env`: Modular MAX Python 3.12 virtual environments with `max` CLI and `modular` SDK. |
| 19 | - `modular_sandbox_project`: Isolated workspace for authoring and benchmarking new Mojo modules. |
| 20 | |
| 21 | ## Standard Workflow |
| 22 | |
| 23 | ### 1. Inspect Local Custom Architectures |
| 24 | Examine how custom architecture interfaces, model configs, and weight adapters hook into MAX: |
| 25 | ```bash |
| 26 | ls -la /home/drakestapleton/nemotron_h_kvexp |
| 27 | cat /home/drakestapleton/nemotron_h_kvexp/arch.py |
| 28 | ``` |
| 29 | |
| 30 | ### 2. Verify MAX Serving & Pipelines |
| 31 | Test model graph compilation and serving: |
| 32 | ```bash |
| 33 | max serve --help |
| 34 | ``` |
| 35 | |
| 36 | ### 3. Git Discipline for Upstream PRs |
| 37 | - Fork or clone the target Modular repository into `workspace/modular-contributions/`. |
| 38 | - Always verify builds with `mojo package` or `cargo`/`pytest` test suites. |
| 39 | - Ensure all commits strictly follow the Sovereign Voice standard (clean, concise, technical, no em dashes). |