Skip to content

feat(spawn): resident roster becomes RECIPE DATA — kill the hardcoded plan_for_tier vec (#430) - #2305

Merged
joelteply merged 1 commit into
canaryfrom
feat/430-roster-as-recipe-data
Aug 14, 2026
Merged

joelteply merged 1 commit into
canaryfrom
feat/430-roster-as-recipe-data

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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.
  • The embedded chat.json (the default experience, Alpha gap analysis: prioritized feature backlog #298) declares the shipped floor: one Helper. resident_roles reads embedded+overlay with the registry's later-wins-by-purpose law — author a chat.json on disk and the resident population changes with zero code.
  • Boot injects the recipe roster via 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.
  • Malformed overlay while reading the roster: loud refusal + embedded floor, the same Dispatch: feature/bug/review overrides simple command gate #432 arm as the projection and activity/spawn.

Tests: embedded floor pinned, overlay replacement pinned, plan-from-citizens matrix (empty/single/multi), existing tier tests green. cargo check clean; ts-rs bindings committed.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo

…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
@joelteply
joelteply merged commit be4a2dc into canary Aug 14, 2026
5 checks passed
@joelteply
joelteply deleted the feat/430-roster-as-recipe-data branch August 14, 2026 23:20
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