interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / .github / workflows / allen-reflex-kernel.yml

61 lines · 2689 bytes Raw Blame History
1name: ALLEN REFLEX kernel link (allen-reflex-kernel)
2
3# Host and no_std checks for crates/allen-reflex-kernel, the glue that links the ALLEN REFLEX
4# decision core into the C kernel image of "make pi5-allen" (PI5-8 cut K). The C side (core/allen.c,
5# core/allen_gate.c, tests/test_allen_gate.c) runs in the CK kernel workflow's "make test".
6# Train/dev only: the held-out cases are never read.
7on:
8 pull_request:
9 paths:
10 - "crates/allen-reflex/**"
11 - "crates/allen-reflex-kernel/**"
12 - "scripts/allen_exam_card.sh"
13 - "docs/native/pi5-8/orchestrator-exam/cases-train.psv"
14 - "docs/native/pi5-8/orchestrator-exam/cases-dev.psv"
15 - "docs/native/pi5-8/orchestrator-exam/cases-reflex-extra.psv"
16 - "docs/native/pi5-8/orchestrator-exam/results/allen-reflex.train.*.jsonl"
17 - "docs/native/pi5-8/orchestrator-exam/results/allen-reflex.dev.*.jsonl"
18 - ".github/workflows/allen-reflex-kernel.yml"
19 push:
20 branches: [main]
21 paths:
22 - "crates/allen-reflex/**"
23 - "crates/allen-reflex-kernel/**"
24
25permissions:
26 contents: read
27
28jobs:
29 allen-reflex-kernel:
30 runs-on: ubuntu-latest
31 timeout-minutes: 20
32 defaults:
33 run:
34 working-directory: crates/allen-reflex-kernel
35 steps:
36 - uses: actions/checkout@v4
37 - uses: dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable
38 with:
39 components: clippy, rustfmt
40 targets: aarch64-unknown-none
41 - name: fmt
42 run: cargo fmt --check
43 - name: clippy (host)
44 run: cargo clippy --locked --all-targets -- -D warnings
45 - name: clippy (kernel target)
46 run: cargo clippy --locked --release --target aarch64-unknown-none --lib -- -D warnings
47 - name: test (unit + heap budget)
48 run: cargo test --locked --release
49 - name: kernel staticlib (aarch64-unknown-none)
50 run: cargo build --locked --release --target aarch64-unknown-none --lib
51 - name: host harness equals the committed train/dev results
52 working-directory: .
53 run: |
54 exam=docs/native/pi5-8/orchestrator-exam
55 scripts/allen_exam_card.sh /tmp/td.exm "$exam/cases-train.psv" "$exam/cases-dev.psv"
56 cargo run --locked --release --manifest-path crates/allen-reflex-kernel/Cargo.toml --example host_exam -- /tmp/td.exm >/tmp/host.txt
57 for mode in reflex nearest perceptron; do
58 diff <(grep "^ALLEN_D $mode " /tmp/host.txt | sed "s/^ALLEN_D $mode //") \
59 <(cat "$exam/results/allen-reflex.train.$mode.jsonl" "$exam/results/allen-reflex.dev.$mode.jsonl" | jq -r '.id + " " + .raw')
60 echo "$mode: identical"
61 done