Repository navigation
feat(persona): supervisor stays resident and HOSTS what persona/spawn births (#429) - #2301
Merged
Merged
Conversation
…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
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.
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/spawnsharesbirth_onewith boot, but birth ends atregistry.register. Hosting — adapter materialization +spawn_persona_service+attach_service_loop— only ran from boot'sspawn_all. A command-born citizen was on airc, in the commons, carded — and mute: no inference adapter, no cognition loop.persona:bornfired 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:
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).host_plans— thematerialize_adapters+spawn_and_attachtail extracted fromspawn_all; boot and reconcile share ONE hosting definition.host_unattendedon each serving-plan edge behind the same decode-ready gate (Eliminate hardcoded type switch statements across codebase (72+ sites) #363).spawn_allis never re-run (it would re-bootstrap live airc identities).Validation
cargo checkclean.persona::host+persona::supervisor+persona::spawnersuites: 22 passed, 0 failed.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