gograph_boundaries
Check Go package imports against architecture constraints from a boundaries config, reporting violations. Enforces layer separation rules in CI or post-edit reviews.
Instructions
Check whether actual package imports violate architecture constraints defined in a boundaries.json config file. Requires both .gograph/graph.json and a boundaries config (defaults to .gograph/boundaries.json — returns an error if the config file is missing). Read-only; no side effects. WHEN TO USE: In CI gates or post-edit reviews to enforce layer separation rules (e.g., handler packages must not import repository packages directly). NOT TO USE: For general dependency exploration without a constraint file (use gograph_deps or gograph_coupling instead). RETURNS: JSON with pass bool, violation_count, and a findings[] array listing each forbidden import edge; empty findings means all constraints are satisfied.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | Optional file path to boundary constraints configuration (defaults to .gograph/boundaries.json) |