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.hlaunches 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.candsched.hprovide 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.