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 / copilot-instructions.md

61 lines · 3325 bytes Raw Blame History Source

Instructions for coding agents working on AIENOS

Read docs/PLAN_AUTHORITY.md, ROADMAP.md, CONTRIBUTING.md, CONTEXT.md (domain language), and the relevant accepted ADRs before starting. ROADMAP.md owns the current AIENOS gate order. Historical/reference planning documents do not override it. Whole-system sequencing is owned by aien-dev/aien-architecture-mv/CURRENT_EXECUTION_PLAN.md. This file adds what agents most often get wrong here.

Finish line for every pull request

  1. bash scripts/verify_all.sh passes. Paste the command and the tail of its output (the PASS/FAIL lines) at the top of the PR description.
  2. On an x86 runner some steps print SKIPPED (AArch64-only recovery tests, KVM). Say which steps skipped; never describe a skipped step as passing.
  3. The PR description ends with one line SECURITY_IMPACT: <class>, one of NONE, BOUNDARY, ROOT_OF_TRUST, AUTHORITY, RECOVERY, PERSISTENT_FORMAT. Anything in the kernel privilege path, capabilities, AEGIS, storage unlock, crypto or recovery is not NONE.
  4. One concern per PR, and keep it reviewable: aim for under 600 changed lines. Split larger work into a series and say what comes next.

Hard rules

Kernel ordering (Milestone 3)

ADR 0009 is accepted: the kernel moves from EL2 to EL1h before anything else in M3. Until that change is on main, do not implement MMU page tables, exception vector changes, interrupt or timer bring-up, task switching or EL0 entry, even if an issue seems to ask. Host-testable logic (pure Rust with unit tests, no system registers) is fine and preferred: build it so the EL1 kernel can adopt it later.

ADRs

Check docs/adr/ and open pull requests for the next free ADR number before writing one, update docs/adr/README.md, and start with Status: Proposed. Only the operator accepts ADRs.

Useful commands

rustup target add aarch64-unknown-uefi aarch64-unknown-none
cargo test --workspace
cargo clippy --workspace --all-targets -- -D warnings
cargo build -p aienos-kernel --target aarch64-unknown-none --no-default-features
bash scripts/qemu_boot_test.sh     # UEFI boot in QEMU, needs qemu-system-aarch64 + AAVMF
bash scripts/verify_all.sh         # everything