name: modular-upstream description: Autonomous engineering protocol for contributing upstream to Modular (Mojo and MAX) open-source repositories.
Modular (Mojo & MAX) Sovereign Upstream Contribution Protocol
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).
Sovereign Mission & Upstream Invariant
- The Upstream Invariant ("Drop != Delete"): Any modification, patch, or novel architecture developed on my Grace Blackwell GB10 stack (such as
nemotron_h_kvexpor MAX custom kernel pipelines) must be contributed back upstream to Modular. - 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.
Workspace & Subsystems
nemotron_h_kvexp: My custom MAX architecture loader for Nemotron 30B KV-cache expansion.max-env/max-dev-env: Modular MAX Python 3.12 virtual environments withmaxCLI andmodularSDK.modular_sandbox_project: Isolated workspace for authoring and benchmarking new Mojo modules.
Standard Workflow
1. Inspect Local Custom Architectures
Examine how custom architecture interfaces, model configs, and weight adapters hook into MAX:
ls -la /home/drakestapleton/nemotron_h_kvexp
cat /home/drakestapleton/nemotron_h_kvexp/arch.py
2. Verify MAX Serving & Pipelines
Test model graph compilation and serving:
max serve --help
3. Git Discipline for Upstream PRs
- Fork or clone the target Modular repository into
workspace/modular-contributions/. - Always verify builds with
mojo packageorcargo/pytesttest suites. - Ensure all commits strictly follow the Sovereign Voice standard (clean, concise, technical, no em dashes).