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

Draft
SC
12d ago
+192514-20115

Stack 39/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 25 files changed, 7081 insertions(+), 0 deletions(-).
Checked: on branch agentstack/39-service-history-11 at commit f994adc17. pnpm typecheck: pass (58s); pnpm exec eslint on the changed files: pass (25 files); pnpm exec prettier --check on the changed files: pass (25 files); pnpm exec vitest run --maxWorkers=3 (changed tests, tests of the touched directories, tests that import a changed file): pass (149 passed (149); 3051 passed (3051); 120s [changed tests, tests of touched directories, tests that import a changed file]); pnpm build: pass (50s); 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 11 of 12 of the subject. This PR holds 30 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, 09, 10, 30, 33, 34, 35, 36, 37. All previous PRs of the stack are also its base.

Changes

Counts: 9 existing files modified, 21 new files (30 tests or test data).

  • ui/src/features/visual-editor/inspector: 12 files (ChatForm.endpoint.test.tsx, ChatForm.test.tsx, Security.test.tsx, StepInspector.agentRun.test.tsx, ...)
  • ui/src/pages: 4 files (endpoints.test.tsx, mcp.test.tsx, models.test.tsx, skillFiles.test.tsx)
  • ui/src/features/visual-editor/doc: 3 files (restart.test.ts, schedule.test.ts, serverOrder.test.ts)
  • ui/src/features/visual-editor/launchers: 3 files (AlwaysOnLauncherPanel.test.tsx, CronLauncherPanel.test.tsx, SlotLauncherPanel.test.tsx)
  • ui/src/features/visual-editor/run: 2 files (runSpecDiff.test.ts, useStepHashes.test.tsx)
  • ui/src/features/workflow-workspace/canvas: 2 files (WorkspaceCanvas.notices.test.tsx, useStepCommandHost.test.tsx)
  • ui/src/features/visual-editor/references: 1 file (ReferenceInput.suggestions.test.tsx)
  • ui/src/features/workflow-workspace/__tests__: 1 file (selection.test.tsx)
  • ui/src/features/workflow-workspace/data: 1 file (useRetainedRuns.test.tsx)
  • ui/src/features/workflow-workspace/step: 1 file (StepRunView.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 test infrastructure and black-box suites for the agent features: a shared conformance/aitest package with a fake claude CLI, a fake model API, and local, server, and stack launchers, plus suites for agent tools (spec 090) and the agent node (spec 091). The chat suite (spec 059) now uses the dags tool map; the old tools list stays valid but deprecated and warns on dagu validate.

  • Extends conformance/harness with thread-safe live process output, an endpoint seeder, and helpers for unrestricted-user runs and skipping restricted-user tests outside Linux.
  • Regenerates api/v1/api.yaml and api/v1/api.gen.go, registers the egress proxy command, and excludes examples/agent-worker-demo/run/ from Docker builds.