# Tasks — `@suaveplan/i18n-formatter-segmenter` > Reconciled retroactively after Wave 3 shipped under commit `1cb2f412`. Package is built, tested, and validated; this pass folds the spec delta into `openspec/specs/i18n-formatter-segmenter/spec.md` (11 requirements) and archives the change folder. All `**Verified by:**` paths in the spec have been confirmed to exist in `packages/i18n/i18n-formatter-segmenter/src/`. ## 1. Spec authoring - [x] 1.1 Cross-cutting design + AGENTS sections read - [x] 1.2 Source-mapping table populated - [x] 1.3 `proposal.md` authored - [x] 1.4 `specs/i18n-formatter-segmenter/spec.md` delta drafted (11 requirements) - [x] 1.5 Every requirement carries a `**Verified by:**` line - [x] 1.6 `openspec change validate i18n-formatter-segmenter` clean ## 2. Package scaffold - [x] 2.1 `packages/i18n/i18n-formatter-segmenter/src/` structure - [x] 2.2 `package.json` — `@suaveplan/i18n-formatter-segmenter@0.0.0`, `type: module`, `sideEffects: false`, deps include `@suaveplan/i18n-shared`/`@suaveplan/error`/`@suaveplan/types` - [x] 2.3 `tsconfig.lib.json` extends shared library config - [x] 2.4 `vite.config.ts` + `vitest.config.ts` - [x] 2.5 `README.md` with Modules table ## 3. Implementation - [x] 3.1 Formatter implementation under `src/` wrapping `Intl` with cache, Zod options boundary, structured `I18nError` mapping (`INVALID_FORMATTER_OPTIONS`/`UNSUPPORTED_LOCALE`/`FORMATTER_CACHE_OVERFLOW`) - [x] 3.2 OTel spans + counters + cache-hit histograms - [x] 3.3 Sibling `.md` per `.ts` implementation file - [x] 3.4 Root `src/index.ts` — explicit named re-exports (no `export *`) ## 4. Tests (runner-neutral imports) - [x] 4.1 Unit tests covering every documented scenario in the spec - [x] 4.2 Property/edge-case tests - [x] 4.3 Cache-eviction + overflow tests - [x] 4.4 Every `it(...)` carries `{ timeout: 5000 }` - [x] 4.5 Runner-neutral imports via `@suaveplan/testing/runner` — CLAUDE.md §11 grep clean (verified) ## 5. Pre-archive verification - [x] 5.1 Biome clean - [x] 5.2 `bunx turbo lint typecheck test --filter=@suaveplan/i18n-formatter-segmenter` green at commit time - [x] 5.3 `bunx turbo test:coverage --filter=@suaveplan/i18n-formatter-segmenter` 100/100/100/100 at commit time - [x] 5.4 Conformance script clean - [x] 5.5 Build green ## 6. Pre-archive 7-row checklist - [x] 6.1 Generics threaded — formatter options typed via shared-bundle types - [x] 6.2 Zod schemas — options boundary validated - [x] 6.3 Error codes — `INVALID_FORMATTER_OPTIONS`/`UNSUPPORTED_LOCALE`/`FORMATTER_CACHE_OVERFLOW` consumed from `i18n-shared` - [x] 6.4 Strict-mode tested - [x] 6.5 OTel — spans/counters/histograms - [x] 6.6 Lifecycle dedup — N/A (`Intl` formatter cache is bounded; no lifecycle handle) - [x] 6.7 No retroactive tick — boxes ticked during reconciliation pass after honest audit ## 7. Archive - [x] 7.1 Spec delta folded into `openspec/specs/i18n-formatter-segmenter/spec.md` (canonical, status ACTIVE) - [x] 7.2 Folder moved to `openspec/archive/2026-05-09-i18n-formatter-segmenter/` - [x] 7.3 `MANIFEST.md` already lists the package