feat(vehicle-hal): Vehicle HAL Foundation#49
Merged
Conversation
…smi arayüz CarOS Pro'daki tüm modüllerin araçla yalnız bu katman üzerinden konuştuğu Hardware Abstraction Layer temeli. Yalnız foundation — gerçek kaynak wiring (VAL/ UnifiedVehicleStore → HAL.ingest) ve modül taşıma ayrı PR'lar; native değişmez, yeni OBD komutu/CAN decoder/PID yok, Deep Scan/Capability Registry davranışı değişmez. Bugün araç verisi VAL → VehicleState → useUnifiedVehicleStore (~40 dosyada) + Assistant Context + Battery Service + gauge SAB ile ayrı ayrı okunuyor; per-signal quality/confidence/source/stale/supported/unit veren ortak API yoktu. HAL bunu sağlar. - 15 sinyal kataloğu (speed/rpm/coolant/oil/fuel/battery/throttle/ambient/odometer/ gear/reverse/ignition/door/parking_brake/tpms), her biri supported=false tohumlu. - Signal: id·value·quality·confidence·source(native/can/obd/deep_scan/inferred/none)· timestamp·stale·unit·supported. Snapshot: revision·updatedAt·signals(deep-freeze). - API: getSnapshot/getSignal/hasSignal/subscribe/unsubscribe/refresh/reset/dispose + tipli erişimciler (getSpeed/getRPM/getBatteryVoltage/getIgnition/getGear/…) + getVehicleIdentity + getCapability. - HAL ilkesi: donanımdan bağımsız, kaynağı gizler, veri yoksa null/supported=false; veri üretmez/yorumlamaz (yalnız tip doğrulama, magic sanity yok). - Gizlilik: ham VIN reddedilir (yalnız fingerprint hash), ham CAN/OBD saklanmaz. - Yalın: hiç import yok (bağımsız foundation), timer yok, import yan etkisiz, yeni bağımlılık yok, Map O(1). Bounded, immutable, fail-soft, duplicate event önleme. - 35 birim testi. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PaohAWKE2s1FhB6Hmmcj2p
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
selimmujdeci
pushed a commit
that referenced
this pull request
Jul 12, 2026
…aç/OBD yok) Boot crash/ANR yok, cold start delta ~+24ms (<50ms hedefi), idle CPU regresyonu gözlenmedi. Satır 🔴 KALIYOR: HAL sinyal akışı + ignition/TPMS fail-closed + reconnect/stale gerçek araç/OBD gerektirir. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012M8LbxyAqd22EU1rqtTjft
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ç
CarOS Pro'daki tüm modüllerin araçla yalnız bu katman üzerinden konuştuğu tek resmi Hardware Abstraction Layer. Deep Scan · AI · Navigation · Fleet · Remote · Dashboard ve gelecekteki modüller CAN/OBD/Native'i bilmeyecek, yalnız Vehicle HAL kullanacak.
Yalnız foundation. Gerçek kaynak wiring (VAL/UnifiedVehicleStore → HAL.ingest) ve modül taşıma ayrı PR'lar; native değişmez, yeni OBD komutu/CAN decoder/PID yok, Deep Scan/Capability Registry davranışı değişmez.
Salt-okunur analiz (bugünkü durum)
SignalNormalizer→ VALNormalizedVehicleData→VehicleCompute.workerfüzyon →VehicleState(SAB/postMessage) →UnifiedVehicleStoreuseUnifiedVehicleStore~40 dosyada okunuyor + Assistant Context + Battery Service + gauge SAB bağımsız yeniden okuyorgetSignal(id)facade'ı yok. Vehicle HAL tam bu boşluğu doldurur.Signal / Snapshot modeli
supported=falsetohumlu (kaynak yok)API
getSnapshot · getSignal(id) · hasSignal · subscribe · unsubscribe · refresh · reset · dispose · tipli erişimciler (getSpeed/getRPM/getCoolantTemp/getFuelLevel/getBatteryVoltage/getIgnition/getGear/getDoorState/getReverse/getThrottle/getOdometer/getTpms) · getVehicleIdentity · getCapability
HAL ilkeleri
supported=false(fail-closed) · hiçbir tüketici CAN/ELM327/Hiworld bilmezFail-soft / immutability / privacy / performans
Yeni dosyalar
src/platform/vehicleHal/vehicleHal.ts·index.tssrc/__tests__/vehicleHal.test.ts(35 test)docs/DEVICE_VALIDATION_LEDGER.md(fix(db): Supabase name drift alignment — system_configs/linking_codes (PR-SQL-3A) #34 🔴)Doğrulama
tsc -b· ✅ ESLint · ✅ Hedef 35/35 · ✅ Tam suite 2890/2890 · ✅ Production buildBilinen eksikler
Gerçek kaynak wiring (VAL/UnifiedVehicleStore → HAL.ingest) + modüllerin HAL'e taşınması = ayrı PR'lar. Şu an tüm sinyaller
supported=false(kaynak yok). Cihazda doğrulama Ledger #34 🔴.🤖 Generated with Claude Code