Search

Changelog

On this page

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Unreleased

[0.12.1] - 2026-11-23

[0.12.0] - 2026-11-23

Added

  • step.completed and step.failed events carry cost_usd: what the provider charged for the step, taken from its own stream (part.cost for opencode, total_cost_usd for claude). The transcript’s step.completed payload keeps the same value as cost_usd, so a recorded run can be priced later. Providers that report no price leave it at zero, and the field is omitted from JSON.

[0.11.10] - 2026-11-16

[0.11.10] - 2026-11-16

[0.11.9] - 2026-11-14

[0.11.8] - 2026-11-02

[0.11.7] - 2026-10-30

[0.11.6] - 2026-10-28

[0.11.5] - 2026-10-27

[0.11.4] - 2026-10-27

[0.11.3] - 2026-10-23

[0.11.2] - 2026-10-22

[0.11.1] - 2026-10-20

[0.11.0] - 2026-06-22

Changed

  • F108: F107 facade completion — routed all four interfaces (CLI, TUI, HTTP, ACP) through ports.WorkflowFacade.Run + RunSession.Events() as the sole execution path, delivering F107’s “single core” promise. The facade event model (ports.Event + ProjectEvent) is enriched with typed payload structs (EnrichedStepPayload, EnrichedMessagePayload, EnrichedInputRequest, EnrichedTerminal) carrying step name, message content, error message, duration, and InputRequest prompt losslessly from transcript.ExchangeEvent typed payloads (StepPayload, MessagePayload, ToolPayload) — no transcript/infra types leak into the domain layer. CLI Adapter.Status is now backed by application.SessionRegistry.Get plus a history.db fallback so awf status <id> resolves both live and completed runs (replacing the prior not-found stub); awf list/history/resume/resume-list/validate route through cfg.Facade.*. TUI run action calls RunWorkflowViaFacade and consumes Events() directly, eliminating the 200ms tickMsg/executionPollMsg poll loop. HTTP POST /api/workflows/{scope}/{name}/run executes via the facade and registers the returned RunSession in application.SessionRegistry (wired to SessionLookup via a thin adapter) so SSE subscribers resolve the session synchronously by run ID. ACP dispatchViaFacade is wired through ACPSessionService.SetFacade in acp_serve.go with one WorkflowFacade constructed per ACP session (per-session stateStore rooted at acpSessionStateDir(sessionID)) preserving the F105 state-isolation pattern; projectFacadeEvents projects EventInputRequired to a session/update carrying the prompt before parking, and facadeEventToUpdate now emits the actual assistant text instead of ev.RunID. Duplicate no-op recorders (cli.nopRecorder, tui.tuiNopRecorder) are consolidated into a single transcript.NopRecorder in internal/infrastructure/transcript/. Legacy execution paths deleted: ACP runner.Run branch in HandleSessionPrompt, internal/infrastructure/acp/input_reader.go, CLI interactiveExec + direct execSvc.RunWithWorkflowAndRunID call, TUI bridge.RunWorkflow + tickMsg/executionPollMsg + scheduleTick, and the legacy HTTP run path through Bridge.StartExecution (Bridge.activeExecutions is preserved for List/Get/Cancel metadata). wiring_transcript.AttachMirrorSubscriber migrated to consume RunSession.Events() keeping SC-001 (“only Adapter.newSession calls Recorder.Subscribe”) clean. .go-arch-lint.yml updated for the new edges (interfaces/cli → infrastructure/transcript, application → ports for enriched payloads) and stale edges removed. Conformance goldens (tests/fixtures/facade/{cli-stdout,acp-session-update,sse-frames,tui-tea-msg}.golden) drive TestFacadeConformance_4Interfaces; TestFacadeE2E_CtxCancelProducesWorkflowFailed and TestFacadeResume_RestoresState are green; per-session/per-run ACP state isolation is verified by TestACP_ConcurrentSessionsNoStateCollision under -race. Iso-functional from the user’s perspective — no output regression and no YAML schema change. Unblocks F109 (tools hardening).
  • F105: ACP server migrated from the homegrown pkg/acpserver/ JSON-RPC engine (~1620 LOC across 10 files) to the official github.com/coder/acp-go-sdk v0.13.0, wrapped in a new internal/infrastructure/acp/ adapter package implementing acp.Agent with the four wired methods (Initialize, NewSession, Prompt, Cancel) and seven typed “method not supported” stubs (Authenticate, LoadSession, SetSessionMode, SetSessionModel, ExtMethod, ExtNotification, CancelNotification). The awf acp-serve lifecycle is rebuilt around acp.NewAgentSideConnection(agent, os.Stdout, os.Stdin) + <-conn.Done() with conn.SetLogger(stderr) keeping stdout exclusively for protocol frames. ports.ACPClient.RequestPermission is now live, wired through internal/infrastructure/acp/permission.go to conn.RequestPermission, with the stdout serialization invariant preserved under concurrent SessionUpdate + RequestPermission traffic (mirroring the legacy TestServer_OutboundWritesDoNotInterleave guarantee). Domain ACPHandlerError taxonomy (ACPErrInvalidParams, ACPErrInternal, ACPErrMethodNotFound, ACPErrUnsupportedContentBlock) stays in application/acp_errors.go and is mapped to SDK error variants by toACPError in internal/infrastructure/acp/errors.go. The SDK import is confined to internal/infrastructure/acp/ and jointly enforced by .go-arch-lint.yml (new go-sdk-acp vendor entry, infra-acp.canUse = [go-stdlib, go-sdk-acp]) and a new AST-based architecture_test.go mirroring the F104 MCP pattern. pkg/acpserver/ is fully deleted (10 files); internal/infrastructure/acp/message.go and acp_wiring.go:acpErrorCode() are removed as their bespoke types are subsumed by SDK SessionUpdate constructors and toACPError respectively. User-facing behavior is iso-functional with the legacy engine: editors (Zed, acp.nvim) see identical session lifecycle, slash-command discovery, multi-turn parking, and approval-gate semantics. Panic isolation via SDK-independent defer recover() wrapper with named returns (fmt.Sprintf("panic recovered: %v", r), no stack trace exfiltration). Adapter test coverage > 85% with make test-race green. SDK 0.x risk and rollback rationale documented in ADR-020, which supersedes the pkg/acpserver/ implementation detail of ADR-018 (the ACP protocol and per-session subprocess topology decisions in ADR-018 stand unchanged). Unblocks F107 (facade refactor) and F108 (Axis B permission gate).

Fixed

  • F103: Codex provider output parity — state.Output and ConversationResult.Output for the codex provider now contain clean aggregated assistant text instead of raw NDJSON, regardless of output_format value (json, stream-json, text, or absent), closing the gap left by B015 in 0.7.1 which only covered Claude, Gemini, and OpenCode. Aggregation is presence-aware: when the NDJSON stream contains ≥1 assistant_message event, the extracted text overwrites Output (empty assistant_message yields Output == ""); when no events are parsed (plain-text mocks, pre-result lifecycle events only), the base output is preserved. state.Response and ConversationResult.Response are now populated via tryParseJSONResponse on the aggregated assistant text when it is a valid JSON object — matching Gemini/OpenCode semantics. Estimated token recount runs on the extracted text rather than the raw NDJSON length. Conversation parity achieved through a Codex-targeted override in ExecuteConversation plus an extractTextContent hook wired into cliProviderHooks; base provider and other CLI providers (Claude, Gemini, OpenCode, GitHub Copilot) are bit-identical. NUL bytes, multi-event streams, empty assistant messages, and non-JSON plain text are all handled without panic or truncation. Workflow authors can now reference {{.states.codex_step.Output}} and {{.states.codex_step.Response}} with the same semantics as other providers, unblocking multi-step workflows that pipe Codex output downstream.

[0.10.0] - 2026-06-01

Changed

  • F101: HTTP API workflow routes restructured around a (scope, name) two-segment URL grammar to support pack-workflow execution. New routes: GET /api/workflows/{scope}/{name}, POST /api/workflows/{scope}/{name}/run, POST /api/workflows/{scope}/{name}/validate. The scope sentinel local addresses non-pack workflows (e.g. /api/workflows/local/deploy-prod/run); the vendor (pack) name serves as scope for pack workflows (e.g. /api/workflows/speckit/specify/run). WorkflowSummary gains additive scope and workflow fields alongside the canonical name so clients can build operation URLs directly without splitting on /. Breaking (F097 not yet released): the previous single-segment routes /api/workflows/{name}[/run|/validate] are removed; clients targeting F097 routes must migrate. OpenAPI 3.1 document at /openapi.json reflects the new path parameters automatically. SSE event streaming at /api/executions/{id}/events is unaffected (keyed by execution UUID).
  • F101: Pack loader (internal/infrastructure/workflowpkg/) now rejects manifests whose name matches the reserved scope tokens local or global with a structured USER.INPUT.VALIDATION_FAILED error containing pack_name and reserved_tokens in the details map. Enforcement is single-source at the manifest validator and applies on install, on discovery listing, and on any future pack-aware code path. Names that merely contain or prefix-share with reserved tokens (localpack, globalpack, run, validate) remain valid.

Fixed

  • F101: Pack workflows are now executable over the HTTP API. F097 advertised pack workflows in GET /api/workflows but the single-segment {name} placeholder in chi could not match canonical identifiers containing / (e.g. speckit/specify), so every action endpoint returned 404 Not Found. The new (scope, name) grammar resolves pack identifiers natively and restores parity between GET /api/workflows listing and the read/run/validate operations.
  • F101: TUI Workflows tab no longer panics when a user triggers validation on a pack-sourced workflow. Pack entries carry Name == "packName/workflowName" while the resolved workflow value object only knows the bare name, so the internal wfMap lookup missed and handleValidate dereferenced a nil pointer. The validate handler now forwards the fully-qualified entry name (already accepted by the validation service) — same approach used by the existing nil guard in handleLaunch.
  • F101: Workflow pack manifests with traversal-style names are now rejected. Manifest.Validate previously applied ^[a-z][a-z0-9-]*$ only to the pack name; entries in the workflows: list reached filepath.Join unchecked, so a manifest declaring workflows: ["../../etc/passwd"] could escape workflowsDir to whatever file happened to exist at the resolved path. The same regex is now enforced on every workflow name during validation. The pack discoverer adds defense-in-depth, silently skipping packs and workflow entries whose names fail the regex even when validation is bypassed.

Breaking Changes

  • F100: Dedicated roles/ namespace for agent roles — the environment variable for overriding role search paths is renamed from AWF_AGENTS_PATH to AWF_ROLES_PATH. All role discovery now happens exclusively under roles/-namespaced directories. Migration guide for users upgrading from F098:
    • Environment variable: rename AWF_AGENTS_PATH → AWF_ROLES_PATH in shell profiles, CI scripts, and Docker environments.
    • Local project directory: move .awf/agents/<role>/ → .awf/roles/<role>/. The old .awf/agents/ path is no longer searched.
    • Cross-client local directory: move .agents/<role>/ (flat, at root) → .agents/roles/<role>/. Roles stored directly under .agents/ without the roles/ sub-namespace are no longer discovered.
    • Cross-client global directory: move ~/.agents/<role>/ → ~/.agents/roles/<role>/. Same sub-namespace requirement as above.
    • XDG global directory: $XDG_CONFIG_HOME/awf/roles/ path is unchanged (was not previously a dedicated path; roles were found via the old AWF_AGENTS_PATH override only).
    • Workflows referencing roles by name (e.g. role: go-senior) will fail at validation or execution time with ErrRoleNotFound until the role directories are migrated to the new namespace. Path-based refs (e.g. role: ./path/to/role) are unaffected as long as the referenced path still exists.

Added

  • F098: Agent role injection via AGENTS.md — new optional role: <name-or-path> field on agent steps loads <role-dir>/AGENTS.md, strips YAML frontmatter, and injects the body as system_prompt (Claude native --system-prompt; CLI providers via existing first-turn concat). Role discovery searches in strict priority order: AWF_ROLES_PATH (exclusive override), .awf/roles/, .agents/roles/, $XDG_CONFIG_HOME/awf/roles/, ~/.agents/roles/. Explicit path references supported (relative to workflow file, absolute, tilde-expanded); role value is interpolated (role: {{.inputs.persona}}) before discovery. When combined with inline system_prompt, the role content is prepended (<role>\n\n<inline>). Works in both mode: single and mode: conversation — three injection sites (executeAgentStep, executeResumableAgentCall, ConversationManager.ExecuteConversation) unified through a single ComposeSystemPrompt helper. awf validate reports hard errors for missing role directories / missing AGENTS.md and non-blocking warnings for empty bodies, AGENTS.md > 500KB, and combined role + system_prompt > 10KB. Path-traversal patterns (..) rejected during validation. New error code USER.INPUT.MISSING_ROLE. Backward compatible: agent steps without role: behave identically to pre-F098. Implementation mirrors the existing skills mechanism (new AgentRole entity, AgentRoleRepository port, internal/infrastructure/roles/ adapter, SetAgentRoleRepository() optional wiring). Roles establish who the agent is (system prompt); skills define what it knows (user-prompt XML block) — orthogonal channels by design
  • F097: HTTP REST API server (awf serve) — new internal/interfaces/api/ adapter alongside cli/ and tui/ exposing workflow discovery (GET /api/workflows, GET /api/workflows/{name}, POST /api/workflows/{name}/validate), async execution (POST /api/workflows/{name}/run returning 202 + execution_id), lifecycle control (GET /api/executions, GET /api/executions/{id}, DELETE /api/executions/{id}, POST /api/executions/{id}/resume), Server-Sent Events streaming (GET /api/executions/{id}/events emitting step.started, step.completed, step.failed, workflow.completed, workflow.failed, output), and history queries (GET /api/history, GET /api/history/stats); Huma v2 + chi v5 generate OpenAPI 3.1 spec served at /openapi.json, /openapi.yaml, and Swagger UI at /docs; Bridge adapter pattern mirrors tui/bridge.go with sync.Map tracking active executions; SSE polling at 200ms cadence matching TUI; graceful shutdown via signal.NotifyContext waits up to 30s for active streams; default binding 127.0.0.1:2511 (loopback-only, non-loopback opt-in via --host); arch-lint enforces interfaces-api may import only application/ and domain/* (no infrastructure/, cli/, or tui/); see ADR-016

[0.9.0] - 2026-05-14

Added

  • F096: Agent skills integration — workflow steps declare skills via skills: [skill-name] or skills: [path: ./custom/skill] YAML syntax; AWF discovers skills from AWF_SKILLS_PATH env var, <project>/.awf/skills/, <project>/.agents/skills/, <project>/.claude/skills/, and global XDG/home directories with defined priority; SKILL.md frontmatter (YAML header between --- delimiters) is stripped to extract markdown body; skill content is injected into provider prompt context before the user prompt using agentskills.io structured wrapping format with skill directory path, relative path resolution hint, and <skill_resources> enumeration of bundled files (without eager loading); awf validate checks all skill references for existence and warns on empty SKILL.md files; circular skill references and frontmatter parsing are explicitly out of scope for v1; skill content is loaded synchronously and deterministically (no model-driven activation)

Changed

  • F095: Deterministic step display ordering in CLI execution summary — --- Execution Details ---, step stdout/stderr blocks, and buildStepInfos now display steps in workflow-defined order (following Initial → default transitions → OnSuccess) instead of non-deterministic Go map iteration; new domain-level ExecutionOrder(*Workflow) []Step and NextDefaultStep(*Step) string functions in internal/domain/workflow/graph.go provide a single source of truth for default-path graph traversal; TUI’s private orderedSteps/nextStepName deleted and replaced by delegation to the domain functions; CLI display functions (showExecutionDetails, showStepOutputs, showEmptyStepFeedback, buildStepInfos) accept *workflow.Workflow parameter and iterate via ExecutionOrder() output; showEmptyStepFeedback switched from direct execCtx.States access to thread-safe GetStepState per-step lookup
  • F094: Unified token counting via ports.Tokenizer port — all CLI-based agent providers (Claude, Gemini, Codex, GitHub Copilot, OpenCode) now count tokens through an injected Tokenizer interface instead of inline len(output)/4 helpers; default ApproximationTokenizer preserves identical behavior; eliminates mutation side-effect on shared conversation turn state during input token estimation; dead estimateTokens/estimateInputTokens helpers removed; enables future swap to real token counting (e.g., tiktoken, stream-extracted counts) by changing a single injection point

[0.8.1] - 2026-05-11

  • F093: Add dangerously_skip_permissions alias for –allow-all for Github Copilot agent

[0.8.0] - 2026-05-09

Fixed

  • F084: Bound StreamFilterWriter line buffer to 10 MB — prevents silent stream abort on oversized NDJSON events from agent providers. When a single event exceeds 10 MB, a structured warning is logged with the line size and maximum cap; stream processing continues for subsequent events. Includes benchmarks verifying no throughput regression on normal-sized input (~200 B lines).

Added

  • F089: GitHub Copilot agent provider — new github_copilot provider implementing AgentProvider interface via the copilot CLI binary; single-turn execution (-p <prompt> --output-format=json --silent), multi-turn conversation support (--resume=<session-id>), CLI flag mapping for model (--model), mode (--mode: interactive/plan/autopilot), effort (--effort: low/medium/high), tool permissions (--allow-tool, --deny-tool, --allow-all); JSONL streaming display event parsing; option validation for mode and effort enums at awf validate time; graceful fallback to stateless mode when session ID extraction fails; registered in RegisterDefaults() as 6th provider; authenticate via copilot login or environment variables (COPILOT_GITHUB_TOKEN, GH_TOKEN)
  • F088: Terminal User Interface (TUI) — awf tui launches a full-screen Bubble Tea dashboard with five tabs: Workflows (filterable list with launch/validate actions), Monitoring (real-time execution tree with status icons and live log viewport via 200ms tick polling of ExecutionContext), History (browse past executions from SQLite with filtering by name/status/date), Agent Conversations (Glamour-rendered Markdown chat view), and External Logs (fsnotify-based live tailing of Claude Code JSONL session files); TUI lives in internal/interfaces/tui/ as a new interface adapter bridging to existing WorkflowService, ExecutionService, and HistoryService via async tea.Cmd factories; secret masking applied to all views; terminal state restored on exit/panic/signal; requires 256-color terminal support (graceful fallback to basic ANSI)
  • F085: Unified display-event abstraction across all agent providers — replaces per-provider LineExtractor function-field with a DisplayEventParser returning structured DisplayEvent values (discriminated by EventText and EventToolUse kinds); all 6 providers (Claude, Codex, Gemini, GitHub Copilot, OpenCode, OpenAI-Compatible) now emit events through the same parser contract; single interfaces-layer RenderEvents renderer with two display modes: default (text only, byte-equivalent to F082 behaviour) and verbose (text + tool-use markers in [tool: Name(Arg)] format); well-known tools (Read, Write, Edit, Bash, Grep, Glob, Task) display concise markers with argument truncation (≤ 40 chars); unknown tool names degrade gracefully; parser implementations return plain strings with no ANSI escapes (rendering concerns confined to interfaces layer); output_format: json bypasses event parsing entirely for raw passthrough; DisplayOutput aggregation on AgentResult/ConversationResult preserved via text-event concatenation
  • F085: Unified display-event abstraction across all agent providers — replaces per-provider LineExtractor function-field with a DisplayEventParser returning structured DisplayEvent values (discriminated by EventText and EventToolUse kinds); all 5 providers (Claude, Codex, Gemini, OpenCode, OpenAI-Compatible) now emit events through the same parser contract; single interfaces-layer RenderEvents renderer with two display modes: default (text only, byte-equivalent to F082 behaviour) and verbose (text + tool-use markers in [tool: Name(Arg)] format); well-known tools (Read, Write, Edit, Bash, Grep, Glob, Task) display concise markers with argument truncation (≤ 40 chars); unknown tool names degrade gracefully; parser implementations return plain strings with no ANSI escapes (rendering concerns confined to interfaces layer); output_format: json bypasses event parsing entirely for raw passthrough; DisplayOutput aggregation on AgentResult/ConversationResult preserved via text-event concatenation
  • F090: Plugin Event System — inter-plugin and core event reactivity via gRPC EventService with unary HandleEvent RPC; in-process EventBus with dot-segment glob pattern matching (workflow.*, step.*, *.*) and per-plugin buffered channels (256 events) for isolation; ExecutionService emits 7 lifecycle events (workflow.started, workflow.completed, workflow.failed, step.started, step.completed, step.failed, step.retrying); inter-plugin event routing via HandleEventResponse.emitted_events with cycle detection (max propagation depth 3); SDK EventSubscriber interface with Patterns() and HandleEvent() methods; BasePlugin no-op defaults preserve backward compatibility (existing plugins unaffected); plugin manifest events capability with subscribe and emit pattern declarations; EventBus wired through InitSystem → RPCPluginManager.SetEventBus() → WithEventPublisher SetupOption → ExecutionService

Changed

  • F087: awf history now displays full workflow execution IDs without truncation — UUIDs are shown in their complete 36-character form so they can be copied directly into downstream commands (awf status <id>, awf logs <id>); workflow names are also displayed in full; table rendering migrated from fixed-width fmt.Fprintf to text/tabwriter for auto-sizing columns, matching the pattern used by other table outputs

[0.7.1] - 2026-04-27

Fixed

  • B015 (#318): Stream-json NDJSON output is now correctly extracted into state.Output for all CLI agent providers (Claude, Gemini, OpenCode). Previously, on hosts with SessionStart hooks (claude-mem, superpowers, zpm, etc.) — or any environment producing pre-result lifecycle events — agent steps with output_format: json failed with output format processing: invalid JSON: invalid character '{' after top-level value. Providers now always extract the agent’s response from the NDJSON stream so applyOutputFormat parses the actual content instead of the wire envelope.

[0.7.0] - 2026-04-17

Breaking Changes

  • F083: Conversation mode redesigned as an interactive user-driven loop — removes all automated multi-turn fields (max_turns, max_context_tokens, strategy, stop_condition, inject_context) and the initial_prompt agent field. Workflows using these fields now fail YAML parsing silently (fields ignored); update them as follows:
    • initial_prompt: X → use prompt: X (serves as the first user message in conversation mode)
    • conversation.max_turns, conversation.max_context_tokens, conversation.strategy, conversation.stop_condition, conversation.inject_context → remove all five; the user now drives turn count and exit by typing into stdin (empty line, exit, or quit)
    • mode: conversation now requires a terminal (reads from stdin) and the ConversationManager adds a StdinInputReader wiring os.Stdin/os.Stdout; headless/CI usage must pipe stdin (e.g., echo "" | awf run ...)
    • Only conversation.continue_from is preserved, for cross-step session resume
    • New StopReasonUserExit replaces the removed StopReasonCondition, StopReasonMaxTurns, StopReasonMaxTokens constants
  • F083: conversation: sub-struct now usable in mode: single (the default) to opt a step into session tracking — a plain agent step with conversation: {} runs provider.ExecuteConversation once (no interactive loop), establishing a session that downstream steps can resume via continue_from; without the sub-struct, mode: single behaves exactly as before (no session, no tracking); this changes the semantic of conversation: from “conversation mode only” to “session tracking marker”
  • F081: Codex model validation is stricter — only models with prefixes gpt-, codex-, or o-series pattern (e.g., o1, o3-mini) are accepted; workflows using non-OpenAI models (e.g., code-davinci, text-davinci) will fail validation; update YAML to use valid OpenAI model names or switch to a different provider
  • F079: Stored ConversationState.SessionID values from prior runs are invalidated for Gemini and Codex — old sentinel values ("latest", "last", codex-* prefixed IDs) do not match any real session and cause resume to skip (safe fallback to stateless mode); no migration needed, conversations restart cleanly on first run after upgrade
  • F078: CLI provider invocation flags updated to match current binary APIs — Claude and Gemini output_format: json now maps to --output-format stream-json (was --output-format json); Codex invocation changed from codex --prompt "<prompt>" --quiet to codex exec --json "<prompt>"; quiet option removed from Codex (silently ignored); Codex conversation resume changed from codex resume <id> --prompt "<prompt>" to codex resume <id> --json "<prompt>"; workflows using output_format: json require no YAML changes (mapping is automatic); workflows using quiet: true for Codex should remove the option (no-op)
  • F077: Option keys normalized to snake_case — allowedTools renamed to allowed_tools, dangerouslySkipPermissions renamed to dangerously_skip_permissions in workflow YAML; old camelCase keys are silently ignored (Go map miss); dangerously_skip_permissions fails closed (permissions not skipped), allowed_tools fails open (no tool restriction applied); update existing workflow files to use the new snake_case keys

Added

  • F082: Human-readable streaming output for agent steps — when running with awf run --output streaming, agent responses now display as clean text instead of raw NDJSON; output_format field controls filtering (text/none formats filter NDJSON, json format passes through raw); buffered mode (--output buffered) displays filtered text in post-execution summary; raw NDJSON always preserved in state.Output for template interpolation; --output silent remains silent regardless of output_format; per-provider extractors implemented for Claude (parses content_block_delta events) with stubs for Gemini/Codex/OpenCode
  • F081: Model validation by prefix/pattern for Gemini and Codex providers — Gemini validates that model starts with gemini- (enables use of any Gemini model without CLI updates); Codex validates model against prefixes gpt-, codex-, or o-series pattern (o followed by digit, e.g., o1, o3-mini); validation errors include format guidance to guide correction
  • F078: OpenCode --model flag support — model option in workflow YAML now passed as --model <value> to OpenCode CLI in both Execute and ExecuteConversation; OpenCode always passes --format json for structured output
  • F077: dangerously_skip_permissions support for Gemini (--approval-mode=yolo) and Codex (--yolo) providers — unified permission bypass key works across all three agent providers (Claude, Gemini, Codex)
  • F076: awf upgrade self-update command — checks latest release on GitHub, downloads platform-specific binary, verifies SHA256 checksum, and atomically replaces the current executable; --check reports available updates without installing; --version v0.5.0 installs a specific version; --force upgrades even if already on latest or running a dev build; heuristic warning when binary appears managed by a package manager (homebrew, apt, snap, nix); cross-filesystem fallback (copy + chmod) when os.Rename fails; GITHUB_TOKEN env var supported for rate-limited environments

Changed

  • F080: Extract shared baseCLIProvider from 4 CLI agent providers (Claude, Gemini, Codex, OpenCode) — consolidates duplicated Execute and ExecuteConversation orchestration logic into a single implementation with per-provider hooks (buildExecuteArgs, buildConversationArgs, extractSessionID, extractTextContent, validateOptions); fixes TokensEstimated inconsistency (now always true for CLI provider Execute results); normalizes empty output guard (" " fallback) in ExecuteConversation across all providers; no public API changes, no new exported symbols; net reduction of ~400 lines of duplicated code

Fixed

  • F079: Fix session resume for Gemini, Codex, and OpenCode CLI providers — replaced dead extractSessionIDFromLines text pattern extraction (searched for "Session: <id>" which no provider emits) with per-provider JSON extraction matching real provider output (session_id from Gemini type: "init", thread_id from Codex type: "thread.started", sessionID from OpenCode type: "step_start"); force --output-format stream-json for Gemini in ExecuteConversation; remove fabricated codex- prefix logic; OpenCode falls back to -c (continue last session) when JSON extraction fails; multi-turn conversation resume now works correctly for all 4 CLI providers
  • B014: Resolve provider field through interpolation engine in agent steps — provider: "{{.inputs.agent}}" was passed as a literal string to the registry instead of being resolved; now interpolated before lookup in both executeAgentStep and ExecuteConversation paths; resolution errors include step name context

Removed

  • F079: Dead extractSessionIDFromLines helper removed from agent helpers — searched for text pattern "Session: <id>" that no CLI provider emits; replaced by per-provider JSON extraction methods; fabricated codex- prefix detection and stripping logic removed from Codex provider
  • F078: Dead validation helpers validatePrompt(), validateContext(), validateState() removed from agent helpers — all were no-ops or unreachable after provider refactoring
  • F077: Dead helper functions getWorkflowID() and getStepName() removed from agent helpers — keys workflowID/stepName were never injected by any caller; workflow and step fields removed from Claude provider audit log (redundant with execution service context)

0.6.0 - 2026-04-05

Fixed

  • B013: Wire ConversationManager into ExecutionService — conversation mode workflows (mode: conversation) were always failing with "conversation manager not configured" because the manager was never instantiated in the CLI layer; all conversation features (session resume, continue_from, inject_context, stop conditions) now function end-to-end

Added

  • C073: awf workflow list displays installed packs with name, version, source, and public workflow names; (local) pseudo-entry shows .awf/workflows/ discovery; awf workflow info <pack> shows manifest details, per-workflow descriptions, plugin install status, and embedded README; awf workflow update <pack> downloads newer versions from GitHub Releases with atomic replace preserving user overrides in .awf/prompts/<pack>/ and .awf/scripts/<pack>/; awf workflow update --all checks and updates all installed packs
  • C073: awf list extended with pack workflows displayed as pack/workflow namespace prefix and pack source label
  • C073: Plugin dependency warnings during awf workflow install and awf workflow info — non-blocking stderr warnings with actionable install commands when packs declare plugin dependencies
  • C073: awf workflow search [query] discovers workflow packs on GitHub via awf-workflow topic, with optional keyword filter and JSON output
  • C072: awf run pack/workflow namespace syntax — 3-tier path resolution (user override → pack embedded → global XDG) for workflow execution; pack_name available in {{.awf.pack_name}}; call_workflow supports pack-aware references via SplitCallWorkflowName()
  • C071: Workflow pack format and installation — awf workflow install owner/repo[@version] downloads packs from GitHub Releases with SHA-256 checksum verification, manifest validation (name, version, awf_version constraint, workflow file existence), and atomic installation to .awf/workflow-packs/<name>/; --global installs to ~/.local/share/awf/workflow-packs/; awf workflow remove <pack> deletes installed packs; state.json tracks source metadata; plugin dependency warnings emitted during install

Changed

  • C073: Extracted duplicated GitHub helpers (checksum parsing, API base URL doer, text download) from workflow_cmd.go and plugin_cmd.go into pkg/registry/ — ExtractChecksumForAsset(), NewGitHubAPIDoer(), and Download() replace inline implementations
  • C070: Extracted transport layer from internal/infrastructure/pluginmgr/ into shared pkg/registry/ package — version parsing, GitHub Releases client, and download/checksum/extraction utilities are now reusable across plugin and workflow pack systems; zero behavioral change to existing plugin commands

0.5.0 - 2026-03-30

Breaking Changes

  • C069: Plugin capability commands renamed to step_types — update plugin.yaml manifests declaring capabilities: [commands] to use capabilities: [step_types]; commands was never implemented and has no runtime behavior to migrate
  • F070: Replaced custom agent provider with openai_compatible — provider: custom workflows fail validation with migration guidance; use provider: openai_compatible with base_url and model
  • C059: Removed unimplemented github.set_project_status operation — workflows using it now fail at validation instead of runtime
  • C058: Removed ntfy and slack notification backends — use webhook backend instead (supports ntfy, Slack, Discord, Teams, PagerDuty via URL + headers + body)
  • C057: Removed deprecated Tokens field from step state — use TokensUsed (unreplaced references silently evaluate to 0)
  • B001: Expression context normalized to PascalCase — output → Output, exit_code → ExitCode, etc. Validation errors provide suggestions
  • F050: State property references in templates require uppercase: .Output, .Stderr, .ExitCode, .Status
  • BadgerDB replaced with SQLite for history storage — existing history not migrated
  • Args field removed from ports.Command struct (was unused)

Added

Agent & Conversation

  • F075: inject_context appends interpolated context to user prompts on turns 2+ in conversation steps
  • F074: continue_from resumes a prior step’s session — CLI providers hand off session ID, openai_compatible loads turn history
  • F073: Multi-turn CLI provider session resume — claude, codex, gemini, opencode maintain context across turns via native session flags
  • F070: openai_compatible agent provider for any Chat Completions API endpoint (OpenAI, Ollama, vLLM, Groq, LM Studio)
  • F065: output_format field for agent steps — json (accessible via {{.states.step.JSON.field}}) or text
  • F063: prompt_file loads external prompt files with path resolution and interpolation (1MB limit)
  • F033: mode: conversation enables multi-turn agent interactions with context window management, stop conditions, and token tracking
  • F032: type: agent invokes AI CLI tools (Claude, Codex, Gemini, OpenCode) with prompt interpolation and response parsing

Operations & Plugins

  • C069: Plugin validator capability — plugins implementing sdk.Validator run custom workflow validation rules during awf validate; results display with severity icons (✗ error, ⚠ warning, ℹ info); per-plugin timeout (default 5s via --validator-timeout); crashes treated as timeouts; results deduplicated by (message + step + field)
  • C069: Plugin step type capability — plugins implementing sdk.StepTypeHandler register custom type: values for workflow steps; unknown types routed to matching plugin at runtime; step output accessible via {{states.step_name.Output}} and {{states.step_name.Data.key}}; first-registered-wins on name conflicts; step type registrations cached at plugin init
  • C069: config: field on workflow steps — passes structured configuration to custom step type plugins (separate from inputs: context interpolation)
  • C069: --skip-plugins flag on awf run and awf validate — bypasses plugin validators and step type resolution; awf run fails with clear error when workflow contains a custom step type
  • C069: --validator-timeout flag on awf validate — sets per-plugin validation timeout (default 5s)
  • C068: Plugin registry with awf plugin install/update/remove/search — download from GitHub Releases with SHA-256 checksum verification, atomic installation, version constraints, pre-release support, gh auth token fallback, and SOURCE column in awf plugin list
  • C067: External plugin gRPC transport via HashiCorp go-plugin — RPCPluginManager starts real plugin processes, sdk.Serve() entry point for plugin authors, echo example plugin in examples/plugins/ (ADR-015)
  • C066: Built-in operation providers (GitHub, HTTP, Notify) visible in awf plugin list with --operations flag
  • F058: http.request operation for declarative REST API calls (GET/POST/PUT/DELETE, timeout, retry, response capture)
  • F056: notify.send operation with desktop and webhook backends, template interpolation
  • F054: GitHub CLI plugin with 8 operations (get_issue, get_pr, create_pr, create_issue, add_labels, list_comments, add_comment, batch)
  • F057: Operation interface and registry foundation for plugin operations
  • F021: Plugin system with discovery, enable/disable management, SDK, and RPC isolation

Workflow Features

  • F068: Exit code-based transition routing — when conditions evaluated on non-zero exit paths
  • F066: Inline on_failure shorthand — {message: "...", status: N} instead of named terminal states
  • F064: script_file loads external shell scripts with path resolution and interpolation
  • F043: Nested loop execution with {{.loop.Parent.*}} access to outer variables
  • F042: Loop context variables: Index, Index1, Item, First, Last, Length
  • F037: Dynamic variable interpolation in max_iterations, while, until, break_when
  • F023: call_workflow for sub-workflow composition with input/output mapping
  • F017: Workflow templates with use_template: and parameter overrides
  • F016: for_each and while loop constructs with max_iterations and break_when
  • F015: Conditional branching with when: clauses and comparison operators
  • F011: Retry with exponential/linear/constant backoff, jitter, and retryable exit codes
  • F010: Parallel step execution with all_succeed, any_succeed, best_effort strategies
  • F009: State machine with on_success/on_failure transitions and continue_on_error

CLI & Usability

  • F072: Hugo documentation site with Doks theme, FlexSearch, dark/light mode
  • F071: Structured JSONL audit trail ($XDG_DATA_HOME/awf/audit.jsonl)
  • C060: awf init creates .awf/scripts/ directory with example script
  • C048: Actionable error hints with “Did you mean?”, line/column refs, resolution steps (--no-hints to suppress)
  • C047: Structured error codes (CATEGORY.SUBCATEGORY.SPECIFIC) with awf error <code> lookup
  • F046: Interactive input collection — prompts for missing inputs with enum lists and validation
  • F045: awf diagram generates DOT/PNG/SVG workflow visualizations
  • F044: XDG prompt discovery with awf list prompts and @prompts/ prefix in --input
  • F039: awf run workflow.yaml --step=step_name for single step execution with --mock
  • F036: awf init scaffolding and .awf/config.yaml for project-level input defaults
  • F035: awf run <workflow> --help shows workflow-specific input parameters
  • F020: Interactive mode (--interactive) with pause-before-each-step and breakpoints
  • F019: Dry-run mode (--dry-run) shows execution plan without running commands
  • F014: awf history with filters and --stats
  • F013: awf resume for interrupted workflow continuation
  • F012: Input validation with types, patterns, enums, min/max, file checks

Changed

  • C065: OpenAI Compatible provider uses max_completion_tokens — max_tokens accepted as deprecated fallback
  • C064: max_delay omission no longer caps retry delays to zero; multiplier defaults to 2.0; invalid durations now produce parse errors
  • C063: Added index1 and parent to loop accessor; modulo operator supported in max_iterations
  • C061: Timeout ownership centralized in application layer; handleExecutionError evaluates transitions before continue_on_error
  • YAML parsing reports all errors instead of silently skipping malformed steps

Fixed

  • B011: {{.awf.scripts_dir}} and {{.awf.prompts_dir}} in command: and dir: fields now resolve local-before-global
  • B010: awf validate no longer rejects {{.states.<step>.JSON.<field>}} references
  • B009: script_file honors shebang lines — scripts with #! use kernel dispatch instead of $SHELL -c
  • B008: Ctrl+C no longer hangs during interactive input prompts
  • B007: Interactive and dry-run modes now respect .awf/config.yaml input defaults
  • B006: Shell commands no longer fail on Debian/Ubuntu where /bin/sh is dash — detects $SHELL at startup
  • B005: Local scripts and prompts override global XDG paths in script_file and prompt_file
  • B004: Validator no longer forces dead-code transitions on parallel branch children
  • B003: While loop break_when evaluates correctly with arbitrary output values
  • B002: Agent provider processes no longer persist as orphans after workflow cancellation
  • F051: Multi-turn conversations resolve prompts correctly past first turn
  • F049: awf init no longer creates unused storage/ directories
  • F048: Loop body transitions honored — goto targets and early exit work in while/foreach loops
  • F047: ForEach loop items serialize complex types as JSON instead of Go default format
  • Bug-48: Multiple awf processes can run workflows simultaneously (SQLite WAL mode)
  • JSONStore race condition on concurrent Save operations

View original on GitHub