Search

Architecture decisions

Understand the architecture decisions behind AWF, including execution, persistence, provider integrations, and the tradeoffs that shaped the CLI.

This directory contains the Architecture Decision Records (ADRs) for this project.

Format

Each ADR follows this structure:

# NNNN: Title

**Status**: Proposed | Accepted | Superseded | Deprecated
**Date**: YYYY-MM-DD

## Context       — What is the issue motivating this decision?
## Candidates    — Options considered with trade-offs
## Decision      — What we chose and why
## Consequences  — What becomes easier/harder
## Constitution Compliance — Mapping to project principles

Numbering Convention

ADRs are numbered sequentially: 001, 002, etc. Numbers are never reused. If a decision is reversed, the original ADR is marked “Superseded” and a new ADR is created with a reference.

Index

ADRTitleStatus
001Hexagonal ArchitectureAccepted
002Error Taxonomy with Exit CodesAccepted
003YAML State Machine for Workflow DefinitionAccepted
004Domain Operation Registry with Infrastructure CoexistenceAccepted
005Atomic File Writes for State PersistenceAccepted
006XDG-Compliant Path ResolutionAccepted
007Agent Prompt XOR ConstraintAccepted
008OpenAI-Compatible Provider: HTTP Adapter IntegrationAccepted
009Breaking: Removal of Custom Provider in v0.4.0Accepted
010Paired JSONL Audit Trail with Atomic AppendAccepted
011Application-Layer Secret Masking for Audit EventsAccepted
012Runtime Shell Detection with $SHELL Environment VariableAccepted
013Context-Aware Input PortsAccepted
014Shebang Execution for Script FilesAccepted
015gRPC via go-plugin as External Plugin TransportAccepted
016HTTP Interface Adapter with Huma v2 and SSE StreamingAccepted
017MCP Proxy via stdio Subprocess for Tool InterceptionAccepted
018ACP Transparent Agent Server via JSON-RPC 2.0 stdio SubprocessAccepted
019MCP Server Migration to Official go-sdkAccepted
020ACP Server Migration to Official coder/acp-go-sdkAccepted

Creating a New ADR

  1. Find the next number: ls docs/ADR/ | grep -oP '^\d+' | sort -n | tail -1 + 1
  2. Copy the template: cp docs/ADR/.template.md docs/ADR/NNNN-short-name.md
  3. Fill in all sections
  4. Update this index
  5. Submit for review

Pre-Merge Checklist

Before merging any new or modified ADR:

  • Cross-references: All [ADR-NNNN] links resolve to existing files
  • Supersession: If changing a prior decision, both ADRs have Supersedes/Superseded by metadata
  • Constitution: Compliance section maps to current constitution version
  • Candidates: At least 2 alternatives documented with trade-offs
All pages in this section

View original on GitHub