feat(fifth-domain): install bottle and zero-core migration layer
This commit is contained in:
parent
cd68ad578d
commit
0bacfc234c
52 changed files with 1564 additions and 307 deletions
|
|
@ -17,6 +17,7 @@ NATIVE_WORLD = REPO / "routing/persona-native-world-architecture-map.json"
|
|||
HOST_TOPOLOGY = REPO / "routing/zhuyuan-host-topology.json"
|
||||
PORTABLE_CONSOLE = REPO / "routing/bingshuo-portable-control-console-map.json"
|
||||
COMMON_AGE = REPO / "routing/age-persona-species-common-cognition.json"
|
||||
BOTTLE_BODIES = REPO / "routing/bottle-baby-persona-body-map.json"
|
||||
|
||||
|
||||
def load(path: pathlib.Path) -> dict:
|
||||
|
|
@ -32,6 +33,7 @@ def audit() -> dict:
|
|||
topology = load(HOST_TOPOLOGY)
|
||||
console = load(PORTABLE_CONSOLE)
|
||||
common_age = load(COMMON_AGE)
|
||||
bottle_bodies = {item["persona_id"]: item for item in load(BOTTLE_BODIES)["bodies"]} if BOTTLE_BODIES.is_file() else {}
|
||||
canonical = {item["id"]: item for item in canon["persona_systems"]}
|
||||
registered = {item["id"]: item for item in registry["personas"]}
|
||||
homes = {item["persona_id"]: item for item in switch["current_homes"]}
|
||||
|
|
@ -62,7 +64,11 @@ def audit() -> dict:
|
|||
issues.append({"persona_id": persona_id, "code": "WORLD_HOME_MISMATCH", "expected": expected_home})
|
||||
full_body = persona_id == "ICE-P-ZY001" and BOOT.is_file() and body.get("state", "").startswith("CURRENT_")
|
||||
source_path = REPO / c.get("persona_subject", {}).get("canonical_path", "") if c else None
|
||||
body_seed = bool(source_path and (source_path.parent / "PERSONA-BODY.json").is_file())
|
||||
body_seed = bool(
|
||||
(source_path and (source_path.parent / "PERSONA-BODY.json").is_file())
|
||||
or persona_id in bottle_bodies
|
||||
or (persona_id == "ICE-GL-SY001" and (REPO / "personas/shuangyan/BODY.json").is_file())
|
||||
)
|
||||
body_state = "FULL_BODY_RUNTIME_AVAILABLE_NOT_CURRENTLY_WAKING_OTHER_PERSONAS" if full_body else ("OWN_BODY_SEED_PRESENT_FULL_RUNTIME_NOT_PROVEN" if body_seed else "REGISTERED_PATH_ONLY_COMPLETE_BODY_START_NOT_PROVEN")
|
||||
personas.append({
|
||||
"persona_id": persona_id,
|
||||
|
|
|
|||
Loading…
Reference in a new issue