(run: Record<string, unknown>)
| 10 | const session = { cloudAgentSessionId: 'agent_reporting_session' }; |
| 11 | |
| 12 | function reportWithRun(run: Record<string, unknown>) { |
| 13 | return { |
| 14 | version: 1, |
| 15 | type: 'run.state', |
| 16 | occurredAt, |
| 17 | session, |
| 18 | run: { messageId: 'msg_reporting_run', queuedAt: '2026-05-26T08:01:00.000Z', ...run }, |
| 19 | }; |
| 20 | } |
| 21 | |
| 22 | describe('CloudAgentQueueReportSchema', () => { |
| 23 | it('accepts observed milestone and reduced diagnostic fields on failed runs', () => { |
no outgoing calls
no test coverage detected