Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/aienux/issues/4f70d1ad461fa762 # aienux Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately. Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [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 - `native/kernel/core/osc_task.h` launches an admitted function and waits for it (`ck_osc_launch`), scoped to QEMU; this API alone cannot expose concurrently progressing stream stages. - `native/kernel/core/sched.c` and `sched.h` provide bounded task queues, but do not establish end-to-end blocking pipe wakeups. - OSH ABI §8.4, §10, §12 specifies TASK_SPAWN/WAIT/CANCEL/STATE and explicit partial launch semantics. ### 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