Skip to content

Source Spec 001

Reese Hodge edited this page Sep 26, 2026 · 1 revision

Source: Spec 001

specs/001-max-height-ai-character/spec.md defines the Max Height AI character experience: a CRT-framed, personality-first interactive TV host with voice and text interaction, graceful degradation, tool-grounded current data, and strict cost/privacy guardrails. This page is a distilled source summary; current implementation status lives on Feature-Max-Height-Core.

MVP boundary

MVP is text + voice + personality + 2D placeholder avatar. V1 adds 3D avatar/CRT fidelity, returning-visitor memory, install/offline support, and broader polish. The MVP ship gate is all MVP scenarios plus the first-laugh metric.

Core MVP user stories

Story Priority Summary
First visit P1 Visitor clicks the TV knob, hears an unprompted greeting within 2 seconds, then converses by speech or text.
Mobile visitor P2 iOS Safari/Android mobile audio works after the tap gesture; visual effects reduce on mobile; mic is press-and-hold.
Text-only visitor P2 If mic is blocked or unavailable, typed messages still work and the UI never nags for mic access.

V1 stories cover returning visitor memory and PWA/offline launch.

Key functional requirements

ID Substance
FR-001/002 CRT TV with a single TV-on knob; unprompted pre-generated greeting within 2 seconds.
FR-003 Exactly one post-greeting idle nudge after 4-10 seconds of silence.
FR-004/005 Reply starts within 1.5 seconds P95; voice audio starts within 2.5 seconds P95.
FR-006a MVP 2D avatar uses binary mouth open/closed synced to audio.
FR-007 Personality stays stuttering, editorial, evasive without tool data; factual with tool data but still in character.
FR-008/012 Mic is press-and-hold only; text input always available.
FR-009/010 Replies are bounded to 250 tokens; sessions cap at 50 turns, 20,000 tokens, or 30 minutes.
FR-013 Prompt injection is deflected in character without leaking system prompts.
FR-014/028 Backend failures retry once silently within 3 seconds, then show in-character signal-lost state.
FR-015/016 $8 soft-degrade disables Polly gracefully; $10 hard-stop shows in-character break state.
FR-017/018 Visitor can wipe and export stored data.
FR-020 Rate limits: 60 messages/hour and 500/day per visitor.
FR-029/030 MVP tools: news and weather, never fabricated.
FR-031 Web search deferred to V1.
FR-032 CHANNEL knob cycles avatar theme and replays greeting without rerunning tuning.

Entities

The data model defines Visitor, Session, Memory, RateLimitState, and Greeting. Important hard numbers: greeting history keeps 20 IDs; session state includes INITIALIZING, GREETING, ACTIVE, ENDED, BUDGET_CAPPED, RATE_LIMITED, SIGNAL_LOST, ERROR; memory retention is 30 rolling days under namespace /max-height/{actorId}/.

Success criteria

ID Gate
SC-001 Golden-set personality fidelity average at least 2.0 with zero auto-failure triggers.
SC-002 No unsupported straight factual answers; tool-backed current data must be reported accurately.
SC-003 First-laugh metric: at least 3 of 5 newcomers show delight within first 5 responses.
SC-004 Latency targets for reply, voice, and greeting.
SC-005 Conversation endurance through 50 turns or 20,000 tokens.
SC-006 Monthly spend stays at or below $10 with $8/$10 controls.
SC-007 V1 memory recall succeeds at least 70% on 20 scenarios.
SC-008 MVP scenarios pass on iOS Safari and Android Chrome.
SC-009 Backend unavailable state appears within 3 seconds without raw errors.

Contract pointers

Transport and turn flow are split between Contract-WebSocket-API and Contract-Message-Protocol. Static startup content is Contract-Greeting-Manifest, mid-session idle content is Contract-Re-Engagement-Manifest, and voice synthesis is Contract-Polly-TTS.

Clone this wiki locally