51 Commits
Author SHA1 Message Date
Yota Hamada 189cc011ae feat: add DAG-level retry policy (#1774) 2026-03-15 22:44:03 +09:00
Yota Hamada 88a9f297bd refactor: rename abort handler contract to onAbort (#1764) 2026-03-13 20:00:13 +09:00
Yota Hamada 200bd7a75b feat: propagate schedule time through DAG run lifecycle (#1763) 2026-03-13 19:48:48 +09:00
Yota Hamada b581118067 chore: add GPL-3.0 license headers to source files
Add copyright and SPDX license identifier headers to all Go source
files, test files, shell scripts, and proto files.
2026-03-09 18:38:11 +09:00
Ofer Herman 84a7f97d55 fix: SubDAG step shows no "View Sub DAG Run" link while child DAG is … (#1748) 2026-03-09 10:46:08 +09:00
Yota Hamada 8f70874950 feat: add DAG_RUN_WORK_DIR special environment variable (#1735) 2026-03-08 00:19:20 +09:00
Yota Hamada 41b5945d9b fix: zombie detector now reads full status from attempt before overwriting (#1734) 2026-03-07 23:32:16 +09:00
Yota Hamada b5df396d90 feat: remote agent (#1707) 2026-02-28 10:20:27 +09:00
Yota Hamada af945910c9 feat: support for agent soul (#1696) 2026-02-22 18:27:22 +09:00
Yota Hamada 1dd37c2d80 feat: wiring agent skills (#1689) 2026-02-19 23:01:50 +09:00
Yota Hamada de49170913 refactor: streamline agent package structure (#1683) 2026-02-15 23:33:11 +09:00
Yota Hamada 4de003c524 feat: agent step type (#1681) 2026-02-15 21:38:50 +09:00
Yota Hamada f460e2e1bb feat: adopt DAG schema to snake_case (#1670) 2026-02-14 18:09:40 +09:00
Yota Hamada 4251b14d09 fix(#1658): parallel + call doesn't split expanded positional params (#1665) 2026-02-14 03:01:58 +09:00
Yota Hamada 8a67644e84 feat: default execution mode (#1642) 2026-02-07 22:47:56 +09:00
Yota Hamada 4027aa4075 feat: restrict OS env expansion to DAG env (#1632) 2026-02-05 16:19:15 +09:00
Yota Hamada a7dd40daf6 fix: Disallow depends for type: chain mode to prevent transient cycle with injected edges (#1622)
Resolves #1618
2026-02-02 20:06:44 +09:00
Yota Hamada a5a5c59df8 feat: Trigger visibility (#1612)
* **New Features**
* Track and surface a DAG run "trigger type" (manual, scheduler,
webhook, sub‑DAG, retry, unknown) across API, CLI, and UI.
  * UI: new trigger-type indicator shown in DAG status overview.

* **Improvements**
  * CLI: options to specify trigger type when starting/enqueueing runs.
* Better error aggregation and more consistent audit logging for DAG and
webhook actions.
2026-01-27 19:16:03 +09:00
Yota Hamada ecb3a72e25 feat: enhance ssh executor with workingDir and script support (#1605)
* **New Features**
  * SSH timeout configuration and bastion/jump-host support
  * SFTP transfer executor for upload/download of files and directories
  * Improved SSH script execution and working-directory handling
  * Enhanced secret resolution and safer panic-to-error reporting
2026-01-24 01:19:46 +09:00
Yota Hamada 39e3f6434b feat: add S3 integration support (#1590)
* **New Features**
* Added S3 object storage support with upload, download, list, and
delete operations for AWS S3 and S3-compatible services.
* DAG-level S3 configuration enables default credentials and settings
inheritance across workflow steps.

* **Tests**
  * Added comprehensive integration tests for S3 operations with MinIO.
2026-01-19 01:08:36 +09:00
Yota Hamada ce036b8344 feat: isolate environment variables of workers (#1581)
* **New Features**
* Restore DAGs from prior runs while preserving params and environment
context.
* Immutable, layered environment scope with source provenance and secret
masking.
* Context-aware variable expansion and command substitution (scope- and
JSON-path-aware).
* Server can accept a pre-bound listener; reporter supports structured
mail configuration.

* **Bug Fixes**
* Sensitive fields (env, params, credentials, SMTP/SSH, container env)
excluded from JSON output.

* **Refactor**
* Many build-time expansions deferred to runtime for safer, predictable
evaluation.
2026-01-16 10:45:10 +09:00
Yota Hamada e623f5d556 feat: enhance stability of distributed execution (#1580)
* **New Features**
  * Added shared-nothing worker mode for distributed deployments.
* Improved remote progress display with terminal width awareness and
worker ID truncation.

* **Bug Fixes**
* Enhanced error handling for lost coordinator connections with
consecutive error tracking.
  * Added file sync for improved data durability in status writes.

* **Configuration**
* Added configurable retry behavior for coordinator connections
(MaxRetries and RetryInterval with exponential backoff).

* **Style**
  * Removed excess padding from table containers in DAG details UI.
2026-01-15 01:13:00 +09:00
Yota Hamada 1557b14f23 worker: fix problems in shared nothing worker (#1573)
* **New Features**
* Added distributed DAG execution support with coordinator integration
for remote execution on worker nodes.
* Introduced live remote progress display with spinner animation for
distributed DAG runs.
  * Added DAG run cancellation support for distributed executions.
  * Enabled real-time scheduler log streaming to coordinator.
  * Implemented graceful shutdown handling via SIGINT/SIGTERM signals.

* **Improvements**
* Automatic worker ID derivation from hostname when not explicitly
configured.
  * Enhanced log file error handling with proper 404 detection in UI.
2026-01-13 00:37:31 +09:00
Yota Hamada ed2da6bbbb feat: shared-nothing worker (#1564)
* **New Features**
* Distributed execution: remote status pushing, per-step log streaming,
pluggable log writer factory, queued-run support.
* Static coordinator discovery via new CLI/env flag and static registry;
remote task handler for workers and temp-DAG helper.
* Coordinator RPCs to report status, stream logs, and query sub-run
status.

* **Bug Fixes**
* Improved zombie detection, graceful shutdown, and cancellation
handling via heartbeat directives; safer resource cleanup.

* **Tests**
* Extensive new and updated unit/integration tests for remote workflows,
logs, status, retries, and cancellations.
2026-01-11 16:37:42 +09:00
Yota Hamada 50f5f25ed3 fix: evaluate environment variables and secrets in mail configs (#1559)
Fix #1557 

* **New Features**
* Added support for environment variable and secret expansion in mail
configurations (SMTP, error mail, info mail, and wait mail).
* Mail configurations are now evaluated early in execution, with
validation for proper resolution of all variables and secrets.
2026-01-09 10:51:43 +09:00
Yota Hamada a74d401388 feat(core): waiting status (#1554)
* **New Features**
* Added Human-In-The-Loop (HITL) approval workflow: pause DAGs at
designated steps awaiting manual approval or rejection.
* Introduced "Waiting for approval" and "Rejected" statuses for
workflows and steps.
* New approval and rejection APIs with optional input fields and
rejection reasons.
  * Added wait-status notifications and event handlers.
  * UI modals for approving/rejecting steps with dynamic configuration.
  * Dashboard now displays metrics for waiting and rejected DAG runs.
2026-01-04 18:22:00 +09:00
Yota Hamada 4930f41044 feat(core): add chat executor type (#1548)
* **New Features**
* LLM/chat executor for AI-powered steps with multi-provider support and
streaming responses
* DAG-level LLM config with inheritance and per-step overrides
(provider, model, system prompt, generation params)
* Persisted chat messages and context passing for multi-turn
conversations across steps

* **Bug Fixes / Reliability**
* Improved LLM/message validation and defaulting to prevent
misconfiguration and ensure consistent behavior
2026-01-04 18:08:49 +09:00
Yota Hamada e6cf9a3a08 fix(cli): simplify TUI output (#1551)
* **New Features**
* Redesigned progress display for workflow execution with real-time
tracking of step completion, progress percentage, elapsed time, and
execution status.
2026-01-02 12:46:42 +09:00
Yota Hamada 8dd3bcaf5c feat(all): add shell field for ssh config (#1546)
* **New Features**
- SSH now supports optional shell configuration for remote command
execution; shell can be specified at DAG or step level with proper
precedence handling.
- Added controls for variable expansion behavior in command evaluation.

* **Bug Fixes**
- Improved Docker container timeout error reporting with clearer status
information.

* **Tests**
  - Expanded shell detection and command building test coverage.
  - Added comprehensive shell configuration precedence tests for SSH.
2026-01-01 23:11:47 +09:00
Yota Hamada b56f68b252 feat(cmd): add tree-style detailed result (#1545)
* **New Features**
* DAG status now renders as a hierarchical tree with terminal-aware
color and configurable rendering options.
* Robust log-tail reading added with size/line limits, binary detection,
and cleaned/truncated output.

* **Behavior Changes**
* Agent summaries and final output now use the unified tree renderer and
print directly to terminal when appropriate.
* Terminal logging is suppressed for certain agent commands to reduce
noisy progress output.

* **Style**
* Progress display now pauses for a keypress before revealing final
execution details.

* **Tests**
* Added comprehensive tests for rendering, log reading, durations, and
edge cases.
2026-01-01 21:09:18 +09:00
Yota Hamada fa6e876d60 feat(all): display worker ID for DAG-runs (#1527)
* **New Features**
* Worker identification now tracked and displayed for DAG runs
throughout the system
* DAG run list and details views show the worker that executed the run
(e.g., 'local' for local execution)
* Worker information exposed in API responses for DAG run details and
summaries
  * New worker parameter support for execution and retry operations
2026-01-01 01:04:56 +09:00
Yota Hamada a88b73f90a feat(all): add exec field for supporting external containers (#1522)
* **New Features**
* Execute commands inside existing running containers ("exec" mode) with
optional user, working directory, and env overrides.
* Container field accepts either a simple string (container name) or an
object configuration.

* **Bug Fixes / Reliability**
* Runtime now waits for target containers to be running and reports
clearer container states and errors.
  * Skips container creation when using exec mode.

* **Documentation**
* Schema updated to enforce mutual exclusivity between exec and image
and clarify field applicability.
2025-12-31 22:32:07 +09:00
Yota Hamada 4633850d2d feat(all): storing output data (#1511)
* **New Features**
* Added DAG run outputs API endpoint to retrieve execution outputs with
metadata
* New outputs visualization UI with search, filtering, and
copy-to-clipboard functionality
* Flexible output configuration supporting custom keys and omit options
  * Timeline view for DAG execution visualization

* **Improvements**
  * Automatic snake_case to camelCase conversion for output keys
  * Secret masking applied to collected outputs
* Metadata tracking includes DAG name, run ID, attempt ID, status, and
completion timestamp
2025-12-28 14:37:41 +09:00
Yota Hamada 3e9d49d1e0 feat(all): multiple commands syntax (#1506)
* **New Features**
* Steps can contain multiple commands executed sequentially; UIs and
runners display and run command lists.

* **Validation**
* Executors advertise capabilities and produce clearer errors when
features conflict or are unsupported (multi-command vs
sub-workflow/script/container).

* **API**
* Step payloads now use a commands list for command entries; legacy
single-command fields remain supported for compatibility.

* **Integration & UX**
* Schemas, APIs, reporting, and UI components updated to present and
handle the commands array.
2025-12-27 03:42:15 +09:00
Yota Hamada d87b8c6dff refactor(core/spec): restructure spec types and build logic (#1499)
* **Refactor**
* Simplified manifest/DAG build flow into a smaller, type-driven
pipeline and reduced public build surface; improved step dependency
handling and defaults.
  * Adjusted DAG name validation behavior.

* **New Features**
* Added typed YAML parsers (shell, env, schedule, ports, continue-on,
string-or-array, parallel) and improved multi-document/base-manifest
decoding.
* Load .env values earlier during runtime initialization to affect
secret resolution.

* **Tests**
* Vastly expanded unit and integration tests for YAML loading, step
building, params, schema resolution, secrets, parallelism, handlers, and
loader options.
2025-12-23 02:19:36 +09:00
Yota Hamada c72623154d feat(cmd): add cleanup command (#1489)
* **New Features**
* Added `cleanup` command to remove old DAG run history with
configurable retention periods
* Supports `--dry-run` flag to preview which runs would be removed
without deleting
  * Includes `--yes` flag to skip confirmation prompts
2025-12-16 23:36:24 +09:00
Yota Hamada fa9e41b999 refactor(config): load only necessary config for context (#1467)
* **New Features**
* Service-scoped configuration loader with explicit per-command flag
binding and a loader-based API.

* **Bug Fixes**
* More robust parsing of environment and key=value inputs; malformed
entries are ignored.
* Logging, TLS, peer, scheduler and timezone settings consistently read
from the new Core config namespace.

* **Refactor**
* Public config field renamed: Global → Core — update config files and
tools to use Core.* fields.
2025-12-10 00:31:08 +09:00
Yota Hamada 78844bf40a feat(spec): add init handler field (#1455)
* **New Features**
* Added an Init handler that runs (after preconditions) before workflow
steps; its status is surfaced and failure prevents steps from running.
  * Added a canonical Abort handler and retained Cancel as deprecated.
* Runtime and status now include OnInit nodes; option to skip inheriting
base handlers for sub-DAG runs.

* **Documentation**
* Schema updated to document init and abort hooks and lifecycle
ordering.

* **Tests**
* New integration tests for Init, abort/cancel behavior, skipping base
handlers, and lifecycle paths.
2025-12-07 04:31:18 +09:00
Yota Hamada 882b6ebbfa fix(runtime): decode log tail in proper encoding (#1449)
* **New Features**
* Logs and recent stderr tails now decode many encodings (Shift_JIS,
EUC-JP, ISO-8859-1, Windows-1252, GBK, Big5, EUC-KR, UTF-8); log
encoding can be specified.

* **Bug Fixes**
* Environment and secret propagation during execution setup improved so
secrets correctly override env vars and PATH handling preserved.

* **Tests**
* Added comprehensive tests covering multiple encodings and charset name
variants.
2025-12-06 22:53:40 +09:00
YotaHamada 8b340e63f6 fix(all): resolve working directory relative paths correctly (#1436)
- DAG-level relative `workingDir` now resolves against DAG file location
- Step-level relative `dir` now resolves against DAG's `workingDir`
2025-12-02 21:58:12 +09:00
YotaHamada ac06b5ecfb refactor(all): Refactor logging code to use typed attributes (#1422) 2025-11-24 05:40:46 +09:00
YotaHamada aba9c5d6f1 fix(service/queue): queue processing issues (#1419) 2025-11-23 22:13:57 +09:00
YotaHamada d4bc387a83 refactor(runtime):event driven loop (#1418) 2025-11-21 18:05:37 +09:00
YotaHamada 067e330cfc status: rename canceled state to aborted across CLI, API, and UI (#1405) 2025-11-11 23:54:43 +09:00
YotaHamada b6e390fed8 Adopt “Sub DAG” terminology across backend, UI, and docs (#1362) 2025-10-29 09:06:15 +09:00
YotaHamadaandCopilot 73855a282b Enhance distributed execution support (#1360)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-26 18:08:56 +09:00
YotaHamada 05fc6b02eb Fix distributed child DAG status propagation (#1358) 2025-10-24 19:26:37 +09:00
YotaHamada ab7f45156f exp: add GitHub Actions executor (#1309) 2025-10-20 22:14:25 +09:00
YotaHamadaandCopilot c861c6be41 runtime: align canonical status strings and expose DAG_RUN_STATUS to handlers (#1340)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-10-19 23:30:38 +09:00
YotaHamada 30f8a04144 feat: add DAG secret references with runtime resolution and masking (#1338) 2025-10-19 02:51:56 +09:00