# @platform-modules/affiliate

## 0.1.0

### Minor Changes

- 1c03aba: New L3 module `@platform-modules/affiliate` — referral attribution, host-`CommissionPolicy` commission engine, accrual, payout behind the injected `PayoutExecutor` seam, maturity/withdrawable sweeps, plus `/schema`, `/fraud`, and opt-in `/security` subpaths. Sibling deps (`db`, `ledger`) declared as regular `workspace:^` dependencies; cross-package error identity via structural type-guards (no `instanceof`).
- 70435a5: Initial release of `@platform-modules/affiliate` (L3 bolt-on): referral attribution, host-`CommissionPolicy`-driven commission engine, accrual, and payout behind a host `PayoutExecutor` seam, plus opt-in `/fraud` (referral-fraud pipeline + 13 adapters) and `/security` (cloaking, cookie-stuffing, coupon-poaching, brand-keyword, fingerprint, geo, referer, velocity) subpaths.

  Maturity-wallet projection is delegated to `@platform-modules/ledger/vesting` — the module owns no credit-ledger/wallet-balance tables of its own; it records a denormalized `affiliate_entries.ownerId` side-row and consumes the ledger vesting capability. Deps: `@platform-modules/db`, `@platform-modules/ledger`.

### Patch Changes

- Updated dependencies [1c03aba]
- Updated dependencies [70435a5]
  - @platform-modules/ledger@0.1.0
