Register Xiaoxin education node host navigation

This commit is contained in:
冰朔 2026-08-07 23:24:34 +08:00
commit 69af693033
4 changed files with 84 additions and 2 deletions

View file

@ -54,6 +54,17 @@ class LighthouseNavigatorTests(unittest.TestCase):
)
self.assertFalse(route["authority_granted"])
def test_xiaoxin_education_server_uses_registered_node(self):
route = compile_route(self.registry, self.host_map, "codex", "继续部署小新教育服务器")
self.assertEqual(route["decision"], "ALLOW_NAVIGATION")
self.assertEqual(
route["intent"]["id"],
"INTENT-XX-EDUCATION-SERVER-OPERATION-001",
)
self.assertEqual(route["target"]["id"], "XX-GZ-001")
self.assertEqual(route["intent"]["transport"], "LOCAL_DEDICATED_KEY_SSH")
self.assertFalse(route["authority_granted"])
def test_hololake_architecture_uses_repo014_online_main(self):
route = compile_route(
self.registry,