# הקשר להמשך ישיר — 0016
תאריך: 2026-05-20 10:00
אפליקציה: VitStudio (פלאגין Revit)

## מה בנוי עכשיו — M2 שלב 2 ✓ (אומת end-to-end על מודל אמיתי)
- **F1 Guard סגור** — `src\VitStudio.Core\Telemetry\TelemetryGuard.cs` (allowlist 12 events, value-kinds whitelist, regex חוסם נתיבים → drop+Debug.Assert) + `GuardedTelemetry.cs` (abstract base, Track() מסונן מרכזית, never throws). לא-backfillable — סגור לפני call-site ראשון.
- **TextStyleDetector** — `src\VitStudio.Core\Dwg\TextStyleDetector.cs`: IxMilia.Dxf 0.8.4, DXF→Styles→SHX (PrimaryFontFileName+BigFontFileName). DWG binary→null (Phase 2). API: `Detect()` + `TryDetect(out failureReason)` ל-UI debug.
- **CodePages fix קריטי:** `System.Text.Encoding.CodePages 5.0` PackageReference מפורש ב-Core + `Encoding.RegisterProvider(CodePagesEncodingProvider.Instance)` ב-static ctor של TextStyleDetector. בלעדיו net48 זורק FileNotFoundException על DXF עברי.
- **ScanFontsCommand** — `src\VitStudio.Revit2024\Commands\ScanFontsCommand.cs` + כפתור "Scan Fonts" ב-`VitStudioApp` panel "RTL Fix". TaskDialog: counters + per-link details (SourcePath ב-debug, *לא* טלמטריה).
- **Deploy:** 5 DLLs ב-`C:\ProgramData\Autodesk\Revit\Addins\2024\VitStudio\` — VitStudio.Core+Revit2024+IxMilia.Dxf+CodePages+Unsafe.
- **תוצאת אימות (A_Mivne roi.rvt cloud):** 3 links · 1 DXF parsed ✓ · 2 DWG binary deferred · **2 SHX זוהו: `ltypeshp.shx` + `txt.shx`** (האחרון חשוד לעברית ההפוכה).
- **תרשים VIT-009** — `D:\Vitruvius Ecosystem\VitStudio\VitStudio-M2-Summary.html`.

## הצעד הבא — שתי אופציות (בחר אחת)
**Option A · M2 שלב 3 (סגירת הסקיוריטי):** F2 install.id אקראי (`Guid.NewGuid()` ב-`%APPDATA%\VitStudio\install.id`) + F3 enterprise force-off (config/registry, נבדק *בתוך* impl) + Aptabase HTTP sender (GuardedTelemetry concrete, ring buffer 500, flush ברקע + OnShutdown). חובה לפני call-site ראשון של Track().

**Option B · M3 FontRecommender:** SHX→TTF mapping table ב-Core (`Fonts\FontRecommender.cs`). הקלט הראשון מ-M2: `txt.shx` (Hebrew gibberish suspect) + `ltypeshp.shx` (linetype). שורות seed: `txt.shx → David CLM`, `aryeh.shx → Arial Hebrew`, וכו'. interface + lookup deterministic + telemetry events `shx_font_detected{has_recommendation}`.

## קבצים רלוונטיים לסשן הבא
- `D:\Vitruvius Ecosystem\VitStudio\PLAN.md` — סעיף "פעולות M2" (F2/F3) + "Event Taxonomy" (allowlist) + מפת ה-Milestones M3+
- `D:\Vitruvius Ecosystem\VitStudio\src\VitStudio.Core\Telemetry\` — להוסיף `AptabaseHttpTelemetry.cs` או `InstallId.cs`
- `D:\Vitruvius Ecosystem\VitStudio\src\VitStudio.Core\Dwg\TextStyleDetector.cs` — מקבל בנייה של FontRecommender לידו
- Build: `MSBuild.exe VitStudio.slnx -t:Build -p:Configuration=Debug`
- Deploy: ארכוב 5 DLLs ל-`OLD\` עם timestamp לפני העתקה חדשה
- Fixture אימות: `A_Mivne roi.rvt` (cloud-mounted)
