Goal
Public product presentation: Visitors speak with Allen (title case). AIEN is the platform; the specialist model identities belong in truthful diagnostics rather than the primary user-facing persona. Keep internal canonical identifiers and protocol names unchanged. Public context must remain isolated from the operator-trained private Allen; no claim that personal memory is exposed to visitors.
Replace Core #724's proposed per-guest API token distribution with a public, bounded, human-and-bot accessible chat API behind www.aienos.com. Requests ultimately target the qualified aien-serve-http Omega serving process on Spark (currently loopback 127.0.0.1:18091, qwen3.6-35b-a3b-fp8, hash 19173f9ec3b609fe79af644f84741d8808b92ea8eb3ecec4bc945af6f22b3aeb), not a new inference engine. Native 27B is separately gated by #710-#721 and does not become public by declaration.
Existing evidence and constraints
- Site:
aien-dev/aienos.comRust/Maud static Pages app, existingwwwnginx edge. Pages cannot proxy dynamic API itself. Website #60 owns UI. - Open Humanity #32 owns explicit consent, teaching submission/coordinator receipts, verified T and credit-source ledger.
oh-core::scoringcurrently supports signed positive-T entries for a toy model; it is not a production billing/metering implementation. - Core #724 and omega-bridge #2 own model qualification; #716/#721 own session scheduling and bounded work. No unauthorized live restart or exposing backend/admin/Cortex/Forge ports.
Gateway + spendable allowance
- Same-origin, HTTPS-only
/api/chat/v1(or versioned equivalent) on existingwwwedge forwarding to a separate isolated chat gateway; Spark binds only localhost or a strictly private channel. Expose only public chat routes, health/status and opt-in contribution routing. Block arbitrary upstream target, proxy bypass, internal tool endpoints, admin routes, raw model path injection, SSRF and CORS abuse. No forwarding credentials or cookies to model; no user control over system/developer prompt. Existingaien-serve-httpstays unchanged until reviewed integration is qualified. - Human and bot clients use the same JSON/SSE protocol. No API key, CAPTCHA, account or bot-blocking gate to read/use the public interface. Pseudonymous locally held Ed25519 public-key account may own durable allowance; authenticate allowance spends with proof of key possession (nonce/signature), not an unauthenticated mutable cookie. Anonymous/unfunded users may receive a small operator-set trial quota with explicit global cap or an explicit quota-exhausted response; disable trial without declaring a scientific T balance. Rate-limit across network+identity and bound admission before expensive parsing/tokenization; do not pretend IP is Sybil-resistant.
- Store separate scientific
verified_turing_gainand monetary-likeservice_credits(no real-currency/payment claim): signed accepted OH receipt under a compatible frozen profile + explicit conversion policy creates bounded credit; raw text, unverifiable estimates and repeated receipts mint no T or credit. Do not silently combine T under different profiles.service_creditsfund inference consumption; do not deduct actual Turing scientific gain. Use exact fixed-point accounting, event IDs, append-only journal, atomic reservation/refund/settlement, per-identity+global outstanding limits and crash-replay reconciliation. - Per-message deterministic upper reservation from allowed max input/output/context, measured model/hardware-cost policy plus bounded admission. On actual completion debit measured work (input+output tokens, bounded device time/queue resource where available, model-specific factor). On rejection/refusal before inference do not debit, on partial SSE cancel settle only documented completed resource and release unused reservation, on timeout give idempotent recovery; no negative spend. Display price policy and itemized receipt to user. Distinguish compute tokens from scientific Turings.
- Independently measure model's true concurrency and memory caps; enforce total active requests, queue/wait, request-body bytes, context, output tokens, SSE backpressure, per-key/addr/global spend, abusive recursive calls, burst+hourly/day caps and total service budget. Reject too-expensive requests before model allocation. Fair queue with active 35B eight slots. Fail safely under DDoS/flood and upstream down with 429/503, Retry-After, cancellation propagation.
- Retain private operator service and live sessions. Public 35B test uses isolated gateway/port with protected connection to 18091, no driver or model swap. 27B discoverable only after qualified service exists and is separately configured; no fake fallback to 35B. Separate user conversations, no shared cache/state/prompt leakage, no auto tools/agent actions, no unbounded history or indefinite content retention.
- Open Humanity consent routing uses #32's typed submission protocol with independent user approval. Chat messages are never automatically training data. No Open Humanity receiver/admin interface directly exposed through this gateway.
- Observability uses local aggregate metrics and receipt IDs, not raw prompts or training text in logs, and no remote analytics. Secrets live only in existing credential custody. Public publishing or DNS/nginx operator change requires explicit operator approval and an independently verified rollback procedure.
Proof / acceptance
- Simulated humans + bots, same API and ledger; forged ID/signature, replay, concurrent double spend, rapid key farming, guest reset, invalid/malformed/no OH receipt, negative T, duplicated signed receipt, wrong-profile T, spoofed service-cost fields.
- 100+ simultaneous clients with bounded GPU admission and constant upper memory; test cancellation midstream, reconnect/retry idempotency, disconnected users, backpressure, queue fairness, quota error before model work, out-of-credit branch, upstream 503 and recovery.
- Explicit 35B full inference SSE/JSON smoke and session isolation; latency/TTFT/per-request+aggregate throughput baseline; no claiming public access before live HTTPS external verification.
- Separate no-inference fixture proving
contribution acceptedversustraining appliedfrom OH are not conflated; absolute prohibition on consentless training. - Publish exact revision, credential/endpoint boundaries, fixed-point policy version, signed test receipts and independent review. Native 27B and OH real-trainer integration may remain explicitly NOT_RUN, not silently marked PASS.
Related: Core #724, website #60, OH #32, OH #26/#27, Omega native server #666. Work within established source/ownership; no competing engine, credential system or source of scientific Turing scores.