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/aien-sovereign-core-mv/issues/e0b0a993f85f09c4 # 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 Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers # [27B delivery] Close concurrent serving, shared verification, state reuse and tool/security gaps in .om Open · #715 · open 2026-10-23 23:00 UTC Imported from GitHub aien-dev/aien-sovereign-core-mv#715, by drakestapleton drakestapleton wrote on 2026-10-23 23:00 UTC ## Outcome Close the verified integration gaps in the attached TensorFold 1.1.2 comparison through the existing Omega/CUDApp/Sovereign Core owners. This is a delivery index, not a new engine or scheduler. ## Recheck on 2026-10-23 - Current main `crates/aien-serve-http/src/server.rs` (file blob `c826703f67befa6538ed655bc58f35f074d716b4`) uses `try_lock_owned` and returns 503 when another generation owns the gate; nonempty tools/functions are refused. - Main `codec.rs` (blob `2162f59124361fd605f869c70dc4fbf5bee465cd`) encodes a rendered prompt with `encode_with_special(text, true)`. The narrower tool-output boundary from closed #310 is not a tokenizer-wide trusted-template/untrusted-text contract. This is an audit/regression gap, not a proven exploit against every model. - `qwen38/serve` engine (blob `3a593a8a8621f2bacb01f132c9665d11187362fe`) owns one mutex-protected session, advances one token, and explicitly excludes attention-only persistence because DeltaNet state is missing. The file is absent on inspected main; branch work is not deployed evidence. - #679/#710–#713 remain open. Draft #714 at `2698ca8fa7ca2fa45ce89d17aa4b39290a84d9a7` restores all 81 checkpoint files and adds native receipt checks; full-model quality/speed remain NOT_MEASURED. Its latest review says the inspected live model is a different 35B. Missing checkpoint is no longer the blocker. - CUDApp PR #67 at `896d2837c441a349c2e95128ae39e512f90e689d` is draft: native policy/collector/report tests exist; real 27B attachment and held-out hardware trials remain open. - #485 owns offload concurrency, not multi-sequence GPU verification. #484/#713 own persistence and complete-state correctness. Preserve those boundaries. - Omega #666 already owns broad native serving ecosystem replacement; this packet supplies concrete integration slices, not a competing roadmap. ## Existing authoritative dependencies - #710 — exact baseline fixtures, quality contract and qualified artifact (continue #714). - #711 — actual packed W4, quality/traffic gates. - #712 — state-correct native endpoint MTP. - #713 — coherent accepted state and complete-prefix reuse. - https://github.com/aien-dev/CUDApp/issues/63 — experiment, with #64/#65/#66 and draft PR #67. - #642 — model endpoint; #484/#485 — persistence and offload. - https://github.com/aien-dev/omega-mv/issues/636 and https://github.com/aien-dev/omega-mv/issues/638 — existing native host/device boundaries; https://github.com/aien-dev/omega-mv/issues/562 correctness dispositions. - https://github.com/aien-dev/omega-mv/issues/666 — native serving ecosystem owner. ## Additional scoped implementation issues - #716 — bounded multi-session HTTP/scheduler integration. - #717 — shared GPU verification and adaptive row budgets. - #718 — bounded complete-state RAM/disk reuse by measured time saved. - #719 — trusted template/control-token separation (security gate). - #720 — structured tool generation/continuation, schemas and SSE. - #721 — actual serving listener/resource/lifecycle hardening. ## Dependency order #710 and existing Omega #636/#638 execution boundaries establish the baseline. #711 can proceed independently after the quality contract is frozen. #713 gates #712 and #718. #716 builds session concurrency; #717 requires #716 plus qualified #712/#713 and reuses CUDApp #65/PR #67. #719 gates #720. #721 proceeds alongside endpoint work with one owner for shared files. Final matched physical trials extend #710/CUDApp #66; preserve their original experiment contracts. All changes roll up to existing Omega #666. These are linked issues using the checklist and Parent references; this packet does not claim native GitHub sub-issue relationships. ## Execution and acceptance Freeze contracts and inspect current heads, comments, consumer pins, ownership ledgers and recovery/orphaned-work-`20261023`-l755 archives first. Use PR #714's OPEN_WORK_REVIEW.md as a starting index, not current proof. New first-party implementation, tests and automation are handwritten seeded .om. Reuse and extend existing migration owners; missing language/device facilities go to their owners. No hidden Rust/C/.osc/Python production path or third-party inference engine. Qualify replacements and affected consumers before deleting superseded active implementations; preserve history/evidence. Keep Unix-style narrow interfaces. Build single-request correctness and baseline first; then integrate bounded concurrent sessions, then shared verification. State correctness gates both reuse and speculation. Token trust gates expanded tool support. Independent work can proceed against deterministic fixtures before device availability. Use isolated candidate artifacts and existing coordinated Spark windows. No live restart/cutover, driver change, killing jobs, visibility change, or new hardware purchase is authorized here. Every deliverable needs exact source/compiler/model/tokenizer/backend/binary/config hashes, reproducible commands, raw exits, meaningful negative controls and independent final-source review. Distinguish host, simulated and physical evidence. NOT_RUN/BLOCKED is not PASS. Continue independent work when blocked; leave unmet hardware gates open. Final report maps every checklist item to code/tests/evidence and gives the precise remaining blockers. Do not close this index based solely on merged source. ## Upstream comparison https://github.com/ashhart/TensorFold/releases/tag/v1.1.2 reports 240 aggregate decode tok/s for eight greedy code streams, Qwen3.8-27B MLX 4-bit with DFlash2, one GB10, context 73728, three repetitions per cell. This is an upstream report, not our measured result, a per-request speed, or an acceptance target. Our initial MTP experiment is a different drafter; label differences rather than claiming matched performance. Require matched workload/checkpoint/precision/drafter/hardware for direct speed claims. ROCm/HIP and other model-family kernels stay with existing portability owners and are not prerequisites for this Spark packet. No comments. Sign in to comment