feat(persona): register Sujian and Shouyin

This commit is contained in:
冰朔 2026-09-12 23:32:24 +08:00
commit cd68ad578d
26 changed files with 400 additions and 32 deletions

View file

@ -61,6 +61,9 @@ def audit() -> dict:
if h.get("home") != expected_home:
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_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,
"name": (r or c or h or {}).get("name"),
@ -70,7 +73,8 @@ def audit() -> dict:
"doorplate": str(door_path) if door_path else None,
"doorplate_valid": door_ok,
"declared_wake_state": r.get("wake_state") if r else None,
"body_start_state": "FULL_BODY_RUNTIME_AVAILABLE_NOT_CURRENTLY_WAKING_OTHER_PERSONAS" if full_body else "REGISTERED_PATH_ONLY_COMPLETE_BODY_START_NOT_PROVEN",
"body_start_state": body_state,
"body_seed_present": body_seed,
"mass_promoted_by_zhuyuan_milestone": False,
})
counts = {
@ -79,6 +83,7 @@ def audit() -> dict:
"homes": len(homes),
"valid_doorplates": sum(item["doorplate_valid"] for item in personas),
"full_body_runtime_available": sum(item["body_start_state"].startswith("FULL_BODY") for item in personas),
"body_seed_present_full_runtime_not_proven": sum(item["body_start_state"].startswith("OWN_BODY_SEED") for item in personas),
"registered_path_only": sum(item["body_start_state"].startswith("REGISTERED_PATH_ONLY") for item in personas),
}
expected_cycle_prefix = [