test(ui): Add service run history and service DAG state (part 10 of 12)

Draft
SC
12d ago
+185483-20115

Stack 38/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 22 files changed, 7178 insertions(+), 18 deletions(-).
Checked: on branch agentstack/38-service-history-10 at commit c6949ac6e. pnpm typecheck: pass (57s); pnpm exec eslint on the changed files: pass (22 files); pnpm exec prettier --check on the changed files: pass (22 files); pnpm exec vitest run --maxWorkers=3 (changed tests, tests of the touched directories, tests that import a changed file): pass (270 passed (270); 5774 passed | 6 expected fail (5780); 218s [changed tests, tests of touched directories, tests that import a changed file]); pnpm build: pass (47s); 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 10 of 12 of the subject. This PR holds 34 files of UI tests.

Why

A service DAG runs for years. Its history must outlive the retention of run records. Real code dependencies: PRs 05, 06, 10, 30, 31, 33, 34, 37. All previous PRs of the stack are also its base.

Changes

Counts: 18 existing files modified, 16 new files (34 tests or test data).

  • ui/src/features/visual-editor/canvas: 18 files (DagCardNode.test.tsx, ModelCard.test.tsx, PromptCardNode.test.tsx, ToolSatelliteNodes.test.tsx, ...)
  • ui/src/features/dags/components: 7 files (DAGSpec.compactNotices.test.tsx, DAGSpec.hosted.test.tsx, DAGSpec.ndvSegments.test.tsx, NodeDetailsFrame.geometry.test.tsx, ...)
  • ui/src/features/visual-editor/__tests__: 6 files (ToolPanel.named.test.tsx, VisualEditor.addStep.test.tsx, VisualEditor.hosted.test.tsx, VisualEditor.launchers.test.tsx, ...)
  • ui/src/features/visual-editor/doc: 2 files (clipboard.test.ts, patch.test.ts)
  • ui/src/features/dag-runs/hooks: 1 file (usePaginatedDAGRuns.test.tsx)

How to review

  1. Read the spec documents first, when the PR has some.
  2. Read the non-test code, from the types to the callers.
  3. Read the tests last.

Summary by cubic

Adds the conformance suites for the agent stack and the shared test harness they rely on.

  • New conformance/aitest package provides a fake claude CLI, a fake model API, relay coordinator/worker fixtures, and helpers for local, server, and distributed stack tests. Tests that need the restricted user are skipped unless run as root with no-new-privileges.
  • New suites cover spec 090 (agent tools: skills, MCP servers, tool limits) and spec 091 (agent node: CLI flags, tool bridge, auth, retry).
  • Updates the chat suite to the new tool map and endpoint block, adds a step-run test that an uncarried step cannot be an outputsFromRuns source, and regenerates the API schema.
  • Registers the dagu egress-proxy command and ignores demo run artifacts in .dockerignore.