diff --git a/docs/doctor-report.md b/docs/doctor-report.md index d58057c..f07241f 100644 --- a/docs/doctor-report.md +++ b/docs/doctor-report.md @@ -86,8 +86,8 @@ engine: aien-serve-http sha256 6fb04197c272aa1d0235e7644b6e91953ff9b90f5145b250d evidence: two container builds from two checkout paths gave the same sha256 (Core DRA-43) GPU path: the engine's statically linked libomega_gpu.a (omega-mv a647b6a9, 036b7491) talks to /dev/nvidiactl, /dev/nvidia0 and /dev/nvidia-uvm. There is no separate CUDA++ runtime. -model: Qwen/Qwen3.6-35B-A3B-FP8 revision 95a723d08a9490559dae23d0cff1d9466213d989 (37.5 GB) - This is the only model offered. A 27B is to come; it is not offered in this release. +models: share/aienos/models.registry lists every model this release offers, each with its status + (aienos models). 35B default, 30B fallback pending; none qualified yet. A 27B is not offered. evidence: this engine binary serving the 35B on a GB10: NOT_RUN (not the live server's build); this installer's GB10 install and first token, and the 3x physical qualification: NOT_RUN. signature: Ed25519 alpha release key ff949504b427680039d53c33c85c448546b57d590eb1ecee3bb2ed6c2eaaf54a diff --git a/docs/ops/runner-registration-risk-packet.md b/docs/ops/runner-registration-risk-packet.md new file mode 100644 index 0000000..49325e7 --- /dev/null +++ b/docs/ops/runner-registration-risk-packet.md @@ -0,0 +1,109 @@ +# Runner registration risk packet (DRA-45) + +Status: registration **NOT_RUN**. Nothing here registers a runner; Drake runs the steps below by +hand when he decides to. Settings were read with `gh api` on 2026-11-06 (read-only). The trigger +guard is `installer/rig/wfcheck.om` from sovereign-intelligence#57 (head `d4df193d`); its host run +is in `evidence/non-hw-checks/dra-45-rig-test.log` (EXERCISED, host only). + +## 1. Fork-PR exposure: the main risk + +The repository is public and forkable. Observed: no self-hosted runner, no Actions secrets, no +variables, no environments; default `GITHUB_TOKEN` permission `read`; fork-PR approval policy +`first_time_contributors`; allowed actions `all`, SHA pinning not required; ruleset +`main-protected` active. + +A `pull_request` run uses the workflow files **of the pull request**. A fork PR can add its own +workflow with `runs-on: si-test-spark` and `on: pull_request`. wfcheck and every guard inside our +own workflows cannot stop that file: it is the attacker's file. The only gates GitHub applies are: + +- **Fork-PR approval.** With `first_time_contributors`, anyone who already had one PR merged runs + without approval. Set `all_external_contributors` before registration (step 2), and never + approve a fork run whose diff touches `.github/`. +- **Where the runner is attached.** A repository runner serves every workflow in this repository. + An organization runner group can be limited to selected repositories and (plan permitting, + not checked here) selected workflows; that is stronger, and it needs org-admin rights this + packet's author does not have (`orgs/aien-dev/actions/runner-groups` returned 403). + +Residual risk after both: anyone with **write** access can push a branch with a changed workflow +and start it with `workflow_dispatch`; dispatch runs that branch's file. Keep write access to +maintainers only. + +## 2. Trigger guards (wfcheck rules, #57) + +A job is GitHub-hosted only when `runs-on` is exactly one label from wfcheck's hosted image list; +everything else (custom labels, look-alikes such as `ubuntu-spark`, several labels, runner groups, +`${{ }}` expressions, remote reusable workflows) is treated as self-hosted. A workflow with a +self-hosted job passes only when (1) `on:` is only `workflow_dispatch`, `schedule` and +`push: branches: [main]` (no `pull_request`, `pull_request_target`, `workflow_run`, +`workflow_call`, `issue_comment`, tags, `branches-ignore`); (2) a GitHub-hosted `event-guard` +job reads `github.event_name`; (3) every self-hosted job `needs: event-guard`. Unparsed YAML is a +problem, not a pass. Host results: 25 negative controls refused; main's 8 current workflows pass +with `self-hosted=0` (`dra-45-wfcheck-main-workflows.log`). `rig-check.yml` runs it on every PR. + +Gap: the issue's "maintainer-applied label that a trusted workflow reads" route for PR checks is +not built; wfcheck refuses every pull-request trigger on a self-hosted job. A label route would +need `pull_request_target` plus a checkout of reviewed code only, and a wfcheck rule change. + +## 3. Workflow permissions + +Keep the repository default `read`. Every self-hosted workflow declares top-level +`permissions: contents: read` and `actions/checkout` with `persist-credentials: false`, as all 8 +current workflows on main do. Pin third-party actions by full SHA (required once +`sha_pinning_required` is on, step 2). + +## 4. Secrets on the host + +Observed on the Spark: the operator's login account is in groups `sudo` and `docker` +(each is root-equivalent for a job), its home folder is mode 755, and `~/.config/gh` holds gh +credentials. A runner under that account would expose all of it, plus every live service's files. +So: a dedicated account `si-runner`, not in `sudo`, `docker`, `kvm` or `video`; no gh login, no +SSH keys, no Hugging Face token; operator home set to 750 first. Repository Actions secrets stay +at zero. Never keep a live-server secret on the runner account. + +## 5. Resource contention with :18091 and the shared Spark + +The Spark is shared (DRA-39: weekly test window, not a dedicated unit): 20 cores, 121 GiB +unified memory shared with the GPU, the live 35B on :18091 and other services on 18110 and +18173–18178. One runner runs one job at a time. Limits in the runner's systemd unit: +`CPUAffinity=0-2`, `Nice=10`, `MemoryMax=16G`, `TasksMax=512`, `DeviceAllow=` empty and +`PrivateDevices=yes` (no `/dev/nvidia*`), every job with `timeout-minutes`. GPU jobs only inside +the authorized window procedure, never from a schedule. Decision for Drake: an always-on runner +conflicts with "weekly window"; the conservative choice is to start the service only during the +window (step 4) and keep it stopped otherwise. + +## 6. Label hygiene + +Register with `--no-default-labels --labels si-test-spark` so only workflows naming that exact +label reach it. Never register with a GitHub-hosted image label such as `ubuntu-24.04-arm` +(wfcheck cannot see runner labels; a hosted-looking label would route hosted jobs, including +pull-request jobs, to the Spark). Register `--ephemeral` so each job gets a fresh registration. + +## 7. Operator steps (Drake; NOT_RUN) + +1. Merge #57 so `rig-check.yml` guards every later workflow change. +2. Settings: `gh api -X PUT repos/aien-dev/sovereign-intelligence/actions/permissions/fork-pr-contributor-approval -f approval_policy=all_external_contributors`; + in Settings → Actions → General restrict allowed actions to the ones the workflows use + (GitHub-owned plus any listed by full name) and require actions pinned to a full-length commit + SHA. Re-read both with `gh api` (GET) and check the values. +3. On the Spark: `sudo useradd -m -s /bin/bash si-runner`; `chmod 750 "$HOME"` (operator's home); + as `si-runner`, download `actions-runner-linux-arm64-2.338.2.tar.gz` (latest release, published + 2026-10-26) and check sha256 `670adb2f268fe21dcbb58b3db0e0aa9d5b3bddfe2c651481336e561ff86de945` + (from that release's notes) before unpacking. +4. Token: `gh api -X POST repos/aien-dev/sovereign-intelligence/actions/runners/registration-token --jq .token` + (valid one hour). Then `./config.sh --url https://github.com/aien-dev/sovereign-intelligence --token TOKEN --name si-test-spark --labels si-test-spark --no-default-labels --ephemeral --unattended`; + `sudo ./svc.sh install si-runner`; add the limits from section 5 with + `sudo systemctl edit actions.runner.aien-dev-sovereign-intelligence.si-test-spark.service`; `sudo ./svc.sh start`. +5. Done-when evidence (DRA-45): dispatch a workflow that passes wfcheck and runs `uname -m` on + `si-test-spark`; then, from a fork, open a PR adding an `on: pull_request` workflow on that + label and record that it waits for approval and never starts. Both are NOT_RUN today. + +## 8. Rollback and deregistration + +`sudo ./svc.sh stop && sudo ./svc.sh uninstall`; removal token +`gh api -X POST repos/aien-dev/sovereign-intelligence/actions/runners/remove-token --jq .token`; +`./config.sh remove --token TOKEN`. If the host is unreachable, delete it from GitHub: +`gh api repos/aien-dev/sovereign-intelligence/actions/runners --jq '.runners[]|"\(.id) \(.name)"'` +then `gh api -X DELETE repos/aien-dev/sovereign-intelligence/actions/runners/ID`. Finally +`sudo userdel -r si-runner`, and check `gh api …/actions/runners` reports `total_count` 0. After +any suspected fork run on the Spark, treat the host as compromised: stop the runner first, then +audit before reuse. diff --git a/evidence/non-hw-checks/README.md b/evidence/non-hw-checks/README.md new file mode 100644 index 0000000..9039c04 --- /dev/null +++ b/evidence/non-hw-checks/README.md @@ -0,0 +1,98 @@ +# Non-hardware checks for DRA-44, DRA-45, DRA-49, DRA-53 (2026-11-06) + +Host: the shared DGX Spark as a plain Linux arm64 CPU host (`Linux 7.0.0-1019-nvidia aarch64`), +no GPU, no reset, no runner. Every result here is **host-only**; none is hardware qualification. +Home paths are written `~` in these copies (the only edit to the logs). + +Sandbox for every run (`--unshare-net` except DRA-49, whose report test runs curl under strace): + +``` +taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc [--unshare-net] -- ... +``` + +omc: `seed/out/omc` from aien-spark/omega commit `bf54b19fa590e8ae925c0e80815516dbf41e7326`, +sha256 `62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b` (= `OMC_PIN`). Wrong-omc +control: the same file with one appended byte, sha256 +`397afdd71f89bfda2ffc446d976121a709a99f274078063da34741a2658b0b4a`. + +| Issue | Tree | Command | rc | Last line | Negative control | Label | +|---|---|---|---|---|---|---| +| DRA-44 | #65 head `cdc64faa` | `sh installer/rig/stock-test.sh $OMC` | 0 | `STOCK TEST PASS fake-root negative-controls=28` | wrong omc refused, rc=3 | EXERCISED (fake root), PASS; real reset NOT_RUN | +| DRA-45 | #57 head `d4df193d` | `sh installer/rig/test.sh $OMC` | 0 | `RIG TEST PASS negative-controls=25` | wrong omc refused, rc=3 | EXERCISED (host), PASS; registration NOT_RUN | +| DRA-45 | wfcheck from #57 on main's 8 workflows | `$WFCHECK .github/workflows` | 0 | `WFCHECK PASS files=8 self-hosted=0` | (25 controls in the row above) | EXERCISED (host), PASS | +| DRA-49 | main `2b90bdf8` | `AIENOS=$A sh installer/tests/report.sh DIR` | 1 | `REPORT-TESTS pass=14 fail=1` | n/a (this is the defect) | FAIL | +| DRA-49 | main + doc fix | same, no `DOC` override | 0 | `REPORT-TESTS pass=15 fail=0` | `DOC=` main's old doc: rc=1, `pass=14 fail=1` | EXERCISED (host), PASS | +| DRA-53 | main `2b90bdf8` | `sh installer/tests/failure-paths/run.sh DIR` | 1 | `SUMMARY pass=10 fail=1 not_run=0 stock-spark=NOT_RUN` | each script's own control: opposite | FAIL (rollback-clean) | +| DRA-53 | main + rollback-clean fix | same | 0 | `SUMMARY pass=11 fail=0 not_run=0 stock-spark=NOT_RUN` | each script's own control: opposite | EXERCISED (host), PASS; stock Spark NOT_RUN | + +## DRA-49: the documented example no longer matched the output + +#19 changed the wizard's `versions.txt` line from `model: …` to `models: share/aienos/models.registry …`; +`docs/doctor-report.md` still showed `model: Qwen/Qwen3.6-35B-A3B-FP8 revision …`, so the +test's "documented fields in real output" check failed on main. CI only runs `sh -n` on +`report.sh`, so no workflow caught it. Fix: the two example lines now show the real text. +A full diff of every example block against a real report differs only in free-disk numbers, +which the doc already labels as the build host's. Release: `gh release list` shows only +`alpha-20261026.1` and `alpha-20261026.2`, both before #54 (merged 2026-11-05) and without the +report files, so "ships in a release" is NOT_RUN. + +## DRA-53: rollback-clean depended on whether a session bus was reachable + +`install.sh` runs `gio set … metadata::trusted true` on the desktop icon. When a session bus is +reachable (any real Spark desktop; here the ssh session's `DBUS_SESSION_BUS_ADDRESS`), GNOME +writes `~/.local/share/gvfs-metadata`. The script already did not count that folder, but it +counted `~/.local` and `~/.local/share`, which then stay in the "bare" home only to hold it: +`BAD bare: after uninstall no new path outside ~/.local/share/aienos`. The #64 evidence ran with +the bus address unset, which hid this. Fix (test only): those two folders are not counted while +they hold nothing but the gvfs folder. + +- `dra-53-rollback-clean-dbus.log`: before the fix, bus address set rc=1; unset rc=0. +- `dra-53-rollback-clean-gio-shim.log`: deterministic A/B with a `gio` stand-in that always writes + the gvfs folder: before rc=1 (`RESULT rollback-clean FAIL`), after rc=0 (`RESULT rollback-clean PASS`). +- In every run the mutant uninstaller without its folder sweep still leaves `~/.local/bin`, + `~/.local/share/applications`, … and is caught (`control=opposite`). +- `dra-53-rollback-clean-after.log`: after the fix, bus address set rc=0 and unset rc=0 (the gvfs + folder did not appear in that set-arm run, so the shim log is the deterministic proof). +- `failure-paths-after/`: the 11 per-script logs of the after-fix full run. + +NOT_RUN here: DRA-44 real reset (target not chosen), DRA-45 runner registration and fork-PR test, +DRA-49 release, DRA-53 stock Spark. + +## Follow-up (DRA-170 findings 1 and 4): the Enters the wizard tests feed depended on this machine + +The wizard reads `/proc` for model servers already running (step 2). When it finds one it shows a +"what was found" panel with one more `Press Enter to continue:`. `tests/run.sh` points +`AIENOS_PROC_ROOT` at an empty folder, so it never sees one: 4 Enters come before `yes or no:`. +`token.sh`, `lend.sh` and the failure-path scripts read the real `/proc` and fed 3 (token) or 5. +This Spark runs other lanes' `aien-serve-http --engine stub` processes (pids 8675, 68480, …, +started 2026-10-31), so here the wizard showed the extra panel and 5 Enters were right. That is +why the earlier failure-path run above gave 11/0 and its logs have no +`Stopped. Nothing was changed.`: the wizard did install and verify the model. With an empty +`/proc` folder, as in `run.sh` or a sandbox that cannot see those processes, the same 5 Enters +answer "yes or no" with Enter and the wizard stops (Hardening170's 6/5 on main). + +- `prompts-host.out` / `prompts-empty.out`: the same wizard, real `/proc`: Enter prompts + `choose your model`, `continue` (servers found), `number or name`, `continue`, `last question`, + then `yes or no` (5 Enters). Empty folder: the same without the servers panel (4 Enters). +- Fix (tests only): the failure-path `lib.sh` (`fp_require`), `token.sh` and `lend.sh` set + `AIENOS_PROC_ROOT` to an empty folder in the scratch, as `run.sh` does, and feed 4 Enters. + `failure-paths/run.sh` now exits 1 on a failure, else 3 on any NOT_RUN, else 0. + `token.sh`'s sandbox for Core's engine binds its engine and model folders back, because + `--dev /dev` hid a scratch under `/dev/shm` (all five `core-*` cases failed "engine did not start"). + +Same stage (`build.sh` at main `2b90bdf8`, engine sha256 `6fb04197…`), before = `30e7f749`, +after = this commit: + +| Gate | Before rc, last line | After rc, last line | +|---|---|---| +| `token.sh` (CORE_ENGINE set) | 1, `pass=18 fail=12 notrun=0` | 0, `pass=30 fail=0 notrun=0` | +| `lend.sh` | 0, `pass=3 fail=0 notrun=12` (real `/proc`); 1, `pass=1 fail=2` (empty folder) | 0, `pass=3 fail=0 notrun=12` | +| `report.sh` | 0, `REPORT-TESTS pass=15 fail=0` | 0, `REPORT-TESTS pass=15 fail=0` | +| `tests/run.sh` | 1, `AIENOS-TESTS pass=37 fail=2` (lend-suite, token-suite) | 0, `AIENOS-TESTS pass=39 fail=0` | +| `failure-paths/run.sh` | 0, `pass=11 fail=0` (real `/proc`); 1, `pass=6 fail=5` (empty folder) | 0, `SUMMARY pass=11 fail=0 not_run=0` | +| `failure-paths/run.sh`, OMC missing | 0, `SUMMARY pass=0 fail=0 not_run=11` | 3, `SUMMARY pass=0 fail=0 not_run=11` | + +Negative controls on the after tree: `bin/aienos` replaced by `/bin/true`: `token.sh` rc=1 +`pass=5 fail=25`, `lend.sh` rc=1 `pass=0 fail=3`. `report.sh` with `AIENOS=/bin/true`: rc=1 +`pass=6 fail=9`. Each failure-path script's own mutant control stays `opposite`. +Logs: `wizard-enters/`. `lend.sh` NOT_RUN 12: OH_VOLUNTEER not set. All host-only. diff --git a/evidence/non-hw-checks/dra-44-stock-test.log b/evidence/non-hw-checks/dra-44-stock-test.log new file mode 100644 index 0000000..08b00a1 --- /dev/null +++ b/evidence/non-hw-checks/dra-44-stock-test.log @@ -0,0 +1,46 @@ +# DRA-44 stock-test.sh at SI#65 head cdc64faa35b4d431ca2619556544ad44f2cc7d69 +# omc 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b /dev/shm/hive/NonHw4449/omc +# host Linux 7.0.0-1019-nvidia aarch64 +# cmd: taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/rig/stock-test.sh /dev/shm/hive/NonHw4449/omc +# date 2026-11-06T20:26:45Z +FAKE-ROOT ARM clean-env: STOCK PASS homes=3 as expected +FAKE-ROOT ARM clean-arg (argument beats $SI_STOCK_ROOT): STOCK PASS as expected +ARM usage: two arguments exit 2 as expected +ARM missing-root: exit 4 as expected +FAKE-ROOT ARM read-only: clean root unchanged by every run +FAKE-ROOT NEGATIVE-CONTROL si-base: DEVIATION si-file /home/tester/.local/share/aienos +FAKE-ROOT NEGATIVE-CONTROL si-bin-dangling: DEVIATION si-file /home/tester/.local/bin/aienos +FAKE-ROOT NEGATIVE-CONTROL si-menu: DEVIATION si-file /home/tester/.local/share/applications/aienos.desktop +FAKE-ROOT NEGATIVE-CONTROL si-icon: DEVIATION si-file /home/tester/.local/share/icons/hicolor/scalable/apps/aienos.svg +FAKE-ROOT NEGATIVE-CONTROL si-desktop: DEVIATION si-file /home/tester/Desktop/aienos.desktop +FAKE-ROOT NEGATIVE-CONTROL si-xdg-desktop: DEVIATION si-file /home/tester/Schreibtisch/aienos.desktop +FAKE-ROOT NEGATIVE-CONTROL si-root-home: DEVIATION si-file /root/.local/share/aienos +FAKE-ROOT NEGATIVE-CONTROL hf-model: DEVIATION hf-model /home/tester/.cache/huggingface/hub/models--Qwen--Qwen3.6-35B-A3B-FP8 +FAKE-ROOT NEGATIVE-CONTROL si-clone: DEVIATION si-clone /home/tester/sovereign-intelligence +FAKE-ROOT NEGATIVE-CONTROL unit-etc: DEVIATION unit /etc/systemd/system/aien-serve.service +FAKE-ROOT NEGATIVE-CONTROL unit-wants: DEVIATION unit /etc/systemd/system/multi-user.target.wants/flint-gate.service +FAKE-ROOT NEGATIVE-CONTROL unit-user: DEVIATION unit /home/tester/.config/systemd/user/oh-infer-volunteer.service +FAKE-ROOT NEGATIVE-CONTROL unit-usrlib: DEVIATION unit /usr/lib/systemd/system/aienos-lend.service +FAKE-ROOT NEGATIVE-CONTROL user: DEVIATION user aien-svc +FAKE-ROOT NEGATIVE-CONTROL port-18100: DEVIATION port 18100 /proc/net/tcp +FAKE-ROOT NEGATIVE-CONTROL port-18091-tcp6: DEVIATION port 18091 /proc/net/tcp6 +FAKE-ROOT NEGATIVE-CONTROL port-18300: DEVIATION port 18300 /proc/net/tcp +FAKE-ROOT NEGATIVE-CONTROL proc-engine: DEVIATION process aien-serve-http pid=4242 +FAKE-ROOT NEGATIVE-CONTROL proc-lend: DEVIATION process oh-infer-volunt pid=4343 +FAKE-ROOT NEGATIVE-CONTROL proc-wizard: DEVIATION process aienos pid=4444 +FAKE-ROOT NEGATIVE-CONTROL pkg-removed: DEVIATION package curl +FAKE-ROOT NEGATIVE-CONTROL pkg-absent: DEVIATION package xdg-user-dirs +FAKE-ROOT NEGATIVE-CONTROL driver-wrong: DEVIATION driver 580.95.05 expected 580.173.02 +FAKE-ROOT NEGATIVE-CONTROL driver-missing: DEVIATION driver /sys/module/nvidia/version unreadable +FAKE-ROOT NEGATIVE-CONTROL no-dgx-release: DEVIATION stock-file /etc/dgx-release missing +FAKE-ROOT NEGATIVE-CONTROL no-root-user: DEVIATION stock-file /etc/passwd has no uid 0 entry +FAKE-ROOT NEGATIVE-CONTROL no-tcp6: DEVIATION unchecked /proc/net/tcp6 unreadable +FAKE-ROOT NEGATIVE-CONTROL dpkg-long-line: DEVIATION unchecked /var/lib/dpkg/status unreadable +STOCK TEST PASS fake-root negative-controls=28 +# rc=0 +# NEGATIVE CONTROL: omc with one appended byte (sha256 397afdd71f89bfda2ffc446d976121a709a99f274078063da34741a2658b0b4a) must be refused rc=3 +# cmd: taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/rig/stock-test.sh /dev/shm/hive/NonHw4449/omc-wrong +# date 2026-11-06T20:26:46Z +sha256sum: WARNING: 1 computed checksum did NOT match +stock-test.sh: /dev/shm/hive/NonHw4449/omc-wrong is not the pinned omc 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b +# rc=3 diff --git a/evidence/non-hw-checks/dra-45-rig-test.log b/evidence/non-hw-checks/dra-45-rig-test.log new file mode 100644 index 0000000..33c8d1c --- /dev/null +++ b/evidence/non-hw-checks/dra-45-rig-test.log @@ -0,0 +1,51 @@ +# DRA-45 rig test.sh at SI#57 head d4df193d7cd8480b8532a30195eabcc69ffb14b7 +# omc 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b /dev/shm/hive/NonHw4449/omc +# host Linux 7.0.0-1019-nvidia aarch64 +# cmd: taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/rig/test.sh /dev/shm/hive/NonHw4449/omc +# date 2026-11-06T20:26:46Z +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/sbom.yml +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/release-verify.yml +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/learn.yml +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/verify.yml +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/rig-check.yml +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/index-sync.yml +HOSTED ~/work/hive/NonHw4449-pr57/.github/workflows/index.yml +WFCHECK PASS files=7 self-hosted=0 +HOSTED ~/work/hive/NonHw4449-pr57/installer/rig/fixtures/workflows/good/hosted-pull-request.yml +SELF-HOSTED ~/work/hive/NonHw4449-pr57/installer/rig/fixtures/workflows/good/selfhosted-dispatch-schedule-main.yml +SELF-HOSTED ~/work/hive/NonHw4449-pr57/installer/rig/fixtures/workflows/good/selfhosted-quoted-on-list.yml +SELF-HOSTED ~/work/hive/NonHw4449-pr57/installer/rig/fixtures/workflows/good/selfhosted-block-branches.yml +WFCHECK PASS files=4 self-hosted=3 +NEGATIVE-CONTROL pull-request.yml: rejected as expected +NEGATIVE-CONTROL pull-request-target.yml: rejected as expected +NEGATIVE-CONTROL on-scalar-pr.yml: rejected as expected +NEGATIVE-CONTROL on-flow-list-pr.yml: rejected as expected +NEGATIVE-CONTROL on-block-list-pr.yml: rejected as expected +NEGATIVE-CONTROL on-true-key-pr.yml: rejected as expected +NEGATIVE-CONTROL on-flow-mapping.yml: rejected as expected +NEGATIVE-CONTROL workflow-run.yml: rejected as expected +NEGATIVE-CONTROL issue-comment.yml: rejected as expected +NEGATIVE-CONTROL push-unfiltered.yml: rejected as expected +NEGATIVE-CONTROL push-other-branch.yml: rejected as expected +NEGATIVE-CONTROL push-wildcard.yml: rejected as expected +NEGATIVE-CONTROL push-tags.yml: rejected as expected +NEGATIVE-CONTROL push-branches-ignore.yml: rejected as expected +NEGATIVE-CONTROL no-event-guard.yml: rejected as expected +NEGATIVE-CONTROL guard-self-hosted.yml: rejected as expected +NEGATIVE-CONTROL guard-no-event-name.yml: rejected as expected +NEGATIVE-CONTROL job-not-needing-guard.yml: rejected as expected +NEGATIVE-CONTROL expression-label-pr.yml: rejected as expected +NEGATIVE-CONTROL runner-group-pr.yml: rejected as expected +NEGATIVE-CONTROL custom-label-pr.yml: rejected as expected +NEGATIVE-CONTROL remote-reusable-pr.yml: rejected as expected +NEGATIVE-CONTROL no-on.yml: rejected as expected +NEGATIVE-CONTROL lookalike-label-pr.yml: rejected as expected +NEGATIVE-CONTROL two-labels-pr.yml: rejected as expected +RIG TEST PASS negative-controls=25 +# rc=0 +# NEGATIVE CONTROL: wrong omc must be refused rc=3 +# cmd: taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/rig/test.sh /dev/shm/hive/NonHw4449/omc-wrong +# date 2026-11-06T20:26:46Z +sha256sum: WARNING: 1 computed checksum did NOT match +test.sh: /dev/shm/hive/NonHw4449/omc-wrong is not the pinned omc 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b +# rc=3 diff --git a/evidence/non-hw-checks/dra-45-wfcheck-main-workflows.log b/evidence/non-hw-checks/dra-45-wfcheck-main-workflows.log new file mode 100644 index 0000000..400df30 --- /dev/null +++ b/evidence/non-hw-checks/dra-45-wfcheck-main-workflows.log @@ -0,0 +1,13 @@ +# DRA-45 extra arm: wfcheck.om from SI#57 head d4df193d7cd8480b8532a30195eabcc69ffb14b7 (compiled by pinned omc 62775d2a, wfcheck sha256 41ce7a6626498afb7a704250816fe3951de85f3fab07448b2b3d7f548145555a) +# target: origin/main 2b90bdf82cde11ced998e9463db77487ad041dfc .github/workflows (8 files, includes 2 added after #57 was cut) +# cmd: taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- $WFCHECK .github/workflows (cwd main clone) +HOSTED .github/workflows/sbom.yml +HOSTED .github/workflows/release-verify.yml +HOSTED .github/workflows/learn.yml +HOSTED .github/workflows/verify.yml +HOSTED .github/workflows/workflow-yaml.yml +HOSTED .github/workflows/index-sync.yml +HOSTED .github/workflows/installer-verify-path.yml +HOSTED .github/workflows/index.yml +WFCHECK PASS files=8 self-hosted=0 +# rc=0 diff --git a/evidence/non-hw-checks/dra-49-report-after.log b/evidence/non-hw-checks/dra-49-report-after.log new file mode 100644 index 0000000..2653069 --- /dev/null +++ b/evidence/non-hw-checks/dra-49-report-after.log @@ -0,0 +1,40 @@ +# DRA-49 installer/tests/report.sh, main 2b90bdf82cde11ced998e9463db77487ad041dfc + working-tree fix of docs/doctor-report.md versions.txt block (sha256 10ebaa89edceac48e0b1ab58e9822a392e44be17fefb62a2a93881a180fdcbb2); no DOC override +# AIENOS sha256 725b284298610df5886ba33ba1da75ebcdcd67a21ab059b8688616fe1a2487ba (same binary as the before run) +# date 2026-11-06T20:27:49Z +# cmd: AIENOS=$A taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc -- sh installer/tests/report.sh /dev/shm/hive/NonHw4449/report +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +PASS doc: documented fields in real output +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=15 fail=0 +# rc=0 +# NEGATIVE CONTROL: DOC=main@2b90bdf8 docs/doctor-report.md (old text, sha256 56f4542808653bece954cc2b4a378ae10d0b1a727fc0e2d931fc75f7c216583d) must fail the doc-field check +# cmd: DOC=$OLD AIENOS=$A taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc -- sh installer/tests/report.sh /dev/shm/hive/NonHw4449/report +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +FAIL doc: fields missing from output: model: +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=14 fail=1 +# rc=1 diff --git a/evidence/non-hw-checks/dra-49-report-before.log b/evidence/non-hw-checks/dra-49-report-before.log new file mode 100644 index 0000000..6708510 --- /dev/null +++ b/evidence/non-hw-checks/dra-49-report-before.log @@ -0,0 +1,21 @@ +# DRA-49 installer/tests/report.sh at main 2b90bdf82cde11ced998e9463db77487ad041dfc +# AIENOS = wizard compiled from build.sh ORDER at main by pinned omc 62775d2a (two compiles byte-identical) sha256 725b284298610df5886ba33ba1da75ebcdcd67a21ab059b8688616fe1a2487ba +# host Linux 7.0.0-1019-nvidia aarch64 date 2026-11-06T20:27:06Z +# cmd: AIENOS=$A taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc -- sh installer/tests/report.sh /dev/shm/hive/NonHw4449/report +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +FAIL doc: fields missing from output: model: +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=14 fail=1 +# rc=1 diff --git a/evidence/non-hw-checks/dra-53-failure-paths-after.log b/evidence/non-hw-checks/dra-53-failure-paths-after.log new file mode 100644 index 0000000..99e246c --- /dev/null +++ b/evidence/non-hw-checks/dra-53-failure-paths-after.log @@ -0,0 +1,15 @@ +# DRA-53 full suite AFTER fix, D-Bus address set (same env as dra-53-failure-paths.log): main 2b90bdf82cde11ced998e9463db77487ad041dfc + working tree (rollback-clean.sh fix) +# cmd: OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/tests/failure-paths/run.sh /dev/shm/hive/NonHw4449/fp2 ; date 2026-11-06T20:31:03Z +PASS disk-full EXERCISED(host, EFBIG stand-in for ENOSPC) cases=install,model control=opposite/opposite spark=NOT_RUN +PASS no-network EXERCISED(host) cases=refused,nobundle,cut,wizard-model control=opposite/opposite spark=NOT_RUN +PASS wrong-gpu-driver EXERCISED(host, fake probe roots) cases=nogpu,othergpu,olddrv,newdrv control=opposite spark=NOT_RUN +PASS interrupted-install EXERCISED(host) cases=download/KILL,download/INT,unpack/KILL,unpack/INT,moved/KILL,linked/KILL,listed/KILL control=opposite spark=NOT_RUN +PASS bad-signature EXERCISED(host) cases=otherkey,badsig,tampered control=opposite spark=NOT_RUN +PASS port-in-use EXERCISED(host, test build on port 39773) cases=tcp,http control=opposite spark=NOT_RUN +PASS uninstall-partial EXERCISED(host) cases=moved,linked,listed control=opposite spark=NOT_RUN +PASS model-resume EXERCISED(host, 5 MB test model, loopback Range server) cases=stop/KILL,stop/INT,cut1,cut2 control=opposite spark=NOT_RUN +PASS model-corrupt EXERCISED(host, 5 MB test model, loopback server) cases=served,on-disk,after control=opposite spark=NOT_RUN +PASS rollback-clean EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +PASS stale-tmp EXERCISED(host) cases=kill-rerun,live,young,badpid,old,symlink,other-user,other-prefix control=opposite spark=NOT_RUN +SUMMARY pass=11 fail=0 not_run=0 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/fp2 +# rc=0 date 2026-11-06T20:32:59Z diff --git a/evidence/non-hw-checks/dra-53-failure-paths.log b/evidence/non-hw-checks/dra-53-failure-paths.log new file mode 100644 index 0000000..36e63bc --- /dev/null +++ b/evidence/non-hw-checks/dra-53-failure-paths.log @@ -0,0 +1,17 @@ +# DRA-53 installer/tests/failure-paths/run.sh at main 2b90bdf82cde11ced998e9463db77487ad041dfc +# OMC sha256 62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b +# host Linux 7.0.0-1019-nvidia aarch64 date 2026-11-06T20:27:23Z +# cmd: OMC=/dev/shm/hive/NonHw4449/omc taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/tests/failure-paths/run.sh /dev/shm/hive/NonHw4449/fp +PASS disk-full EXERCISED(host, EFBIG stand-in for ENOSPC) cases=install,model control=opposite/opposite spark=NOT_RUN +PASS no-network EXERCISED(host) cases=refused,nobundle,cut,wizard-model control=opposite/opposite spark=NOT_RUN +PASS wrong-gpu-driver EXERCISED(host, fake probe roots) cases=nogpu,othergpu,olddrv,newdrv control=opposite spark=NOT_RUN +PASS interrupted-install EXERCISED(host) cases=download/KILL,download/INT,unpack/KILL,unpack/INT,moved/KILL,linked/KILL,listed/KILL control=opposite spark=NOT_RUN +PASS bad-signature EXERCISED(host) cases=otherkey,badsig,tampered control=opposite spark=NOT_RUN +PASS port-in-use EXERCISED(host, test build on port 53585) cases=tcp,http control=opposite spark=NOT_RUN +PASS uninstall-partial EXERCISED(host) cases=moved,linked,listed control=opposite spark=NOT_RUN +PASS model-resume EXERCISED(host, 5 MB test model, loopback Range server) cases=stop/KILL,stop/INT,cut1,cut2 control=opposite spark=NOT_RUN +PASS model-corrupt EXERCISED(host, 5 MB test model, loopback server) cases=served,on-disk,after control=opposite spark=NOT_RUN +FAIL rollback-clean EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN bad=1 scratch=/dev/shm/hive/NonHw4449/fp/rollback-clean +PASS stale-tmp EXERCISED(host) cases=kill-rerun,live,young,badpid,old,symlink,other-user,other-prefix control=opposite spark=NOT_RUN +SUMMARY pass=10 fail=1 not_run=0 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/fp +# rc=1 date 2026-11-06T20:28:50Z diff --git a/evidence/non-hw-checks/dra-53-rollback-clean-after.log b/evidence/non-hw-checks/dra-53-rollback-clean-after.log new file mode 100644 index 0000000..0f34d4d --- /dev/null +++ b/evidence/non-hw-checks/dra-53-rollback-clean-after.log @@ -0,0 +1,74 @@ +# DRA-53 rollback-clean.sh AFTER fix: main 2b90bdf82cde11ced998e9463db77487ad041dfc + working tree rollback-clean.sh sha256 c510af9c85bff2f2f80fd8531b4c10791a0e198a32c7ccad58d7db793d97480a +# host session env: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus +## variant with-dbus; cmd: OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/tests/failure-paths/rollback-clean.sh /dev/shm/hive/NonHw4449/rc-with-dbus ; date 2026-11-06T20:30:46Z + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + ok bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean PASS EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +# rc=0 +## variant no-dbus; cmd: OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net --unsetenv DBUS_SESSION_BUS_ADDRESS -- sh installer/tests/failure-paths/rollback-clean.sh /dev/shm/hive/NonHw4449/rc-no-dbus ; date 2026-11-06T20:30:56Z + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + ok bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean PASS EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +# rc=0 diff --git a/evidence/non-hw-checks/dra-53-rollback-clean-dbus.log b/evidence/non-hw-checks/dra-53-rollback-clean-dbus.log new file mode 100644 index 0000000..f1ed7c4 --- /dev/null +++ b/evidence/non-hw-checks/dra-53-rollback-clean-dbus.log @@ -0,0 +1,85 @@ +# DRA-53 rollback-clean.sh alone at main 2b90bdf82cde11ced998e9463db77487ad041dfc: isolating the FAIL in dra-53-failure-paths.log +# host session env: DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus +## variant with-dbus; cmd: OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net -- sh installer/tests/failure-paths/rollback-clean.sh /dev/shm/hive/NonHw4449/rc-with-dbus ; date 2026-11-06T20:29:50Z + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + not counted: ~/.local/share/gvfs-metadata/home-aea01885.log + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + left after uninstall: $HOME/.local + left after uninstall: $HOME/.local/share + BAD bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + not counted: ~/.local/share/gvfs-metadata/home-9d0fa822.log + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + not counted: ~/.local/share/gvfs-metadata/home-33025490.log + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean FAIL EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN bad=1 scratch=/dev/shm/hive/NonHw4449/rc-with-dbus +# rc=1 +## variant no-dbus; cmd: OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net --unsetenv DBUS_SESSION_BUS_ADDRESS -- sh installer/tests/failure-paths/rollback-clean.sh /dev/shm/hive/NonHw4449/rc-no-dbus ; date 2026-11-06T20:29:59Z + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + ok bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean PASS EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +# rc=0 diff --git a/evidence/non-hw-checks/dra-53-rollback-clean-gio-shim.log b/evidence/non-hw-checks/dra-53-rollback-clean-gio-shim.log new file mode 100644 index 0000000..00f6f53 --- /dev/null +++ b/evidence/non-hw-checks/dra-53-rollback-clean-gio-shim.log @@ -0,0 +1,91 @@ +# DRA-53 rollback-clean deterministic A/B: gio stand-in first on PATH (/dev/shm/hive/NonHw4449/gioshim/gio, below) so ~/.local/share/gvfs-metadata appears on every install +# #!/bin/sh +# # stand-in for gio when a session bus is reachable: GNOME writes its metadata database under HOME +# mkdir -p "$HOME/.local/share/gvfs-metadata" && : > "$HOME/.local/share/gvfs-metadata/home" +# main 2b90bdf82cde11ced998e9463db77487ad041dfc; before = HEAD:installer/tests/failure-paths/rollback-clean.sh, after = working tree sha256 c510af9c85bff2f2f80fd8531b4c10791a0e198a32c7ccad58d7db793d97480a +## before; cmd: PATH=/dev/shm/hive/NonHw4449/gioshim:$PATH OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net --unsetenv DBUS_SESSION_BUS_ADDRESS -- sh installer/tests/failure-paths/.rc-before.sh /dev/shm/hive/NonHw4449/rcg-before ; date 2026-11-06T20:33:22Z + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + left after uninstall: $HOME/.local + left after uninstall: $HOME/.local/share + BAD bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean FAIL EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN bad=1 scratch=/dev/shm/hive/NonHw4449/rcg-before +# rc=1 +## after; cmd: PATH=/dev/shm/hive/NonHw4449/gioshim:$PATH OMC=$OMC taskset -c 0-2 nice -n 10 bwrap --dev-bind / / --dev /dev --bind /dev/shm /dev/shm --proc /proc --unshare-net --unsetenv DBUS_SESSION_BUS_ADDRESS -- sh installer/tests/failure-paths/rollback-clean.sh /dev/shm/hive/NonHw4449/rcg-after ; date 2026-11-06T20:33:31Z + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + ok bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean PASS EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +# rc=0 diff --git a/evidence/non-hw-checks/failure-paths-after/bad-signature.log b/evidence/non-hw-checks/failure-paths-after/bad-signature.log new file mode 100644 index 0000000..83aa1ba --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/bad-signature.log @@ -0,0 +1,15 @@ + ok otherkey: install.sh exit 1 (got 1) + ok otherkey: says "signature on SHA256SUMS does not match" + ok otherkey: says nothing was installed + ok otherkey: home folder untouched + ok badsig: install.sh exit 1 (got 1) + ok badsig: says "signature on SHA256SUMS does not match" + ok badsig: says nothing was installed + ok badsig: home folder untouched + ok tampered: install.sh exit 1 (got 1) + ok tampered: says "does not match its signed SHA-256" + ok tampered: says nothing was installed + ok tampered: home folder untouched + ok no temporary folder left in TMPDIR + ok negative control (untampered release installs and verifies): opposite +RESULT bad-signature PASS EXERCISED(host) cases=otherkey,badsig,tampered control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/disk-full.log b/evidence/non-hw-checks/failure-paths-after/disk-full.log new file mode 100644 index 0000000..dc4c9e4 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/disk-full.log @@ -0,0 +1,12 @@ + ok install: exit non-zero (got 2) + ok install: says the bundle could not be unpacked + ok install: no current link, no command, no installed-files + ok install: no staging folder left + ok install: no temporary folder left + ok negative control (limit lifted: installs and verifies): opposite + ok model: wizard exit non-zero (got 1) + ok model: says the download failed + ok model: no model file, no verified marker + ok model: no engine started + ok negative control (limit lifted: model verifies): opposite +RESULT disk-full PASS EXERCISED(host, EFBIG stand-in for ENOSPC) cases=install,model control=opposite/opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/interrupted-install.log b/evidence/non-hw-checks/failure-paths-after/interrupted-install.log new file mode 100644 index 0000000..9c3e952 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/interrupted-install.log @@ -0,0 +1,39 @@ + ok download/KILL: install.sh stopped (exit 137) + ok download/KILL: checker says not installed + ok download/KILL: re-run exit 0 (got 0) + ok download/KILL: re-run gives a complete verified install + ok download/KILL: same files as an uninterrupted install + ok download/INT: install.sh stopped (exit 2) + ok download/INT: checker says not installed + ok download/INT: no temporary or staging folder left + ok download/INT: re-run exit 0 (got 0) + ok download/INT: re-run gives a complete verified install + ok download/INT: same files as an uninterrupted install + ok unpack/KILL: install.sh stopped (exit 137) + ok unpack/KILL: checker says not installed + ok unpack/KILL: re-run exit 0 (got 0) + ok unpack/KILL: re-run gives a complete verified install + ok unpack/KILL: same files as an uninterrupted install + ok unpack/INT: install.sh stopped (exit 2) + ok unpack/INT: checker says not installed + ok unpack/INT: no temporary or staging folder left + ok unpack/INT: re-run exit 0 (got 0) + ok unpack/INT: re-run gives a complete verified install + ok unpack/INT: same files as an uninterrupted install + ok moved/KILL: install.sh stopped (exit 137) + ok moved/KILL: checker says not installed + ok moved/KILL: re-run exit 0 (got 0) + ok moved/KILL: re-run gives a complete verified install + ok moved/KILL: same files as an uninterrupted install + ok linked/KILL: install.sh stopped (exit 137) + ok linked/KILL: checker says not installed + ok linked/KILL: re-run exit 0 (got 0) + ok linked/KILL: re-run gives a complete verified install + ok linked/KILL: same files as an uninterrupted install + ok listed/KILL: install.sh stopped (exit 137) + ok listed/KILL: checker says not installed + ok listed/KILL: re-run exit 0 (got 0) + ok listed/KILL: re-run gives a complete verified install + ok listed/KILL: same files as an uninterrupted install + ok negative control (uninterrupted install passes the checker): opposite +RESULT interrupted-install PASS EXERCISED(host) cases=download/KILL,download/INT,unpack/KILL,unpack/INT,moved/KILL,linked/KILL,listed/KILL control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/model-corrupt.log b/evidence/non-hw-checks/failure-paths-after/model-corrupt.log new file mode 100644 index 0000000..54365f9 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/model-corrupt.log @@ -0,0 +1,28 @@ + GET /model/weights.bin range=- status=200 sent=5000000 + GET /model/weights.bin range=- status=200 sent=5000000 + ok served/good: wizard exit non-zero (got 1) + ok served/good: says the download or a hash check failed + ok served/good: no weights.bin, no .part, no verified marker kept + ok served/good: the engine was never started (no engine.log) + GET /model/weights.bin range=- status=200 sent=5000000 + ok on-disk: wizard exit 0 (got 0) + ok on-disk: the corrupted file was dropped and weights.bin downloaded again + ok on-disk: weights.bin verified, marker written + ok after: first run exit 0 and model verified (got 0) + verify: 20 files match SHA256SUMS + verify: model file /dev/shm/hive/NonHw4449/fp2/model-corrupt/home-after/.local/share/aienos/models/test-model/weights.bin does not match its SHA-256; the next aienos run downloads it again + ok after: aienos verify exit non-zero (got 1) + ok after: aienos verify names weights.bin + ok after: the verified marker was withdrawn + GET /model/weights.bin range=- status=200 sent=5000000 + ok after: re-run exit 0 (got 0) + ok after: re-run downloaded weights.bin again + ok after: weights.bin verified, marker written + ok after: aienos verify exit 0 again + GET /model/weights.bin range=- status=200 sent=5000000 + ctl served/mut: wizard exit non-zero (got 0): broken + ctl served/mut: says the download or a hash check failed: broken + ctl served/mut: no weights.bin, no .part, no verified marker kept: broken + ctl served/mut: the engine was never started (no engine.log): broken + ok negative control (no download hash check: the refusal checks fail): opposite +RESULT model-corrupt PASS EXERCISED(host, 5 MB test model, loopback server) cases=served,on-disk,after control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/model-resume.log b/evidence/non-hw-checks/failure-paths-after/model-resume.log new file mode 100644 index 0000000..ec3039d --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/model-resume.log @@ -0,0 +1,28 @@ + ok stop/KILL: SIGKILL ended the wizard within 30 s (cut by the KILL backstop: no) + ok stop/KILL: the interruption left a partial weights.bin.part (2498560 of 5000000 bytes) + ok stop/KILL: re-run exit 0 (got 0) + ok stop/KILL: re-run resumed with Range bytes=2498560- and fetched only the rest: yes + GET /model/weights.bin range=bytes=2498560- status=206 sent=2501440 + ok stop/KILL: weights.bin verified, marker written, no .part left + ok stop/INT: SIGINT ended the wizard within 30 s (cut by the KILL backstop: no) + ok stop/INT: the interruption left a partial weights.bin.part (2498560 of 5000000 bytes) + ok stop/INT: re-run exit 0 (got 0) + ok stop/INT: re-run resumed with Range bytes=2498560- and fetched only the rest: yes + GET /model/weights.bin range=bytes=2498560- status=206 sent=2501440 + ok stop/INT: weights.bin verified, marker written, no .part left + GET /model/weights.bin range=- status=200 sent=2000000 + GET /model/weights.bin range=bytes=2000000- status=206 sent=3000000 + ok cut1: wizard exit 0 (got 0) + ok cut1: the second try resumed from byte 2000000 + ok cut1: weights.bin verified, marker written, no .part left + ok cut2: first run exit non-zero (got 1) + ok cut2: says to run aienos again to resume + ok cut2: no weights.bin, no verified marker + ok cut2: the .part is kept for the resume (4000000 bytes, want 4000000) + GET /model/weights.bin range=bytes=4000000- status=206 sent=1000000 + ok cut2: re-run exit 0 (got 0) + ok cut2: re-run resumed from byte 4000000 and fetched only the rest + ok cut2: weights.bin verified, marker written, no .part left + GET /model/weights.bin range=- status=200 sent=5000000 + ok negative control (wizard without -C -: the resume check fails): opposite +RESULT model-resume PASS EXERCISED(host, 5 MB test model, loopback Range server) cases=stop/KILL,stop/INT,cut1,cut2 control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/no-network.log b/evidence/non-hw-checks/failure-paths-after/no-network.log new file mode 100644 index 0000000..f0d864e --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/no-network.log @@ -0,0 +1,17 @@ + ok refused: install.sh exit 2 (got 2) + ok refused: says Could not download + ok refused: home folder untouched + ok nobundle: install.sh exit 2 (got 2) + ok nobundle: names the bundle + ok nobundle: home folder untouched + ok cut: install.sh exit 2 (got 2) + ok cut: names the bundle + ok cut: home folder untouched + ok no temporary folder left in TMPDIR + ok negative control (server up: installs and verifies): opposite + ok wiznet: wizard exit non-zero (got 1) + ok wiznet: no model file, no verified marker + ok wiznet: says the download failed + ok wiznet: no engine started + ok negative control (wizard with the server back verifies the model): opposite +RESULT no-network PASS EXERCISED(host) cases=refused,nobundle,cut,wizard-model control=opposite/opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/port-in-use.log b/evidence/non-hw-checks/failure-paths-after/port-in-use.log new file mode 100644 index 0000000..829f788 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/port-in-use.log @@ -0,0 +1,19 @@ + ok tcp: aienos start exit 1 (got 1) + ok tcp: says the port is used by another program + ok tcp: does not say engine ready + ok tcp: no engine.pid, no engine process + ok tcp: the other program still runs + ok tcp: names the port it was built with (127.0.0.1:39773) + ok tcp: does not name 18100 + ok http: aienos start exit 1 (got 1) + ok http: says the port is used by another program + ok http: does not say engine ready + ok http: no engine.pid, no engine process + ok http: aienos chat sent no question to the other program + ok http: the other program still runs + ok http: names the port it was built with (127.0.0.1:39773) + ok http: does not name 18100 + ok control: aienos stop stops the engine + ok control: engine ready names 127.0.0.1:39773 + ok negative control (port free: engine starts): opposite +RESULT port-in-use PASS EXERCISED(host, test build on port 39773) cases=tcp,http control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/rollback-clean.log b/evidence/non-hw-checks/failure-paths-after/rollback-clean.log new file mode 100644 index 0000000..b6c9ef9 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/rollback-clean.log @@ -0,0 +1,43 @@ + ok bare: older release alpha-20261025.9 installs (exit 0) + ok bare: wizard ran to the end (exit 0) + ok bare: the model is verified + ok bare: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + not counted: ~/.local/share/gvfs-metadata/home-0b585d0d.log + ok bare: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok bare: rollback added no path outside ~/.local/share/aienos + ok bare: uninstall exit 0 (got 0) + ok bare: after uninstall no new path outside ~/.local/share/aienos + ok bare: nothing of the user's was removed + ok bare: ~/.local/share/aienos is gone + ok used: older release alpha-20261025.9 installs (exit 0) + ok used: wizard ran to the end (exit 0) + ok used: the model is verified + ok used: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + not counted: ~/.local/share/gvfs-metadata/home-aab5995e.log + ok used: rollback exit 0, current -> releases/alpha-20261025.9: yes + ok used: rollback added no path outside ~/.local/share/aienos + ok used: uninstall exit 0 (got 0) + ok used: after uninstall no new path outside ~/.local/share/aienos + ok used: nothing of the user's was removed + ok used: ~/.local/share/aienos holds only the kept model + ok mut: older release alpha-20261025.9 installs (exit 0) + ok mut: wizard ran to the end (exit 0) + ok mut: the model is verified + ok mut: this release (alpha-20261029.1) installs over it (exit 0) + not counted: ~/.local/share/gvfs-metadata + not counted: ~/.local/share/gvfs-metadata/home + not counted: ~/.local/share/gvfs-metadata/home-1c632d73.log + control left after uninstall: $HOME/.local + control left after uninstall: $HOME/.local/bin + control left after uninstall: $HOME/.local/share + control left after uninstall: $HOME/.local/share/applications + control left after uninstall: $HOME/.local/share/icons + control left after uninstall: $HOME/.local/share/icons/hicolor + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable + control left after uninstall: $HOME/.local/share/icons/hicolor/scalable/apps + ok negative control (uninstaller without its folder sweep leaves paths): opposite +RESULT rollback-clean PASS EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/stale-tmp.log b/evidence/non-hw-checks/failure-paths-after/stale-tmp.log new file mode 100644 index 0000000..94a7983 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/stale-tmp.log @@ -0,0 +1,47 @@ + ok good: install.sh killed (exit 137) + ok good: the killed run left tmp/aienos-install.hRIyi9 with its dead pid + tmp: total 0 + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 12:32 aienos-fp.1 + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 14:32 aienos-install.badpid + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 12:32 aienos-installer.1 + tmp: lrwxrwxrwx 1 drakestapleton drakestapleton 49 Nov 6 14:32 aienos-install.link -> /dev/shm/hive/NonHw4449/fp2/stale-tmp/victim-good + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 14:32 aienos-install.live + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 40 Nov 6 14:32 aienos-install.other + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 40 Nov 6 14:32 aienos-install.young + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 12:32 x-aienos-install.1 + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/tmp/aienos-install.hRIyi9 + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/tmp/aienos-install.old + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/home-good/.local/share/aienos/releases/.alpha-20261029.1.new + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/home-good/.local/share/aienos/releases/alpha-20261029.1.old + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/tmp/aienos-install.zq0Db4 /dev/shm/hive/NonHw4449/fp2/stale-tmp/home-good/.local/share/aienos/releases/.alpha-20261029.1.new + ok good: re-run exit 0 (got 0) + ok good: re-run gives a complete verified install + ok good: the killed run's folder tmp/aienos-install.hRIyi9 is gone + ok good: the pid-less folder two hours old is gone + ok good: a live run's folder is kept + ok good: a pid-less folder younger than 60 min is kept + ok good: a folder whose pid is not a number (and young) is kept + ok good: the planted symlink and its target's files are kept + ok good: folders outside the aienos-install.* prefix are kept + ok good: another user's folder is kept (never passed to rm) + ok good: rm never named a path that must stay + ok good: rm removed the killed run's folder by name + ok good: no temp folder of the re-run itself left + ok nocl: install.sh killed (exit 137) + ok nocl: the killed run left tmp/aienos-install.kwe5u2 with its dead pid + tmp: total 0 + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 12:32 aienos-fp.1 + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 14:32 aienos-install.badpid + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 12:32 aienos-installer.1 + tmp: drwx------ 2 drakestapleton drakestapleton 120 Nov 6 14:32 aienos-install.kwe5u2 + tmp: lrwxrwxrwx 1 drakestapleton drakestapleton 49 Nov 6 14:32 aienos-install.link -> /dev/shm/hive/NonHw4449/fp2/stale-tmp/victim-nocl + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 14:32 aienos-install.live + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 40 Nov 6 12:32 aienos-install.old + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 40 Nov 6 14:32 aienos-install.other + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 40 Nov 6 14:32 aienos-install.young + tmp: drwxrwxr-x 2 drakestapleton drakestapleton 60 Nov 6 12:32 x-aienos-install.1 + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/home-nocl/.local/share/aienos/releases/.alpha-20261029.1.new + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/home-nocl/.local/share/aienos/releases/alpha-20261029.1.old + rm -rf /dev/shm/hive/NonHw4449/fp2/stale-tmp/tmp/aienos-install.vXnSEX /dev/shm/hive/NonHw4449/fp2/stale-tmp/home-nocl/.local/share/aienos/releases/.alpha-20261029.1.new + ok negative control (install.sh without the cleanup keeps tmp/aienos-install.kwe5u2): opposite +RESULT stale-tmp PASS EXERCISED(host) cases=kill-rerun,live,young,badpid,old,symlink,other-user,other-prefix control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/uninstall-partial.log b/evidence/non-hw-checks/failure-paths-after/uninstall-partial.log new file mode 100644 index 0000000..795bad8 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/uninstall-partial.log @@ -0,0 +1,8 @@ + ok moved: uninstall exit 0 (got 0) + ok moved: nothing of AienOS left + ok linked: uninstall exit 0 (got 0) + ok linked: nothing of AienOS left + ok listed: uninstall exit 0 (got 0) + ok listed: nothing of AienOS left + ok negative control (partial home has files before uninstall; full install uninstalls clean): opposite +RESULT uninstall-partial PASS EXERCISED(host) cases=moved,linked,listed control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/failure-paths-after/wrong-gpu-driver.log b/evidence/non-hw-checks/failure-paths-after/wrong-gpu-driver.log new file mode 100644 index 0000000..b220774 --- /dev/null +++ b/evidence/non-hw-checks/failure-paths-after/wrong-gpu-driver.log @@ -0,0 +1,23 @@ + ok nogpu: install.sh exit 0 (got 0) + ok nogpu: says nothing was changed + ok nogpu: home folder untouched + ok othergpu: install.sh exit 0 (got 0) + ok othergpu: says nothing was changed + ok othergpu: home folder untouched + ok olddrv: install.sh exit 0 (got 0) + ok olddrv: says nothing was changed + ok olddrv: home folder untouched + ok newdrv: install.sh exit 0 (got 0) + ok newdrv: says nothing was changed + ok newdrv: home folder untouched + ok othergpu: doctor exit 1 with a no line (got 1) + ok othergpu: aienos start refuses with exit 2 (got 2) + ok othergpu: no engine started + ok olddrv: doctor exit 1 with a no line (got 1) + ok olddrv: aienos start refuses with exit 2 (got 2) + ok olddrv: no engine started + ok newdrv: doctor exit 1 with a no line (got 1) + ok newdrv: aienos start refuses with exit 2 (got 2) + ok newdrv: no engine started + ok negative control (gb10: installs, doctor 0, engine starts): opposite +RESULT wrong-gpu-driver PASS EXERCISED(host, fake probe roots) cases=nogpu,othergpu,olddrv,newdrv control=opposite spark=NOT_RUN diff --git a/evidence/non-hw-checks/wizard-enters/fp-after.log b/evidence/non-hw-checks/wizard-enters/fp-after.log new file mode 100644 index 0000000..b13a4f7 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/fp-after.log @@ -0,0 +1,12 @@ +PASS disk-full EXERCISED(host, EFBIG stand-in for ENOSPC) cases=install,model control=opposite/opposite spark=NOT_RUN +PASS no-network EXERCISED(host) cases=refused,nobundle,cut,wizard-model control=opposite/opposite spark=NOT_RUN +PASS wrong-gpu-driver EXERCISED(host, fake probe roots) cases=nogpu,othergpu,olddrv,newdrv control=opposite spark=NOT_RUN +PASS interrupted-install EXERCISED(host) cases=download/KILL,download/INT,unpack/KILL,unpack/INT,moved/KILL,linked/KILL,listed/KILL control=opposite spark=NOT_RUN +PASS bad-signature EXERCISED(host) cases=otherkey,badsig,tampered control=opposite spark=NOT_RUN +PASS port-in-use EXERCISED(host, test build on port 55845) cases=tcp,http control=opposite spark=NOT_RUN +PASS uninstall-partial EXERCISED(host) cases=moved,linked,listed control=opposite spark=NOT_RUN +PASS model-resume EXERCISED(host, 5 MB test model, loopback Range server) cases=stop/KILL,stop/INT,cut1,cut2 control=opposite spark=NOT_RUN +PASS model-corrupt EXERCISED(host, 5 MB test model, loopback server) cases=served,on-disk,after control=opposite spark=NOT_RUN +PASS rollback-clean EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +PASS stale-tmp EXERCISED(host) cases=kill-rerun,live,young,badpid,old,symlink,other-user,other-prefix control=opposite spark=NOT_RUN +SUMMARY pass=11 fail=0 not_run=0 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/s/fp-after diff --git a/evidence/non-hw-checks/wizard-enters/fp-before-procempty.log b/evidence/non-hw-checks/wizard-enters/fp-before-procempty.log new file mode 100644 index 0000000..574e54f --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/fp-before-procempty.log @@ -0,0 +1,12 @@ +FAIL disk-full EXERCISED(host, EFBIG stand-in for ENOSPC) cases=install,model control=opposite/same spark=NOT_RUN bad=3 scratch=/dev/shm/hive/NonHw4449/s/fp-before-procempty/disk-full +FAIL no-network EXERCISED(host) cases=refused,nobundle,cut,wizard-model control=opposite/same spark=NOT_RUN bad=3 scratch=/dev/shm/hive/NonHw4449/s/fp-before-procempty/no-network +PASS wrong-gpu-driver EXERCISED(host, fake probe roots) cases=nogpu,othergpu,olddrv,newdrv control=opposite spark=NOT_RUN +PASS interrupted-install EXERCISED(host) cases=download/KILL,download/INT,unpack/KILL,unpack/INT,moved/KILL,linked/KILL,listed/KILL control=opposite spark=NOT_RUN +PASS bad-signature EXERCISED(host) cases=otherkey,badsig,tampered control=opposite spark=NOT_RUN +PASS port-in-use EXERCISED(host, test build on port 54881) cases=tcp,http control=opposite spark=NOT_RUN +PASS uninstall-partial EXERCISED(host) cases=moved,linked,listed control=opposite spark=NOT_RUN +FAIL model-resume EXERCISED(host, 5 MB test model, loopback Range server) cases=stop/KILL,stop/INT,cut1,cut2 control=opposite spark=NOT_RUN bad=13 scratch=/dev/shm/hive/NonHw4449/s/fp-before-procempty/model-resume +FAIL model-corrupt EXERCISED(host, 5 MB test model, loopback server) cases=served,on-disk,after control=opposite spark=NOT_RUN bad=9 scratch=/dev/shm/hive/NonHw4449/s/fp-before-procempty/model-corrupt +FAIL rollback-clean EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN bad=3 scratch=/dev/shm/hive/NonHw4449/s/fp-before-procempty/rollback-clean +PASS stale-tmp EXERCISED(host) cases=kill-rerun,live,young,badpid,old,symlink,other-user,other-prefix control=opposite spark=NOT_RUN +SUMMARY pass=6 fail=5 not_run=0 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/s/fp-before-procempty diff --git a/evidence/non-hw-checks/wizard-enters/fp-before.log b/evidence/non-hw-checks/wizard-enters/fp-before.log new file mode 100644 index 0000000..456a7dc --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/fp-before.log @@ -0,0 +1,12 @@ +PASS disk-full EXERCISED(host, EFBIG stand-in for ENOSPC) cases=install,model control=opposite/opposite spark=NOT_RUN +PASS no-network EXERCISED(host) cases=refused,nobundle,cut,wizard-model control=opposite/opposite spark=NOT_RUN +PASS wrong-gpu-driver EXERCISED(host, fake probe roots) cases=nogpu,othergpu,olddrv,newdrv control=opposite spark=NOT_RUN +PASS interrupted-install EXERCISED(host) cases=download/KILL,download/INT,unpack/KILL,unpack/INT,moved/KILL,linked/KILL,listed/KILL control=opposite spark=NOT_RUN +PASS bad-signature EXERCISED(host) cases=otherkey,badsig,tampered control=opposite spark=NOT_RUN +PASS port-in-use EXERCISED(host, test build on port 37243) cases=tcp,http control=opposite spark=NOT_RUN +PASS uninstall-partial EXERCISED(host) cases=moved,linked,listed control=opposite spark=NOT_RUN +PASS model-resume EXERCISED(host, 5 MB test model, loopback Range server) cases=stop/KILL,stop/INT,cut1,cut2 control=opposite spark=NOT_RUN +PASS model-corrupt EXERCISED(host, 5 MB test model, loopback server) cases=served,on-disk,after control=opposite spark=NOT_RUN +PASS rollback-clean EXERCISED(host, fake GB10 root) cases=bare,used control=opposite spark=NOT_RUN +PASS stale-tmp EXERCISED(host) cases=kill-rerun,live,young,badpid,old,symlink,other-user,other-prefix control=opposite spark=NOT_RUN +SUMMARY pass=11 fail=0 not_run=0 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/s/fp-before diff --git a/evidence/non-hw-checks/wizard-enters/fp-noomc-after.log b/evidence/non-hw-checks/wizard-enters/fp-noomc-after.log new file mode 100644 index 0000000..c049532 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/fp-noomc-after.log @@ -0,0 +1,12 @@ +NOT_RUN disk-full OMC not set to the pinned omc +NOT_RUN no-network OMC not set to the pinned omc +NOT_RUN wrong-gpu-driver OMC not set to the pinned omc +NOT_RUN interrupted-install OMC not set to the pinned omc +NOT_RUN bad-signature OMC not set to the pinned omc +NOT_RUN port-in-use OMC not set to the pinned omc +NOT_RUN uninstall-partial OMC not set to the pinned omc +NOT_RUN model-resume OMC not set to the pinned omc +NOT_RUN model-corrupt OMC not set to the pinned omc +NOT_RUN rollback-clean OMC not set to the pinned omc +NOT_RUN stale-tmp OMC not set to the pinned omc +SUMMARY pass=0 fail=0 not_run=11 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/s/fp-noomc-after diff --git a/evidence/non-hw-checks/wizard-enters/fp-noomc-before.log b/evidence/non-hw-checks/wizard-enters/fp-noomc-before.log new file mode 100644 index 0000000..0dfb06b --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/fp-noomc-before.log @@ -0,0 +1,12 @@ +NOT_RUN disk-full OMC not set to the pinned omc +NOT_RUN no-network OMC not set to the pinned omc +NOT_RUN wrong-gpu-driver OMC not set to the pinned omc +NOT_RUN interrupted-install OMC not set to the pinned omc +NOT_RUN bad-signature OMC not set to the pinned omc +NOT_RUN port-in-use OMC not set to the pinned omc +NOT_RUN uninstall-partial OMC not set to the pinned omc +NOT_RUN model-resume OMC not set to the pinned omc +NOT_RUN model-corrupt OMC not set to the pinned omc +NOT_RUN rollback-clean OMC not set to the pinned omc +NOT_RUN stale-tmp OMC not set to the pinned omc +SUMMARY pass=0 fail=0 not_run=11 stock-spark=NOT_RUN logs=/dev/shm/hive/NonHw4449/s/fp-noomc-before diff --git a/evidence/non-hw-checks/wizard-enters/lend-after.log b/evidence/non-hw-checks/wizard-enters/lend-after.log new file mode 100644 index 0000000..f3bccf3 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/lend-after.log @@ -0,0 +1,16 @@ +PASS lend-wizard-skip-changes-nothing +PASS lend-wizard-yes-without-program +PASS lend-start-without-program-refuses +NOT_RUN lend-wizard-yes-makes-key: OH_VOLUNTEER not set +NOT_RUN lend-wizard-yes-keeps-key: OH_VOLUNTEER not set +NOT_RUN lend-start-without-key-refuses: OH_VOLUNTEER not set +NOT_RUN lend-start: OH_VOLUNTEER not set +NOT_RUN lend-start-passes-token-file: OH_VOLUNTEER not set +NOT_RUN lend-start-loads-token: OH_VOLUNTEER not set +NOT_RUN lend-start-twice: OH_VOLUNTEER not set +NOT_RUN lend-status: OH_VOLUNTEER not set +NOT_RUN lend-pause-resume: OH_VOLUNTEER not set +NOT_RUN lend-quit: OH_VOLUNTEER not set +NOT_RUN lend-status-after-quit: OH_VOLUNTEER not set +NOT_RUN lend-uninstall-stops-agent: OH_VOLUNTEER not set +AIENOS-LEND-TESTS pass=3 fail=0 notrun=12 scratch=/dev/shm/hive/NonHw4449/s/lend-after diff --git a/evidence/non-hw-checks/wizard-enters/lend-before-procempty.log b/evidence/non-hw-checks/wizard-enters/lend-before-procempty.log new file mode 100644 index 0000000..245777e --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/lend-before-procempty.log @@ -0,0 +1,16 @@ +FAIL lend-wizard-skip-changes-nothing: condition false (see /dev/shm/hive/NonHw4449/s/lend-before-procempty) +FAIL lend-wizard-yes-without-program: condition false (see /dev/shm/hive/NonHw4449/s/lend-before-procempty) +PASS lend-start-without-program-refuses +NOT_RUN lend-wizard-yes-makes-key: OH_VOLUNTEER not set +NOT_RUN lend-wizard-yes-keeps-key: OH_VOLUNTEER not set +NOT_RUN lend-start-without-key-refuses: OH_VOLUNTEER not set +NOT_RUN lend-start: OH_VOLUNTEER not set +NOT_RUN lend-start-passes-token-file: OH_VOLUNTEER not set +NOT_RUN lend-start-loads-token: OH_VOLUNTEER not set +NOT_RUN lend-start-twice: OH_VOLUNTEER not set +NOT_RUN lend-status: OH_VOLUNTEER not set +NOT_RUN lend-pause-resume: OH_VOLUNTEER not set +NOT_RUN lend-quit: OH_VOLUNTEER not set +NOT_RUN lend-status-after-quit: OH_VOLUNTEER not set +NOT_RUN lend-uninstall-stops-agent: OH_VOLUNTEER not set +AIENOS-LEND-TESTS pass=1 fail=2 notrun=12 scratch=/dev/shm/hive/NonHw4449/s/lend-before-procempty diff --git a/evidence/non-hw-checks/wizard-enters/lend-before.log b/evidence/non-hw-checks/wizard-enters/lend-before.log new file mode 100644 index 0000000..a68ae68 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/lend-before.log @@ -0,0 +1,16 @@ +PASS lend-wizard-skip-changes-nothing +PASS lend-wizard-yes-without-program +PASS lend-start-without-program-refuses +NOT_RUN lend-wizard-yes-makes-key: OH_VOLUNTEER not set +NOT_RUN lend-wizard-yes-keeps-key: OH_VOLUNTEER not set +NOT_RUN lend-start-without-key-refuses: OH_VOLUNTEER not set +NOT_RUN lend-start: OH_VOLUNTEER not set +NOT_RUN lend-start-passes-token-file: OH_VOLUNTEER not set +NOT_RUN lend-start-loads-token: OH_VOLUNTEER not set +NOT_RUN lend-start-twice: OH_VOLUNTEER not set +NOT_RUN lend-status: OH_VOLUNTEER not set +NOT_RUN lend-pause-resume: OH_VOLUNTEER not set +NOT_RUN lend-quit: OH_VOLUNTEER not set +NOT_RUN lend-status-after-quit: OH_VOLUNTEER not set +NOT_RUN lend-uninstall-stops-agent: OH_VOLUNTEER not set +AIENOS-LEND-TESTS pass=3 fail=0 notrun=12 scratch=/dev/shm/hive/NonHw4449/s/lend-before diff --git a/evidence/non-hw-checks/wizard-enters/lend-neg.log b/evidence/non-hw-checks/wizard-enters/lend-neg.log new file mode 100644 index 0000000..b0accae --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/lend-neg.log @@ -0,0 +1,16 @@ +FAIL lend-wizard-skip-changes-nothing: condition false (see /dev/shm/hive/NonHw4449/s/lend-neg) +FAIL lend-wizard-yes-without-program: condition false (see /dev/shm/hive/NonHw4449/s/lend-neg) +FAIL lend-start-without-program-refuses: condition false (see /dev/shm/hive/NonHw4449/s/lend-neg) +NOT_RUN lend-wizard-yes-makes-key: OH_VOLUNTEER not set +NOT_RUN lend-wizard-yes-keeps-key: OH_VOLUNTEER not set +NOT_RUN lend-start-without-key-refuses: OH_VOLUNTEER not set +NOT_RUN lend-start: OH_VOLUNTEER not set +NOT_RUN lend-start-passes-token-file: OH_VOLUNTEER not set +NOT_RUN lend-start-loads-token: OH_VOLUNTEER not set +NOT_RUN lend-start-twice: OH_VOLUNTEER not set +NOT_RUN lend-status: OH_VOLUNTEER not set +NOT_RUN lend-pause-resume: OH_VOLUNTEER not set +NOT_RUN lend-quit: OH_VOLUNTEER not set +NOT_RUN lend-status-after-quit: OH_VOLUNTEER not set +NOT_RUN lend-uninstall-stops-agent: OH_VOLUNTEER not set +AIENOS-LEND-TESTS pass=0 fail=3 notrun=12 scratch=/dev/shm/hive/NonHw4449/s/lend-neg diff --git a/evidence/non-hw-checks/wizard-enters/prompts-empty.out b/evidence/non-hw-checks/wizard-enters/prompts-empty.out new file mode 100644 index 0000000..152ae9b --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/prompts-empty.out @@ -0,0 +1,50 @@ + + Sovereign Intelligence alpha step 1 of 10 welcome +Welcome. I am Drake, and this is Sovereign Intelligence, the AienOS alpha. + +This installer is written in Omega, my own language. It sets up a local model on +your DGX Spark that runs on my own engine: no CUDA toolkit, no libcuda, no cuBLAS. +NVIDIA's kernel driver stays. Everything else NVIDIA ships stays installed, unused. + +Next: your model, doctor, plan, your yes, install, model files, first chat. Nothing changes before your yes. +Type about for versions and evidence, source for my .om source, q to quit. +Press Enter to choose your model: + Sovereign Intelligence alpha step 2 of 10 your model +Which model should I set up? Type its number, or its Hugging Face name (org/model). + + 1 Qwen3.6 35B-A3B FP8 (37.5 GB) 37.5 GB in 56 files <- selected + default. NOT QUALIFIED: this engine build (Core main d3dec0eb) serving the 35B on a GB10 is NOT_RUN (it is not the live server's build); the G1-G10 x3 gates and this installer's GB10 first token are NOT_RUN until the qualification window. + 2 Qwen3 30B-A3B Instruct 2507 FP8 (31.2 GB) 31.2 GB in 14 files + fallback, not shipped yet. NOT QUALIFIED: Core's Omega engine ran this checkpoint on a GB10 at 36-39 tok/s (EXERCISED, Core adr0004-step0-baseline-20261015). This engine build gives it tools in the Qwen3.6 prompt format, not its own; it waits for an engine rebuilt with aien-sovereign-core-mv#778 (Hermes tools), then the G1-G10 x3 gates in a qualification window. Until then those gates are NOT_RUN. + +Enter keeps the selected one. A model that is not listed is not supported yet: I never download it. + +number or name: + Sovereign Intelligence alpha step 3 of 10 doctor + ok CPU arm64 (aarch64), Linux + ok GPU NVIDIA GB10 found (PCI 10de:2e12), device nodes present + ok Driver kernel driver 580.173.02 (the version this alpha was built and tested against) + ok Memory 130 GB memory, 122 GB free for a model + ok Disk 53.0 GB free in your home + info AienOS not installed yet + ok GPU lock the GB10 lock (/tmp/aien-gb10.lock) is not held right now + info NVIDIA no NVIDIA user-space libraries found; AienOS does not need them + +Press Enter to continue: + Sovereign Intelligence alpha step 4 of 10 plan +Here is exactly what changes, all inside your home folder: + +~/.local/share/aienos/releases/alpha-20261029.1 this release, already unpacked and checked +~/.local/share/aienos/models/qwen3.6-35b-a3b-fp8-95a723d0 + the model: 37.5 GB in 56 files. +~/.local/share/aienos/engine.log the engine's log, when it runs +~/.local/share/aienos/auth/bearer-token the engine's private access token +~/.local/bin/aienos, the menu entry and the desktop icon (already there) + +Not touched: NVIDIA's driver, the CUDA toolkit, libcuda, cuBLAS, /usr, /etc. No sudo. +Undo everything at any time: aienos uninstall +Press Enter for the last question: + Sovereign Intelligence alpha step 5 of 10 your yes +Type yes to begin. Anything else stops here, and nothing changes. +yes or no:  +Stopped. Nothing was changed. diff --git a/evidence/non-hw-checks/wizard-enters/prompts-host.out b/evidence/non-hw-checks/wizard-enters/prompts-host.out new file mode 100644 index 0000000..9bf77f9 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/prompts-host.out @@ -0,0 +1,74 @@ + + Sovereign Intelligence alpha step 1 of 10 welcome +Welcome. I am Drake, and this is Sovereign Intelligence, the AienOS alpha. + +This installer is written in Omega, my own language. It sets up a local model on +your DGX Spark that runs on my own engine: no CUDA toolkit, no libcuda, no cuBLAS. +NVIDIA's kernel driver stays. Everything else NVIDIA ships stays installed, unused. + +Next: your model, doctor, plan, your yes, install, model files, first chat. Nothing changes before your yes. +Type about for versions and evidence, source for my .om source, q to quit. +Press Enter to choose your model: + Sovereign Intelligence alpha step 2 of 10 your model +I looked for model servers already running on this machine (read-only): + + aien-serve-http, pid 8675, port 18100 + weights /tmp/stubmodel + belongs to another user: I will not touch it. + aien-serve-http, pid 68480, port 18100 + weights /tmp/stubmodel + belongs to another user: I will not touch it. + aien-serve-http, pid 75214, port 18100 + weights /tmp/stubmodel + belongs to another user: I will not touch it. + aien-serve-http, pid 100070, port 18100 + weights /tmp/stubmodel + belongs to another user: I will not touch it. + aien-serve-http, pid 328908, port 18100 + weights /tmp/stubmodel + belongs to another user: I will not touch it. + aien-serve-http, pid 3446367, port 18100 + weights /tmp/stubmodel + belongs to another user: I will not touch it. + +I will leave them untouched. Next, choose the model to set up. +Press Enter to continue: + Sovereign Intelligence alpha step 2 of 10 your model +Which model should I set up? Type its number, or its Hugging Face name (org/model). + + 1 Qwen3.6 35B-A3B FP8 (37.5 GB) 37.5 GB in 56 files <- selected + default. NOT QUALIFIED: this engine build (Core main d3dec0eb) serving the 35B on a GB10 is NOT_RUN (it is not the live server's build); the G1-G10 x3 gates and this installer's GB10 first token are NOT_RUN until the qualification window. + 2 Qwen3 30B-A3B Instruct 2507 FP8 (31.2 GB) 31.2 GB in 14 files + fallback, not shipped yet. NOT QUALIFIED: Core's Omega engine ran this checkpoint on a GB10 at 36-39 tok/s (EXERCISED, Core adr0004-step0-baseline-20261015). This engine build gives it tools in the Qwen3.6 prompt format, not its own; it waits for an engine rebuilt with aien-sovereign-core-mv#778 (Hermes tools), then the G1-G10 x3 gates in a qualification window. Until then those gates are NOT_RUN. + +Enter keeps the selected one. A model that is not listed is not supported yet: I never download it. + +number or name: + Sovereign Intelligence alpha step 3 of 10 doctor + ok CPU arm64 (aarch64), Linux + ok GPU NVIDIA GB10 found (PCI 10de:2e12), device nodes present + ok Driver kernel driver 580.173.02 (the version this alpha was built and tested against) + ok Memory 130 GB memory, 122 GB free for a model + ok Disk 53.0 GB free in your home + info AienOS not installed yet + ok GPU lock the GB10 lock (/tmp/aien-gb10.lock) is not held right now + info NVIDIA no NVIDIA user-space libraries found; AienOS does not need them + +Press Enter to continue: + Sovereign Intelligence alpha step 4 of 10 plan +Here is exactly what changes, all inside your home folder: + +~/.local/share/aienos/releases/alpha-20261029.1 this release, already unpacked and checked +~/.local/share/aienos/models/qwen3.6-35b-a3b-fp8-95a723d0 + the model: 37.5 GB in 56 files. +~/.local/share/aienos/engine.log the engine's log, when it runs +~/.local/share/aienos/auth/bearer-token the engine's private access token +~/.local/bin/aienos, the menu entry and the desktop icon (already there) + +Not touched: NVIDIA's driver, the CUDA toolkit, libcuda, cuBLAS, /usr, /etc. No sudo. +Undo everything at any time: aienos uninstall +Press Enter for the last question: + Sovereign Intelligence alpha step 5 of 10 your yes +Type yes to begin. Anything else stops here, and nothing changes. +yes or no:  +Stopped. Nothing was changed. diff --git a/evidence/non-hw-checks/wizard-enters/report-after.log b/evidence/non-hw-checks/wizard-enters/report-after.log new file mode 100644 index 0000000..60d8d2b --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/report-after.log @@ -0,0 +1,16 @@ +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +PASS doc: documented fields in real output +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=15 fail=0 diff --git a/evidence/non-hw-checks/wizard-enters/report-before.log b/evidence/non-hw-checks/wizard-enters/report-before.log new file mode 100644 index 0000000..60d8d2b --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/report-before.log @@ -0,0 +1,16 @@ +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +PASS doc: documented fields in real output +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=15 fail=0 diff --git a/evidence/non-hw-checks/wizard-enters/report-neg.log b/evidence/non-hw-checks/wizard-enters/report-neg.log new file mode 100644 index 0000000..d5698f7 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/report-neg.log @@ -0,0 +1,76 @@ +FAIL report written (rc=0) +FAIL gzip integrity +tar (child): /dev/shm/hive/NonHw4449/s/report-neg/out/report.tar.gz: Cannot open: No such file or directory +tar (child): Error is not recoverable: exiting now +tar: Child returned status 2 +tar: Error is not recoverable: exiting now +FAIL member list: +tar (child): /dev/shm/hive/NonHw4449/s/report-neg/out/report.tar.gz: Cannot open: No such file or directory +tar (child): Error is not recoverable: exiting now +tar: Child returned status 2 +tar: Error is not recoverable: exiting now +PASS doc: member list +FAIL doc: fields missing from output: aienos doctor --report: +Never included: +Sovereign Intelligence alpha-20261029.1: +engine: + evidence: +GPU path: +models: +evidence: + this installer's GB10 install and first token, and the 3x physical qualification: +signature: +release folder: +kernel: +kernel release: +/etc/os-release: +/etc/os-release: +/etc/dgx-release: +/etc/dgx-release: +/etc/dgx-release: +NVIDIA kernel module (/sys/module/nvidia/version): +NVIDIA driver (/proc/driver/nvidia/version): +CUDA toolkit (/usr/local/cuda/version.json; not part of AienOS): +/proc/meminfo: +/proc/meminfo: +/proc/meminfo: +/proc/meminfo: +/proc/meminfo: +/proc/meminfo: +free disk in the home folder (df -B1 --output=avail): +[ info ] AienOS installed: +verdict: +release folder: +bundle sha256 recorded by install.sh (.bundle-sha256): +files: +model manifest (share/aienos/model.manifest): +autostart: +engine: +engine address: +lending program: +lending key: +lending: +lending paused: +lending log ~/.local/share/aienos/lend/lend.log: +curl: +aien-serve-http: +aien-serve-http: +lines copied: +lines left out: +gzip: /dev/shm/hive/NonHw4449/s/report-neg/out/report.tar.gz: No such file or directory +PASS no canary in archive +gzip: /dev/shm/hive/NonHw4449/s/report-neg/out/report.tar.gz: No such file or directory +PASS home path redacted +grep: /dev/shm/hive/NonHw4449/s/report-neg/x/aienos-report/logs.txt: No such file or directory +FAIL allowed engine line kept +grep: /dev/shm/hive/NonHw4449/s/report-neg/x/aienos-report/logs.txt: No such file or directory +FAIL home written as ~ +grep: /dev/shm/hive/NonHw4449/s/report-neg/x/aienos-report/checksums.txt: No such file or directory +FAIL checksums +grep: /dev/shm/hive/NonHw4449/s/report-neg/x/aienos-report/system.txt: No such file or directory +FAIL driver string +PASS no socket or connect call +FAIL existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=6 fail=9 diff --git a/evidence/non-hw-checks/wizard-enters/run-after.log b/evidence/non-hw-checks/wizard-enters/run-after.log new file mode 100644 index 0000000..5e9911c --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/run-after.log @@ -0,0 +1,104 @@ +NOTE DIST is unsigned: section A uses a test-key signature; the release-key signature check is NOT_RUN +PASS bootstrap-refuses-darwin +PASS bootstrap-refuses-x86 +PASS bootstrap-refuses-nogpu +PASS bootstrap-refuses-othergpu +PASS bootstrap-refuses-olddrv +PASS bootstrap-installs +PASS bootstrap-reports-driver +PASS desktop-entry-points-at-wizard +PASS omega-verify-installed-release +PASS bootstrap-idempotent +PASS tampered-bundle-refused +PASS rewritten-sums-refused +PASS missing-signature-refused +PASS install-log-written +PASS report-has-install-log +PASS uninstall-leaves-no-files +PASS wizard-happy-path +PASS wizard-first-chat +PASS wizard-zero-cuda-maps +PASS wizard-lend-skipped-by-default +PASS engine-stops +PASS chat-command +PASS omega-verify-detects-change +PASS tampered-model-refused +PASS bootstrap-nogpu-installs-nothing +PASS wizard-refuses-nogpu +PASS doctor-says-no-nogpu +PASS wizard-refuses-othergpu +PASS doctor-says-no-othergpu +PASS wizard-refuses-olddrv +PASS doctor-says-no-olddrv +PASS busy-gpu-starts-no-engine +PASS rollback +PASS uninstall-keep-model +PASS uninstall-asks-first +PASS uninstall-everything +PASS lend-wizard-skip-changes-nothing +PASS lend-wizard-yes-without-program +PASS lend-start-without-program-refuses +NOT_RUN lend-wizard-yes-makes-key: OH_VOLUNTEER not set +NOT_RUN lend-wizard-yes-keeps-key: OH_VOLUNTEER not set +NOT_RUN lend-start-without-key-refuses: OH_VOLUNTEER not set +NOT_RUN lend-start: OH_VOLUNTEER not set +NOT_RUN lend-start-passes-token-file: OH_VOLUNTEER not set +NOT_RUN lend-start-loads-token: OH_VOLUNTEER not set +NOT_RUN lend-start-twice: OH_VOLUNTEER not set +NOT_RUN lend-status: OH_VOLUNTEER not set +NOT_RUN lend-pause-resume: OH_VOLUNTEER not set +NOT_RUN lend-quit: OH_VOLUNTEER not set +NOT_RUN lend-status-after-quit: OH_VOLUNTEER not set +NOT_RUN lend-uninstall-stops-agent: OH_VOLUNTEER not set +AIENOS-LEND-TESTS pass=3 fail=0 notrun=12 scratch=/dev/shm/hive/NonHw4449/s/run-after/lend +PASS lend-suite +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +PASS doc: documented fields in real output +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=15 fail=0 +PASS report-suite +PASS token-plan-lists-file +PASS token-file-0600-dir-0700 +PASS token-64-hex-one-line +PASS token-wizard-chat-authorized +PASS token-not-in-logs-or-output +PASS token-in-engine-env-not-argv +PASS token-kept-across-starts +PASS control-wrong-token-401 +PASS control-missing-header-401 +PASS token-chat-command-authorized +PASS control-engine-without-token-refuses +PASS token-header-in-every-request +PASS control-capture-sees-missing-header +PASS token-from-getrandom-32-bytes +PASS control-existing-token-not-redrawn +PASS token-differs-per-install +PASS control-file-0644-refused +PASS control-dir-0755-refused +PASS control-symlink-refused +PASS control-non-hex-refused +PASS control-short-token-refused +PASS token-restored-starts +PASS token-remade-after-removal +PASS control-wizard-refuses-open-folder +PASS token-removed-by-uninstall +NOT_RUN core-refuses-without-token: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-matrix-401-401-200: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-wizard-chat-200: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-wizard-wrong-token-401: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-wizard-missing-header-401: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +AIENOS-TOKEN-TESTS pass=25 fail=0 notrun=5 scratch=/dev/shm/hive/NonHw4449/s/run-after/token +PASS token-suite +AIENOS-TESTS pass=39 fail=0 scratch=/dev/shm/hive/NonHw4449/s/run-after diff --git a/evidence/non-hw-checks/wizard-enters/run-before.log b/evidence/non-hw-checks/wizard-enters/run-before.log new file mode 100644 index 0000000..d69ef82 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/run-before.log @@ -0,0 +1,107 @@ +NOTE DIST is unsigned: section A uses a test-key signature; the release-key signature check is NOT_RUN +PASS bootstrap-refuses-darwin +PASS bootstrap-refuses-x86 +PASS bootstrap-refuses-nogpu +PASS bootstrap-refuses-othergpu +PASS bootstrap-refuses-olddrv +PASS bootstrap-installs +PASS bootstrap-reports-driver +PASS desktop-entry-points-at-wizard +PASS omega-verify-installed-release +PASS bootstrap-idempotent +PASS tampered-bundle-refused +PASS rewritten-sums-refused +PASS missing-signature-refused +PASS install-log-written +PASS report-has-install-log +PASS uninstall-leaves-no-files +PASS wizard-happy-path +PASS wizard-first-chat +PASS wizard-zero-cuda-maps +PASS wizard-lend-skipped-by-default +PASS engine-stops +PASS chat-command +PASS omega-verify-detects-change +PASS tampered-model-refused +PASS bootstrap-nogpu-installs-nothing +PASS wizard-refuses-nogpu +PASS doctor-says-no-nogpu +PASS wizard-refuses-othergpu +PASS doctor-says-no-othergpu +PASS wizard-refuses-olddrv +PASS doctor-says-no-olddrv +PASS busy-gpu-starts-no-engine +PASS rollback +PASS uninstall-keep-model +PASS uninstall-asks-first +PASS uninstall-everything +FAIL lend-wizard-skip-changes-nothing: condition false (see /dev/shm/hive/NonHw4449/s/run-before/lend) +FAIL lend-wizard-yes-without-program: condition false (see /dev/shm/hive/NonHw4449/s/run-before/lend) +PASS lend-start-without-program-refuses +NOT_RUN lend-wizard-yes-makes-key: OH_VOLUNTEER not set +NOT_RUN lend-wizard-yes-keeps-key: OH_VOLUNTEER not set +NOT_RUN lend-start-without-key-refuses: OH_VOLUNTEER not set +NOT_RUN lend-start: OH_VOLUNTEER not set +NOT_RUN lend-start-passes-token-file: OH_VOLUNTEER not set +NOT_RUN lend-start-loads-token: OH_VOLUNTEER not set +NOT_RUN lend-start-twice: OH_VOLUNTEER not set +NOT_RUN lend-status: OH_VOLUNTEER not set +NOT_RUN lend-pause-resume: OH_VOLUNTEER not set +NOT_RUN lend-quit: OH_VOLUNTEER not set +NOT_RUN lend-status-after-quit: OH_VOLUNTEER not set +NOT_RUN lend-uninstall-stops-agent: OH_VOLUNTEER not set +AIENOS-LEND-TESTS pass=1 fail=2 notrun=12 scratch=/dev/shm/hive/NonHw4449/s/run-before/lend +FAIL lend-suite: condition false (see /dev/shm/hive/NonHw4449/s/run-before) +PASS report written (rc=0) +PASS gzip integrity +PASS member list +PASS doc: member list +PASS doc: documented fields in real output +PASS no canary in archive +PASS home path redacted +PASS allowed engine line kept +PASS home written as ~ +PASS checksums +PASS driver string +PASS no socket or connect call +PASS existing file refused +PASS control: plain tar of the prefix holds the canaries (9) +PASS control: strace counts curl's socket calls (6) +REPORT-TESTS pass=15 fail=0 +PASS report-suite +PASS token-plan-lists-file +stat: cannot statx '/dev/shm/hive/NonHw4449/s/run-before/token/home-w1/.local/share/aienos/auth': No such file or directory +FAIL token-file-0600-dir-0700: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +/dev/shm/hive/NonHw4449/before/installer/tests/token.sh: 103: cannot open /dev/shm/hive/NonHw4449/s/run-before/token/home-w1/.local/share/aienos/auth/bearer-token: No such file +FAIL token-64-hex-one-line: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +FAIL token-wizard-chat-authorized: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +head: cannot open '/dev/shm/hive/NonHw4449/s/run-before/token/home-w1/.local/share/aienos/auth/bearer-token' for reading: No such file or directory +FAIL token-not-in-logs-or-output: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +FAIL token-in-engine-env-not-argv: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +PASS token-kept-across-starts +PASS control-wrong-token-401 +PASS control-missing-header-401 +PASS token-chat-command-authorized +PASS control-engine-without-token-refuses +FAIL token-header-in-every-request: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +PASS control-capture-sees-missing-header +PASS token-from-getrandom-32-bytes +PASS control-existing-token-not-redrawn +PASS token-differs-per-install +PASS control-file-0644-refused +PASS control-dir-0755-refused +PASS control-symlink-refused +PASS control-non-hex-refused +PASS control-short-token-refused +PASS token-restored-starts +PASS token-remade-after-removal +FAIL control-wizard-refuses-open-folder: condition false (see /dev/shm/hive/NonHw4449/s/run-before/token) +PASS token-removed-by-uninstall +NOT_RUN core-refuses-without-token: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-matrix-401-401-200: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-wizard-chat-200: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-wizard-wrong-token-401: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +NOT_RUN core-wizard-missing-header-401: set CORE_ENGINE (Core main aien-serve-http) and install bwrap +AIENOS-TOKEN-TESTS pass=18 fail=7 notrun=5 scratch=/dev/shm/hive/NonHw4449/s/run-before/token +FAIL token-suite: condition false (see /dev/shm/hive/NonHw4449/s/run-before) +AIENOS-TESTS pass=37 fail=2 scratch=/dev/shm/hive/NonHw4449/s/run-before diff --git a/evidence/non-hw-checks/wizard-enters/token-after.log b/evidence/non-hw-checks/wizard-enters/token-after.log new file mode 100644 index 0000000..d5353b6 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/token-after.log @@ -0,0 +1,31 @@ +PASS token-plan-lists-file +PASS token-file-0600-dir-0700 +PASS token-64-hex-one-line +PASS token-wizard-chat-authorized +PASS token-not-in-logs-or-output +PASS token-in-engine-env-not-argv +PASS token-kept-across-starts +PASS control-wrong-token-401 +PASS control-missing-header-401 +PASS token-chat-command-authorized +PASS control-engine-without-token-refuses +PASS token-header-in-every-request +PASS control-capture-sees-missing-header +PASS token-from-getrandom-32-bytes +PASS control-existing-token-not-redrawn +PASS token-differs-per-install +PASS control-file-0644-refused +PASS control-dir-0755-refused +PASS control-symlink-refused +PASS control-non-hex-refused +PASS control-short-token-refused +PASS token-restored-starts +PASS token-remade-after-removal +PASS control-wizard-refuses-open-folder +PASS token-removed-by-uninstall +PASS core-refuses-without-token +PASS core-matrix-401-401-200 +PASS core-wizard-chat-200 +PASS core-wizard-wrong-token-401 +PASS core-wizard-missing-header-401 +AIENOS-TOKEN-TESTS pass=30 fail=0 notrun=0 scratch=/dev/shm/hive/NonHw4449/s/token-after diff --git a/evidence/non-hw-checks/wizard-enters/token-before.log b/evidence/non-hw-checks/wizard-enters/token-before.log new file mode 100644 index 0000000..affbd5c --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/token-before.log @@ -0,0 +1,34 @@ +PASS token-plan-lists-file +stat: cannot statx '/dev/shm/hive/NonHw4449/s/token-before/home-w1/.local/share/aienos/auth': No such file or directory +FAIL token-file-0600-dir-0700: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +tests/token.sh: 103: cannot open /dev/shm/hive/NonHw4449/s/token-before/home-w1/.local/share/aienos/auth/bearer-token: No such file +FAIL token-64-hex-one-line: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +FAIL token-wizard-chat-authorized: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +head: cannot open '/dev/shm/hive/NonHw4449/s/token-before/home-w1/.local/share/aienos/auth/bearer-token' for reading: No such file or directory +FAIL token-not-in-logs-or-output: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +FAIL token-in-engine-env-not-argv: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +PASS token-kept-across-starts +PASS control-wrong-token-401 +PASS control-missing-header-401 +PASS token-chat-command-authorized +PASS control-engine-without-token-refuses +FAIL token-header-in-every-request: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +PASS control-capture-sees-missing-header +PASS token-from-getrandom-32-bytes +PASS control-existing-token-not-redrawn +PASS token-differs-per-install +PASS control-file-0644-refused +PASS control-dir-0755-refused +PASS control-symlink-refused +PASS control-non-hex-refused +PASS control-short-token-refused +PASS token-restored-starts +PASS token-remade-after-removal +FAIL control-wizard-refuses-open-folder: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +PASS token-removed-by-uninstall +FAIL core-refuses-without-token: condition false (see /dev/shm/hive/NonHw4449/s/token-before) +FAIL core-matrix-401-401-200: engine did not start (see /dev/shm/hive/NonHw4449/s/token-before/core1.log) +FAIL core-wizard-chat-200: engine did not start on 18100 (see /dev/shm/hive/NonHw4449/s/token-before/core2.log) +FAIL core-wizard-wrong-token-401: engine did not start on 18100 (see /dev/shm/hive/NonHw4449/s/token-before/core2.log) +FAIL core-wizard-missing-header-401: engine did not start on 18100 (see /dev/shm/hive/NonHw4449/s/token-before/core2.log) +AIENOS-TOKEN-TESTS pass=18 fail=12 notrun=0 scratch=/dev/shm/hive/NonHw4449/s/token-before diff --git a/evidence/non-hw-checks/wizard-enters/token-neg.log b/evidence/non-hw-checks/wizard-enters/token-neg.log new file mode 100644 index 0000000..b0fa577 --- /dev/null +++ b/evidence/non-hw-checks/wizard-enters/token-neg.log @@ -0,0 +1,55 @@ +FAIL token-plan-lists-file: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +stat: cannot statx '/dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth': No such file or directory +FAIL token-file-0600-dir-0700: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +tests/token.sh: 108: cannot open /dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token: No such file +FAIL token-64-hex-one-line: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL token-wizard-chat-authorized: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +head: cannot open '/dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token' for reading: No such file or directory +FAIL token-not-in-logs-or-output: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL token-in-engine-env-not-argv: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +tests/token.sh: 123: cannot open /dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token: No such file +tests/token.sh: 126: cannot open /dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token: No such file +PASS token-kept-across-starts +cp: cannot stat '/dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token': No such file or directory +tests/token.sh: 129: cannot create /dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token: Directory nonexistent +FAIL control-wrong-token-401: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +tests/token.sh: 133: cannot create /dev/shm/hive/NonHw4449/s/token-neg/home-w1/.local/share/aienos/auth/bearer-token: Directory nonexistent +PASS control-missing-header-401 +FAIL token-chat-command-authorized: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL control-engine-without-token-refuses: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL token-header-in-every-request: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL control-capture-sees-missing-header: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL token-from-getrandom-32-bytes: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +PASS control-existing-token-not-redrawn +FAIL token-differs-per-install: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +chmod: cannot access '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +FAIL control-file-0644-refused: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +chmod: cannot access '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +chmod: cannot access '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth': No such file or directory +FAIL control-dir-0755-refused: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +chmod: cannot access '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth': No such file or directory +mv: cannot stat '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +ln: failed to create symbolic link '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +FAIL control-symlink-refused: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +rm: cannot remove '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +mv: cannot stat '/dev/shm/hive/NonHw4449/s/token-neg/w2.tok': No such file or directory +cp: cannot stat '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +FAIL control-non-hex-refused: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +tests/token.sh: 243: cannot create /dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token: Directory nonexistent +tests/token.sh: 243: cannot create /dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token: Directory nonexistent +FAIL control-short-token-refused: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +tests/token.sh: 246: cannot create /dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token: Directory nonexistent +head: cannot open '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token' for reading: No such file or directory +head: cannot open '/dev/shm/hive/NonHw4449/s/token-neg/w2.tok' for reading: No such file or directory +PASS token-restored-starts +stat: cannot statx '/dev/shm/hive/NonHw4449/s/token-neg/home-w2/.local/share/aienos/auth/bearer-token': No such file or directory +FAIL token-remade-after-removal: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL control-wizard-refuses-open-folder: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +FAIL token-removed-by-uninstall: condition false (see /dev/shm/hive/NonHw4449/s/token-neg) +head: cannot open '/dev/shm/hive/NonHw4449/s/token-neg/home-core/.local/share/aienos/auth/bearer-token' for reading: No such file or directory +PASS core-refuses-without-token +FAIL core-matrix-401-401-200: engine did not start (see /dev/shm/hive/NonHw4449/s/token-neg/core1.log) +FAIL core-wizard-chat-200: engine did not start on 18100 (see /dev/shm/hive/NonHw4449/s/token-neg/core2.log) +FAIL core-wizard-wrong-token-401: engine did not start on 18100 (see /dev/shm/hive/NonHw4449/s/token-neg/core2.log) +FAIL core-wizard-missing-header-401: engine did not start on 18100 (see /dev/shm/hive/NonHw4449/s/token-neg/core2.log) +AIENOS-TOKEN-TESTS pass=5 fail=25 notrun=0 scratch=/dev/shm/hive/NonHw4449/s/token-neg diff --git a/installer/tests/failure-paths/disk-full.sh b/installer/tests/failure-paths/disk-full.sh index e758776..2a2bc57 100755 --- a/installer/tests/failure-paths/disk-full.sh +++ b/installer/tests/failure-paths/disk-full.sh @@ -52,7 +52,7 @@ if [ $rc -eq 0 ] && fp_installed "$h"; then ctl1=opposite; fi check "negative control (limit lifted: installs and verifies): $ctl1" "$([ $ctl1 = opposite ]; echo $?)" # (b) the model download. -ALL='\n\n\n\n\nyes\n\n\n\n\n\n\n' +ALL='\n\n\n\nyes\n\n\n\n\n\n\n' h=$(fp_home model) fp_boot "$h" good > "$S/model-boot.out" 2>&1 a=$h/.local/share/aienos/current/bin/aienos diff --git a/installer/tests/failure-paths/lib.sh b/installer/tests/failure-paths/lib.sh index 1fe3480..9a829e9 100644 --- a/installer/tests/failure-paths/lib.sh +++ b/installer/tests/failure-paths/lib.sh @@ -36,6 +36,11 @@ fp_require() { [ "$have" = "$OMC_PIN" ] || fp_notrun "omc sha256 $have, want $OMC_PIN" mkdir -p "$S" S=$(cd "$S" && pwd) + # The wizard reads /proc to find running model servers; here it reads an empty folder, as in + # tests/run.sh, so its panels (and the Enters the scripts feed) do not depend on this machine. + mkdir -p "$S/proc-empty" + AIENOS_PROC_ROOT=$S/proc-empty + export AIENOS_PROC_ROOT } # A free TCP port on 127.0.0.1, at least 20000, never one of the Spark's live services. diff --git a/installer/tests/failure-paths/model-corrupt.sh b/installer/tests/failure-paths/model-corrupt.sh index 5095af7..70968c8 100755 --- a/installer/tests/failure-paths/model-corrupt.sh +++ b/installer/tests/failure-paths/model-corrupt.sh @@ -45,7 +45,7 @@ flip() { cp "$G" "$S/weights.bad" flip "$S/weights.bad" cmp -s "$S/weights.bad" "$G" && fp_notrun "could not make a corrupted copy" -ALL='\n\n\n\n\nyes\n\n\n\n\n\n\n' +ALL='\n\n\n\nyes\n\n\n\n\n\n\n' wiz() { printf '%b' "$ALL" | env HOME="$1" AIENOS_PROBE_ROOT="$R" TMPDIR="$S/tmp" \ timeout 300 "$1/.local/share/aienos/current/bin/aienos" wizard --plain > "$2" 2>&1; rc=$? diff --git a/installer/tests/failure-paths/model-resume.sh b/installer/tests/failure-paths/model-resume.sh index e89ffb7..7633f62 100755 --- a/installer/tests/failure-paths/model-resume.sh +++ b/installer/tests/failure-paths/model-resume.sh @@ -40,7 +40,7 @@ fp_release good "$S/bin" fp_release mut "$S/bin-mut" R=$(fp_root gb10) SZ=$(wc -c < "$S/www/model/weights.bin" | tr -d ' ') -ALL='\n\n\n\n\nyes\n\n\n\n\n\n\n' +ALL='\n\n\n\nyes\n\n\n\n\n\n\n' W=/model/weights.bin # wiz HOME OUT: the wizard with the default answers, as a user at the terminal runs it. wiz() { diff --git a/installer/tests/failure-paths/no-network.sh b/installer/tests/failure-paths/no-network.sh index 8be0c01..fe4b235 100755 --- a/installer/tests/failure-paths/no-network.sh +++ b/installer/tests/failure-paths/no-network.sh @@ -78,7 +78,7 @@ if [ $rc -eq 0 ] && fp_installed "$hg"; then ctl=opposite; fi check "negative control (server up: installs and verifies): $ctl" "$([ $ctl = opposite ]; echo $?)" # (d) bootstrap done, then the network goes before the wizard fetches the model. -ALL='\n\n\n\n\nyes\n\n\n\n\n\n\n' +ALL='\n\n\n\nyes\n\n\n\n\n\n\n' h=$(fp_home wiznet) fp_boot "$h" good > "$S/wiznet-boot.out" 2>&1 kill "$FP_SRV"; wait "$FP_SRV" 2>/dev/null; FP_SRV= diff --git a/installer/tests/failure-paths/rollback-clean.sh b/installer/tests/failure-paths/rollback-clean.sh index 17a791d..e42bee8 100755 --- a/installer/tests/failure-paths/rollback-clean.sh +++ b/installer/tests/failure-paths/rollback-clean.sh @@ -21,7 +21,9 @@ # test release whose uninstaller skips its folder sweep (FP_MUTATE) must find the folders the # install made (opposite verdict). # Not counted: ~/.local/share/gvfs-metadata (GNOME's metadata database, written by `gio set` for -# the desktop icon's "trusted" flag); its paths are listed in the log. Stock Spark: NOT_RUN. +# the desktop icon's "trusted" flag when a session bus is reachable), nor ~/.local/share and +# ~/.local while they hold nothing but that folder; its paths are listed in the log. +# Stock Spark: NOT_RUN. # # usage: OMC=... sh rollback-clean.sh [SCRATCH] set -u @@ -36,15 +38,17 @@ fp_compile "$S/bin" "$port" || fp_notrun "omc refused the test wizard ($S/bin/om FP_TAG=$OLD fp_release old "$S/bin" fp_release new "$S/bin" R=$(fp_root gb10) -ALL='\n\n\n\n\nyes\n\n\n\n\n\n\n' +ALL='\n\n\n\nyes\n\n\n\n\n\n\n' G=gvfs-metadata # snap HOME: every path outside ~/.local/share/aienos under HOME, XDG_RUNTIME_DIR and TMPDIR, # with the roots written as $HOME, $XDG_RUNTIME_DIR, $TMPDIR (gvfs metadata to $S/gvfs-*). snap() { - b=$1/.local/share/aienos + s=//none l=//none + [ "$(ls -A "$1/.local/share" 2>/dev/null)" = "$G" ] && s='$HOME/.local/share' + [ "$s" != //none ] && [ "$(ls -A "$1/.local" 2>/dev/null)" = share ] && l='$HOME/.local' (cd "$1" && find . -mindepth 1 \( -path ./.local/share/aienos -prune -o -path "./.local/share/$G" -prune \) \ - -o -print | sed 's|^\.|$HOME|') + -o -print | sed 's|^\.|$HOME|' | grep -vxF -e "$s" -e "$l") (cd "$S/run-${1##*/home-}" && find . -mindepth 1 | sed 's|^\.|$XDG_RUNTIME_DIR|') (cd "$S/tmp-${1##*/home-}" && find . -mindepth 1 | sed 's|^\.|$TMPDIR|') } diff --git a/installer/tests/failure-paths/run.sh b/installer/tests/failure-paths/run.sh index ccd81d3..bf7c396 100755 --- a/installer/tests/failure-paths/run.sh +++ b/installer/tests/failure-paths/run.sh @@ -2,7 +2,8 @@ # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception # Failure-path runner (DRA-53): runs the eleven failure-path scripts and prints one line per path: # PASS|FAIL|NOT_RUN -# then one summary line. Exit 0 when nothing failed, 1 otherwise. Not wired into CI: it builds +# then one summary line. Exit 1 when a path failed, else 3 when a path was NOT_RUN (an unavailable +# omc is never success), else 0. Not wired into CI: it builds # test releases, serves them on 127.0.0.1 and starts the fake engine on a free high port, so run # it by hand on a CPU-only host: # OMC=/path/to/pinned/omc sh installer/tests/failure-paths/run.sh [SCRATCH] @@ -25,4 +26,5 @@ for p in disk-full no-network wrong-gpu-driver interrupted-install bad-signature printf '%-8s %-20s %s\n' "$v" "$p" "$line" done printf 'SUMMARY pass=%s fail=%s not_run=%s stock-spark=NOT_RUN logs=%s\n' "$pass" "$fail" "$notrun" "$S" -[ $fail -eq 0 ] +[ $fail -eq 0 ] || exit 1 +[ $notrun -eq 0 ] || exit 3 diff --git a/installer/tests/lend.sh b/installer/tests/lend.sh index d1c3595..c615ea7 100755 --- a/installer/tests/lend.sh +++ b/installer/tests/lend.sh @@ -14,6 +14,11 @@ here=$(cd "$(dirname "$0")" && pwd) S=${1:-$(mktemp -d "${TMPDIR:-/tmp}/aienos-lend.XXXXXX")} mkdir -p "$S" S=$(cd "$S" && pwd) +# The wizard reads /proc to find running model servers; here it reads an empty folder, as in +# tests/run.sh, so its panels (and the Enters wiz feeds) do not depend on this machine. +mkdir -p "$S/proc-empty" +AIENOS_PROC_ROOT=$S/proc-empty +export AIENOS_PROC_ROOT TAG=alpha-20261029.1 CLOSED=${AIENOS_TEST_CLOSED_PORT:-18797} pass=0 @@ -65,10 +70,10 @@ mkhome() { # name stage printf '%s' "$h" } aien() { h=$1; shift; env HOME="$h" AIENOS_PROBE_ROOT="$S/root" "$h/.local/share/aienos/current/bin/aienos" "$@"; } -# welcome, model (two panels: what was found, choice), doctor, plan, yes, install, model, first chat, -# lending (two panels: Enter, answer), done. +# welcome, model choice (no "what was found" panel: the /proc folder is empty), doctor, plan, yes, +# install, model, first chat, lending (two panels: Enter, answer), done. wiz() { # home answer - printf '\n\n\n\n\nyes\n\n\n\n\n%s\n\n\n\n' "$2" | env HOME="$1" AIENOS_PROBE_ROOT="$S/root" \ + printf '\n\n\n\nyes\n\n\n\n\n%s\n\n\n\n' "$2" | env HOME="$1" AIENOS_PROBE_ROOT="$S/root" \ timeout 120 "$1/.local/share/aienos/current/bin/aienos" wizard --plain rc=$? aien "$1" stop > /dev/null 2>&1 diff --git a/installer/tests/token.sh b/installer/tests/token.sh index 69ea01d..119253c 100755 --- a/installer/tests/token.sh +++ b/installer/tests/token.sh @@ -21,6 +21,11 @@ here=$(cd "$(dirname "$0")" && pwd) S=${1:-$(mktemp -d "${TMPDIR:-/tmp}/aienos-token.XXXXXX")} mkdir -p "$S" S=$(cd "$S" && pwd) +# The wizard reads /proc to find running model servers; here it reads an empty folder, as in +# tests/run.sh, so its panels (and the Enters wiz feeds) do not depend on this machine. +mkdir -p "$S/proc-empty" +AIENOS_PROC_ROOT=$S/proc-empty +export AIENOS_PROC_ROOT TAG=alpha-20261029.1 PORT=18100 pass=0 @@ -68,7 +73,7 @@ aien() { h=$1; shift; env HOME="$h" AIENOS_PROBE_ROOT="$S/root" "$h/.local/share # The same command from the mutant stage (the wizard with its two qauth calls removed). mutant() { h=$1; shift; env HOME="$h" AIENOS_PROBE_ROOT="$S/root" "$S/stage-mutant/bin/aienos" "$@"; } wiz() { # home - printf '\n\n\nyes\n\n\n\n\n\n\n\n\n' | env HOME="$1" AIENOS_PROBE_ROOT="$S/root" \ + printf '\n\n\n\nyes\n\n\n\n\n\n\n\n\n' | env HOME="$1" AIENOS_PROBE_ROOT="$S/root" \ timeout 120 "$1/.local/share/aienos/current/bin/aienos" wizard --plain rc=$? aien "$1" stop > /dev/null 2>&1 @@ -271,8 +276,11 @@ else mkdir -p "$S/core-model" box() { # port log [token] if [ $# -ge 3 ]; then set -- "$1" "$2" "AIEN_SERVE_HTTP_BEARER_TOKEN=$3"; else set -- "$1" "$2" "AIENOS_NO_TOKEN=1"; fi + # --dev /dev hides /dev/shm; bind the engine and model folders back so a scratch under + # /dev/shm works. env -i PATH=/usr/bin:/bin CUDA_VISIBLE_DEVICES= NVIDIA_VISIBLE_DEVICES=none "$3" \ bwrap --die-with-parent --ro-bind / / --dev /dev --proc /proc --tmpfs /tmp \ + --ro-bind "$S/core" "$S/core" --ro-bind "$S/core-model" "$S/core-model" \ "$S/core/aien-serve-http" --engine stub --bind 127.0.0.1 --port "$1" --model-dir "$S/core-model" \ --stub-reply "Hello from the Core stub engine" > "$2" 2>&1 }