mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
fix(voice): preserve analyst result and tracking contracts
keep contacts counts, rows, scope and provenance on one retained snapshot report capped cohorts as lower bounds separate sibling tool cancellation from newer user turns align track_entity validation across runtime and benchmark paths
This commit is contained in:
1 parent
a19897ad15
commit
095981eee7
27 files changed
+1155
-146
No files matched your search
@@ -147,3 +147,23 @@ test('registry: mirrors the card, records analyst items, clears per session', ()
|
||||
assert.equal(referents.get(1), null);
|
||||
assert.deepEqual(referentsFromResult('x', null), []);
|
||||
});
|
||||
|
||||
test('registry: hidden card rows never resolve and last means displayed item five', () => {
|
||||
const referents = createReferentRegistry();
|
||||
referents.recordResult('analyst_query', {
|
||||
ok: true,
|
||||
count: 6,
|
||||
scopeLabel: 'anywhere',
|
||||
coverage: { layersQueried: [{ layerKey: 'flights' }] },
|
||||
items: Array.from({ length: 6 }, (_, index) => ({
|
||||
layerKey: 'flights',
|
||||
id: `F${index + 1}`,
|
||||
})),
|
||||
});
|
||||
assert.deepEqual(
|
||||
referents.list().map((entry) => entry.n),
|
||||
[1, 2, 3, 4, 5],
|
||||
);
|
||||
assert.equal(referents.get(6), null);
|
||||
assert.equal(referents.get(-1)?.id, 'F5');
|
||||
});
|
||||
Reference in new issue
Block a user