# Enforces SD-0001 §6.2: the four-layer contract main > domains > platform, with
# imports flowing only downward. The GraphQL `api` layer is deferred (§2), so the
# MVP contract has three layers; `app.api` is added back between main and domains
# when GraphQL arrives. Run from backend/:  .venv/bin/lint-imports
[importlinter]
root_package = app

[importlinter:contract:layers]
name = App layering (main > domains > platform)
type = layers
layers =
    app.main
    app.domains
    app.platform
