Shared Platform and Extension Boundaries🔗

The repository separates shared platform contracts, service-owned runtime behavior, and optional domain extensions.

Package ownership🔗

Shared libraries live under packages/ (core, cli, django) and platform services live under services/ (brain, router, shield, worker, forge). Domain extensions (such as contextunity-ext-kb and contextunity-ext-commerce) live in standalone repositories and consume public platform contracts (contextunity-core, gRPC, manifests). Their domain models and defaults never become shared Core contracts.

Important
  • INV-PLATFORM-NO-EXTENSION-COUPLING: Shared packages and platform services never import optional domain extensions (contextunity.kb, contextunity.commerce); extension-specific schemas, migrations, and workflows stay in their owning extension repository.

Configuration and tenant data🔗

Reusable platform code does not embed customer names, project tenant IDs, credentials, deployment URLs, customer prompts, or domain-specific catalog defaults. Runtime configuration enters through the owning typed configuration surface (load_service_config); tenant-owned data remains under the owning service's tenant checks (can_access_tenant), while signed project binding is enforced separately via resolve_verified_project_binding.

Important
  • INV-PLATFORM-TENANT-SCOPE-CEILING: A package default or caller-supplied business value never replaces configuration ownership or widens the verified tenant scope enforced by can_access_tenant.

Change and verification boundary🔗

Keep optional extension imports out of shared packages and services. Keep domain-specific schemas, migrations, commands, and tests in their owning extension. Verify dependency direction and the public integration contract against current source and active tests; this document does not define an additional runtime hook.

For package and import naming, see Namespace and package rules. For extension ownership, see Extension boundaries.