Skip to content

docs(persona): PROCEDURAL-PERSONA-GENESIS — coherent-random unique personas across the misfit grid - #1861

Merged
joelteply merged 1 commit into
canaryfrom
docs/procedural-persona-genesis
Jul 6, 2026
Merged

joelteply merged 1 commit into
canaryfrom
docs/procedural-persona-genesis

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

The design for Joel's Tamagotchi vision: every user meets a persona no one else has, but COHERENT (gender ↔
avatar ↔ voice ↔ name ↔ pronouns all agree — "elegance is in the constraints, not the entropy"). Two
orthogonal axes that must never entangle:

  • Axis 1 (Identity): a deterministic per-user seed → a gender-FIRST constrained draw where each facet is
    filtered by the gender pick, so a feminine-avatar/masculine-voice mismatch is unrepresentable BY
    CONSTRUCTION. Portable, hardware-independent.
  • Axis 2 (Capability): tier-resolved model (largest that FITS the misfit host — M5 great, Mac Intel worse)
    with senses PRESERVED via STT/TTS/vision bridges. Same being, different horsepower.

Grounded by code recon: the generator already exists SCATTERED (deterministic_pick(id, catalog, salt) FNV-1a
drives gender/name/avatar/scene/animator lazily from persona_id). The seam is a persona/projection.rs
aggregator that draws gender ONCE + threads it as a constraint, emitting a coherent PersonaSpec, cached in a
PersonaSeedFile::V2. Names the two REAL coherence bugs the first slices fix: (1) the profile/video avatar
(select_avatar_by_identity) has NO gender filter → a female persona can get a male avatar (Joel's exact
concern, live in the code); (2) voice hashes a param string not identity → same-gender personas collapse to
one voice. Full slice plan + invariants (coherence-by-construction, deterministic, no-fallbacks, two-axes-
never-entangle, senses-preserved). Companion to DYNAMIC-PERSONA-AND-MODEL.md.

Co-Authored-By: Claude Opus 4.8 [email protected]
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…rsonas across the misfit grid

The design for Joel's Tamagotchi vision: every user meets a persona no one else has, but COHERENT (gender ↔
avatar ↔ voice ↔ name ↔ pronouns all agree — "elegance is in the constraints, not the entropy"). Two
orthogonal axes that must never entangle:
- Axis 1 (Identity): a deterministic per-user seed → a gender-FIRST constrained draw where each facet is
  filtered by the gender pick, so a feminine-avatar/masculine-voice mismatch is unrepresentable BY
  CONSTRUCTION. Portable, hardware-independent.
- Axis 2 (Capability): tier-resolved model (largest that FITS the misfit host — M5 great, Mac Intel worse)
  with senses PRESERVED via STT/TTS/vision bridges. Same being, different horsepower.

Grounded by code recon: the generator already exists SCATTERED (`deterministic_pick(id, catalog, salt)` FNV-1a
drives gender/name/avatar/scene/animator lazily from persona_id). The seam is a `persona/projection.rs`
aggregator that draws gender ONCE + threads it as a constraint, emitting a coherent `PersonaSpec`, cached in a
`PersonaSeedFile::V2`. Names the two REAL coherence bugs the first slices fix: (1) the profile/video avatar
(`select_avatar_by_identity`) has NO gender filter → a female persona can get a male avatar (Joel's exact
concern, live in the code); (2) voice hashes a param string not identity → same-gender personas collapse to
one voice. Full slice plan + invariants (coherence-by-construction, deterministic, no-fallbacks, two-axes-
never-entangle, senses-preserved). Companion to DYNAMIC-PERSONA-AND-MODEL.md.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit ca98b47 into canary Jul 6, 2026
@joelteply
joelteply deleted the docs/procedural-persona-genesis branch July 6, 2026 05:34
joelteply added a commit that referenced this pull request Jul 6, 2026
…e-persona-with-male-face (genesis Gap #1) (#1862)

First concrete slice of PROCEDURAL-PERSONA-GENESIS (#1861). `select_avatar_by_identity` — the single-persona
projection behind the /avatars/{id}.png snapshot (modules/avatar.rs) AND the live video pump
(live/avatar/video_pump.rs) — hashed the FULL 8-VRM catalog with NO gender filter. So a persona whose gender
salt says Female (→ female name, female voice) could land on `vroid-male-base`: the exact "gender must match
avatar appearance" incoherence Joel named, live in the code.

Fix: filter the catalog to the persona's `gender_from_identity` FIRST, then deterministically pick within the
gender-matching subset (same persona → same avatar, stable). A mismatch is now unrepresentable by
construction — coherence, not a post-hoc check. Empty gender pool (a catalog gap, e.g. no VRM of that gender)
fails LOUD naming it but still returns a face — a profile picture must never crash the core. Mirrors the
gender filter the batch allocator (select_avatar_for_agent) already used.

Verified: new `profile_avatar_is_gender_coherent` test — 500 identities, avatar gender ALWAYS == persona
gender (0 mismatches); 15 selection tests green. Axis-1 coherence-by-construction, live-proven.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 4.8 <[email protected]>
joelteply added a commit that referenced this pull request Jul 6, 2026
…e — identity-seeded (genesis Gap #2) (#1863)

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.


Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

Co-authored-by: Claude Opus 4.8 <[email protected]>
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