Skip to main content

Dependency rules

The core vertical preserves this direction:

Additional modules follow the same principle: abstractions and domain models do not depend on transport, EF Core, concrete providers, Microsoft Agent Framework, or hosts.

  • Management abstractions and kind constants are owned by their resource families; no shared Management catch-all assembly is permitted. Identity, authorization and PAT contracts live in Identity.Contracts; provider-neutral audit contracts live in Security.Contracts; Extension registration and AEP contracts live in Extensions.Contracts; Pack installation, Pack catalog schemas, authoring and composition contracts live in Packs.Contracts; Source and Source Registry resources, trust, discovery, refresh, network policy, Bootstrap provenance and provider-neutral catalog/content ports live in Sources.Contracts. Packs may implement Source catalog handlers and consume Source content ports; Sources and Sources.Contracts must not reference Pack assemblies. Generic Bootstrap documents, planning and handler ports live in ResourceManagement.Contracts; composed Bootstrap application and transport contracts live in the narrow Bootstrap.Contracts façade. Validation and use cases live in plural resource-family modules; EF Core lives in ResourceManagement.Storage.* or family-specific storage projects.
  • Flow domain and application projects remain provider-neutral; EF Core lives in Flows.Storage.Sqlite.
  • Work owns functional state and calls the runtime through IWorkExecutionGateway; Work SQLite does not share Management or Runtime storage.
  • Awp.Abstractions owns provider-neutral Worker protocol DTOs and depends only on BCL serialization primitives; it must not reference Runtime or Flow implementations, storage, Microsoft Agent Framework, ASP.NET Core, or hosting technologies.
  • Concrete Microsoft Agent Framework types live only in Runtime.MicrosoftAgentFramework.
  • Endpoints, UI components, MCP tools, workers, and Program.cs delegate business behavior to application services.

Storage.Contracts, Storage and Storage.Api own selectable Storage resources. Storage consumes Connected Service export metadata through contracts only; ASC/AEP, Artifact and physical provider adapters remain outside the family. See the Storage vertical for its authority layers and composition.

Architecture tests enforce important project-reference boundaries.