interplane.Get Omega
Read in your language

aien-train

AIEN training programme: language-model history, GB10 constraints and the route to training on the project engine. Plans and runnable checks are distinguished.

Brought by drakestapleton

GitHub aien-dev/aien-train#32 (code only)

closed derived 552a469df5264d1e #32

Imported from GitHub aien-dev/aien-train#32 (code only)

GitHub's metadata for this pull request is unavailable: its state is DERIVED from the commits (merged: the head is reachable from this project's main; open: GitHub kept a merge ref; else closed).

Base 3481e8c84cb95bd3ec0aa3c0171e294c685ed954 · Head 1059eae314a9a624f8f4a728e13dc210374b6536

Fetch it

A git bundle of the pull request's head, 7371 bytes.

curl -fsSL https://interplane.io/drakestapleton/aien-train/patches/552a469df5264d1e.bundle -o 552a469df5264d1e.bundle
git fetch 552a469df5264d1e.bundle refs/pull/32/head

Raw bundle · Diff

Provenance

This proposal is imported from GitHub; it is not signed by its author. Its import statement and source record:

github-import 1
aien-dev/aien-train
32
1059eae314a9a624f8f4a728e13dc210374b6536
{"kind":"github-import","owner":"aien-dev","repo":"aien-train","number":32,"url":"https://github.com/aien-dev/aien-train/pull/32","export_sha256":"967c79e26a893657b5cdaa45efd442be5dbd2ecfe68e25f9a8c1b5da4d60d452","imported_utc":"2026-11-18T16:40:33Z","metadata":"unavailable","state_derived":true}

Changes

diff --git a/AUDIT_SCOPE.md b/AUDIT_SCOPE.md
new file mode 100644
index 0000000..2d8d713
--- /dev/null
+++ b/AUDIT_SCOPE.md
@@ -0,0 +1,115 @@
+# Audit scope
+
+Written for an outside, independent security audit. Revision described:
+`3481e8c84cb95bd3ec0aa3c0171e294c685ed954` on `main`, 2026-10-30 (751 tracked files). Later merges
+add units; check `git log` for anything newer. Items marked NOT_RUN were not executed while
+writing this document.
+
+## What this repository is
+
+Native training work for AIEN's own engine (Omega, no CUDA, no third-party training
+framework). The product code is handwritten seeded Omega (`.om`) compiled by the pinned `omc`
+seed compiler; every check and verdict lives in the `.om` units. All results so far are host
+CPU (aarch64) runs. No unit has run on a GPU or the DGX Spark (GB10); that work stays NOT_RUN and
+needs an authorised hardware window (AGENTS.md).
+
+## Inventory
+
+Native `.om` units and their tests, each with a contract under `docs/<area>/` and receipts under
+`evidence/<AREA>/`:
+
+| Area | Units | Tests | Contract | Evidence |
+| --- | --- | --- | --- | --- |
+| distributed7 (admission over the shared tensor contract, #14) | `native/distributed7/` | `tests/distributed7/admission.om`, `mutate.om` | `docs/distributed7/CONTRACT.md` | `evidence/DISTRIBUTED7/` |
+| ecosystem5 (PACK5 training-example packing, #16) | `native/ecosystem5/` | `tests/ecosystem5/pack-test.om`, `mutate.om` | `docs/ecosystem5/CONTRACT.md` | `evidence/ECOSYSTEM5/` |
+| ecosystem6 (FP32 forward, backward and SGD step, #15) | `native/ecosystem6/` | `tests/ecosystem6/step-test.om`, `mutate.om` | `docs/ecosystem6/CONTRACT.md` | `evidence/ECOSYSTEM6/` |
+| si19 (offline experiential world model, #22) | `native/si19/` | `tests/si19/world-test.om` | `docs/si19/CONTRACT.md` | `evidence/SI19/` |
+| collective (shared-base specialist pilot, #27) | `native/collective/` | self-test inside `shared_bank_p0.om` | `native/collective/README.md` | host record in that README |
+| neuralese NL1 (numerical channel experiment, #36) | `native/neuralese/*.om`, `mutants/` | `check.om`, `gradientcheck.om` | `native/neuralese/README.md` | `native/neuralese/evidence/` |
+
+Non-`.om` tracked files that execute: `tests/si19/run.sh` (disclosed POSIX host glue that
+materialises pinned sources, checks hashes, builds and runs; no verdict logic) and the Wolfram
+Language oracles `native/neuralese/*.wl` (independent reference only, never in the product
+path).
+
+## Pinned external `.om` dependencies
+
+`docs/ecosystem6/dependencies.json` pins the compiler (omega-bridge `0fc7d866`, binary sha256
+`191b776e...98e9`, aarch64 static ELF) and three external sources by commit and sha256:
+`native/ref32/add32.om` and `native/ref32/mul32.om` from omega-bridge `7e1d0d61`, and
+`native/ecosystem663/metadata.om` from omega-mv `3a995ba8`. `docs/si19/dependencies.json` pins
+the same three plus `native/ecosystem6/affine.om` from this repository at `c9782bfd`, with
+hashes in `docs/si19/deps.sha256`.
+
+## What an auditor can check here
+
+- That no tracked file carries tokens, credentials or private data.
+- That every pinned dependency materialises from its commit with the recorded sha256.
+- That the `.om` tests pass and the mutants fail, by replaying the contracts (below).
+- That no number is presented as measured without a receipt in `evidence/` or the unit's
+  README, and that GPU/Spark results are labelled NOT_RUN.
+
+Cannot be checked here: any GPU kernel, device measurement or real-model training. None exists.
+
+## What to review, in priority order
+
+1. Inputs the `.om` units read (images, records, fixtures) and their refusal paths: damaged or
+   truncated images, out-of-range ids, denied candidates.
+2. Dependency pinning: the commits and sha256 values above, and that runners refuse a mismatch.
+3. `tests/si19/run.sh`: the only shell in the tree; it reads only pinned Git objects and the
+   compiler path given in the environment.
+4. All tracked files for secrets or private data.
+5. `docs/PLAN.md` and `AGENTS.md`: the rules that govern the code (no CUDA or third-party
+   training framework in the product path; every number names its chip; GPU work only in an
+   authorised hardware window).
+
+There is no `.github/workflows/` directory and no GitHub check runs on pull requests.
+
+## Trust boundaries
+
+- Untrusted: pull requests from outside contributors; any input file given to a `.om` driver.
+- Trusted: the maintainer's review; the pinned compiler binary, identified by sha256.
+  `main` receives merges and tags only (AGENTS.md).
+- Planned GPU work needs an authorised window on the hardware (AGENTS.md).
+
+## Threat model summary
+
+- Assets: the honesty of measurements and receipts; absence of secrets in a public repository;
+  integrity of pinned dependencies.
+- Attackers considered: accidental commit of private data; unreceipted numbers; a swapped
+  dependency or compiler; malformed input images.
+- Defended: sha256 checks of every pinned source and of the compiler; refusal paths in the `.om`
+  units; mutant runs that must fail; pull-request review.
+- Not defended / out of scope: the Omega compiler itself (report to `aien-dev/omega-mv`), the host
+  operating system, and the absence of CI.
+
+## Build from source at a pin and run every test
+
+Each contract states its replay recipe: `docs/distributed7/CONTRACT.md` (Consumed interfaces,
+Qualification), `docs/ecosystem5/CONTRACT.md` (Frozen dependencies and caller),
+`docs/ecosystem6/CONTRACT.md` (Dependency and build freeze), `docs/si19/CONTRACT.md` (Build and
+run: `sh tests/si19/run.sh`), and the collective and neuralese READMEs. The recipes need the
+pinned `omc` (sha256 in the dependency files), clones of omega-bridge and omega-mv containing the
+pinned commits, and an aarch64 Linux host. NOT_RUN while writing this document: a full replay of
+every area.
+
+## Known limitations and NOT_RUN
+
+- GPU, DGX Spark and real-model training: NOT_RUN for every area.
+- `docs/history/`, `docs/LESSONS.md`, `docs/physics/`: planned, not written.
+- `streams/*/`: empty placeholders.
+- First-party shell glue `tests/si19/run.sh` remains; its OM2 conductor replacement is recorded
+  in `docs/si19/CONTRACT.md`.
+
+## Dependencies and provenance
+
+No lockfile, no vendored third-party code, no package manager dependencies, no GitHub Actions.
+External code is limited to the pinned `.om` sources listed above, all first-party AIEN
+repositories. PyTorch, JAX and similar are yardsticks and oracles only, never shipped
+(AGENTS.md); Wolfram Language files are oracles only.
+
+## Evidence
+
+Receipts live in `evidence/DISTRIBUTED7/`, `evidence/ECOSYSTEM5/`, `evidence/ECOSYSTEM6/`,
+`evidence/SI19/` and `native/neuralese/evidence/`. Receipts are append-only and are not edited
+after the fact.
diff --git a/SECURITY.md b/SECURITY.md
new file mode 100644
index 0000000..bb0639f
--- /dev/null
+++ b/SECURITY.md
@@ -0,0 +1,55 @@
+# Security policy
+
+## Reporting a vulnerability
+
+Report privately. Do not open a public issue, pull request or discussion about it.
+
+1. GitHub: open this repository's Security tab and choose "Report a vulnerability". This
+   creates a private advisory that only the maintainers can see. If that option is not shown,
+   private vulnerability reporting has not been enabled for this repository yet; use email.
+2. Email: drake@aienos.com with the subject `[aien-train] security report`.
+
+Include the commit or release you tested, the component (path), steps to reproduce, and what an
+attacker gains. If the report involves a secret, say where it was exposed and do not send the
+secret itself. Encrypted mail is not required; do not post proof-of-concept payloads publicly.
+
+## Response targets
+
+This project has one maintainer; the targets below are best effort and stated honestly.
+
+- Acknowledgement: within 3 working days.
+- Triage and severity: within 7 days of acknowledgement.
+- Fix or mitigation for confirmed issues: aim for 30 days for high and critical, 90 days
+  otherwise, with a status update at least every 14 days until closed.
+- Disclosure: coordinated. An advisory is published with credit (unless you ask otherwise)
+  once the fix is on the default branch. Default embargo 90 days, negotiable.
+
+## Scope
+
+The repository holds handwritten seeded Omega (`.om`) training units and their tests
+(`native/` and `tests/` for distributed7, ecosystem5, ecosystem6, si19, collective and neuralese),
+contracts under `docs/`, receipts under `evidence/`, one disclosed host runner
+(`tests/si19/run.sh`) and Wolfram Language oracles. There is no CI. See AUDIT_SCOPE.md for the
+inventory.
+
+In scope:
+
+- Tokens, credentials or private data committed to any file (AGENTS.md forbids this).
+- A measurement presented as real without its receipt in `evidence/`.
+- A `.om` unit that accepts malformed or untrusted input it should refuse.
+- A pinned dependency or compiler hash that is not enforced by its runner or recipe.
+
+Out of scope:
+
+- The Omega engine and compiler; report those to `aien-dev/omega-mv`.
+- Outside training frameworks used only as yardsticks, and the host operating system.
+
+## Supported versions
+
+Only the default branch `main`; there is no release. Reports against older commits are welcome but fixes land on the default branch only.
+
+## Status
+
+Pre-alpha research repository (AGENTS.md). Host CPU (aarch64) results only; no GPU or DGX Spark
+results. No certification, no bug bounty. See AUDIT_SCOPE.md for what to review and how to build
+and test it.