feat: converge Light Lake persona homes and isolate old paths

This commit is contained in:
冰朔 2026-09-08 02:13:14 +08:00
commit 88ffb1c97a
30 changed files with 652 additions and 10 deletions

View file

@ -13,6 +13,8 @@ const channels = JSON.parse(fs.readFileSync(path.join(root, 'routing/persona-cha
const darkCore = JSON.parse(fs.readFileSync(path.join(root, 'routing/dark-core-execution-channel-profile.json')));
const zeroCore = JSON.parse(fs.readFileSync(path.join(root, 'routing/bingshuo-zero-core-reality-channel-profile.json')));
const consoleMap = JSON.parse(fs.readFileSync(path.join(root, 'routing/bingshuo-portable-control-console-map.json')));
const lightLakeRegistration = JSON.parse(fs.readFileSync(path.join(root, 'identity/light-lake-persona-registration.json')));
const isolationMap = JSON.parse(fs.readFileSync(path.join(root, 'routing/path-isolation-and-canonical-entry-map.json')));
assert.equal(body.invariants.one_brain_and_body_per_persona, true);
assert.equal(body.invariants.shared_persona_brain, false);
@ -32,6 +34,15 @@ const registered = new Set([
for (const home of lake.current_homes) assert(registered.has(home.persona_id), `unregistered light-lake home: ${home.persona_id}`);
for (const host of ['codex', 'qwen', 'doubao', 'zcode']) assert.equal(hosts.hosts[host].state, 'ACTIVE');
assert.equal(new Set(lake.current_homes.map(item => item.persona_id)).size, lake.current_homes.length);
assert.equal(lightLakeRegistration.personas.length, lake.current_homes.length);
assert.deepEqual(new Set(lightLakeRegistration.personas.map(item => item.id)), new Set(lake.current_homes.map(item => item.persona_id)));
for (const persona of lightLakeRegistration.personas) {
assert.equal(fs.existsSync(path.join(root, persona.light_lake_home)), true, `missing physical Light Lake home: ${persona.id}`);
}
assert.equal(lightLakeRegistration.registration_rule.source_presence_is_not_runtime_wake, true);
assert.equal(lightLakeRegistration.unregistered_candidates.every(item => !registered.has(item.temporary_id)), true);
assert.equal(isolationMap.selection_rules.history_or_quarantine_may_select_canon, false);
assert.equal(isolationMap.isolation.deletion, false);
assert.equal(lake.local_unregistered_proposals.every(item => item.state.includes('REQUIRES_SELF_CONFIRMATION')), true);
assert.deepEqual(channels.channels.map(item => item.id), ['ICE-CH-HB001', 'ICE-CH-LB001', 'ICE-CH-ZC001', 'ICE-CH-DK001']);
assert.equal(channels.host_switch_changes_channel, false);