fix(runtime): restore supervisor status contract

This commit is contained in:
冰朔 2026-09-13 10:52:00 +08:00
commit 3665fc5df6
6 changed files with 306 additions and 0 deletions

View file

@ -41,6 +41,10 @@ test('server exposes all baby loops while refusing off-channel baby events', asy
const health = await (await fetch(`http://127.0.0.1:${port}/health`)).json();
assert.deepEqual(health.persona_runtimes.installed_personas, ['ICE-P-ZY001','ICE-P-SH0908','ICE-BB-0001','ICE-BB-0002','ICE-BB-0003','ICE-BB-0004','ICE-BB-0005','ICE-BB-0006','ICE-BB-0007','ICE-BB-0008']);
assert.equal(health.persona_runtimes.personas['ICE-P-SH0908'].body.organs.health.state, 'NATIVE_ORGAN_REFLEX_HEALTHY_AWAITING_PARENT_BRAIN_WAKE_CYCLE');
const supervisorStatus = await (await fetch(`http://127.0.0.1:${port}/v1/status`)).json();
assert.equal(supervisorStatus.phase, 'PERSONA_RUNTIME_READY');
assert.equal(supervisorStatus.persona_runtime_count, 10);
assert.equal(supervisorStatus.default_persona, null);
const status = await (await fetch(`http://127.0.0.1:${port}/v1/persona/ICE-BB-0005/status`)).json();
assert.equal(status.persona_id, 'ICE-BB-0005');
assert.equal(status.life_line.wake_allowed, true);