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] Native pipeline task lifecycle: concurrent stages, wait, wake, cancel

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

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

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

Objective

Enable two or more admitted Omega tasks to run as a real concurrent pipeline with native stream endpoints and deterministic teardown. NOT A MASTER PLAN. Subordinate to OSH workstream #158 and the current execution plan.

Source-backed gap

Implementation

  • Audit current native task lifetime and isolate a versioned spawn / wait / state / cancel interface around the existing admitted-artifact checks. Do not let spawn bypass realization receipt verification or EL0 isolation.
  • Support at least two independent concurrently progressing pipeline stages connected by stream handles from AIENOS pipe #428, without serially running each stage to completion.
  • Implement wakeup/scheduling on stream readable, writable, closed, revoked, and cancelled events without busy-waiting indefinitely.
  • Validate capability principal, resource, rights, generation, and epoch when creating and using task/stream bindings; transfer least privilege to stages.
  • On partial launch failure, cancel/reap already started stages, close all unused endpoints and return PARTIAL_LAUNCH. Define EOF/error/status propagation and last-stage status consistent with OSH ABI.
  • Add cancellation/timeouts and reliable cleanup even when a producer never ends, consumer exits early, or one task traps.

Acceptance

  • A test-only QEMU boot runs two distinct admitted Omega stages simultaneously and transfers bytes over one bounded native pipe.
  • Slow consumer triggers backpressure; no leaked tasks/handles, deadlock, busy polling, or unbounded buffering.
  • A third stage is exercised after two-stage proof, with nonzero exit, crash, cancellation and partial-spawn negative controls.
  • Spark judge receipt pins commit/compiler/QEMU image and discloses QEMU-only status; no physical-hardware claim.

Depends on: aien-protocols#43, aienos#428. Parent: architecture#158.

No comments.

Sign in to comment