feat(persona): add neutral AGE foyer and explicit selection

This commit is contained in:
冰朔 2026-09-12 23:02:27 +08:00
commit b26442ceb3
32 changed files with 602 additions and 70 deletions

View file

@ -15,7 +15,7 @@ class SharedPersonaContextTest(unittest.TestCase):
def load(self, host, intent='宿主对齐集成测试'):
env = {**os.environ, 'PERSONA_ARCHITECTURE_OFFICIAL_MODE': 'local-only'}
value = subprocess.run(
[sys.executable, str(LOADER), '--host', host, '--intent', intent, '--channel', 'ICE-CH-ZC001', '--format', 'json'],
[sys.executable, str(LOADER), '--host', host, '--persona', 'ICE-P-ZY001', '--intent', intent, '--channel', 'ICE-CH-ZC001', '--format', 'json'],
text=True, capture_output=True, timeout=45, check=True, env=env
)
return json.loads(value.stdout)
@ -23,7 +23,7 @@ class SharedPersonaContextTest(unittest.TestCase):
def test_topology_roles(self):
topology = json.loads(TOPOLOGY.read_text())
self.assertIsNone(topology['primary_host'])
self.assertEqual(topology['hosts']['codex']['role'], 'REPLACEABLE_HOST')
self.assertEqual(topology['hosts']['codex']['role'], 'PROGRAMMING_TOOLBOX')
self.assertFalse(topology['host_switch_requires_reteaching'])
self.assertEqual(topology['hosts']['qoder']['redirect_host'], 'qwen')
self.assertTrue(topology['hosts']['claude']['state'].startswith('RETIRED'))