feat(vehicle): Otomatik Öğrenme Motoru Temeli (PR-27)#27
Merged
Conversation
Vehicle Fingerprint (PR-25/26) ile Discovery'yi (PR-DISC) birleştirir: sistem, bir
araçta tekrar görülen katalog-dışı PID/DID'leri o aracın parmak izine BAĞLAYARAK
öğrenmeye başlar → kendi kendini geliştiren YEREL bilgi tabanının çekirdeği.
- autoLearningEngine.ts (yeni):
* VehicleKnowledge = fingerprint ÜSTÜNE discoveredPids/discoveredDids
(her sinyal: firstSeen/lastSeen/seenCount/confidence)
* applyObservationsToKnowledge: discovery gözlemlerini bilgiye işler (idempotent
mirror — firstSeen korunur, lastSeen/seenCount/confidence güncellenir)
* isLikelySameVehicle + mergeKnowledge: PR-26 "staged VIN" çözümü — VIN'siz kayıt
VIN gelince aynı araç anlaşılırsa OTOMATİK merge, duplicate bırakmaz
* AutoLearningEngine: discovery + useVidStore aboneliği, FAIL-SOFT
- SystemBoot Wave-3: startAutoLearningEngine() additive wiring + _reg cleanup
Yalnız YEREL bilgi (cloud/AI YOK). Dokunulmadı: native OBD · poll · Discovery
Queue/Capture · PID/DID Registry · SQL/Supabase · cloud sync. Foundation/builder
tipleri DEĞİŞMEDİ (bilgi katmanı depoda JSON olarak şeffaf saklanır).
17 yeni test (seenCount/confidence↑ · VIN merge · duplicate yok · firstSeen korunur ·
lastSeen güncellenir · farklı araçlar birleşmez · fail-soft · OBD/Discovery salt-okunur).
tsc temiz · eslint temiz · 2437 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
AutoLearningEngine constructor'ı açık field+atama (erasableSyntaxOnly). Ayrıca tsc -b ile açığa çıkan latent TS2345: store.load()'un döndürdüğü kayıt VehicleKnowledge olarak işaretlenir (depoda öyle saklanıyor) — davranış AYNI. (#26 fix 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-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
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ç
Vehicle Fingerprint (PR-25/26) ile Discovery (PR-DISC) sistemini birleştirir. Sistem, bir araçta tekrar görülen katalog-dışı PID/DID'leri o aracın parmak izine bağlayarak öğrenmeye başlar → kendi kendini geliştiren yerel bilgi tabanının çekirdeği. Bu PR yalnızca öğrenme altyapısını kurar.
Kapsam — AutoLearningEngine
subscribe/getObservations)firstSeenoluştur ·lastSeengüncelle ·seenCountartır ·confidenceartırdiscoveredPids·discoveredDids·firstSeen·lastSeen·seenCount·confidenceYeni dosyalar
src/platform/autoLearningEngine.tssrc/__tests__/autoLearningEngine.test.tsDeğişen dosyalar (additive)
src/platform/system/SystemBoot.tsstartAutoLearningEngine()+_regcleanup (tek satır, mevcut pattern)Foundation (
vehicleFingerprintService) ve builder (vehicleFingerprintBuilder) değişmedi — bilgi katmanı depoda JSON olarak şeffaf saklanır (Clean Arch).Testler (17)
✓ Aynı PID tekrar → seenCount↑ · ✓ Aynı DID tekrar → seenCount↑ · ✓ confidence↑ · ✓ VIN merge çalışıyor · ✓ duplicate fingerprint kalmıyor · ✓ firstSeen korunuyor · ✓ lastSeen güncelleniyor · ✓ farklı araçlar birleşmiyor · ✓ fail-soft · ✓ OBD/Discovery akışı etkilenmiyor (salt-okunur) + saf yardımcılar (deriveConfidence/apply/merge/isLikelySameVehicle) + zero-leak stop.
Risk analizi
Düşük — tamamen additive.
_regcleanup'ta.Doğrulama
tsc --noEmittemiz ·eslinttemizSaha doğrulama
🔴 Cihazda doğrulanmadı — gerçek araçta tekrar bağlanışlarda PID/DID öğrenimi + VIN merge gözlemlenmeli.
Merge YAPILMADI.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Fauew13VP3vbfKqnocPdfX