interplane.Get Omega
Read in your language

aienix

AienOS front door: pinned repositories, source-linked lessons and verification paths. AienOS is in alpha testing; components remain separate and each states its own status.

Brought by drakestapleton

branch main Branches Tags History

aienix / AUDIT_SCOPE.md

105 lines · 5135 bytes Raw Blame History Rendered
1# Audit scope
2
3Written for an outside, independent security audit. Revision described:
4`59b32f2` on `main` (2026-10-31; the only change since `292a38cd` on 2026-10-26 is the docs-only
5proposal `docs/plans/2026-10-16-single-source-of-truth.md` with its receipts). Everything below is taken from
6the repository's own files at that revision; items marked NOT_RUN were not executed while writing
7this document.
8
9## What this repository is
10
11The AienOS front door. It links six core components and six attachments as Git submodules pinned at
12exact commits, so one clone fetches versions that belong together. It contains one executable, the
1369-line POSIX shell script `aienos` (`get`, `status`, `bump`, `help`), plus `README.md`,
14`AGENTS.md`, two SVG wordmarks in `assets/`, `.crumb` metadata, a docs-only plan proposal under
15`docs/plans/` and `LICENSE` (AGPL-3.0-or-later).
16Component code is not here; it is developed in each component's repository. README states it is not
17a release, a finished system, or a claim of hardware qualification.
18
19## What an auditor can and cannot check here
20
21- Can check: the `aienos` script, the `.gitmodules` URL list against the gitlinks, and whether
22 tracked files carry private data.
23- Cannot check here: any component's code, tests or evidence. The pins name revisions; they do not
24 certify them. AGENTS.md: "a remote `main` commit alone does not prove qualification."
25
26## What to review, in priority order
27
281. `aienos` (shell). Reads `.gitmodules` with `git config -f`, calls `git ls-remote`,
29 `git submodule update --init --depth 1`, `git fetch` and `git checkout --detach`, and stages the
30 gitlink with `git add`. Check:
31 - quoting of submodule paths and URLs taken from `.gitmodules`;
32 - that `bump` only accepts a path already listed in `.gitmodules` (it checks with
33 `paths | grep -qx "$p"`, which treats the argument as a regular expression);
34 - that `status` exits non-zero when a component is behind or unreachable, and `bump` exits 2 on
35 an unknown path and 1 on an unreachable `main`;
36 - that nothing is committed or pushed (the script says it stages only).
372. `.gitmodules` (12 submodules, all `https://github.com/aien-dev/...`) and the gitlinks
38 (`git ls-files -s`, mode 160000). Check every URL is the repository the README table names and
39 that no gitlink was moved without a matching pull request.
403. `README.md` and `AGENTS.md`. Commands an operator copies (`git clone --recurse-submodules
41 --shallow-submodules`, `./aienos status`).
424. `assets/*.svg`. Static wordmarks referenced by README; `.crumb` says they have no external
43 assets. Check they contain no script.
44
45There is no `.github/workflows/` directory; AGENTS.md: "There is no root build manifest, test suite
46or workflow in the current tree."
47
48## Trust boundaries
49
50- Untrusted at run time: remote replies from `git ls-remote` and `git fetch` for each component URL.
51- Trusted: the URLs in `.gitmodules` and the pinned gitlinks as reviewed in pull requests; Git.
52- The pins are source revisions only. Any verdict on a component comes from that component's own
53 workflow and receipts.
54
55## Threat model summary
56
57- Assets: the mapping from component name to exact source revision that users clone.
58- Attackers considered: a pull request that redirects a submodule URL or moves a pin silently; a
59 hostile remote or path that abuses the shell script.
60- Defended: changes arrive by pull request; `bump` stages, never commits; pins are exact commits.
61- Not defended / explicitly out of scope: integrity of component content behind a pin; GitHub
62 availability; Git's own submodule handling.
63
64## Build from source at a pin
65
66Nothing to build. Prerequisites per AGENTS.md: POSIX `sh`, Git and ordinary shell utilities;
67network access for the component commands.
68
69```sh
70git clone --recurse-submodules --shallow-submodules https://github.com/aien-dev/aienix.git
71```
72
73## Run every test
74
75There is no test suite. AGENTS.md lists these checks (NOT_RUN while writing this document):
76
77```sh
78sh -n aienos # syntax check
79./aienos help # non-mutating usage output
80git submodule status # recorded pins, no fetch
81./aienos get # network: initialise components at pinned commits
82./aienos status # network: exit 1 if any component is behind or unreachable
83```
84
85AGENTS.md says not to run `./aienos bump` merely as a smoke test; exercise it in a disposable
86clone.
87
88## Known limitations and NOT_RUN
89
90- `aienos status` exiting 1 means a component is behind or unreachable, not a script defect
91 (AGENTS.md).
92- No automated check that `.gitmodules` URLs and pins match a reviewed list.
93- Component evidence is not linked from this tree at this revision.
94
95## Dependencies and provenance
96
97- No lockfile, no vendored code. `.gitmodules` plus gitlinks act as the pin file.
98- Network access to github.com for `get`, `status` and `bump`.
99- No GitHub Actions.
100
101## Evidence
102
103No receipts live here. Component receipts are published by each component's verification
104workflow; README names `aien-dev/aien-receipts` as the append-only store of signed verification
105receipts, one per judged commit.