// lib/accounting/core/README.dimension-validator.md

# Dimension Validator (WP-01)

## Purpose

- Enforces all required dimension rules for journal lines
- Prevents posting with missing or conflicting dimensions
- Used in posting, migration, and audit scenarios

## Usage

- Use `validateDimensions(line, context)` to validate a journal line before posting
- All dimension validation must use this contract

## Example

```ts
const result = validateDimensions(journalLine, postingContext);
if (!result.valid) throw new Error('Dimension validation failed');
```

---

> **Note:** Dimension validation is mandatory for all posting and migration scenarios.
