Skip to content

Commit 99c5ea7

Browse files
authored
test(gateway): cover task and automation RPCs (#118966)
1 parent 622b5ea commit 99c5ea7

2 files changed

Lines changed: 460 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
title: Gateway task and automation RPC evidence
2+
3+
scenario:
4+
id: gateway-rpc-automation
5+
surface: gateway
6+
category: gateway.gateway-rpc-apis-and-events
7+
coverage:
8+
primary:
9+
- gateway.task-and-automation-apis
10+
objective: Verify the real Gateway persists cron RPC mutations, wakes a heartbeat into the agent runtime, and controls a Gateway-created agent task.
11+
successCriteria:
12+
- Cron add, get, list, update, and remove RPCs expose the persisted job state after each mutation.
13+
- A wake RPC with mode now reaches the downstream model through the real heartbeat path.
14+
- A real agent RPC creates a running CLI task exposed through tasks.list and tasks.get.
15+
- tasks.cancel records the terminal cancelled state, and later agent completion does not overwrite it.
16+
docsRefs:
17+
- docs/gateway/protocol.md
18+
- docs/automation/cron-jobs.md
19+
- docs/automation/tasks.md
20+
codeRefs:
21+
- src/gateway/server-methods/cron.ts
22+
- src/gateway/server-methods/tasks.ts
23+
- test/e2e/qa-lab/runtime/gateway-rpc-automation.e2e.test.ts
24+
execution:
25+
kind: vitest
26+
path: test/e2e/qa-lab/runtime/gateway-rpc-automation.e2e.test.ts
27+
summary: Run one isolated real-Gateway scenario over cron CRUD, wake-to-heartbeat delivery, and Gateway-created agent task list/get/cancel.

0 commit comments

Comments
 (0)