aien-sovereign-core-mv
AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.
Brought by drakestapleton
aien-sovereign-core-mv / om / inquisitor-exit / README.md
| 1 | # om/inquisitor-exit: exit-status contract of spark-inquisitor (DRA-99) |
| 2 | |
| 3 | `check.om` is a seeded-Omega test driver for a built `spark-inquisitor` binary. It checks report format |
| 4 | `spark-inquisitor-report/2`: style findings are advisory, secrets and `.env` files block. |
| 5 | |
| 6 | Each case writes a diff into a scratch directory, runs the binary on it (`fork`, `execprog`, stdout and |
| 7 | stderr sent to a file with `dupfd`, `waitpid`) and checks the exit status and the output: |
| 8 | |
| 9 | | Case | Diff | Expected | |
| 10 | |---|---|---| |
| 11 | | `token-review-blocks` | added line with a GitHub token | `review` exits 1, names the token finding, never prints the token | |
| 12 | | `aws-key-audit-blocks` | added line with an AWS access key | `audit` exits 1, never prints the key | |
| 13 | | `env-file-review-blocks` | new file `deploy/.env.local` | `review` exits 1, names the `.env` finding | |
| 14 | | `dash-only-review-passes-and-prints` | added line with one em dash | `review` exits 0, prints the dash finding under "PASS (style advisories)" and the format name | |
| 15 | | `dash-only-audit-passes-and-prints` | the same diff | `audit` exits 0 and prints the dash finding | |
| 16 | | `buzzword-only-review-passes` | added line with a banned buzzword | `review` exits 0 and prints the finding | |
| 17 | | `clean-review-passes` | a clean added line | `review` exits 0, no advisory, no failure | |
| 18 | | `secret-with-dash-review-blocks` | a token and a dash on one line | `review` exits 1, prints the dash advisory with the line redacted, never the token | |
| 19 | |
| 20 | The token, the key and the dash bytes are assembled at run time, so this file contains none of them. |
| 21 | |
| 22 | ## Run |
| 23 | |
| 24 | Compiler: omega-mv `bf54b19f` `seed/out/omc`, sha256 |
| 25 | `62775d2a391cfef7cde64e387655caa9809a267093112910ec76bfa568f3712b` (the pin of `om/golden`). |
| 26 | |
| 27 | ```sh |
| 28 | cargo build --release -p spark-inquisitor |
| 29 | sha256sum "$OMC" # must print the pin above |
| 30 | "$OMC" < om/inquisitor-exit/check.om > /path/to/check && chmod 700 /path/to/check |
| 31 | mkdir -p /path/to/scratch |
| 32 | /path/to/check target/release/spark-inquisitor /path/to/scratch |
| 33 | ``` |
| 34 | |
| 35 | It prints `PASS NAME` or `FAIL NAME` per case, then `INQEXIT PASS cases=8` (exit 0) or |
| 36 | `INQEXIT FAIL cases=8 fail=K` (exit 1). Exit 2 is usage, 3 a host call that failed. |
| 37 | |
| 38 | Controls (run for DRA-99): the report-format-1 binary from main `9d7b3433` fails the four style cases (it |
| 39 | exits 1 on a dash or buzzword); a mutant whose `has_blocking_findings` ignores secrets fails the token and |
| 40 | key cases; a mutant that quotes secret lines in findings fails `secret-with-dash-review-blocks`. |
| 41 | |
| 42 | No gate runs this yet: SC-INQUISITOR (`tests/gates/run.sh inquisitor`) audits the change's own diff, and |
| 43 | changing `tests/gates/` needs operator promotion. The Rust crate itself is migration; its seeded-Omega |
| 44 | successor (and the self-exemption gap: lines in files whose path contains `spark-inquisitor` are not |
| 45 | scanned) is Linear DRA-440. |