Configuration
LumenFlow is configured via .lumenflow.config.yaml in your project root.
Minimal Config
Section titled “Minimal Config”version: '1.0'
lanes: - name: Core paths: ['src/**']
gates: format: true lint: true typecheck: true test: trueFull Config
Section titled “Full Config”version: '1.0'
# Optional: Project nameproject: my-project
# Lane definitionslanes: - name: Core wip_limit: 1 paths: - src/core/** - src/domain/**
- name: UI wip_limit: 2 paths: - src/components/** - src/pages/**
- name: Infrastructure wip_limit: 1 paths: - infra/** - .github/**
# Gate configurationgates: format: true lint: true typecheck: true test: true
# Or with custom commands:# gates:# format:# command: pnpm prettier --check .# lint:# command: pnpm eslint src/# typecheck:# command: pnpm tsc --noEmit# test:# command: pnpm vitest run
# Directory locationsdirectories: wu_specs: docs/tasks/wu backlog: docs/tasks/backlog.md stamps: .beacon/stamps
# Git settingsgit: main_branch: main branch_pattern: 'lane/{lane}/{wu_id}'
# Worktree settingsworktree_pattern: 'worktrees/{lane}-{wu_id}'
# Memory layer settingsmemory: checkpoint_interval: 30 # minutes max_checkpoints: 10 auto_checkpoint: trueConfig Reference
Section titled “Config Reference”version
Section titled “version”Required. Config schema version.
version: '1.0'project
Section titled “project”Optional. Project name for display.
project: my-awesome-appRequired. Lane definitions.
lanes: - name: Core # Lane name wip_limit: 1 # Max WUs in progress (default: 1) paths: # File paths for auto-detection - src/core/**| Field | Type | Default | Description |
|---|---|---|---|
name | string | required | Lane identifier |
wip_limit | number | 1 | Max concurrent WUs |
paths | string[] | [] | Glob patterns for lane detection |
Required. Quality gate configuration.
Simple (auto-detect)
Section titled “Simple (auto-detect)”gates: format: true lint: true typecheck: true test: trueCustom commands
Section titled “Custom commands”gates: format: command: pnpm prettier --check . required: true lint: command: pnpm eslint src/ required: true typecheck: command: pnpm tsc --noEmit required: true test: command: pnpm vitest run required: trueAdditional gates
Section titled “Additional gates”gates: format: true lint: true typecheck: true test: true security: command: pnpm audit --audit-level=high required: false # Warning only e2e: command: pnpm playwright test required: truedirectories
Section titled “directories”Optional. Override default directories.
directories: wu_specs: docs/tasks/wu # Where WU YAMLs live backlog: docs/tasks/backlog.md # Backlog file stamps: .beacon/stamps # Completion stamps| Field | Default | Description |
|---|---|---|
wu_specs | docs/tasks/wu | WU YAML directory |
backlog | docs/tasks/backlog.md | Backlog file path |
stamps | .beacon/stamps | Stamp directory |
Optional. Git configuration.
git: main_branch: main branch_pattern: 'lane/{lane}/{wu_id}'| Field | Default | Description |
|---|---|---|
main_branch | main | Primary branch name |
branch_pattern | lane/{lane}/{wu_id} | Branch naming pattern |
worktree_pattern
Section titled “worktree_pattern”Optional. Worktree directory pattern.
worktree_pattern: 'worktrees/{lane}-{wu_id}'Available variables:
{lane}– Lane name (lowercase){wu_id}– WU identifier (lowercase)
memory
Section titled “memory”Optional. Memory layer configuration.
memory: checkpoint_interval: 30 # Auto-checkpoint interval (minutes) max_checkpoints: 10 # Max checkpoints per WU auto_checkpoint: true # Enable auto-checkpointingEnvironment Overrides
Section titled “Environment Overrides”Config values can be overridden via environment variables:
LUMENFLOW_MAIN_BRANCH=develop pnpm wu:done --id WU-001| Variable | Overrides |
|---|---|
LUMENFLOW_CONFIG | Config file path |
LUMENFLOW_MAIN_BRANCH | git.main_branch |
LUMENFLOW_WU_SPECS | directories.wu_specs |
Validation
Section titled “Validation”Validate your config:
pnpm exec lumenflow validateChecks:
- YAML syntax
- Required fields present
- Lane names unique
- Paths are valid globs
Next Steps
Section titled “Next Steps”- WU Schema – WU YAML structure
- CLI Reference – All commands