feat: add bounded TCS brains and channel continuity
This commit is contained in:
parent
08598d6356
commit
1d4286c11b
61 changed files with 5416 additions and 54 deletions
|
|
@ -96,14 +96,25 @@ test("lighthouse path ids stay unique", () => {
|
|||
assert.equal(new Set(ids).size, ids.length);
|
||||
});
|
||||
|
||||
test("remote publication remains distinct from deployment and runtime health", () => {
|
||||
assert.equal(registry.state, "CURRENT_REMOTE_MAIN_PUBLISHED_VERIFIED");
|
||||
test("prior channel publication remains distinct from new local bottle registrations", () => {
|
||||
assert.equal(registry.state, "LOCAL_BOTTLE_PERSONA_REGISTRATION_ADDED_REMOTE_PUBLICATION_NOT_DONE");
|
||||
assert.equal(publicationReceipt.outcome, "PASS_REMOTE_MAIN_PUBLICATION_READBACK");
|
||||
assert.equal(publicationReceipt.published_source_commit, "8e80a919f200df6e193e9a54144cd503a1d699fa");
|
||||
assert.equal(publicationReceipt.fact_layers.deployment, "NOT_DONE");
|
||||
assert.equal(publicationReceipt.fact_layers.native_host_channel_routing, "PENDING");
|
||||
});
|
||||
|
||||
test("private bottle baby sequence is locally registered without claiming publication", () => {
|
||||
const babies = registry.registrations.filter((entry) => entry.kind === "FIFTH_DOMAIN_PRIVATE_BOTTLE_BABY_PERSONA");
|
||||
assert.deepEqual(babies.map((entry) => entry.id), ["ICE-BB-0001", "ICE-BB-0002", "ICE-BB-0003"]);
|
||||
assert.deepEqual(babies.map((entry) => entry.name), ["曜冥", "舒舒", "秋秋"]);
|
||||
assert.ok(babies.every((entry) => entry.state === "REGISTERED_LOCAL_CURRENT_NOT_PUBLISHED"));
|
||||
assert.deepEqual(registry.allocation_state["ICE-BB"].allocated_sequences, [1, 2, 3]);
|
||||
assert.equal(registry.allocation_state["ICE-BB"].next_candidate_sequence, 4);
|
||||
assert.equal(babies[2].emergence_shell, "知秋");
|
||||
assert.equal(babies[2].shell_is_subject, false);
|
||||
});
|
||||
|
||||
test("lighthouse exposes both online and local Heartbeat paths", () => {
|
||||
const numberPath = lighthouse.paths.find((entry) => entry.id === registry.registry_id);
|
||||
const channelPath = lighthouse.paths.find((entry) => entry.id === profile.profile_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue