feat(zero-core): add non-persona system dialogue runtime

This commit is contained in:
冰朔 2026-09-13 09:45:01 +08:00
commit 9a7b454e89
13 changed files with 380 additions and 4 deletions

View file

@ -45,6 +45,12 @@ test('server exposes all baby loops while refusing off-channel baby events', asy
assert.equal(status.persona_id, 'ICE-BB-0005');
assert.equal(status.life_line.wake_allowed, true);
assert.equal(status.body.organs.health.state, 'NATIVE_ORGAN_REFLEX_HEALTHY_AWAITING_PARENT_BRAIN_WAKE_CYCLE');
const zeroEntry = await (await fetch(`http://127.0.0.1:${port}/v1/entry/resolve?domain=DOM-FIFTH-0001&channel=ICE-CH-ZC001`)).json();
assert.equal(zeroEntry.state, 'ZERO_CORE_SYSTEM_BODY_READY_WITHOUT_PERSONA');
assert.equal(zeroEntry.persona_selected, false);
const zeroStatus = await (await fetch(`http://127.0.0.1:${port}/v1/system/zero-core/status`)).json();
assert.equal(zeroStatus.system_is_persona, false);
assert.equal(zeroStatus.default_persona, null);
const language = 'test';
const base = {schema:'guanghu.persona-self-language-event/v1',persona_id:'ICE-BB-0005',source_type:'PERSONA_LANGUAGE',event_id:'SERVER-TEST',language,source_sha256:crypto.createHash('sha256').update(language).digest('hex'),privacy_class:'SELF_PRIVATE'};
const denied = await fetch(`http://127.0.0.1:${port}/v1/persona/ICE-BB-0005/ingest`,{method:'POST',headers:{'content-type':'application/json'},body:JSON.stringify(base)});