Skip to content

Validate executor concurrency limits#4446

Open
MyTH-zyxeon wants to merge 1 commit into
orchestration-agent:mainfrom
MyTH-zyxeon:codex/executor-max-concurrent-4415
Open

Validate executor concurrency limits#4446
MyTH-zyxeon wants to merge 1 commit into
orchestration-agent:mainfrom
MyTH-zyxeon:codex/executor-max-concurrent-4415

Conversation

@MyTH-zyxeon
Copy link
Copy Markdown

Summary

  • validate AgentExecutor(max_concurrent=...) before constructing the semaphore
  • reject zero, negative, boolean, and non-integer values with a clear ValueError
  • add regression coverage for valid defaults, valid positive integers, invalid values, and single-concurrency execution
  • include the minimal suite-health fixes for AgentStatus export and re-entrant metric timing so full pytest collects and completes

Validation

  • PYTHONDONTWRITEBYTECODE=1 uv run pytest tests/test_agent_executor.py -q -p no:cacheprovider -> 12 passed
  • PYTHONDONTWRITEBYTECODE=1 uv run pytest -q -p no:cacheprovider -> 34 passed
  • PYTHONDONTWRITEBYTECODE=1 uv run flake8 src/agent/executor.py tests/test_agent_executor.py src/agent/init.py src/common/metrics.py -> passed
  • PYTHONDONTWRITEBYTECODE=1 python3 -m compileall -q src tests -> passed
  • git diff --check -> passed
  • gh repo view orchestration-agent/AgentOrchestration --json viewerHasStarred --jq '.viewerHasStarred' -> true

Closes #4415

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.

[ Bounty $3k ] [ Sandbox ] Validate max_concurrent — executor initialization

1 participant