← Back to Docs20250627

095 NEW PLAN AROUND JIDO 02

Documentation for 095_NEW_PLAN_AROUND_JIDO_02 from the Foundation repository.

Of course. Here is a comprehensive review of the foundation and mabeam libraries, with a component-by-component breakdown of where each piece fits into the proposed new hierarchy, whether it is used, refactored, or replaced.

Guiding Principles for the Migration

  • Foundation is the Kernel: Its components provide stable, generic, application-agnostic infrastructure. Anything fitting this description will be placed in Tier 1.
  • Jido is the Runtime: jido provides the core programming model (Agent, Action, Signal). It is the foundation of Tier 2. Components from foundation or mabeam that attempt to create a competing agent model will be replaced by Jido components.
  • MABEAM provides the Application Concepts: The high-level ideas from mabeam (auctions, markets, load balancing) are valuable business logic. These concepts will be implemented as specialized Tier 3 Jido Agents, but their original implementations will be deprecated.

Component-by-Component Migration Plan

foundation Library Components

The foundation library is well-designed as a generic platform. Most of its components will be adopted as the core of Tier 1.

Original PathComponent NameNew TierStatus / New Role
foundation/application.exFoundation.Application1Refactored/Renamed. Becomes the root supervisor, e.g., JidoOS.Kernel.Supervisor. Its responsibility is to start all Tier 1 services and the Tier 2 Jido Runtime Supervisor.
foundation/beam/ecosystem_supervisor.exFoundation.BEAM.EcosystemSupervisor1Used As-Is. This is an excellent, generic OTP supervisor for managing subsystems. It’s a core tool provided by the Kernel.
foundation/beam/processes.exFoundation.BEAM.ProcessesN/ADeprecated/Replaced. This module presents a less mature agent model. The Jido.Agent model from Tier 2 is far superior and will be the single, canonical way to create stateful actors.
foundation/contracts/*.exFoundation.Contracts.*1Used As-Is. These contracts are crucial for enforcing SOLID principles. They define the stable interfaces for Tier 1 services that higher tiers will depend on.
foundation/coordination/*.exFoundation.Coordination.*1Used As-Is. These are low-level, generic coordination primitives (DistributedBarrier, DistributedCounter). They are part of the Kernel’s toolkit, available to be used inside a Jido.Action if a specific agent in Tier 3 needs them.
foundation/infrastructure/*.exFoundation.Infrastructure.*1Used As-Is. These are the epitome of Tier 1 services. CircuitBreaker, ConnectionManager, and RateLimiter are generic resilience patterns that Jido.Actions in Tier 3 will use to safely interact with external systems.
foundation/integrations/gemini_adapter.exFoundation.Integrations.GeminiAdapter1Used As-Is. This is a perfect example of a Tier 1 integration. It connects the core TelemetryService to an external library, keeping the integration detail isolated at the infrastructure level.
foundation/logic/*.exFoundation.Logic.*1Used As-Is. These are the pure business logic functions for the Tier 1 services. They remain tightly coupled with their respective services (ConfigServer, EventStore).
foundation/process_registry/*.exFoundation.ProcessRegistry & Backends1Used As-Is and Promoted. This becomes the single, canonical process registry for the entire system. It is a cornerstone of Tier 1.
foundation/services/*.exFoundation.Services.*1Used As-Is. These are the core, long-running services of the Kernel: ConfigServer, EventStore, and TelemetryService.
foundation/types/*.exFoundation.Types.*1Used As-Is. These are the data structures for the Tier 1 services. Foundation.Types.Event is used for long-term audit logging, distinct from the real-time Jido.Signal.
foundation/validation/*.exFoundation.Validation.*1Used As-Is. These are the pure validation functions for Tier 1 data structures.

mabeam Library Components

The mabeam library contains valuable high-level concepts, but its implementation is often redundant or less robust. Its concepts are migrated to Tier 3, while its low-level implementations are replaced by Tier 1 and Tier 2 components.

Original PathComponent NameNew TierStatus / New Role
mabeam/agent.exMABEAM.AgentN/ADeprecated/Replaced. This facade for an agent model is completely replaced by the superior Jido.Agent model in Tier 2. All new agents will use Jido.Agent.
mabeam/agent_registry.exMABEAM.AgentRegistryN/ADeprecated/Replaced. Foundation.ProcessRegistry from Tier 1 becomes the single source of truth for all process registration, including Jido agents. The stateful logic of agent configuration is managed by a new AgentLifecycleManager agent in Tier 3.
mabeam/agent_supervisor.exMABEAM.AgentSupervisorN/ADeprecated/Replaced. Agent supervision is now handled by the Jido.Agent.Server and its underlying DynamicSupervisor, which is part of the Jido Runtime in Tier 2.
mabeam/application.exMABEAM.ApplicationN/ADeprecated/Replaced. The JidoOS.Kernel.Supervisor from Tier 1 is the root supervisor.
mabeam/comms.exMABEAM.CommsN/ADeprecated/Replaced. Inter-agent communication is now handled exclusively by the Jido.Signal.Bus and Jido.Signal.Router in Tier 2, providing a more structured and extensible messaging system.
mabeam/coordination.exMABEAM.Coordination3Concept Migrated. The high-level coordination protocols are re-implemented as Jido.Skills (e.g., ConsensusSkill, NegotiationSkill) that can be used by specialized Tier 3 agents.
mabeam/coordination/auction.exMABEAM.Coordination.Auction3Concept Migrated. The GenServer implementation is deprecated. This becomes the AuctioneerAgent, a Jido.Agent whose purpose is to run auctions. Its logic (sealed_bid_auction, etc.) is implemented as Jido.Actions.
mabeam/coordination/market.exMABEAM.Coordination.Market3Concept Migrated. The GenServer implementation is deprecated. This becomes the MarketplaceAgent, a Jido.Agent responsible for managing a resource market.
mabeam/core.exMABEAM.CoreN/ADeprecated/Replaced. This “Universal Variable Orchestrator” is too broad. Its responsibilities are split: system-wide state is handled by Foundation.ConfigServer (Tier 1), and dynamic coordination logic is handled by specialized Tier 3 agents.
mabeam/economics.exMABEAM.Economics3Concept Migrated. The concepts of reputation, pricing models, and incentive alignment are re-implemented as a combination of Jido.Skills and specialized Tier 3 agents (e.g., ReputationAgent, PricingOracleAgent).
mabeam/load_balancer.exMABEAM.LoadBalancer3Concept Migrated. The GenServer implementation is deprecated. This becomes the LoadBalancerAgent, a Jido.Agent that uses a TelemetrySensor (Tier 2) to monitor system metrics (from Tier 1) and make intelligent task assignment decisions.
mabeam/migration.exMABEAM.MigrationN/ADeprecated/Removed. This is a one-time utility to perform the migration described here. It is not part of the final target architecture.
mabeam/performance_monitor.exMABEAM.PerformanceMonitorN/ADeprecated/Replaced. Replaced by the Foundation.TelemetryService (Tier 1), which serves as the central, generic metrics store for the entire system.
mabeam/process_registry/*.exMABEAM.ProcessRegistry & BackendsN/ADeprecated/Replaced. The Foundation.ProcessRegistry (Tier 1) is the single, canonical registry.
mabeam/telemetry.exMABEAM.TelemetryN/ADeprecated/Replaced. Foundation.Telemetry (Tier 1) is the single, canonical telemetry facade.
mabeam/types.exMABEAM.Types3Refactored/Migrated. The valuable, high-level types (e.g., auction_spec, economic_agent) are moved into a new JidoOS.Types module or live within the domain of their respective Tier 3 agents to maintain high cohesion.