Skip to content

fix(persona): each persona gets a unique, stable, gender-matched voice — identity-seeded (genesis Gap #2) - #1863

Merged
joelteply merged 1 commit into
canaryfrom
fix/persona-voice-identity-seeded
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/persona-voice-identity-seeded

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

…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
joelteply merged commit 5080fd0 into canary Jul 6, 2026
@joelteply
joelteply deleted the fix/persona-voice-identity-seeded branch July 6, 2026 05:48
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant