Owned integration of Allen's Alpha routing decision into the already-existing model runtime
UI naming contract: The person-facing orchestrator is Allen (title case); chat replies, route descriptions, error text, status displays and visitor interfaces must not show the all-caps styling. Preserve existing canonical technical IDs and schema keys where changing spelling would be breaking. Use AIEN for the platform name, Allen for the assistant, and 35B/27B for worker identities only in diagnostic details.
Product owner: Allen #11 (trace-trained orchestrator). Compatibility/release: architecture #305, #190. This issue implements ONLY the bounded execution/admission seam between one persistent Allen and the already-existing two Spark candidate worker models. No second compiler, AI agent, model server, trainer, HTTP gateway, public quota ledger or identity.
Grounded state
crates/aien-cli/src/client.rshas a singleAIEN_MODEL_ENDPOINT/name compatibility adapter and a native runtime path, not independently verified per-task selection.crates/aien-switchboard/src/router.rsroutes operator accounts by fixed rules; it does not choose native GPU checkpoints. Audit for reusable pure-policy primitives but do not conflate it with model routing.crates/aien-runtime/src/persona.rs,crates/aien-allen*own engaged identity/profile/memory; no newly minted identity from worker results.- Core #724 reports a private Qwen3.6-35B-A3B-FP8 loopback smoke on
127.0.0.1:18091; actual executable and source/locks must be inspected at run time. No sustained 35B PASS. Native Qwen3.8-27B has separate #679/#710-#721 qualification gates and is not public. Existing deployed service must not be restarted or reconfigured without operator permission. - #730 owns 35B local coding-worker quality and controlled escalation; #715/#716/#719/#720/#721 own native serving, session, tokenizer/tool boundaries and resource caps; Omega #666 and omega-bridge #2 own model execution convergence.
- The public chat site #60 and public gateway #734 must consume the SAME qualified Allen front-door contract, not build their own routing inference service. Public chat and internal operator use are distinct authorization and memory scopes.
Deliverables
- Versioned model-seat registry, sourced from qualification manifest (model exact ID/version/weight+tokenizer hashes, execution implementation/backend, context, numerical mode, capability/tool support, supported interface, local/public availability, health, observed concurrency/memory/queue, failure/refusal). No bare model aliases or manual guest model selection that bypasses policy.
- Typed route-admission ABI, consuming Allen's proposal and current pinned registry state. Deterministic fail-closed checks for model unqualified/stale, private-vs-public, capability gap, budget, max-context, model unavailable, current Spark admission pressure and disallowed tool/effect. Proposal cannot mint authority. Implement first-party decision/behavior in seeded handwritten
.omunder existing compiler/runtime owners and ABI; document existing scaffolding honestly. - Route to the existing native Omega worker execution path; correctly bind conversation/turn ID, objective, model, KV/session ownership, response stream, output digest, cancellation, timeout and settled costs to a single request. No cross-tenant KV/prefix/memory leakage, recursive unlimited fallback, mixed checkpoints or inference on a stale slot.
- Return typed result+receipt to Allen including actual worker and source/backend identity, refusal/uncertain statuses and metrics. Worker's output is untrusted task output, never implicit approval to write/merge/deploy. The same identity and memory owner persists across worker choice, loss, upgrade and service restart.
- Measured route admission: initial pure rule baseline plus a shadow trace-trained Allen score. Compare frozen cases and true verified task outcomes on both individually qualified workers. Promote trained policy only after independent outcome, latency, budget and false-route gates; allow a human override of worker selection within authorized/qualified capability.
- Hardware resource plan for one or two models on a 128GB unified-memory Spark including static weights, KV pool, scratch, OS/driver reserve and concurrent requests. No unplanned duplicate model loads, GPU reallocations, driver swaps or interruption of the protected 35B process. Explicit
BLOCKED_CAPACITYwhen model cannot be admitted. - Public-safe mode uses policy derived from admissible training signals, not private operator trace/memory retrieval. Allen's private training corpus stays local/access controlled; no automatic training on public visitor chats; Open Humanity path remains explicit opt-in.
Acceptance / negative controls
- Fake-worker deterministic fixtures for both models, worker-down, stale checkpoint, route misclassification, malicious/untrusted worker outputs, replay/cancel, cross-user session isolation, memory exhaustion, quota denial before inference, wrong-model forced route and driver/health mismatch.
- Real pinned 35B and 27B Spark runs independently accepted under Core #724/#679/#710-#721, with stdout/raw receipts, actual source+model+tool hashes, and no simulated or adapter-only PASS masquerading as native.
- One frozen held-out routing suite: task -> Allen proposal -> validator -> correct authorized one-worker completion -> independent verification -> Allen response. Measure classification regret, verified success, decision+queue latency, TTFT, completed task/s, memory and full request cost against deterministic route baseline.
- End-to-end recovery and model upgrade retains Allen identity, model/session attribution and no duplicate committed external effects.
- No public enablement until separate site #60, gateway #734, Turing allowance/OH consent and independent external HTTPS acceptance.
- Tests, .om source/provenance, signed hardware receipts and independent final-source review. Unqualified = NOT_RUN/BLOCKED, never implied qualified.
Not in this issue: changing Allen's training dataset/weights (Allen #3-#6), writing frontend, implementing new native kernels, and auto-deploying a new public service.
State: PROPOSED / NOT_RUN.