// lib/accounting/core/README.golden-matrix.md

# Golden Matrix Tests (WP-01)

## Purpose

- Validates all posting scenarios and edge cases for accounting events
- Ensures kernel correctness before migration or extraction
- Used in posting, migration, and audit scenarios

## Usage

- Define test cases using `GoldenMatrixTestCase` and suites using `GoldenMatrixTestSuite`
- All posting scenarios must be covered in the golden matrix

## Example

```ts
const testCase: GoldenMatrixTestCase = {
  eventType: AccountingEventType.PURCHASE_POSTED,
  scenario: 'Standard purchase, no FX',
  input: { ... },
  expectedJournal: { ... },
};
```

---

> **Note:** Golden matrix tests are mandatory for all posting and migration scenarios.
