Skip to content

Concept Cloud Only Inference

Reese Hodge edited this page Oct 9, 2026 · 3 revisions

Cloud-Only Inference

Cloud-only inference is constitution principle P1. It means the browser is a presentation and input surface, not an AI runtime.

The constitution's hard rule is direct: all LLM inference and TTS MUST run server-side on AWS. The project permits no on-device model weights, no WebGPU inference, and no browser-side LLMs.

In practice, code written for Max Height must preserve a single server-side AI path:

  • The frontend can capture input, manage UI state, render the avatar, and play audio.
  • The frontend must not load, cache, ship, or execute model weights.
  • The frontend must not add browser-side LLM packages, local model runtimes, or WebGPU inference fallbacks.
  • The constitution requires all TTS to run server-side on AWS. A spec or wiki decision alone cannot authorize browser TTS; changing that rule requires a constitution amendment.
  • Any new AI behavior must be observable and budgeted in the cloud path before it ships.

The reason is operational control. A single inference path gives the project one place to monitor, one place to cap cost, and one place to debug behavior. It also keeps the experience consistent across machines instead of depending on client GPU support.

This principle is tightly coupled to Concept-Budget-Ceiling because every AI call must be counted against the $10/month hard cap. It also depends on Concept-Graceful-Degradation: when the cloud path is unavailable, the app should show an in-character error state rather than silently trying an unapproved local model.

For implementation work, treat "can we just run this in the browser?" as a constitution question, not an engineering shortcut. The answer is no unless the constitution is amended.

Open question: developer tooling. P1 says "all LLM inference" and does not distinguish between the product and the tools around it. Running a small local model to pre-screen offline evaluation runs is one example, as with Source-Strands-Decider. Offline evaluation is the use P5 permits, but it is still inference outside AWS, so ask before assuming it is allowed. A model hosted server-side on AWS satisfies P1, but it is new compute. That makes it a cost-model change and a Spec Kit trigger.

Code review checklist

Before approving a change that touches AI behavior, check:

  • No browser dependency downloads or executes model weights.
  • No WebGPU path is introduced as an inference optimization.
  • No local LLM fallback is hidden behind capability detection.
  • TTS requests still flow through the server-side AWS path; a proposed browser fallback in Decision-Browser-TTS-Fallback conflicts with P1 pending a constitution amendment.
  • Usage can be associated with cloud-side traces and cost controls.

Allowed browser-side work includes rendering, audio playback, microphone capture, speech-recognition integration, connection state, and fallback UI. Those are client capabilities, not inference.

If a proposed package blurs that line, evaluate it under Concept-Supply-Chain-Discipline and the constitution before adding it.

See also: Source-Constitution, Concept-Observability.

Clone this wiki locally