Skip to content

feat(persona): supervisor stays resident and HOSTS what persona/spawn births (#429) - #2301

Merged
joelteply merged 1 commit into
canaryfrom
feat/429-persona-spawn-hosts-what-it-births
Aug 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/429-persona-spawn-hosts-what-it-births

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

What

SPAWN GATE slice 1 (task #429), toward Joel's persona-health gate: "healthy persona in rooms, spawned from recipe registries cleanly."

The bug (mute-citizen re-entry): persona/spawn shares birth_one with boot, but birth ends at registry.register. Hosting — adapter materialization + spawn_persona_service + attach_service_loop — only ran from boot's spawn_all. A command-born citizen was on airc, in the commons, carded — and mute: no inference adapter, no cognition loop. persona:born fired with zero subscribers tree-wide. This is the pre-slice-13 mute-citizens failure re-entered through the front door, and one of the three flail-source finds from the spawn survey.

The fix, event-driven on the signal the boot task already watches:

  1. PersonaSpawnSupervisor::host_unattended — scan the registry for citizens whose slot never had a service loop attached; derive the SAME single-slot plans boot uses (spawner roster row + ServingPlan + derive_spawn_plan; the config authority until 5090 tower: install Unsloth + verify MoE LoRA training works #430 makes the roster recipe data); run the shared hosting tail. Attached slots — running or finished — are skipped (respawn-on-death remains the slice-14 follow-on).
  2. host_plans — the materialize_adapters + spawn_and_attach tail extracted from spawn_all; boot and reconcile share ONE hosting definition.
  3. The ipc boot task no longer ends after boot composition — it stays resident as the hosting reconciler, calling host_unattended on each serving-plan edge behind the same decode-ready gate (Eliminate hardcoded type switch statements across codebase (72+ sites) #363). spawn_all is never re-run (it would re-bootstrap live airc identities).

Validation

  • cargo check clean.
  • persona::host + persona::supervisor + persona::spawner suites: 22 passed, 0 failed.
  • New regression test host_unattended_with_nothing_unattended_is_a_quiet_noop: pins the empty-scan contract — no synthesized failure rows (a spurious row would warn-log every ~5s forever) and the adapter factory is provably never consulted (panicking stub). Hosting a real newborn end-to-end needs a live airc daemon (the same limit the registry's own tests document); the live proof is owed on next deploy: persona/spawn → "hosting reconciler: 1 newborn citizen(s) hosted" within one serving edge, and the newborn SPEAKS.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…pawn births (#429)

The mute-citizen re-entry: persona/spawn shares birth_one with boot, but
birth ends at registry.register. Hosting (adapter materialization +
spawn_persona_service + attach_service_loop) ran only from boot's
spawn_all — so a command-born citizen was on airc, in the commons,
carded, and MUTE: no inference adapter, no cognition loop. persona:born
fired with zero subscribers.

Fix, event-driven on the signal the boot task already watches:

- PersonaSpawnSupervisor::host_unattended: scan the registry for
  citizens whose slot never had a service loop attached, derive the
  SAME single-slot plans boot uses (spawner roster row + ServingPlan +
  derive_spawn_plan — the config authority until #430 makes it recipe
  data), and run the shared hosting tail. Attached slots (running or
  finished) are skipped; respawn-on-death stays slice-14.

- host_plans: the materialize_adapters + spawn_and_attach tail
  extracted from spawn_all so boot and reconcile share ONE hosting
  definition (compression principle).

- ipc boot task: after boot composition succeeds it no longer ends —
  it becomes the standing hosting reconciler, calling host_unattended
  on each serving-plan edge behind the same decode-ready gate (#363).
  spawn_all is never re-run (it would re-bootstrap live airc
  identities).

Test: host_unattended_with_nothing_unattended_is_a_quiet_noop — pins
the empty-scan contract (no failure rows, factory never consulted; a
spurious row would warn-log every ~5s forever). Hosting a real newborn
needs a live airc daemon — same limit the registry's own tests document.

Validation: cargo check clean; persona::host + supervisor + spawner
suites 22 passed, 0 failed.

Co-Authored-By: Claude Fable 5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
@joelteply
joelteply merged commit 6d83b31 into canary Aug 14, 2026
5 checks passed
@joelteply
joelteply deleted the feat/429-persona-spawn-hosts-what-it-births branch August 14, 2026 22:30
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