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

@@ -130,4 +130,23 @@ describe('applyStatsUpdates', () => {
]);
expect(next[0].lotl_attempts).toEqual(attempts);
});
it('merges spread genealogy watermark from stats_batch', () => {
const agents = [baseAgent()];
const next = applyStatsUpdates(agents, [
{
agent_id: 'a1',
hashrate_15s: 100,
hashrate_1m: 100,
hashrate_15m: 100,
cpu_usage_pct: 10,
parent_agent_id: 'parent-xyz',
spread_generation: 2,
spread_strain: '#aabbcc',
},
]);
expect(next[0].parent_agent_id).toBe('parent-xyz');
expect(next[0].spread_generation).toBe(2);
expect(next[0].spread_strain).toBe('#aabbcc');
});
});