Repository navigation
fix(persona): each persona gets a unique, stable, gender-matched voice — identity-seeded (genesis Gap #2) - #1863
Merged
Conversation
…e — identity-seeded (genesis Gap #2) Second slice of PROCEDURAL-PERSONA-GENESIS (#1861). The persona-speak path passed the literal `"default"` as the TTS voice for every persona with no explicit voice — and `resolve_voice_gendered` hashes that seed string, so `deterministic_hash("default")` collapsed EVERY same-gender persona onto ONE shared voice. Personas looked unique but all sounded identical. Fix (bridge_client.rs, the speak path that already derives gender from user_id): when a persona has no explicit voice, seed the voice pick from its IDENTITY (`user_id`) instead of `"default"`. The TTS resolver already treats an arbitrary string as a gender-filtered per-voice SEED, so the identity is exactly the right seed — a stable, UNIQUE voice per persona, coherent with the gender + avatar (all drawn from the same id). An explicit chosen voice is still honored. Verified: new `resolve_voice_is_identity_seeded_and_unique` test (Kokoro's static gendered voice list) — same identity → same voice (stable), 50 distinct identities → a spread of ≥2 female voices (unique), every pick stays female (gender-coherent). Axis-1 coherence: gender ↔ avatar (#1862) ↔ voice (this) now all agree and are unique per user. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
joelteply
added a commit
that referenced
this pull request
Jul 6, 2026
…ce made explicit (genesis convergence slice) (#1864) Third slice of PROCEDURAL-PERSONA-GENESIS (#1861), after the avatar (#1862) + voice (#1863) coherence fixes. Until now each facet re-derived gender independently at its consumption site — coherence held only because every call happened to use the same `"gender"` salt. This makes it EXPLICIT + converges it: - `persona/projection.rs`: `project_persona(persona_id) -> PersonaSpec` draws gender ONCE and threads it as the spine, emitting one coherent bundle `{persona_id, agent_name, gender, pronouns, avatar_id, voice_seed}`. Pure + deterministic — same id → identical spec forever (the Tamagotchi property: unique per user, stable per persona). The single seam the scattered `*_from_identity` calls can migrate onto. - `live/avatar/gender.rs`: `PronounSet` + `pronouns_for_gender` — the anticipated task #142 facet, derived FROM gender so pronouns always agree (she/her, he/him; they/them a universal alias). Binary today (the catalog is Male/Female); Neutral is a future slice needing neutral avatars/voices/names. Verified: `persona_spec_is_coherent_and_deterministic` — 500 personas, avatar gender == spec gender, pronouns match gender, voice seeded on identity, spec identical across repeated calls. Next slices: migrate consumers onto PersonaSpec, cache into a PersonaSeedFile::V2 (stability + human override), then the model-provisioning SSoT + gender-tagged avatar-download catalog. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 4.8 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second slice of PROCEDURAL-PERSONA-GENESIS (#1861). The persona-speak path passed the literal
"default"asthe TTS voice for every persona with no explicit voice — and
resolve_voice_genderedhashes that seed string,so
deterministic_hash("default")collapsed EVERY same-gender persona onto ONE shared voice. Personas lookedunique but all sounded identical.
Fix (bridge_client.rs, the speak path that already derives gender from user_id): when a persona has no
explicit voice, seed the voice pick from its IDENTITY (
user_id) instead of"default". The TTS resolveralready treats an arbitrary string as a gender-filtered per-voice SEED, so the identity is exactly the right
seed — a stable, UNIQUE voice per persona, coherent with the gender + avatar (all drawn from the same id). An
explicit chosen voice is still honored.
Verified: new
resolve_voice_is_identity_seeded_and_uniquetest (Kokoro's static gendered voice list) —same identity → same voice (stable), 50 distinct identities → a spread of ≥2 female voices (unique), every
pick stays female (gender-coherent). Axis-1 coherence: gender ↔ avatar (#1862) ↔ voice (this) now all agree
and are unique per user.
Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo