feat(meeting): correct transcripts with vocabulary learned from typing

Meeting and caption transcription never used what the app had already
learned: speech recognition ran with a fixed Korean prompt, the refine
prompt had no glossary, refined lines stopped inside the caption service,
and the saved transcript was a raw join of segments. Names and jargon the
user types every day were therefore re-mangled on every recording.

The learned corpus (user dictionary plus personal phrases) now feeds one
glossary that biases recognition, fixes mistyped words deterministically
right after each line is finalized, and is handed to the local model when
it polishes a line. Refined lines also reach the meeting transcript and
screen through a new segment-updated event.

Corrections never touch words the user actually wrote, refuse ties between
equally likely candidates, and keep particles intact.
This commit is contained in:
Yun Chan 2026-11-05 21:58:28 +09:00
parent d631042836
commit 9c2b6a9782
21 changed files with 1134 additions and 61 deletions

View file

@ -89,6 +89,7 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]`
| MTG-11 | Meeting AI chat over transcript | [x] | [ ] | [ ] | [x] | Desktop `MeetingChatPanel` + `MEETING_CHAT` |
| MTG-12 | Content reporting for generated docs | [-] | [ ] | [x] | [x] | `content-report` Edge + generation receipts |
| MTG-13 | Existing audio/video import into a meeting | [x] | [ ] | [~] | [x] | **2026-11-01:** Desktop `meetingMode:importRecording` reuses `FileTranscriptionService` without duplicate history, saves canonical timestamped transcript + normalized WAV, then opens existing minutes generation. Mobile `MeetingsScreen` creates the workspace then routes `meetingId` + `importRequest` to the existing durable Record meeting pipeline. **2026-11-02:** installed Windows 1.16.0 passed the actual Electron picker→timestamped transcript→local summary/action-item journey, so desktop is `[x]`. Fold6 `.3` import entry/editor rendered, but authenticated device file-to-minutes E2E remains (`GAP-MTG-03`). [Evidence](../evidence/2026-11-02-verification.md). |
| MTG-14 | Learning-informed transcript correction (user dictionary + typed vocabulary) | [~] | [ ] | [ ] | [ ] | **2026-11-05 (root cause + rebuild of the transcript-correction seam):** the learned corpus was only wired to input suggestions. Meeting/live captions ran STT with a hardcoded `다음은 한국어 대화입니다.` prompt (no dictionary, no learned terms), the refine prompt had no glossary, the refine result updated only `CaptionService`'s own copy (meetings and the renderer kept the raw line), and the persisted `rawTranscript` was a plain join of raw segments. Now: core SSOT `@d3ro/core/transcript-correction` (glossary build, dictionary-variant replacement, 1-jamo learned-term correction with a unique-best rule that never touches words the user actually wrote, LLM reference block) + desktop `TranscriptGlossaryService` (dictionary + `personal_phrases`, 15 s cache invalidated on dictionary writes, fail-closed) are wired into `CaptionService` (hint on every recognition, deterministic correction per final line, glossary-aware refine, `segment-updated` event), `MeetingRecordingSession`/`MeetingModeService` (refined lines reach the meeting transcript and renderer via `meetingMode:segmentUpdated`; auto-polish gets the glossary block), `FileTranscriptionService` (per-chunk hint + correction) and `VoiceModeService` (learned-term pass). Tests: core `transcript-correction.test.ts` (16), desktop `transcript-glossary.test.ts` (9); real-app meeting verification still open (`GAP-MTG-04`). |
---
@ -114,12 +115,12 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]`
| ACC-04 | Password reset / recovery deep link | [ ] | [ ] | [x] | [x] | Mobile ForgotPassword/UpdatePassword |
| ACC-05 | Account profile / identity management | [~] | [~] | [x] | [x] | Desktop `LicenseTab`; mobile `AccountScreen` |
| ACC-06 | Logout + local sensitive purge | [x] | [x] | [x] | [x] | Mobile central purge GREEN |
| ACC-07 | Account deletion (server cascade + local purge) | [ ] | [ ] | [~] | [x] | `account-delete` Edge; mobile device E2E pending |
| ACC-07 | Account deletion (server cascade + local purge) | [ ] | [ ] | [~] | [x] | `account-delete` Edge; mobile device E2E pending. **2026-11-04 backend retention proof:** isolated local Supabase verified `audio-purge` authorization and both direct and pg_cron/Vault dispatch; the queued DB row, deleted `audio_files` row, and private Storage object were removed together. Production deployment/schedule remains `GAP-OPS-04`. |
| ACC-08 | Cloud sync (per-user data) | [~] | [x] | [x] | [x] | Desktop `CloudSyncService` + `services/sync/`. The earlier `[x]` hid shipped defects fixed on 2026-09-27 (GAP-SYNC-01/02): first pull after sign-in fetched nothing, only the first meeting's memos/documents were pushed, deletions never propagated, team meetings were pulled into the personal DB and their `team_id` cleared on re-push, Realtime never connected. Anonymous local-mode data is now imported into the first account that signs in (`db/index.ts importLocalModeData`). Production deploy pending (GAP-SYNC-05) |
| ACC-09 | Device registration + revocation | [~] | [ ] | [x] | [x] | Mobile `DevicesScreen`. **Desktop registers itself since 2026-09-27** (`services/sync/device-registration.ts`, platform `windows`/`macos`, installation id in `AppConfig.deviceInstallationId`); revoking it from the phone signs the desktop out (Realtime on `devices` + 5-min heartbeat), signing out on desktop unregisters it. Mobile parser accepted only `android`/`ios`, so one desktop row would have failed the whole Devices screen — fixed (`device-service.ts`, `__tests__/devices.test.ts`) and the card now names the platform. Local-stack evidence in the integration test; production pending GAP-SYNC-05 |
| ACC-09 | Device registration + revocation | [~] | [~] | [x] | [x] | Mobile `DevicesScreen`. **Desktop registers itself since 2026-09-27** (`services/sync/device-registration.ts`, platform `windows`/`macos`, installation id in `AppConfig.deviceInstallationId`); revoking it from the phone signs the desktop out (Realtime on `devices` + 5-min heartbeat), signing out on desktop unregisters it. Web creates/checks in a stable `platform='web'` device only when the user opts into browser notifications, refuses to resurrect a revoked row, and revalidates an existing local Push subscription through the register RPC before showing it connected (`web-device.ts`, `web-push-session.ts`, `web-push.spec.ts`). An isolated throwaway local-browser run produced exactly one active web device and one device-bound token; no web device-management UI or production proof. Mobile parser accepts all five platforms and names them on the card. Local-stack desktop evidence exists; production pending GAP-SYNC-05 |
| ACC-10 | Offline queue + retry | [~] | [ ] | [x] | [x] | Mobile durable queue |
| ACC-11 | Data export/import (portability) | [~] | [ ] | [x] | [x] | Mobile canonical JSON E2E GREEN; desktop has export files. **2026-09-27 backend fix:** `export_account_portability` serialised whole rows, so columns added after the v1 archive (meeting creation metadata, meeting-document template/idempotency) made any account with meetings fail the exact-key check in both the server restore and the mobile parser; the export now projects onto v1 keys (migration `20260927000034`, integration test asserts memo/meeting keys) |
| ACC-12 | Notification / push | [ ] | [x] | [~] | [x] | Backend transports for FCM + Web Push (VAPID) + APNs (.p8) + outbox cron drain implemented. **2026-10-30 (`GAP-PUSH-03` `[x]`):** Web service worker (`apps/web/public/sw.js`) + `registerWebPushSubscription` (`provider: 'webpush'`) and mobile platform-aware registration (`iOS` → `provider: 'apns'`, `Android` → `provider: 'fcm'`) implemented and unit-tested (`__tests__/notifications.test.ts`). Android live delivery awaits Firebase project (`EXT-FIREBASE-01`). |
| ACC-12 | Notification / push | [ ] | [~] | [~] | [x] | Backend transports for FCM + Web Push (VAPID) + APNs (.p8) + outbox cron drain implemented. **2026-11-04 (`GAP-PUSH-03` `[~]`):** Web production sidebar calls the explicit user-gesture permission → stable web device → `subscribeWebPush` → `register_push_registration` path. Opt-out records disabled intent before bounded parallel server/local cleanup; a stale local subscription is re-registered through the server RPC before it may appear connected, and logout never waits on cleanup (`web-push.spec.ts` 17 contract tests). The standalone image copies `public/sw.js`, and missing build-time `NEXT_PUBLIC_VAPID_PUBLIC_KEY` fails closed. Isolated local evidence reached active device + token + pending outbox + completed drain + `push_deliveries.status='delivered'`; this is provider acceptance, not browser receipt. The final production-standalone browser attempt timed out at login navigation before the dashboard, so production permission/subscription/render/receipt and deployed cron/provider configuration remain open (`EXT-FIREBASE-01` for Android). |
---
@ -143,7 +144,7 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]`
| ID | Feature | D | W | M | B | Anchors / notes |
|---|---|---|---|---|---|---|
| MON-01 | Tier gating (Free/Pro/Pro+/Team/Enterprise) | [x] | [x] | [x] | [x] | `LicenseService`, entitlement provider |
| MON-02 | Usage quotas (daily_usage) | [x] | [x] | [x] | [x] | |
| MON-02 | Usage quotas (daily_usage) | [x] | [x] | [x] | [x] | `packages/core/src/plan-catalog.ts` is the quota SSOT, including `knowledge_embedding`; Deno consumers use the generated `core-contract.generated.ts` copy guarded by `npm run contract:check`. |
| MON-03 | Desktop offline license (Ed25519) | [x] | [-] | [-] | [x] | `crypto-license` + admin issuer |
| MON-04 | ~~Web checkout (Stripe)~~ — **삭제됨 2026-09-26** | [-] | [-] | [-] | [-] | 사용자 결정: 결제는 웹 Payple(KRW) + 모바일 Google Play만. `stripe-checkout`/`stripe-portal`/`stripe-webhook` 함수, 웹 `checkout-button`/`portal-button`, 데스크톱 `CheckoutModal`·`payment-handlers`·`payment:*` IPC 삭제. 과거 `provider='stripe'` 구독 행은 읽기 전용 표시만(마이그레이션 불변). 운영 정리는 GAP-BILL-03 |
| MON-05 | Web checkout (Payple) | [-] | [x] | [~] | [~] | Payple checkout/manage/renew/webhook; webhook signature pending |
@ -151,7 +152,7 @@ Status quick-reference: `[x]` done+verified · `[~]` partial/unverified · `[ ]`
| MON-07 | Mobile IAP purchase + restore | [-] | [-] | [~] | [x] | `iap-verify` + `billing-context`; live store E2E blocked |
| MON-08 | Billing catalog / pricing display | [x] | [x] | [x] | [x] | Server catalog SSOT; hardcoded prices removed |
| MON-09 | Free-tier banner ads | [~] | [-] | [x] | [x] | Desktop adapters fail-closed; mobile AdMob test GREEN, prod serving blocked |
| MON-10 | Rewarded ads → quota credits | [x] | [-] | [x] | [x] | **2026-10-30 (`GAP-ADS-02` `[x]`):** Desktop `AdMediationEngine.claimReward` verifies adapter `reportRewardCompletion`, impression, duration, cooldown, and nonce uniqueness before calling `LicenseService.grantRewardQuota` (`AdMediationEngine.spec.ts` 23/23 PASS); mobile SSV GREEN |
| MON-10 | Rewarded ads → quota credits | [x] | [-] | [x] | [x] | **2026-10-30 (`GAP-ADS-02` `[x]`):** Desktop `AdMediationEngine.claimReward` verifies adapter `reportRewardCompletion`, impression, duration, cooldown, and nonce uniqueness before calling `LicenseService.grantRewardQuota` (`AdMediationEngine.test.ts` 23/23 PASS); mobile SSV GREEN |
| MON-11 | Ad mediation engine + settlement | [~] | [-] | [~] | [x] | Engine + settlement built. `DirectHouseSponsorAdapter` is now a **real configurable REST adapter** (bid/impression/click/reward via `endpointUrl`, fail-closed when unconfigured, unit-tested). Other 9 networks remain `UnavailableAdAdapter` stubs pending official SDKs. |
| MON-12 | Subscription management (portal/store) | [-] | [x] | [x] | [x] | Payple manage / Play manage (Stripe portal 삭제 2026-09-26) |
@ -197,19 +198,19 @@ end-to-end behaviour has **not been verified by typing in a real app** (`11` GAP
|---|---|---|---|---|---|---|
| SHELL-01 | Settings / preferences | [x] | [~] | [x] | [x] | **2026-09-28 개편:** 데스크톱 설정은 모달이 아니라 메인 창 전체 화면 라우트(`settings`) — 왼쪽 세로 탭 8개 + 본문 `components/settings/SettingsRows`(구획 h3 + 라벨·설명/컨트롤 행). 일반 탭에 키 바인딩 편집기(CAP-16). 이전 기록: Desktop tabbed modal; the General tab hosts the whole key-binding editor (CAP-16: global on/off switch + one `KeyBindingField` per action, grouped voice/window — `SettingsModal.tsx:239`), which is also the first settings entry point the `command` action ever had; web theme/i18n; mobile `SettingsScreen` |
| SHELL-02 | Theme system (6 themes) | [x] | [x] | [x] | [-] | `theme.ts` SSOT |
| SHELL-03 | i18n (12 locales) | [x] | [x] | [x] | [-] | `@d3ro/i18n`; **2026-10-30 (`GAP-I18N-01` `[x]`, `GAP-UX-07` `[x]`):** all 12 locales (`ko`, `en`, `ja`, `zh`, `zh-TW`, `es`, `fr`, `de`, `pt`, `ru`, `vi`, `th`) synchronized to 2,716 keys via `scripts/ci/sync-i18n-locales.mjs` and guarded by `i18n-locale-parity.test.ts` (15/15 PASS). |
| SHELL-03 | i18n (12 locales) | [x] | [~] | [~] | [-] | `@d3ro/i18n`; all 12 catalogs (`ko`, `en`, `ja`, `zh`, `zh-TW`, `es`, `fr`, `de`, `pt`, `ru`, `vi`, `th`) are synchronized to 2,742 keys and guarded by `i18n-locale-parity.test.ts` (15/15 PASS), including the updater dialog keys added on 2026-11-04. Catalog parity is not surface exposure: web has no locale selector and mobile currently exposes ko/en only (`GAP-I18N-03`, SSOT `O-012`), so those surfaces remain `[~]`. |
| SHELL-04 | Onboarding / first-run | [x] | [ ] | [~] | [-] | Desktop model bootstrap (`onboarding.llmModelSize` aligned to 4.0GB `gemma4:e4b`, `GAP-UX-07` `[x]`); mobile audience/theme/locale. **2026-11-01:** 신규 사용자 목적지를 persistence 전에 준비하도록 수정하고 Fold6에서 `.2` fresh auth/signup/invite/small-screen 4/4 PASS (`fold6-20261101-fix1`); latest `.3` first-run auth and retry fail at onboarding visibility (`fold6-20261101-mtg13`). Exact `.3` APK now passes isolated API 34 emulator fresh auth 37 s / signup 50 s with restart persistence; personal Fold6 data was preserved and its separate failures remain open. |
| SHELL-05 | Accessibility / reduced motion | [~] | [~] | [~] | [-] | Desktop reduced-motion honored; mobile a11y rows pending |
| SHELL-05 | Accessibility / reduced motion | [~] | [~] | [~] | [-] | Desktop reduced-motion honored. Mobile source labels/roles and 48dp tests plus 2026-11-04 inspected-route UIAutomator/font-scale/rotation evidence are partial GREEN; the AdMob SDK descendant exposed one unlabeled clickable WebView. Manual TalkBack/focus order, reduced-motion/app-wide coverage, and iOS remain ([evidence](../evidence/2026-11-04-mobile-runtime-a11y.md)). |
| SHELL-06 | System tray / background | [x] | [-] | [-] | [-] | Desktop tray |
| SHELL-07 | Auto-launch on login | [x] | [-] | [-] | [-] | Desktop only |
| SHELL-08 | Auto-update | [x] | [-] | [!] | [-] | Desktop electron-updater; Forgejo canonical feed; channels + mandatory/major-vs-delta policy (`release/update-policy.json`); mobile store updates **2026-10-24 UI:** updates are now visible in the app, not only through native dialogs. Settings → About opens with an Updates section (`components/settings/UpdateSection.tsx`): status, progress bar, last check, and Check / Download / Restart-to-install buttons. A title-bar chip (`components/shell/UpdateChip.tsx`) appears only while an update is available, downloading or ready, and opens that tab. IPC `appUpdate:getStatus|check|download|install` plus the `appUpdate:statusChanged` event; state comes from `UpdateService.getStatus()`. A skipped version still shows, and downloading it manually clears the skip. Dev and portable builds show "disabled". Not yet checked by eye in a packaged build. |
| SHELL-08 | Auto-update | [x] | [-] | [!] | [-] | Desktop electron-updater; Forgejo canonical feed; channels + mandatory/major-vs-delta policy (`release/update-policy.json`); mobile store updates **2026-10-24 UI:** updates are now visible in the app, not only through native dialogs. Settings → About opens with an Updates section (`components/settings/UpdateSection.tsx`): status, progress bar, last check, and Check / Download / Restart-to-install buttons. A title-bar chip (`components/shell/UpdateChip.tsx`) appears only while an update is available, downloading or ready, and opens that tab. IPC `appUpdate:getStatus|check|download|install` plus the `appUpdate:statusChanged` event; state comes from `UpdateService.getStatus()`. A skipped version still shows, and downloading it manually clears the skip. Dev and portable builds show "disabled". **2026-11-04:** native consent/restart dialogs resolve `getPopupTranslator()` at each prompt, so a runtime locale change is not cached; ko→en behavior is covered by `update-dialog-i18n.test.ts`. The isolated `--preview-update-dialogs` packaged-QA entry calls the real prompter without updater/feed/install side effects and is covered by entry/prompt tests. The current-source package/ABI passed, but the native dialog appearance and interaction remain an external-desktop gate (`GAP-QA-04`). |
| SHELL-09 | Support / diagnostics | [x] | [ ] | [ ] | [x] | Desktop `SupportModal` (`support-handlers.ts` strict-typed, `GAP-REL-15` `[x]`); admin `/support` fail-closed `content_reports` & support console (`GAP-SHELL-01` `[x]`). |
| SHELL-10 | Download center / releases | [-] | [x] | [-] | [x] | Web `/download`, admin `/releases`, Forgejo |
| SHELL-11 | Landing site / legal pages | [-] | [-] | [-] | [-] | `site/` — the only landing/download/legal/invite/assetlinks surface (Wave 3, 2026-09-26: copies in api-server wwwroot and apps/web removed; 404.html; hero loops a copy of the app recording capsule). Prices/URLs from `packages/core` plan-catalog/web-urls — see `design.md`. **2026-10-28 designpaca audit:** flat header (`Header.tsx` blur removed), WCAG AA contrast verified across all 14 routes (`ko`..`vi`, `privacy`, `terms`, `delete-account`, `accept-invite`), `legal.css` explicit `font-weight: 500/600` (no `>=700` fallback), `accept-invite` polite Korean register (`해요체`) and `--faint`/`--accent` AA contrast. |
| SHELL-12 | Notifications (in-app / desktop) | [x] | [ ] | [x] | [x] | Desktop events; mobile push |
| SHELL-13 | Desktop/mobile information architecture (2026-09-28) | [x] | [-] | [x] | [-] | 1급 홈·기록·회의 + 2급 도구. Desktop: `renderer/navigation/app-navigation.tsx`, `AppSidebar`, status bar removed. Mobile: visible Home/Records/Meetings/More tabs, hidden Record route, floating three-action Record FAB, More tool/account grouping; full Jest and the canonical 320dp dark/411dp light runtime journeys are GREEN (`11` GAP-UX-04). `DashScreen`/`WorksHubScreen` were removed; WorksHub-only local filter/pinning was intentionally retired while every destination remains in tabs/More and user content is untouched. Decision SSOT: root `design.md`. |
| SHELL-14 | Home ("오늘") | [x] | [-] | [x] | [-] | Desktop `pages/HomePage.tsx`: recording key, starts, blockers, summary, recent 6/4, file transcription, bounded usage. Mobile `HomeScreen`: today summary, recent records 5/meetings 3, unified-search and plan entry; canonical 320dp dark and 411dp light runtime journeys GREEN. |
| SHELL-15 | Design system v4 "조용한 계기" | [x] | [x] | [~] | [-] | `packages/ui/src/theme-raw.ts` raw-value SSOT (`--d3-text-inverse` mapped to `accent.ink`); flat surfaces, three text levels with AA contrast, `accent.solid/ink`, `InstrumentPanel`/`SegmentControl` aligned with v4. **2026-10-28 designpaca audit:** `apps/web`, `apps/admin`, `apps/desktop/src/renderer` (main 16 routes/tabs + 6 popups), `site/` (14 routes), and `apps/mobile-rn` audited and fixed (`npm run check:design` 0 violations; Playwright headless Chromium 36/36 routes PASS for contrast, `<11px` floor, `<=600` weight cap, zero blur, single `h1`, labeled controls, and zero horizontal overflow across 320–1440px). `packages/ui-native` mirrors dark/light semantics and exposes 48dp control/numeral/motion tokens; mobile `[~]` remains only because actual TalkBack, font-scale, and rotation proof on physical device is pending. |
| SHELL-15 | Design system v4 "조용한 계기" | [x] | [x] | [~] | [-] | `packages/ui/src/theme-raw.ts` raw-value SSOT (`--d3-text-inverse` mapped to `accent.ink`); flat surfaces, three text levels with AA contrast, `accent.solid/ink`, `InstrumentPanel`/`SegmentControl` aligned with v4. **2026-10-28 designpaca audit:** `apps/web`, `apps/admin`, `apps/desktop/src/renderer` (main 16 routes/tabs + 6 popups), `site/` (14 routes), and `apps/mobile-rn` audited and fixed (`npm run check:design` 0 violations; Playwright headless Chromium 36/36 routes PASS for contrast, `<11px` floor, `<=600` weight cap, zero blur, single `h1`, labeled controls, and zero horizontal overflow across 320–1440px). `packages/ui-native` mirrors dark/light semantics and exposes 48dp control/numeral/motion tokens. **2026-11-04 Android follow-up:** inspected app-owned Home/Login actions were labeled and >=48dp; API 34 Login was reachable at font scale 2.0 in portrait/landscape with scroll. Mobile stays `[~]` because this is automated route-level evidence, while physical TalkBack/focus order, an SDK-owned unlabeled AdMob WebView descendant, app-wide coverage, and iOS remain ([evidence](../evidence/2026-11-04-mobile-runtime-a11y.md)). |
---
@ -217,25 +218,26 @@ end-to-end behaviour has **not been verified by typing in a real app** (`11` GAP
| ID | Feature | Status | Anchors |
|---|---|---|---|
| INFRA-01 | Monorepo + workspaces + turbo | [x] | `package.json`, `turbo.json` |
| INFRA-01 | Monorepo + npm workspaces | [x] | `package.json`; unused `turbo.json` and `pnpm-workspace.yaml` removed in Wave 4 |
| INFRA-14 | Unified entitlement resolver (`@d3ro/core/entitlement`) | [x] | `EntitlementSnapshot` + `resolveEntitlement` map Supabase/desktop-license/.NET sources to one contract; adopted across desktop (`LicenseService`), web (`apps/web/src/lib/entitlement.ts`), and mobile (`apps/mobile-rn/src/lib/entitlement-context.tsx`) (`11` GAP-ID-01/02 `[x]`). |
| INFRA-02 | Shared packages | [x] | `packages/*` |
| INFRA-03 | Desktop build + signed packaging | [x] | `electron-builder.yml`, GitLab `package-windows/macos` |
| INFRA-04 | Mobile CI (debug/E2E/release) | [~] | `.github/workflows/ci.yml`, `.gitlab-ci.yml`; production AAB external |
| INFRA-04 | Mobile CI (debug/E2E/release) | [~] | `.forgejo/workflows/ci.yml`, `.gitlab-ci.yml`, root `test:mobile` → mobile `test:ci` (`jest --runInBand`); production AAB remains external |
| INFRA-05 | .NET API tests | [x] | `apps/api-server.Tests` |
| INFRA-06 | Edge function tests (Deno) | [x] | `server/supabase/functions`, `tests/` |
| INFRA-07 | E2E desktop (playwright) | [x] | `apps/desktop/tests`, `apps/desktop/playwright.config.ts` |
| INFRA-08 | E2E web (playwright) | [x] | `apps/web/e2e` |
| INFRA-09 | E2E mobile (Maestro + instrumentation) | [~] | `.maestro/`, `androidTest`; emulator API 35 gate in CI |
| INFRA-06 | Edge function tests (Deno) | [x] | `server/supabase/functions/**/*.test.ts` (root `tests/` was not an Edge test home and was removed 2026-11-04) |
| INFRA-07 | E2E desktop (playwright) | [x] | `apps/desktop/tests/e2e` (5 protected journeys + shared `support/electron-app.ts` fixture), `apps/desktop/playwright.config.ts`. 2026-11-04: red-team cycle specs and 4 stale feature specs deleted, duplicated launch code consolidated. Policy: `docs/tdd-red/06-repo-application.md`. |
| INFRA-08 | Web tests (vitest + playwright) | [x] | `apps/web/tests` (vitest pure-logic contracts, now part of root `npm test`); `apps/web/e2e` (playwright; `smoke.spec.ts` owns the unauthenticated surface contract — fail-closed redirects + `/download` handoff). Web declares its own `@playwright/test`/`vitest` devDeps instead of using the desktop workspace's hoisted binaries. |
| INFRA-09 | E2E mobile (Maestro + instrumentation) | [~] | `.maestro/`, `androidTest`; emulator API 35 gate in CI. 2026-11-04 current-source dual-ABI E2E APK verifier + state-preserving `adb install -r`/cold launch passed on Fold6 Android 16 and API 34 AVD; physical Notifications status/privacy/recent flow passed 1/1 without a permission command, and automated UIA/font-scale/rotation checks are recorded. Manual TalkBack, permission transition/real FCM receipt, full journey, iOS, and production AAB remain ([evidence](../evidence/2026-11-04-mobile-runtime-a11y.md)). |
| INFRA-10 | Secret scanning / release boundaries | [x] | `scripts/ci/check-no-hardcoded-secrets.mjs`, `verify-mobile-release-*.mjs` |
| INFRA-11 | Docker + NAS deploy | [x] | `docker-compose.nas.yml`, `scripts/deploy-nas.*` |
| INFRA-12 | Cloudflare edge + tunnel | [x] | `server/cloudflare-worker`, Cloudflare Tunnel `kd-nas` |
| INFRA-13 | Site deploy (Cloudflare Pages + GitHub Pages) | [x] | `.forgejo/workflows/deploy-site.yml`, `.github/workflows/deploy-site.yml` |
| INFRA-13 | Site deploy (Cloudflare Pages) | [x] | `.forgejo/workflows/deploy-site.yml`; the unused GitHub Pages workflow was removed in Wave 3 |
| INFRA-17 | Test hygiene gate (TDD policy) | [x] | `scripts/ci/check-test-hygiene.mjs` (`npm run test:hygiene` + `:test`), wired into `.forgejo/workflows/ci.yml` quality and `.gitlab-ci.yml` validate. Rules: `.only`, reason-less `.skip()`, trivial assertions, `isVisible()`-gated assertions, machine paths, `waitForTimeout`, `.e2e.test.ts`, `e2e/` 밖의 `*.spec.ts`, assertion-free files. Applied policy + deletion/consolidation log: `docs/tdd-red/06-repo-application.md`. |
| INFRA-15 | Update & release system | [x] | Canonical Forgejo feed + channels/policy (`release/update-policy.json`, `src/main/update-policy.ts`), canonical publisher `scripts/ci/publish-forgejo-release.mjs`, legacy GitLab mirror; `npm run release:metadata:test`. v1.1.0 was published to Forgejo on 2026-09-15; product version moved to `1.2.0` as a forward-fix with CI-only publication, a same-version re-release guard, and download centers that link the feed instead of repository paths. `1.3.0` (2026-09-18) carries the local-STT fixes; Windows publication still needs the CI signing secrets (`11` GAP-REL-02). |
| INFRA-16 | Desktop STT engine packaging | [x] | `apps/desktop/scripts/setup-sidecar.mjs` + `build-sidecar.mjs`, `electron-builder.yml` `extraResources` (`sidecar-dist/sidecar` → `resources/sidecar`, `resources/ffmpeg`), and `scripts/ci/verify-sidecar-bundle.mjs` run in `package-windows`/`package-macos` before electron-builder. Verified on the real bundle: `sidecar.exe` + `_internal` including `faster_whisper/assets/silero_vad_v6.onnx`, plus a packaged-engine transcription round-trip on GPU. |
| INFRA-17 | 서명 없는 배포 채널 (portable + Scoop) | [x] | `scripts/ci/build-portable.mjs` (95MiB 7z 분할 볼륨 + Scoop 매니페스트), `scripts/ci/publish-portable-release.mjs`, `scripts/local/install-d3ro-voice.ps1`, `bucket/` 버킷, `.forgejo/workflows/portable.yml`; 7z 분할 볼륨(Scoop, 162MiB) + zip 분할 부품(수동 설치, 243MiB, 7-Zip 불필요); updater feed와 분리. 2026-09-18 `portable-1.3.1` 게시 + 실제 설치 검증. |
| INFRA-18 | 로컬 런타임 온디맨드 설치 | [x] | `RuntimeProvisioner`(부품 다운로드 + SHA-256 검증 + tar 해제, `%APPDATA%/d3ro-voice/runtime`), `POST runtime:ensure` / `runtime:progress` IPC, 설정 > STT 상태/내려받기 UI. 설치본에서 엔진/ffmpeg를 분리해 189MB → 90.6MiB, 업데이트 피드 게시 복구. 검증은 전부 디스크에 기록된 파일 기준이며(부품 크기·해시 → 결합본 크기·해시), 부품 다운로드는 최대 3회 재시도한다. 2026-09-18 실제 feed 통합 검증(엔진 94.4MiB/18초, ffmpeg 21.7MiB/5초). |
| INFRA-19 | 네이티브 ABI + updater 설정 게이트 | [x] | `scripts/ci/verify-native-abi.mjs`(패키징된 `better_sqlite3.node`가 Electron ABI인지 호스트 Node 로드 거부로 판별) + `scripts/ci/fix-native-abi.mjs`(로컬 잠금 우회용 주입). GitLab/Forgejo/GitHub 패키징 단계에 검증 삽입. 2026-09-18: Node ABI 모듈로 앱이 시작 즉시 죽은 사고 + 누락으로 자동 업데이트가 죽은 사고를 함께 방지(). |
| INFRA-19 | 네이티브 ABI + updater 설정 게이트 | [x] | `scripts/ci/verify-native-abi.mjs`는 패키징된 `better_sqlite3.node`를 host Node가 로드하면 잘못된 ABI로 실패시키고, 대상별 실제 `uiohook-napi/prebuilds/<platform>-<arch>/uiohook-napi.node`도 필수로 검사한다. `--self-test`가 N-API prebuild 누락/존재 fixture를 고정하며 상대·절대 `--dir` 모두 같은 package를 검증한다. `fix-native-abi.mjs`는 better-sqlite3 주입만 담당한다. GitLab desktop jobs와 Forgejo release/portable scripts가 검증기를 실행하고, installer/portable build는 `resources/app-update.yml`도 필수로 확인한다. 2026-09-18의 잘못된 Node ABI 즉시 종료와 updater 설정 누락 사고를 함께 방지한다. |
| INFRA-20 | Desktop typing race and load verification | [~] | `typing-race-proof.mjs` deterministic baseline 2/17 vs current 17/17. 2026-11-02: installed 1.16.0 native Korean IME passed 7/7 under bounded 100% CPU and 7/7 with direct `gemma4:e4b` cold-load overlap. The Latin-layout control reproduced next-key/backspace interleaving; source now defers bursts for 140 ms and batches the current trailing region after a pause, with desktop 2,773 tests/build GREEN. The fix is published in Windows v1.16.1; installed-app Latin GUI, physical keyboard and Chromium/terminal runs remain. See [evidence](../evidence/2026-11-02-verification.md), GAP-INPUT-11. |
---