feat(vehicle): Araç Bilgi Tabanı Temeli (PR-28)#28
Merged
Conversation
PR-25/26/27 ile öğrenilen bilgileri araç bazlı, organize, istatistikli bir YEREL
bilgi tabanına dönüştürür. Her fingerprint için tek zengin kayıt; aynı bilgiyi tekrar
yazmaz; yerel istatistik üretir; offline-first.
- vehicleKnowledgeBase.ts (yeni, projeksiyon katmanı):
* VehicleKnowledgeRecord: fingerprintHash/vehicleSignature/vin/profileHint/protocol +
discoveredPids/discoveredDids/discoveredEcus + firstSeen/lastSeen +
totalConnections/totalDiscoveries + confidence + firmwareVersions/supportedModes
* buildKnowledgeRecord: idempotent birleştirme (firstSeen korunur, lastSeen/seenCount/
confidence güncellenir, duplicate yok)
* vehicleStats: toplam PID/DID/ECU/Discovery
* VehicleKnowledgeBaseStore: bounded(8) LRU + safeStorage (offline-first, fail-soft)
* VehicleKnowledgeBase: discovery+VID aboneliği, fingerprint deposundan SALT-OKUNUR
okuyup KB'ye upsert; fail-soft
- safeStorage: car-vehicle-knowledge-base → LRU_PROTECTED (yeni anahtar)
- SystemBoot Wave-3: startVehicleKnowledgeBase() additive wiring + _reg cleanup
Cloud/AI/SQL YOK. Dokunulmadı: native OBD · poll · Discovery Pipeline/Queue · Auto
Learning · Fingerprint algoritması · PID/DID Registry · SQL/Supabase · cloud sync.
Foundation/builder/engine DEĞİŞMEDİ (KB salt-okunur projeksiyon).
14 yeni test. tsc temiz · eslint temiz · 2451 test yeşil (yalnız 23 bilinen env-gated, ilgisiz)
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Fauew13VP3vbfKqnocPdfX
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Jul 9, 2026
… (PR-28) VehicleKnowledgeBase constructor'ı açık field+atama (erasableSyntaxOnly / tsc -b). Davranış AYNI. (#27'ye kadar olan fix'ler merge-forward ile devralındı.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fauew13VP3vbfKqnocPdfX
selimmujdeci
pushed a commit
that referenced
this pull request
Jul 9, 2026
… (PR-29) ManufacturerIntelligenceEngine constructor'ı açık field+atama (erasableSyntaxOnly / tsc -b). Davranış AYNI. (#28'e kadar olan fix'ler merge-forward ile devralındı.) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Fauew13VP3vbfKqnocPdfX
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Amaç
PR-25/26/27 ile öğrenilen bilgileri araç bazlı, organize, istatistikli bir yerel bilgi tabanına dönüştürür. Her fingerprint için tek zengin kayıt; aynı bilgiyi tekrar yazmaz; yerel istatistik üretir; offline-first. Cloud/AI/SQL bu PR'ın kapsamı değil.
Kapsam — VehicleKnowledgeBase
VehicleKnowledge) SALT-OKUNUR okuyup organize ederKnowledge Record (şema)
fingerprintHash·vehicleSignature·vin·profileHint·protocol·discoveredPids·discoveredDids·discoveredEcus·firstSeen·lastSeen·totalConnections·totalDiscoveries·confidence·firmwareVersions·supportedModesHer PID/DID için:
firstSeen·lastSeen·seenCount·confidenceYeni dosyalar
src/platform/vehicleKnowledgeBase.tssrc/__tests__/vehicleKnowledgeBase.test.tsDeğişen dosyalar (additive)
src/utils/safeStorage.tscar-vehicle-knowledge-base→LRU_PROTECTED(yeni storage anahtarı)src/platform/system/SystemBoot.tsstartVehicleKnowledgeBase()+_regcleanup (tek satır)Foundation/builder/Auto Learning dosyaları değişmedi — KB salt-okunur projeksiyon (Clean Arch).
Testler (14)
✓ Yeni araç knowledge oluşturuyor · ✓ Aynı araç duplicate oluşturmuyor · ✓ PID istatistikleri doğru · ✓ DID istatistikleri doğru · ✓ firstSeen korunuyor · ✓ lastSeen güncelleniyor · ✓ confidence artıyor · ✓ toplam Discovery doğru · ✓ toplam PID doğru · ✓ toplam DID doğru · ✓ fail-soft · ✓ bounded(8) cache · ✓ safeStorage kalıcılığı + canlı projeksiyon + zero-leak stop.
Risk analizi
Düşük — tamamen additive.
_regcleanup.Doğrulama
tsc --noEmittemiz ·eslinttemizSaha doğrulama
🔴 Cihazda doğrulanmadı — gerçek araçta bilgi tabanı kaydı + istatistik birikimi gözlemlenmeli.
Merge YAPILMADI.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Fauew13VP3vbfKqnocPdfX