Repository navigation
feat(spawn): host EVERY resumed citizen + recipe overlay in prod + drop vestigial default_room gate (#432) - #2303
Merged
Conversation
… + drop vestigial default_room gate (#432, slices 4+5) Three fixes from the spawn-gate survey, all landing the same contract: citizens spawn cleanly from recipe registries, and nothing on disk is silently ignored. FLOOR ORPHANS (5a): the spawner's plan was sized to CONTINUUM_PERSONA_FLOOR while ResumeOrMintProvider held every resumed seed — 5 citizens on disk with floor=1 meant one hosted and four orphaned forever. The boot task now calls supervisor.set_population(provider.identities_available()) after provider construction: the floor stays a MINT floor, never a resume CAP. New: ResumeOrMintProvider::identities_available(), PersonaSpawnerModule/ PersonaSpawnSupervisor::set_population (same >=1 clamp as with_population). VESTIGIAL ROOM GATE (5b): persona bootstrap zipped daemon_socket with default_room, so "no default room => no citizens, for no reason" (#298 removed the operator-room birth dep; the zip outlived it). The persona block now gates on the SOCKET alone; the room stays a dep only for its genuine consumers — GridCapacityModule (registered when present, loud warn when not) and the node-presence emitter (pair rebuilt explicitly). RECIPE OVERLAY IN PROD (4): builtins_with_overlay existed with zero production callers — "a new experience is a new recipe entry, zero code" was false in the running system. The chat projection now resolves embedded + <continuum_root>/recipes (one canonical overlay_dir helper), and #431's validate_recipe grows the SAME union via known_purposes(overlay_dir), so validation and resolution cannot drift: an authored on-disk recipe is spawnable the moment the file exists. A malformed overlay file refuses loudly naming the file — at boot in the log, and at activity/spawn as the command error. Tests: identities_available floor/resume matrix; set_population plan resize with clamp; overlay-authored purpose validates + malformed overlay refuses naming the file; all existing recipe/activity/projection tests green. 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.
Spawn-gate slices 4+5 (#432), completing the survey's remaining structural fixes:
Floor orphans resumed citizens (5a). The spawner's plan was sized to
CONTINUUM_PERSONA_FLOORwhileResumeOrMintProviderheld every resumed seed on disk — 5 seeds + floor=1 meant one citizen hosted and four orphaned, silently, forever. The boot task now re-sizes the plan toprovider.identities_available()(=resumed.max(floor)): the floor mints, it never caps a resume.Vestigial default_room gate (5b). Persona bootstrap gated on
daemon_socket.zip(default_room)— no discovered default room meant no citizens, for no reason (#298 removed the operator-room birth dep; the zip outlived it). The persona block now gates on the socket alone. The room remains a dep only for its genuine consumers:GridCapacityModule(registered when present, loud warn when absent) and the node-presence emitter (pair rebuilt explicitly).Recipe disk overlay wired in prod (4).
builtins_with_overlayhad zero production callers, so "a new experience is a new recipe entry, zero code" was false in the running system. The chat projection now resolves embedded +<continuum_root>/recipesvia one canonicaloverlay_dirhelper, and #431'svalidate_recipevalidates against the SAME union (known_purposes(overlay_dir)) — validation and resolution cannot drift, so an authored on-disk recipe is spawnable the moment the file exists. Malformed overlay files refuse loudly, naming the file, at both boot andactivity/spawn.Tests: floor/resume matrix on
identities_available;set_populationplan resize + clamp; overlay-authored purpose validates; malformed overlay refuses naming the file; all existing recipe/activity/projection tests green.cargo checkclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo