interplane.Get Omega
Read in your language

aien-sovereign-core-mv

AienOS host runtime: inference scheduling, paged KV state, the aien CLI and Spark verification tooling. Its inference engine is in alpha testing (DGX Spark GB10); Omega is the implementation destination.

Brought by drakestapleton

[27B P1] Audit and bound native serving resource use and request lifecycles

Open · #721 · open 2026-10-23 23:03 UTC

Imported from GitHub aien-dev/aien-sovereign-core-mv#721, by drakestapleton

drakestapleton wrote on 2026-10-23 23:03 UTC

Parent delivery index: #715. New first-party implementation/tests/automation are handwritten seeded .om; use existing compiler, runtime and migration owners. Reconcile current heads, PRs, comments, consumer pins and recovery archives before edits. No permanent Rust/C/.osc/Python implementation or hidden third-party inference engine. Qualify affected replacements before deleting superseded active code. Preserve live service, driver state, visibility and existing hardware coordination. Exact hashes, commands, raw results, negative controls and independent final-source review are required. Hardware NOT_RUN is not PASS.

Scope and evidence

The attached comparison flags runtime hardening as partial. Main server.rs has body/message/output limits and a bounded output channel, but the inspected file does not establish whole-connection/header/read-time limits. TensorFold v1.1.2 hardening is a checklist of mechanisms to audit, not evidence of the same vulnerabilities here. Reuse #522 HTTP follow-ups and #485/#523 storage timeout owners. This task closes demonstrated gaps in the actual .om serving replacement; unrelated security advisories and checkpoint loaders stay with existing owners.

Acceptance

  • Trace production listener -> parser -> preparation/tokenizer -> admission -> generation -> SSE writer -> cancellation. Record implemented/partial/missing controls with exact source/test references before changes.
  • Bound concurrent connections, header/body bytes and total header/body read deadlines, preparation work and waiting/output queues. Tiny fragments must not reset a total read deadline forever. Keep legitimate long inference/SSE timing separate.
  • Validate routing/parser behavior for incomplete/malformed heads, conflicting lengths/framing and unexpected bodies using the current parser's contract. Reuse a proven parser where already owned; do not create a second HTTP stack as an incidental fix.
  • Slow readers and disconnects release their request's resources without leaking sessions, blocking unrelated streams or publishing uncommitted tokens. Allocation failure and cancellation produce a legal final/error response where possible.
  • Audit API key/log file handling only where these features exist: private regular files, symlink/permission refusal, no secrets/raw private prompts in shared receipts. Do not invent remote fetch features.
  • Loopback adversarial tests cover slow fragmented requests, connection/queue caps, malformed framing, oversized tokenization work, stalled SSE writes, dropped clients and OOM injection; verify bounded memory and progress for healthy clients.
  • Reconcile #522's preparation/event-loop issue in the native owner and preserve error envelope semantics. Demonstrate actual listener behavior, not only handler-unit tests.
  • Final documented limits, supported behavior and regression results accompany the isolated candidate; production restart/deployment remains separate. Any genuine out-of-scope loader/security findings receive a link to their existing owner or a narrowly scoped follow-up with evidence.

No comments.

Sign in to comment