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

[OSH][P0] Replace test-only klog restriction with native multi-command OSH pipeline execution

Open · #430 · open 2026-10-18 21:56 UTC

Imported from GitHub aien-dev/aienux#430, by drakestapleton

drakestapleton wrote on 2026-10-18 21:56 UTC

Goal

Connect the existing Omega OSH parser/request records to a capability-checked native AIENOS multi-stage executor. This is the OSH integration issue, not permission to add a new parser or duplicate a scheduler.

Scope: subordinate to architecture OSH #158; NOT A MASTER PLAN.

Code evidence

  • native/kernel/core/osh_op.c lines 249–259 accepts klog only, and rejects ncmds != 1, assignments, redirections and builtins before side effects.
  • osh_op.h is test-only (CK_OSH_OP_TEST), unavailable in a production/hardware-staging image and uses RAM-only intent records.
  • native/kernel/core/osh_test.c runs the existing compiled lexer, parser and expander as QEMU EL0 tasks and can pass PIPELINE_READY records to this adapter in test mode.
  • Omega src/osh/host/osh_exec.c already implements concurrent host process pipes; preserve shared language semantics, not Linux syscall dependencies.

Tasks

  • In test/QEMU mode first, consume the validated OSH ABI v1 request layout (ncmds, argv, redirects, builtins, connector status) for multiple commands, not klog-only.
  • Resolve commands to admitted Omega-native ops/services. Reject non-existent or unavailable classes by name, without fallback to arbitrary host shell or unintended machine forwarding.
  • Wire pipeline command stages to the native stream and task interfaces; apply ordered redirections and correct last-stage status.
  • Check authority at every effect boundary, including spawn, redirection and stream access. No shell variable or command name ever mints authority.
  • Maintain test-only guards until genuine kernel integration, validated persistent intent/outcome handling and the production qualification gate exist. Do not simply delete CK_OSH_OP_TEST checks.
  • Preserve QEMU negative controls (non-admitted unit, malicious request, revocation, partial launch, crash after effect) and audit capability generations.
  • Compare supported behavior against Omega hosted OSH vectors; unsupported constructs must refuse explicitly.

Done when

  • producer | transform | consumer genuinely streams data with concurrent native tasks in QEMU and uses no temporary file.
  • Conforming interactive/script/direct-argv routes reach the same executor and the same effect gate.
  • Malformed/unauthorized requests have no effects; all success/partial/unknown outcomes produce evidence.
  • Tests prove exact stage statuses, bounded memory, EOF and cleanup; hardware claims only after physical validation.

Depends: Protocols #43, AIENOS #428, native task lifecycle issue (link after creation).

Additional dependency: AIENOS native task lifecycle #429.

No comments.

Sign in to comment