Scope
Finite OSH platform-contract issue under architecture OSH workstream #158. NOT A MASTER PLAN. This proposes P0 inside the OSH implementation workstream, without amending the authoritative cross-project execution sequence.
Code-grounded baseline (2026-10-18)
specs/osh-platform/OSH_PLATFORM_ABI.mdalready specifiesPIPE_CREATE,STREAM_READ/WRITE/CLOSE/DUP,TASK_SPAWN/WAIT/CANCEL/STATE, caps, 64-KiB minimum pipe capacity, 8 concurrent tasks per pipeline, errorsWOULD_BLOCK,BROKEN_PIPE,PARTIAL_LAUNCH, and effect recording. ABI v1 is explicitly draft/unfrozen.specs/osh-platform/vectors/has existing vectors; do not replace their format/semantics.- Omega's Linux host adapter
src/osh/host/osh_exec.cimplements concurrent pipelines; AIENOSnative/kernel/core/osh_op.cis a one-operation test-only adapter.
Deliverables
- Audit existing OSH ABI v1 fields and current Linux/Omega implementation against prospective native behavior. Record contradictions/open freeze items; don't claim an ABI freeze until independently qualified.
- Specify precise byte-stream semantics (partial read/write; zero-length operation; EOF only when all writers close; no readers -> BROKEN_PIPE; bounded backpressure/WOULD_BLOCK; close/wake; ownership and epoch validation).
- Specify task/stream binding, lifetime, cancellation, partial-launch cleanup, refusal-before-effects, and
OUTCOME_UNKNOWNhandling. Preserve separate domain-1 32-bit and domain-2 64-bit generation rules. - Add machine-checkable host/native shared positive and negative fixtures to
specs/osh-platform/vectors/; include malformed headers, cap revocation during blocked read/write, capacity limits, reader/writer close races, stage nonzero exit, cancellation, and partial launch. - Document contract changes and versions. Any incompatible frozen-layout changes require a version bump, not an implicit reinterpretation.
- Identify which vectors require real native QEMU execution versus host unit logic; require exact pinned code/toolchain/contract revision for receipts.
Acceptance criteria
- One agreed test corpus runnable independently by Omega host adapter and AIENOS native harness, reporting explicit NOT_RUN for unsupported targets.
- Every unsupported operation yields a defined refusal/error before side effects, never a guessed success.
- No new shell parser or separate authority root is introduced.
Dependencies / links
- Parent: aien-dev/aien-architecture-mv#158
- Implementers:
aien-dev/aienos-mv(streams/tasks),aien-dev/omega-mv(host conformance). - Read PLAN_AUTHORITY.md and applicable repository AGENTS.md/.crumb before modifying files.
Implementation guidance is grounded in source inspection, not a claim of passing QEMU/physical tests.