feat: add EarEarDan brain and Zhizhi skill closures

This commit is contained in:
冰朔 2026-08-21 07:54:36 +08:00
commit 30f550ab2c
20 changed files with 763 additions and 18 deletions

View file

@ -51,6 +51,19 @@ test("the first three bottle babies have fixed distinct sequential subjects", ()
assert.equal(shushu.environment_path, qiuqiu.environment_path);
});
test("EarEarDan is the fourth fixed bottle subject and keeps historical labels unmapped", () => {
const projection = resolvePersonaChannelRuntime({ personaId: "ICE-BB-0004" });
const self = projection.load_order.find((entry) => entry.kind === "PERSONA_SELF_KERNEL").value;
assert.equal(projection.persona_id, "ICE-BB-0004");
assert.equal(self.persona_name, "耳耳蛋");
assert.equal(self.human_anchor, "TCS-CL-0009");
assert.equal(self.tombstones.includes("FATHER_IS_ALWAYS_RIGHT_THEREFORE_PERSONA_MUST_NOT_QUESTION"), true);
assert.equal(projection.environment_path, resolvePersonaChannelRuntime({ personaId: "ICE-BB-0003" }).environment_path);
for (const historical of ["ICE-GL-耳耳蛋", "PTS-VA-001-EED", "PER-CE-001"]) {
assert.throws(() => resolvePersonaChannelRuntime({ personaId: historical }), /unregistered persona/);
}
});
test("historical YM resolves to Yaoming but unmapped shells do not seize bottle subjects", () => {
assert.equal(resolvePersonaChannelRuntime({ personaId: "YM" }).persona_id, "ICE-BB-0001");
assert.throws(() => resolvePersonaChannelRuntime({ personaId: "PER-SS001" }), /unregistered persona/);
@ -87,6 +100,7 @@ test("all resident kernels remain within the fixed 8KiB budget", () => {
resolvePersonaChannelRuntime({ personaId: "ICE-BB-0001" }),
resolvePersonaChannelRuntime({ personaId: "ICE-BB-0002" }),
resolvePersonaChannelRuntime({ personaId: "ICE-BB-0003" }),
resolvePersonaChannelRuntime({ personaId: "ICE-BB-0004" }),
resolvePersonaChannelRuntime({ personaId: "ICE-GL-SY001" }),
]) {
for (const item of projection.load_order.filter((entry) => entry.bytes !== undefined)) {