Skip to content

refactor: deferred architecture extractions (#202, #203, #204)#207

Merged
imran-siddique merged 3 commits intomainfrom
refactor/deferred-architecture-items
Mar 12, 2026
Merged

refactor: deferred architecture extractions (#202, #203, #204)#207
imran-siddique merged 3 commits intomainfrom
refactor/deferred-architecture-items

Conversation

@imran-siddique
Copy link
Member

Summary

Implements the 3 deferred architecture items from the naming/architecture review (PR #206).

Changes

  1. *refactor: slim down agent-os __init__.py umbrella re-exports #202 — Slim agent-os _init_.py*

    • Remove 8 optional external package re-export blocks (~150 lines of try/except)
    • Remove ~30 optional symbols from _all_\ (134 → 82)
    • Fix duplicate \AgentSignal\ import (context_budget was shadowing control_plane)
    • Fix stale _IATP_AVAILABLE\ reference
    • Keep \AVAILABLE_PACKAGES\ / \check_installation()\ for CLI compatibility
  2. refactor: move marketplace out of agent-mesh into separate package #203 — Extract marketplace into standalone \�gent-marketplace\ package

    • Move 6 marketplace modules from \�gentmesh/marketplace/\ → \packages/agent-marketplace/\
    • Create standalone \MarketplaceError\ (no longer inherits \AgentMeshError)
    • Backward-compat shim in \�gentmesh/marketplace/init.py\
  3. refactor: move Agent Lightning RL integration out of agent-os core #204 — Extract Agent Lightning into standalone \�gent-lightning\ package

    • Move 4 RL integration modules → \packages/agent-lightning/\ (\�gent_lightning_gov\ namespace)
    • Zero runtime dependencies on agent-os (duck-typed kernel interface)
    • Backward-compat shim in \�gent_os/integrations/agent_lightning/init.py\

Tests

  • agent-os: 2541 passed ✅
  • agent-mesh: 1634 passed ✅
  • agent-marketplace: 4 passed ✅
  • agent-lightning: 4 passed ✅

Closes #202, #203, #204

imran-siddique and others added 3 commits March 12, 2026 14:46
…ts (#202)

Remove 8 optional external package re-exports (agent_primitives, cmvk, caas,
emk, amb_core, atr, agent_kernel, mute_agent) from the agent-os facade.
Users should import these directly from their source packages.

- Keep AVAILABLE_PACKAGES via lightweight __import__ checks
- Fix duplicate AgentSignal import (context_budget was shadowing control_plane)
- Fix stale _IATP_AVAILABLE reference in AVAILABLE_PACKAGES dict
- Reduce __all__ from 134 to 82 symbols
- All 2541 tests pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…ge (#203)

Move 6 marketplace modules from agentmesh/marketplace/ into the new
packages/agent-marketplace/ package with its own pyproject.toml.

- Create standalone MarketplaceError (no longer inherits AgentMeshError)
- Rewrite internal imports to agent_marketplace namespace
- Leave backward-compat shim in agentmesh/marketplace/__init__.py
- Add smoke tests (4 pass)
- agent-mesh 1634 tests still pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…kage (#204)

Move 4 RL integration modules (runner, reward, environment, emitter) from
agent_os/integrations/agent_lightning/ into packages/agent-lightning/ as
the agent_lightning_gov namespace.

- Zero runtime dependencies on agent-os (duck-typed kernel interface)
- Leave backward-compat shim in agent_os/integrations/agent_lightning/
- Add smoke tests (4 pass)
- agent-os 2541 tests still pass

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions bot added documentation Improvements or additions to documentation dependencies Pull requests that update a dependency file tests agent-mesh agent-mesh package labels Mar 12, 2026
@github-actions
Copy link

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 3 package(s) with unknown licenses.
See the Details below.

License Issues

packages/agent-marketplace/pyproject.toml

PackageVersionLicenseIssue Type
cryptography>= 41.0NullUnknown License
pydantic>= 2.0NullUnknown License
pyyaml>= 6.0NullUnknown License
Allowed Licenses: MIT, Apache-2.0, BSD-2-Clause, BSD-3-Clause, ISC, PSF-2.0, Python-2.0, 0BSD, Unlicense, CC0-1.0, CC-BY-4.0, Zlib, BSL-1.0, MPL-2.0

OpenSSF Scorecard

PackageVersionScoreDetails
pip/cryptography >= 41.0 UnknownUnknown
pip/pydantic >= 2.0 UnknownUnknown
pip/pyyaml >= 6.0 UnknownUnknown

Scanned Files

  • packages/agent-marketplace/pyproject.toml

@github-actions github-actions bot added the size/XL Extra large PR (500+ lines) label Mar 12, 2026
@imran-siddique imran-siddique merged commit 62e7bb3 into main Mar 12, 2026
20 of 30 checks passed
@imran-siddique imran-siddique deleted the refactor/deferred-architecture-items branch March 18, 2026 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-mesh agent-mesh package dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation size/XL Extra large PR (500+ lines) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

refactor: slim down agent-os __init__.py umbrella re-exports

1 participant