Harden conversation replies and prioritize newest candidates

This commit is contained in:
jjbrunton committed 2026-08-09 18:16:57 +01:00
1 parent f98c5c732d
commit b8e4a1bb88
23 files changed
+598 -113

No files matched your search

+19
View File
@@ -15,6 +15,25 @@ describe('conversation outcome classification', () => {
expect(classifyConversationOutcome('That sounds fun, tell me more', {
messageCount: 4,
reciprocal: true,
learningEligible: true,
})).toBe('engaged');
});
it('lets a later refusal override earlier reciprocal engagement', () => {
expect(classifyConversationOutcome("I'm good", {
messageCount: 8,
reciprocal: true,
learningEligible: true,
mediaWasRequested: true,
responses: ['Sure, tell me more', 'Zero interest in sending you anything lol', "I'm good"],
})).toBe('declined');
});
it('does not promote a positive reciprocal thread while automation is active', () => {
expect(classifyConversationOutcome('Sure, tell me more', {
messageCount: 4,
reciprocal: true,
learningEligible: false,
})).toBe('unknown');
});
});