AGENTS.md@internal/modules/automate · git:20260905.797d07c · 2026-09-05 · sha256 654606e102b3b7c2

AGENTS.md@internal/modules/automate git:20260905.797d07cA

Immutable. This exact content is served forever at /api/v1/blob/654606e102b3b7c2.

# Automate Module

JSON APIs for named functions, pipelines, and workflows. Web UI for the same domains lives under [`internal/modules/web`](../web/) (`/service/web/...`). Repo-wide standing orders: root [AGENTS.md](../../../AGENTS.md). Parent: [../AGENTS.md](../AGENTS.md). Merge: [note](../../../.agents/notes/implemented/simplification/2026-09-05-merge-automate-modules.md).

## Entry points

- Module config key: `modules.automate` (`enabled` defaults true when omitted).
- Routes (mounted from one `Webservice()`):
  - `/service/automate/functions/*` — `function:*` scopes
  - `/service/automate/pipeline/*` — `pipeline:*` scopes
  - `/service/automate/workflow/*` — `workflow:*` scopes
- E2E: `InitForE2E` / `MountForE2E`.

## Boundaries

- Handlers call `pkg/functions`, `pkg/pipeline`, `pkg/workflow` active services only — no store SQL, no provider clients.
- Do not mount these JSON APIs from the web module.

## Testing

```bash
go test ./internal/modules/automate/...
```