← Files AkinatorARCHIVED FILE

evals/results/workspaces/2026-08-30-06c/rules/02-billing-boundary.md

441 Bytes · Oct 4, 2026 · 12:31 UTC

↓ Download file

# Rule 02 - Billing does not import from items

## Purpose

The dependency must point one way. When billing imported item internals, a
refactor of item storage broke invoicing in a way nobody predicted.

## Applies to

`src/billing/` may not import from `src/items/`.

## Mandatory rules

1. No module under `src/billing/` imports `src.items`.

## Enforcement

- Mechanism: `tests/test_architecture_boundaries.py`
- Type: architecture test.

SHA-256: 9997f0dabf2febf6dad8f1cb7d0ee3c3a4ca55f25bf4d68d0abda04f47a679ea