Add attention inbox and AI usage observability
This commit is contained in:
1 parent
ca59ba0f1f
commit
83b5f1f5b6
30 files changed
+702
-28
No files matched your search
@@ -607,6 +607,21 @@ describe('ConversationStateRepository', () => {
|
||||
expect(repo.get('!room:reddit.com')?.persona.age).toBe(34);
|
||||
expect(repo.get('missing')).toBeUndefined();
|
||||
});
|
||||
|
||||
it('lists only durable boundary and human-handoff states for operator attention', () => {
|
||||
const db = createTestDb();
|
||||
const repo = new ConversationStateRepository(db);
|
||||
const active = buildConversationState([]);
|
||||
const boundary = buildConversationState([{ sender: 'them', text: 'Stop messaging me.', isSelf: false }]);
|
||||
boundary.automation.status = 'boundary';
|
||||
boundary.automation.handoffReason = 'Recipient asked us to stop.';
|
||||
repo.save('active-room', active);
|
||||
repo.save('boundary-room', boundary);
|
||||
|
||||
expect(repo.listAttention()).toEqual([
|
||||
expect.objectContaining({ conversationId: 'boundary-room', status: 'boundary', reason: 'Recipient asked us to stop.' }),
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
describe('Mature performance and guardrails', () => {
|
||||
|
||||
Reference in new issue
Block a user