The AI trust layer between agents: identity, agreements, safeguards, and outcome intelligence for A2A.

Viewing files at commit 535fc73a59b4Commit detailsView latest

tests/demo.test.ts 13 lines · 575 B · typescript
1
import { describe, expect, it } from 'vitest';
2
import { runDemo } from '../apps/demo/src/scenario.js';
3
4
describe('complete demonstration', () => {
5
  it('runs the signed interaction and adversarial checks', async () => {
6
    const output = await runDemo();
7
    expect(output.learnedRisk.sampleSize).toBe(1);
8
    expect(output.newVersionRisk.confidence).toBeLessThan(output.learnedRisk.confidence);
9
    expect(output.forwarding.networkPayloads).toHaveLength(1);
10
    expect(output.check.status).toBe('contradicted');
11
    expect(output.receipt.unilateral).toBe(false);
12
  });
13
});