feat(lifepath): give runners a five-stage lifepath #283

targeting main from claude/lifepaths-real
Open opened by topos-backsword.test.pds.did.bot
targeting main from claude/lifepaths-real

What #

Runner creation is now a five-stage lifepath: birth, childhood, the teenage years, education, and up to three career terms.

  • Birth is a seeded weighted roll. Heir and celebrity's child are 1 in 1000; lab-raised is 1.9%.
  • Every later stage deals a hand of three options from the whole pool, eligible or not, so the cards you cannot take show the gate that blocks them: a criminal record, cash, literacy or a previous career.
  • From education on, Start running is always in the hand, so a life can stop whenever the player likes.
  • Every option has a name and description and adds tracked years to age. It can grant traits, money, kit and keycards, and some can deal scars through the shared scars engine. Each career term multiplies that career's odds.
  • Enough scars cross an ending and the life ends during generation, with the age, ending and scars on screen. The tree reports a LifepathDeath outcome, the seam for a later "died during creation" achievement.
  • The tree lives in version 5. Versions 1 to 4 still resolve their stored paths.
  • The screen shows the running grant, each dealt card's gate and the age so far.

The created runner now stores the lifepath seed and the scars the life dealt. CreateRunner carries the seed; the server replays the stages and refuses a life that ended, so the browser preview never decides. The planning deck and screen list the scars, and a scar drawn into the hand reaches the mission plan. Both new fields are additive with serde defaults, so old stored actions and runner records still read; no wire version changes. No lexicon changes.

The new traits move the pack snapshot, so the bless re-blesses the golden, the pinned encodings and the schema-4 store fixture's mission rows at ruleset 44. Mission outcomes do not change.

Walking a seeded life, rolling more, and comparing two runners

Checks #

  • scripts/ci.sh
  • scripts/wasm-test.sh
  • scripts/loop-smoke.sh
Commits 4

test(loop-smoke): walk the five-stage lifepath
feat(lifepath): store the life's scars on the created runner
fix(lifepath): label the microslice panel and add the walk-through shots
feat(lifepath): give runners a five-stage lifepath
Sign up or Sign in to add to the discussion.