diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index dccb96a..9954d9c 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -117,7 +117,12 @@ and survivor passages. A conflicting first claim is an ordinary lost race. Only committed awards appear in the character view or affect combat/movement. The immutable account ledger preserves title ownership after death and across worlds; death records retain their titles and new lives inherit account awards. -This account inheritance is the initial interpretation of player-bound titles. +This is current implementation behavior, superseded by the confirmed design: +only cosmetic access carries to replacement characters. Titles and all character +progression will be character-owned; revival/travel preserve them and replacement +resets them. The title ledger requires a migration that preserves historical first +claims and explicitly handles awards already inherited. No migration is applied +by this documentation update; see the lifecycle contract. Awarded names, descriptions, effects, and provenance are copied at grant time; later content changes do not remove or alter an earned title. diff --git a/docs/LIFECYCLE-OWNERSHIP.md b/docs/LIFECYCLE-OWNERSHIP.md index 46d084c..c87cacd 100644 --- a/docs/LIFECYCLE-OWNERSHIP.md +++ b/docs/LIFECYCLE-OWNERSHIP.md @@ -29,7 +29,7 @@ XP across every new profession, or reinterpret account titles as cosmetics. | Identity | Owns or references | Lifetime | | --- | --- | --- | | Account ID | Cosmetic entitlements; one current life/reservation; replacement generation | Across characters/worlds | -| Character ID | Stats, inventory, daily usage, current location; progression policy below | Preserved by revival and travel | +| Character ID | Levels/stats, professions, weapon proficiency, spells/XP, abilities, discoveries, titles, inventory, daily usage, location | Preserved by revival/travel; progression not inherited by replacement | | Instance ID | One survival world, hub instance, house instance, or dungeon instance | Independent from the process hosting it | | Death ID | Character, account generation, corpse instance/position, remaining items, eligibility | Unique per death, including repeated deaths of one character | | Transfer ID | One journey, reason, payload, source/destination, result | Permanent idempotency/history reference | @@ -202,11 +202,26 @@ failure/refund and quality rolls, output creation, and recipe discovery recordin Only XP is suppressed. Discovery and XP are separate mutations in the same craft result. Retry returns the same result, not a fresh stat/failure roll. -Character level/stats and daily usage already belong to the character. Cosmetics -are explicitly account-bound. Profession/weapon/spell/discovery ownership across -replacement lives awaits the milestone review; model their owner explicitly rather -than accidentally inheriting them through a copied character snapshot. Existing -account-title behavior remains unchanged pending its separate design confirmation. +Confirmed owner is `character_id` for character levels/XP, stats/allocations, +profession levels/XP, weapon proficiency, learned spells/spell XP, abilities, and +discovered recipes. Resurrection and every world/instance transfer preserve them. +A replacement receives fresh initial character defaults, not a copied progression +snapshot; only access to account cosmetics is inherited. Returning with a resurrected +character is different from creating a replacement. Cosmetic appearance selections +on the old character need not be copied merely because unlock access persists. + +This also supersedes account title inheritance: permanent titles belong to the +character, survive resurrection/travel, and remain in that character's death history. +Separate future `(character_id, title_id)` active awards from immutable first-world/ +first-ever claim reservations. New lives do not inherit title effects or release +historical first claims. A new character may earn an ordinary personal title under +its own requirements; it cannot claim a previously won first-ever title by replacing +its owner. The existing account ledger is unchanged until explicitly migrated. + +House access still comes from possessing keys or invitations, not copying a dead +character's unlocks. The separately confirmed original-creator key recovery right +remains in scope; its actor/identity rules must be specified independently rather +than implemented as inheritance of progression, inventory, or keys. ## Storage and execution contract @@ -249,6 +264,10 @@ item roll, passage entitlement, or XP eligibility flag. retains its existing unclaimed/claimed passage meaning until explicitly migrated. 4. Create entitlement/house registries empty where no source exists. Never infer cosmetic ownership from visible meshes. Do not invent creator/death provenance. + For character-owned titles, retain immutable first-claim history and original + grant provenance. Specify treatment of awards already copied to replacement lives + by the old account ledger before migration; do not silently strip or duplicate + existing awards. New progression/discovery records must key on character identity. 5. Drain incompatible owners before enabling new writers; fence minimum supported schema/owner version. Preserve original backup and compare authoritative counts, IDs, balances, death states, daily usage, and passage claims before/after migration. @@ -263,7 +282,8 @@ PostgreSQL/OIDC; development remains loopback-only. No capacity claim changes. | Decision | Needed before | Current boundary | | --- | --- | --- | -| Profession/weapon/spell/discovery ownership on replacement | Progression schema activation (3/6/7) | Awaiting user selection; no implicit backfill | +| Progression/discovery ownership | Confirmed | Character-owned; revival/travel preserve, replacement resets; only cosmetic access inherited | +| Existing inherited title migration | Character title schema activation | Character ownership confirmed; legacy copied-award treatment still needs a policy | | Creator recovery identity and death-world edge cases | Housing (8) | Store account + creator + death references; no guessed purge deadline | | Hub daily-time accounting | Hub travel (5) | Preserve usage; zero XP does not mean unlimited daily play | | Escape cost/activation, housing eligibility after escape, late admission | Hub travel (5) | Item-gated escape; no implicit victory reward | @@ -280,6 +300,9 @@ Manual design checklist: - Review one death -> partial loot -> revival -> second death: unique corpses, remaining items only, unchanged progression/daily usage. +- Review replacement: fresh profession/weapon/spell/stat/ability/recipe progression, + no inherited titles or items, continued account cosmetic access. Historical title + first claims remain reserved; creator house recovery is a separate explicit action. - Review replacement and revival arriving together: one life wins permanently. - Review escape -> source destruction -> destination restart: one reserved character, one item cost, no source-world revival or duplicate import. diff --git a/docs/PROGRESSION.md b/docs/PROGRESSION.md index 852493d..a66965b 100644 --- a/docs/PROGRESSION.md +++ b/docs/PROGRESSION.md @@ -1,5 +1,13 @@ # Levels, stats, titles, and equipment +Design update: the paragraphs below describe the current implementation. The +confirmed replacement-life rule is now character-owned progression, including +professions, weapon proficiency, spells/spell XP, stats, abilities, recipes, and +titles. Resurrection/world travel preserve these; replacement resets them. Only +cosmetic access is inherited. Account title inheritance below is legacy behavior +pending an explicit migration that preserves historical first claims. See +[lifecycle and ownership](LIFECYCLE-OWNERSHIP.md). + Levels belong to a character. Titles retain the existing account-bound interpretation of player ownership: replacement lives inherit titles, while starting at level 1. Dead characters retain historical stats and stay permanently dead. Survivor passage diff --git a/planning/SYSTEMS-ROADMAP.md b/planning/SYSTEMS-ROADMAP.md index 752c18d..3dc9b51 100644 --- a/planning/SYSTEMS-ROADMAP.md +++ b/planning/SYSTEMS-ROADMAP.md @@ -19,6 +19,13 @@ Control already supports item/title authoring, player item/title adjustments, healing, and some world operations. These are foundations, not the full systems described here. Existing gathering/crafting/combat XP uses broad categories. +Confirmed progression ownership: profession levels, weapon proficiency, learned +spells and their XP, character levels/stats, abilities, and discovered recipes are +character-owned. Resurrection and world travel preserve them; a replacement starts +fresh. Cosmetics are the only inherited account unlock. Titles therefore also stay +with their character, superseding the current account-title implementation assumption. +Keep historical title claims reserved; plan the title migration explicitly. + Keep these boundaries throughout implementation: - Go decides gameplay results; browser/controller inputs express intent. @@ -184,8 +191,8 @@ returned. Invalid packets or stale inventories should not count as experiments. Keep undiscovered recipe ingredients/results out of public APIs and client bundles; the browser sends offered ingredients rather than the ID of a secret recipe. Discovery can prevent direct data extraction but cannot prevent players sharing -recipes externally. Decide whether knowledge belongs to a character or account, -whether known recipes become repeatable shortcuts, and whether failed attempts +recipes externally. Discovered recipes belong to the character and reset on +replacement. Decide whether known recipes become repeatable shortcuts and failed attempts give bounded XP. Repeated impossible attempts must not become free XP generation. Crafting is permitted in the hub: resources are still consumed under the normal success/failure rules and found recipes are recorded, but no experience is awarded. @@ -572,9 +579,10 @@ First discussion, because these affect the architecture: 2. Resurrection: item activation, consent, costs/pools, any extra limits, and corpse handling during dungeon closure/reset? Corpse/world conditions are settled. 3. Combat: action aiming model, controller targeting, friendly fire, ranged projectiles? -4. Progression ownership: professions, discoveries, spells, and weapon XP belong to - the character or account? Recommendation: character progression survives passage - but resets on replacement; account-level recipe knowledge remains a separate choice. +4. Title migration: active awards become character-owned while historical first + claims remain reserved. Decide treatment of titles already inherited under the + old account ledger. Progression/discovery reset on replacement is now confirmed; + only cosmetic access carries forward. 5. Crafting: exact matching, stations, discovery-recording trigger, probability/refund tuning, stat pool/quality rules, and provenance-aware stacking? Hub crafting uses resources and records discoveries without XP; random failure is settled. @@ -609,6 +617,9 @@ playtest checklists; browser automation versions are deferred to the TODO list: - A looted corpse revives with only its remaining items; an empty corpse revives with none. A destroyed world or replacement character makes revival ineligible. +- Resurrection/travel preserves character progression, stats, abilities, recipes, + and titles. Replacement resets them and retains only account cosmetic access; + historical first-title claim reservations cannot be reassigned by replacement. - Looting a house key grants ownership; reviving its previous holder does not take the key back. Additional owners cannot revoke each other's valid keys. - Destroying one of multiple keys leaves the house active and other keys valid; diff --git a/planning/VISION.md b/planning/VISION.md index e537013..470914b 100644 --- a/planning/VISION.md +++ b/planning/VISION.md @@ -83,10 +83,14 @@ Tracked across: - Administrators may grant or revoke titles as an audited exception. Revocation suppresses active effects and automatic re-awarding until an admin restores the original title; first-claim history remains reserved. -- Initial implementation interprets player-bound titles as account-bound: they - carry to a replacement character after permanent death. Levels, XP, and banked - stat points belong to the individual character and survive survivor passage. - Account inheritance is an implementation assumption awaiting player-design confirmation. +- Confirmed ownership: levels/XP, profession levels, weapon proficiency, learned + spells/spell XP, stats/allocations, abilities, and discovered recipes belong to + the character. Resurrection and world travel preserve them; replacement resets them. +- Only access to account cosmetics carries to a replacement character. This also + supersedes the earlier account-bound title assumption: titles stay with their + character and are not inherited. Historical first claims remain reserved. +- Current code still uses an account title ledger. Moving active title ownership + to characters requires an explicit migration; this design update changes no saves. - XP rewards, level curve, points per level, starter titles, and effect numbers are provisional tuning in `server/content/balance.yaml`. - Control can publish title requirements and signed flat/percentage effects,