ui: Add service run history and service DAG state (part 9 of 12)
Stack 37/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 48 files changed, 6677 insertions(+), 1391 deletions(-).
Checked: on branch agentstack/37-service-history-9 at commit 95edb3875. pnpm typecheck: pass (66s); pnpm exec eslint on the changed files: pass (46 files); pnpm exec prettier --check on the changed files: pass (46 files); pnpm exec vitest run --maxWorkers=3 (changed tests, tests of the touched directories, tests that import a changed file): pass (656 passed (656); 10331 passed | 6 expected fail (10337); 533s [changed tests, tests of touched directories, tests that import a changed fil); pnpm build: pass (48s); go files: pass (no Go file changed: the Go checks of the parent apply).
Summary
Subject: Service run history and service DAG state. Adds the run history of service DAGs and carries the UI work around it (run bar actions, step panels, canvas toolbar, agent step cards, tool satellites): samples with uptime, events, availability, the scheduler recorder, the REST routes, the SSE stream, and the service state in the Workflows list, the page header and the Activity dock (specs 097 and 080). This PR is part 9 of 12 of the subject. This PR holds 31 files of UI components and features, 14 files of UI tests.
Why
A service DAG runs for years. Its history must outlive the retention of run records. Real code dependencies: PRs 03, 05, 06, 09, 10, 11, 29, 30, 31, 33, 34, 35, 36. All previous PRs of the stack are also its base.
Changes
Counts: 28 existing files modified, 15 new files, 2 removed (14 tests or test data).
ui/src/pages: 14 files (AllowField.tsx,CredentialFields.tsx,EndpointDialog.tsx,EndpointsTab.tsx, ...)ui/src/features/dags/components: 7 files (stepViewMode.test.ts,stepViewMode.ts,DAGRecentRuns.tsx,DAGTable.tsx, ...)ui/src/features/dag-runs/components: 4 files (DAGRunTable.tsx,ServiceDAGRow.tsx,DAGRunTable.test.tsx,ServiceDAGRow.test.tsx)ui/src/layouts: 4 files (ContentNavigation.tsx,Layout.tsx,ContentNavigation.test.ts,Layout.test.tsx)ui/src/features/workflow-workspace/step: 3 files (StepLogPane.tsx,StepPanel.tsx,StepPanel.test.tsx)ui/src/features/workflow-workspace/canvas: 2 files (WorkspaceCanvas.tsx,WorkspaceCanvas.test.tsx)ui/src/features/workflow-workspace/executions: 2 files (RunSnapshotCanvas.tsx,RunSnapshotCanvas.test.tsx)ui/src/features/workflow-workspace/history: 2 files (HistoryBody.tsx,HistoryBody.test.tsx)ui/src/features/workflow-workspace/notices: 2 files (useWorkspaceNotices.test.tsx,useWorkspaceNotices.ts)ui/src/App.tsx: 1 file (App.tsx)ui/src/__tests__: 1 file (App.test.tsx)ui/src/features/activity/components: 1 file (ActivityPanels.tsx)- 2 more directories.
How to review
- Read the spec documents first, when the PR has some.
- Read the non-test code, from the types to the callers.
- Read the tests last.
Summary by cubic
Part 9 of 12 in the service-history stack, which also carries the agent runtime foundation the rest of the stack builds on. Adds run history and live state for service DAGs across the scheduler, API, event stream, and UI, together with step secrets, untrusted-step isolation, the egress proxy, AI endpoints, MCP servers, the AI gateway, skills, agent tools, the agent node, and agent workers.
- Replaces the chat step's legacy
toolslist with the spec 090 tool map; the old syntax is still accepted but now emits a deprecation warning. - Adds conformance suites for specs 090-096 running against a shared harness and test stack with a fake
claudeCLI.