Skip to content

Feature Max Height Core

Reese Hodge edited this page Nov 19, 2026 · 5 revisions

Feature: Max Height Core

Max Height is the core interactive TV experience: a visitor powers on a CRT-style set, receives a pre-generated in-character greeting, then interacts by text and, where available, voice. The source spec defines the MVP as text + voice + personality + 2D placeholder avatar; 3D avatar, full memory continuity, install/offline behavior, and some production deployment details remain V1 or unfinished work. See Source-Spec-001 for the distilled requirements and Source-Tasks-001 for task status.

What is built and verified in code

Area Verified state
TV shell packages/frontend/src/App.tsx renders CrtFrame, TvKnob, ChannelKnob, VolumeKnob, BackgroundCycler, AvatarFrameCycler, BroadcastText, TuningOverlay, and a text input bar.
Power-on flow Power-on moves through off → tuning → settling → on, starts static during tuning, preloads a greeting, then plays the greeting only after the TV reaches on.
Greeting pool packages/frontend/public/greetings/manifest.json contains 16 greetings, two per archetype, with id, archetype, text, audioPath, audioDurationMs, videoPath, weight, and tags. MP3 files exist under packages/frontend/public/greetings/audio/.
Channel knob App.tsx persists avatarThemeIndex, cycles retro → pop-art → cartoon → retro, stops the current greeting, and increments greetingNonce to replay a fresh greeting without rerunning the tuning sequence.
Text input path App.tsx sends user_message frames through useWebSocket unless the session has ended or been refused (SEND_BLOCKED_STATES; this row predates the SSE migration, see Component-Frontend-App).
WebSocket typing packages/frontend/src/types/messages.ts defines the contract-shaped client and server message unions used by the frontend.
Re-engagement assets packages/frontend/public/greetings/re-engagements/re-engagement-manifest.json contains 12 entries across the six re-engagement archetypes, and reEngagementSelector.ts enforces no-repeat-within-session plus archetype rotation.
Agent runtime skeleton packages/agent/src/index.ts exposes /ping and /invocations, constructs a Strands agent with Bedrock, and registers news, weather, and web-search tools. Readiness waits for a real Bedrock warm-up (#33); client disconnect cancels model/tool work (#43, PR #46). This is container code, not evidence of a deployed AgentCore Runtime.
Session caps packages/agent/src/handlers/sessionManager.ts checks 50 turns, 20,000 tokens, and 30 minutes before invoking the model. Because /invocations accepts an unauthenticated, client-supplied sessionId (or mints a fresh one if omitted), these limits only bind a cooperative client; #55 owns enforcement. See Concept-Budget-Ceiling.
Infra shell packages/infra/lib/agent-stack.ts provisions the WebSocket API, Lambda handler alias, SSM parameter imports, route wiring, throttling, and stack outputs.

What is specified but not fully implemented

Gap Evidence
AgentCore Memory resource tasks.md deviation C4 says T023 was marked complete while the AgentCore Memory construct was never written. agent-stack.ts constructs no AgentCore resource and outputs no memory ID. The alpha CDK package it was supposed to use has since been removed (2026-09-28) in favour of stable aws-cdk-lib/aws-bedrockagentcore, but the construct itself is still missing.
Production AgentCore Memory client packages/agent/src/memory/agentCoreMemoryClient.ts still throws AgentCore Memory client not configured; tests rely on mocks.
Contract-perfect WebSocket handler packages/infra/lib/handlers/websocket-handler.ts validates JSON and emits placeholder frames, but does not yet stream AgentCore tokens or match every payload in Contract-WebSocket-API.
WebSocket frontend reconnect resume useWebSocket.ts reconnects on normal close paths, but does not send session_resume during reconnect even though websocketManager.ts has a helper for the payload.
Greeting videos The manifest carries videoPath placeholders, but the MVP visual is avatar images; no packages/frontend/public/greetings/video/ files were verified.
V2 AgentCore runtime CDK-owned V2 is the accepted target (C7), but agent-stack.ts has no runtime construct, T152 remains open, and no V2 deployment was verified. The constitution still names CLI deployment; this requires an amendment decision, not a wiki exception.
Live turn streaming and personality cleanup /invocations buffers agent.invoke() and then writes a complete-text SSE frame, not incremental model tokens (#45). checkPersonality() and injectStutters() are not called there; #42 owns the design decision.
First-laugh gate T119 remains unchecked; the manual N=5 delight metric has not been documented as passed.

Current capability boundary

The current repo supports a local, mostly frontend-realized core experience with static greetings, avatar/theme presentation, audio-chain hooks, typed frontend messaging, and an agent HTTP skeleton. It should not be described as fully deployed, fully memory-enabled, streaming live turns, or contract-complete until C4/C5 and the WebSocket handler gaps are closed. Model alternatives such as Source-Amazon-Nova-Lite (#50) and voice alternatives such as Source-Nova-Sonic (#48) are research candidates, not parts of the built path.

Use Contract-Message-Protocol and Contract-WebSocket-API when implementing the transport and turn flow; use Contract-Greeting-Manifest and Contract-Re-Engagement-Manifest when changing static content pools.

Clone this wiki locally