conformance: Add service run history and service DAG state (part 12 of 12)
Stack 40/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 16 files changed, 1914 insertions(+), 0 deletions(-).
Checked: on branch agentstack/40-service-history-12 at commit 10c1d251d. gofmt -l on the changed Go files: pass (5 changed Go files, none listed); go build ./...: pass (13s); go vet of the changed packages: pass (1 packages with their tests 1s); go fix -embedlit=false -diff of the changed packages: pass (no diff 1s); golangci-lint run (repository configuration) on the changed packages: pass (1 packages, repo .golangci.yml 10s); golangci-lint run with GOOS=windows CGO_ENABLED=0 on the changed packages: pass (CGO_ENABLED=0 11s); GOARCH=386 CGO_ENABLED=0 go vet of the changed packages: pass (changed packages with their tests 1s); GOOS=windows CGO_ENABLED=0 go vet of the changed packages: pass (changed packages with their tests, cross-compiled 1s); the changed conformance/spec097_* package with go test -v -count=1 and DAGU_BIN set: pass (13 tests pass, 0 skipped, 0 fail, 100s, as root in a container (heavy check: GitHub runs it with the label full-ci)).
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 12 of 12 of the subject. This PR holds 13 files of conformance tests, 2 files of UI tests, 1 files of examples and deployment files.
Why
A service DAG runs for years. Its history must outlive the retention of run records. Real code dependencies: PRs 05, 10, 22, 29, 30, 34, 37. All previous PRs of the stack are also its base.
Changes
Counts: 1 existing files modified, 15 new files (15 tests or test data).
conformance/spec097_service_run_history: 13 files (events_test.go,helpers_test.go,queries_test.go,samples_test.go, ...)examples/service-check.yaml: 1 file (service-check.yaml)ui/src/pages: 1 file (skills.test.tsx)ui/src/styles: 1 file (global.test.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
Lands the workspace and agent stack in this PR: step secrets, restricted-user isolation for untrusted steps, the egress proxy, AI endpoints and MCP servers, the AI gateway, skills, the agent.run node, agent tools, agent workers, and the conformance suites for specs 090–096 along with service run history (spec 097).
New Features
agent.rundrives a CLI agent whose DAG tools reach it through an MCP tool bridge; chat steps use the endpoint block and the tool map.- The old
toolslist of chat steps is replaced by the spec 090 tool map, with the old form deprecated. - Agent workers run as a restricted user inside coordinator pools and use an egress proxy that injects provider keys.
- Skills load as plain files into chat and agent prompts (spec 096).
- Service DAGs gain run history and DAG state, covered by a new conformance suite.
Behavior
- Untrusted steps fail closed unless isolation is configured, and reserved secret refs are now rejected by
dagu validate. - Proxy URL credentials are redacted from configuration errors; the limits of untrusted IDs print as int64 for 32-bit builds.