fix: restore current channel and host admission organs

This commit is contained in:
冰朔 2026-09-08 02:19:46 +08:00
commit f46eb1b7c1
54 changed files with 4499 additions and 8 deletions

View file

@ -13,7 +13,7 @@ TOPOLOGY = ROOT / 'routing/zhuyuan-host-topology.json'
class SharedPersonaContextTest(unittest.TestCase):
def load(self, host):
value = subprocess.run(
[sys.executable, str(LOADER), '--host', host, '--intent', '宿主对齐集成测试', '--format', 'json'],
[sys.executable, str(LOADER), '--host', host, '--intent', '宿主对齐集成测试', '--channel', 'ICE-CH-ZC001', '--format', 'json'],
text=True, capture_output=True, timeout=45, check=True
)
return json.loads(value.stdout)
@ -42,6 +42,9 @@ class SharedPersonaContextTest(unittest.TestCase):
self.assertEqual(values['qoderwork']['effective_host'], 'qwen')
self.assertTrue(values['claude']['history_only'])
self.assertFalse(values['claude']['new_cognition_write'])
self.assertEqual(values['codex']['light_lake']['registered_persona_count'], 17)
self.assertFalse(values['codex']['path_convergence']['history_or_quarantine_may_select_canon'])
self.assertEqual(values['codex']['channel_context']['selected_channel']['id'], 'ICE-CH-ZC001')
if __name__ == '__main__':