ui: Add service run history and service DAG state (part 8 of 12)
Stack 36/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 26 files changed, 2336 insertions(+), 570 deletions(-).
Checked: on branch agentstack/36-service-history-8 at commit 7406db124. pnpm typecheck: pass (58s); pnpm exec eslint on the changed files: pass (26 files); pnpm exec prettier --check on the changed files: pass (26 files); pnpm exec vitest run --maxWorkers=3 (changed tests, tests of the touched directories, tests that import a changed file): pass (142 passed (142); 2504 passed (2504); 144s [changed tests, tests of touched directories, tests that import a changed file]); pnpm build: pass (56s); 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 8 of 12 of the subject. This PR holds 15 files of UI components and features, 9 files of UI tests, 1 files of UI library code.
Why
A service DAG runs for years. Its history must outlive the retention of run records. Real code dependencies: PRs 03, 30, 31, 33, 34, 35. All previous PRs of the stack are also its base.
Changes
Counts: 22 existing files modified, 3 new files (9 tests or test data).
ui/src/features/workflow-workspace/bar: 8 files (RunChip.tsx,RunDetailsParts.tsx,RunDetailsPopover.tsx,RunSplitButton.tsx, ...)ui/src/features/workflow-workspace/dock: 6 files (RunStepList.tsx,RunStepsNav.tsx,RunTimeline.tsx,ServiceHistory.tsx, ...)ui/src/features/dags/components: 3 files (DAGActions.tsx,DAGActions.test.tsx,RunProgressStack.tsx)ui/src/features/dag-runs/components: 2 files (RunStatusChip.tsx,RunStatusChip.test.tsx)ui/src/features/dag-runs/hooks: 2 files (useListRunDisplay.test.tsx,useListRunDisplay.ts)ui/src/features/workflow-workspace/popout: 2 files (LogPopoutPage.tsx,PopoutBar.tsx)ui/src/lib: 2 files (runDisplayStatus.test.ts,runDisplayStatus.ts)
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
Adds the conformance test suites for the AI features (specs 059, 090, and 091) along with the shared conformance/aitest harness, and registers the new egress proxy command.
New Features
conformance/aitestprovides a fake Claude CLI, a scripted chat upstream, and a test stack that runs locally or over coordinator and workers.- New suites cover agent tools (skills, MCP servers, tool limits), the agent node (CLI flags, tool bridge, auth and rate-limit retries), and chat tool calling with
with.dags. conformance/harnessgains thread-safe process output, AI endpoint seeding, untrusted-step isolation configuration, and a restricted-user host check.api/v1/api.yamlandapi.gen.goare regenerated for the updated routes.