Files
cleveragents-core/robot
freemo 00951dd750 fix(config): remove undocumented LOCAL scope from ConfigLevel/ConfigScope enums and resolve() chain
The specification defines exactly 5 configuration precedence levels:
  1. CLI flag
  2. Environment variable
  3. Project-scoped config (config.toml in project root)
  4. Global config file (~/.cleveragents/config.toml)
  5. Built-in default

The implementation had an undocumented 6th level (LOCAL scope / config.local.toml)
inserted between env var and project-scoped config. This creates a spec deviation
that may cause user confusion and hidden reliance on undocumented behavior.

Changes:
- Remove LOCAL = 'local' from ConfigLevel enum (now has 5 spec-defined levels)
- Remove LOCAL = 'local' from ConfigScope enum (now has 2 spec-defined scopes)
- Remove local_config_path property from ConfigService
- Remove read_local_config() method from ConfigService
- Update read_merged_config() to merge only global and project scopes
- Update write_scoped_config() to remove LOCAL scope branch
- Update set_value() to remove LOCAL scope branch
- Update resolve() to implement 5-level chain (remove Level 3 local config)
- Update config_set CLI to reject --scope local as invalid
- Remove config.local.toml from DEFAULT_IGNORE_PATTERNS in context_service
- Update all BDD feature files and step definitions to reflect 5-level chain

Closes #3432

---
**Automated by CleverAgents Bot**
Supervisor: Implementation | Agent: ca-issue-worker
2026-05-30 17:35:11 -04:00
..