Repository navigation
fix(integrations): restore public re-exports on deprecated stub __init__ - #2970
Merged
Imran Siddique (imran-siddique) merged 1 commit intoJun 11, 2026
Merged
Conversation
The stub conversion in #2794 replaced the top-level __init__.py of the crewai-agentmesh, agentmesh-langchain, and openai-agents-agentmesh packages with a bare DeprecationWarning, dropping the re-exports of the public trust-layer symbols. The implementation modules (trust.py, identity.py, tools.py, callbacks.py) were left in place and still shipped, but the symbols were no longer importable from the package root. Each package's test suite (and any downstream code) still does `from <pkg> import AgentProfile / AgentDirectory / AgentTrustContext`, so the test-integrations CI legs failed at collection with ImportError on every PR (pre-existing on main, independent of base.py). Restore the original re-export blocks (keeping the new DeprecationWarning at the top) so the package root again exposes the public API. No behavior change beyond re-exposing the existing symbols. Verified locally: pytest passes for all three packages (crewai 34, openai-agents 23, langchain 51). Signed-off-by: Imran Siddique <imran.siddique@opaque.co> Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Imran Siddique (imran-siddique)
requested a review
from MohammadHaroonAbuomar
as a code owner
June 11, 2026 19:08
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
Imran Siddique (imran-siddique)
merged commit Jun 11, 2026
3401453
into
main
102 of 106 checks passed
Imran Siddique (imran-siddique)
deleted the
fix/integration-tests-stub-reexports
branch
June 11, 2026 19:10
PR Review Summary
Verdict: AI review comments are untrusted advisory output. The summary reports workflow-generated completion status only, not model-authored pass/fail claims. |
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.
Problem
The
test-integrationsCI legs for crewai-agentmesh, langchain-agentmesh, and openai-agents-agentmesh fail at pytest collection on every PR (including PR #2868), with:ImportError: cannot import name 'AgentProfile' from 'crewai_agentmesh'ImportError: cannot import name 'AgentDirectory' from 'langchain_agentmesh'ImportError: cannot import name 'AgentTrustContext' from 'openai_agents_agentmesh'This is pre-existing breakage on
main(confirmed: the same three jobs fail on the latest completedmainCI run), independent of any PR branch.Root cause
The stub conversion in #2794 replaced the top-level
__init__.pyof these three packages with a bareDeprecationWarning, dropping the re-exports of the public trust-layer symbols. The implementation modules (trust.py,identity.py,tools.py,callbacks.py) were left in place and are still shipped (packages = ["<pkg>"]), but the symbols were no longer importable from the package root.Each package's test suite — and any downstream code doing
from <pkg> import AgentProfile / AgentDirectory / AgentTrustContext— therefore fails to import.Fix
Restore the original re-export blocks (keeping the new
DeprecationWarningat the top of each file). No behavior change beyond re-exposing the existing, already-shipped symbols. The stale__version__ = "3.2.2"from the old langchain__init__is intentionally not restored (the package is now 4.x).Verification
Local pytest passes for all three packages:
Out of scope
The
haystack-agentmeshintegration job also fails, but for an unrelated reason (AttributeError: '_Component' object has no attribute 'input_types'—governance.pyuses a@component.input_types(...)decorator that haystack-ai never exposed). That requires a source-code change, not a re-export, and is filed separately.🤖 Generated with Claude Code