feat(vehicle): Vehicle Learning Engine Foundation (P2-1)#35
Merged
Conversation
VKB (araç-başına PID/DID) + Manufacturer Intelligence çıktısını SALT-OKUNUR tüketip
marka/protokol/ECU bazlı öğrenme kanıtı (Evidence) üretir. Yalnız foundation:
KALICILIK YOK · BOOT WIRING YOK · SQL/Cloud/LLM/Native YOK · decay YOK.
- vehicleLearningEngine.ts (yeni, saf on-demand):
* LearningEvidence: evidenceId(manufacturer|protocol|source|pidOrDid|mode) + manufacturer/
profileHint/protocol/discoverySource/pidOrDid/mode/ecuAddresses/supportingVehicleHashes/
vehicleCount/observationCount/firstSeen/lastSeen/confidence/status/createdAt/updatedAt
* buildEvidenceFromRecords: deterministik tekilleştirme — aynı araç(fingerprintHash) tekrar
→ vehicleCount ARTMAZ (Set), observationCount artar, firstSeen korunur, lastSeen güncellenir;
ECU normalize/sort/unique; hash normalize/sort/unique
* evidenceConfidence/evidenceStatus (iskelet, decay YOK): 1 araç weak · ≥2 candidate ·
≥3 veya ≥2araç+≥2ECU strong; tek-araç-çok-tekrar confidence ŞİŞMEZ; [0,1] clamp
* VehicleLearningEngine: on-demand computeEvidence/getStrong/getCandidates, fail-soft
Mevcut hiçbir katman değişmedi (2 yeni dosya) — salt-okunur türetme, girdi mutate edilmez.
Dokunulmadı: OBD native · poll · Discovery Capture/Queue · Fingerprint · Auto Learning · VKB ·
Manufacturer Intelligence · Profile Builder · Diagnostic Engine · PID/DID registry · SQL/Supabase.
14 test. tsc -b temiz · eslint temiz · 2507 test yeşil (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 10, 2026
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ç
VKB (araç-başına PID/DID) ve Manufacturer Intelligence çıktısından kalıcı olmayan, salt-okunur öğrenme kanıtı (Evidence) katmanı üretir. Yalnız foundation.
Yeni dosyalar
src/platform/vehicleLearningEngine.tssrc/__tests__/vehicleLearningEngine.test.tsDeğişen dosyalar
Hiçbiri — tamamen additive, salt-okunur türetme.
Evidence modeli
evidenceId(=manufacturer\|protocol\|discoverySource\|pidOrDid\|mode) ·manufacturer·profileHint·protocol·discoverySource·pidOrDid·mode·ecuAddresses·supportingVehicleHashes·vehicleCount·observationCount·firstSeen·lastSeen·confidence·status·createdAt·updatedAt.Confidence/status modeli (deterministik iskelet — decay YOK)
confidence = 0.3 + 0.2·min(araç-1,3) + 0.05·min(ECU,2) + 0.02·min(gözlem,5)→ [0,1] clampPattern çıktısı (bu PR kapsamı)
Aynı marka/protokolde ortak PID · ortak DID · sinyalin görüldüğü farklı ECU adresleri · distinct vehicleCount · toplam observationCount. Co-occurrence clustering kapsam dışı (sonraki PR).
Testler (14)
✓ marka PID/DID evidence · ✓ farklı markalar karışmıyor · ✓ aynı araç tekrar → vehicleCount sabit · ✓ observationCount↑ · ✓ ECU normalize · ✓ supportingVehicleHashes tekil · ✓ firstSeen korunur · ✓ lastSeen güncellenir · ✓ weak/candidate/strong doğru · ✓ confidence clamp (şişme yok) · ✓ boş/null/undefined fail-soft · ✓ bozuk kayıt fail-soft · ✓ girdi mutate edilmiyor · ✓ VIN WMI marka çözümleme + engine strong/candidate/fail-soft.
Risk analizi
En düşük — tamamen additive + salt-okunur.
Doğrulama
tsc -b --noEmittemiz ·eslinttemizMerge YAPILMADI.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Fauew13VP3vbfKqnocPdfX