Skip to content

feat: configuration validation script (closes #1)#5

Merged
baramgay merged 2 commits into
mainfrom
feat/issue-1-config-validation
Jun 12, 2026
Merged

feat: configuration validation script (closes #1)#5
baramgay merged 2 commits into
mainfrom
feat/issue-1-config-validation

Conversation

@baramgay

Copy link
Copy Markdown
Owner

Summary

  • Adds scripts/validate_config.py — a standalone script that validates the agentops configuration before the server starts
  • Checks for required keys (machine_id, workspace_root) in config.local.json
  • Verifies workspace_root exists on disk
  • Reports missing agent folders under agents/
  • Exits with code 0 on success, 1 on failure; supports --config, --env, and --quiet flags
  • Integrated into scripts/setup.py via run_config_validation() — runs automatically at the end of first-time setup
  • README Quick Start updated with one-liner to validate at any time

Test plan

  • python scripts/validate_config.py exits 0 on a clean repo (no config.local.json is treated as defaults — not an error)
  • python scripts/validate_config.py --env exits 0, prints AGENTS_HOME warning when unset
  • python scripts/setup.py prints [OK] Configuration validation passed at the end
  • Create a config.local.json missing machine_id → script exits 1 and prints the missing-key error
  • Set workspace_root to a non-existent path → script exits 1 and prints the path error

Closes #1

Adds scripts/validate_config.py which checks required config keys
(machine_id, workspace_root), verifies paths exist on disk, reports
missing agent folders, and exits 0/1. Integrated into setup.py so it
runs automatically at the end of first-time setup.
@baramgay baramgay mentioned this pull request Jun 11, 2026
5 tasks
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@baramgay baramgay merged commit 3d890b7 into main Jun 12, 2026
0 of 2 checks passed
@baramgay baramgay deleted the feat/issue-1-config-validation branch June 12, 2026 00:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add configuration validation script

1 participant