Context
Role.ROLE_USER AttributeError fires on tests/conftest.py load when running pytest from a /tmp git worktree. The shim's defensive imports succeed in the canonical checkout but fail in some envs. Hit during PR #391, #406, #407 fix-pack agents.
Acceptance Criteria
Files
tests/a2a_compat_shim.py
tests/conftest.py
Refs
Context
Role.ROLE_USERAttributeError fires ontests/conftest.pyload when running pytest from a/tmpgit worktree. The shim's defensive imports succeed in the canonical checkout but fail in some envs. Hit during PR #391, #406, #407 fix-pack agents.Acceptance Criteria
a2a_compat_shim.pydefensive imports fail in/tmpworktreesconftest.py's import path so test collection doesn't depend on it/tmpworktreesFiles
tests/a2a_compat_shim.pytests/conftest.pyRefs