MESA Core · v0.9.3

Production dependencies

v0.9.3 source: docs/adr/0013-one-way-production-layer-dependencies.md

This guide has equivalent English and Turkish versions. The source sections behind this page are at the bottom.

Production dependencies#

This maintained decision records design rationale at v0.9.3. Current architecture and runtime contracts define implemented behavior; retired decisions remain historical context.

Read the maintained reference#

The source below includes status, rationale and consequences. Start with the decision index and architecture.

Source reference for this page

The sections of the upstream file that back this page, unchanged. Source section links open the appendix automatically.

  • Status: Accepted

Layers ordered from lowest to highest are mesa_storage, mesa_memory,

mesa_workers, then mesa_api/mesa_mcp. Imports may point down this list:

API/MCP → workers → memory → storage. Lower layers cannot import a higher

layer. The API and worker startup modules are explicit composition roots and

may assemble the complete runtime; they are the only documented exception.

scripts/check_layer_imports.py is a CI ratchet with a negative contract

test. New composition roots require an ADR update and an explicit entry in the

guard, rather than an unreviewed reverse import.