Repository navigation
Contract Greeting Manifest
This page mirrors specs/001-max-height-ai-character/contracts/greeting-manifest.md. Greetings are static startup assets used by Feature-Max-Height-Core before the agent has to generate a turn.
public/
greetings/
manifest.json
audio/
greeting-001.mp3
...
video/ # optional/deferred; not required for MVP
greeting-001.mp4
...
The current MVP visual is avatar images. videoPath is a forward-looking optional/deferred field in the source contract, but the current frontend Greeting type and manifest entries include the field as a placeholder.
interface GreetingManifest {
version: string; // semver, e.g. 1.0.0
generatedAt?: string; // ISO date-time
voiceConfig: {
voiceId: 'Matthew';
engine: 'neural';
ssmlPitch?: string; // historical manifest metadata
ssmlRate?: string; // e.g. 105%
};
greetings: Greeting[]; // min 16
}
type GreetingArchetype =
| 'TV_PRESENTER_INTRO'
| 'MID_MONOLOGUE'
| 'MOCK_ANNOYANCE'
| 'SPONSOR_BREAK'
| 'TIME_OF_DAY_RIFF'
| 'SELF_CONGRATULATION'
| 'FAKE_NEWS_FLASH'
| 'GLITCH_COLD_OPEN';
interface Greeting {
id: string; // /^greeting-\d{3}$/
archetype: GreetingArchetype;
text: string; // 40-100 words by data model
audioPath: string; // /^audio\/greeting-\d{3}\.mp3$/
audioDurationMs: number; // 1000-15000
videoPath?: string; // optional/deferred by contract
weight?: number; // 0.0-1.0, default 1.0
tags?: string[]; // e.g. any, morning, evening
}- Load
manifest.json. - Read
greetingHistoryfrom visitor state/localStorage. - Exclude greetings used in the last 3 sessions.
- Prefer time-of-day matching tags when present.
- Weighted-random select from remaining entries.
- Append selected ID to history and trim history to 20 entries.
- If the pool is exhausted, reduce no-repeat window to 1 session; if still exhausted, allow any greeting.
| Rule | Constraint |
|---|---|
| Minimum pool | at least 16 greetings |
| Archetype coverage | at least 2 per archetype |
| No-repeat | do not repeat within last 3 sessions when possible |
| Audio path | every audioPath resolves to MP3 |
| Duration |
audioDurationMs should be within 500 ms of actual MP3 |
| Video path | if present, may point to deferred/nonexistent MP4 without failing MVP build |
packages/frontend/public/greetings/manifest.json has 16 entries covering all 8 archetypes. packages/frontend/public/greetings/audio/ contains greeting-001.mp3 through greeting-016.mp3. packages/frontend/src/services/greetingSelector.ts implements no-repeat-within-3, pool-exhaustion fallback to one session, time-of-day preference, and weighted random selection.
The current packages/frontend/src/types/domain.ts marks videoPath, weight, and tags as required, which is stricter than the source contract for videoPath. Do not add a build requirement for greeting MP4 files unless the deferred video feature is explicitly reactivated. See Contract-Polly-TTS and Contract-Re-Engagement-Manifest.
T158's audition chose IPA schwa onsets with rapid pacing, and the builder
regenerated all 16 production MP3s on 003-architecture-review. The manifest's
audioDurationMs values now span 8424–14736 ms, inside the 1000–15000 ms
bounds with no clamping (checked from manifest.json on 2026-11-07).
Experiment clips stay isolated outside public and never recalibrate this
manifest; the generator validates all measured durations before overwriting
audio. In-app listening and the greeting-005 and non-b checks remain open.
See Decision-Polly-Voice and Source-Audio-Plan.
- Concept-Cloud-Only-Inference
- Concept-Budget-Ceiling
- Concept-Personality-Gate
- Concept-IP-And-Legal-Posture
- Concept-Supply-Chain-Discipline
- Concept-Graceful-Degradation
- Concept-Observability
- Concept-Testing-And-TDD
- Concept-Credential-Hygiene
Editing in the browser? Wiki edits are live and bypass wiki:lint. Read
Guide-Wiki-Contributing first.