mirror of
https://github.com/Corfirean/coa-server-manager.git
synced 2026-11-18 19:25:56 +00:00
3.2 KiB
3.2 KiB
Warcraft Reborn Portable Characters Audit
1. Overview & Baseline vs Current Implementation
1.1 Baseline Discovered Before Implementation
The released v0.7.0 master branch codebase contained foundational support for local realm execution (Mode::Reborn, realm ID 3, characters DB acore_characters_reborn, world DB acore_world_reborn, shared auth DB acore_auth).
Portable character transfers into Warcraft Reborn were temporarily guarded by:
// crates/coa-core/src/portable/realm/mod.rs
Mode::Reborn => Err(PortableError::Invalid("Portable characters are not supported on Warcraft Reborn realms yet.".into())),
1.2 Implemented in 58a99f0+ and MR1.1
- RulesetId / Ruleset:
Ruleset::Rebornis established acrosscoa-core,coa-registry-proto,coa-control-proto, and TypeScript models ("reborn"wire value, display name"Warcraft Reborn"). - SQLite Portable Storage: Migration
009_multiruleset.sqlupgrades released databases to permitreborncharacters in thecharactertable CHECK constraint without dropping child records. - Collections:
reborn:appearanceandreborn:vanitydefined and carried under exact allowlist incarried_kind_for. Partitioned under(profile_id, 'reborn', kind). - Wire Protocols: Control protocol v2, Session protocol v3, and Collection protocol v2 bind
ruleset: Rulesetexplicitly in all messages.
1.3 Still Planned (MR3 Phase)
- Implement concrete gameplay adapter for Reborn character import/export.
- Flip
ruleset_of(&reborn_db)from the temporary error toOk(Ruleset::Reborn). - End-to-end regression testing of Reborn characters and strict isolation gates.
2. Ruleset Identity & DB Schemas
- RulesetId / Ruleset:
Ruleset::Rebornexists incrates/coa-core/src/portable/model.rsandcrates/coa-registry-proto/src/caps.rs.- Serialized string:
"reborn". - Display name:
"Warcraft Reborn". - Associated Realm ID:
3. - Character Database:
acore_characters_reborn. - World Database:
acore_world_reborn. - Auth Database:
acore_auth(shared across all modes).
- Collections:
reborn:appearancereborn:vanity- Partitioned under
(profile_id, 'reborn', kind)in canonical SQLite store (portable.db).
3. Simultaneous Startup & Multiworld Policy
- As verified in
crates/coa-core/src/multiworld.rsandcrates/coa-core/src/realms.rs:CoA + Wildcardsimultaneous execution is supported.Rebornsimultaneous execution is explicitly unsupported ("Simultaneous startup supports CoA and Wildcard only.").- This policy is preserved strictly without changes.
4. Enabling Reborn in Portable Architecture
To complete the Reborn vertical slice with full strict isolation:
- Map
Mode::Reborn => Ok(Ruleset::Reborn)incrates/coa-core/src/portable/realm/mod.rs:ruleset_of. - Update tests verifying
ruleset_of(&reborn_db).unwrap() == Ruleset::Reborn. - Verify Reborn claiming, export, import, session runtime, checkpoints, and collection isolation.
- Verify non-negotiable isolation tests:
- Reborn character -> CoA realm (rejected).
- Reborn character -> Wildcard realm (rejected).
- CoA character -> Reborn realm (rejected).
- Wildcard character -> Reborn realm (rejected).