# awslabs/aidlc-workflows architecture

> Architecture diagram of the GitHub repository awslabs/aidlc-workflows, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/awslabs/aidlc-workflows
- Repository: https://github.com/awslabs/aidlc-workflows
- Video tour (about a minute): https://gitdiagram.com/awslabs/aidlc-workflows/video

## Overview

AI-DLC is a harness-neutral framework that guides AI coding assistants through a structured, approval-gated software-delivery lifecycle. The principal workflow begins when a user invokes the configured assistant, proceeds through the shared engine’s workflow stages, and produces reviewed, auditable delivery work. The README documents phases, stages, profiles, agents, approvals, audit history, and persistent knowledge. The graph preserves those capabilities and the documented harness adapters; most internal call relationships are unverified in the sampled source, so those links are dashed rather than asserted.

Main entry points: [`core/tools/aidlc.ts`](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc.ts) (Workflow engine), [`harness`](https://github.com/awslabs/aidlc-workflows/tree/main/harness) (Assistant harnesses), [`core/tools/aidlc-construction-checkpoints.ts`](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-construction-checkpoints.ts) (Construction stages), [`core/tools/aidlc-command.ts`](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-command.ts) (CLI commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Harness entry"]
  node_harnesses["Assistant harnesses"]
  node_harness_manifest["Harness manifests<br/>[manifest-types.ts]"]
  node_core_cli["CLI commands<br/>[aidlc-command.ts]"]
end

subgraph group_engine["Workflow engine"]
  node_engine_entry["Workflow engine<br/>[aidlc.ts]"]
  node_construction["Construction stages"]
  node_profiles["Workflow profiles<br/>[aidlc-tiers.ts]"]
  node_model_policy["Agent policy"]
end

subgraph group_governance["Review and governance"]
  node_review_brief["Review evidence"]
  node_review_records["Review records"]
  node_review_freeze["Review freeze"]
  node_freeze_command["Freeze checks"]
  node_reviewer_scope["Reviewer scope"]
  node_sensors["Workflow sensors<br/>[aidlc-sensor.ts]"]
end

subgraph group_state["State and knowledge"]
  node_knowledge["Team knowledge<br/>[agent-knowledge.ts]"]
  node_audit["Audit trail<br/>[aidlc-audit.ts]"]
  node_state_store[("Workflow state<br/>[aidlc-state.ts]")]
  node_runtime_paths["Runtime paths"]
  node_locks["Workflow locks<br/>[aidlc-locks.ts]"]
end

subgraph group_extensions["Integrations"]
  node_issue_report["Issue reporting"]
  node_plugins["Optional plugins"]
end

node_user(("Developer"))

node_user -->|"invokes workflow"| node_harnesses
node_harnesses -->|"uses shared engine"| node_engine_entry
node_harnesses -.->|"configures harness"| node_harness_manifest
node_harnesses -.->|"routes commands"| node_core_cli
node_core_cli -.->|"dispatches workflow"| node_engine_entry
node_engine_entry -.->|"runs stages"| node_construction
node_engine_entry -.->|"selects profiles"| node_profiles
node_engine_entry -.->|"applies agent policy"| node_model_policy
node_engine_entry -.->|"persists workflow state"| node_state_store
node_engine_entry -.->|"records events"| node_audit
node_engine_entry -.->|"uses team knowledge"| node_knowledge
node_construction -.->|"supports review"| node_review_brief
node_review_brief -.->|"reads review records"| node_review_records
node_engine_entry -.->|"enforces reviewer scope"| node_reviewer_scope
node_engine_entry -.->|"enforces review gates"| node_review_freeze
node_review_freeze -->|"checks write targets"| node_freeze_command
node_construction -.->|"validates workflow"| node_sensors
node_construction -.->|"supports issue reporting"| node_issue_report
node_engine_entry -.->|"extends optionally"| node_plugins
node_engine_entry -.->|"resolves runtime paths"| node_runtime_paths
node_engine_entry -.->|"coordinates locks"| node_locks

click node_harnesses "https://github.com/awslabs/aidlc-workflows/tree/main/harness"
click node_harness_manifest "https://github.com/awslabs/aidlc-workflows/blob/main/scripts/manifest-types.ts"
click node_core_cli "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-command.ts"
click node_engine_entry "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc.ts"
click node_construction "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-construction-checkpoints.ts"
click node_profiles "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-tiers.ts"
click node_model_policy "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-model-policy.ts"
click node_knowledge "https://github.com/awslabs/aidlc-workflows/blob/main/scripts/agent-knowledge.ts"
click node_audit "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-audit.ts"
click node_state_store "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-state.ts"
click node_runtime_paths "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-runtime-paths.ts"
click node_locks "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-locks.ts"
click node_review_brief "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-review-brief.ts"
click node_review_records "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-review-records.ts"
click node_review_freeze "https://github.com/awslabs/aidlc-workflows/blob/main/core/hooks/aidlc-review-freeze.ts"
click node_freeze_command "https://github.com/awslabs/aidlc-workflows/blob/main/core/hooks/review-freeze-command.ts"
click node_reviewer_scope "https://github.com/awslabs/aidlc-workflows/blob/main/core/hooks/aidlc-reviewer-scope.ts"
click node_sensors "https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-sensor.ts"
click node_issue_report "https://github.com/awslabs/aidlc-workflows/tree/main/core/skills/aidlc-issue-report/scripts"
click node_plugins "https://github.com/awslabs/aidlc-workflows/tree/main/plugins"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_harnesses,node_harness_manifest,node_core_cli toneBlue
class node_engine_entry,node_construction,node_profiles,node_model_policy toneAmber
class node_review_brief,node_review_records,node_review_freeze,node_freeze_command,node_reviewer_scope,node_sensors toneMint
class node_knowledge,node_audit,node_state_store,node_runtime_paths,node_locks toneRose
class node_issue_report,node_plugins,node_user toneIndigo
```

## Components

### Harness entry

- [Assistant harnesses](https://github.com/awslabs/aidlc-workflows/tree/main/harness): `harness`
- [Harness manifests](https://github.com/awslabs/aidlc-workflows/blob/main/scripts/manifest-types.ts): `scripts/manifest-types.ts`
- [CLI commands](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-command.ts): `core/tools/aidlc-command.ts`

### Workflow engine

- [Workflow engine](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc.ts): `core/tools/aidlc.ts`
- [Construction stages](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-construction-checkpoints.ts): `core/tools/aidlc-construction-checkpoints.ts`
- [Workflow profiles](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-tiers.ts): `core/tools/aidlc-tiers.ts`
- [Agent policy](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-model-policy.ts): `core/tools/aidlc-model-policy.ts`

### Review and governance

- [Review evidence](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-review-brief.ts): `core/tools/aidlc-review-brief.ts`
- [Review records](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-review-records.ts): `core/tools/aidlc-review-records.ts`
- [Review freeze](https://github.com/awslabs/aidlc-workflows/blob/main/core/hooks/aidlc-review-freeze.ts): `core/hooks/aidlc-review-freeze.ts`
- [Freeze checks](https://github.com/awslabs/aidlc-workflows/blob/main/core/hooks/review-freeze-command.ts): `core/hooks/review-freeze-command.ts`
- [Reviewer scope](https://github.com/awslabs/aidlc-workflows/blob/main/core/hooks/aidlc-reviewer-scope.ts): `core/hooks/aidlc-reviewer-scope.ts`
- [Workflow sensors](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-sensor.ts): `core/tools/aidlc-sensor.ts`

### State and knowledge

- [Team knowledge](https://github.com/awslabs/aidlc-workflows/blob/main/scripts/agent-knowledge.ts): `scripts/agent-knowledge.ts`
- [Audit trail](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-audit.ts): `core/tools/aidlc-audit.ts`
- [Workflow state](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-state.ts): `core/tools/aidlc-state.ts`
- [Runtime paths](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-runtime-paths.ts): `core/tools/aidlc-runtime-paths.ts`
- [Workflow locks](https://github.com/awslabs/aidlc-workflows/blob/main/core/tools/aidlc-locks.ts): `core/tools/aidlc-locks.ts`

### Integrations

- [Issue reporting](https://github.com/awslabs/aidlc-workflows/tree/main/core/skills/aidlc-issue-report/scripts): `core/skills/aidlc-issue-report/scripts`
- [Optional plugins](https://github.com/awslabs/aidlc-workflows/tree/main/plugins): `plugins`

### Other components

- **Developer**

## Connections

- Developer → Assistant harnesses: invokes workflow (evidence: `README.md`)
- Assistant harnesses → Workflow engine: uses shared engine (evidence: `README.md`)
- Assistant harnesses → Harness manifests: configures harness (evidence: `harness/codex/emit.ts`)
- Assistant harnesses → CLI commands: routes commands (evidence: `harness/codex/emit.ts`)
- CLI commands → Workflow engine: dispatches workflow
- Workflow engine → Construction stages: runs stages
- Workflow engine → Workflow profiles: selects profiles
- Workflow engine → Agent policy: applies agent policy
- Workflow engine → Workflow state: persists workflow state
- Workflow engine → Audit trail: records events
- Workflow engine → Team knowledge: uses team knowledge
- Construction stages → Review evidence: supports review (evidence: `core/tools/aidlc-construction-checkpoints.ts`)
- Review evidence → Review records: reads review records
- Workflow engine → Reviewer scope: enforces reviewer scope
- Workflow engine → Review freeze: enforces review gates
- Review freeze → Freeze checks: checks write targets (evidence: `core/hooks/aidlc-review-freeze.ts`)
- Construction stages → Workflow sensors: validates workflow
- Construction stages → Issue reporting: supports issue reporting
- Workflow engine → Optional plugins: extends optionally
- Workflow engine → Runtime paths: resolves runtime paths
- Workflow engine → Workflow locks: coordinates locks
