ui: Add service run history and service DAG state (part 7 of 12)
Stack 35/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 67 files changed, 5715 insertions(+), 493 deletions(-).
Checked: on branch agentstack/35-service-history-7 at commit e1c5303a6. pnpm typecheck: pass (65s); pnpm exec eslint on the changed files: pass (67 files); pnpm exec prettier --check on the changed files: pass (67 files); pnpm exec vitest run --maxWorkers=3 (changed tests, tests of the touched directories, tests that import a changed file): pass (526 passed (526); 9198 passed | 6 expected fail (9204); 454s [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 7 of 12 of the subject. This PR holds 45 files of UI components and features, 22 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, 09, 10, 29, 30, 31, 33, 34. All previous PRs of the stack are also its base.
Changes
Counts: 42 existing files modified, 25 new files (22 tests or test data).
ui/src/features/workflow-workspace/messages: 18 files (ag1.ts,ar1.ts,cf1.ts,ci1.ts, ...)ui/src/features/workflow-workspace/continuous: 11 files (ContinuousPanel.tsx,EventsList.tsx,SamplesChart.tsx,SamplesPanel.tsx, ...)ui/src/features/dags/components: 7 files (ActivityBars.tsx,ServiceActivityStrip.tsx,ServiceActivityStrip.test.tsx,activityBars.test.ts, ...)ui/src/features/visual-editor/run: 6 files (outputCache.test.ts,reuseSource.test.ts,useCaptureStepOutputs.test.tsx,outputCache.ts, ...)ui/src/features/workflow-workspace/data: 5 files (useRunHistory.test.tsx,useVisibleRuns.test.tsx,useRunHistory.ts,useServiceDag.ts, ...)ui/src/features/workflow-workspace/dock: 4 files (DockContext.tsx,RunTimelineControls.tsx,DockContext.test.tsx,runTimelineModel.ts)ui/src/features/workflow-workspace/step: 4 files (InputsUsed.test.tsx,useReuseSource.test.tsx,useReuseSource.ts,useStepRunActions.ts)ui/src/features/visual-editor/references: 2 files (UpstreamDataPanel.cache.test.tsx,UpstreamDataPanel.reused.test.tsx)ui/src/features/workflow-workspace: 2 files (WorkspaceLoading.tsx,rangePresets.ts)ui/src/features/workflow-workspace/bar: 2 files (RunActionsCluster.tsx,RunActionsCluster.test.tsx)ui/src/features/workflow-workspace/canvas: 2 files (useOpenStepDetails.test.tsx,useOpenStepDetails.ts)ui/src/features/workflow-workspace/layout: 2 files (WorkspaceLayout.tsx,WorkspaceLayout.test.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
Continues the service run history and service DAG state UI (part 7 of 12) and brings the conformance suites for specs 090–096 with a shared test harness.
Conformance
- Adds the
aitestpackage with a fake Claude CLI, an mTLS coordinator/worker relay stack, and a fake model upstream. - Adds black-box suites for agent tools, agent node, tool calling, and the AI gateway, plus strict configuration checks for the
agent_tools,worker_pools, anddispatchersblocks. - Switches the chat executor to the new tool map, makes validation warn that the old provider method is deprecated, and rejects
ai/secret refs atdagu validatetime instead of only at run time. - Redacts proxy URL credentials (user info becomes
xxxxx) in config startup errors. - Fixes the 32-bit build (untrusted ID limits as
int64) and skips POSIX-only checks on Windows; process output is now readable while the command still runs.