Skip to content
sarj/graph/cross-product-import

Avoid cross-product code dependencies

Product code does not depend on another product's implementation.

error

Examples

FlaggedFails
beta library --source-import--> alpha library
PassesClean
beta application --runtime-call--> alpha API

Why it matters

Cross-product implementation coupling hides ownership and release dependencies.

How detection works

A code dependency crosses two distinct declared product IDs.

What is inspected

  • product ownership and declared code dependencies

How to fix it

Replace implementation coupling with an owned library or runtime contract.

  1. Use a shared contract or a runtime-call edge across products.

Verify

  • Run repo-lint again and confirm the rule passes.