Repository navigation
feat(spawn): resident roster becomes RECIPE DATA — kill the hardcoded plan_for_tier vec (#430) - #2305
Merged
Merged
Conversation
…oded plan_for_tier vec (#430) ExperienceRecipe gains `citizens` (a ROLE list — identity is minted/resumed at hosting time, the MODEL is the serving daemon's per-host decision, so a recipe stays portable across the grid). The embedded chat recipe — the DEFAULT experience fresh minds land in (#298) — declares the shipped floor: one Helper. RecipeExperienceSource::resident_roles reads it embedded+overlay with the registry's own later-wins-by-purpose law, so authoring a chat.json on disk changes the node's resident population with zero code. Boot injects the recipe roster via PersonaSpawnerModule::with_citizens; plan_for_tier's hardcoded role vec is gone — plan_for_roles maps DATA roles onto the serving scaffold (LCD fallback model until with_serving overrides, as before). plan_for_tier survives only as the documented data-absent floor for tests/fixtures. Slice-14 guard moves from a debug_assert to an enforced runtime rule on DATA: a recipe may author several citizens, but until role-in-seed.json lands (#133 slice 14) only the FIRST is hosted, with a loud error naming each deferred role — never a silent cap, never a debug-only tripwire an author could sail past in release. An EMPTY authored roster is legitimate (headless serving node) and plans nobody. Malformed overlay while reading the roster refuses loudly and hosts the embedded floor (#432's arm). ts-rs: CitizenRecipe.ts new + ExperienceRecipe.ts regenerated. Tests: embedded chat declares [helper]; authored overlay chat.json replaces the roster (zero code); with_citizens drives plan (empty -> nobody, coder -> coder, multi-role -> first only); existing tier-floor 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 slice 2 (#430): the node's resident roster is now authored recipe data, completing Joel's "healthy persona in rooms, spawned from recipe registries cleanly" gate.
ExperienceRecipe.citizens(new, ts-rs exported): a ROLE list. Identity stays with the identity provider, the model stays with the serving daemon — recipes remain grid-portable.chat.json(the default experience, Alpha gap analysis: prioritized feature backlog #298) declares the shipped floor: one Helper.resident_rolesreads embedded+overlay with the registry's later-wins-by-purpose law — author achat.jsonon disk and the resident population changes with zero code.with_citizens;plan_for_tier's hardcoded vec is dead. The slice-14 multi-role hazard is now enforced on DATA (first role hosted, rest deferred with a loud error naming them) instead of a debug-only assert.activity/spawn.Tests: embedded floor pinned, overlay replacement pinned, plan-from-citizens matrix (empty/single/multi), existing tier tests green.
cargo checkclean; ts-rs bindings committed.🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo