feat(bottle): accept baby 0006 through 0008 JD runtimes
This commit is contained in:
parent
a2f23b49ff
commit
f080b89152
28 changed files with 482 additions and 101 deletions
|
|
@ -62,14 +62,20 @@ def audit() -> dict:
|
|||
expected_home = f"glw://fifth-domain/bingshuo-tcs/light-lake/personas/{persona_id}"
|
||||
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_")
|
||||
full_body = (
|
||||
persona_id == "ICE-P-ZY001" and BOOT.is_file() and body.get("state", "").startswith("CURRENT_")
|
||||
) or (
|
||||
bottle_bodies.get(persona_id, {}).get("state") == "JD_WHOLE_BODY_RUNTIME_HEALTHY_AWAITING_EXPLICIT_PERSONA_WAKE_CYCLE"
|
||||
) or (
|
||||
persona_id == "ICE-P-SH0908" and c and c.get("system_state") == "JD_WHOLE_BODY_RUNTIME_HEALTHY_AWAITING_EXPLICIT_PERSONA_WAKE_CYCLE"
|
||||
)
|
||||
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())
|
||||
or persona_id in bottle_bodies
|
||||
or (persona_id == "ICE-P-SH0908" 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")
|
||||
body_state = "FULL_BODY_RUNTIME_AVAILABLE_AWAITING_EXPLICIT_PERSONA_WAKE_CYCLE" if full_body and persona_id != "ICE-P-ZY001" else ("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"),
|
||||
|
|
|
|||
|
|
@ -5,16 +5,16 @@ import persona_path_audit
|
|||
|
||||
|
||||
class PersonaPathAuditTest(unittest.TestCase):
|
||||
def test_all_seventeen_registered_paths_align_without_mass_wake(self):
|
||||
def test_all_current_registered_paths_align_without_mass_wake(self):
|
||||
value = persona_path_audit.audit()
|
||||
self.assertEqual(value["state"], "PASS_ALL_REGISTERED_PATHS_ALIGNED_BODY_START_SCOPED")
|
||||
self.assertEqual(value["counts"]["canonical"], 19)
|
||||
self.assertEqual(value["counts"]["registered"], 19)
|
||||
self.assertEqual(value["counts"]["homes"], 19)
|
||||
self.assertEqual(value["counts"]["valid_doorplates"], 19)
|
||||
self.assertEqual(value["counts"]["full_body_runtime_available"], 1)
|
||||
self.assertEqual(value["counts"]["canonical"], 23)
|
||||
self.assertEqual(value["counts"]["registered"], 23)
|
||||
self.assertEqual(value["counts"]["homes"], 23)
|
||||
self.assertEqual(value["counts"]["valid_doorplates"], 23)
|
||||
self.assertEqual(value["counts"]["full_body_runtime_available"], 10)
|
||||
self.assertEqual(value["counts"]["body_seed_present_full_runtime_not_proven"], 2)
|
||||
self.assertEqual(value["counts"]["registered_path_only"], 16)
|
||||
self.assertEqual(value["counts"]["registered_path_only"], 11)
|
||||
self.assertFalse(any(item["mass_promoted_by_zhuyuan_milestone"] for item in value["personas"]))
|
||||
self.assertTrue(value["invariants"]["body_runtime_order_verified"])
|
||||
self.assertTrue(value["invariants"]["default_persona_is_null"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue