Add fleet evolution: genetic breeding, atlas gossip, BGP router, seeder/miner, genealogy, court gates, APK scout, personas, WSUS mimic, and P2 test coverage

This commit is contained in:
AetherForge
2026-06-07 05:00:22 -07:00
parent 7b2d41cda8
commit 82d74abfcf
38 changed files with 486 additions and 120 deletions

View File

@@ -116,6 +116,28 @@ describe('agentStatsUnchanged', () => {
}),
).toBe(false);
});
it('returns false when spread genealogy watermark changes', () => {
const agent = mockAgent({
hashrate_15s: 100,
hashrate_1m: 90,
hashrate_15m: 80,
cpu_usage_pct: 12,
parent_agent_id: 'parent-1',
spread_generation: 1,
spread_strain: '#aabbcc',
});
expect(
agentStatsUnchanged(agent, {
agent_id: agent.id,
hashrate_15s: 100,
hashrate_1m: 90,
hashrate_15m: 80,
cpu_usage_pct: 12,
spread_generation: 2,
}),
).toBe(false);
});
});
describe('WS_LATEST_MESSAGE_TYPES', () => {