fix(orchestrate): env.agent_profile → env.orc_profile (v0.26.11)#1149
Merged
Conversation
The OrchestrationEnv dataclass field is `orc_profile`, not `agent_profile`. Two references at flow.py:643,648 (added by #1083 ADR-0029 artifact contract) raised AttributeError when `li play` was invoked with an explicit agent name. Added structural regression test: parses flow.py for every public env.<attr> access and asserts each matches a real OrchestrationEnv field/method. Bumps to v0.26.11. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes
AttributeError: 'OrchestrationEnv' object has no attribute 'agent_profile'atlionagi/cli/orchestrate/flow.py:643whenli playis called with an explicit agent name.Root cause
OrchestrationEnvdataclass field is namedorc_profile(_orchestration.py:190), butflow.py:643andflow.py:648referenceenv.agent_profile. Bug introduced by #1083 (ADR-0029 artifact contract).Triggers when
agent_name is not None— i.e.,li play <playbook>with an orchestrator agent specified. Default invocation paths short-circuit onagent_name is Noneand never hit the bug, which is why it survived release.Fix
flow.py:643,648—env.agent_profile→env.orc_profile(2 occurrences)tests/cli/orchestrate/test_orchestration_env_attrs.py(new) — structural regression test parsesflow.pyfor every publicenv.<attr>access and asserts each matches a realOrchestrationEnvfield or method. Catches future typos of this exact shape.Also bumps to v0.26.11 with CHANGELOG entry.
Test plan
uv run pytest tests/cli/orchestrate/test_orchestration_env_attrs.py)li play <playbook> --agent <name>no longer raises AttributeError (verified by Ocean post-merge)🤖 Generated with Claude Code