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

Qualify existing Spark 35B as local-first AIEN coding worker with controlled escalation

Closed · #730 · open 2026-10-24 05:15 UTC · closed 2026-11-07 00:07 UTC (reason not_planned)

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

Labels: retired

drakestapleton wrote on 2026-10-24 05:15 UTC

Outcome

Make the existing DGX Spark Qwen3.6-35B-A3B FP8 on Omega the default qualified local AIEN coding worker, with a deliberately bounded escalation path for difficult tasks. Keep inference, project traces and repository source local by default. This is a consumer integration/qualification lane, not a second model server, compiler, tool dispatcher, or native GPU runtime.

Grounded starting point (2026-10-24)

  • Core #724 recorded a live loopback smoke-test for omega-qwen36-batch, eight slots, model qwen3.6-35b-a3b-fp8, on 127.0.0.1:18091. This proves one response only, not sustained quality, concurrency, safety, tool use, or speed. Its latest comments document separate .om guest admission work with no production attachment or release.
  • crates/aien-cli/src/client.rs: DEFAULT_MODEL = "atlas-lightning-omni", DEFAULT_ENDPOINT = "http://127.0.0.1:18006/v1/chat/completions"; when AIEN_CHAT_BACKEND=remote it honors AIEN_MODEL_ENDPOINT and AIEN_MODEL_NAME. It logs native_runtime versus remote_adapter; preserve that evidence distinction.
  • crates/aien-cli/src/main.rs: existing bounded text <tool_call> loop, dispatch_tool, --prompt and auto-goal modes; no direct proof that the 35B produces valid authorized calls. Avoid treating this text-based harness as a qualified structured-tool endpoint.
  • crates/aien-serve-http/src/server.rs on canonical main rejects structured tools, functions, and role=tool and returns 503 on another generation. The deployed 35B executable is not proven identical to main; probe its actual protocol rather than inferring supported capabilities.
  • crates/spark-adapters/src/router.rs catalogs a stale atlas-lightning-omni local seat and historical provider models. Eliminate incorrect discovery/route selection after tracing existing consumers, and do not store external keys on disk.

Implementation slices (reuse owners)

  1. Read-only deployment discovery: pin running process/executable, bound port, GET /health, GET /v1/models, backend kind, model/checkpoint/tokenizer/build/config digests. Refuse absent, mismatched, stub/CPU or unrelated model. Do not kill/restart/reconfigure live models while diagnosing.
  2. Immediate supported local seat: use the existing AIEN_CHAT_BACKEND=remote, AIEN_MODEL_ENDPOINT, AIEN_MODEL_NAME compatibility seam to prove at least one code-explanation and one isolated source-navigation request. No global model alias flip until source/consumer pins and native seat/capability qualification pass. Make any permanent first-party routing implementation in seeded .om, using the established compiler/runtime owner and language-neutral boundaries.
  3. Coding quality: pre-register 20-30 representative held-out AIEN tasks (bug localization, .om edit proposal, compiler errors, documentation, bounded test command, negative tests, multi-turn correction, refusal/approval). Require repo-specific references, successful tests and reviewer verdict, not self-reported success. Maintain separate no-tool and tool-requiring scores.
  4. Agent tool capability gate: reuse #719 trusted template/control-token boundary and #720 native schema-safe tool-call generation, including streaming, continuation and cancellation. Keep existing agent execution authorization independent of inference; do not parse untrusted model text as authority. Until the native endpoint is qualified, label any legacy text-tool route as experimental and enforce explicit permission.
  5. Escalation: classify deterministic tool/protocol failures, repeated failed tests, insufficient task evidence, context/budget limits, and high-risk security/architecture work; package only the minimum authorized context with redaction, exact files/hashes/failing commands, prohibit silent cloud uploads; return external suggestion to local tests and human-reviewed PR, never grant external answers authority to merge/deploy.
  6. Metrics: total task wall time, cold/warm TTFT, completed verified tasks/hour, retries, context and RAM pressure, first-pass/after-repair success, tool argument validity, unauthorized-effect attempts, escalation fraction and external data volume. Report raw independent Spark receipts plus failure controls.

Ownership and dependencies

  • Reuse #715 delivery index, #716 session serving, #719 tokenizer trust, #720 tool protocol, #721 serving hardening, #724 model release/admission, Omega #666 native inference, and existing agent/CLI migration ownership. Do not overwrite active branch owners or merge desk.
  • The runbook may document manual, read-only compatibility steps before native .om migration. No new permanent Rust/C/.osc/Python serving/router implementation or hidden vLLM/llama.cpp/PyTorch backend.
  • Guest credentials and external public serving are out of scope; this is operator-local, loopback-only and need not wait for public release.

Acceptance

  • Exact live 35B model and Omega GPU backend are observed, not presumed from stale docs or mock output.
  • Existing CLI demonstrably answers a one-shot local-only coding question through that endpoint and records its execution path; errors and model mismatch fail closed.
  • A separate experiment exercises safe repository navigation plus inert tool call/correction; tools are not declared supported until the real API/tool-loop contract passes.
  • Deterministic local task verification and failure escalation work under explicit consent and bounded context. External connectivity can be disabled without preventing basic local work.
  • All owner gates, seed .om checks, independent review and coordinated Spark physical receipts are recorded, with NOT_RUN/FAIL distinguished from PASS.
  • No forced live restart, driver swap, public exposure, credential creation, auto merge or authoritative default flip.

Initial docs-only operator work may land independently; close this issue only on deployed local coding-worker evidence.

drakestapleton wrote on 2026-10-24 05:19 UTC

Operator-supplied first generation result (2026-10-24; recorded output, not independent Spark access)

127.0.0.1:18091/v1/chat/completions accepted an operator-requested qwen3.6-35b-a3b-fp8 nonstreaming, no-tool security reasoning prompt, temperature 0, max_tokens=256. Response has choices[0].message.content nonempty, usage.prompt_tokens=66, usage.completion_tokens=256, choices[0].finish_reason="length". HTTP response was successful (operator invoked curl -fsS).

Assessment: real text generation smoke test PASS; response-completeness FAIL due to configured 256-token output cap; independently validated hardware/identity/performance/tool use NOT_RUN. Model answer uses generic assertions about Omega as a high-level/educational language without source evidence and introduces an AArch64 "red zone" concept that is not applicable to standard Linux AArch64 ABI. Do not accept this as security review quality.

Next isolated evaluation: request a bounded 100-150-word answer (with 256 token cap) about actual seeded .om source, confirm finish_reason="stop", independently check factual claims, and collect wall time. Do not activate autonomous CLI effects on the strength of one inert test. Existing PR #731 documents the operator-only connection path.

drakestapleton wrote on 2026-10-24 05:20 UTC

Operator-supplied Spark 35B .om comprehension test (2026-10-24)

Second actual loopback request to /v1/chat/completions, model qwen3.6-35b-a3b-fp8, temperature 0, output cap 256, tested the real gahandle function from native/guest-access/admission.om (read-only textual analysis). Operator reports 3.629 s wall for the curl + JSON formatting pipeline, 140 input / 143 output tokens, finish_reason=stop. This implies ~39.4 output tokens/s across the entire request and client pipeline, not isolated GPU decode throughput; no chip counters or independent access.

Manual quality verdict: PASS for function semantics (zero serial, stale serial, inactive row => sentinel 32; handle % 32 bounded to 0..31) and concise completed output. FAIL for the requested negative test: response gave a valid-handle success case (a positive test) rather than invalid-handle rejection. A real negative fixture is gaserial[5]=7; gaactive[5]=0; gahandle(7*32+5)==32. This is one narrow test, not an aggregate coding-agent qualification or tool-use/permission test.

Next safe milestone: enforce a grounded, independently checked fixture suite before any autonomous tool call. Do not infer that text do not call tools gives effect security. PR #731 remains docs-only; no running service or default was changed.

drakestapleton wrote on 2026-10-24 05:25 UTC

Local-first read-only agent qualification: operator-run prototype available (2026-10-24)

Created a separate disposable, Python-standard-library-only experiment for the operator to run on the Spark. It is shared as a conversation attachment, not checked into AIEN source and is not a replacement for the seeded .om runtime. It connects only to 127.0.0.1:18091, refuses HTTP proxy settings, advertises no native tools field, and treats model-produced JSON strictly as data with these allowed actions: search, read, and final. It enumerates tracked source files from an operator-selected checkout, rejects traversal/symlink/outside-root paths and common secret/artifact directories, caps search/read lengths and model steps, and has no write or command execution action.

Verification performed off-Spark (not hardware qualification): a temporary Git checkout plus mock OpenAI-compatible HTTP responder successfully exercised search -> read -> final in three steps; a second mock attempt to return {"action":"run_command","command":"touch PWNED"} was rejected, process exited nonzero, and the checkout stayed clean. This confirms only the disposable probe's control flow, not real 35B output conformance, AIEN authorization robustness or Spark model accuracy.

Next: operator runs it against a bounded nonsecret checkout on the already verified 35B endpoint and reports its exact output; compare proposed fixes/tests against source without allowing agent effects. Permanent narrow source-inspection permissions and tool protocol remain native .om work under #719/#720 and #730. Existing draft #731 remains docs-only.

drakestapleton wrote on 2026-10-24 05:35 UTC

Operator Spark probe: valid read-only exploration, wrong subsystem, safe stop (2026-10-24)

Operator ran the disposable aien_readonly_probe.py against /home/drakestapleton/workspace/aien-sovereign-core at tracked HEAD c83eb5b2f96b3d0a36fcb5092fcf0d66af5dd0d0. Worktree was dirty; probe explicitly read tracked working-copy bytes, not frozen Git HEAD. It found 340 allowed source files. Model served through local 35B endpoint, and six accepted read-only actions followed: search Authorization, read crates/cortex-rs/src/auth.rs twice, search auth_middleware, read crates/cortex-rs/src/main.rs, read auth.rs again. Step 7 stopped with Model output truncated. Do not execute an incomplete action. No final grounded assessment was produced, and the probe has no write/shell tool action.

Diagnosis: the agent confused model-generated CLI tool effect approval with unrelated HTTP bearer-token auth in Cortex, because the unscoped repository search matched a broad word. Source navigation itself succeeded. A generation truncated at the 900-token response cap on a later turn and was safely rejected; the exact reason for the length exhaustion (model verbosity vs context) is not established.

Recovery prototype in the conversation attachment aien_readonly_probe_v2.py (operator-run only, not merged/permanent native code):

  • Require an explicit --scope crates/aien-cli/src and constrain both search and read to that operator-approved tracked subtree.
  • Prompt with exact source targets tools.rs, approval.rs, gate_tool, dispatch_tool, explicitly excluding HTTP bearer-token auth.
  • Raise request output cap to 1600 and max read-only actions to 12; if a response ends with length, discard it, request exactly one shorter replacement, and fail closed if truncated again. No incomplete action is ever parsed/executed.

Off-Spark synthetic test: disposable Git repository plus localhost HTTP stub: search -> read -> final PASS; only scoped paths observed; length-triggered retry PASS; unauthorized run_command action rejected; checkout unchanged. This does not establish real 35B action quality or production safe tool execution. Preserve .om owners for long-term integration (#719/#720); no PR cutover and no daemon restart performed.

drakestapleton wrote on 2026-10-24 05:41 UTC

Operator run: v2 read-only agent exhausted its 12-step budget (2026-10-24)

Operator's actual Spark trace on tracked HEAD c83eb5b2f96b3d0a36fcb5092fcf0d66af5dd0d0 (dirty working tree, scope crates/aien-cli/src, 24 eligible files):

  • Steps 1-2 read tools.rs starting at lines 1 and 75.
  • Step 3 requested a disallowed/missing source path and received a safe error.
  • Steps 4-6 searched with no matches.
  • Steps 7-12 repeatedly read tools.rs at lines 1200, 1150, 1000, 100, 180 and 260.
  • Reached step_limit=12 with no final conclusion, no modifications or model-selected commands.

Failure is inefficient model-directed retrieval and poor stop discipline, NOT an observed GPU crash or a known authorization vulnerability. Raising the step cap is not the main remedy.

Local read-only v3 recovery (disposable operator attachment, not committed)

Prepared aien_readonly_probe_v3.py: no model-directed search/read/actions, just deterministic bounded excerpts anchored at dispatch_tool_with and gate_tool in tools.rs, plus decide, check_floors, GateContext in approval.rs. Requires source file tracking, regular files, bounded byte size and exact function anchors; runs one no-tools loopback-only model request, with one fail-closed retry upon truncated output. Expects a structured response with citations only from exposed line numbers. Leaves checkout unchanged, warns if dirty, never requests model tool execution, and takes no CLI/daemon changes.

Off-Spark mock tests (not native model qualification): valid output accepted, first-length retry succeeds, nonexistent citations denied, arbitrary run_command output denied, checkout remains clean. The code has defaults for --repo, --task and port 18091, so an operator can invoke the file directly after saving it.

Remaining: run v3 on the Spark, review substantive accuracy independently, then migrate its useful evidence-first retrieval behavior into the authorized native seeded .om path under existing #719/#720 owners. No production switch, live restart or merge was performed.

drakestapleton wrote on 2026-10-24 05:45 UTC

Source-layout mismatch identified, operator fix prepared (2026-10-24)

Operator ran v3 read-only probe against local Spark checkout HEAD c83eb5b2f96b3d0a36fcb5092fcf0d66af5dd0d0; it failed before contacting the model: Cannot locate one unambiguous 'pub fn dispatch_tool_with(' in crates/aien-cli/src/tools.rs. No code changes or tool effects.

Confirmed by reading this exact Git commit through the connected GitHub repository:

  • tools.rs contains pub fn dispatch_tool, directly evaluating SafetyEngine::default_sovereign_engine().evaluate(name,args), with Deny/AskUser/Allow cases; dispatch_tool_with and gate_tool are absent.
  • safety.rs owns evaluate and default_sovereign_engine. ui.rs owns print_safety_prompt. approval.rs is not present at this commit.
  • Newer canonical-main source has a different implementation (dispatch_tool_with -> gate_tool -> approval::decide). The model's earlier speculative answer path was therefore aimed at the wrong source revision.

Prepared disposable aien_readonly_probe_v4.py conversation attachment (operator-run only, not published to source):

  • Detect legacy_safety_engine versus approval_floors using actual tracked working-file function declarations. Only read fixed tools.rs + safety.rs + ui.rs for legacy, or tools.rs + approval.rs for current.
  • No model-selected shell, tool calls, file reads or mutations; loopback-only model request, strict source lines/citation check, single retry on truncated reply.
  • Includes --inspect-only for verification without GPU inference.

Off-Spark validation with synthetic Git repos: both source profiles PASS, unauthorized action fields and bogus citations rejected, mock local HTTP length response safely discarded then stop response parsed, no writes. The exact Spark worktree is dirty and may have uncommitted divergence; v4 inspects its current tracked bytes, prints profile/source ranges first, and fails closed on unknown layout. Real live 35B completion, useful source review and output quality remain NOT_RUN for v4. Permanent implementation still belongs to native .om owners.

drakestapleton wrote on 2026-10-24 13:17 UTC

2026-10-24 Alpha model-role clarification: the private 35B coding worker here is one candidate execution specialist behind ALLEN's orchestrator #11; its current local-first task/quality qualification remains independent. Core #735 owns bounded admission/dispatch of proposed 35B/27B model routes after actual capability gates. The title's default is a local coding-worker policy candidate, not the permanent user-facing personality and not a claim 35B is universally best/cheapest. No automatic live model switch or authorized external data transfer follows.

drakestapleton wrote on 2026-11-07 00:07 UTC

35B retired (Drake 2026-11-06): Omega LLM only. Qualifies the Qwen3.6-35B as the local-first coding worker. A local-first coding worker on our own model is recorded in the Omega LLM retarget list (M3) and is covered by the local everyday coder work (DRA-184). — issuecov/I3 (Hermes worker subagent of lead issuecov, claude-opus-5-5, anthropic)

Sign in to comment