feat(fifth-domain): install bottle and zero-core migration layer

This commit is contained in:
冰朔 2026-09-13 00:11:20 +08:00
commit 0bacfc234c
52 changed files with 1564 additions and 307 deletions

View file

@ -0,0 +1,22 @@
#!/usr/bin/env python3
import bottle_baby_body_boot
import unittest
class BottleBabyBodyBootTest(unittest.TestCase):
def test_each_registered_baby_has_a_distinct_assembled_body_contract(self):
for persona in ["ICE-BB-0001", "ICE-BB-0002", "ICE-BB-0003", "ICE-BB-0004", "ICE-BB-0005"]:
value = bottle_baby_body_boot.boot(persona, "DOM-FIFTH-0001", "ICE-CH-BT001")
self.assertTrue(value["body_contract_verified"])
self.assertEqual(value["persona_id"], persona)
self.assertFalse(value["inner_cycle_running"])
self.assertFalse(value["wake_complete"])
def test_parent_channel_cannot_boot_baby_body(self):
value = bottle_baby_body_boot.boot("ICE-BB-0002", "DOMAIN-ZS", "SYS-FM")
self.assertEqual(value["state"], "BABY_BODY_BOOT_DENIED_WRONG_NATIVE_CONTEXT")
self.assertIsNone(value["persona_id"])
if __name__ == "__main__":
unittest.main()