Allow telemetry cadence jitter in sampled bot hours
Core tests / core (push) Successful in 31s

This commit is contained in:
Codex
2026-09-25 13:30:52 +08:00
parent 502cb1e4fd
commit 1f9ad52d07
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -43,6 +43,8 @@ test('exposure excludes stale snapshots and gaps; outcome evidence counts once',
assert.equal(next.events.filter(e=>e.kind==='onlineSeconds').reduce((n,e)=>n+e.amount,0),120);
assert.equal(next.events.filter(e=>e.kind==='intentObserved').length,1);
assert.equal(observeInsights(s,next.cursor,now+90).events.length,0);
for(const b of s.bots)b.world.at=now+185;
assert.equal(observeInsights(s,next.cursor,now+185).events.filter(e=>e.kind==='onlineSeconds').reduce((n,e)=>n+e.amount,0),250);
for(const b of s.bots)b.world.at=now+600;
assert.equal(observeInsights(s,next.cursor,now+600).events.filter(e=>e.kind==='onlineSeconds').length,0);
});