Diagnostics and output
EVIN diagnostics are structured inside the process and rendered for a human terminal. The CLI does not currently expose a JSON or JSON Lines diagnostic mode.
Diagnostic model
| Field | Type | Meaning |
|---|---|---|
title | string | Short localized or action-provided heading |
code | locale key plus named string arguments | Stable lookup identity or custom runtime message |
severity | Error, Warning, or Info | Rendering class; default is Error |
hint | optional string | Suggested correction |
location | optional path or byte span | Source file context used by the snippet renderer |
A location is either a path with optional line/column values or a byte offset and length with an optional label. When source text is available, the UI maps the location to a cropped code frame.
× Error [issue-invalid-stage] Invalid task stage
│
│ .evin/workspace.flow
│ ...source context...
│
◇ hint: choose one of the declared stages
The exact wording and symbols vary with locale, terminal width, and color support.
evin check embeds these structured diagnostics inside its Workspace › Check
frame. Each affected manifest is marked with ×, followed immediately by its
fenced configuration findings. Configuration and template locations produce
source snippets; dependency graph errors use the same diagnostic fence but may
omit a snippet when the resolved graph does not retain an exact source span.
Selector mistakes use the compact discovery failure format because they do not
originate in a manifest.
Normal execution applies the same native-action contract to the selected target
graph during configuration resolution. A malformed with: payload therefore
fails Resolving configuration before task execution begins.
Pipeline presentation modes
| Mode | Enable with | Additional information |
|---|---|---|
| Normal | default | Phase/task progress and failures |
| Verbose | --verbose | Captured output from successful tasks and detailed sync/init resources |
| Debug | --debug or EVIN_LOG=debug | Workspace discovery, DAG edges, non-root task working directories, environment keys, subprocess start/finish, durations, and footer flags |
| Dry run | --dry-run | Planned shell/action operations and uncertainty from skipped work |
Debug records are rendered as human-readable pipeline entries such as
[E_601] command=...; they are not a stable machine serialization contract.
Task output and failures
ESH command output is captured and forwarded into the pipeline reporter. EVIN keeps stdout and stderr as distinct stream labels internally, redacts known secret values, and can show command output when a task fails or verbose mode is enabled.
A non-zero ESH or external-command status fails the task. Dependents are not started, and EVIN exits non-zero. Cancellation produces an aborted workflow and requests tree-wide process cleanup.
Execution traces (trace.json)
Non-dry-run executions record structured waterfall telemetry in standard Chrome and Perfetto compatible trace files:
Workspace root trace (
.evin/trace.json): Captures the complete execution waterfall across every phase and task in the run, thread slot lanes, dependency flow edges, and an index of all written module traces.Scoped module traces (
<module>/.evin/trace.json): Each module touched during a run receives an independent trace containing only the task spans, step spans, and dependency edges relevant to that module. Modules not touched by a given run retain their previous trace untouched.Run correlation: Every trace file written during a run shares a common
runIdin its top-levelotherDatametadata.Execution metrics: Spans include queue wait times (
queuedUs), ready timestamps (readyUs), step timings, execution status, and worker slot IDs (tid) reflecting true task concurrency.Atomic publication: Trace writes use temporary files and atomic renames to prevent partial reads by file watchers or IDE tooling. Runs with no executed tasks record
outcome: "empty"on the root trace without overwriting module traces.
Redaction boundary
EVIN loads redactable values from .env, common secret-like host variable
names, and variables marked type: secret in
.evin/environment.json. Known values at least four characters long are
replaced with *** in captured output. ESH task outputs written to
EVIN_STATE under secret-like keys are also registered before the runner logs
captured stdout and stderr. The downstream task gets a separate redactor seeded
with those known values and with secret-like values from its direct dependency
outputs. E_605 reports the number of replacements performed across captured
stream lines; E_604 lists registered output key names without including values.
Credentials kept only in ESH local variables do not enter EVIN's redactor. To
pass a dynamically fetched credential to a dependent task and redact it there,
publish it through EVIN_STATE using a secret-like key such as API_TOKEN.