Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/CUDApp/blob/main/docs/AUDIT.md # CUDApp CUDA++: AIEN’s GPU machine-code toolchain, runtime and driver client for NVIDIA GPUs without the CUDA toolkit. Hardware coverage and driver replacement limits are explicit. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `CUDApp / docs / AUDIT.md` 85 lines · 12047 bytes Raw Blame History Rendered 1 # Licence and safety audit (before the first public push) 2 3 > Historical record of the 2026-10-21 extraction, when CUDA++ was published under MIT. First-party material is now Apache-2.0 WITH LLVM-exception ([LICENSING_TRANSITION.md](LICENSING_TRANSITION.md), [LICENSE_PROVENANCE.md](LICENSE_PROVENANCE.md)); only NVIDIA's open-kernel-module headers in `third_party/` remain MIT. The only later edits are this note, the redaction of one personal e-mail address and one home path (2026-10-26), and the correction below (2026-10-27). 4 5 CUDA++ was split out of Omega (Apache-2.0 WITH LLVM-exception) and physics (Apache-2.0 WITH LLVM-exception) on 2026-10-21 to be published under MIT. Relicensing is only possible for lines whose authors agree, nothing secret may be in any version of any file, and no NVIDIA binary may be in the history. This file records what was checked, how, and the result. Every check below can be re-run with the scripts in `tools/extract/`. 6 7 Status: **CLEAN** for the history listed in section 1 (see section 6 for what this audit does not cover). 8 9 > **Correction, 2026-10-27 (CUDApp#89).** The binary check in sections 4 and 5 did not work. `audit-scan.sh` tested for a zero byte with `grep -qP '\x00'`, which never matches under `LC_ALL=C` with GNU grep 3.11, so every run reported 0 binaries, and compressed blobs were never searched in decompressed form. The "0 binaries" results below are therefore unsupported. The script now counts zero bytes with `tr`, scans binary blobs as bytes (`grep -a`), and scans gzip/bzip2/xz/zstd/zip blobs decompressed; `audit-selftest.sh` plants a NUL-byte blob and a gzipped secret, and the previous scanner fails it (15 of 17 found). The re-run on a mirror of this repository (main ``2fab72f``, 200 refs, 5954 blobs) found 669 blobs with zero bytes and 464 gzip blobs, all scanned, and no credential except the known self-test fakes. Two statements below are also not true of the whole repository: those fakes were removed from `main` only and remain reachable from five other branches, and the personal address redacted on 2026-10-26 is still in commit metadata. Pull-request merges made from the aien-spark account kept adding it after the redaction (35 merge commits on `main` between 2026-10-26 and 2026-10-27), because GitHub writes the account's primary email as the merge author. An `nvdisasm` listing (`tests/device-trace/expected.sass`) was in `main` history until #93, contrary to section 5. Details: CUDApp#89. 10 11 ## 1. What was cut, from where 12 13 | Source | Commit | Paths | Commits kept | 14 | --- | --- | --- | --- | 15 | aien-spark/omega `main` | `a8ffd2b912c84197d08f963b05f9c7d8b30a3f8a` | 167 paths: 100 GPU source files, 9 shared-base files, 47 tests, 3 build fragments, 2 mutation scripts, 6 receipt folders (`tools/extract/out/`, `graph.sh`, `extra-paths.txt`) | 141 | 16 | aien-spark/physics `main` | `14273c5ce7d13fbc6e410c4fed9aa36837918177` | 17 paths: `nvrm/` + `m16/` sources, m16 tests and gates, one receipt, `third_party/nvidia-open-580.173.02/` (`physics-paths.txt`) | 18 | 17 18 - The file list comes from the include graph plus the header-to-source link rule (`tools/extract/graph.sh`): it starts from `src/omega_blackwell_*` and `src/omega_gpu_*` and needed no language file (src/compiler, src/checker2, tools/omegese). 19 - History was cut with git's own `fast-export` (path-limited) and `fast-import` (`tools/extract/extract.sh`). Every earlier name of every kept file was looked up with `git log --follow`; none of the kept files had one (they were created at their current paths). 20 - Tree check: at the two source commits, each of the 167 + 17 kept paths is byte-identical in the cut, and the cut holds nothing else. Old-to-new commit ids: `tools/extract/out/commit-map-{omega,physics}.tsv`. 21 - The runtime branches `runtime/r1-api`, `runtime/r2-hello`, `runtime/r3-portability` (each 1 to 2 commits on the same Omega commit) were carried over and merged. 22 23 ## 2. Authors 24 25 Every author, committer and co-author line on CUDA++ `main` (`git log main --format='%an <%ae>'`, `%cn <%ce>`, `Co-authored-by` trailers): 26 27 | Who | Role | Commits | 28 | --- | --- | --- | 29 | Drake Stapleton , | author | 112 | 30 | aien-dev | Drake's GitHub organisation account (bots and merges) | 57 | 31 | aien-spark | Drake's earlier organisation account | 6 | 32 | GitHub | committer of merged pull requests | 65 | 33 | Claude (Fable 5.1, Opus 5.5, Sonnet 5.5), GPT-6 Astra / Codex, Grok 4.7, Gemini 3.8 | AI co-authors working for Drake | trailers only | 34 35 **No person other than Drake authored any line.** No outside contributor's pull request is in this history. Drake, as the sole author, relicenses these files under MIT. The AI co-authors are tools Drake ran; they hold no copyright. 36 37 ## 3. Third-party material 38 39 - **NVIDIA open GPU kernel module headers** (`third_party/nvidia-open-580.173.02/`, 67 files, copied unchanged): every file carries NVIDIA's MIT notice (60 with `SPDX-License-Identifier: MIT`, 7 older files with the MIT permission text). NVIDIA's `COPYING` says the files are MIT and only a linked Linux kernel module is dual MIT/GPLv2. Fine for MIT; notices kept, listed in `THIRD_PARTY.md`. 40 - **Mesa (NVK and NAK)**: 20 comments in `src/` cite Mesa's open NVIDIA driver for hardware facts (opcodes, bit positions, a few latency values, QMD layout, dispatch and cache-invalidate order). The cited files were checked at gitlab.freedesktop.org/mesa/mesa on 2026-10-21: all `SPDX-License-Identifier: MIT` (Collabora, Red Hat). Fine for MIT; notice in `THIRD_PARTY.md`. 41 - Search over every kept file (not the NVIDIA headers) for `copyright`, `SPDX`, URLs and the names Mesa, NVK, NAK, nouveau, envytools, CUTLASS, cuobjdump, nvdisasm, maxas, turingas, CuAssembler, tinygrad, llama.cpp, ggml, FlashAttention, Triton, GPGPU-Sim, Linux kernel, GPL: no copyright header or licence text from anyone else, no URL, and no code from any of these. The only hits are the Mesa citations above and mentions of NVIDIA's `nvdisasm` and `cuobjdump` as cross-check tools. 42 - `tools/zero-cuda-gate.sh` is copied from aien-sovereign-core `14126c62`, written by aien-dev (Drake). 43 - NVIDIA documentation: comments cite NVIDIA's public PTX ISA manual by section number (9.7.3.13, 9.7.3.21) and quote a few words of it (for example "flushes subnormal inputs and results to"), as references for chip behaviour. No table, listing or code is copied from NVIDIA documentation. 44 - No Linux kernel code, no GPL code and no AGPL code from anyone but Drake. 45 46 ## 4. Secrets and private data, whole history 47 48 Scanned: **every blob reachable from any ref** (deleted files and old versions included) and **every commit and tag message** of both cuts, not just the final files. 49 50 | Check | Tool | Result | 51 | --- | --- | --- | 52 | Credentials (private keys, AWS, GitHub, GitLab, Slack, Anthropic, OpenAI, Google, xAI, npm, Tailscale/Headscale keys, JWTs, SSH public keys, `api_key=`-style assignments, Cortex token) | `tools/extract/audit-scan.sh` (rules `rules-secrets.txt`) | 0 hits in 624 + 151 blobs and all messages | 53 | Scanner works | `tools/extract/audit-selftest.sh`: plants 15 fake secrets, one in a deleted file's history and one in a commit message | PASS: 15 of 15 found | 54 | Second scanner | gitleaks 8.30.1 (linux arm64 release, sha256 `e4a487ee7ccd7d3a7f7ec08657610aa3606637dab924210b3aee62570fb4b080` matched its published checksum), `gitleaks git --log-opts=--all` on clones of both cuts | no leaks found | 55 | Whole published history (`git clone --mirror` of this repository, every ref) | both scanners above | first run 2026-10-22 00:10Z: 10 hits (own) and 3 (gitleaks), all the fake keys `audit-selftest.sh` plants on purpose, written as plain strings in that script. Fixed: the script now builds them at run time from pieces, and the old versions were rewritten out of every commit (`git filter-branch --index-filter`, main only, from commit `e1cc4f4` on; the Omega and physics cut commits are untouched, so `carry.sh` still matches). Re-run after the fix: see the line below | 56 | Same, after the fix | both scanners | own: 1018 blobs, 0 binaries, 0 secret hits; gitleaks: 162 commits, no leaks found (2026-10-22 01:34Z, GitHub mirror: main `72ec187` and docs/how-we-did-it `62ea5a2`). Private-data hits are the same kinds as in the row below (plus `t@example.invalid`, the self-test identity, and `git@github.com` in clone commands) | 57 | IP addresses, host names, e-mail addresses, home paths | `rules-private.txt`, reviewed by hand | e-mail: only commit identities (drake@aienos.com, noreply addresses). IP-like: `9.7.3.13` / `9.7.3.21` are PTX ISA manual section numbers, `12.34.56.78` is an example in an NVIDIA header. Home paths: build folder names in receipt logs (`~/workspace/...`), no private content; kept | 58 59 Kept out of the history (removed from every commit, listed in `tools/extract/omega-exclude.txt` and `physics-exclude.txt`): 60 61 - six machine process listings (`evidence/R4-MATMUL-CTA-`ffc3176a`/*/ps-{before,after}.txt`): full command lines of other programs running on Drake's machine. Private, not needed by CUDA++. They stay in Omega with the rest of that receipt. 62 - `evidence/OWN30B-T3-TC-PEAK-BW-`5faa0f70`-20261013T2236Z/fa_ops.sass`: a listing of machine code produced by NVIDIA's compiler (see section 5). That receipt's `SHA256SUMS` still names it; the file is in Omega. 63 - `nvrm/lifecycle_gates`: a compiled program (74 KB ELF) built from `nvrm/lifecycle_gates.c`. 64 65 ## 5. NVIDIA binaries 66 67 - Scope: the two extraction cuts audited above (624 + 151 blobs). Every blob in both histories was checked for binary content (any zero byte): **0 binary files** after the exclusions above. 68 - In those cuts: no firmware, no `libcuda`, no cubin, fatbin or PTX, no `.so`, `.o` or `.a`. 69 - Not covered by that scan: receipts added to `evidence/` after the cuts. At main ``780a0af`` they hold 40 files named `.bin`/`.cubin` (`find evidence -type f \( -name '*.cubin' -o -name '*.bin' -o -name '*.so' -o -name '*.o' -o -name '*.ko' \)`): 26 in `LEARN53-L777-CONTINUATION`, 10 in `MAX-INTEROP/68` (two cubins plus QMD, text and constant-bank bytes written by CUDA++'s own `artifact-export`), 3 in `speculation` (`synthetic-*.bin`) and 1 in `LEARN53-L777`. None is a `.so`, `.o` or `.ko`. 70 - No listing produced by NVIDIA tools (`nvdisasm`, `cuobjdump`) and nothing copied from NVIDIA's documentation. Some host tests call NVIDIA's `nvdisasm` at run time when it is installed, to cross-check my encoder; nothing it prints is stored. 71 - Later change (recorded 2026-10-27, after this audit): #84 added `tests/device-trace/expected.sass`, an `nvdisasm` decode of CUDA++'s own trace-emitter words, and #93 removed it again the same day (the runner now checks hand-written expectations). `evidence/MAX-INTEROP/68/` holds two cubins written by CUDA++'s own cubin writer. `PROVENANCE.md` section 6 records stored NVIDIA-tool output. 72 - One CUDA C++ source remains in a receipt: `evidence/OWN30B-T3-TC-PEAK-BW-`5faa0f70`-20261013T2236Z/fa_ops.cu`, my own probe kernel, used once with NVIDIA's compiler to measure the tensor-core ceiling I compare against. It is my code, not NVIDIA's. 73 74 ## 6. Limits of this audit 75 76 - It covers the CUDA++ `main` history named in section 1 plus the commits added in this repository. Branches carried in later (`tools/extract/carry.sh`) need `audit-scan.sh` and gitleaks again before they are pushed. 77 - "Only Drake authored it" rests on the commit identities and the organisation's membership (Drake and his agents). It does not prove that no line was ever pasted from elsewhere; section 3's search is the check for that, and it found only the MIT sources named there. 78 - The ten shared-base files (`tools/extract/shared.txt`: nine sources plus `tools/mutation_runner.sh`) are also in Omega under Apache-2.0 WITH LLVM-exception. Both copies are Drake's; CUDA++'s copies are MIT. 79 80 ## Re-run 81 82 ```bash 83 tools/extract/audit-selftest.sh 84 tools/extract/audit-scan.sh # per repository or cut 85 ```