# Architecture Debt Inventory

Open Orchestra includes a report-only architecture debt inventory for spotting files that may need future refactoring.

Run it with:

```sh
npm run architecture:inventory
```

For machine-readable output:

```sh
npm run build
node scripts/architecture-debt-inventory.js --json
```

The inventory reports:

- Large files over the configured line threshold.
- Long functions over the configured function threshold.
- Command-facing modules that may contain orchestration logic.
- Module-boundary candidates that mix CLI, filesystem, workflow, and domain concerns.

This slice is intentionally warn-only. It does not fail CI yet because the current repository still needs threshold tuning and incremental refactor stories. Future enforcement slices can promote selected categories to CI failures once the baseline is reviewed.
